View Single Post
  #5   Spotlight this post!  
Unread 17-01-2016, 15:45
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

Most standard communcation will return a checksum with a data good/data bad signal after transmission (as I said, I haven't used the serial port, but it is the easiest way to ensure data integrity, especially since RS232 is bidirectional)

Also, you should always post code when you have an issue regardless of how trivial or complex your issue is.

There are some options you should try, in order of when you should do them
  1. Initialize ALL variables of the serial port, not just baud rate
  2. Switch your buffer mode to flush on full than manually flush after every call with step by step debugs and try catch blocks
  3. Reflash your roboRIO
  4. Find a new arduino
  5. Refactor your flushing method to follow what I described earlier by queue threading the flush command
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote