Page 1 of 2

Is there a serial number or unique ID in the chip

Posted: Wed Oct 28, 2015 1:43 pm
by xixixihaha
Dear,
Is there a serial number or unique ID in the chip for me to identify the chip?

Thanks

Re: Is there a serial number or unique ID in the chip

Posted: Wed Oct 28, 2015 7:26 pm
by Espressif_Kelly
Dear Sir,

CHIP_ID can not be used to uniquely indicate of ESP8266EX, because the chip_id of chips for the same batch is same.

You can use MAC address as the identifier. MAC address is pre-burned in the chip by efuse before delivery and MAC address of each chip are different.

Any more questions, please let us know.

Thanks.

Re: Is there a serial number or unique ID in the chip

Posted: Thu Oct 29, 2015 6:10 am
by rudi
Espressif_Kelly wrote:
CHIP_ID can not be used to uniquely indicate of ESP8266EX, because the chip_id of chips for the same batch is same.



mhm... CHIP ID is not UID ?
ups ...
why ?
...
;-)

i have think this - that the chip id can not be an uid of ESP8266ex time ago..
i work with CHIP ID but i use UID from Flash too for signing - ( MAC too )
because there is only "Chip_id" command and not a "Chip_uid" command in the api.
...

But thank you that yóu clear this now -
Chip Id is no UID.
..

Espressif_Kelly wrote:
You can use MAC address as the identifier. MAC address is pre-burned in the chip by efuse before delivery and MAC address of each chip are different.



mac is ok for validate boot code -
but ..because mac can be change by user too ( in bootloader code / after boot ) so there is no realy UID there after booting - you can use the uid from flash - this is the only UID in the system that is an UID - 64 BIT and can not be change.

viewtopic.php?f=7&t=982&p=3790#p3790

there is no api command for this in the sdk -
but you can read it by using right command bit for your connected mode.
see the flowchart.

history:

viewtopic.php?f=7&t=111&p=3775#p379

;-)

i am happy to used this just in time ;-)
and build the pcb as base of this

;-)

best wishes
rudi ;-)

Re: Is there a serial number or unique ID in the chip

Posted: Tue Dec 22, 2015 6:37 pm
by jgustavoam
My suggestion - write your ID Code in Flash Memory (user parameter area) .

Sector :User param
definition: Store user parameter(4 x 4KB)
region: 240KB~256KB
size:16KB

Reference : 99C-ESP8266__OTA_Upgrade__EN_v1.6.pdf
ESP8266 firmware upgrade through Wi-Fi

Re: Is there a serial number or unique ID in the chip

Posted: Fri Jan 01, 2016 12:34 pm
by jfollas
Espressif_Kelly wrote:Dear Sir,

CHIP_ID can not be used to uniquely indicate of ESP8266EX, because the chip_id of chips for the same batch is same.

You can use MAC address as the identifier. MAC address is pre-burned in the chip by efuse before delivery and MAC address of each chip are different.


This does not sound right. The output of SDK function system_get_chip_id() matches the low bytes of my MAC address.

Are you saying that all chips from the same batch will have the same MAC address? Or at least the same low bytes of the MAC address?

Example from my chip:

Chip ID: 0x062853

Station MAC Address: 5c:cf:7f:06:28:53
AP MAC Address: 5e:cf:7f:06:28:53

Re: Is there a serial number or unique ID in the chip

Posted: Wed Feb 03, 2016 10:44 am
by Espressif_Kelly
Hi,

Sorry for the mistake.

Chip id is is the original MAC address.

We have provided api that can be used to modify mac address, but chip id won't be changed.

Thanks.

Re: Is there a serial number or unique ID in the chip

Posted: Fri Jun 16, 2017 1:59 am
by DarkSide
I'm totally confused with this thread. So, is the value returned by system_get_chip_id() is unique for each ESP8266 chip or not?

Re: Is there a serial number or unique ID in the chip

Posted: Mon Oct 16, 2017 4:56 am
by blubb
Chip id is only 24 bit, so if more than 16.8 million chips have been manufactured, it cannot be unique. ;)

Re: Is there a serial number or unique ID in the chip

Posted: Mon Mar 26, 2018 10:33 am
by jassi007
blubb wrote:Chip id is only 24 bit, so if more than 16.8 million chips have been manufactured, it cannot be unique. ;)



The Chip ID is 32 bit. Check the return value of system_get_chip_id() function.

Re: Is there a serial number or unique ID in the chip

Posted: Mon Mar 26, 2018 10:39 am
by jassi007
The Chip ID is 32 bit. Check the return value of system_get_chip_id() function.
Hence, around 4.3 billion different Chip IDs.
And with Espressif claiming to have shipped 100 million chips as of January 2018, I believe the chip ID is unique so far.