Part Number:LAUNCHXL-CC2640R2
Tool/software:TI-RTOS
Hi,
I'm in some trouble with receiving over UART. In my scenario, i want to send a command (as a master) and then read the answer from a LIN-Bus slave node.
Everything works fine, until reading back the answer from the LIN slave node.
But if i use two Launchpads sending with the first one only the request and if i read back the answer with a second one everything works fine.
UART_Params_init(&uartParams); uartParams.writeDataMode = UART_DATA_BINARY; uartParams.readDataMode = UART_DATA_BINARY; uartParams.readTimeout = 20 * 1000 / Clock_tickPeriod; uartParams.readEcho = UART_ECHO_OFF; uartParams.baudRate = 19200;
LINHeader[1] = calcPID(0x22); sendBreak(); UART_write(uart, &LINHeader, 2); //sending request UART_read(uart, &FrameBuffer, 8); //reading answer
How do i have to configure the UART interface to swtich to reading after sending the Header? I think i have to use UART_readPolling(), but this command is not supported according to the driver documentation.
regards
Maximilian