Posts: 291
Threads: 234
Joined: Jan 2021
08-26-2022, 12:51 AM
(This post was last modified: 08-26-2022, 12:51 AM by KinCony Support.)
[Arduino IDE demo source code for KC868-A16]--#10-KC868-A16_RS485_send and receive
KC868-A16-RS485.zip (Size: 571.74 KB / Downloads: 504)
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);
}
Posts: 2
Threads: 0
Joined: Oct 2022
Reputation:
0
10-03-2022, 01:28 PM
(This post was last modified: 10-03-2022, 01:32 PM by ce.jaiminpatel.)
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?
Posts: 6,323
Threads: 808
Joined: Oct 2020
Reputation:
155
when you buy the KC868-A16?
Posts: 6,323
Threads: 808
Joined: Oct 2020
Reputation:
155
these days during our National holidays, when we begin work, we will have a test then feedback to you.
Posts: 4
Threads: 0
Joined: Jan 2023
Reputation:
0
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
Posts: 4
Threads: 0
Joined: Jan 2023
Reputation:
0
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
Posts: 6,323
Threads: 808
Joined: Oct 2020
Reputation:
155
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.
Posts: 4
Threads: 0
Joined: Jan 2023
Reputation:
0
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 -
Posts: 6,323
Threads: 808
Joined: Oct 2020
Reputation:
155
i don't know what function you want to do?
what do you want to do?