I’m having trouble with the Nova connection on a Raspberry Pi Zero W.
I run hologram network connect -v
which fails with
INFO: Detected modem NovaM
INFO: found working port at ttyUSB1
INFO: chatscript file: /usr/local/lib/python2.7/dist-packages/Hologram/Network/Modem/chatscripts/default-script
INFO: Instantiated a NovaM interface with device name of /dev/ttyUSB1
INFO: Connecting to cell network with timeout of 200 seconds
INFO: Checking for existing PPP sessions
INFO: Starting pppd
ERROR: Modem hangup - possibly due to an unregistered SIM
INFO: Failed to connect to cell network
Failed to start PPP
I have a Python script
hologram = HologramCloud(credentials, network='cellular')
result = hologram.network.connect()
if result == False:
print 'Failed to connect to cell network'
recv = hologram.sendMessage(
data,
topics = ["textdata"],
timeout = 3
)
print hologram.getResultString(recv)
hologram.network.disconnect()
Which fails with
No handlers could be found for logger "Hologram.Network.Modem.ModemMode.pppd"
Failed to connect to cell network
Unknown response code
but sometimes with
Exceptions.HologramError.SerialError: Unable to detect a usable serial port
The dashboard says the status is Connected
.
hologram send --cloud 'message'
sometimes works and the message appears in the dashboard, but it sometimes fails ERROR: Unable to detect a usable serial port
.
EDIT: now it’s always failing RESPONSE MESSAGE: Unknown response code
.
I am connected to another wifi network. Is this causing a problem?
I have not configured any APN settings.
The blue and red lights on the modem are on.
ip route
returns
default via 192.168.0.1 dev wlan0 src 192.168.0.73 metric 302
169.254.0.0/16 dev wwan0 proto kernel scope link src [ip removed] metric 203
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.73 metric 302
and ifconfig
is
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.73 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::32b7:2975:deca:7eb8 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:38:3a:ce txqueuelen 1000 (Ethernet)
RX packets 1785 bytes 193690 (189.1 KiB)
RX errors 0 dropped 60 overruns 0 frame 0
TX packets 789 bytes 130292 (127.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet [ip removed] netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::9898:c389:157b:93f6 prefixlen 64 scopeid 0x20<link>
ether 8a:7e:07:11:07:60 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I’ve had no problems connecting until now. I was sending dozens of messages a couple days ago.
The only thing I changed recently is upgrading to the Professional Plan from the free one.