Page 1 of 1

Format for writing serial port data?

Posted: Thu Apr 23, 2020 9:47 pm
by GTIspirit
What is the format for using the writeSer() command?
https://wiki.autosportlabs.com/RaceCapt ... C_data_.29

writeSer( port, data )

How is data configured? with "", {}, ??

So for example, if I want to send this JSON command, how is it written?

{"command":"startRecording"}

writeSer( port,{"command":"startRecording"})

Looking at the Garmin Virb Ultra 30 API, the commands look similar to what I see in the logfile, e.g.
[USB] Received CMD: {"getLogfile":null}

So if the above StartRecording was successful, the response would be:
{"result":1}

So I think getting the Garmin Virb Ultra 30 to work is a matter of figuring out which port is the WiFi connection on the RCTrack2, and then getting the data portion of the writeSer command correctly formatted.

Posted: Tue May 12, 2020 8:24 pm
by brentp
Hi - I think my reply on the other post should answer this question.