View Single Post
  #4   Spotlight this post!  
Unread 07-05-2015, 14:31
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,574
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: RS-232 Port Problem

I had done a longer post this morning - not sure where it went.

Have you tried serial.reset()? I would suggest this immediately after the constructor.

You might also try manually calling serial.getBytesReceived() to see if it returns zero, an error, or something else.

Have you tried getting an error message from HALUtil? I'm not familiar with the HAL subsystem, and I was surprised to see it coming from a serial port; I suppose that the USB is somewhere behind the HAL system. The following should return a string that might prove enlightening:
Code:
edu.wpi.first.wpilibj.hal.HALUtil.getHALstrerror()
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote