I want to develop a universal serial to GPRS converter using Fastrack Supreme 10.
It is something like this:
Any RS232 device --> Fastrack Supreme 10 running GPRS TCP client --> TCP Server
When the Fastrack Supreme 10 is power up,
- My program reads the configuration from the flash/EEPROM (e.g. GPRS settings, TCP server IP …)
- It will open the GPRS bearer and initiate a TCP client connection to the server to the other end.
- Then the program opens UART 1 and waiting for incoming data.
- When serial data comes in, the program will do some processing and pack it up before sending it thought the TCP socket.
- In the event of responds come back from the TCP socket, the program will also do some translations before sending to the serial port.
I have a few questions on the above implementation:
-
May I know how to write data/file into the flash?
-
When I set AT+WOPEN=1, my program will auto start upon power on, which will take over the serial port for all data communication. i.e. transmit any data coming from the serial port to the TCP socket, how do I get back to the OpenAT prompt with AT+WOPEN=0 ?
3 In the Fastrack Supreme 10 documentation (Basic_Development_Guide.pdf), it mentions that in “Cooperative Mode”, Fastrack Supreme 10 can use UART and GPRS connection at the same time. But all external serial data has to pass through the OpenAT. In that case, the serial data has to be AT commands. Does it mean I have to develop another device that wrap the binary serial data into AT command set before giving to Fastrack Supreme 10 ? i.e.
Any RS232 device -->[Device that wrap serial data to AT command]-> Fastrack Supreme 10 ->GPRS TCP client --> TCP Server
You help is much appreciated.
James