View Single Post
  #3   Spotlight this post!  
Unread 17-01-2016, 13:19
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Java SerialPort kUsb

Quote:
Originally Posted by AndyB871 View Post
Arduino Gets the command though. I'm going to try to use a different library, maybe JSSC, which I've had success with on some other projects in the past.

I've been too frustrated over the past two days to get out of the tunnel vision.

As far as the "few seconds" with the bump, I suppose I'm just stupid. I DID look for a rule before I did anything....
The error is telling us nothing which is why I am led to believe that the arduino either isn't sending back success signals or the communication is failing between the time that your sending data and the time that the arduino confirms that it recieved the data.

The built in libraries are most likely the best you are going to get because they interact directly with the FPGA. It may be difficult to get a library that can interact with the RIO's custom RSA ports correctly.

You could always do the silly thing and spawn a new thread for every command you wish to send. I'm not too familiar with the libraries provided but if there is some way to terminate the request than you simply send the command, wait 0.3 seconds, terminate the request (eating the error), than send another. (This is under the assumption that the arduino is having no problem processing and returning the data. This is also a very last case scenario! Playing with the FPGA like this is not a great idea).

Also, if you want further support, than I'd highly recommend posting code that can be troubleshooted. Theoretical guessing about your issue is to no avail for those who have not overcome the same issue that you are facing.

E/ SerialPort does indeed have a reset() command. I'm not sure of the volatility or damage of the command, though.
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)

Last edited by Arhowk : 17-01-2016 at 13:26.
Reply With Quote