# How to use test SIM to connect to a 5G test network. VOXL2 drone platform

Source: https://forum.modalai.com/topic/4128/how-to-use-test-sim-to-connect-to-a-5g-test-network-voxl2-drone-platform
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Tags: testsim
Posted: 2025-01-28 18:33:05 UTC by RSAUser1
Replies: 13 · Views: 2397

## RSAUser1 · 2025-01-28 18:33:05 UTC

How do we activate voxl_modem? We see enabled but not running. used systemctl enable voxl-modem
When going through setup process voxl-configure-modem, we pick 1(V2) 2 (no modallink) and 7 (for custom), we then enter our APN. We get a response of waiting for ttyUSB2 then it gets hung up. 

We have been trying to search if there is an issue with USB2, here were some steps we tried on powershell
![d652cc1e-da32-4182-a86f-e6a6fa6a3c82-image.png](https://forum.modalai.com/assets/uploads/files/1738088767839-d652cc1e-da32-4182-a86f-e6a6fa6a3c82-image.png) 
![b57c73ea-172e-4393-804a-ab852f0fe359-image.png](https://forum.modalai.com/assets/uploads/files/1738088955907-b57c73ea-172e-4393-804a-ab852f0fe359-image.png) 

Any idea for getting this modem activated? The drone is using the Sierra wireless 5G EM9091 modem.

## Reply by tom (ModalAI staff) · 2025-01-28 18:57:42 UTC

@RSAUser1 You'll want to run `voxl-configure-modem` and select `em9191`, say `no` to ModalLink and then select/enter your SIM card's APN

## Reply by RSAUser1 · 2025-01-28 21:02:33 UTC (in reply to tom)

@tom Sorry I had a typo we are using the EM9291 5G modem
but it looks like choosing em9191 did what the documentation showed, got confused when it stated us v2 for sierra wireless board. Thanks!
The does show as active now.  but does state ''still waiting on WWAN0 to start up''
We still arent seeing an RF or messages back in response to a DL signal from the Base station ( which sends MIB1 and SIB1), any insight to why that might be happening?
We are trying to connect on n14 which is shown as a supported NR band. Is modem locked to any specific carrier or does 'custom' option change anything that's supported?

## Reply by groupo · 2025-01-28 23:24:53 UTC (in reply to RSAUser1)

@RSAUser1 you may want to query the modem more directly with AT  commands to confirm it can 1) see your BTS 2) is able to connect on that band (it should be available on all bands by default but doesnt hurt to check)

ModalAI hasnt seemed to implement AT commands w/ the EM9291 yet but I posted a way to do it here

https://forum.modalai.com/post/19131

There is a reference guide on AT commands on the Sierra Wireless website. "AT+COPS=?" would probably be a good starting point

## Reply by groupo · 2025-01-28 23:26:05 UTC (in reply to groupo)

@tom Any idea when AT commands to the EM9291 will be supported by VOXL SDK?

## Reply by RSAUser1 · 2025-01-29 15:18:45 UTC (in reply to groupo)

@groupo Thanks for the information. 
When I follow your other post starting with lsusb I do not see a sierra wireless interface? Do I need to access through one of the debugging ports on the side, instead of the main USB-type C?
Here is what lsusb returned:
voxl2:/$ lsusb
Bus 002 Device 002: ID 0424:5744 Standard Microsystems Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0424:2740 Standard Microsystems Corp.
Bus 001 Device 003: ID 0bda:0811 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0424:2744 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

## Reply by RSAUser1 · 2025-01-29 15:55:19 UTC (in reply to RSAUser1)

So one thing I forgot to mention is we installed the sierra wireless drivers SDX65 on their website but we still arent seeing a modem in device manager as noted in the EM9291 user guide (when connecting USB C there should be QC in ports and Sierra wireless in modems):
![264bcd5f-ec98-493d-9a0a-2f2e6be9f8c7-image.png](https://forum.modalai.com/assets/uploads/files/1738166117217-264bcd5f-ec98-493d-9a0a-2f2e6be9f8c7-image.png)

## Reply by groupo · 2025-01-29 15:56:22 UTC (in reply to RSAUser1)

@RSAUser1 That is interesting. No, I don't think so. Here is something that got me. You have to unscrew the modem board to put the SIM in on the underbelly. Did you screw it back on fully? I had not and it took embarrassingly long to realize (Tom told me). Make you you screw it back down so it connects properly. I don't see your WIFI dongle either (if you have one). That also would be knocked offline if the modem board wasnt connected properly (at least for me that was the case)

## Reply by groupo · 2025-01-29 15:58:12 UTC (in reply to RSAUser1)

@RSAUser1 you should not need to download any drivers to do the steps I listed, in fact I almost advise against it unless you know what you're doing. I certainly didn't and still don't. I found my workaround much easier. The idea of outdated drivers is a *theory* I have, but modalAI never confirmed if that was the case. Probably @tom or Travis could speak more to that

## Reply by RSAUser1 · 2025-01-29 16:50:54 UTC (in reply to groupo)

@groupo Wow, trying to save time since I need to remove the SIM after I validate this connecting. Thanks, I was thinking since we were talking to it all was good.  Getting some errors when doing status voxl-modem but believe thats because we have a test SIM and it cant connect to a live network.
       Mar 02 12:59:53 m0054 voxl-modem-start[1854]:         Service: 'wds'
       
       Mar 02 12:59:53 m0054 voxl-modem-start[1854]:             CID: '102'
       
       Mar 02 12:59:53 m0054 voxl-modem-start[1854]: Error detected! Retrying...
       
       Mar 02 12:59:54 m0054 voxl-modem-start[1854]: error: couldn't start network: QMI protocol error (14): 'CallFailed'
       
       Mar 02 12:59:54 m0054 voxl-modem-start[1854]: call end reason (3): generic-no-service
       
       Mar 02 12:59:54 m0054 voxl-modem-start[1854]: verbose call end reason (3,2001): [cm] no-service
       
       Mar 02 12:59:54 m0054 voxl-modem-start[1854]: [/dev/cdc-wdm0] Client ID not released:
       
       Mar 02 12:59:54 m0054 voxl-modem-start[1854]:         Service: 'wds'
       
       Mar 02 12:59:54 m0054 voxl-modem-start[1854]:             CID: '103'
       
       Mar 02 12:59:54 m0054 voxl-modem-start[1854]: Error detected! Retrying...

Going to see if we setup our BS emulator

## Reply by groupo · 2025-01-29 18:20:39 UTC (in reply to RSAUser1)

@RSAUser1 glad its working! You can use AT commands to confirm you can 'see' your network too

## Reply by RSAUser1 · 2025-01-29 19:40:23 UTC (in reply to groupo)

@groupo  THanks for your help! One strange thing is that I still don't have the modem listed in my PCs device manager. Still waiting on my emulator to become available to test if we see the 5G broadcast.

Seems like some part of the modem is still not reachable, as I it still cant communicate QMI device which is part of modem @tom have you seen this issue before?

## Reply by RSAUser1 · 2025-01-29 20:43:28 UTC (in reply to RSAUser1)

Could something still not be seated properly or maybe a cable has come lose,?
voxl2:/$ systemctl status voxl-modem
● voxl-modem.service - Modem Initialization
   Loaded: loaded (/etc/systemd/system/voxl-modem.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2023-03-02 12:58:06 UTC; 31s ago
  Process: 1263 ExecStartPre=/bin/sleep 2 (code=exited, status=0/SUCCESS)
 Main PID: 1861 (voxl-modem-star)
    Tasks: 7 (limit: 4915)
   CGroup: /system.slice/voxl-modem.service
           ├─1861 /bin/bash /usr/bin/voxl-modem-start
           ├─2144 /usr/lib/libmbim/mbim-proxy

           ******************└─2208 qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wds-start-network=ip-type=4,apn=cmx500.rohde-schwa
Mar 02 12:58:14 m0054 voxl-modem-start[1861]: Waiting for wwan0 to come up...**
Mar 02 12:58:15 m0054 voxl-modem-start[1861]: Waiting for wwan0 to come up...
Mar 02 12:58:16 m0054 voxl-modem-start[1861]: Waiting for wwan0 to come up...
Mar 02 12:58:17 m0054 voxl-modem-start[1861]: Waiting for wwan0 to come up...
Mar 02 12:58:18 m0054 voxl-modem-start[1861]: Waiting for wwan0 to come up...
Mar 02 12:58:19 m0054 voxl-modem-start[1861]: wwan0 is up!
Mar 02 12:58:19 m0054 voxl-modem-start[1861]: Sierra detected!
Mar 02 12:58:20 m0054 voxl-modem-start[1861]: Starting qmi network...
Mar 02 12:58:35 m0054 voxl-modem-start[1861]: error: couldn't open the QmiDevice: Transaction timed out
Mar 02 12:58:35 m0054 voxl-modem-start[1861]: Error detected! Retrying...****************

Then sometimes it will give 'error: couldn't create client for the 'wds' service: QMI protocol error (5)'

## Reply by groupo · 2025-01-29 22:57:19 UTC (in reply to RSAUser1)

@RSAUser1 yeah i'd probably pass to @tom . The modem is seems connected, otherwise you wouldnt see wwan0 come up. Once I had access to AT commands I ditched QMI which I think is more or less a wrapper for those commands anyway.
