FAQs - aeristhings/aeris-modsdk-py GitHub Wiki
aerismodsdk python package FAQs
I want to check if my module is registered in network
Command to run
$ poetry run aeriscli modem
I want to check if I am able to access internet from my device.
Command to run
$ poetry run aeriscli packet ping 8.8.8.8
I want to resolve DNS
Command to run
$ poetry run aeriscli packet lookup google.com
Q & A
Configuring modem
Using interactive guide
$ poetry run aeriscli config
>> ATE0
<< OK
Modem mfg (ublox, quectel, telit) [quectel]: quectel
COM port (USB0, USB1, USB2, USB3, USB4) [USB2]: USB2
Without interactive guide. Set the manufacturer to quectel. Set the comport to USB2 and APN to lpiot.aer.net
$ poetry run aeriscli --modemmfg quectel --comport USB2 --apn lpiot.aer.net
Enabling edrx
$ poetry run aeriscli edrx enable
>> ATE0
<< OK
edrx is now enabled for LTE-M
Enabling edrx with time setting
$ poetry run aeriscli edrx enable --time 0000
Entering AT commands
$ poetry run aeriscli interactive
>> ATE0
<< ATE0
OK
>> ATE0
<< OK
Enter AT command or type exit
>> AT
>> AT
<< OK
>>
GET request on 8.8.8.8
$ poetry run aeriscli packet get 8.8.8.8
DNS lookup request on google.com
$ poetry run aeriscli packet lookup google.com
Ping request on 8.8.8.8
$ poetry run aeriscli packet ping 8.8.8.8
Sending UDP packets to 8.8.8.8
$ poetry run aeriscli packet udp 8.8.8.8
Enabling PSM mode
$ poetry run aeriscli psm enable
>> ATE0
<< ATE0
OK
TAU: 60 s
TAU config: 01111110
Active time: 30
Active time config: 00001111
>> ATE0
<< OK
>> AT+CPSMS=1,,,"01111110","00001111"
<< OK
>> AT+QCFG="psm/urc",1
<< OK
Enabling PSM mode with other flags
Setting Tracking Area Update value to 300 and Active Time to 300
$ poetry run aeriscli psm enable --tau 300 --atime 300
TAU config: 10001010
Active time config: 00100101
2020-03-26 15:47:26 PSM is enabled with TAU: 300 s and AT: 300 s
PSM testing mode
Examples of all possible flags to set. In this case, timeout is set to 500. PSM TAU is set 180. PSM AT at 30. Delay of 5 seconds
$ poetry run aeriscli psm test --timeout 500 --psmtau 180 --psmat 30 --delay 5
TAU config: 10000110
Active time config: 00001111
2020-03-26 15:50:30 PSM is enabled with TAU: 180 s and AT: 30 s
2020-03-26 15:50:30 Starting test for 500 seconds
2020-03-26 15:50:30 Packet session active: 10.52.103.88
2020-03-26 15:50:31 Listening on port: 3030
2020-03-26 15:50:35 Sent echo command: {"delay":5000, "ip":"10.52.103.88","port":3030}
2020-03-26 15:50:35 Starting to wait 500s for URC.
2020-03-26 15:50:40 <<
2020-03-26 15:50:40 << +QIURC: "recv",1,47,"192.168.42.9",3030
2020-03-26 15:50:40 << {"delay":5000, "ip":"10.52.103.88","port":3030}