Page 1 of 1

UART2 RS-485 mode

Posted: Thu Aug 27, 2020 12:10 pm
by Sleonid
In RS-485 half duplex mode too big delay before replay is sent to line.
On 9600 bod it is near 7-8 msec (7-8 bytes), on 115200 bod delay is near 1 msec (10 bytes).
In code after packet received processing is very short (not compatible with 1 or 8 msec).
I use sample code from examples, in function

int len = uart_read_bytes(uart_num, (uint8_t*)(&OsdpMessage), OSDP_BUF_SIZE, PACKET_READ_TICS);

I set PACKET_READ_TICS to 0, 1, 2 - no difference. FreeRTOS ticks set to 1000 Hz

How to decrease this delay?