> ls dev/ttyUSB*
dev/ttyUSB0 dev/ttyUSB1 dev/ttyUSB2 dev/ttyUSB3 dev/ttyUSB4
Device file | SIMcom composite device |
---|---|
ttyUSB0 | DIAG interface |
ttyUSB1 | NMEA interface |
ttyUSB2 | ATCOM interface |
ttyUSB3 | MODEM interface |
ttyUSB4 | Wireless Ethernet Adapter interface |
poff
a | 重复上次命令 |
---|---|
ate0 | 关闭回显 |
ate1 | 开启回显 |
at+cgmm | 可查看模块名 |
at+cgmr | 可查看模块版本信息 |
at+cgmi | 可查看模块制造商 |
at+csq | 可查看信号强度 |
at+cpin? | 查看SIM卡是否到位 |
at+creg? | 查看SIM卡是否注册商,网络注册情况。 |
at+cops? | 查看SIM卡运营商 |
AT+CIMI | Get device phone number |
AT+GSN | Get the device serial number |
ATI | Get Product name |
AT | Check Modem communciation |
AT+CFUN? | Get the device functionlity |
AT+IPR? | Get the Simcom module port speed |
> microcom -t 10000 -s 115200 /dev/ttyUSB2
at
OK
at+cgmm
SIMCOM_SIM5360E
OK
at+cgmr
+CGMR: 35316B08SIM5360E
OK
at+cgmi
SIMCOM INCORPORATED
OK
at+csq
+CSQ: 16,99
OK
at+cpin?
+CPIN: READY
OK
at+creg?
+CREG: 0,5
OK
at+cops?
+COPS: 0,0,"Vodafone.de DATA ONLY",2
+creg [mode], [stat],([lac], [ci])
[mode]:
0: close the networking register return code
1: when stats of network register changes, actives the networking register return code
2:actives the networking register return code, and shows information of location.
[stat]:
0:not register Network, not find operators
1:register to local Network
2:find operators, not register Network
3:reject to register
4:unknown data
5:register roaming Network
[lac]: area code(HEX)
[ci]: area ID(HEX)
SIMCOM mPCIe modems combine HSDPA/3G/LTE wireless connectivity along with GPS functions (with support for active GPS antenna)
These modems are very cost-effective for medium to high volume usage and provide excellent results in both upload/download speeds and GPS response for tracking applications.
For this example we'll be using a SIM5360E modem, but the same process will be similar on all SIMCOM modems.
As the SIMCOM 5360E device uses a Active GPS antenna we can use most of the gps aerials on the market or combo antennas.
There are a few commands we need to understand to correctly configure the GPS setup on the modem
AT+CGPSCOLD | Starts GPS service + NMEA Feed on /dev/ttyUSB1 |
---|---|
AT+CGPS=0 | Stops GPS Service + NMEA Feed on /dev/ttyUSB1 |
AT+CGPSNMEA=xxx | Configure which NMEA output sentences are generated |
AT+CGPSINFO | Run on AT command port to give a one-shot reading |
To do the tests below we'll need to setup two terminal windows to monitor /dev/ttyUSB2 and /dev/ttyUSB1 so we'll run two minicom sessions.
To do this run the below commands, one per windows
> minicom -D /dev/ttyUSB2 -b 115200
> minicom -D /dev/ttyUSB1 -b 115200