Tool/software:
Operating modes UART?
I have interfaced a sensor with LoRa to my UART bus on CC1310. When I send a command to the sensor it responds “+OK” indicating that the command was successful. When I sent the command requesting data it responds to me, the frame looks something like this “+OK\r\n+RCV=3,5,HELLO,-13,23”.
I have read that the following configuration returns when buffer full or a new line has been detected on reception.
void uartLoRa_Init(void){
UART_init();
UART_Params uartParams;
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_TEXT;//UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_TEXT;//UART_DATA_BINARY;
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.readReturnMode = UART_RETURN_NEWLINE;
uartParams.writeMode = UART_MODE_CALLBACK;
uartParams.readCallback = RXUartCb;
uartParams.writeCallback = TXUartCb;
uartParams.baudRate = 115200;
uart = UART_open(Board_UART0, &uartParams);//*/
}
Under this UART configuration when the character “\n” is detected in my response with data will the callback be called?
thanks in advance.