ppp0 device created with IP but can't ping on new version of hologram-python

I have a Hologram Nova U201 and am using it with a Raspberry Pi to get a cell connection. I recently rebuilt the Pi’s image with up to date software because Raspbian 10 is now available. However, I can’t seem to get the Hologram modem to work anymore. It successfully creates the ppp0 interface and gets an IP, but I can’t ping. I am now using hologram-python 0.8.2, and was previously using 0.7.6. I wasn’t able to figure out how to install the old version on Debian 10 to test and see if that works. Is there a way?

Successful hologram network connect:

Summary

pi@raspberrypi:~ $ sudo hologram network connect -vv
DEBUG: checking for vid_pid: (‘12d1’, ‘1506’)
DEBUG: checking for vid_pid: (‘12d1’, ‘1001’)
DEBUG: checking for vid_pid: (‘05c6’, ‘90b2’)
DEBUG: checking for vid_pid: (‘1546’, ‘1102’)
INFO: Detected modem Nova_U201
DEBUG: checking port ttyACM0
DEBUG: [AT]
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {+PACSP1}
DEBUG: URC! +PACSP1
DEBUG: handleURC state: 0
DEBUG: URC was not handled. ‘+PACSP1’
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {AT}
DEBUG: {OK}
INFO: found working port at ttyACM0
INFO: chatscript file: /usr/local/lib/python2.7/dist-packages/Hologram/Network/Modem/chatscripts/default-script
DEBUG: [ATE0]
DEBUG: {ATE0}
DEBUG: {OK}
DEBUG: [AT+CMEE=2]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CPIN?]
DEBUG: {}
DEBUG: {+CPIN: READY}
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CTZU=1]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CTZR=1]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CPMS=“ME”,“ME”,“ME”]
DEBUG: {}
DEBUG: {+CPMS: 1,300,1,300,1,300}
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CMGF=0]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CNMI=2,1]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CREG=2]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CGREG=2]
DEBUG: {}
DEBUG: {OK}
INFO: Instantiated a Nova_U201 interface with device name of /dev/ttyACM0
DEBUG: [AT+UUSBCONF?]
DEBUG: {}
DEBUG: {+UUSBCONF: 0,"",“0x1102”}
DEBUG: {}
DEBUG: {OK}
DEBUG: USB modem mode: 0
INFO: Connecting to cell network with timeout of 200 seconds
INFO: Checking for existing PPP sessions
INFO: Starting pppd
DEBUG: checking port ttyACM0
DEBUG: unable to write to port
DEBUG: checking port ttyACM1
DEBUG: [AT]
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {+PACSP1}
DEBUG: URC! +PACSP1
DEBUG: handleURC state: 0
DEBUG: URC was not handled. ‘+PACSP1’
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {}
DEBUG: {AT}
DEBUG: {OK}
INFO: found working port at ttyACM1
DEBUG: [ATE0]
DEBUG: {ATE0}
DEBUG: {OK}
DEBUG: [AT+CMEE=2]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CPIN?]
DEBUG: {}
DEBUG: {+CPIN: READY}
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CTZU=1]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CTZR=1]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CPMS=“ME”,“ME”,“ME”]
DEBUG: {}
DEBUG: {+CPMS: 1,300,1,300,1,300}
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CMGF=0]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CNMI=2,1]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CREG=2]
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CGREG=2]
DEBUG: {}
DEBUG: {OK}
INFO: Successfully connected to cell network
INFO: Adding routes to Hologram cloud
INFO: Adding system-wide default route to cellular interface
PPP session started

ip a

Summary

pi@raspberrypi:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:aa:1a:05 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:ff:4f:50 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.7/24 brd 192.168.1.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::42e6:da7e:4196:3444/64 scope link
valid_lft forever preferred_lft forever
5: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet 25.189.245.233/32 scope global ppp0
valid_lft forever preferred_lft forever

ip route show

Summary

pi@raspberrypi:~ $ ip route show
default via 25.189.245.233 dev ppp0 proto static
default via 192.168.1.1 dev wlan0 src 192.168.1.7 metric 303
10.176.0.0/16 via 25.189.245.233 dev ppp0 proto static
10.254.0.0/16 via 25.189.245.233 dev ppp0 proto static
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.7 metric 303

ping fail

Summary

pi@raspberrypi:~ $ ping -I ppp0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 25.189.245.233 ppp0: 56(84) bytes of data.
^C
— 8.8.8.8 ping statistics —
8 packets transmitted, 0 received, 100% packet loss, time 7294ms

Fixed by editing the following file and changing “hologram” to “pwg” - I am not using the Hologram SIM card. I guess this is the APN.

/usr/local/lib/python2.7/dist-packages/Hologram/Network/Modem/chatscripts/default-script

OK AT+CGDCONT=1,“IP”,“pwg”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.