Getting GPS data from a PLS83-W on LGA DevKil | Telit Cinterion IoT Developer Community
August 2, 2022 - 10:22pm, 1333 views
I have an LGA DevKit with a PLS83-W module connected to a Raspberry Pi connected thru the Native USB port. I am able to connect to the internet using the qmicli interface.
However, I am struggling on how to retrieve GPS data. On other eval modules, the GPS data is retrieved via AT commands thru the USB interface. I have tried the AT^SGPS that I found in looking thru the community for the PLS8 module.
When ever I try to set the "Nmea/Output", I get a message that it's not possible temporirily. Any help is appreciated in:
1) pointing me to the official PLS83W AT command spec
2) assisting me in getting the GPS to work so that I can retrieve location data.
Hello,
I'll send you the AT spec document.
In case of any problems, would it be possible to paste any log with what exactly you do?
Thanks,
Bartłomiej
I received the command spec and that helped a lot...
Trying to follow the instructions from section 16.5.1. I first downloaded the xtra2.bin:
wget http://xtrapath6.izatcloud.net/xtra2.bin
--2022-08-20 10:58:50-- http://xtrapath6.izatcloud.net/xtra2.bin
Resolving xtrapath6.izatcloud.net (xtrapath6.izatcloud.net)... 13.249.39.101, 13.249.39.78, 13.249.39.2, ...
Connecting to xtrapath6.izatcloud.net (xtrapath6.izatcloud.net)|13.249.39.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59668 (58K) [application/octet-stream]
Saving to: ‘xtra2.bin.1’
xtra2.bin.1 100%[====================================================================================================================================================================>] 58.27K --.-KB/s in 0.07s
2022-08-20 10:58:50 (882 KB/s) - ‘xtra2.bin.1’ saved [59668/59668]
I then query the modem:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 ATI1
ATI1
Cinterion
PLS83-W
REVISION 01.002
A-REVISION 01.000.07
OK
However, when I attempt to set the clk to GMT:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT+CCLK=$(TZ=GMT date +%y/%m/%d:%H:%M:%S)
AT+CCLK=22/08/20:14:56:12
+CME ERROR: invalid index
In addition, I skipped that step, and then attempted to follow the other steps and hit another problem when attempting to load the xtra2.bin file:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine"
AT^SGPSC=Engine
^SGPSC: "Engine","0"
OK
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SBNW=agps,-1
AT^SBNW=agps,-1
CONNECT
AGPS READY: RESET GPS ENGINE AND DELETE XTRA FILE ...
AGPS: END OK
OK
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SBNW="agps",59668
[ERR] Timeout, couldn't get response
I continued and my log is:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Power/Antenna","on"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Power/Antenna","on"
AT^SGPSC=Power/Antenna,on
^SGPSC: "Power/Antenna","on"
OK
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SBNW="agps",59668
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","2"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","2"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","2"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","1"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","1"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="NMEA/Output","on"
AT^SGPSC=NMEA/Output,on
+CME ERROR: operation temporary not allowed
I received the command spec and that helped a lot...
Trying to follow the instructions from section 16.5.1. I first downloaded the xtra2.bin:
wget http://xtrapath6.izatcloud.net/xtra2.bin
--2022-08-20 10:58:50-- http://xtrapath6.izatcloud.net/xtra2.bin
Resolving xtrapath6.izatcloud.net (xtrapath6.izatcloud.net)... 13.249.39.101, 13.249.39.78, 13.249.39.2, ...
Connecting to xtrapath6.izatcloud.net (xtrapath6.izatcloud.net)|13.249.39.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59668 (58K) [application/octet-stream]
Saving to: ‘xtra2.bin.1’
xtra2.bin.1 100%[====================================================================================================================================================================>] 58.27K --.-KB/s in 0.07s
2022-08-20 10:58:50 (882 KB/s) - ‘xtra2.bin.1’ saved [59668/59668]
I then query the modem:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 ATI1
ATI1
Cinterion
PLS83-W
REVISION 01.002
A-REVISION 01.000.07
OK
However, when I attempt to set the clk to GMT:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT+CCLK=$(TZ=GMT date +%y/%m/%d:%H:%M:%S)
AT+CCLK=22/08/20:14:56:12
+CME ERROR: invalid index
In addition, I skipped that step, and then attempted to follow the other steps and hit another problem when attempting to load the xtra2.bin file:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine"
AT^SGPSC=Engine
^SGPSC: "Engine","0"
OK
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SBNW=agps,-1
AT^SBNW=agps,-1
CONNECT
AGPS READY: RESET GPS ENGINE AND DELETE XTRA FILE ...
AGPS: END OK
OK
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SBNW="agps",59668
[ERR] Timeout, couldn't get response
I tried to continue and the following is the log:
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Power/Antenna","on"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Power/Antenna","on"
AT^SGPSC=Power/Antenna,on
^SGPSC: "Power/Antenna","on"
OK
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SBNW="agps",59668
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","2"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","2"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","2"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","1"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="Engine","1"
[ERR] Timeout, couldn't get response
pi@raspberrypi:~ $ atcom --port /dev/ttyACM2 AT^SGPSC="NMEA/Output","on"
AT^SGPSC=NMEA/Output,on
+CME ERROR: operation temporary not allowed
Hello,
As for CCLK you made a syntax error, it should go like below:
AT+CCLK="22/08/20,14:56:12"
I tried the same. See below:
AT^SBNW="agps",59621
CONNECT
AGPS READY: SEND FILE ...
AGPS: GENERAL FAILURE
OK
AT+CCLK?
+CCLK: "80/01/06,00:53:31"
OK
at+cclk="22/08/22,15:03:00"
OK
AT^SBNW="agps",59621
CONNECT
AGPS READY: SEND FILE ...
AGPS: END OK
OK
In your case it looks like you did not get any reply to "AT^SBNW="agps",59668" while you should get
"CONNECT
AGPS READY: SEND FILE ..."
and it also looks like you don't get replies for other commands.
Please try to wait for CONNECT before sending the file.
The interface is in data mode and will not reply until it gets all the data or some timeout expires.
Please also see AT+CTZU command for automatic time setting.
Best regards,
Bartłomiej
Thank you for the AT+CCLK fix.
However, In trying to store the xtra2.bin file using the AT+SBNW cmd, I think the problem is that I am not putting the xtra2.bin into local memory on the PLS83W. How would I do that? I am using the raspberry pi's /dev/ttyACM2 serial port (USB cable attached to the NATIVE USB port on the LGA Dev Board).
Thank you for the AT+CCLK fix.
However, In trying to store the xtra2.bin file using the AT+SBNW cmd, I think the problem is that I am not putting the xtra2.bin into local memory on the PLS83W. How would I do that? I am using the raspberry pi's /dev/ttyACM2 serial port (USB cable attached to the NATIVE USB port on the LGA Dev Board).
I keep getting:
[Err] Timeout, couldn't get response
The strange thing in your log is that I can't see
CONNECT
AGPS READY: SEND FILE ...
but timeout from your application.
Normally you should see
CONNECT
AGPS READY: SEND FILE ...
soon after sending the command AT^SBNW="agps",*****
then you send the file contents as binary data and after the specified amount of bytes is received by the module it replies with
AGPS: END OK
OK
If you don't get CONNECT, something is wrong. Please make sure that your app is wafting for it before sending the file. And test manually with a PC and some terminal like teraterm, zoc or other.
I am attempting to use minicom instead of a command line serial interface (like atcom) on the raspberry pi.
Using that, I get:
AT^SBNW="agps",58667
CONNECT
AGPS READY: SEND FILE ...
(after some delay...)
AGPS: GENERAL FAILURE
OK
I validated the GMT via:
AT+CCLK?
+CCLK: "22/08/24,15:07:47+00"
OK
You stated:
"soon after sending the command AT^SBNW="agps",*****
then you send the file contents as binary data and after the specified amount of bytes is received by the module it replies with"
How do I send the file contents as binary data? Do I 'cat' the contents to /dev/ttyACM0 or something?
I am trying to set this up as an automated process that runs without user intervention... any advice there?
I think that 'cat' should do the job.
Pages