/dev/ttyUSB0 no such file or directory #257
Unanswered
maxlacourchristensen
asked this question in
Questions
Replies: 1 comment
-
No such file or directory: '/dev/ttyUSB0'. If you don't use telemetry uart then comment out this string in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Followed the how-to setup guide: On RPI 4 set as drone, I get following error
sudo /usr/bin/wfb-server drone wlan1
2022-10-25 10:26:01+0200 [-] Log opened.
2022-10-25 10:26:01+0200 [-] WFB version 22.10.23.38432-8010ed89
2022-10-25 10:26:01+0200 [-] Run on armv7l/5.15.72-v7l+ @pi4cam2, profile drone using wlan1
2022-10-25 10:26:01+0200 [-] Using cfg files:
/usr/lib/python3/dist-packages/wfb_ng/conf/master.cfg
/usr/lib/python3/dist-packages/wfb_ng/conf/site.cfg
/etc/wifibroadcast.cfg
2022-10-25 10:26:01+0200 [-] # iw reg set BO
2022-10-25 10:26:01+0200 [-] # ip link set wlan1 down
2022-10-25 10:26:01+0200 [-] # iw dev wlan1 set monitor otherbss
2022-10-25 10:26:01+0200 [-] # ip link set wlan1 up
2022-10-25 10:26:01+0200 [-] # iw dev wlan1 set channel 161 HT20
2022-10-25 10:26:01+0200 [-] Open serial port ttyUSB0 on speed 115200
2022-10-25 10:26:01+0200 [-] Listen for video stream 0 on 0.0.0.0:5602
2022-10-25 10:26:01+0200 [-] Started video tx
2022-10-25 10:26:01+0200 [-] Video: /usr/bin/wfb_tx -p 0 -u 5602 -K /etc/drone.key -B 20 -G long -S 1 -L 1 -M 1 -k 8 -n 12 -T 0 -i 7669206 wlan1
2022-10-25 10:26:01+0200 [-] UDPProxyProtocol starting on 14900
2022-10-25 10:26:01+0200 [-] UDPProxyProtocol starting on 49264
2022-10-25 10:26:01+0200 [-] Tunnel RX: /usr/bin/wfb_rx -p 32 -u 14900 -K /etc/drone.key -k 1 -n 2 -i 7669206 wlan1
2022-10-25 10:26:01+0200 [-] Tunnel TX: /usr/bin/wfb_tx -p 160 -u 14901 -K /etc/drone.key -B 20 -G long -S 1 -L 1 -M 1 -k 1 -n 2 -T 0 -i 7669206 wlan1
2022-10-25 10:26:01+0200 [-] Started tunnel rx
2022-10-25 10:26:01+0200 [-] Started tunnel tx
2022-10-25 10:26:01+0200 [-] Stopping reactor due to fatal error: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
2022-10-25 10:26:01+0200 [UDPProxyProtocol (UDP)] (UDP Port 14900 Closed)
2022-10-25 10:26:01+0200 [UDPProxyProtocol (UDP)] (UDP Port 49264 Closed)
2022-10-25 10:26:01+0200 [-] Main loop terminated.
2022-10-25 10:26:01+0200 [-] Exiting with code 1
2022-10-25 10:26:01+0200 [-] Unhandled error in Deferred:
2022-10-25 10:26:01+0200 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 460, in callback
self._startRunCallbacks(result)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
self._runCallbacks()
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3/dist-packages/wfb_ng/server.py", line 293, in _init_services
return defer.gatherResults([defer.maybeDeferred(init_mavlink, profile, wlans, link_id),
--- ---
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 151, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python3/dist-packages/wfb_ng/server.py", line 369, in init_mavlink
serial_port = SerialPort(p_in, os.path.join('/dev', serial[0]), reactor, baudrate=serial[1])
File "/usr/lib/python3/dist-packages/twisted/internet/_posixserialport.py", line 34, in init
self._serial = self._serialFactory(
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in init
self.open()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
lsusb returns:
Bus 002 Device 002: ID 0b05:17d2 ASUSTek Computer, Inc. USB-AC56 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions