I currently have a project that communicates to a PC application via serial. When launched the applications scans the ports by sending out a character, which when detected by the PIC micro the PIC responds by sending back a charter,
coms:
HSERIN [nTest]
SELECT CASE nTest
CASE "C" ; if C then application checking for controller
goto respond
CASE "Q" ; if Q then send data to PC
Goto Term_TX
CASE "S" ; if S then receive data from PC
goto Term_RX
Once the main window opens S is sent by the application and in return a stream of data which is sequentially filled into boxes on the PC app is transmitted.
Term_TX:
Hserout [DEC3 Temperatures(0)]
Hserout [DEC3 Temperatures(1)]
Hserout [DEC3 Temperatures(2)]
Hserout [DEC3 Temperatures(3)]
HSEROUT [dec3 normtemp[0]]
HSEROUT [dec3 normtemp[1]]
HSEROUT [dec3 normtemp[2]]
HSEROUT [dec3 normtemp[3]]
etc.... etc....
A few of these boxes allow me to change the values and then update the PIC by sending back a complete data stream. However I've just stumbled across the ESP8266 modules and thought that this would be an ideal way of updating the project to give access over the net rather than tethered to the PC.
I would rather keep the PC application for now rather than have a web page to view and change data, but would wonder how to implement this. Its ages since I had any dealings with AT commands (14400 fax modem days ) but I'm assuming that data can be sent and received in a similar may via these AT commands and or this "operating system" that sits on the ESP chip ???
Hope someone can point me in the right direction ?
Cheers
Malcolm