Hi, I am new to Python and Linux. Have been trying to connect my Raspberry Pi 3 to my TTGo T-Beam device without avail. After installing Meshtastic (pip3 install --upgrade meshtastic), started the Python3 REPL (>>>) and successfully imported meshtastic, I am stuck at the step of “interface = meshtastic.StreamInterface(”/dev/ttyUSB0")", with the following error …
interface = meshtastic.StreamInterface(“/dev/ttyUSB0”)
Traceback (most recent call last):
File “”, line 1, in
File “/home/pi/VENV/lib/python3.7/site-packages/meshtastic/init.py”, line 437, in init
“StreamInterface is now abstract (to update existing code create SerialInterface instead)”)
Exception: StreamInterface is now abstract (to update existing code create SerialInterface instead)
when I tried using SerialInterface instead of StreamInterface as suggested by the system (“interface = meshtastic.SerialInterface(”/dev/ttyUSB0")"), I received another error message as follows…
interface = meshtastic.SerialInterface(“/dev/ttyUSB0”)
Traceback (most recent call last):
File “/home/pi/VENV/lib/python3.7/site-packages/serial/serialposix.py”, line 310, in _reconfigure_port
fcntl.flock(self.fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
BlockingIOError: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/home/pi/VENV/lib/python3.7/site-packages/meshtastic/init.py”, line 586, in init
self.stream.open()
File “/home/pi/VENV/lib/python3.7/site-packages/serial/serialposix.py”, line 272, in open
self._reconfigure_port(force_update=True)
File “/home/pi/VENV/lib/python3.7/site-packages/serial/serialposix.py”, line 312, in _reconfigure_port
raise SerialException(msg.errno, “Could not exclusively lock port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 11] Could not exclusively lock port /dev/ttyUSB0: [Errno 11] Resource temporarily unavailable
Could anyone help me proceed to connect the T-Beam?? Many thanks.