rucko24 / EspFlow

Simple UI for esp32+ and esp8266 utilities
Apache License 2.0
4 stars 1 forks source link

FreeBSD 14.1 Xigmanas 13.2.0.5 - Heighliner (revision 9884) #61

Closed rucko24 closed 4 months ago

rucko24 commented 4 months ago

Execute read_flash, and flash_id


Port permissions

pstat -t
LINE   INQ  CAN  LIN  LOW  OUTQ  USE  LOW   COL  SESS  PGID STATE
ttyv0  1920    0    0  192  1984    0  199     7   851   851 Oicl
ttyv1  1920    0    0  192  1984    0  199     7   852   852 Oil
ttyv2  1920    0    0  192  1984    0  199     7   853   853 Oil
ttyv3  1920    0    0  192  1984    0  199     7   854   854 Oil
ttyv4  1920    0    0  192  1984    0  199     7   855   855 Oil
ttyv5  1920    0    0  192  1984    0  199     7   856   856 Oil
ttyv6  1920    0    0  192  1984    0  199     7   857   857 Oil
ttyv7  1920    0    0  192  1984    0  199     7   858   858 Oil
ttyv8  1920 1920    0  192  1984    0  199     0     0     0 OiHil
ttyv9     0    0    0    0     0    0    0     0     0     0 -
ttyva     0    0    0    0     0    0    0     0     0     0 -
ttyvb     0    0    0    0     0    0    0     0     0     0 -
ttyU0     0    0    0    0     0    0    0    16     0     0 IC
pts/1  1920    0    0  192  1984    0  199     0  5253  5299 Oi
pts/0  1920    0    0  192  1984    0  199    48  5517  5517 Oi
pts/2  1920    0    0  192  1984   73  199     0  5876  5877 Oi
sudo chmod 666 /dev/ttyU0

To execute

mvn clean package -Pproduction -DskipTests=true
java -jar espflow-1.0-SNAPSHOT.jar --ADMIN_ESPFLOW_USER=xxxx --ESPFLOW_PASSWORD=xxxx

image

root@esptool $ esptool.py --port /dev/ttyU0 --baud 115200 flash_id

esptool.py v4.7.0
Serial port /dev/ttyU0
Connecting...
Failed to get PID of a device on /dev/ttyU0, using standard reset sequence.
......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Failed to get PID of a device on /dev/ttyU0, using standard reset sequence.
.
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 2c:f4:32:10:1d:bf
Uploading stub...
Running stub...
Stub running...
Manufacturer: 85
Device: 6014
Detected flash size: 1MB
Hard resetting via RTS pin...
root@esptool $ root@esptool $ esptool.py --port /dev/ttyU0 --baud 115200 flash_id

esptool.py v4.7.0
Serial port /dev/ttyU0
Connecting...
Failed to get PID of a device on /dev/ttyU0, using standard reset sequence.
......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Failed to get PID of a device on /dev/ttyU0, using standard reset sequence.
.
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 2c:f4:32:10:1d:bf
Uploading stub...
Running stub...
Stub running...
Manufacturer: 85
Device: 6014
Detected flash size: 1MB
Hard resetting via RTS pin...
root@esptool $ 

image

image


image