Hi,
I made something similar a while ago, that loops through a range of port numbers until the device is recognized as having firmata on it.
I believe it was pretty fast, and maybe a little simpler than your example.
I don't know of any other way to do this.

Cheers,

Pierre.


2013/12/17 Jérôme Abel <abel.jerome@free.fr>
Previously subject : get console messages for Arduino

In attachment, my solution to detect automatically an Arduino Board with
Firmata.
I wonder if we could get the device name of the console output, it would
be easier to detect...
Any suggestions ?

Thanks,

Jerome

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list