Skip to main content
SVerm.3
Associate III
February 14, 2021
Question

How to read address in UART in STM32CUBEIDE?

How to read address in UART in STM32CUBEIDE, Actually I am reading RS485 values of Energymeter like Voltage, Current and Power, Energy but I am not able to read the address, also need to know how to read slave id too. Please help me in this regard?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
February 14, 2021

You collect the bytes in a buffer, and you assemble the word and content from there.

Find documentation for the protocol you're using, and apply that to the data stream you are capturing.

Data representation 101

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
SVerm.3
SVerm.3Author
Associate III
February 14, 2021

can you please help me with an example like slave id will be 1 and address will be 0x002 and voltage address will be 0x003