jpeletier / koolnova2mqtt

MIT License
5 stars 3 forks source link

100-CPNR000 compatibility #2

Open mauroartizzu opened 1 year ago

mauroartizzu commented 1 year ago

Hello, I am trying to configure it with a different controller, 100-CPNR000

Do you know if it is possible? Wiring seems ok I even tested the cabled and the polarity is correct but modpoll returned me a checksum error first, then a reply-time out

./modpoll -b 9600 -p even -d 8 -s 1 -m rtu -t 4 -a 49 -1 -r 78 -4 100 /dev/ttyUSB0
modpoll 3.10 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright (c) 2002-2021 proconX Pty Ltd
Visit https://www.modbusdriver.com for Modbus libraries and tools.

Protocol configuration: Modbus RTU, FC3
Slave configuration...: address = 49, start reference = 78, count = 1
Communication.........: /dev/ttyUSB0, 9600, 8, 1, even, t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, output (holding) register table

-- Polling slave...
Reply time-out!

Could it be a different registry I should call?

Thanks

julien-lebot commented 9 months ago

Have you set your "master" remote control to "INT 49" ?

mauroartizzu commented 6 months ago

Have you set your "master" remote control to "INT 49" ?

thanks! I saw the comment now. I had an hint about that thanks to https://github.com/sinseman44/koolnova-BMS-Integration but no clue even modifying the int in the master remote. I'll give in another try these days

mauroartizzu commented 6 months ago

@julien-lebot I did it, I also tried another cable, I am using a twisted pair UTP cable

GND -> GND
A -> -
B -> +

but this is what I got:

[  737.382678] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[  743.915513] usb 1-1.1: ch341-uart converter now attached to ttyUSB0
pi@raspberrypi:~/modpoll/arm-linux-gnueabihf $ ./modpoll -b 9600 -p even -d 8 -s 1 -m rtu -t 4 -a 49 -1 -r 78 -4 100 /dev/ttyUSB0
modpoll 3.10 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright (c) 2002-2021 proconX Pty Ltd
Visit https://www.modbusdriver.com for Modbus libraries and tools.

Protocol configuration: Modbus RTU, FC3
Slave configuration...: address = 49, start reference = 78, count = 1
Communication.........: /dev/ttyUSB0, 9600, 8, 1, even, t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, output (holding) register table

-- Polling slave...
Reply time-out!

Thanks!