J
I too have a hologram SIM with GPy w/ the default LTE antenna, and at a time earlier in the year I was able to make connections to Vzw networks automatically (after calling attach, and hologram's dashboard just indicated it)
i'm using modem version CATM1 41065 on "MicroPython v1.20.2.rc3-4-g4962aea3b-dirty"
At the time of my post I see there is a 1.20.2.rc10 that might be worth a try for more stability... i'm uncertain what bugfixes may be present since then.
I haven't been able to get it to connect automatically anymore but did notice that if you run
send_at_cmd_pretty('AT!="showphy"')
send_at_cmd_pretty('AT!="fsm"')
and the modem doesn't say it is off, you can list the available networks found using 'AT+COPS=?'
After which you can manually connect to the network with the command
setnetwork(network="331480", mode="2")
technically you could do it by an actual ascii network name but i did it by id as per
https://m2msupport.net/m2msupport/atcops-plmn-selection/
At any
def send_at_cmd_pretty(cmd):
response = lte.send_at_cmd(cmd).split('\r\n')
for line in response:
print(line)
def getscannetworks():
send_at_cmd_pretty('AT+COPS=?')
def getattachednetwork():
send_at_cmd_pretty('AT+COPS?')
def getccid():
send_at_cmd_pretty('AT+CCID')
def getsig():
send_at_cmd_pretty('AT+CSQ')
def getCEREG():
send_at_cmd_pretty('AT+CEREG?')
def setnetwork(network="331480", mode="2"):
# _,mode,network
#0 automatic ( field is ignored)
#1 manual ( field shall be present, and optionally)
#2 deregister from network
#3 set only (for read command +COPS?), do not attempt registration/deregistration ( and fields are ignored); this value is not applicable in read command response
#4 manual/automatic ( field shall be present); if manual selection fails, automatic mode (=0) is entered
#mode = 0 short alphanum, 1 long alphanum, 2 numeric
send_at_cmd_pretty('AT+COPS=1,'+mode+',"'+network+'"')