Sterling
Sterling
DIIDevHeads IoT Integration Server
Created by Sterling on 5/30/2024 in #edge-networking
facing issues reading data from the SIM800 module
Good day devs, I tried integrating a SIM800 module with FreeRTOS for a small start up. I plan to use HAL_UART functions with a timeout mechanism for UART communication, but I'm concerned about later on interference with the FreeRTOS scheduler. Please and please I need guidance on implementing the timeout functionality without disrupting the scheduler. I'm facing issues reading data from the SIM800 module. But I've declared a buffer and attempted to print its contents using printf(ReadBuffer), nothing is displayed. How can I correctly read and process the received data? I don't know if I should use TCP/IP to connect the SIM800 module to a server.
// Setting up my UART data reading
HAL_UART_Receive_IT(&huart1, ReadBuffer, sizeof(ReadBuffer));

// Printing my received data
printf("Received Data: %s\n", ReadBuffer);
// Setting up my UART data reading
HAL_UART_Receive_IT(&huart1, ReadBuffer, sizeof(ReadBuffer));

// Printing my received data
printf("Received Data: %s\n", ReadBuffer);
3 replies