Re: Extracting XML flow from Ocs possible ?


Howard Dutton
 

The OCS doesn't do XML :)

What it does have is an LX200 like protocol with :xxxx# framed commands and # terminated responses.  You can see the available commands in Command.ino, they include commands to return the temperature and humidity.
The command processor works with the Arduino Serial port but also with Ethernet.  For Ethernet you open the port, send the command, get the response, then close the port.  This allows multiple clients to talk to a single port at the "same" time (9999 and 9998 are active.)

There is only one serial port active in the OCS, just Arduino's "Serial" (where the USB/serial is) but adding others (Serial1 and Serial2 for example) is trivial.

Join onstep-ocs@onstep.groups.io to automatically receive all group messages.