12-15-2022, 12:30 PM
Yes i recieve remotes code on pc with usb serial
ESP32 RF
|
12-15-2022, 12:30 PM
Yes i recieve remotes code on pc with usb serial
12-15-2022, 12:46 PM
so you save the keycode of your remote, then replace the keycode on your codes about if (keycode== xxxxxxx)
if (keycode==1376533) {Serial1.print("RELAY-KEY-255,1,1");delay(500);} //toggle relay1 if (keycode==1376532) {Serial1.print("RELAY-KEY-255,2,1");delay(500);} //toggle relay2 if (keycode==16405) {Serial1.print("RELAY-KEY-255,3,1");delay(500);} //toggle relay3 if (keycode==16404) {Serial1.print("RELAY-KEY-255,4,1");delay(500);} //toggle relay4 if (keycode==4117) {Serial1.print("RELAY-KEY-255,5,1");delay(500);} //toggle relay5 if (keycode==5723139) {Serial1.print("RELAY-KEY-255,6,1");delay(500);} //toggle relay6 if (keycode==20501) {Serial1.print("RELAY-KEY-255,7,1");delay(500);} //toggle relay7 if (keycode==20500) {Serial1.print("RELAY-KEY-255,8,1");delay(500);} //toggle relay8 if (keycode==5576131) {Serial1.print("RELAY-KEY-255,9,1");delay(500);} //toggle relay9 if (keycode==5575951) {Serial1.print("RELAY-KEY-255,10,1");delay(500);} //toggle relay10 if (keycode==5576188) {Serial1.print("RELAY-KEY-255,11,1");delay(500);} //toggle relay11 if (keycode==5576179) {Serial1.print("RELAY-KEY-255,12,1");delay(500);} //toggle relay12 if (keycode==5576191) {Serial1.print("RELAY-KEY-255,13,1");delay(500);} //toggle relay13 if (keycode==5576128) {Serial1.print("RELAY-KEY-255,14,1");delay(500);} //toggle relay14 if (keycode==5575987) {Serial1.print("RELAY-KEY-255,15,1");delay(500);} //toggle relay15 if (keycode==5575936) {Serial1.print("RELAY-KEY-255,16,1");delay(500);} //toggle relay16
12-15-2022, 12:55 PM
Yes i did then i flash file on esp with edit code but no output
12-15-2022, 11:05 PM
because maybe you have not define the "Serial1" in your arduino IDE hardwareserial config file.
ESP32 "Serial1" communication with KinCony ARM CPU you can define TXD and RXD as follows: ESP32 TXD: GPIO17 ESP32 RXD: GPIO16
12-16-2022, 12:00 PM
I'm sorry where can i do that?
I try it : void setup() { Serial.begin(9600); Serial1.begin(38400); #define RX2 16 #define TX2 17
12-17-2022, 03:16 AM
see this photo, open your config file, replace pin number of RXD2,TXD2.
12-18-2022, 09:55 AM
Hi i checked it they are on 16 and 17...
What else could it be?
12-18-2022, 10:51 PM
ok, after some days later, i will test again, then feedback to you.
I tryd it on Arduino IDE 1.8.19 and on the newest 2... also with changing the libs (rcswitch all newest version also tried on older lib versions)
still without suc6 also tried recode with hardwareserial.h en to define it in the script same.. Also add printscreen of the settings i think its right? A coppy of my upload: Sketch uses 219818 bytes (16%) of program storage space. Maximum is 1310720 bytes. Global variables use 15000 bytes (4%) of dynamic memory, leaving 312680 bytes for local variables. Maximum is 327680 bytes. esptool.py v3.0-dev Serial port COM9 Connecting...... Chip is ESP32-D0WD (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 8c:4b:14:fb:16:0c Uploading stub... Running stub... Stub running... Changing baud rate to 921600 Changed. Configuring flash size... Auto-detected Flash size: 4MB Compressed 8192 bytes to 47... Writing at 0x0000e000... (100 %) Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4096.0 kbit/s)... Hash of data verified. Compressed 17104 bytes to 11191... Writing at 0x00001000... (100 %) Wrote 17104 bytes (11191 compressed) at 0x00001000 in 0.2 seconds (effective 882.8 kbit/s)... Hash of data verified. Compressed 219936 bytes to 114606... Writing at 0x00010000... (14 %) Writing at 0x00014000... (28 %) Writing at 0x00018000... (42 %) Writing at 0x0001c000... (57 %) Writing at 0x00020000... (71 %) Writing at 0x00024000... (85 %) Writing at 0x00028000... (100 %) Wrote 219936 bytes (114606 compressed) at 0x00010000 in 1.8 seconds (effective 954.2 kbit/s)... Hash of data verified. Compressed 3072 bytes to 128... Writing at 0x00008000... (100 %) Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 1445.7 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin... Kind Regards Matt
12-22-2022, 01:04 AM
sorry for delay, because of covid-19 in our country, we all stay at home, next week will go to company, then have a test.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: |