summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interface-definitions/ser2net.xml.in4
-rwxr-xr-xsrc/conf_mode/ser2net.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/ser2net.xml.in b/interface-definitions/ser2net.xml.in
index b9520d20b..8b025070f 100644
--- a/interface-definitions/ser2net.xml.in
+++ b/interface-definitions/ser2net.xml.in
@@ -19,11 +19,11 @@
<description>Regular serial interface</description>
</valueHelp>
<valueHelp>
- <format>ttyUSBxxx</format>
+ <format>usbxbxpx</format>
<description>USB based serial interface</description>
</valueHelp>
<constraint>
- <regex>^tty(S|USB)[0-9]+$</regex>
+ <regex>^(ttyS\d+|usb\d+b.*p.*)$</regex>
</constraint>
</properties>
<children>
diff --git a/src/conf_mode/ser2net.py b/src/conf_mode/ser2net.py
index 5231a6a05..ec8afcb48 100755
--- a/src/conf_mode/ser2net.py
+++ b/src/conf_mode/ser2net.py
@@ -46,7 +46,7 @@ def get_config():
'data_bits': '',
'parity': '',
'port': '',
- 'serial_port': '/dev/' + serial_port,
+ 'serial_port': '/dev/serial/by-bus/' + serial_port,
'speed': '',
'stop_bits': '',
'timeout': '600'