-
Does the library support opening different virtual serial ports at the same time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, this works. Just start it multiple times, in separate processes.
The
Get them back to foreground with |
Beta Was this translation helpful? Give feedback.
Yes, this works. Just start it multiple times, in separate processes.
I would not recommend to import it in as python module, while it is certainly possible to pass the correct parameters, ble-serial is not really designed for it. Use the command line interface instead.
To run it in parallel you can use the shell background job feature. Add the
-p
(port) option to make sure every instance has a unique path. Also you probably want to redirect the log output to keep it separate. Resulting command lines could look like:The
&
at the end causes it to go into backgr…