Skip to main content
AFidi.1
Associate II
Dec 1, 2022 8:22 AM UTC
Question

Invalid Teseo LIV3FL reading using STM32 Nucle-WL55JC1

I'm planning to make a GPS tracker using  Teseo LIV3FL as a slave device and STM32 Nucle-WL55JC1 MCU with I2C communication protocol. The I2C reading is working (I assumed it works since I'm receiveing some data), but the problem is when I take one of the reading and decode it using a GPGGA (or similar) decoder it says I got an invalid data.

Serial monitor

0693W00000WJxBiQAL.pngDecoded data

0693W00000WJxBnQAL.pngAnd code snippet for sensor reading

while (1)
 {
 
 /* USER CODE BEGIN 3 */
	if (HAL_I2C_IsDeviceReady(&hi2c1, 0x3A <<1 + 0, 2, 10) == HAL_OK) {
		HAL_I2C_Master_Receive(&hi2c1, 0x3A <<1 + 0, (uint8_t *)receivedData, sizeof(receivedData), 1000);
 
		HAL_UART_Transmit(&huart2, (uint8_t*)receivedData, sizeof(receivedData), 1000);
 
		while (HAL_I2C_GetState(&hi2c1) != HAL_I2C_STATE_READY);
	} else {
		uint8_t state[10] = "DEVICE IS NOT READY\n";
		HAL_UART_Transmit(&huart2, (uint8_t*)state, sizeof(state), 1000);
	}
	HAL_Delay(500);
 }

Any idea where did I go wrong? Thank you.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
Dec 1, 2022 9:18 AM UTC

It flags that it doesn't have a solution, and you use it anyway.

​

Suggests the antenna or RF side is not working properly, should be outside with a clear view of the sky. Expect in to take around 30 to 40 seconds to get an initial fix in ideal conditions. ​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AFidi.1
AFidi.1Author
Associate II
Dec 2, 2022 4:03 AM UTC

Ahhh turns out the solder connection between the antenna and modules isn't good. Thanks!