KCS DI/DO not working - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: "KCS" firmware system (https://www.kincony.com/forum/forumdisplay.php?fid=40) +--- Thread: KCS DI/DO not working (/showthread.php?tid=5305) Pages:
1
2
|
KCS DI/DO not working - LTDU - 03-20-2024 Dear team, the KCS 2.2.2 is not working for me. - DI are at random and not changing when making a connection with GND. - DO can't be switched either. - Note this is only with the KCS firmware, my own code works fine. - Maybe it is to be noted that the I2C addresses do not match the standard for my board, as stated here: https://www.kincony.com/forum/showthread.php?tid=2128&pid=6767#pid6767 Please advise. RE: KCS DI/DO not working - admin - 03-20-2024 KCS firmware only use for KinCony's ESP32 board, not for every other PCB. RE: KCS DI/DO not working - LTDU - 03-21-2024 Yes, I am using a KC868-A16 board. RE: KCS DI/DO not working - admin - 03-21-2024 can you try to test with this firmware, this i2c address changed. KCS_KC868_A16_V1.0.24-i2c.zip (Size: 725.23 KB / Downloads: 87) RE: KCS DI/DO not working - LTDU - 03-22-2024 Can try i a few days, will come back! RE: KCS DI/DO not working - admin - 03-22-2024 ok RE: KCS DI/DO not working - LTDU - 03-29-2024 The outputs are working now with the modified version, but the inputs (all shown OFF) are not recognized. With my code in contrast everything works (but I want to use KCS!): //Set i2c INPUT address PCF8574 pcf8574_input1(0x3B,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5: 0x3A <---- IS DIFFERENT!!! PCF8574 pcf8574_input2(0x39,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5: 0x39 //Set i2c OUTPUT address PCF8574 pcf8574_output1(0x3C,4,5); //channel 1-8 old hardware rev: 0x24 hardware rev >1.5: 0x3C PCF8574 pcf8574_output2(0x3D,4,5); //channel 9-16 old hardware rev: 0x25 hardware rev >1.5: 0x3D RE: KCS DI/DO not working - admin - 03-30-2024 PCF8574 pcf8574_input1(0x3B,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5: 0x3A PCF8574 pcf8574_input2(0x39,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5: 0x39 PCF8574 pcf8574_output1(0x3C,4,5); //channel 1-8 old hardware rev: 0x24 hardware rev >1.5: 0x3C PCF8574 pcf8574_output2(0x3D,4,5); //channel 9-16 old hardware rev: 0x25 hardware rev >1.5: 0x3D address 0x3A and 0x39 for INPUT ports can work well , right? RE: KCS DI/DO not working - LTDU - 04-17-2024 (03-30-2024, 02:19 AM)admin Wrote: PCF8574 pcf8574_input1(0x3B,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5: 0x3ANo, as mentioned earlier... the inputs on my unit have the addresses 3B (not 3A) and 39. In another post you told me this was normal. RE: KCS DI/DO not working - admin - 04-17-2024 list all your correct i2c address of OUTPUT and INPUT: PCF8574 pcf8574_input1(xxxx,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5: PCF8574 pcf8574_input2(xxxx,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5: PCF8574 pcf8574_output1(xxxx,4,5); //channel 1-8 old hardware rev: 0x24 hardware rev >1.5: PCF8574 pcf8574_output2(xxxx,4,5); //channel 9-16 old hardware rev: 0x25 hardware rev >1.5: |