Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RS485 usage
#1
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.
Reply
#2
ok, next week when we begin work, i will test it ,feedback to you at here.
Reply
#3
I just updated this firmware using your tools. How can i check the version to know if the update is correct ?
Reply
#4
download this firmware file: https://www.kincony.com/forum/attachment.php?aid=6311
after download, unzip, just download BIN file to ESP32.
Reply
#5
(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 ?
Reply
#6
(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 ?
Reply
#7
do you want send single command to read everyone register? or use one command to read all INPUT register?
Reply
#8
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".
   
Reply


Forum Jump:


Users browsing this thread:
2 Guest(s)