How do I use data sent over virtual UART data from the M4 on the A7?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-30 3:04 PM
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!
- Labels:
-
STM32MP13 Lines
-
STM32MP15 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 3:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-26 2:19 AM
you can refer to this video STM32MP1 workshop - 11 Interprocessor communication lab (youtube.com)
