Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2012
    Rep Power

    Post Transfer Compressed Array from RS232 port to USB

    Hi all,

    I have a problem. I need to create a java program which transfers a compressed array (of noise pollution data) coming from an RS232 port, and going to a USB flash drive, but I have absolutely no idea how to start it. Please can someone help? I don't want the answers, but if someone could give me a general direction to head in, that would be great.

    I have researched this for about a week now and have come across many different advanced methods, which are really confusing (such as ByteArrayInputStream etc).

    Any help would be greatly apppreciated!



  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Transfer Compressed Array from RS232 port to USB

    Basically you want to transfer data (bytes) from an RS/232 port to hard disk (it doesn't matter what the hardware interface is). So your problem reduces to the reading from the RS/232 port and writing to file. The latter is easy and can be done with the core classes (FileOutputStream is the class you want to use); for the reading from the RS/232 port you might want to have a look at the RXTX package (Google is your friend here).

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Compressed Image in j2me
    By Ashish_jain in forum New To Java
    Replies: 7
    Last Post: 07-04-2011, 02:50 PM
  2. Create GZIP compressed data using DeflaterInputStream?
    By johann_p in forum Advanced Java
    Replies: 15
    Last Post: 05-17-2011, 11:56 AM
  3. How to transfer 1D array in JAVA to 3D array in C
    By fishwater00 in forum New To Java
    Replies: 0
    Last Post: 07-31-2009, 06:24 PM
  4. simulator program with RS232
    By john wooo in forum Networking
    Replies: 7
    Last Post: 02-11-2009, 02:26 PM
  5. rs232 serial port on xp
    By simo_mon in forum New To Java
    Replies: 0
    Last Post: 12-04-2008, 11:25 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts