CAT M1
-
Greetings,
I am having issues attaching to the services. My SIM and IMEI are both registered. My code is below, any advice? I have both antennas attached and the SIM card inserted.
It seemed to work once, it got to for sure the first green RGB blink, but hasn't since
import socket import ssl import time from network import LTE import pycom pycom.heartbeat(False) pycom.rgbled(0x7f0000) # red time.sleep(2) pycom.rgbled(0x7f0000) # red lte = LTE() # instantiate the LTE object lte.attach() # attach the cellular modem to a base station while not lte.isattached(): time.sleep(0.25) print("Not Attached") lte.connect() # start a data session and obtain an IP address while not lte.isconnected(): time.sleep(0.25) print("not Connect") s = socket.socket() s = ssl.wrap_socket(s) s.connect(socket.getaddrinfo('www.google.com', 443)[0][-1]) pycom.rgbled(0xff00) # turn on the RGB LED in green colour time.sleep(2) s.send(b"GET / HTTP/1.0\r\n\r\n") print(s.recv(4096)) pycom.rgbled(0x0000FF) # turn on the RGB LED in green colour time.sleep(2) s.close() lte.disconnect() lte.dettach()
-
Update: Some more information...
I am in the USA, and registered the SIM card on a verizon network that mentioned it was compatible with the FiPY IMEI. Below is a screenshot of some commands. Firmware is 33080, this is old...could this be the issue?, but it seems Pycom is releasing a new modem update fix soon?
Do I need to set the APN manually, or is there something I am missing?
I have a CATM1 modem with the same kind of SIM card and it gets signal just fine here.