USART Multiprocessor communication.
Posted: Mon Sep 27, 2021 10:29 am
Hello All,
Good Day!
I was looking arround multiprocessor communication in STM32F103C8T6 which is running in official STM32 core. I would like to test the USART Multiprocessor communication between more than three PCB's. Same as USART asynchronous mode, I could program the microcontrollers to communicate between them.
Any clues or tutorials or examples are welcome.
A detailed clarification would really help me.
-> I was informed about rotory or dip switch to change the address of the device, if so how can I do that?
-> Also is it possible to change address without the use of rotory or dip switch?
-> How can I proceed further.
Greetings,
Mustaq
Good Day!
I was looking arround multiprocessor communication in STM32F103C8T6 which is running in official STM32 core. I would like to test the USART Multiprocessor communication between more than three PCB's. Same as USART asynchronous mode, I could program the microcontrollers to communicate between them.
My question is, if I want to do multiprocessor communication with single master and multiple slave by assigning different adderesses to each slave and calling the address of the required slave in the master should respond to the master. How can I achive this?I have configured my Hardware Serial USART_1 in PA9 as Tx and PA10 as Rx and PC14 as USART_ENABLE to the maxRS485. Whenever I need to send data from microcontroller_1 to microcontroller_2, then I have to make my eable pin HIGH for microcontroller_1 and LOW for microcontroller_2. Then when I need to send data from microcontroller_2 to microcontroller_1 then I have to change the enable pin as HIGH for microcontroller_2 and LOW for microcontroller_1.
Any clues or tutorials or examples are welcome.
A detailed clarification would really help me.
-> I was informed about rotory or dip switch to change the address of the device, if so how can I do that?
-> Also is it possible to change address without the use of rotory or dip switch?
-> How can I proceed further.
Greetings,
Mustaq