修改参数

master
zrg 2023-07-04 19:22:04 +08:00
parent 37877ed7c0
commit f92fcb9d5a
41 changed files with 17382 additions and 15715 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +0,0 @@
问题1wifi接受到的数据为const uint_8 不能直接用atoi转换为int。
解决atoi((char*)(packet.data())) //使用(char*) 进行强制类型转换
问题2c语言中sizeof()返回的是变量声明后所占的内存数不是实际长度。strlen是一个函数求的是字符串的实际长度它求得方法是从开始到遇到第一个'\0',如果你只定义没有给它赋初值这个结果是不定的它会从arr首地址一直找下去直到遇到'\0'停止
解决字符串转换中使用strlen()获得实际长度
问题3数字转字符串中可以使用sprintf
解决sprintf(s, "%d", 100//将100转为10进制表示的字符串
问题4强制类型转换(const unsigned char*)不能直接使用print输出
解决atoi((char*)(packet.data())) //使用(char*) 进行强制类型转换
问题5: udp发送数据时会出现乱码
解决:字符数组末尾需要添加'\0'作为结束符

Binary file not shown.

Binary file not shown.

View File

@ -84,7 +84,7 @@ flash_write_size = 1024
[DOWNLOAD]
autostart1 = 0
com_port1 = COM12
com_port1 = COM6
baudrate1 = 5
checkmac1 = 1
erase_flash_en = True

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202306271251
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd801a590
mac h: 0xb84022
crc_cal: 184
crc_read: 184
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.2 seconds (effective 866.5 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202306271250
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd801a5a0
mac h: 0x64022
crc_cal: 6
crc_read: 6
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.3 seconds (effective 857.5 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202306261628
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f480
mac h: 0x474022
crc_cal: 71
crc_read: 71
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.3 seconds (effective 850.7 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 11 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,81 @@
*************************** START ****************************
START TIME: 202307021449
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f4ac
mac h: 0xc74022
crc_cal: 199
crc_read: 199
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886080 bytes (547274 compressed) at 0x00000000 in 8.6 seconds (effective 827.6 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 15 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202307021449
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 6 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307021449
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 8 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307021450
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 6 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,108 @@
*************************** START ****************************
START TIME: 202306271341
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f4c0
mac h: 0x14022
crc_cal: 1
crc_read: 1
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
com closed
Use time: 2 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271341
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 7 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271342
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 11 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271342
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 5 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271342
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f4c0
mac h: 0x14022
crc_cal: 1
crc_read: 1
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.2 seconds (effective 862.1 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 11 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,81 @@
*************************** START ****************************
START TIME: 202306251642
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f4c4
mac h: 0x604022
crc_cal: 96
crc_read: 96
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.2 seconds (effective 863.1 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306251644
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 37 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306251644
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 11 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306251645
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 10 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,57 @@
*************************** START ****************************
START TIME: 202306301532
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f50c
mac h: 0xac4022
crc_cal: 172
crc_read: 172
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
com closed
Use time: 12 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306301532
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f50c
mac h: 0xac4022
crc_cal: 172
crc_read: 172
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886080 bytes (547274 compressed) at 0x00000000 in 8.0 seconds (effective 884.5 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202307012016
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0xd807f520
mac h: 0x2c4022
crc_cal: 44
crc_read: 44
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886080 bytes (547274 compressed) at 0x00000000 in 8.2 seconds (effective 862.5 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202307021450
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc35c8
mac h: 0xb1c8f0
crc_cal: 177
crc_read: 177
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886080 bytes (547274 compressed) at 0x00000000 in 8.0 seconds (effective 885.0 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 12 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202306261633
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5e44
mac h: 0xe7c8f0
crc_cal: 231
crc_read: 231
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.2 seconds (effective 862.8 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -145,3 +145,110 @@ Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306281603
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5e4c
mac h: 0x25c8f0
crc_cal: 37
crc_read: 37
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 0 bytes (8 compressed) at 0x00000000 in 0.0 seconds (effective 0.0 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 1 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306281604
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5e4c
mac h: 0x25c8f0
crc_cal: 37
crc_read: 37
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.0 seconds (effective 883.3 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306281607
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5e4c
mac h: 0x25c8f0
crc_cal: 37
crc_read: 37
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.0 seconds (effective 883.8 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 15 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306281609
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 12 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,124 @@
*************************** START ****************************
START TIME: 202306271253
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5e68
mac h: 0x67c8f0
crc_cal: 103
crc_read: 103
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.2 seconds (effective 860.6 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 11 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271338
CONNECT BAUD: 115200
*************************** START ****************************
START TIME: 202306271338
CONNECT BAUD: 115200
*************************** START ****************************
START TIME: 202306271338
CONNECT BAUD: 115200
*************************** START ****************************
START TIME: 202306271338
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
set STOP FLG: Truecom closed
Use time: 11 s
Download result: FAIL
*************************** END ****************************
set state: ESP_DL_STOP
*************************** START ****************************
START TIME: 202306271339
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 4 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271339
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 11 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271339
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 13 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271339
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 5 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,47 @@
*************************** START ****************************
START TIME: 202306271345
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5e6c
mac h: 0x6c8f0
crc_cal: 6
crc_read: 6
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.2 seconds (effective 863.0 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 11 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271346
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 7 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,81 @@
*************************** START ****************************
START TIME: 202306271252
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5e74
mac h: 0x59c8f0
crc_cal: 89
crc_read: 89
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.3 seconds (effective 857.9 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271252
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 11 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271253
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 11 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271253
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 19 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,47 @@
*************************** START ****************************
START TIME: 202306261626
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5eac
mac h: 0xccc8f0
crc_cal: 204
crc_read: 204
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.4 seconds (effective 844.0 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306261628
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 9 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,119 @@
*************************** START ****************************
START TIME: 202306261630
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5eb4
mac h: 0x93c8f0
crc_cal: 147
crc_read: 147
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
com closed
Use time: 11 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306261630
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5eb4
mac h: 0x93c8f0
crc_cal: 147
crc_read: 147
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.5 seconds (effective 832.5 kbit/s)...
File md5: 826ad0b8ec5f977f36e9eff86aa7838eFlash md5: 39436efd7bbdcacd1334f3d6c0a108dfMD5 of 0xFF is a29dfdec65325510b3e8375008de974dcom closed
Use time: 14 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306261630
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5eb4
mac h: 0x93c8f0
crc_cal: 147
crc_read: 147
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.5 seconds (effective 832.6 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 11 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306261631
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 17 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306261632
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 15 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202306271346
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5eb8
mac h: 0x30c8f0
crc_cal: 48
crc_read: 48
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.3 seconds (effective 852.2 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,91 @@
*************************** START ****************************
START TIME: 202306271340
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5ec0
mac h: 0xac8f0
crc_cal: 10
crc_read: 10
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
com closed
Use time: 9 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271340
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 9 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271340
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 6 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271341
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5ec0
mac h: 0xac8f0
crc_cal: 10
crc_read: 10
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.3 seconds (effective 852.6 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,47 @@
*************************** START ****************************
START TIME: 202306271346
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5ed8
mac h: 0x55c8f0
crc_cal: 85
crc_read: 85
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.3 seconds (effective 850.4 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271346
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 4 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,64 @@
*************************** START ****************************
START TIME: 202306271343
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5ee4
mac h: 0x48c8f0
crc_cal: 72
crc_read: 72
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.7 seconds (effective 815.5 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 11 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271344
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 5 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271344
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 15 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,47 @@
*************************** START ****************************
START TIME: 202306261632
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5ee8
mac h: 0xebc8f0
crc_cal: 235
crc_read: 235
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.4 seconds (effective 840.2 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306261633
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 4 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202307041425
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5ef4
mac h: 0xd5c8f0
crc_cal: 213
crc_read: 213
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886080 bytes (547274 compressed) at 0x00000000 in 8.4 seconds (effective 845.3 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 14 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,60 @@
*************************** START ****************************
START TIME: 202306271344
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5f00
mac h: 0x4c8f0
crc_cal: 4
crc_read: 4
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.4 seconds (effective 847.4 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306281609
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc5f00
mac h: 0x4c8f0
crc_cal: 4
crc_read: 4
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.1 seconds (effective 870.1 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,156 @@
*************************** START ****************************
START TIME: 202307041425
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc69f8
mac h: 0x35c8f0
crc_cal: 53
crc_read: 53
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
com closed
Use time: 6 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307041425
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 5 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307041425
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 2 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307041426
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 8 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307041426
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 4 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307041426
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 7 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307041426
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 14 s
Download result: FAIL
*************************** END ****************************
*************************** START ****************************
START TIME: 202307041426
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc69f8
mac h: 0x35c8f0
crc_cal: 53
crc_read: 53
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886080 bytes (547274 compressed) at 0x00000000 in 8.3 seconds (effective 853.9 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 12 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,47 @@
*************************** START ****************************
START TIME: 202306261625
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc78a4
mac h: 0x65c8f0
crc_cal: 101
crc_read: 101
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.4 seconds (effective 842.1 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306261626
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 5 s
Download result: FAIL
*************************** END ****************************

View File

@ -0,0 +1,30 @@
*************************** START ****************************
START TIME: 202306251645
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebc79b0
mac h: 0x5dc8f0
crc_cal: 93
crc_read: 93
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.4 seconds (effective 844.6 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************

View File

@ -0,0 +1,47 @@
*************************** START ****************************
START TIME: 202306271343
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
mac l: 0x9ebcfe98
mac h: 0xfdc8f0
crc_cal: 253
crc_read: 253
crc_test: 0
ESP32 MAC CRC OK
get mac res: 1
get flash id : 0x0016405e
manufacturer_id: 0x5e
device_id: 0x4016
Wrote 886032 bytes (547253 compressed) at 0x00000000 in 8.3 seconds (effective 858.2 kbit/s)...
Hash of data verified.
Leaving...
com closed
Use time: 10 s
Download result: PASS
*************************** END ****************************
*************************** START ****************************
START TIME: 202306271343
CONNECT BAUD: 115200
set state: ESP_DL_SYNC
serial port opened
-----------
baud:115200
root baud:115200
-------------
===============BAUD : 115200===============CALL DEVICE SYNC
connecting...
chip sync ok
com closed
Use time: 4 s
Download result: FAIL
*************************** END ****************************

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@ float LQR_K4_3 = 1.42; //
float target_velocity = 0; //目标速度
float target_angle = 89.5; //平衡角度 例如TA89.3 设置平衡角度89.3
float target_voltage = 0; //目标电压
float swing_up_voltage = 1.2; //摇摆电压 左右摇摆的电压,越大越快到平衡态,但是过大会翻过头
float swing_up_voltage = 1.5; //摇摆电压 左右摇摆的电压,越大越快到平衡态,但是过大会翻过头
float swing_up_angle = 18; //摇摆角度 离平衡角度还有几度时候,切换到自平衡控制
float v_i_1 = 15; //非稳态速度环I
float v_p_1 = 0.25; //非稳态速度环P
@ -593,7 +593,7 @@ float constrainAngle(float x)
// calculating the voltage that needs to be set to the motor in order to stabilize the pendulum
float controllerLQR(float p_angle, float p_vel, float m_vel)
{
if (abs(p_angle) > 5) //摆角大于5则进入非稳态记录非稳态时间
if (abs(p_angle) > 8) //摆角大于5则进入非稳态记录非稳态时间
{
last_unstable_time = millis();
if (stable) //如果是稳态进入非稳态则调整为目标角度
@ -606,7 +606,7 @@ float controllerLQR(float p_angle, float p_vel, float m_vel)
if ((millis() - last_unstable_time) > 1000 && !stable) //非稳态进入稳态超过500ms检测更新目标角为目标角+摆角,假设进入稳态
{
//target_angle -= _sign(target_velocity) * 0.4;
target_angle = target_angle+p_angle*0.2;
target_angle = target_angle+p_angle*0.5;
stable = 1;
}