PHS8-P: How to read GPS data (NMEA) from serial port (ASC0)? | Thales IoT Developer Community
April 9, 2016 - 11:54am, 4690 views
Dear all
I control/communicate with a PHS8-P module with a microcontroller through its serial port (ASC0).
I want to read NMEA packets (GPS data) through ASC0 port while being able to control the module through the same port.
I have activated the ****m interface through ASC0, and I am able to send AT commands to the module, e.g. I can turn on the GPS engine. But, I can't switch to NMEA interface to get the NMEA packets.
As far as I know, I must enable the "Multiplex ****" using AT+CMUX to partition ASC0 into virtual channels and map all the interfaces to these virtual channels. However, when I send AT+CMUX command to the module, it responds "+CMUX: 0" which means that Multiplex **** is already activated (actually, according to the module's command set document, it has only one ****: 0 = Multiplex **** Enabled).
According to "AT+CMUX" description in module's command set document, the details on usage of multiplex channels could be found in "Multiplexer User's Guide". I already downlowded the user guide (Mux_Guide_v09), but could not find the solution.
Any suggestions, PLEASE?
Hello,
You can set the NMEA output to some other interface (e.g. USB) but as I understand you have only one serial interface to the module.
How about the mux drivers? Have you installed the drivers? There is also a dedicated document for that. If you enter AT+CMUX=0 to activate MUX this causes a 5s timer to start. If the multiplexer control channel is not established within this time, the module returns to “normal AT command ****” without multiplexer.
Regards,
Bartłomiej
Dear Bartłomiej
As you mentioned, I have only access to ASC0. So, I think I must use the multiplex ****.
The point is that I do not know how to use this ****, and the control channel you mentioned.
You have asked if I had installed the mux drivers or not (I think you ment the drivers for windows OS; if not so, please correct me): I am controlling the PHS8-P module using a microcontroller, not a PC.
Thank you for your time and looking forward.
Best wishes
Fardo
I set up a test system with PH8-P, which is the connectored version of the PHS8-P.
I tested the Multiplex **** on my WIndows 10 Laptop.
First I set AT*SDPORT=2, as the Multiplex **** can only be started on the ****m interface.
Then I installed Gemalto's WinMux driver and got ports:
Port 1: ****m Interface
Port 2: Application Interface
Port 3: NMEA output interface
- You can get the WinMux software through your Gemalto sales contact
- for modifying WinMux for a microcontroller etc, source code can be licenced
WINMUX, CE_MUX and LINUX_MUX versions are available
Then I started the GPS giving the commands to Port 1 (Port 2 could be used, as well):
at+cclk?
+CCLK: "80/01/06,00:57:01" -time on startup
OK
at+cclk="16/04/12,09:07:00" -set the time for A-GNSS usage
OK
AT^SBNW="agps",-1 -deleting the old assist GpsOneXTRA file
CONNECT
AGPS READY: RESET GPS ENGINE AND DELETE XTRA FILE...
AGPS END OK
OK
AT^SBNW="agps",39736 -installing a new GpsOneXTRA file
CONNECT
AGPS READY: SEND FILE ...
AGPS END OK
OK
at^sgpsc? -current status of GNSS settings
^SGPSC: "Engine","0"
^SGPSC: "Nmea/Freq","1"
^SGPSC: "Nmea/Glonass","on"
^SGPSC: "Nmea/Output","on"
^SGPSC: "Power/Antenna","off"
^SGPSC: "Power/Odm","0"
^SGPSC: "Power/Psm","1"
^SGPSC: "Start****","1"
OK
at^sgpsc="Power/Antenna","on" -power to an active GPS antenna
^SGPSC: "Power/Antenna","on"
OK
at^sgpsc="Engine","1" -starting the GNSS
^SGPSC: "Engine","1"
OK
The NMEA appeared on Port 3:
$GLGSV,3,2,11,69,63,296,30,84,14,258,20,85,28,310,37,67,05,113,29*69
$GLGSV,3,3,11,68,59,111,30,86,14,004,,79,27,168,*5E
$GPGGA,060304.0,6012.978709,N,02449.123240,E,1,06,0.9,14.5,M,20.0,M,,*60
$GNGNS,060304.0,6012.978709,N,02449.123240,E,AA,11,0.9,14.5,20.0,,*52
$GPVTG,341.9,T,341.9,M,0.0,N,0.0,K,A*23
$GPRMC,060304.0,A,6012.978709,N,02449.123240,E,0.0,341.9,120416,,,A*60
$GPGSA,A,2,02,06,07,09,23,29,,,,,,,1.2,0.9,0.7*3E
$GNGSA,A,2,02,06,07,09,23,29,,,,,,,1.2,0.9,0.7*20
$GNGSA,A,2,67,68,69,78,85,,,,,,,,1.2,0.9,0.7*22
See enclosed file for test setup and results.
Best Regards,
Antero Markkula
Antero Markkula
Communication and Mechatronics
Enkom Active Oy – www.enkom-active.fi
Upseerinkatu 3 A, 02600 Espoo, Finland
Mobile: +358 400 411368
Office: +358 10 204 0000
Fax: +358 10 204 0010
E-mail: antero.markkula@enkom-active.fi
Hello,
For now there's nothing to add - please see what Antero has written..
Regards,
Bartłomiej