In your case, since you need multiple serial ports and can only have one via SoftwareSerial, I'd suggest you dump SoftwareSerial altogether. Galileo is running Linux under the hood so you can hook up a USB hub to the USB port (you might be able to do an unpowered one, especially on Galileo 2) and however many USB->serial converters you need that are supported by the yocto distribution. Then just talk to the serial ports directly in your sketch. You'll have to use termio to set the port details, but once that's done it's just open, read, write, etc.
↧