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.
-
@Don-iot
You should look on different platform, SN is not long... -
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 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…
-
@Don-iot said in Retrieve serial number for GPY:
Also an option is storing database on you side with pair
your_id=SNand using it with that platform. -
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login