patience4711 / ESP32-read-APS-inverters

MIT License
8 stars 1 forks source link

ESP32-D0WD-V3 + CC2530 with DS3L - pairing failed #20

Open ds2k5 opened 1 month ago

ds2k5 commented 1 month ago

Hello, the pairing failed.

FW File: ESP-ECU-v10_8.bin

flashed the file: CC2530ZNP-with-SBL.hex to the CC2530

Wiring:

ESP32-D0WD-V3 CC2530 3V <-> 3V GND <-> GND D5 <-> RST RX2/GPIO16 <-> P03 TX2/GPIO17 <-> P02

Steps I did:

  1. conntect the ESP32 to the local WiFi
  2. Menu -> Inverter -> add -> enter Serial & save
  3. click to pair

there is a part of the console output:

  sendZB FE00260026
readZB FE0166050062FE064180020202020702C2FE0166050062FE0166050062FE0166050062FE0166050062FE0164000065FE00660066FE0145C0088CFE0145C0088CFE0145C0088C  rc=23

checkZigbeeRadio
  sendZB FE00270027
readZB FE0E670000FFFF80971B01A3D8000007090011  rc=19

found 0709, running oke
ZB coordinator started
trying pair inv 0
pair command 0 = 24020FFFFFFFFFFFFFFFFF14FFFF140D0200000F1100703000082926FFFF10FFFF80971B01A3D8
  sendZB FE2524020FFFFFFFFFFFFFFFFF14FFFF140D0200000F1100703000082926FFFF10FFFF80971B01A3D83C
readZB FE0164020067  rc=6

pair command 1 = 24020FFFFFFFFFFFFFFFFF14FFFF140C0201000F0600703000082926
  sendZB FE1A24020FFFFFFFFFFFFFFFFF14FFFF140C0201000F060070300008292672
readZB FE0164020067  rc=6

decoding : FE0164020067
no valid pairing code, returning...
pair command 2 = 24020FFFFFFFFFFFFFFFFF14FFFF140F0102000F1100703000082926A3D810FFFF80971B01A3D8
  sendZB FE2524020FFFFFFFFFFFFFFFFF14FFFF140F0102000F1100703000082926A3D810FFFF80971B01A3D844
readZB FE0164020067  rc=6

decoding : FE0164020067
no valid pairing code, returning...
pair command 3 = 24020FFFFFFFFFFFFFFFFF14FFFF14010103000F060080971B01A3D8
  sendZB FE1A24020FFFFFFFFFFFFFFFFF14FFFF14010103000F060080971B01A3D84F
readZB FE0164020067FE0164020067  rc=6

failed, inverter got id 0000
Opened for write..../Inv_Prop0.str
send normal ops initCmd = 2401FFFF1414060001000F1E80971B01A3D8FBFB1100000D
  sendZB FE162401FFFF1414060001000F1E80971B01A3D8FBFB1100000D4F
readZB FE0164010064FE034480001401D2  rc=14

zb initializing ready, now check running
checkZigbeeRadio
  sendZB FE00270027
readZB FE0E670000FFFF80971B01A3D8000007090011  rc=19

found 0709, running oke
300 secs passed, polling300000

image

image

image

image

image

image

image

APSjens commented 1 month ago

Hi ds2k5, I had the same issue and for me the following worked: In console put in: 10;ERASE That deletes the inverter file. After this it was possible to register the inverter. Before I had to do put in the data again and again and it did not save this. Then you can pair. What also doesn't work is the automatic polling. In the moment I'm doing this by 10;poll=0. No other chance. Good luck, Jens

patience4711 commented 1 month ago

@ds2k5 Hard to say why the pairing fails, the coodinator works oke but you are not getting the right answers from your inverter. It is known that pairing sometimes is a bit of a pain. It seems that this works better when the sun is shining but there is no logic behind that. Also the distance ecu-inverter plays a role. If you visit the issues of the RPI or ESP12E versions of this project you'l find more on this subject.

@APSjens when the autopoll failes, ther must be something wrong in the settings that are stored in the filesystem. When you boot and examen the data on the serial monitor you can see the value of 'polling' in basisconfig.txt. If this value is 1 (when autopolling is checked) the autopoll should work.

ds2k5 commented 1 month ago

thanks @ALL

but I can not test before End of August... then I will be there next time...