PHS8-P: How to read GPS data (NMEA) from serial port (ASC0)? | Telit Cinterion IoT Developer Community
April 9, 2016 - 11:54am, 4596 views
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?
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.
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.
PH8-P NMEA test.pdfHi,
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):
+CCLK: "80/01/06,00:57:01" -time on startup
at+cclk="16/04/12,09:07:00" -set the time for A-GNSS usage
AT^SBNW="agps",-1 -deleting the old assist GpsOneXTRA file
AGPS READY: RESET GPS ENGINE AND DELETE XTRA FILE...
AGPS END OK
AT^SBNW="agps",39736 -installing a new GpsOneXTRA file
AGPS READY: SEND FILE ...
AGPS END OK
at^sgpsc? -current status of GNSS settings
at^sgpsc="Power/Antenna","on" -power to an active GPS antenna
at^sgpsc="Engine","1" -starting the GNSS
The NMEA appeared on Port 3:
See enclosed file for test setup and results.
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
For now there's nothing to add - please see what Antero has written..