hi list,
i'm using PD as a GUI for an Arduino, controlling a number of motors,
(not with Pduino).
it's difficult to debug the Arduino sketch,
but it seems that sometimes there are errors/problems in the communication.
is there a quarantee that bytes sent, are always received on the other side, [comport] to Arduino & vice versa?
rolf
Maybe you can try to send something to the serial line, from Arduino, whenever you send something to it, to see if it does receive the bytes you send.
On Wed, Sep 2, 2015 at 7:47 PM, rolfm@dds.nl wrote:
hi list, i'm using PD as a GUI for an Arduino, controlling a number of motors, (not with Pduino). it's difficult to debug the Arduino sketch, but it seems that sometimes there are errors/problems in the communication.
is there a quarantee that bytes sent, are always received on the other side, [comport] to Arduino & vice versa?
rolf
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 09/02/2015 06:47 PM, rolfm@dds.nl wrote:
is there a quarantee that bytes sent, are always received on the other side, [comport] to Arduino & vice versa?
well, if you unplug the cable during transmission, then bytes might get lost...
anyhow, the serial line is a little bit like UDP, as it doesn't have any built-in capabilities to check whether everything was transmitted. however, the main difference between UDP and the serial line is that since there are only 2 peers in the "network", you can guarantee that no 3rd party is causing digestion that might lead to data loss.
so in practice, if you are using a a reliable physical medium (e.g. a cable that is not being tempered with), then you can assume that all bytes sent will also appear on the other side.
so the only remaining question is whether both peers have spare cycles to actually handle all data that arrives.
gmadsr IOhannes