ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    IOT Sim-card integration

    Cellular Modems
    2
    14
    924
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tomT
      tom admin
      last edited by

      Hi @Arrowtec ,

      Just so I fully understand the situation:

      You have a modem that you were able to connect to the network successfully with previously and now you want to use a different SIM card with the same modem?

      If that is the case it is possible that the APN of the SIM has changed, especially if it is a different carrier. Have you ran through voxl-configure-modem again and entered the correct APN for this new SIM card?

      1 Reply Last reply Reply Quote 0
      • A
        Arrowtec
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • tomT
          tom admin
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • A
            Arrowtec
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • tomT
              tom admin
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • A
                Arrowtec
                last edited by Arrowtec

                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?

                1 Reply Last reply Reply Quote 0
                • tomT
                  tom admin
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • tomT
                    tom admin
                    last edited by

                    And could you please post the contents of /etc/modalai/voxl-modem.conf? I want to make sure I'm not missing anything obvious.

                    1 Reply Last reply Reply Quote 0
                    • A
                      Arrowtec
                      last edited by

                      Will do when I get in the office, thanks

                      tomT 1 Reply Last reply Reply Quote 0
                      • tomT
                        tom admin @Arrowtec
                        last edited by

                        @Arrowtec Thanks šŸ™‚

                        1 Reply Last reply Reply Quote 0
                        • A
                          Arrowtec
                          last edited by Arrowtec

                          @tom
                          The APN seems to default to "internet" but after the voxl-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 šŸ™‚

                          1 Reply Last reply Reply Quote 0
                          • A
                            Arrowtec
                            last edited by

                            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
                            
                            1 Reply Last reply Reply Quote 0
                            • tomT
                              tom admin
                              last edited by

                              @Arrowtec Okay this all looks normal, have you tested this SIM card in a different device to confirm that it is indeed functional?

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Powered by NodeBB | Contributors