NBIoT and FiPy
-
@patmolloy since you mentioned it, indeed there is the following specific note in the pycom documentation:
As shipped, Pycom modules only support CAT-M1, in order to use NB-IoT you need to flash a different firmware to the Sequans modem. Instructions for this can be found here.So you need to flash new modem firmware for NB-IoT.
Also, since you know that the Vodafone SIM card is working with SODAQ board (Ublox SARA modem), then your should use that same card initialy witht the FiPy, at least till you make it work.
-
@patmolloy You can check the installed sequans modem firmware version by running:
import sqnsupgrade sqnsupgrade.info()As an example in my NB1 module I get:
<<< Welcome to the SQN3330 firmware updater [1.2.6] >>> >>> GPy with firmware version 1.20.0.rc13 Your modem is in application mode. Here is the current version: UE6.0.0.0 LR6.0.0.0-41019If I am not mistaken when you use in the
LRa6.xindication this means that the fw is NB-IoT.
But to be 100% sure you can update it quite easily. -
@nftylitak Thanks so much. I had not found any of those instructions or web pages, so you are a complete saviour. I am clearly running the wrong firmware .. so will have a shot at reflashing!!
Thanks a million.
Pat
-
@nftylitak Yes, I'll try the known working SIM first :-)
-
@nftylitak So, went in search of the latest firmware and ended up here https://software.pycom.io/downloads/sequans2.html but it wants username and password! I've pinged pycom support, but wondered if anyone here knows?
-
@patmolloy indeed it requires login/password
user: pycom
password: FDhd>$57#hr;zDFEhttps://forum.pycom.io/topic/4020/firmware-files-for-sequans-lte-modem-now-are-secured
-
@patmolloy The password is here: https://forum.pycom.io/topic/4020/firmware-files-for-sequans-lte-modem-now-are-secured
Well buried in the forum.
If you need older versions: there is a collection here: http://stiny.webd.pl/PYCOM/ -
@nftylitak progress .. seems I have the right firmware now ..
>>> import sqnsupgrade >>> sqnsupgrade.info() <<< Welcome to the SQN3330 firmware updater [1.2.6] >>> >>> FiPy with firmware version 1.20.2.rc7 Your modem is in application mode. Here is the current version: UE6.0.0.0 LR6.0.0.0-41019 IMEI: 354346095736764 >>>And with the known working VodaFone SIM (which of course I had to cut from micro to nano!) I can also get a connection .. have to modify the lte.attach command to ..
lte.attach(apn="nb.inetd.gdsp")This works most of the time. Once in a while when running this script the device disconnects from the PC and immediately reconnects (I get the windows chimes).
I thought I'd push it and add ..
import socket import ssl s = socket.socket() s = ssl.wrap_socket(s) s.connect(socket.getaddrinfo('www.google.com', 443)[0][-1]) s.send(b"GET / HTTP/1.0\r\n\r\n") print(s.recv(4096)) s.close()but this never works .. I always get the disconnect/reconnect thing ...
correction .. this time I got
[OSError: [Errno 113] ECONNABORTED]on the s.send line ...
So definite progress! Thanks for all the help! -
@patmolloy said in NBIoT and FiPy:
. Once in a while when running this script the device disconnects from the PC and immediately reconnects (I get the windows chimes).
@patmolloy I am also seeing frequent interrupts in the communication with FiPy when using an Expansion Board. Did you connect the expansion board directly to a USB port of your laptop/desktop? From my experience, I've noticed that there seem to be some power issues, so I prefer to connect it to my host PC through an externally powered USB switch/hub. Ideally you could use a LiPo and get access through a USB-to-serial cable using Pycom's UART pins.
-
@agotsis actually noticed this too - I am on a powered hub too, but the device is at the end of a long USB extension lead so I can hang it out of a window, as I seem unable to get a signal inside! I am using the expansion board. I see that RTS/CTS have to be disabled on the headers, which had not noticed before, but this makes no difference. I'll try the LiPo route today ..
Bit perplexed why the socket code does not work.
I am going to try the Arkessa SIM now .. that would be great if I can make it work.
Cannot tell you how much I appreciate all of your help! Thanks :-)
-
@patmolloy After attaching to the network and before issuing the socket code did you issue an
lte.connect()command? -
@agotsis said in NBIoT and FiPy:
@patmolloy After attaching to the network and before issuing the socket code did you issue an
lte.connect()command?Yes, indeed!
-
@patmolloy I can't reproduce right now the problem into my FiPy, because my MNO only supports IPv6, but you can do another check to see if you really have a data connection:
If you have access to a Public Server and you can setup a UDP listener then you can try to send a UDP packet as follows, and see if reaches the destination:import socket s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.sendto(b'hello', ('<IP address>', <UDP Port>)) time.sleep(3) s.close()
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