Changes between Version 8 and Version 9 of X300B


Ignore:
Timestamp:
11/26/22 01:05:18 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • X300B

    v8 v9  
    6060root@OpenWrt:~#
    6161}}}
     62
     63== GPS ==
     64On /dev/ttyUSB2
     65
     66{{{
     67AT+QGPS=1                       Starts GPS service + NMEA Feed on /dev/modemGPS
     68AT+QGPSEND                      Stops GPS Service + NMEA Feed on /dev/modemGPS
     69AT+QGPSCFG="gpsnmeatype",xxx    Configure which NMEA output sentences are generated (See SIMCOM GPS Page)
     70AT+QGPSLOC?                     Run on AT command port to give a one-shot reading
     71AT+QGPSGNMEA="GGA"              Run on AT command port to give a one-shot reading of GPS Fix Data, Time, Position and related fix data
     72}}}
     73
     74Ex.
     75{{{
     76AT+QGPSLOC?
     77+QGPSLOC: 232222.0,1343.4258N,10039.1887E,0.8,2.1,2,0.00,0.0,0.0,231122,09
     78}}}
     79
     80Read Lat,Lon ref [https://receiverhelp.trimble.com/alloy-gnss/en-us/NMEA-0183messages_GGA.html here] [[br]]
     8113+(43.4258/60) = 13.723763 [[br]]
     82100+(39.1887/60) = 100.653145 [[br]]
     83
     84On /dev/ttyUSB1 the data will continue update GPS location
     85{{{
     86root@OpenWrt:~# picocom -b 115200 /dev/ttyUSB1
     87$GPGGA,233253.00,1343.426109,N,10039.188521,E,1,08,0.8,2.5,M,-25.0,M,,*46
     88}}}
     89We use ser2net to stream out the lat,lon
     90{{{
     91root@GL-X300B:/etc# tail -2 ser2net.conf
     928888:raw:400:/dev/ttyUSB1:115200 8DATABITS NONE 1STOPBIT
     93}}}
     94Then on other terminal run
     95{{{
     96root@GL-X300B:~# curl -v --http0.9 192.168.8.1:8888
     97> GET / HTTP/1.1
     98> Host: 192.168.8.1:8888
     99> User-Agent: curl/7.66.0
     100> Accept: */*
     101>
     102$GPGGA,235831.00,1343.426963,N,10039.186482,E,1,08,0.8,1.9,M,-25.0,M,,*43
     103$GPRMC,235831.00,A,1343.426963,N,10039.186482,E,0.0,201.3,231122,1.1,W,A,V*51
     104}}}