Retrieve serial number for GPY
-
Hi, understand that each GPy has its unique serial number, and that we can retrieve it from each device. But I would like to ask how these are built. Are they all random numbers, or are they built on a static part from batch to batch like YYMM or similar starting each devices serial number. We are using a platform that will not accept the whole serial number, so we need to look at a part of the serial number, just trying to understand if it makes sense to look at the first part, last part or if it will not matter.
-
@jcaron This is what I am referring to: machine.unique_id() # return the 6-byte unique id of the board (the LoPy's WiFi MAC address) [https://docs.pycom.io/firmwareapi/pycom/machine/#machineunique_id] -the question is how that id is formated, and if all parts are unique, or just parts.
-
@Don-iot said in Retrieve serial number for GPY:
Also an option is storing database on you side with pair
your_id=SN
and using it with that platform.
-
@Don-iot what’s the type and size limit on your platform?
Don’t have a device at hand, but there are probably several identifiers you could use, including (at least) a MAC address which is 48 bits.
Unless your platform only supports 32-bit integers (which would make it very limited), there’s probably a way to encode one of the identifiers in a format that fits…
-
-
Thanks @livius but we are adapting to different platforms rather than just one platform, and this arouse as a problem with one platform we are sending data to. Do you know how the numbers are built?
-
@Don-iot
You should look on different platform, SN is not long...