Manage serial port from two processes simultaneosly
问题 I have the following scenario: Rasperry pi connected to a device via Serial port 3g Dongle connected to the raspberry (with the ability to make/recieve calls) One process reading the data from the serial port and redirecting it to a server (using 3g) Another process waiting for a incoming call, and when someone calls the program takes the data from the serial port and redirect it via the 3g dongle using AT commands ( like fax-call). When someone calls, the call is made using AT commands and