patience4711 / read-APSystems-YC600-QS1-DS3

Software for an esp8266 nodemcu to read data from APS inverters.
130 stars 24 forks source link

debug messages #96

Closed derron7 closed 1 year ago

derron7 commented 1 year ago

Hello, I try to connect my QS1 (built in 2020) to an ESP8266 / cc2530 combo with ESP-ECU_V9_6c without success. (Zigbee loopback Test is running fine) The Logfile tells me something that I do not fully unterstand:

* * connection closed * *
* * connection opened * *
init zb coordinator
zigbee module reset
zb send cmd 0
zb send cmd 1
zb send cmd 2
zb send cmd 3
zb send cmd 4
zb send cmd 5
zb send cmd 6
zb send cmd 7
trying pair inv 0
sending paircmd 2
sending paircmd 3
not found serialnr, returning
sending paircmd 4
not found serialnr, returning
sending paircmd 5
failed, inverter got id 0x0000
sending NO cmd

Especially what means: "not found serialnr" and "failed, inverter got id 0x0000"? Was a working connection established and the inverter returned somesting wrong? I'm sure that I use the correct Serial Number.

I would be very grateful for any hint.

derron7 commented 1 year ago

I got some more Log Information (last 3 UID Digits replaced):

zb send cmd 7
--
inMessage = FE00660066FE0145C0088CFE0145C0088C rc = 17
trying pair inv 0
pair command = 2524020FFFFFFFFFFFFFFFFF14FFFF140D0200000F1100801000053xxxFFFF10FFFF80971B3170D073
sending paircmd 2
received : FE016402C2A5FE0145C0098D
pair command = 1A24020FFFFFFFFFFFFFFFFF14FFFF140C0201000F0600801000053xxxD6
sending paircmd 3
received : FE0164020067FE034480001401D2
not found serialnr, returning
pair command = 2524020FFFFFFFFFFFFFFFFF14FFFF140F0102000F1100801000053xxx70D010FFFF80971B3170D0D0
sending paircmd 4
received : FE0164020067FE034480001402D1
not found serialnr, returning
pair command = 1A24020FFFFFFFFFFFFFFFFF14FFFF14010103000F060080971B3170D0A4
sending paircmd 5
received : FE0164020067FE034480001403D0
failed, inverter got id 0x0000
sending NO cmd
inMessage = FE0164010064FE034480001401D2 rc = 14
inMessage = FE0E670000FFFF80971B3170D00000070900FA rc = 19
found 0709, running oke
derron7 commented 1 year ago

Now it works. At first I flashed the ZigBee Module wrongly with the CC2530ZNP-Prod Firmware. Now I flashed the CC2530ZNP-with-SBL (objcopy from .hex File in the discord-11-7-2021.zip File) and after that at first I got the same Errors. But after flashing again (with exactly the same commands) and multiple Pairings I get the Inverter ID and Values now.