spi_flash_get_id ./. spi_flash_get_mac

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

spi_flash_get_id ./. spi_flash_get_mac

Postby rudi » Sun Dec 28, 2014 10:04 am

hi espressif ;-)

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;
}

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

Re: spi_flash_get_id ./. spi_flash_get_mac

Postby rudi » Sat May 09, 2015 4:09 am

@costaud

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!
^^^^^^

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

Re: spi_flash_get_id ./. spi_flash_get_mac

Postby rudi » Sun Sep 20, 2015 11:04 am

push # wishes from dezember 2014 #

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 ;-)

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

Re: spi_flash_get_id ./. spi_flash_get_mac

Postby rudi » Tue Sep 22, 2015 3:12 am


-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: MSN [Bot] and 7 guests