Abstract UART class for creating virtual UARTs? #9263
ThinkTransit
started this conversation in
General
Replies: 1 comment
-
This would also allow to use i2c UARTs and the like transparently. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create some virtual UARTs in micropython. Is there an abstract class I can extend or do I need to build something from the ground up?
The background to this is I want to try and implement UART multiplexing, where multiple UARTS can be used over a single physical UART. The data is sent in frames and addressed to the relevant virtual UART as outlined in a 3GPP standard. This is for communicating with modems where by one virtual UART can be used for AT commands and another for PPP traffic etc..
Ideally the virtual UARTs would be seamless so they would work with existing micropython modules like ppp and stream reader etc.
Any thoughts, crazy idea?
Beta Was this translation helpful? Give feedback.
All reactions