Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RS485 io module - KC868-HAv2 released
#1
The smallest RS485 IO Module -- KC868-HAv2 module. size 3cm*3cm. let your switch panel and dry contact sensor convert to RS485. KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome, easy integrate to home assistant. You can add everyone KC868-HA board with 6 digital input ports and 6 digital output ports to home assistant by RS485.
[Image: detail1_01.jpg]
[Image: detail1_02.jpg]
[Image: detail1_03.jpg]
[Image: detail1_04.jpg]
[Image: detail1_05.jpg]
[Image: detail1_06.jpg]
[Image: detail1_07.jpg]
[Image: detail1_08.jpg]
Reply
#2
is there modbus protocol specification? i would want to controll it via standard tasmota modbus adapater.
Reply
#3
here is modbus firmware for HAv2.
   

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)
------------------------------------
Modubs command-03 (read multi registers):

register: address: (200)dec (C8)hex digital input+digital output state

send:0A 03 00 C8 00 02 44 8E
feedback:0A 03 04 00 01 00 00 11 33

note:00 01 00 00 = 00 01 (input1=ON, input2--6=OFF)  00 00  (output1--6=OFF)


Attached Files
.zip   HA485_KU_V108_RIO231124.zip (Size: 6.43 KB / Downloads: 193)
.txt   HA-modbus-command-demo.txt (Size: 864 bytes / Downloads: 121)
Reply
#4
thank you
- does this mean standard firmware that is flashed when buying is not modbus but custom protocol for KCS?
- how is this firmware different from V200_231025 ?
Reply
#5
V200_231025 is not a modbus protocol, use for KCS firmware. if you want standard modbus protocol, just download this one.
Reply
#6
is it possible to set line speed for modbus and would you consider open sourcing the modbus firmware so it can be extended?

also it would be useful to have a more clear modbus documentation of the standard modbus functionality.
i got it to work but its unclear which other registers i can write and in general what registers use which value

i am considering this in a bigger installation.
Reply
#7
Register addresses are arranged in order.
it's standard modbus protocol, if you want to write your own source code, ok, just download to AT32 chip.
Reply
#8
(12-28-2023, 12:32 AM)admin Wrote: Register addresses are arranged in order.
it's standard modbus protocol, if you want to write your own source code, ok, just download to AT32 chip.

thank you. 
unfortunately i dont have the capacity to reverse engineer this. the datasheets are in chinese and there is no example toolchain and its unclear how to flash via rs485.
Reply
#9
AT32 chip as same as STM32 CPU chip. download firmware by USB Jlink cable.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)