UART2 RS-485 mode

Sleonid
Posts: 1
Joined: Thu Aug 27, 2020 12:00 pm

UART2 RS-485 mode

Postby Sleonid » Thu Aug 27, 2020 12:10 pm

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?

Who is online

Users browsing this forum: No registered users and 99 guests