$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:0b:dd:53
Uploading stub...
Running stub...
Stub running...
Chip ID: 0x000bdd53
Hard resetting via RTS pin...
$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
/dev/ttyUSB0 failed to connect: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
A fatal error occurred: All of the 1 available serial ports could not connect to a Espressif device.
Solution (choose only one of this):
sudo chmod 666 /dev/ttyUSB0
- set an UDEV rule to permanently allow the access
- add
$USER
todialout
group
$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
/dev/ttyUSB0 failed to connect: [Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Device or resource busy: '/dev/ttyUSB0'
A fatal error occurred: All of the 1 available serial ports could not connect to a Espressif device.
Solution:
- Gather some infos which process/app use that Serial port. For example:
$ lsof /dev/ttyUSB0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
screen 21416 wildan 5u CHR 188,0 0t0 499 /dev/ttyUSB0
- Kill that process/command:
killall screen
Great! Keep the resource updated. Many thanks!