Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lesson29- How to use tasmota for KC868-A8 via PCF8574 IIC extend GPIO
#1
Thanks for "blakadder" from https://blakadder.com supply the tasmota firmware BIN file for KC868-A8
details you can see : https://blakadder.com/kincony-KC868-A8



1. download tasmota firmware for KC868-A8

.zip   KC868-A8-Tasmota-firmware.zip (Size: 877.69 KB / Downloads: 297)

2. After you get it running on your Wi-Fi network, set the template in " Configuration - Other"
copy this code:

{"NAME":"KC868-A8","GPIO":[32,0,1120,0,640,608,0,0,0,1,1,1152,0,0,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,1],"FLAG":0,"BASE":1,"CMND":"EthClockMode 3 | EthAddress 0 | EthType 0 | I2CDriver2 1"}

3. After applying the template you need one more configuration step. Navigate to " Configuration - Configure PCF8574 " and set the PCF8574 connected to relays to Output.

[Image: setup.jpg]

[Image: webui.jpg]
Reply
#2
this work very good.
Reply
#3
Hi

Thank you very much for this tuto ! But when i followed step, I only get access to KC868-A8 via wifi, ethernet seems to not wok properly (even if led statut is blinking) : I don't get ethernet IP (on log console, or via network scanner)
Reply
#4
do you have downloaded our firmware BIN file?
Reply
#5
(03-25-2022, 11:00 PM)admin Wrote: do you have downloaded our firmware BIN file?

Yes !

I follow every step :
- flash with ESP flasher, with your custom firmware
- connect to Wifi and select my wifi setup (etc)
(note: ethernet seems to not be activated)
 - add template and activate
- configure PCF
(note: ethernet seems to work and blink)

But on logs console, I don't get any other ip address (only wifi address), and don't react when I plug/unplug ethernet cable

Code:
[11:47:53]00:00:00.002 HDW: ESP32-D0WDQ6
[11:47:53]00:00:00.065 UFS: FlashFS mounted with 304 kB free
[11:47:53]00:00:00.168 CFG: Loaded from File, Count 13
[11:47:53]00:00:00.184 QPC: Count 1
[11:47:53]00:00:00.321 BRY: Berry initialized, RAM used=3504
[11:47:53]00:00:00.344 BRY: no 'preinit.be'
[11:47:53]00:00:00.348 I2C: PCF8574 found at 0x22
[11:47:53]00:00:00.349 I2C: PCF8574 found at 0x24
[11:47:53]00:00:00.352 PCF: Total devices 2, PCF8574 output ports 8
[11:47:53]00:00:00.357 Project tasmota - Tasmota Version 10.0.0.3(tasmota)-2_0_1(2021-11-14T21:44:07)
[11:47:54]00:00:00.536 BRY: no 'autoexec.be'
[11:47:54]00:00:01.042 WIF: Connecting to AP1 IBR-IOT Channel 6 BSSId XXXXX in mode 11n as tasmota-DC2E30-3632...
[11:47:58]00:00:05.121 WIF: Connected
[11:47:59]00:00:05.382 HTP: Web server active on tasmota-DC2E30-3632 with IP address 192.168.10.112
[11:48:00]11:48:00.512 RSL: INFO1 = {"Info1":{"Module":"KC868-A8","Version":"10.0.0.3(tasmota)","FallbackTopic":"cmnd/DVES_DC2E30_fb/","GroupTopic":"cmnd/tasmotas/"}}
[11:48:00]11:48:00.527 RSL: INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"tasmota-XXXX","IPAddress":"192.168.10.112"}}
[11:48:00]11:48:00.531 RSL: INFO3 = {"Info3":{"RestartReason":"Software reset CPU"}}
[11:48:00]11:48:00.545 RSL: RESULT = {"POWER1":"OFF"}
[11:48:00]11:48:00.547 RSL: POWER1 = OFF
[11:48:00]11:48:00.550 RSL: RESULT = {"POWER2":"OFF"}
[11:48:00]11:48:00.552 RSL: POWER2 = OFF
[11:48:00]11:48:00.554 RSL: RESULT = {"POWER3":"OFF"}
[11:48:00]11:48:00.556 RSL: POWER3 = OFF
[11:48:00]11:48:00.559 RSL: RESULT = {"POWER4":"OFF"}
[11:48:00]11:48:00.561 RSL: POWER4 = OFF
[11:48:00]11:48:00.563 RSL: RESULT = {"POWER5":"OFF"}
[11:48:00]11:48:00.576 RSL: POWER5 = OFF
[11:48:00]11:48:00.578 RSL: RESULT = {"POWER6":"OFF"}
[11:48:00]11:48:00.580 RSL: POWER6 = OFF
[11:48:00]11:48:00.583 RSL: RESULT = {"POWER7":"OFF"}
[11:48:00]11:48:00.585 RSL: POWER7 = OFF
[11:48:00]11:48:00.587 RSL: RESULT = {"POWER8":"OFF"}
[11:48:00]11:48:00.589 RSL: POWER8 = OFF
[11:48:00]11:48:00.720 QPC: Reset
[11:48:05]11:48:05.445 RSL: STATE = {"Time":"2022-03-26T11:48:05","Uptime":"0T00:00:12","UptimeSec":12,"Heap":149,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":183,"MqttCount":0,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"IBR-IOT","BSSId":"XXXXXXXXXX","Channel":6,"Mode":"11n","RSSI":100,"Signal":-41,"LinkCount":1,"Downtime":"0T00:00:06"}}
[11:48:05]11:48:05.488 RSL: SENSOR = {"Time":"2022-03-26T11:48:05","ESP32":{"Temperature":85.0},"PCF8574-1":{"D0":1,"D1":1,"D2":1,"D3":1,"D4":1,"D5":1,"D6":1,"D7":1},"PCF8574-2":{"D0":0,"D1":0,"D2":0,"D3":0,"D4":0,"D5":0,"D6":0,"D7":0},"TempUnit":"C"}
Reply
#6
not need to config wifi, just directly to use ethernet, make sure your router have enable the DHCP.
Reply
#7
(03-26-2022, 01:33 PM)admin Wrote: make sure your router have enable the DHCP.

router use correctly DHCP (same network than WiFi)

Code:
Using 'COM4' as serial port.
Connecting....
Detecting chip type... ESP32
Connecting......

Chip Info:
- Chip Family: ESP32
- Chip Model: ESP32-D0WDQ6 (revision 1)
- Number of Cores: 2
- Max CPU Frequency: 240MHz
- Has Bluetooth: YES
- Has Embedded Flash: NO
- Has Factory-Calibrated ADC: YES
- MAC Address: XXXXXXXXXX
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
- Flash Size: 4MB
- Flash Mode: dout
- Flash Frequency: 40MHz
Erasing flash (this may take a while)...
Chip erase completed successfully in 16.0s
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00158fff...
Compressed 17104 bytes to 11191...
Writing at 0x00001000... (100 %)
Wrote 17104 bytes (11191 compressed) at 0x00001000 in 0.5 seconds (effective 274.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 464.4 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 682.9 kbit/s)...
Hash of data verified.
Compressed 1346464 bytes to 910725...
Writing at 0x00010000... (1 %)
Writing at 0x000194b4... (3 %)
Writing at 0x000218ed... (5 %)
Writing at 0x0002a314... (7 %)
Writing at 0x00033359... (8 %)
Writing at 0x0003e87c... (10 %)
Writing at 0x00045c91... (12 %)
Writing at 0x0004b189... (14 %)
Writing at 0x000502ce... (16 %)
Writing at 0x000551d9... (17 %)
Writing at 0x0005a51a... (19 %)
Writing at 0x0005fe5e... (21 %)
Writing at 0x000651b2... (23 %)
Writing at 0x0006a376... (25 %)
Writing at 0x0006f678... (26 %)
Writing at 0x00074696... (28 %)
Writing at 0x00079774... (30 %)
Writing at 0x0007ed2e... (32 %)
Writing at 0x00083ad8... (33 %)
Writing at 0x00088d43... (35 %)
Writing at 0x0008eb99... (37 %)
Writing at 0x0009430e... (39 %)
Writing at 0x0009a08b... (41 %)
Writing at 0x0009f878... (42 %)
Writing at 0x000a53e6... (44 %)
Writing at 0x000aab60... (46 %)
Writing at 0x000b0589... (48 %)
Writing at 0x000b62a4... (50 %)
Writing at 0x000bbbfc... (51 %)
Writing at 0x000c1729... (53 %)
Writing at 0x000c76a8... (55 %)
Writing at 0x000cc8ee... (57 %)
Writing at 0x000d1e33... (58 %)
Writing at 0x000d70fd... (60 %)
Writing at 0x000dc569... (62 %)
Writing at 0x000e182c... (64 %)
Writing at 0x000e69da... (66 %)
Writing at 0x000ebb47... (67 %)
Writing at 0x000f11f7... (69 %)
Writing at 0x000f70c5... (71 %)
Writing at 0x000fc686... (73 %)
Writing at 0x0010185e... (75 %)
Writing at 0x00106bd6... (76 %)
Writing at 0x0010c0e8... (78 %)
Writing at 0x0011174d... (80 %)
Writing at 0x00116f46... (82 %)
Writing at 0x0011cd25... (83 %)
Writing at 0x0012277c... (85 %)
Writing at 0x00128a67... (87 %)
Writing at 0x001314aa... (89 %)
Writing at 0x00139caf... (91 %)
Writing at 0x0013ed62... (92 %)
Writing at 0x00144d86... (94 %)
Writing at 0x0014a71c... (96 %)
Writing at 0x0014fbe4... (98 %)
Writing at 0x0015547b... (100 %)
Wrote 1346464 bytes (910725 compressed) at 0x00010000 in 21.1 seconds (effective 510.1 kbit/s)...
Hash of data verified.

Leaving...
Hard Resetting...
Hard resetting via RTS pin...
Done! Flashing is complete!

Showing logs:
[15:53:06]
[15:53:06]00:00:00.003-218/71 HDW: ESP32-D0WDQ6
[15:53:06]./components/esp_littlefs/src/littlefs/lfs.c:1071:error: Corrupted dir pair at {0x0, 0x1}
[15:53:07]00:00:00.404-216/71 UFS: FlashFS mounted with 312 kB free
[15:53:07]00:00:00.411-216/71 CFG: Use defaults
[15:53:08]00:00:00.567 QPC: Reset
[15:53:08]00:00:00.609 BRY: Berry initialized, RAM used=3294
[15:53:08]00:00:00.622 BRY: no 'preinit.be'
[15:53:08]00:00:00.632 Project tasmota - Tasmota Version 10.0.0.3(tasmota)-2_0_1(2021-11-14T21:44:07)
[15:53:08]00:00:00.647 BRY: no 'autoexec.be'
[15:53:08]00:00:00.924 WIF: WifiManager active for 3 minutes
[15:53:09]00:00:01.231 HTP: Web server active on tasmota-XXXXX with IP address 192.168.4.1
At this point of the tutorial, ethernet doesn't work : no led blink/solid
Reply
#8
1. download firmware.
   

2. login with your router to find out the KC868-A16's ethernet IP.
   

3. use ethernet IP address login with web browser.
   
Reply
#9
Yeap,

I flash with your firmaware, and Ethernet doesn't work

See your ESP logs : eth is active (9:22:24)
[Image: a16-tasmota-1.png]

Mine doesn't work at all (I test with my cisco switch, and others (in case)), test on macOS, windows, test on my second card KC868-A8 (I bought two)

I'm pretty sure that your firmware ready to download doesn't work properly (maybe corrupted), can you send me your firmware used during your test ?

Code:
Using '/dev/cu.usbserial-1410' as serial port.
Connecting.....
Detecting chip type... ESP32
Connecting......

Chip Info:
- Chip Family: ESP32
- Chip Model: ESP32-D0WDQ5 (revision 1)
- Number of Cores: 2
- Max CPU Frequency: 240MHz
- Has Bluetooth: YES
- Has Embedded Flash: NO
- Has Factory-Calibrated ADC: YES
- MAC Address: A8:48:FA:0B:8E:9C
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
- Flash Size: 4MB
- Flash Mode: dout
- Flash Frequency: 40MHz
Erasing flash (this may take a while)...
Chip erase completed successfully in 8.4s
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00158fff...
Compressed 17104 bytes to 11191...
Writing at 0x00001000... (100 %)
Wrote 17104 bytes (11191 compressed) at 0x00001000 in 0.5 seconds (effective 298.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.0 seconds (effective 588.7 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 864.7 kbit/s)...
Hash of data verified.
Compressed 1346464 bytes to 910725...
Writing at 0x00010000... (1 %)
Writing at 0x000194b4... (3 %)
Writing at 0x000218ed... (5 %)
Writing at 0x0002a314... (7 %)
Writing at 0x00033359... (8 %)
Writing at 0x0003e87c... (10 %)
Writing at 0x00045c91... (12 %)
Writing at 0x0004b189... (14 %)
Writing at 0x000502ce... (16 %)
Writing at 0x000551d9... (17 %)
Writing at 0x0005a51a... (19 %)
Writing at 0x0005fe5e... (21 %)
Writing at 0x000651b2... (23 %)
Writing at 0x0006a376... (25 %)
Writing at 0x0006f678... (26 %)
Writing at 0x00074696... (28 %)
Writing at 0x00079774... (30 %)
Writing at 0x0007ed2e... (32 %)
Writing at 0x00083ad8... (33 %)
Writing at 0x00088d43... (35 %)
Writing at 0x0008eb99... (37 %)
Writing at 0x0009430e... (39 %)
Writing at 0x0009a08b... (41 %)
Writing at 0x0009f878... (42 %)
Writing at 0x000a53e6... (44 %)
Writing at 0x000aab60... (46 %)
Writing at 0x000b0589... (48 %)
Writing at 0x000b62a4... (50 %)
Writing at 0x000bbbfc... (51 %)
Writing at 0x000c1729... (53 %)
Writing at 0x000c76a8... (55 %)
Writing at 0x000cc8ee... (57 %)
Writing at 0x000d1e33... (58 %)
Writing at 0x000d70fd... (60 %)
Writing at 0x000dc569... (62 %)
Writing at 0x000e182c... (64 %)
Writing at 0x000e69da... (66 %)
Writing at 0x000ebb47... (67 %)
Writing at 0x000f11f7... (69 %)
Writing at 0x000f70c5... (71 %)
Writing at 0x000fc686... (73 %)
Writing at 0x0010185e... (75 %)
Writing at 0x00106bd6... (76 %)
Writing at 0x0010c0e8... (78 %)
Writing at 0x0011174d... (80 %)
Writing at 0x00116f46... (82 %)
Writing at 0x0011cd25... (83 %)
Writing at 0x0012277c... (85 %)
Writing at 0x00128a67... (87 %)
Writing at 0x001314aa... (89 %)
Writing at 0x00139caf... (91 %)
Writing at 0x0013ed62... (92 %)
Writing at 0x00144d86... (94 %)
Writing at 0x0014a71c... (96 %)
Writing at 0x0014fbe4... (98 %)
Writing at 0x0015547b... (100 %)
Wrote 1346464 bytes (910725 compressed) at 0x00010000 in 22.8 seconds (effective 472.6 kbit/s)...
Hash of data verified.

Leaving...
Hard Resetting...
Hard resetting via RTS pin...
Done! Flashing is complete!

Showing logs:
[06:06:18]
[06:06:18]00:00:00.003-218/71 HDW: ESP32-D0WD
[06:06:18]./components/esp_littlefs/src/littlefs/lfs.c:1071:error: Corrupted dir pair at {0x0, 0x1}
[06:06:19]00:00:00.817-216/71 UFS: FlashFS mounted with 312 kB free
[06:06:19]00:00:00.824-216/71 CFG: Use defaults
[06:06:19]00:00:00.957 QPC: Reset
[06:06:19]00:00:00.000 BRY: Berry initialized, RAM used=3294
[06:06:19]00:00:00.012 BRY: no 'preinit.be'
[06:06:19]00:00:00.022 Project tasmota - Tasmota Version 10.0.0.3(tasmota)-2_0_1(2021-11-14T21:44:07)
[06:06:19]00:00:00.037 BRY: no 'autoexec.be'
[06:06:19]00:00:00.335 WIF: WifiManager active for 3 minutes
[06:06:20]00:00:01.247 HTP: Web server active on tasmota-0B8E9C-3740 with IP address 192.168.4.1
[06:09:24]00:03:05.329 APP: Restarting
[06:09:25]
[06:09:25]00:00:00.003 HDW: ESP32-D0WD
[06:09:25]00:00:00.029 UFS: FlashFS mounted with 308 kB free
[06:09:25]00:00:00.100 CFG: Loaded from File, Count 4
[06:09:25]00:00:00.116 QPC: Count 1
[06:09:26]00:00:00.200 BRY: Berry initialized, RAM used=3504
[06:09:26]00:00:00.218 BRY: no 'preinit.be'
[06:09:26]00:00:00.223 Project tasmota - Tasmota Version 10.0.0.3(tasmota)-2_0_1(2021-11-14T21:44:07)
[06:09:26]00:00:00.243 BRY: no 'autoexec.be'
[06:09:26]00:00:00.480 WIF: WifiManager active for 3 minutes
[06:09:27]00:00:01.153 HTP: Web server active on tasmota-0B8E9C-3740 with IP address 192.168.4.1
[06:09:32]00:00:06.873 QPC: Reset
[Image: Capture-d-e-cran-2022-03-28-a-06-16-41.png]

[Image: IMG-0246.jpg]
[Image: IMG-0247.jpg]
[Image: IMG-0248.jpg]
Reply
#10
i see, sorry, your board is KC868-A8, but these photos i have downloaded is KC868-A16.we will test with KC868-A8 this week when have free time, then feedback to you.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)