Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No RS485 on output KC868 A2
#4
(07-23-2024, 01:16 AM)admin Wrote: you can test with our arduino demo code firstly,  here is RS485 code for KC868-A2: https://www.kincony.com/forum/showthread.php?tid=2640
if test OK, that means hardware PCB is well, then you can check with your software.

Hi Kincony,

I have tested with the demo code and there is no communication happening on the P6 header. Attached is the programming code and output monitor. I can also say it compiled without error.

No output was seen.

As I noted earlier the ESP32 generates the signal on IO32 but it does not appear on the output of the MAX13847 chip on PINs 6,7.


Code:
//A2
#define A2_RS485RX  35
#define A2_RS485TX  32
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200,SERIAL_8N1,A2_RS485RX,A2_RS485TX);
   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);
}




Output monitor.

Sketch uses 279409 bytes (21%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20200 bytes (6%) of dynamic memory, leaving 307480 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port COM4
Connecting......
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: a0:a3:b3:fe:3b:44
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
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 0x00054fff...
Compressed 19744 bytes to 13604...
Writing at 0x00001000... (100 %)
Wrote 19744 bytes (13604 compressed) at 0x00001000 in 1.6 seconds (effective 99.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 266.5 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.2 seconds (effective 410.2 kbit/s)...
Hash of data verified.
Compressed 279776 bytes to 156518...
Writing at 0x00010000... (10 %)
Writing at 0x0001bbe5... (20 %)
Writing at 0x00024208... (30 %)
Writing at 0x00029897... (40 %)
Writing at 0x0002eb36... (50 %)
Writing at 0x00033f15... (60 %)
Writing at 0x0003ca39... (70 %)
Writing at 0x000466a9... (80 %)
Writing at 0x0004bcef... (90 %)
Writing at 0x0005125f... (100 %)
Wrote 279776 bytes (156518 compressed) at 0x00010000 in 13.9 seconds (effective 161.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Reply


Messages In This Thread
No RS485 on output KC868 A2 - by AdamJC - 07-23-2024, 12:26 AM
RE: No RS485 on output KC868 A2 - by admin - 07-23-2024, 01:16 AM
RE: No RS485 on output KC868 A2 - by AdamJC - 07-27-2024, 03:33 AM
RE: No RS485 on output KC868 A2 - by AdamJC - 07-23-2024, 01:54 AM
RE: No RS485 on output KC868 A2 - by admin - 07-27-2024, 04:59 AM
RE: No RS485 on output KC868 A2 - by AdamJC - 08-08-2024, 07:00 AM
RE: No RS485 on output KC868 A2 - by admin - 08-08-2024, 09:48 AM
RE: No RS485 on output KC868 A2 - by AdamJC - 08-08-2024, 12:14 PM
RE: No RS485 on output KC868 A2 - by admin - 08-08-2024, 12:21 PM
RE: No RS485 on output KC868 A2 - by AdamJC - 08-09-2024, 10:41 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)