cancel
Showing results for 
Search instead for 
Did you mean: 

How to read address in UART in STM32CUBEIDE?

SVerm.3
Associate III

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?

2 REPLIES 2

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
Up vote any posts that you find helpful, it shows what's working..

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