Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

Hardware Interfacing through USB or RS232

Thread view: 
amir - 05 Sep 2007 11:00 GMT
Dear Friends,
I need to connect some hardware to my software.
I was thinking about USB and RS232.
Anyway, any kind of help will be appreciated.
Best,
Roedy Green - 05 Sep 2007 11:53 GMT
>I need to connect some hardware to my software.
>I was thinking about USB and RS232.
>Anyway, any kind of help will be appreciated.

see http://mindprod.com/jgloss/serialport.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Martin Gregorie - 05 Sep 2007 12:43 GMT
> Dear Friends,
> I need to connect some hardware to my software.
> I was thinking about USB and RS232.
> Anyway, any kind of help will be appreciated.
> Best,

What hardware?
What software?
What transfer protocol does the hardware use?
What host computer and operating system?

What are you trying to achieve?

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

amir - 09 Sep 2007 13:46 GMT
Dear Martin,
This is your answer:
> What hardware?
I have been designed a Hardware and need to connect both.
> What software?
I am going to make a monitoring and control application for my
hardware.
> What transfer protocol does the hardware use?
I have not any special transfer protocol. Just, need to transfer data
and commands bidirectionaly.
> What host computer and operating system?
x86 family. MS-Windows is focused.
> What are you trying to achieve?
I am trying to make a Monitoring and control for my hardwares. They
may send data or commands bidirectionaly. data trasfered is in two
forms, small tags and mass data.
Martin Gregorie - 09 Sep 2007 16:46 GMT
> Dear Martin,
> This is your answer:
[quoted text clipped - 12 lines]
> may send data or commands bidirectionaly. data trasfered is in two
> forms, small tags and mass data.

Seeing that you have complete control over the hardware, I'd suggest
that you don't use either a serial connection of USB. There's an easier
way to communicate with a Java program: TCP/IP over Ethernet. Hardware
interfacing modules are available at sensible prices via electronics
outlets such as Farnell. See:

http://www.gridconnect.com/

for module descriptions and prices. IMO the benefits of using TCP/IP
rather than serial or USB are:

- the modules are sufficiently cheap that using them probably pays for
  itself in reduced development costs for the Java application. Unless,
  of course, you're developing a mass market item for a price-sensitive
  market.

- the Java application's interface to your hardware can be developed
  with the standard J2SE development kit.

- almost all PCs have a NIC these days, so a sockets based Java
  application doesn't need any communication hardware or software
  apart from the OS and the standard JRE. This makes user site
  installation much simpler.

- there is no need for extras such as RXTX or javax.comm which, in
  any case, are not particularly portable.

Disclaimer: I haven't used Xport modules to date and have no connection
with Gridconnect, but they'll my first stop if I run into the need to
interface custom hardware to a PC. For exactly the same reasons I've
previously used Parallax STAMPs rather than building custom controllers
round PIC chips.

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Jeff Higgins - 10 Sep 2007 00:13 GMT
> Seeing that you have complete control over the hardware, I'd suggest that
> you don't use either a serial connection of USB. There's an easier way to
> communicate with a Java program: TCP/IP over Ethernet. Hardware
> interfacing modules are available at sensible prices via electronics
> outlets such as Farnell.

Thanks for the inspiration, much appreciated.
JH


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.