View Single Post
  #6   Spotlight this post!  
Unread 05-04-2016, 19:04
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Serial Port Communication

Quote:
Originally Posted by Matthew Zwinger View Post
In java we are using serial port.port.kusb on a 9600 baudrate...
Your code says you're transmitting at 115200. That would definitely give you the kind of short garbled results that you describe.

Quote:
When we try testing the tegra serial with an arduino it returns garbage askII characters. eg.(Python)ser.write('hello'.encode('utf-8')). The communication port returns this ░:: and then goes to a newline.
Why are you encoding as UTF-8? It does end up being the same actual byte stream for straight ASCII* characters, but anything outside the ASCII range will be sent as multiple bytes that your terminal might not understand.



* American Standard Code for Information Interchange, pronounced "ask-ee"
Reply With Quote