I
- checked with an AT&T store and they provide SIM card for phone only.
- then googled around and found several attempts using Quectel MODEM with AT&T SIM card and AT commands were used for debugging.
- searched in ModalAI Forum and found some AT commands for the model.
- tried but got only
ERROR
voxl2:~$ echo -ne "AT+QNWPREFCFG="mode_pref",LTE:NR5G\r" | busybox microcom /dev/ttyUSB2
AT+QNWPREFCFG=mode_pref,LTE:NR5G
ERROR
- did
voxl-configure-modem
again to see if AT commands can be used and found the same command:
Sep 25 02:41:22 m0054 voxl-modem-start[8392]: qrb5165 based hardware detected...
Sep 25 02:41:22 m0054 voxl-modem-start[8392]: \Setting mode preference to LTE / 5G
Sep 25 02:41:22 m0054 voxl-modem-start[8392]: AT+QNWPREFCFG="mode_pref",LTE:NR5G
Sep 25 02:41:22 m0054 voxl-modem-start[8392]: OK
Sep 25 02:41:23 m0054 voxl-modem-start[8392]: Initalizing cellular connection...
- After 7 minutes I saw:
no lease, failing
. Well, at least, it tried to lease.
Sep 25 02:48:49 m0054 voxl-modem-start[8392]: udhcpc: started, v1.27.2
Sep 25 02:48:49 m0054 voxl-modem-start[8392]: No resolv.conf for interface wwan0.udhcpc
Sep 25 02:48:49 m0054 voxl-modem-start[8392]: udhcpc: sending discover
Sep 25 02:48:52 m0054 voxl-modem-start[8392]: udhcpc: sending discover
Sep 25 02:48:55 m0054 voxl-modem-start[8392]: udhcpc: sending discover
Sep 25 02:48:58 m0054 voxl-modem-start[8392]: udhcpc: sending discover
Sep 25 02:49:01 m0054 voxl-modem-start[8392]: udhcpc: sending discover
Sep 25 02:49:04 m0054 udhcpc[10399]: wwan0: configuration failed: leasefail:
Sep 25 02:49:04 m0054 voxl-modem-start[8392]: udhcpc: no lease, failing
- All of sudden, I saw lease obtained with an IP provided:
Sep 25 02:49:04 m0054 voxl-modem-start[8392]: udhcpc: started, v1.27.2
Sep 25 02:49:05 m0054 voxl-modem-start[8392]: No resolv.conf for interface wwan0.udhcpc
Sep 25 02:49:05 m0054 voxl-modem-start[8392]: udhcpc: sending discover
Sep 25 02:49:05 m0054 voxl-modem-start[8392]: udhcpc: sending select for 10.194.135.84
Sep 25 02:49:05 m0054 voxl-modem-start[8392]: udhcpc: lease of 10.194.135.84 obtained, lease time 7200
Sep 25 02:49:05 m0054 voxl-modem-start[8392]: Too few arguments.
Sep 25 02:49:05 m0054 voxl-modem-start[8392]: Too few arguments.
- I was not sure about the impact of
Too few arguments
error, though.
Well, with an IP address, I tried to:
Unfortunately only responded with timeout messages.
Wondering if I really have the Internet access, I did ifconfig wlan0 down
and the ping google.com
from voxl
. It was still responded !!!
Hmm, how about continue Connecting to QGC over 5G instructions?
- With Tailscale VPN installed, I was able to ssh to the drone using the VPN IP address!!!
- With QGroundControl setup, I was able to see the drone statuses and statistics using the VPN IP address!!!
That means I can control the drone even it is hundreds of miles away!!!
Millions of thanks for great help @tom and @Vinny !!!!!!!!!!!
Still with Too few arguments
error, I am not sure how good the 4G/5G connection would be. Will experiment more to figure out. However, if you guys know anything can be improved, please let me know.