I am trying to connect a gps-device to a Q2400A Wavecom modem. This is done through the UART-interface. I do not have access to an other wavecom-modem with gps-support built in.
GPS-device -> serial port -> serial cable -> serial port -> Q2400A
I like to know how i can receive data through the UART.
I know you have different modes for the UART-interface:
You can switch between this modes with:
Am i correct if i think that if i set the modem in ATO-mode. You can switch between AT-mode and Data-mode with sending a “+++” string?
In data-mode, can i still flash the Wavecom? (Since i need AT+WDWL, AT+Wopen, to program the device). Is this still possible?
And what happens if i send a character over the UART? How can i tell my program, that any character received should be put in a receive-buffer?
I know there is a command ioRead(); but that is just returning ‘OK’.
— Is there something like: getDataFromSerialPort(); ? or “receivebuffer”?
Thanks in advance.