Smart Home Automation Forum
RS485 usage - 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-AK (https://www.kincony.com/forum/forumdisplay.php?fid=37)
+--- Thread: RS485 usage (/showthread.php?tid=6976)



RS485 usage - charlesjabged - 11-02-2024

I just received the keyboard and i am trying to read button state with modbus. I try to use this: https://www.kincony.com/forum/attachment.php?aid=2240
but it is really unclear to me.

I try coils, inputs reg, and holding with:
1 stop bit, no parity, 9600 baud.

I have 3 others devices that work well on the same modbus line ( with different MB address ).

Can you help me with the correct way to poll button status ? (i will do a request every 1sec).

thank you in advance.


RE: RS485 usage - admin - 11-02-2024

ok, next week when we begin work, i will test it ,feedback to you at here.


RE: RS485 usage - charlesjabged - 11-03-2024

I just updated this firmware using your tools. How can i check the version to know if the update is correct ?


RE: RS485 usage - admin - 11-03-2024

download this firmware file: https://www.kincony.com/forum/attachment.php?aid=6311
after download, unzip, just download BIN file to ESP32.


RE: RS485 usage - charlesjabged - 11-03-2024

(11-03-2024, 10:58 AM)admin Wrote: download this firmware file: https://www.kincony.com/forum/attachment.php?aid=6311
after download, unzip, just download BIN file to ESP32.

That exactly what i did. Then, i can connect to the wifi AP and go to the web interface. The software version is: 1.0.6. but the file linked is 2.2.6. 
Is there a why to check if the new firmeware was really written on the targeted device ?


RE: RS485 usage - charlesjabged - 11-03-2024

(11-03-2024, 11:14 AM)charlesjabged Wrote:
(11-03-2024, 10:58 AM)admin Wrote: download this firmware file: https://www.kincony.com/forum/attachment.php?aid=6311
after download, unzip, just download BIN file to ESP32.

That exactly what i did. Then, i can connect to the wifi AP and go to the web interface. The software version is: 1.0.6. but the file linked is 2.2.6. 
Is there a why to check if the new firmeware was really written on the targeted device ?

Just to let yo know that, after multiple try, i was able to update the board successfully. Now, i am able to read 35 coils. The only problem is that the coils 1 do not correspond to input 1. 

[1]:    1
[2]:    1
[3]:    1
[4]:    0
[5]:    0
[6]:    0
[7]:    0
[8]:    0
[9]:    1
[10]:  1
[11]:  1
[12]:  1
[13]:  1
[14]:  1
[15]:  1
[16]:  1
[17]:  1
[18]:  1
[19]:  1
[20]:  1
[21]:  1
[22]:  1
[23]:  1
[24]:  1
[25]:  1
[26]:  1
[27]:  1
[28]:  1
[29]:  1
[30]:  1
[31]:  1
[32]:  1
[33]:  1
[34]:  1
[35]:  1 


From 4 to 8, inputs seems to be reversed. is it normal ?


RE: RS485 usage - admin - 11-04-2024

do you want send single command to read everyone register? or use one command to read all INPUT register?


RE: RS485 usage - admin - 11-05-2024

tested with KCS firmware, enabled rs485 modbus as follows, INPUT1 (key1) is no problem. see the photos.
INPUT 1-35 begin with RS485 register 0
   
   
   
   

tested with key4 ,also is well.  bit "0" means "pressed".