Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP32 RF
#21
Hi,
Did u test it?
And if i want to reset the ESP32 on the server fully can i use the online github tool?
Or better de flash tool? And wich image files do i need to select?

Thx in advance
Reply
#22
i have tested code, sorry for my before error photo.
just set serial1 pin define as these will be work fine. here is photo.

#ifndef RX1
#define RX1 16
#endif

#ifndef TX1
#define TX1 17
#endif

   

if you want to eraser all esp32 data, you can use ESP Tool: https://www.kincony.com/esp-module-flash...tools.html
Reply
#23
Hi!

I put back the factory bin then i put the pins as you sayd..
And it works!

Thx!! (happy happy)
Reply
#24
ok, good.
Reply
#25
Hi,

I hope simple question ;-)
i have temp sensor a dalles connected to the IO4 from esp32 on the KC868-server..
its a python question the relay for the serial print of the temperature i want it delayed 5000ms
but the control also delays 5000ms.. (that i realy dont want ;-))
for now i was only using RF but in time i maybe want a IR remote so it would be nice if RF and IR have NO delays...
Thx in advance!
here's my code test code:

#include <RCSwitch.h>
#include "PinDefinitionsAndMore.h"
#include <IRremote.h>
#include <OneWire.h>
#include <DallasTemperature.h>

RCSwitch mySwitch = RCSwitch();
long int keycode=0;
long int temp_keycode=0;

const int oneWireBus = 19;
OneWire oneWire(oneWireBus);
DallasTemperature sensors(&oneWire);
void setup()
{
Serial.begin(9600);
Serial1.begin(38400);
mySwitch.enableReceive(digitalPinToInterrupt(13));
sensors.begin();
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK, USE_DEFAULT_FEEDBACK_LED_PIN);
}

void loop() {
if (mySwitch.available()) {

Serial.print("Received ");
delay(0);
Serial.print( mySwitch.getReceivedValue() );
Serial.print(" / ");
Serial.print( mySwitch.getReceivedBitlength() );
Serial.print("bit ");
Serial.print("Protocol: ");
Serial.println( mySwitch.getReceivedProtocol() );
keycode=mySwitch.getReceivedValue();

if (keycode==5723139) {Serial1.print("RELAY-KEY-255,1,1");delay(100);} //toggle relay1
if (keycode==5723148) {Serial1.print("RELAY-KEY-255,2,1");delay(500);} //toggle relay2
if (keycode==5723184) {Serial1.print("RELAY-KEY-255,3,1");delay(500);} //toggle relay3
if (keycode==5723340) {Serial1.print("RELAY-KEY-255,4,1");delay(500);} //toggle relay4
if (keycode==5723343) {Serial1.print("RELAY-KEY-255,5,1");delay(500);} //toggle relay5
if (keycode==5723196) {Serial1.print("RELAY-KEY-255,6,1");delay(500);} //toggle relay6
if (keycode==5723199) {Serial1.print("RELAY-KEY-255,7,1");delay(500);} //toggle relay7
if (keycode==5723376) {Serial1.print("RELAY-KEY-255,8,1");delay(500);} //toggle relay8
if (keycode==5723331) {Serial1.print("RELAY-KEY-255,9,1");delay(500);} //toggle relay9
if (keycode==5723151) {Serial1.print("RELAY-KEY-255,10,1");delay(500);} //toggle relay10
if (keycode==5723388) {Serial1.print("RELAY-KEY-255,11,1");delay(500);} //toggle relay11
if (keycode==5723379) {Serial1.print("RELAY-KEY-255,12,1");delay(500);} //toggle relay12
if (keycode==5723391) {Serial1.print("RELAY-KEY-255,13,1");delay(500);} //toggle relay13
if (keycode==5723328) {Serial1.print("RELAY-KEY-255,14,1");delay(500);} //toggle relay14
if (keycode==5723187) {Serial1.print("RELAY-KEY-255,15,1");delay(500);} //toggle relay15
if (keycode==5723136) {Serial1.print("RELAY-KEY-255,16,1");delay(500);} //toggle relay16
mySwitch.resetAvailable();
}

if (IrReceiver.decode()) {

// Print a short summary of received data
IrReceiver.printIRResultShort(&Serial);
if (IrReceiver.decodedIRData.protocol == UNKNOWN) {
// We have an unknown protocol here, print more info
IrReceiver.printIRResultRawFormatted(&Serial, true);
}
Serial.println();
delay(0);
IrReceiver.resume(); // Enable receiving of the next value

if (IrReceiver.decodedIRData.command == 0x15) Serial1.print("RELAY-SET-255,1,1"); //turn ON relay1
if (IrReceiver.decodedIRData.command == 0x16) Serial1.print("RELAY-SET-255,1,0"); //turn OFF relay1
if (IrReceiver.decodedIRData.command == 0x17) Serial1.print("RELAY-SET-255,2,1"); //turn ON relay2
if (IrReceiver.decodedIRData.command == 0x19) Serial1.print("RELAY-SET-255,2,0"); //turn OFF relay2
if (IrReceiver.decodedIRData.command == 0x1A) Serial1.print("RELAY-SET-255,3,1"); //turn ON relay3
if (IrReceiver.decodedIRData.command == 0x1B) Serial1.print("RELAY-SET-255,3,0"); //turn OFF relay3
if (IrReceiver.decodedIRData.command == 0x1D) Serial1.print("RELAY-SET-255,4,1"); //turn ON relay4
if (IrReceiver.decodedIRData.command == 0x1E) Serial1.print("RELAY-SET-255,4,0"); //turn OFF relay4
if (IrReceiver.decodedIRData.command == 0x1F) Serial1.print("RELAY-SET-255,5,1"); //turn ON relay5
if (IrReceiver.decodedIRData.command == 0x41) Serial1.print("RELAY-SET-255,5,0"); //turn OFF relay5
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,6,1"); //turn OFF relay6
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,6,0"); //turn OFF relay6
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,7,1"); //turn OFF relay7
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,7,0"); //turn OFF relay7
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,8,1"); //turn OFF relay8
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,8,0"); //turn OFF relay8
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,9,1"); //turn OFF relay9
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,9,0"); //turn OFF relay9
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,10,1"); //turn OFF relay10
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,10,0"); //turn OFF relay10
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,11,1"); //turn OFF relay11
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,11,0"); //turn OFF relay11
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,12,1"); //turn OFF relay12
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,12,0"); //turn OFF relay12
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,13,1"); //turn OFF relay13
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,13,0"); //turn OFF relay13
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,14,1"); //turn OFF relay14
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,14,0"); //turn OFF relay14
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,15,1"); //turn OFF relay15
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,15,0"); //turn OFF relay15
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,16,1"); //turn OFF relay16
if (IrReceiver.decodedIRData.command == 0x42) Serial1.print("RELAY-SET-255,16,0"); //turn OFF relay16
}
{
sensors.requestTemperatures();
float temperatureC = sensors.getTempCByIndex(0);
Serial.print(temperatureC);
Serial.println("ºC");
delay(5000);
}
}
Reply
#26
i think you not use delay(5000) function, just use a timer for variable, whenever the variable has a certain difference value, then output DS18B20 temperature value. if use delay() function will let whole system delay.
Reply
#27
I tried flash esp32 via USB C cable. I want start use RF decooding, i do every steps form https://www.kincony.com/forum/showthread.php?tid=1797, lesson 11.
I verify file before flashing, was OK, i Flash untill 100%, restart and now ESP32 in my kc-868 server keeps rebooting. Propably i need clear, new file to flash ESP32??


Attached Files Image(s)
           
Reply
#28
because you have not upload full file. you can download these file in different addrss, see this photo.
   
your BIN file at     0x20000
bootloader.bin      0x1000
partion-table.bin   0x8000

here are  bootloader.bin  partion-table.bin  just download zip file, unzip it.

.zip   bootloader.zip (Size: 15.42 KB / Downloads: 171)
.zip   partition-table.zip (Size: 271 bytes / Downloads: 178)
Reply
#29
your BIN file at    0x20000 ??
How to create my BIN file?
Does it come with .zip? KC868-Server-wireless-decode.zip
Reply
#30
any user bin download at 0x20000
your BIN also download at 0x20000
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)