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

    How to get IMEI for FiPy modules?

    Scheduled Pinned Locked Moved FiPy
    fipyimei
    11 Posts 5 Posters 2.8k Views 5 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.
    • T Offline
      tushar44
      last edited by

      How to get IMEI for FiPy modules?

      1 Reply Last reply Reply Quote 0
      • T Offline
        tmcolby
        last edited by

        According to my understanding from a response I got from Jose at Pycom, there will be a firmware release that will give you access to the IMEI number. I don't believe the firmware has been released yet. I am anxiously awaiting this as well.

        There will be a simple lte.imei() call to get the IMEI number.

        1 Reply Last reply Reply Quote 0
        • T Offline
          tushar44
          last edited by

          Jose ,
          Can you provide time line on when you going to release firmware that will work with LTE and allow reading IMEI?

          1 Reply Last reply Reply Quote 0
          • T Offline
            tmcolby
            last edited by seb

            https://forum.pycom.io/topic/2734/new-firmware-release-v1-17-0-b1-completely-new-lte-class

            The new firmware with the LTE class is out.

            >>> from network import LTE
            >>> lte = LTE()
            >>> lte.send_at_cmd('AT+CGSN=1')
            '\r\n+CGSN: "xxxxxxxxxxxxxxx"\r\n\r\nOK\r\n'
            

            The IMEI will be xxxxxxxxxxxxxxx

            D 1 Reply Last reply Reply Quote 1
            • D Offline
              David Johnson @tmcolby
              last edited by David Johnson

              ****@tmcolby said in How to get IMEI for FiPy modules?:

              from network import LTE
              lte = LTE()
              lte.send_at_cmd('AT+CGSN=1')
              '\r\n+CGSN: "xxxxxxxxxxxxxxx"\r\n\r\nOK\r\n'

              when I try to do this with my FiPy my device freezes at the line "lte = LTE()"
              it eventually times out.

              (my boot.py has the following code to init wifi access which allows me to connect to my local AP)

              import machine
              from network import WLAN
              wlan = WLAN() # get current object, without changing the mode

              if machine.reset_cause() != machine.SOFT_RESET:
              wlan.init(mode=WLAN.STA)
              # configuration below MUST match your home router settings!!
              wlan.ifconfig(config=('192.168.1.199', '255.255.255.0', '192.168.1.1', '8.8.8.8'))

              if not wlan.isconnected():
              # change the line below to match your network ssid, security and password
              wlan.connect('whizpop-2G', auth=(WLAN.WPA2, 'xxxxxxxx'), timeout=5000)
              while not wlan.isconnected():
              machine.idle() # save power while waiting

              any ideas?****

              N 1 Reply Last reply Reply Quote 0
              • T Offline
                tmcolby
                last edited by

                Do you have the latest firmware installed?
                v1.17.0.b1

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  David Johnson @tmcolby
                  last edited by David Johnson

                  @tmcolby yes, I have updated the firmware several times successfully.

                  I have antennas installed on wifi and lte sma's and a sim installed.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tmcolby
                    last edited by

                    How are you powering the board? Are you using a decent usb cable and power source? I wonder if that command wakes up the radio and the current draw browns out the power momentarily causing it to freeze. Try a heavy guage USB cable, or shorter one.. and a decent power source. I have no idea if this is a realistic theory...just a wild guess

                    1 Reply Last reply Reply Quote 0
                    • sebS Offline
                      seb
                      last edited by

                      If you are using an expansion board try removing the CTS and RTS jumpers and see if that fixes the issue

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        nathanh @David Johnson
                        last edited by

                        @david-johnson are you using the wifi to connect to the device when/while you try and interface with the LTE library? As someone else posted that having the wifi connected can cause issues. If you have been doing that, try connecting directly via serial/usb, commenting out all the wifi stuff on bootup and just try and load the LTE library up without anything else running - just to eliminate other sources of interference.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          David Johnson
                          last edited by

                          thank you for the suggestions.
                          I am running the FiPy on a breadboard, I uploaded the firmware using a ttl serial adapter (RX/TX, PWR 3.3v) I removed the RX/TX connections (as they are 3.3v) and bumped it to 5v for pwr and everything is working now.

                          it may have been the power source insufficient to run both WIFI and LTE radios simultaneously or it could have been the RX/TX connections to the ttl serial.
                          either way it is working now, thank you for the help.

                          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