Results 1 to 2 of 2
- 07-29-2012, 01:22 AM #1
Member
- Join Date
- Jul 2012
- Posts
- 1
- Rep Power
- 0
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!-.gif)
Regards,
RacingSalmander.
- 07-29-2012, 09:08 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,400
- Blog Entries
- 7
- Rep Power
- 17
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,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Compressed Image in j2me
By Ashish_jain in forum New To JavaReplies: 7Last Post: 07-04-2011, 02:50 PM -
Create GZIP compressed data using DeflaterInputStream?
By johann_p in forum Advanced JavaReplies: 15Last Post: 05-17-2011, 11:56 AM -
How to transfer 1D array in JAVA to 3D array in C
By fishwater00 in forum New To JavaReplies: 0Last Post: 07-31-2009, 06:24 PM -
simulator program with RS232
By john wooo in forum NetworkingReplies: 7Last Post: 02-11-2009, 02:26 PM -
rs232 serial port on xp
By simo_mon in forum New To JavaReplies: 0Last Post: 12-04-2008, 11:25 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks