|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Serial Port Communication
Quote:
sorry im new to serial coms would it be better to not encode at all? if I run at 9600 baudrate and no encoding with the same setup (tegra serial port to arduino and arduino to computer then open com port on putty) it only returns ░:: h̶o̶w̶e̶v̶e̶r̶ ̶a̶f̶t̶e̶r̶ ̶t̶e̶s̶t̶i̶n̶g̶ ̶a̶d̶d̶i̶t̶i̶o̶n̶a̶l̶l̶y̶ ̶w̶h̶e̶n̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶s̶e̶t̶u̶p̶ ̶i̶s̶ ̶r̶a̶n̶ ̶o̶n̶ ̶t̶h̶e̶ ̶r̶o̶b̶o̶r̶i̶o̶ ̶i̶t̶ ̶w̶i̶l̶l̶ ̶r̶e̶t̶u̶r̶n̶ ̶w̶h̶a̶t̶ ̶I̶ ̶a̶s̶s̶u̶m̶e̶ ̶i̶s̶ ̶r̶a̶n̶d̶o̶m̶ ̶b̶y̶t̶e̶s̶ ̶e̶g̶.̶ ̶[̶B̶@̶8̶c̶f̶4̶c̶6̶[̶B̶@̶e̶d̶c̶d̶2̶1̶[̶B̶@̶c̶4̶5̶d̶c̶a̶ ̶e̶t̶c̶ ̶e̶t̶c̶ ̶w̶i̶t̶h̶ ̶n̶o̶ ̶p̶a̶t̶t̶e̶r̶n̶ ̶ ̶U̶P̶D̶A̶T̶E̶ ̶I̶ ̶a̶l̶s̶o̶ ̶n̶o̶w̶ ̶g̶e̶t̶ ̶e̶r̶r̶o̶r̶s̶ ̶i̶n̶ ̶m̶y̶ ̶r̶i̶o̶l̶o̶g̶ ̶w̶h̶i̶c̶h̶ ̶s̶a̶y̶ ̶W̶A̶R̶N̶I̶N̶G̶:̶ ̶R̶o̶b̶o̶t̶s̶ ̶d̶o̶n̶'̶t̶ ̶q̶u̶i̶t̶ Last edited by Tyguy56 : 05-04-2016 at 19:38. |
|
#2
|
|||
|
|||
|
Re: Serial Port Communication
Okay fixed a couple errors, hooked it up to the roborio and initiated a serial connection there at 9600 baudrate now it prints out to the riolog when I do a system.out.println(serial.readString()) however I am doing no encoding so just ser.write('hello') I am now getting in my riolog ?::
|
|
#3
|
||||
|
||||
|
Re: Serial Port Communication
Quote:
|
|
#4
|
|||
|
|||
|
Re: Serial Port Communication
Thank you everyone, after going to http://www.chiefdelphi.com/forums/sh...d.php?t=132680 (special thanks to orangelight for the link) we learned that another team solved this by using the usb port instead of the serial port and then used a usb prolific rs-232 converter directly into the rio. Thank you all for your help!
|
|
#5
|
||||
|
||||
|
Re: Serial Port Communication
Quote:
It seems like a timing issue. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|