Pinoccio / hardware-pinoccio

The schematics, board layout, and datasheets for the Pinoccio board
Other
55 stars 27 forks source link

No way to tell if USB serial port is openend from 256rfr2 #3

Open matthijskooijman opened 10 years ago

matthijskooijman commented 10 years ago

With the current design, there is no way to tell if the USB serial port is opened. Having this info could be useful in some circumstances (such as deciding where to send log messages).

amcjen commented 9 years ago

@matthijskooijman How would we actually do this? This is probably firmware on the 16U2 and not a hardware change, right?

matthijskooijman commented 9 years ago

Having a dedicated pin is the most obvious one (essentially just a DTR pin I think). Doing some magic over serial is possible, but that would require escaping and would get complicated quickly...

amcjen commented 9 years ago

You mean a dedicated line between 16U2 and 256RFR2 for hardware DTR? (sorry, long day, I'm not thinking very clearly at the moment.)

matthijskooijman commented 9 years ago

Yes, exactly. It could refer to the DTR pin on the 16u2 directly, or perhaps a dedicated pin could be used (whose status is "port opened" instead of "DTR", the latter is controllable from the USB host side when the port is opened).