You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As advised by Philipp Meier:
currently controlino_v2 is partly textual and partly binary, based on a protocol I made up myself.
It would be wise to use XML for the textual part and some sort of binary XML for the binary stuff (like data acquisition).
The advantage is that we can used standard XML libraries instead what we're currently using, and that it's closer to standardized stuff.
The text was updated successfully, but these errors were encountered:
I am dubious, at least only do this as an option. Why. In my use of xml it has added more complexity than functionality. In my use of the Arduino with Python I have dumbed down the Arduino and added smarts to the Python. I like my messages short and would go to binary except that it makes debugging and using with terminals too hard. Just my 2 cents.
There are two types of messages exchanged between Instrumentino and
Controlino:
Commands issued from Instrumentino to Controlino
New read data from Controlino to Instrumentino
The first type of messages happen not so often, so at the moment they are
string based ("read A0" etc.)
The second type happen X times a second (depending on the sampling rate) so
they are currently binary.
What was meant in this issue is to replace the first type of messages from
my arbitrary string based protocol to XML. The benefit is that code for
message creation and message parsing is expected to be easier to read,
using XML code packages both in the Python (Instrumentino) side and the C++
(Controlino) side.
I'm currently not away if there is something like a binary XML protocol. If
there is and if it's efficient enough, I'd like to use it instead of my
binary protocol for the same reasons.
Does that make sense to you?
On Sat, Oct 1, 2016 at 4:21 PM, russ_hensel [email protected]
wrote:
I am dubious, at least only do this as an option. Why. In my use of xml it
has added more complexity than functionality. In my use of the Arduino with
Python I have dumbed down the Arduino and added smarts to the Python. I
like my messages short and would go to binary except that it makes
debugging and using with terminals too hard. Just my 2 cents.
As advised by Philipp Meier:
currently controlino_v2 is partly textual and partly binary, based on a protocol I made up myself.
It would be wise to use XML for the textual part and some sort of binary XML for the binary stuff (like data acquisition).
The advantage is that we can used standard XML libraries instead what we're currently using, and that it's closer to standardized stuff.
The text was updated successfully, but these errors were encountered: