PINE64
Problem with ESP32 connected to USB2. USB3 - seems OK. - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Pinebook Pro Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=116)
+--- Thread: Problem with ESP32 connected to USB2. USB3 - seems OK. (/showthread.php?tid=10384)



Problem with ESP32 connected to USB2. USB3 - seems OK. - erikbotta - 06-22-2020

Hi all.
I am using platform.io framework in vs code on PBP and having problem with communication to ESP32 dev kit from USB2 (right) port.
For example when I am running monitoring of ESP32 serial port I get errors:

Code:
Value 1:249.71
Value 2:94.25
Value 1:153.50
Value 2:251Exception in thread rx:

--- exit ---
Traceback (most recent call last):
  File "/home/erik/.platformio/penv/lib/python3.8/site-packages/serial/serialposix.py", line 500, in read
    raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/erik/.platformio/penv/lib/python3.8/site-packages/serial/tools/miniterm.py", line 445, in reader
    data = self.serial.read(self.serial.in_waiting or 1)
  File "/home/erik/.platformio/penv/lib/python3.8/site-packages/serial/serialposix.py", line 509, in read
    raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
After some good reading it failed.
If I use USB3 (left) port. Everyhing is fine.