Skip to main content
JayDev
Senior
November 30, 2023
Question

How do I use data sent over virtual UART data from the M4 on the A7?

  • November 30, 2023
  • 2 replies
  • 2125 views

I know this is probably a really *** question but how do I actually use the data I send from the A4 to the M7 of the STM32MP1 chips?  I ran the examples that are clearly setup to send messages from the M4 to the A7 via the virtual UART, which are then echoed onto the Linux Console.  

Let's say I wanted to send a command to the A7.  If I sent the text "gotosleep" from the M4 to the A7 over the virtual UART, which would then trigger the A7 to run "systemctl suspend" to put the A7 in suspend mode, how would I approach that?  

I haven't quite figure out how to essentially trigger the A7 to execute a script (such as putting it to sleep) from the A4.  It seems like it's probably a pretty simple process, I'm just not sure where to look.  

Any help you can give me would be greatly appreciated.  Thanks!

This topic has been closed for replies.

2 replies

PatrickF
Technical Moderator
January 4, 2024

Hi @JayDev 

you should write your own application using you favorite environment (Python, C, etc...) to manage the tty data reception and then do the action you are wanted for your product.

That's not specific to virtual UART.

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
Associate II
April 26, 2024