KC868-HAv2 Modbus firmware - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-HA /HA v2 (https://www.kincony.com/forum/forumdisplay.php?fid=55) +--- Thread: KC868-HAv2 Modbus firmware (/showthread.php?tid=5825) Pages:
1
2
|
KC868-HAv2 Modbus firmware - mrwolfj - 05-31-2024 Hi, I'm trying to setup KCN868-HAv2 with Modbus. Since the stock firmware works with a custom protocol, I've loaded the firmware HA485_KU_V108_RIO231124 that should work with modbus. But when I try to communicate via RS485 to USB or esphome, I get no response from the device. I've tried all these commands: Modubs command-05 (control digital output): turn ON output1: send:0A 05 00 00 FF 00 8D 41 feedback:0A 05 00 00 FF 00 8D 41 turn OFF output1: send:0A 05 00 00 00 00 CC B1 feedback:0A 05 00 00 00 00 CC B1 ------------------------------------ Modubs command-01 (read digital output state): send:0A 01 00 00 00 06 BD 73 feedback:0A 01 01 01 92 6C (output1=ON, output2--6=OFF) ------------------------------------ Modubs command-02 (read digital input state): send:0A 02 00 00 00 06 F9 73 feedback:0A 02 01 01 62 6C (input1=ON, input2--6=OFF) But nothing happens. I've also tried to broadcast the message, just in case the device slave id is not "0A", but didn't receive anything Could you help me? Thx RE: KC868-HAv2 Modbus firmware - admin - 05-31-2024 if you use HAv2 PCB, you should download V2 firmware. if you use HAv1 PCB, you should download V1 firmware. RE: KC868-HAv2 Modbus firmware - mrwolfj - 05-31-2024 (05-31-2024, 08:04 AM)admin Wrote: if you use HAv2 PCB, you should download V2 firmware. Ok, but the V2 firmware doesn't support modbus, does it? RE: KC868-HAv2 Modbus firmware - admin - 05-31-2024 V1 and V2 firmware use by private protocol, not standard modbus protocol. how to integrate to home assistant by ESPHome, we have made ESPHome component, here is video tour: https://youtu.be/S679QX6Hc6I https://youtu.be/s5Htc43HqAc RE: KC868-HAv2 Modbus firmware - mrwolfj - 06-01-2024 Ok, but here you posted a firmware that supports Modbus. I wonder if it's possible to have it also for V2. If is not available, could you send the specs in order to build a custom firmware? RE: KC868-HAv2 Modbus firmware - admin - 06-01-2024 yes, it's a special verison made for MODBUS protocol. if you just use by ESPHome, suggest use our private protocol, already have video tour and yaml for that. RE: KC868-HAv2 Modbus firmware - mrwolfj - 06-01-2024 (06-01-2024, 07:05 AM)admin Wrote: yes, it's a special verison made for MODBUS protocol. The problem is that I would like to use it in a big project and I would like to have only one RS485 line. Instead, if I will use the stock firmware I must use at least 2 RS485 lines, one only for HAv2 and the other one for Modbus devices. If you don't have any special version for V2 that supports Modbus, could you at least send me some specs in order to create a custom firmware? So the development will be a little bit easier for me Thanks! RE: KC868-HAv2 Modbus firmware - admin - 06-01-2024 do you want to write STM32 ARM CPU c code? RE: KC868-HAv2 Modbus firmware - mrwolfj - 06-01-2024 (06-01-2024, 01:00 PM)admin Wrote: do you want to write STM32 ARM CPU c code? Yes I would like to, I've already done something with FreeRTOS, but I would like to speed up a little bit the development, so if you can send me some details in order to setup a development environment would be great! RE: KC868-HAv2 Modbus firmware - admin - 06-01-2024 here is schematic of KC868-HAv2: https://www.kincony.com/forum/showthread.php?tid=5840 |