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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,367
» Latest member: talljane
» Forum threads: 2,574
» Forum posts: 13,313

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 26 Guest(s)
Bing, Bytespider, Crawl, Google, Google-Apps-Script, PetalBot, bot, ingersoj

Latest Threads
How can I power multiple ...
Forum: KC868-A series and Uair Smart Controller
Last Post: ingersoj
3 minutes ago
» Replies: 11
» Views: 117
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: biofects
30 minutes ago
» Replies: 13
» Views: 455
change wake up name
Forum: KinCony AS
Last Post: admin
1 hour ago
» Replies: 13
» Views: 95
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
3 hours ago
» Replies: 6
» Views: 44
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: admin
4 hours ago
» Replies: 18
» Views: 183
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: admin
4 hours ago
» Replies: 8
» Views: 2,266
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
Yesterday, 04:32 AM
» Replies: 32
» Views: 395
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
12-17-2024, 11:43 PM
» Replies: 10
» Views: 68
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
12-17-2024, 11:40 PM
» Replies: 7
» Views: 51
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
12-17-2024, 11:38 PM
» Replies: 2
» Views: 179

  KC868-A8 ethernet work with home assistant by ESPHome configure
Posted by: admin - 10-28-2022, 12:23 AM - Forum: KC868-A8 - Replies (2)


.txt   A8-esphome.txt (Size: 3.35 KB / Downloads: 724)

esphome:
  name: kc868-a8
  platform: ESP32
  board: esp32dev
 
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.199
    gateway: 192.168.1.1
    subnet: 255.255.255.0 


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

# Individual outputs
switch:
  - platform: gpio
    name: "a8-light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a8-light2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a8-light7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a8-light8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
     
binary_sensor:
  - platform: gpio
    name: "a8-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a8-s3"
    pin:
      number: 32
      inverted: true

  - platform: gpio
    name: "a8-s4"
    pin:
      number: 33
      inverted: true
     
dallas:
  - pin: 14

sensor:
  - platform: dallas
    address: 0x1c0000031edd2a28
    name: "ds18b20-1"

# Enable logging
logger:

# Enable Home Assistant API
api:

Print this item

  KC868-A8 Matter
Posted by: DiegoAlmeida - 10-27-2022, 02:07 PM - Forum: KC868-A8 - Replies (1)

Is there a way to install the Matter protocol on the KC868-A8?

Print this item

  Size of the case
Posted by: GDN20 - 10-26-2022, 08:22 AM - Forum: KC868-E16S/E16P - Replies (5)

hello. I want to know the length, width, height of a standard case for kc868-e16s. Thanks

Print this item

  Why my KC868 A4 after 2 days not working or stop working.
Posted by: abgran - 10-23-2022, 12:44 PM - Forum: KC868-A4 - Replies (5)

Why my KC868 A4 after 2 days not working or stop working but the power led still on. It's must switch off the power then switch on the power it will work again. after 2 days it will stop working again.

Print this item

  Quectel EC200U LTE Cat 1 Module Software command
Posted by: admin - 10-23-2022, 11:49 AM - Forum: KC868-E8T - No Replies

Here are some documents of EC200U 4G module software



Attached Files
.pdf   Quectel_EC200U&EG915U_Series_AT_Commands_Manual_V1.0.pdf (Size: 1.23 MB / Downloads: 854)
.pdf   Quectel_EC200U&EG915U_Series_Audio_Application_Note_V1.2.pdf (Size: 280.37 KB / Downloads: 407)
.pdf   Quectel_EC200U&EG915U_Series_Camera_Application_Note_V1.1.pdf (Size: 264.27 KB / Downloads: 385)
.pdf   Quectel_EC200U&EG915U_Series_Dual_SIM_Single_Standby_Application_Note_V1.0.pdf (Size: 200.12 KB / Downloads: 593)
.pdf   Quectel_EC200U&EG915U_Series_Enhanced_Sleep_Mode_Application_Note_V1.1.pdf (Size: 230.53 KB / Downloads: 451)
.pdf   Quectel_EC200U&EG915U_Series_FILE_Application_Note_V1.2.pdf (Size: 331.06 KB / Downloads: 407)
.pdf   Quectel_EC200U&EG915U_Series_Firmware_Download_Guide_V1.0.pdf (Size: 372.14 KB / Downloads: 628)
.pdf   Quectel_EC200U&EG915U_Series_FOTA_Application_Note_V1.0.pdf (Size: 308.05 KB / Downloads: 500)
.pdf   Quectel_EC200U&EG915U_Series_FTM_Application_Note_V1.1.pdf (Size: 169.68 KB / Downloads: 421)
.pdf   Quectel_EC200U&EG915U_Series_FTP(S)_Application_Note_V1.1.pdf (Size: 353.67 KB / Downloads: 654)
.pdf   Quectel_EC200U&EG915U_Series_HTTP(S)_Application_Note_V1.1.pdf (Size: 408.22 KB / Downloads: 328)
.pdf   Quectel_EC200U&EG915U_Series_MMS_Application_Note_V1.0.pdf (Size: 233.05 KB / Downloads: 338)
.pdf   Quectel_EC200U&EG915U_Series_MQTT_Application_Note_V1.1.pdf (Size: 324.23 KB / Downloads: 397)
.pdf   Quectel_EC200U&EG915U_Series_MUX_Application_Note_V1.1.pdf (Size: 276.14 KB / Downloads: 492)
.pdf   Quectel_EC200U&EG915U_Series_PPP_Application_Note_V1.1.pdf (Size: 647.19 KB / Downloads: 748)
.pdf   Quectel_EC200U&EG915U_Series_QuecCell_Application_Note_V1.2.pdf (Size: 238.95 KB / Downloads: 284)
.pdf   Quectel_EC200U&EG915U_Series_QuecLocator_Application_Note_V1.0.pdf (Size: 237.78 KB / Downloads: 1086)
.pdf   Quectel_EC200U&EG915U_Series_SSL_Application_Note_V1.1.pdf (Size: 301.48 KB / Downloads: 383)
.pdf   Quectel_EC200U&EG915U_Series_TCP(IP)_Application_Note_V1.1.pdf (Size: 462.73 KB / Downloads: 372)
.pdf   Quectel_EC200U_Series&EG912U-GL_GNSS_Application_Note_V1.1.pdf (Size: 372.95 KB / Downloads: 688)
.pdf   Quectel_EC200U_Series_Dual_SIM_Dual_Standby_Application_Note_V1.0.pdf (Size: 295.66 KB / Downloads: 490)
Print this item

  KC868-E8T Quectel EC200U LTE Cat 1 Module datasheet
Posted by: admin - 10-23-2022, 11:47 AM - Forum: KC868-E8T - No Replies

KC868-E8T default on PCB board use "EC200U-EU" version 4G module. if you want to customsize define 4G module by "EC200U-CN" or "EC200U-AU", please contact with us.


.pdf   Quectel_EC200U_Series_LTE_Standard_Specification_.pdf (Size: 223.23 KB / Downloads: 523)

Print this item

  KC868-E8T 4G module SMS command list
Posted by: admin - 10-23-2022, 10:51 AM - Forum: KC868-E8T - No Replies

   


1. Set a password
Format: KC + old password + new password
Note: The initial default password is 0000, and the password is 4 digits
Such as sending SMS: kc0000new1234
Reply to SMS: new password is 1234

2. Restore default password
Press the GPIO0 button on the board for more than 5 seconds, the password will be restored to 0000

3. Set the administrator number
If the password is 1234
Send SMS: kc1234set13100000000
Reply to SMS: manager 13100000000 set ok
Up to 6 administrator numbers can be set

The password and administrator number are written into eprom, and they are still valid after power off and on again.

4. Clear the administrator number
If the password is 1234
Send SMS: kc1234clear13100000000
Reply to SMS: clear manager 13100000000 ok

5. Clear all administrator numbers
If the password is 1234
Send SMS: kc1234clearall
Reply to SMS: clear all manager ok

6. Turn on one relay
Send SMS: kc1234relay1on
Reply to SMS: relay 1 is ON

ID:1-8 represent 1-8 relays

7. Turn off one relay
Send SMS: kc1234relay1off
Reply to SMS: relay 1 is OFF

ID:1-8 represent 1-8 relays

8. Turn on all relays
Send SMS: kc1234allon
Reply to SMS: ALL relay are ON

9. Turn off all relays
Send SMS: kc1234alloff
Reply to SMS: ALL relay are OFF

10. Jog control one relay

Jog control means that relay is turned on first, and after 1 second, it will be automatically turned off.

Send SMS: kc1234inching1
Reply to SMS: relay 1 is inching control ok

ID:1-8 represent 1-8 relays

11. Read the current state of the relay

Send SMS: kc1234state
Reply to SMS: relay 1=ON 2=ON 3=OFF 4=ON 5=OFF 6=ON 7=ON

Print this item

  KC868-E8T demo configure for ESPhome
Posted by: admin - 10-23-2022, 10:44 AM - Forum: KC868-E8T - No Replies

   

.txt   KC868-E8T-Home assistant.txt (Size: 4.81 KB / Downloads: 236)

esphome:
  name: e8t
  platform: ESP32
  board: esp32dev
  on_boot:  #Power chip BL0939 initialization
    priority: 600
    then:
      - uart.write:
          id: uart_1
          data: [0xA5, 0x39, 0x42, 0x00, 0x00, 0xDF]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x38, 0x3C, 0x00, 0x00, 0xE6]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x39, 0x42, 0x00, 0x00, 0xDF]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x3A, 0x01, 0x00, 0x00, 0x1F]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x39, 0x00, 0x00, 0x00, 0x21]
uart:
  - id: uart_1
    tx_pin: GPIO12
    rx_pin: GPIO39
    baud_rate: 4800
    parity: NONE
    stop_bits: 2   
 
  - id: uart_2
    tx_pin: GPIO33
    rx_pin: GPIO36
    baud_rate: 4800
    parity: NONE
    stop_bits: 2   

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "d83d604e4f0ae287fb041dbaf31524d9"


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
 


sensor:
  - platform: bl0939
    uart_id: uart_1
    update_interval: 10s
    voltage:
      name: 'BL0939A Voltage'
    current_1:
      name: 'BL0939A Current 1'
    current_2:
      name: 'BL0939A Current 2'
    active_power_1:
      name: 'BL0939A Active Power 1'
    active_power_2:
      name: 'BL0939A Active Power 2'
    energy_1:
      name: 'BL0939A Energy 1'
    energy_2:
      name: 'BL0939A Energy 2'
    energy_total:
      name: 'BL0939A Energy Total'
     
     
     
  - platform: bl0939
    uart_id: uart_2
    update_interval: 10s
    voltage:
      name: 'BL0939B Voltage'
    current_1:
      name: 'BL0939B Current 1'
    current_2:
      name: 'BL0939B Current 2'
    active_power_1:
      name: 'BL0939B Active Power 1'
    active_power_2:
      name: 'BL0939B Active Power 2'
    energy_1:
      name: 'BL0939B Energy 1'
    energy_2:
      name: 'BL0939B Energy 2'
    energy_total:
      name: 'BL0939B Energy Total'
     

# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a
 
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

   
# Individual outputs
switch:
  - platform: gpio
    name: "e8t-light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "e8t-light2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "e8t-light7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

binary_sensor:
  - platform: gpio
    name: "e8t-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e8t-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e8t-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e8t-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e8t-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e8t-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e8t-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "e8t-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

Print this item

  KC868-E8T ESP32 and Tuya I/O pin define
Posted by: admin - 10-23-2022, 10:42 AM - Forum: KC868-E8T - Replies (8)

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24

Input_IIC_address 0x22

OLED address: 0x78

DS3231 RTC address: 0x68

DS18B20/DHT11/DHT21/LED strip : 14

RF433MHz wireless RXD: 32

4G module RXD: 35
4G module TXD: 15

TUYA module RXD: 16
TUYA module TXD: 13

RS485 RXD: 34
RS485 TXD: 2

energy meter 1-2 channel RXD: 39
energy meter 1-2 channel TXD: 12

energy meter 3-4 channel RXD: 36
energy meter 3-4 channel TXD: 33

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT

Print this item

  KC868-A6 DS1307 Issue
Posted by: Senapsys - 10-23-2022, 06:50 AM - Forum: KC868-A series and Uair Smart Controller - Replies (20)

Hi there

I'm having an issue with getting the KC868-A6 RTC working.

I've taken the example code in the A6 thread as per below, and it returns an error of "Couldn't find RTC".

I've made sure that the I2C SDA and SCL pins are set correctly in the NodeMCU-32S config file.

The RTClib I've used is the Adafruit library below:
https://github.com/adafruit/RTClib

The battery has been installed into the socket on the board.  I've successfully coded up things so that the PCF8574 outputs and inputs to work so I know that the I2C SDA and SCL are working.

The comments in the example code mention the Wire lib, so I've tried including this as well, but it didn't fix the problem.

Any thoughts would be appreciated.


/*KC868-A6 DS1307 CODE*/
// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
#include "RTClib.h"

RTC_DS1307 rtc;

char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};

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

#ifndef ESP8266
  while (!Serial); // wait for serial port to connect. Needed for native USB
#endif

  if (! rtc.begin()) {
    Serial.println("Couldn't find RTC");
    Serial.flush();
    while (1) delay(10);
  }

  if (! rtc.isrunning()) {
    Serial.println("RTC is NOT running, let's set the time!");
    // When time needs to be set on a new device, or after a power loss, the
    // following line sets the RTC to the date & time this sketch was compiled
    rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
    // This line sets the RTC with an explicit date & time, for example to set
    // January 21, 2014 at 3am you would call:
    // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
  }

  // When time needs to be re-set on a previously configured device, the
  // following line sets the RTC to the date & time this sketch was compiled
  // rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
  // This line sets the RTC with an explicit date & time, for example to set
  // January 21, 2014 at 3am you would call:
  // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}

void loop () {
    DateTime now = rtc.now();

    Serial.print(now.year(), DEC);
    Serial.print('/');
    Serial.print(now.month(), DEC);
    Serial.print('/');
    Serial.print(now.day(), DEC);
    Serial.print(" (");
    Serial.print(daysOfTheWeek[now.dayOfTheWeek()]);
    Serial.print(") ");
    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();

    Serial.print(" since midnight 1/1/1970 = ");
    Serial.print(now.unixtime());
    Serial.print("s = ");
    Serial.print(now.unixtime() / 86400L);
    Serial.println("d");

    // calculate a date which is 7 days, 12 hours, 30 minutes, and 6 seconds into the future
    DateTime future (now + TimeSpan(7,12,30,6));

    Serial.print(" now + 7d + 12h + 30m + 6s: ");
    Serial.print(future.year(), DEC);
    Serial.print('/');
    Serial.print(future.month(), DEC);
    Serial.print('/');
    Serial.print(future.day(), DEC);
    Serial.print(' ');
    Serial.print(future.hour(), DEC);
    Serial.print(':');
    Serial.print(future.minute(), DEC);
    Serial.print(':');
    Serial.print(future.second(), DEC);
    Serial.println();

    Serial.println();
    delay(3000);
}

Print this item