Freematics One+ - PING works but nothing else
Posted: Sat Oct 26, 2024 5:38 pm
I have a Freematics One+ running telelogger as bundled with 'firmware_v5' which is having issues connecting to my locally hosted 'traccar' server. The CELL_APN, SERVER_HOST and SERVER_PORT are correctly configured. I have made not changes to the telelogger code apart from modifying 'config.h'
CELL_APN is 'telstra.internet'
SERVER_PORT is 5170
SERVER_HOST is the DNS name of my private 'traccar' server
'tcpdump' on my 'traccar' server shows incoming UDP packets sent to port 5170 that correspond to the '[CELL] Ping...' messages on the Freematics serial output as follows:
[CELL] Activating...
CELL:SIM7070G
IMEI:xxxxxxxxx
[CELL] Searching...
APN:telstra.internet
Operator:Belong
[CELL] IP:10.153.58.197
[CELL] Ping...
[CELL] Deactivated
The server receives 'Cell:Ping' UDP packets from the Freematics device and both shows the packet in 'tcpdump' and updates the device in 'traccar'- proving that the cellular APN and host name:port is correctly configured in 'config.h' in 'telelogger' just fine and port forwarding and firewalls are correctly configured. This is however intermittent (sometimes there are no [PING] messages at all when I power cycle the Freematics device) or is possibly only occurring after a long period of time.
I also get '[NET] Server timeout' messages in the output when the device appears to be trying to upload data and no UDP packets are received on the 'traccar' host from the Freematics One+ or appear in 'tcpdump'
The Freematics serial output shows 'LOGIN(my server:5170)...' messages but there is never any indication in 'tcpdump' on my 'traccar' server showing any correlation between the 'LOGIN' message and any incoming UDP packet being received.
I am running the latest version (as at October 26) built on Ubuntu Linux 22.04 using VScode and Platformio. The code builds and uploads to the Freematics device without issues. I am using a 'Belong' mobile data SIM (connected to Telstra and using the 'telstra.internet' APN) and the device has a fresh 16GB SD card installed. I am running the Freematics device in my study (not on the car yet) and 4G reception is great (4 out of 5 bars). The device has a new micro-SD card installed.
I have independently tested the Belong SIM in a 4G modem connected to a standalone laptop - sending UDP packets to my 'traccar' server on port 5170 using the Linux 'nc' command works exactly as expected.
At this point I am thinking that there is either an incorrect default setting in 'config.h' or there is some weird bug in the code. Or something else.
Any ideas ?
Sean
CELL_APN is 'telstra.internet'
SERVER_PORT is 5170
SERVER_HOST is the DNS name of my private 'traccar' server
'tcpdump' on my 'traccar' server shows incoming UDP packets sent to port 5170 that correspond to the '[CELL] Ping...' messages on the Freematics serial output as follows:
[CELL] Activating...
CELL:SIM7070G
IMEI:xxxxxxxxx
[CELL] Searching...
APN:telstra.internet
Operator:Belong
[CELL] IP:10.153.58.197
[CELL] Ping...
[CELL] Deactivated
The server receives 'Cell:Ping' UDP packets from the Freematics device and both shows the packet in 'tcpdump' and updates the device in 'traccar'- proving that the cellular APN and host name:port is correctly configured in 'config.h' in 'telelogger' just fine and port forwarding and firewalls are correctly configured. This is however intermittent (sometimes there are no [PING] messages at all when I power cycle the Freematics device) or is possibly only occurring after a long period of time.
I also get '[NET] Server timeout' messages in the output when the device appears to be trying to upload data and no UDP packets are received on the 'traccar' host from the Freematics One+ or appear in 'tcpdump'
The Freematics serial output shows 'LOGIN(my server:5170)...' messages but there is never any indication in 'tcpdump' on my 'traccar' server showing any correlation between the 'LOGIN' message and any incoming UDP packet being received.
I am running the latest version (as at October 26) built on Ubuntu Linux 22.04 using VScode and Platformio. The code builds and uploads to the Freematics device without issues. I am using a 'Belong' mobile data SIM (connected to Telstra and using the 'telstra.internet' APN) and the device has a fresh 16GB SD card installed. I am running the Freematics device in my study (not on the car yet) and 4G reception is great (4 out of 5 bars). The device has a new micro-SD card installed.
I have independently tested the Belong SIM in a 4G modem connected to a standalone laptop - sending UDP packets to my 'traccar' server on port 5170 using the Linux 'nc' command works exactly as expected.
At this point I am thinking that there is either an incorrect default setting in 'config.h' or there is some weird bug in the code. Or something else.
Any ideas ?
Sean