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

    Lora-Mac=‎FFFFFFFFFFFFFFFF

    Scheduled Pinned Locked Moved LoPy
    lopymac
    26 Posts 11 Posters 12.0k Views 13 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.
    • C Offline
      Camot
      last edited by Camot

      Hello,
      I am not sure how I can fix this....I have already tried a factory reset

      from network import LoRa
      import binascii
      lora = LoRa(mode=LoRa.LORAWAN)
      print(binascii.hexlify(lora.mac()).upper().decode('utf-8'))

      Gives me : FFFFFFFFFFFFFFFF

      When I try to connect to The Things Network, my gateway shows the following dev eui (lora-mac) in the ttn console

      ‎12‎:‎47‎:‎55 868.3 4/5 SF9 BW125 205.8 app eui:70B3D57EF0004E35 dev eui:FFFFFFFFFFFFFFFF payload size:23 bytes

      1 Reply Last reply Reply Quote 0
      • B Offline
        bucknall
        last edited by

        Hi @Camot,

        Have you used the firmware update tool to update your device? It seems like you might be running an outdated version of the firmware!

        Thanks!

        Alex

        Developer Evangelist - Pycom

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          Camot @bucknall
          last edited by Camot

          @bucknall said in Lora-Mac=‎FFFFFFFFFFFFFFFF:

          Hi @Camot,

          Have you used the firmware update tool to update your device? It seems like you might be running an outdated version of the firmware!

          Thanks!

          Alex

          I have updated the Lopy with the firmware update tool yesterday.
          sysname='LoPy', nodename='LoPy', release='1.6.13.b1', version='v1.8.6-607-g9c8a0e9e on 2017-05-01', machine='LoPy with 
          ESP32', lorawan='1.0.0')

          The good News is that I can enter that FFFFF... and use it like a regular address at the TTN config and it works as expected

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            bucknall @Camot
            last edited by

            @Camot What happens now if you run the command

            binascii.hexlify(lora.mac())
            

            ?

            Developer Evangelist - Pycom

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              Camot @bucknall
              last edited by Camot

              @bucknall said in Lora-Mac=‎FFFFFFFFFFFFFFFF:

              binascii.hexlify(lora.mac())

              binascii.hexlify(lora.mac())                                                                                        
              b'ffffffffffffffff'

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Camot @Camot
                last edited by

                @Camot said in Lora-Mac=‎FFFFFFFFFFFFFFFF:

                @bucknall said in Lora-Mac=‎FFFFFFFFFFFFFFFF:

                binascii.hexlify(lora.mac())

                binascii.hexlify(lora.mac())                                                                                        
                b'ffffffffffffffff'

                Any news? My Lopy still have this invalid Lora-MAC

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bucknall
                  last edited by

                  Hi @Camot, I've checked with Daniel and he asked me to verify if you used the ESP-IDF tool to erase the flash on your device?

                  Try performing another firmware update and it should correctly write over the flash with our firmware and correct the LoRa MAC address.

                  Thanks for your patience!

                  Developer Evangelist - Pycom

                  C 2 Replies Last reply Reply Quote 0
                  • D Offline
                    daniel
                    last edited by

                    Hello @Camot,

                    Did your LoPy was ever flashed with a custom firmware using the IDF? Did you perform a bulk erase on the flash memory?

                    Cheers,
                    Daniel

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      Camot @bucknall
                      last edited by

                      I made another Firmware update but the MAC address is still FFFFFFFFFFFFFFFF

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        Camot @bucknall
                        last edited by

                        @bucknall @daniel

                        any News?

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          cinezaster
                          last edited by

                          @bucknall Still having this issue.

                          I upgraded firmware LoPy to '1.7.9.b3'.
                          PyTrack firmware is v0.0.4
                          LoPy Model: LoPy1.0r

                          1 Reply Last reply Reply Quote 1
                          • bmarkusB Offline
                            bmarkus
                            last edited by

                            @Camot said in Lora-Mac=‎FFFFFFFFFFFFFFFF:

                            print(binascii.hexlify(lora.mac()).upper().decode('utf-8'))

                            Try:

                            print(binascii.hexlify(lora.mac()))

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              cinezaster @bmarkus
                              last edited by

                              @bmarkus unfortunately that doesn't work either. I already tried this.
                              Also when I look at the output of lora.mac() it returns b'\xff\xff\xff\xff\xff\xff\xff\xff' so one could only expect the id to be FFFFFFFFFFFFFFFF.

                              1 Reply Last reply Reply Quote 0
                              • E Offline
                                emerout
                                last edited by

                                Hello,

                                I have the same problem, address returned by lora.mac() is still FFFFFFFFFFFFFFFF.

                                History :

                                First time I played with Lopy, I have a different and right mac address.
                                Then I try to use a custom firmware, flash it, with no success (other story with external lib)

                                I came back to official firmware LoPy_868-1.7.6.b1.
                                And know it is stuck with this ffff... mac.

                                Any help appreciated !

                                robert-hhR 1 Reply Last reply Reply Quote 1
                                • robert-hhR Offline
                                  robert-hh @emerout
                                  last edited by

                                  @emerout Did you try to erase the flash with esptool.py?

                                  C E 2 Replies Last reply Reply Quote 0
                                  • C Offline
                                    cinezaster @robert-hh
                                    last edited by

                                    @robert-hh I did try it to erase the flash.

                                    1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      emerout @robert-hh
                                      last edited by

                                      @robert-hh said in Lora-Mac=‎FFFFFFFFFFFFFFFF:

                                      @emerout Did you try to erase the flash with esptool.py?

                                      I have performed :
                                      $ bin/esptool.py --port /dev/tty.usbserial erase_flash

                                      and then :
                                      $ bin/updater.py -t Downloads/LoPy_868-1.7.8.b1.tar.gz -p /dev/tty.usbserial -s 921600 flash

                                      re-uploaded my program,

                                      No success, mac is still FFFF...

                                      robert-hhR 1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        emerout
                                        last edited by

                                        Is it possible to set lora device address programmatically when operate in OTAA mode ?

                                        1 Reply Last reply Reply Quote 0
                                        • robert-hhR Offline
                                          robert-hh @emerout
                                          last edited by

                                          @emerout Did you check between erase & reflash, whether the device was erased? For instance by trying to run it.

                                          E 1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            emerout @robert-hh
                                            last edited by

                                            @robert-hh Yes, after erase there wasn't any python >>> prompt.
                                            Then after flashing firmware, my boot.py and main.py was gone.

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

                                            Pycom on Twitter

                                            Pycom