Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matthijskooijman opened this issue Sep 15, 2014 · 4 comments
Open

Comments

@matthijskooijman
Copy link
Collaborator

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
Copy link
Member

amcjen commented Dec 11, 2014

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

@matthijskooijman
Copy link
Collaborator Author

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
Copy link
Member

amcjen commented Dec 11, 2014

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
Copy link
Collaborator Author

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).

penguin359 pushed a commit to HexRC/pinoccio-hardware-reference that referenced this issue Mar 25, 2015
This sets the brownout level at 2.7V (typical). Also, it disables the
brownout detector during power-down, to save power. This implies a bit
of extra startup time, so at the same time power-down mode is only
enabled in idle mode, so we onlly need to detect a reset signal after
waking up and the extra delay doesn't matter much.

Closes Pinoccio#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants