Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java ComPorts??

Status
Not open for further replies.

Nandito

Programmer
Apr 12, 2000
31
AU
Is it possible for Java to communicate with the ComPorts???<br>I seen this in VB that it is possible there to communicate via the comports.&nbsp;&nbsp;So if its possible how to can you gain access to them?<br>
 
Part of the Java rule is that it shall have no contact with any of the user's direct hardware or file system. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
Thanks Otto.....I would look for the API now....
 
Well only from application compiled natively to the OS or platform you are using. But from any Virtual Machine for java it cannot be done, in otherwords if you are trying to do this com thing in an Applet, cant be done. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
Karl.....i really wanted for application..not applet...<br>now I already downloaded the Javacomm Packages..and ran the sample programs..so everything works..now....<br>does any1 know of a good place to learn on Serial ports programming??
 
Yes actually in some C projects i did about 3 months ago, you can use the bios.h header file to send data to the comm ports.&nbsp;&nbsp;The function name was bios comm or something.&nbsp;&nbsp;Just look it up with a old borlandc c/c++ compiler for dos.&nbsp;&nbsp;i don't know if newer version of borland will allow you to modify something this low level.&nbsp;&nbsp;Their might also be some dos function in the dos.h header file, you would have to use the int86() function i think to send data to the specific .&nbsp;&nbsp;you will defeinitely have to do your research on this one.<br><br>ackka <p>moses<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top