Serial?
-
If I want to connect to a device with a simple serial protocol (9600 8N1), how can I do that when it is plugged into the Expansion Dock? (It seems like the RX line is being controlled by the USB to serial from the dock.)
Ideas appreciated!!
--Alan
-
Hi @Alan-Smith
On the Expansion and Mini Docks, the Omega's UART is connected to the USB-to-Serial chip that enables the Serial terminal over the micro-USB port.The Arduino Dock has the UART pins exposed on a header, so you can use that instead!
-
i don't have one of those. Is there any type of "software serial" I can use on a GPIO pin?
-
Software serial is often problematic even at low speeds due to the multi-tasking nature of Linux.
Have you thought about getting a proto board and wiring up an I2C UART?
-
If I am understanding correctly none of the expansion headers give you a serial "slave". The exposed headers are the "master" for controlling the Omega.
If you want to control another device, such as a gate system or network switch, you would need to plug a USB serial controller in.This is what I have done for my gate system.
I then have installed screen and use the command:
screen /dev/ttyUSB0 9600,cs8,cstopb
-
Hi @Alan-Smith, i had the same problem. If would be open for a Software Serial also, if one knows an approach i would give it a try also.
Meantime i used a USB-to-TTL-converter with CP2102 chip - that works out of the box with the Omega and costs less than 5 dollar (providing no link because there are lots and i dont want to make advertising).
Cheers Ben
-
Is there a reason you cant use the builtin Serial interface?
Download the driver and use PuTTY defaults with a speed of 115200.
https://wiki.onion.io/Tutorials/Connecting-to-Omega-via-Serial-Terminal
-
@Sawyer-McBride I think they want to use the Omega to interface with another device via Serial
-
@Lazar-Demin ahhh ok, without a full dock with breakout then if you had something like a breadboard with power, you could power the omega, leaving the serial pins free?