Unique Serial numbers and QR code

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

Unique Serial numbers and QR code

Postby djoshi » Wed Jan 19, 2022 11:11 pm

Hi

Does all ESP32 module have a unique serial number where we can use to pre register the the device on to our database?

There is a QR code on the device, what is the purpose of that?

I seems this QR code is identical among multiple devices or at least the device I have.

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Unique Serial numbers and QR code

Postby ESP_Sprite » Thu Jan 20, 2022 1:20 am

The MAC address is guaranteed to be unique; you could use that.

I don't know about a QR code; what device specifically are you talking about?

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

Re: Unique Serial numbers and QR code

Postby djoshi » Thu Jan 20, 2022 1:27 am

QR code on the ESP32 module.

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Unique Serial numbers and QR code

Postby ESP_Sprite » Thu Jan 20, 2022 4:24 am

Ah, I think that's actually a different type of 2d barcode. According to this, the MAC address is encoded into that (at least on newer modules), and from the random module I grabbed I can confirm the last 12 characters of the string the barcode decodes to is indeed the MAC address.

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

Re: Unique Serial numbers and QR code

Postby djoshi » Thu Jan 20, 2022 9:19 am

I got two modules, which when i use my mobile phone to scan the code are outputting the same results which is
0532042018040028018160004138ESP0V203
0532042018040028018160004138ESP0V203

Does this seems correct?

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Unique Serial numbers and QR code

Postby ESP_Sprite » Fri Jan 21, 2022 2:14 am

That doesn't look like a code of any module I know of (but then again, I don't generally make it my business to know of every single module, so who knows.) Can you post a picture of the module?

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

Re: Unique Serial numbers and QR code

Postby djoshi » Sat Jan 22, 2022 9:01 pm

This is the module
1642884407052.jpg
1642884407052.jpg (822.2 KiB) Viewed 8416 times
How do your normally register a device onto a DB prior to a device joining your network or being give to a customer.

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Unique Serial numbers and QR code

Postby ESP_Sprite » Sun Jan 23, 2022 2:04 am

The Wrover-D is an older module... might be that it's made before they added the MAC to the qr-code.

I would imagine most manufacturers would register the MAC either during the stage where their product is factory-tested and flashed with the actual program, or they don't bother and let the device send the MAC when it's deployed at the customer site and contacts the manufacturers servers.

Who is online

Users browsing this forum: No registered users and 52 guests