How to get IMEI for FiPy modules?
-
How to get IMEI for FiPy modules?
-
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.
-
Jose ,
Can you provide time line on when you going to release firmware that will work with LTE and allow reading IMEI? -
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
-
****@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 modeif 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 waitingany ideas?****
-
Do you have the latest firmware installed?
v1.17.0.b1 -
@tmcolby yes, I have updated the firmware several times successfully.
I have antennas installed on wifi and lte sma's and a sim installed.
-
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
-
If you are using an expansion board try removing the CTS and RTS jumpers and see if that fixes the issue
-
@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.
-
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.
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