Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A8M and PCF857x error
#1
Hello.
I have new board KC868-A8M v1.1 from Aliexpress.
Firmware: KCS_KC868_A8M_V2.1.4.bin

There is no reaction to the inputs in the web interface, mqtt and others. When the outputs are turned on in the web interface, the LEDs on the board do not light up.

Not working (from first sartup) inputs and otuputs. Debug show:
I (2981) RF: Start RF receiver
E (3982) pcf857x: pcf_0 read error!
E (3983) pcf857x: pcf_0 write error!
I (3987) pcf857x: pcf857x init.

I have verified the SLA and SDA lines - they are alive. Voltage on PCF - 3,2V

I2C scanner found PCF module:
I2C scanner. Scanning ...
Found address: 34 (0x22)
Found address: 36 (0x24)
Found 2 device(s).

Sketch [Arduino source code for KC868-A8M]-03 INPUT} with Serial.print ("In 1: "); - working, but LED on OUT don't light. I see a reaction to a short circuit in the terminal, with the modified code

Sketch [Arduino source code for KC868-A8M]-05 OUTPUT - not working. Not LED light on out.

In library PCF8574.h for 0x24 sketch print "Init pcf8574...KO". Not ''OK"
Reply
#2
take a photo of board, i want to see how you wire.
Reply
#3
Photo 
           

The output is not triggered. By input, the values are either at the first input or at the second in random order. There is no reaction to short circuits

I also have an A16 board - it works without problems

I rechecked the Arduino code
[Arduino source code for KC868-A8M]-05 OUTPUT - the outputs are working, the LEDs are lit up. After applying 12V to the output of the transistor. It turns out that the outputs and inputs do not work only on the KCS firmware. An error in the KCS firmware code?

Code:
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6612
load:0x40078000,len:15060
load:0x40080400,len:3816
entry 0x40080698
I (27) boot: ESP-IDF v4.4.5-dirty 2nd stage bootloader
I (27) boot: compile time 21:06:15
I (27) boot: chip revision: v3.1
I (31) boot.esp32: SPI Speed      : 40MHz
I (36) boot.esp32: SPI Mode       : DIO
I (40) boot.esp32: SPI Flash Size : 4MB
I (45) boot: Enabling RNG early entropy source...
I (50) boot: Partition Table:
I (54) boot: ## Label            Usage          Type ST Offset   Length
I (61) boot:  0 nvs              WiFi data        01 02 00009000 00026000
I (68) boot:  1 phy_init         RF data          01 01 0003f000 00001000
I (76) boot:  2 factory          factory app      00 00 00040000 003b0000
I (83) boot: End of partition table
I (88) esp_image: segment 0: paddr=00040020 vaddr=3f400020 size=1045a0h (1066400) map
I (482) esp_image: segment 1: paddr=001445c8 vaddr=3ffb0000 size=0316ch ( 12652) load
I (487) esp_image: segment 2: paddr=0014773c vaddr=40080000 size=088dch ( 35036) load
I (502) esp_image: segment 3: paddr=00150020 vaddr=400d0020 size=a7c44h (687172) map
I (751) esp_image: segment 4: paddr=001f7c6c vaddr=400888dc size=06968h ( 26984) load
I (770) boot: Loaded app from partition at offset 0x40000
I (770) boot: Disabling RNG early entropy source...
I (782) cpu_start: Pro cpu up.
I (782) cpu_start: Starting app cpu, entry point is 0x40081254
I (0) cpu_start: App cpu up.
I (798) cpu_start: Pro cpu start user code
I (798) cpu_start: cpu freq: 240000000
I (798) cpu_start: Application information:
I (803) cpu_start: Project name:     kc868-a-serial
I (808) cpu_start: App version:      v1.0.0-156-g0f4a3d4-dirty
I (815) cpu_start: Compile time:     Sep 10 2023 14:29:26
I (821) cpu_start: ELF file SHA256:  ec2809e9683c76f4...
I (827) cpu_start: ESP-IDF:          v4.4.5-dirty
I (832) cpu_start: Min chip rev:     v0.0
I (837) cpu_start: Max chip rev:     v3.99 
I (842) cpu_start: Chip rev:         v3.1
I (847) heap_init: Initializing. RAM available for dynamic allocation:
I (854) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (860) heap_init: At 3FFC96A0 len 00016960 (90 KiB): DRAM
I (866) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (872) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (879) heap_init: At 4008F244 len 00010DBC (67 KiB): IRAM
I (886) spi_flash: detected chip: generic
I (890) spi_flash: flash io: dio
I (895) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (909) main: [APP] Startup..
I (912) main: [APP] Free memory: 206128 bytes
I (917) main: [APP] IDF version: v4.4.5-dirty
I (1198) NVS: init nvs finish.
I (1202) system_api: Base MAC address is not set
I (1202) system_api: read default base MAC address from EFUSE
I (1224) esp_eth.netif.netif_glue: 08:f9:e0:8a:ed:bb
I (1224) esp_eth.netif.netif_glue: ethernet attached to netif
I (2725) eth: Ethernet Started
I (2726) eth: Ethernet init
I (2726) wifi station: ESP_WIFI_INIT
I (2727) eth: Ethernet Link Up
I (2730) eth: Ethernet HW Addr 08:f9:e0:8a:ed:bb
I (2737) wifi:wifi driver task: 3ffd6848, prio:23, stack:6656, core=0
I (2750) wifi:wifi firmware version: 0f80fa0
I (2750) wifi:wifi certification version: v7.0
I (2750) wifi:config NVS flash: enabled
I (2753) wifi:config nano formating: disabled
I (2757) wifi:Init data frame dynamic rx buffer num: 32
I (2762) wifi:Init management frame dynamic rx buffer num: 32
I (2767) wifi:Init management short buffer num: 32
I (2772) wifi:Init dynamic tx buffer num: 32
I (2776) wifi:Init static rx buffer size: 1600
I (2780) wifi:Init static rx buffer num: 10
I (2784) wifi:Init dynamic rx buffer num: 32
I (2789) wifi_init: rx ba win: 6
I (2792) wifi_init: tcpip mbox: 32
I (2796) wifi_init: udp mbox: 6
I (2800) wifi_init: tcp mbox: 6
I (2803) wifi_init: tcp tx win: 5744
I (2808) wifi_init: tcp rx win: 5744
I (2812) wifi_init: tcp mss: 1440
I (2821) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (2918) wifi:mode : softAP (08:f9:e0:8a:ed:b9)
I (2920) wifi:Total power save buffer number: 16
I (2920) wifi:Init max length of beacon: 752/752
I (2922) wifi:Init max length of beacon: 752/752
I (2927) web_server: Starting HTTP Server on port: '80'
I (2934) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0 
I (2941) ntp: tz:UTC+0
I (2941) UDP SERVER: Socket created
I (2948) UDP SERVER: Socket bound, port 4001
I (2942) gpio: GPIO[14]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 0| Pulldown: 0| Intr:0 
I (2962) RF: RCSwitch->nReceiverInterrupt=16 gpio_pin_sel=65536
I (2969) gpio: GPIO[16]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 
I (2979) RF: Start RF receiver
E (3980) pcf857x: pcf_0 read error!
E (3981) pcf857x: pcf_0 write error!
I (3986) pcf857x: pcf857x init.
eFuse Two Point: NOT supported
eFuse Vref: Supported
I (3987) analog: ---->adc1 thresholdd : 0
I (3991) analog: ---->adc2 thresholdd : 0
I (3996) analog: ---->adc3 thresholdd : 0
I (4001) analog: ---->adc4 thresholdd : 0
I (4005) analog: adc 0 monitor items : 0 
I (4010) analog: adc 1 monitor items : 0 
I (4015) analog: adc 2 monitor items : 0 
I (4019) analog: adc 3 monitor items : 0 
I (7227) esp_netif_handlers: eth ip: 192.168.**.**, mask: 255.255.255.0, gw: 192.168.**.1
I (7228) eth: Ethernet Got IP Address
I (7230) eth: ~~~~~~~~~~~
I (7234) eth: ETHIP:192.168.**.**
I (7238) eth: ETHMASK:255.255.255.0
I (7242) eth: ETHGW:192.168.**.1
I (7246) eth: ~~~~~~~~~~~
I (9741) ifttt: start ifttt task
I (11159) web socket: Handshake done, the new connection was opened
Reply
#4
which KCS firmware version you have download?
Reply
#5
KCS_KC868_A8M_V2.1.4.bin
Reply
#6
ok, we will release new firmware to fix this problem soon. when have news, i will tell you.
Reply
#7
this is new firmware solved your problem.

.zip   KCS_KC868_A8M_V2.1.8.zip (Size: 764.23 KB / Downloads: 272)
Reply
#8
Tested. It works! Thanks
Reply
#9
ok, good.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)