ELASTEL TECHNOLOGY CO., LTD.
[08-02_09:39:10:615] ifconfig wwan0 up
[08-02_09:39:10:621] No default.script found, it should be in '/usr/share/udhcpc/' or
'/etc//udhcpc' depend on your udhcpc version!
[08-02_09:39:10:621] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending select for xx.xx.xx.xx
udhcpc: lease of xx.xx.xx.xx obtained, lease time 7200
[08-02_09:39:10:749] ip -4 address flush dev wwan0
[08-02_09:39:10:753] ip -4 address add xx.xx.xx.xx/30 dev wwan0
[08-02_09:39:10:759] ip -4 route add default via xx.xx.xx.xx dev wwan0
6.3 GPS Programming
Some cellular module like Quectel EC25 support built-in base station GPS data acquisition. To get GPS
data from cellular module, install cellular module on mini PCIe 1 as above section indicated.
You may also need an external GPS antenna installed on site for better signal.
1) Send AT command to enable GPS data acquisition to /dev/ttyUSB2 block
AT+QGPS=1 # To enable GPS acquisition.
AT+QGPS=0 # To disable GPS acquisition.
Example:
echo -en "AT+QGPS=1\r\n" > /dev/ttyUSB2 | cat /dev/ttyUSB2 &
return:
OK
2) Obtain the GPS data from /dev/ttyUSB1
Example:
cat /dev/ttyUSB1
Return: