USB vs. UART communication

Questions on UARTs, and serial communication
Post Reply
olzeke51
Posts: 366
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

USB vs. UART communication

Post by olzeke51 » Sat Aug 31, 2019 7:42 pm

Hey Y'all,
okay, USB has a technical limit of 15 feet, to meet good data/timing specs.
I am 25' away from my computer/terminal and I don't have enough extension cables OR an electronic extender.
Future goal will be about 95+ feet away.
'
I want/need to get data to/from the ARMstamp [or other USB micro-controller products] connected to a
PC/terminal app.
'
Basicchip - is there a way to 'redirect' the "printf(..)" function to a serial port - especially on the USB-centric
devices?? . . I am trying to save having to write a 'printFF.bas' subroutine !!!!
What say you??
Thanks, Gary Olzeke51



olzeke51
Posts: 366
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: USB vs. UART communication

Post by olzeke51 » Sat Aug 31, 2019 8:10 pm

Okay folks, did some more research.....
Basicchip has provided the SPRINTF function that will do the heavy lifting.
from the example in the Help file::
. "str = SPRINTF("%c%c a string a....."
.
so now you can do a TXD(x) on each character of the "str"
I had just been using the 'printf' function ;)
.
Thanks for thinking ahead there, Basicchip :D
'
"case closed" as a PI would say...

basicchip
Posts: 982
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: USB vs. UART communication

Post by basicchip » Sat Aug 31, 2019 11:26 pm

When you get to 95 feet, simple TTL might not cut it, too noisy.

But RS-485 differential transceivers would handle it and more.

Post Reply