Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino IDE demo source code for KC868-A16]--#10-KC868-A16_RS485_send and receive
#1
[Arduino IDE demo source code for KC868-A16]--#10-KC868-A16_RS485_send and receive

.zip   KC868-A16-RS485.zip (Size: 571.74 KB / Downloads: 502)

   

Code:
/*KC868-A16   RS485 SEND AND RECEIVE CODE*/


void setup() {
  Serial.begin(115200);
   // Serial2.begin(115200,SERIAL_8N1,32,33);//a8&a8s
  Serial2.begin(115200,SERIAL_8N1,16,13);//a16
  //Serial2.begin(115200,SERIAL_8N1,16,14);//a32
  //Serial2.begin(115200,SERIAL_8N1,13,14);//a64
   Serial2.println("RS485 SEND is OK!!");
   Serial2.println("******************");
 
}

void loop() {
  /*print the received data of RS485 port*/
  while(Serial2.available()>0)
   {
    Serial2.print((char)Serial2.read());//Read rs485 receive data  and print it
   }
  delay(200);
}
Reply
#2
I have A16 device, in this device all peripheral work perfectly, but in RS485 case only sending operation work.
I tried various things for this using ESP-IDF, but the signal is not received.
Can you give me a simple example of sending and receiving signals via RS485 in KC868-A16?
Reply
#3
when you buy the KC868-A16?
Reply
#4
(10-03-2022, 02:48 PM)admin Wrote: when you buy the KC868-A16?

on 21-July-2022
Reply
#5
these days during our National holidays, when we begin work, we will have a test then feedback to you.
Reply
#6
hello there
i have problem from month i can't solve it pls can you help
i can't get started with kc868-a16
i can ulpod and fimeware
when i upload and firamware i faced this error

Using 'COM5' as serial port.
Connecting....
Detecting chip type... ESP32
Connecting....

Chip Info:
- Chip Family: ESP32
- Chip Model: ESP32-D0WDQ5-V3 (revision 3)
- Number of Cores: 2
- Max CPU Frequency: 240MHz
- Has Bluetooth: YES
- Has Embedded Flash: NO
- Has Factory-Calibrated ADC: YES
- MAC Address: 90:38:0C:A4:3E:6C
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)...
Unexpected error: Error while erasing flash: Timed out waiting for packet content



i change buderate from 9600 to 115200 and same problem
can you help me how i can strat with this module
Reply
#7
i solve the problem
but after uplode firmaware i connact lan there is no led in lan
and there is no wifi for show
and if i connact kc with router
i can't found moudel and nothing
what can i do ?
i upload firmare by flash_download_tool_3.9.2
and using KC868_A16_V1.0.10
Reply
#8
which code you are using? if you have source code, you can test download it by arduino IDE. if you just download BIN file by "esp download tool" , mostly is set the address incorrect.
Reply
#9
Can you give me the codes for the Arduino?
Which type of board should I choose for programming from Arduino?
And how can i download esp download tool
and what adress i wll using for kc868-a16 -
Reply
#10
i don't know what function you want to do?
what do you want to do?
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)