ESP8266 Developer Zone The Official ESP8266 Forum 2015-09-22T03:12:30+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=111 2015-09-22T03:12:30+08:00 2015-09-22T03:12:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=111&p=3793#p3793 <![CDATA[Re: spi_flash_get_id ./. spi_flash_get_mac]]> viewtopic.php?f=7&t=982&p=3790#p3790

Statistics: Posted by rudi — Tue Sep 22, 2015 3:12 am


]]>
2015-09-20T11:04:10+08:00 2015-09-20T11:04:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=111&p=3775#p3775 <![CDATA[Re: spi_flash_get_id ./. spi_flash_get_mac]]>
sdk 1.4 is online, now -
dear espressif - please support this in api

the UID number can be used in conjunction with user software methods
to help prevent copying or cloning of a system.

viewtopic.php?f=7&t=982

txs

best wishes
rudi ;-)

Statistics: Posted by rudi — Sun Sep 20, 2015 11:04 am


]]>
2015-05-09T04:09:45+08:00 2015-05-09T04:09:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=111&p=1660#p1660 <![CDATA[Re: spi_flash_get_id ./. spi_flash_get_mac]]>
viewtopic.php?f=5&t=433



Version: v1.0
Function:
1. Download firmware to flash chip of esp8266 module.
2. Read chip MAC
3. Read SPI Flash INFO


i love it!!!!
thank you!

btw:
is there a new api command for this too :)
btw
support the unique id number ( 4Bh) as 64-bit id too?
this will complette the doing,
great costaud!!!!
thank you so much!!!
best wishes
you can go 2 weeks extra holiday now :) :) :)
i allowed this :) :).. i2c register can wait :) :) :)
..

best wishes
rudi :)

wow wow wow
RF Settings ?
hot stuff! wow!

olala . TestMode Channel? ho ho. great!!!
great costaud!! great espressif!!
......
multidownload..
perfect!
^^^^^^

Statistics: Posted by rudi — Sat May 09, 2015 4:09 am


]]>
2014-12-28T10:04:31+08:00 2014-12-28T10:04:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=111&p=379#p379 <![CDATA[spi_flash_get_id ./. spi_flash_get_mac]]>

i think - spi flash id mean manufacturer.
because uint..

can you please support the 64bit unique mac from winbond spi flash too?

suggest:
spi_flash_get_mac
read unique id number ( 4Bh) as 64-bit id



example:
mac is array of char ( hex )

https://lowpowerlab.com/forum/index.php?topic=498.0

byte* MAC = flash.readUniqueId();
for (byte i=0;i<8;i++)
{
Serial.print(MAC[i], HEX);
Serial.print(' ');
}

perhabs you can do this in sdk with function too.
future request?
;-)

best wishes
rudi ;-)


btw:
examples for arduino:

#define SPIFLASH_MACREAD 0x4B // read unique ID number (MAC)

..
https://github.com/LowPowerLab/SPIFlash ... SPIFlash.h
https://github.com/LowPowerLab/SPIFlash ... IFlash.cpp

byte SPIFlash::UNIQUEID[8];

..

/// Get the manufacturer and device ID bytes (as a short word)
word SPIFlash::readDeviceId()
{
#if defined(__AVR_ATmega32U4__) // Arduino Leonardo, MoteinoLeo
command(SPIFLASH_IDREAD); // Read JEDEC ID
#else
select();
SPI.transfer(SPIFLASH_IDREAD);
#endif
word jedecid = SPI.transfer(0) << 8;
jedecid |= SPI.transfer(0);
unselect();
return jedecid;
}

/// Get the 64 bit unique identifier, stores it in UNIQUEID[8]. Only needs to be called once, ie after initialize
/// Returns the byte pointer to the UNIQUEID byte array
/// Read UNIQUEID like this:
/// flash.readUniqueId(); for (byte i=0;i<8;i++) {
Serial.print(flash.UNIQUEID[i], HEX); Serial.print(' '); }
/// or like this:
/// flash.readUniqueId(); byte* MAC = flash.readUniqueId(); for (byte
i=0;i<8;i++) { Serial.print(MAC[i], HEX); Serial.print(' '); }
byte* SPIFlash::readUniqueId()
{
command(SPIFLASH_MACREAD);
SPI.transfer(0);
SPI.transfer(0);
SPI.transfer(0);
SPI.transfer(0);
for (byte i=0;i<8;i++)
UNIQUEID[i] = SPI.transfer(0);
unselect();
return UNIQUEID;
}

Statistics: Posted by rudi — Sun Dec 28, 2014 10:04 am


]]>