Read file from serial port using Java

rajat picture rajat · Feb 13, 2009 · Viewed 33k times · Source

I'm begginner in Java, I'm writing ("FLASH").getbytes() like this to serialport.

After I'll get FLASH_OK as response, again I've to send file request. After that I'll get response as FILE_OK then I have read file up to end of the file.

I'm not getting how to do this, so please help me.

Thanks for reply.

Answer

linski picture linski · Oct 3, 2012

jSSC is a stable serial IO java library, take a look at following examples:

  • writing data to serial port
  • reading data from serial port