This Is too old but I want to add something, omega2 has 2 port uart, the first is used to communicate with a pc over expansion board, so you have one uart port free, you can do it without USB to serial adapter on RX1 an TX1
@Jake-Aston Omega2 Pro - I checked its schematic again.
Theoretically you could power it via its Expansion Header 3V3 (VCC33) pins - with +3.3 V of course.
In this case the on board "Power Dock", the Serial Console (CP210x USB-to-UART Bridge), the USB Host Port and the Full-color Notification Led won't work.
we can't set either 250000 (ie. 250,000 250 kBaud) or 2500000 (ie 2,500,000 2.5 MBaud) with the stty command
and ttyS0 (UART0) is occupied by the Serial Console on Omega2(+) - so I tried to use ttyS1 (UART1) instead
I think 115200 Baud is a good choice. It's good for all - for Omega2, Arduino, Arduino Bridge, Arduino IDE, ...
IMO the serial line speed is not the most important problem in this five-liner script now.
BTW please try it what you want:
root@Omega-5BE1:~# stty -F /dev/ttyS1 250000
stty: invalid argument ‘250000’
Try 'stty --help' for more information.
root@Omega-5BE1:~# stty -F /dev/ttyS1 2500000
stty: /dev/ttyS1: unable to perform all requested operations
root@Omega-5BE1:~# stty -F /dev/ttyS1 115200
root@Omega-5BE1:~# stty -F /dev/ttyS1
speed 115200 baud; line = 0;
Disabled Categories are greyed out
This topic will be moved to the category
Looks like your connection to Community was lost, please wait while we try to reconnect.