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

system: serial via USB support #2026

Closed
fichtner opened this issue Dec 28, 2017 · 6 comments
Closed

system: serial via USB support #2026

fichtner opened this issue Dec 28, 2017 · 6 comments
Assignees
Labels
feature Adding new functionality
Milestone

Comments

@fichtner
Copy link
Member

fichtner commented Dec 28, 2017

via: https://forum.opnsense.org/index.php?topic=6702.0

@fichtner fichtner added the feature Adding new functionality label Dec 28, 2017
@fichtner fichtner added this to the 18.7 milestone Dec 28, 2017
@fichtner fichtner self-assigned this Dec 28, 2017
@fichtner fichtner removed this from the 18.7 milestone Feb 25, 2018
@fichtner fichtner added this to the 18.7 milestone Apr 12, 2018
@sjorge
Copy link
Contributor

sjorge commented May 30, 2018

Just an FYI, the tty naming seems to be consistant for usb serial ports!

[iris :: sjorge][~]
[.]$ ls /dev | grep ttyU
ttyU0
ttyU0.init
ttyU0.lock
ttyU1
ttyU1.init
ttyU1.lock
ttyU2
ttyU2.init
ttyU2.lock
ttyU3
ttyU3.init
ttyU3.lock

This is from a FreeBSD box (not OPNsense) with a usb to 4x serial adaptor.

So you can probably target ttyU0 as the first detected serial interface over USB rather reliably.

@fichtner
Copy link
Member Author

@sjorge thanks, that helps! What I wanted to investigate still is whether we need a "use USB instead of Serial TTY" or if we can get aways with loosely attaching ttyu and ttyU devices at the same time.

@sjorge
Copy link
Contributor

sjorge commented May 31, 2018

An 'USB Serial Console' entry in the drop down for the configuration page maybe?

@fichtner
Copy link
Member Author

Yes, but the real question is for /etc/ttys rewrite. Replace serial ttyu* with ttyU* or add both side by side without issues? I'll look into it when I have a bit more time.

@sjorge
Copy link
Contributor

sjorge commented May 31, 2018

I think it is replace, I never to serial + serial over lan to work. I always just one of the too. But I am no expert on this.

@fichtner
Copy link
Member Author

I've implemented a checkbox to enable USB-based serial ports.

fichtner added a commit that referenced this issue Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality
Development

No branches or pull requests

2 participants