Pinguino beta 9-04 is now online with CDC support !!
As usual, i didn’t write a documentation but a cdc example is in the
What is CDC ?
A CDC is an USB serial port, on windows it will appear in the system as a
virtual com port ( COM7 for example ),
in linux, it will appear as a /dev/ttyACM0 device ( or /dev/ttyACM1 if 0
Then you can use this device with a serial terminal ( hyperterminal,
teraterm on windows, putty, gtkterm on linux ).
Speed is 115200 bauds, 1 stop bit, no parity.
In Pinguino, you can use CDC.print(string,length) and CDC.read(string).
CDC.read(string) return the length of the received string.
CDC is a non blocking device, USB is managed with interrupt, so you can use
all the functions in the loop.
No initialisation is needed.
I tested this code on:
With Linux be careful !! on some distribution, the modem manager send an
initialisation string to a new connected ttyACM device.
This string is:
i am working on a udev rule to stop this initialisation with Pinguino.
You can stop the modem manager if it is a problem
sudo killall modem-manager
Hope this code will be useful for the Pinguino community.
I wait for your report and suggestion.
Thanks to all the alpha-tester of this release: