Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,413
» Latest member: apexwebstudios
» Forum threads: 3,664
» Forum posts: 18,973

Full Statistics

Online Users
There are currently 26 online users.
» 0 Member(s) | 11 Guest(s)
AhrefsBot, Amazonbot, PetalBot, Semrush, bot

Latest Threads
"KCS" v3.19.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
3 hours ago
» Replies: 0
» Views: 6
flash Kincony software to...
Forum: DIY Project
Last Post: admin
4 hours ago
» Replies: 14
» Views: 81
KC868-A6 - how to connect...
Forum: KC868-A6
Last Post: admin
6 hours ago
» Replies: 10
» Views: 142
F8 physical on device swi...
Forum: F8
Last Post: admin
6 hours ago
» Replies: 3
» Views: 16
Feedback: Product line di...
Forum: Suggestions and feedback on KinCony's products
Last Post: mkai
8 hours ago
» Replies: 0
» Views: 6
flash kc868-a4
Forum: KC868-A series and Uair Smart Controller
Last Post: Sten
Yesterday, 01:09 PM
» Replies: 14
» Views: 560
KC868 A8v3 RF not working...
Forum: KC868-A8v3
Last Post: admin
Yesterday, 10:46 AM
» Replies: 1
» Views: 10
N30 Energy entry not work...
Forum: N30
Last Post: admin
Yesterday, 01:30 AM
» Replies: 30
» Views: 582
KC868-A16 v1 with KCS v2....
Forum: "KCS" v2 firmware system
Last Post: admin
01-11-2026, 11:52 PM
» Replies: 7
» Views: 54
Separate +12V to Kincony,...
Forum: T128M
Last Post: admin
01-11-2026, 11:51 PM
» Replies: 1
» Views: 19

  RF signal learnt but when i press transmit there is no signal sent?
Posted by: stam - 05-30-2024, 03:35 PM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (5)

I press transmit and got the trasmitted msg but it cant control the device, may i know the reasons?

Print this item

  Unable to access my KC868-AG through IP address
Posted by: stam - 05-29-2024, 03:51 PM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (3)

Hi, i can see my KC-868-AG IP address in my router, but i tried typing the IP address into my browser but i cant connect to the device, may i know whats the issue? Thank you.

Print this item

  KC868-H32BS restart
Posted by: hentes - 05-29-2024, 10:19 AM - Forum: KC868-HxB series Smart Controller - Replies (5)

I have a KC868-H32BS and after restarting Home Assistant all entities from KC868-H32BS are unavailable. After power cycling the KC868-H32BS all entities are coming back. Is it possible to restart the KC868-H32BS with an MQTT command? 
Any other alternatives to resolve this situation?

Thank you

Print this item

  PWM Output on KC868-A8
Posted by: claudius - 05-29-2024, 07:41 AM - Forum: KC868-A8 - Replies (8)

I am using the KC868-A8.
I need at least ONE - preferably two PWM outputs from the KC868-A8.
Any idea except dismounting two(four) relays??

Print this item

  Arduino source code for A32 Pro - UDP with Ethernet chip W5500
Posted by: admin - 05-29-2024, 04:24 AM - Forum: KC868-A32/A32 Pro - No Replies

before run code, you need to install "AsyncUDP_ESP32_SC_Ethernet" arduino library.
   
   

Code:
/****************************************************************************************************************************
  Async_UdpClient.ino

  AsyncUDP_ESP32_SC_Ethernet is a Async UDP library for the ESP32_SC_Ethernet (ESP32S2/S3/C3 + LwIP W5500 / W6100 / ENC28J60)

  Based on and modified from ESPAsyncUDP Library (https://github.com/me-no-dev/ESPAsyncUDP)
  Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_Ethernet
  Licensed under GPLv3 license
*****************************************************************************************************************************/

#if !( defined(ESP32) )
  #error This code is designed for (ESP32S2/S3/C3 + LwIP W5500, W6100 or ENC28J60) to run on ESP32 platform! Please check your Tools->Board setting.
#endif

#include <Arduino.h>

#define USING_W5500           true
#define USING_W6100           false
#define USING_ENC28J60        false

#if !USING_W5500 && !USING_W6100 && !USING_ENC28J60
  #undef USING_W5500
  #define USING_W5500           true
#endif

#define ASYNC_UDP_ESP32_SC_ETHERNET_DEBUG_PORT      Serial

// Use from 0 to 4. Higher number, more debugging messages and memory usage.
#define _ASYNC_UDP_ESP32_SC_ETHERNET_LOGLEVEL_      4

//////////////////////////////////////////////////////////

#if USING_W5500

  #define ESP32_Ethernet_onEvent            ESP32_W5500_onEvent
  #define ESP32_Ethernet_waitForConnect     ESP32_W5500_waitForConnect

  // For ESP32_S3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI3_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  #define INT_GPIO            41
 
  #define MISO_GPIO           40
  #define MOSI_GPIO           44
  #define SCK_GPIO            42
  #define CS_GPIO             39

  // For ESP32_C3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI2_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            10
 
  //#define MISO_GPIO           5
  //#define MOSI_GPIO           6
  //#define SCK_GPIO            4
  //#define CS_GPIO             7

  //////////////////////////////////////////////////////////

#elif USING_W6100

  #define ESP32_Ethernet_onEvent            ESP32_W6100_onEvent
  #define ESP32_Ethernet_waitForConnect     ESP32_W6100_waitForConnect

  // For ESP32_S3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI3_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            4
 
  //#define MISO_GPIO           13
  //#define MOSI_GPIO           11
  //#define SCK_GPIO            12
  //#define CS_GPIO             10

  // For ESP32_C3
  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI2_HOST
  //#define SPI_CLOCK_MHZ       25
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            10
 
  //#define MISO_GPIO           5
  //#define MOSI_GPIO           6
  //#define SCK_GPIO            4
  //#define CS_GPIO             7

  //////////////////////////////////////////////////////////
 
#else   // #if USING_W5500

  //////////////////////////////////////////////////////////

  // For ENC28J60

  #define ESP32_Ethernet_onEvent            ESP32_ENC_onEvent
  #define ESP32_Ethernet_waitForConnect     ESP32_ENC_waitForConnect

  // Optional values to override default settings
  // Don't change unless you know what you're doing
  //#define ETH_SPI_HOST        SPI2_HOST
  //#define SPI_CLOCK_MHZ       8
 
  // Must connect INT to GPIOxx or not working
  //#define INT_GPIO            4
 
  //#define MISO_GPIO           13
  //#define MOSI_GPIO           11
  //#define SCK_GPIO            12
  //#define CS_GPIO             10

  //////////////////////////////////////////////////////////

#endif    // #if USING_W5500

//////////////////////////////////////////////////////////

#include <AsyncUDP_ESP32_SC_Ethernet.h>

IPAddress remoteIPAddress = IPAddress(192, 168, 3, 101);

#define UDP_REMOTE_PORT         5698

/////////////////////////////////////////////

// Enter a MAC address and IP address for your controller below.
#define NUMBER_OF_MAC      20

byte mac[][NUMBER_OF_MAC] =
{
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x01 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x02 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x03 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x04 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x05 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x06 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x07 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x08 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x09 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x0A },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x0B },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x0C },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x0D },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x0E },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x0F },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x10 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x11 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x12 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x13 },
  { 0xDE, 0xAD, 0xBE, 0xEF, 0xBE, 0x14 },
};

// Select the IP address according to your local network
IPAddress myIP(192, 168, 3, 232);
IPAddress myGW(192, 168, 3, 1);
IPAddress mySN(255, 255, 255, 0);

// Google DNS Server IP
IPAddress myDNS(8, 8, 8, 8);

/////////////////////////////////////////////

AsyncUDP udp;

void parsePacket(AsyncUDPPacket packet)
{
  Serial.print("UDP Packet Type: ");
  Serial.print(packet.isBroadcast() ? "Broadcast" : packet.isMulticast() ? "Multicast" : "Unicast");
  Serial.print(", From: ");
  Serial.print(packet.remoteIP());
  Serial.print(":");
  Serial.print(packet.remotePort());
  Serial.print(", To: ");
  Serial.print(packet.localIP());
  Serial.print(":");
  Serial.print(packet.localPort());
  Serial.print(", Length: ");
  Serial.print(packet.length());
  Serial.print(", Data: ");
  Serial.write(packet.data(), packet.length());
  Serial.println();
  //reply to the client
  packet.printf("Got %u bytes of data", packet.length());
}

void initEthernet()
{
  UDP_LOGWARN(F("Default SPI pinout:"));
  UDP_LOGWARN1(F("SPI_HOST:"), ETH_SPI_HOST);
  UDP_LOGWARN1(F("MOSI:"), MOSI_GPIO);
  UDP_LOGWARN1(F("MISO:"), MISO_GPIO);
  UDP_LOGWARN1(F("SCK:"),  SCK_GPIO);
  UDP_LOGWARN1(F("CS:"),   CS_GPIO);
  UDP_LOGWARN1(F("INT:"),  INT_GPIO);
  UDP_LOGWARN1(F("SPI Clock (MHz):"), SPI_CLOCK_MHZ);
  UDP_LOGWARN(F("========================="));

  ///////////////////////////////////

  // To be called before ETH.begin()
  ESP32_Ethernet_onEvent();

  // start the ethernet connection and the server:
  // Use DHCP dynamic IP and random mac
  //bool begin(int MISO_GPIO, int MOSI_GPIO, int SCLK_GPIO, int CS_GPIO, int INT_GPIO, int SPI_CLOCK_MHZ,
  //           int SPI_HOST, uint8_t *W6100_Mac = W6100_Default_Mac);
  ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST );
  //ETH.begin( MISO_GPIO, MOSI_GPIO, SCK_GPIO, CS_GPIO, INT_GPIO, SPI_CLOCK_MHZ, ETH_SPI_HOST, mac[millis() % NUMBER_OF_MAC] );

  // Static IP, leave without this line to get IP via DHCP
  //bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
  //ETH.config(myIP, myGW, mySN, myDNS);

  ESP32_Ethernet_waitForConnect();

  ///////////////////////////////////
}

////////////////////////////////////

void setup()
{
  Serial.begin(115200);

  while (!Serial && (millis() < 5000));

  delay(500);

  Serial.print(F("\nStart Async_UDPClient on "));
  Serial.print(ARDUINO_BOARD);
  Serial.print(F(" with "));
  Serial.println(SHIELD_TYPE);

#if USING_W5500
  Serial.println(WEBSERVER_ESP32_SC_W5500_VERSION);
#elif USING_W6100
  Serial.println(WEBSERVER_ESP32_SC_W6100_VERSION); 
#else
  Serial.println(WEBSERVER_ESP32_SC_ENC_VERSION);
#endif
 
  Serial.println(ASYNC_UDP_ESP32_SC_ETHERNET_VERSION);

  Serial.setDebugOutput(true);

  ///////////////////////////////////

  initEthernet();

  ///////////////////////////////////

  // Client address
  Serial.print("Async_UDPClient started @ IP address: ");
  Serial.println(ETH.localIP());

  if (udp.connect(remoteIPAddress, UDP_REMOTE_PORT))
  {
    Serial.println("UDP connected");

    udp.onPacket([](AsyncUDPPacket packet)
    {
      parsePacket( packet);
    });

    //Send unicast
    udp.print("Hello Server!");
  }
}

void loop()
{
  delay(2000);
  //Send broadcast on port UDP_REMOTE_PORT = 1234
  udp.broadcastTo("Anyone here?", UDP_REMOTE_PORT);

}

Print this item

  KC868-A8 + KCS + iiC + PCF8574 + TUYA
Posted by: Vall2KAS - 05-28-2024, 11:50 AM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Dear ALL,
I plan to connect via iic PCF8574 - 4 input - 4 output.
Question: How (or) will the KCS firmware find the PCF8574 and connect these input-outputs to the TUYA? I will buy a TUYA license.

Print this item

  "KCS" v1.0.7 firmware for A32 Pro controller
Posted by: admin - 05-28-2024, 02:44 AM - Forum: "KCS" v2 firmware system - No Replies

improvment:
1. changed process worm momory size.
2. added different delay time when turn ALL relay ON

there are some different files for v1.0.7. delay time: 1ms, 5ms, 10ms, 50ms    4 version.

just added different delay time when turn ON all 32 channel relay output, you can chose by yourself. added the delay time will protect your power system, because if you have connected 32 channel contactor work at the same time,it will cause instantaneous impact on the power grid.


.zip   A32PRO_V1.0.7_1ms.zip (Size: 777.64 KB / Downloads: 422)

.zip   A32PRO_V1.0.7_5ms.zip (Size: 777.7 KB / Downloads: 472)

.zip   A32PRO_V1.0.7_10ms.zip (Size: 777.7 KB / Downloads: 456)

.zip   A32PRO_V1.0.7_50ms.zip (Size: 777.63 KB / Downloads: 448)

Print this item

  KC868-A4 USB not detected by computer
Posted by: BogdanBBB - 05-27-2024, 02:53 PM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Hi,

Brand new board, I plug it in > the computer doesn't "see" it. What I've tried so far:
- different power sources
- different USB-C data cables
- reinstalled USB drivers
- 3 different computers (all running different versions of macos)
All of the above tested with a working A8 board that I have in use, so it's definitely not the cable/power adapter/drivers.
Another thing that is strange: as soon as I power it up 3 of the four relays engage and stay ON that until I power it off.

Please help. I just want to install Tasmota on it.
Thank you!

   

Nevermind... I tried another random cable and it finally worked! For others who might be in the same situation: I used a USB-A to USB-C cable with a USB-C dongle to plug into the macbook.

Print this item

  Atc adapter not working
Posted by: Yazaww - 05-27-2024, 08:22 AM - Forum: KC868-HxB series Smart Controller - Replies (1)

I tried to connect atc with h32b and it didnt work, i tried rs232 cable, i tried directly, nothing works how to solve this



Attached Files Thumbnail(s)
   
Print this item

  how to test M30 by web server firmware
Posted by: admin - 05-25-2024, 12:19 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (3)

1. install USB driver for Windows PC. here is driver download link: 
https://www.kincony.com/download/CH341SER.zip

2. download firmware BIN file (after you download ZIP file , need unzip it):

.zip   m30-factory.zip (Size: 491.68 KB / Downloads: 482)

3. use ESP32 flash download tool:
when open tool, chose "ESP32" chip:
   
then begin do these 5 steps to download firmware:
   
after you downloaded, connect ethernet cable to your router, re power on of M30 board. now the ethernet work with DHCP mode. you can login with your router to find our the M30's IP address,  then use IP address login by web browser.

ESP32 flash download tool download link:

.zip   flash_download_tool_3.9.6_0.zip (Size: 20.09 MB / Downloads: 513)

Print this item