Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Retrieve serial number for GPY

    Scheduled Pinned Locked Moved GPy
    7 Posts 3 Posters 41 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Don-iotD Offline
      Don-iot
      last edited by

      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.

      L J 2 Replies Last reply Reply Quote 0
      • L Offline
        livius @Don-iot
        last edited by

        @Don-iot
        You should look on different platform, SN is not long...

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • Don-iotD Offline
          Don-iot
          last edited by

          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?

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @Don-iot
            last edited by

            @Don-iot said in Retrieve serial number for GPY:

            Do you know how the numbers are built?

            Sadly no.

            think about people first, then computers

            1 Reply Last reply Reply Quote 0
            • J Offline
              jcaron @Don-iot
              last edited by

              @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-iotD 1 Reply Last reply Reply Quote 0
              • L Offline
                livius
                last edited by

                @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.

                think about people first, then computers

                1 Reply Last reply Reply Quote 0
                • Don-iotD Offline
                  Don-iot @jcaron
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0

                  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
                  • 1 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom