An archive of community.esquilo.io as of Saturday January 26, 2019.

USB Serial Communication

ciprian

I need to make a program that will communicate through USB. I have changed the EOS Shell to UART 0, but i cannot receive anything to the Esquilo COM. What can i do? I tried the examples on the documentation but i have no success. The only thing that compiled was the Arduino version that blinks a led and prints the counter on serial, but i havent received anything on COM.

What could i do?

softwarejanitor

Have you tried using the USBSerial library?

https://www.esquilo.io/docs/#esquilo-library-usbserial

Are you trying to communicate through the USB port on the Esquilo or through the UART on pins 0 (RX) & 1 (TX)?

If it is through the UART, is the device you are trying to connect TTL level? Do you need RS-232? If so you will need some kind of level converter. I've played with a few different types.

For using the UART you need to use the UART libary:

https://www.esquilo.io/docs/#esquilo-library-uart

I know this is an old topic, if it isn't still an issue please ignore.

softwarejanitor

Here is one kind of RS232 converter I've used, it is a shield...

https://www.amazon.com/RS232-RS485-Shield-for-Arduino/dp/B00N4MKVFK

This kind work well also and they are smaller and cheaper and can be easier to work into a design:

https://www.amazon.com/Ultra-Compact-RS232-Converter-Male/dp/B00OPU2QJ4

Another option is something like this, if you need USB serial to the Esquilo UART pins...

https://www.amazon.com/Qunqi-FT232RL-Serial-Adapter-Arduino/dp/B014Y1IMNM