2 posts / 0 new
Last post
jdanders
Module pp3 has 0.0.0.0 IP address and doesn't connect to cell network

I've noticed my LEAF will occasionally get into a state where things work just fine on Wifi, but once the car leaves Wifi I lose ability to communicate with it. At least a couple of times when I've taken a look at things while in this state, I've noticed that the pp3 interface is messed up.

 

OVMS# network status

Interface#3: pp3 (ifup=1 linkup=0)

  IPv4: 0.0.0.0/255.255.255.255 gateway 0.0.0.0

 

MODEM Status

Model: SIM7600

Network Registration: NotRegistered

Provider: T-Mobile Hologram

Signal: -71 dBm

Mode: LTE,Online

State: NetWait

Mux: Status up

PPP: Not connected

Last Error: User Interrupt

GPS: Connected on channel: #1

So the interface is up, but it does not have a valid IP address. From Hologram webpage, it says:

Ready Status

This device is activate and has access to the Hologram network. It is not currently tranmitting data.

If I manually stop and start the Cellular Modem, I get a valid IP address, linkup=1, Network Registration=RegisteredRoaming, State=NetMode, PPP=Connected. Also, Hologram status goes form "Ready" to "Connected."

 

Is there any code to detect this case and restart the Cellular Modem?

If not, can I get a pointer to where in the code this could be added? I'm willing to take a look.

dexter
dexter's picture
Module pp3 has 0.0.0.0 IP address

The code to detect this case is here…

https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/blob/master/vehicle/OVMS.V3/components/ovms_cellular/src/ovms_cellular.cpp#L1060

…assuming it was a PPP disconnect, which you should assert first by enabling logging and analyzing the next occurrence.

Regards,
Michael

Log in or register to post comments