IOT Sim-card integration
-
@tom Yes exactly it is a new Sim and I went through the
voxl-configure-modem
setup.
The Problem that I think I am having is that in order to figure out if the connection works Voxl tries to ping a server and if it can't reach it it will say it is not connected. With the IOT-Sim it only allows to speak to certain predetermined IPs meaning it cant reach the IP to confirm the connection. -
Which modem are you using, the WP7610 or the WP7607 and where are you located? I want to make sure you're using the correct hardware.
-
I am using the WP7607. The carrier is Vodafone and I am located in Germany.
The APN I am using is: web.vodafone.de
It worked with another Sim-Card so the compatibility shouldn't be the issue here -
Got it, from the output you posted earlier it looks like the APN it is trying to use is
vodafone.de
. Is that the previous APN? The APN might not be setting properly in the setup script. -
That should be the name of the Carrier and not the APN but I went through the
voxl-configure-modem
multiple times and it should be set right.
As already mentioned here:@tom Yes exactly it is a new Sim and I went through the
voxl-configure-modem
setup.
The Problem that I think I am having is that in order to figure out if the connection works Voxl tries to ping a server and if it can't reach it it will say it is not connected. With the IOT-Sim it only allows to speak to certain predetermined IPs meaning it cant reach the IP to confirm the connection.I am thinking the Problem is with the restricted access to certain IPs and the checking of one not in those in the startup process. Do you know what happens during the startup of the modem and how it checks to see if its connected to the internet?
-
@Arrowtec I don't believe that it pings a specific address that your SIM cannot access, we use this same modem with our private LTE networks.
Can you run the following to check what APN is set on the modem?
echo -ne "AT+CGDCONT?\r" | busybox microcom -t 1000 /dev/ttyUSB2
I understand that you have run
voxl-configure-modem
multiple times but I have seen on rare occasion where the APN doesn't set correctly. -
And could you please post the contents of
/etc/modalai/voxl-modem.conf
? I want to make sure I'm not missing anything obvious. -
Will do when I get in the office, thanks
-
@Arrowtec Thanks
-
@tom
The APN seems to default to "internet" but after thevoxl-configure-modem
its set correctly as seen below. After that it is still not working / showing up.Here is
echo -ne "AT+CGDCONT?\r" | busybox microcom -t 1000 /dev/ttyUSB2
:~ # echo -ne "AT+CGDCONT?\r" | busybox microcom -t 1000 /dev/ttyUSB2 AT+CGDCONT? +CGDCONT: 1,"IP","web.vodafone.de","0.0.0.0",0,0,0,0 +CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0 +CGDCONT: 3,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1 OK
Here is the content of
/etc/modalai/voxl-modem.conf
:~ # cat /etc/modalai/voxl-modem.conf { "modem_type": "v2", "apn": "spe.inet4g.gdsp", "world": "true", "microhard_ip": "192.168.168.100", "modallink": "false", "placeholder": "hello world" }
And here again the
systemctl status -l voxl-modem
:~ # systemctl status -l voxl-modem ā voxl-modem.service - Modem Initialization Loaded: loaded (/etc/systemd/system/voxl-modem.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2021-04-07 09:19:38 UTC; 11min ago Process: 4400 ExecStartPre=/bin/sleep 2 (code=exited, status=0/SUCCESS) Main PID: 4401 (voxl-modem-star) CGroup: /system.slice/voxl-modem.service āā4401 /bin/bash /usr/bin/voxl-modem-start.sh āā5666 /usr/bin/python /usr/bin/sierra.py Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: "plmn_mnc": 2, Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: "plmn_description": "vodafone.de", Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: "roaming": true Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: } Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: ] Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: Successfully registered with the network Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: Starting network Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: Checking connection status Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: "disconnected" Apr 07 09:30:38 apq8096 voxl-modem-start.sh[4401]: Connection failed
Furthermore here is
ifconfig
if that helps:~ # ifconfig docker0 Link encap:Ethernet HWaddr 02:42:DD:11:4A:98 inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0 inet6 addr: fe80::42:ddff:fe11:4a98/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:152 (152.0 B) TX bytes:216 (216.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr EC:5C:68:CD:21:5B inet addr:192.168.7.122 Bcast:192.168.7.255 Mask:255.255.255.0 inet6 addr: fe80::ee5c:68ff:fecd:215b/64 Scope:Link inet6 addr: fd48:4c86:10be:e600:ee5c:68ff:fecd:215b/64 Scope:Global inet6 addr: 2a01:598:b00c:e53c:ee5c:68ff:fecd:215b/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:110 errors:0 dropped:0 overruns:0 frame:0 TX packets:104 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3000 RX bytes:11644 (11.3 KiB) TX bytes:15615 (15.2 KiB)
Let me know if you can troubleshoot anything off the new information
-
The
echo -ne "AT+CGDCONT?\r" | busybox microcom -t 1000 /dev/ttyUSB2
is btw from when I was using the old APN so dont get confused by that, here is the new one:~ # echo -ne "AT+CGDCONT?\r" | busybox microcom -t 1000 /dev/ttyUSB2 AT+CGDCONT? +CGDCONT: 1,"IP","spe.inet4g.gdsp","0.0.0.0",0,0,0,0 +CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0 +CGDCONT: 3,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1 OK
-
@Arrowtec Okay this all looks normal, have you tested this SIM card in a different device to confirm that it is indeed functional?