Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2007, 08:49 AM
Member
 
Join Date: Apr 2007
Posts: 2
radhika is on a distinguished road
serial port
i am a new in serial port topic ,i know the concept read & write port on my pc
now i want to implement in my project,i need help how can i access the serial port in remote system

please any one help for me

advance thanks

regards
R.Radhika
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-24-2007, 08:50 AM
Member
 
Join Date: Apr 2007
Posts: 2
radhika is on a distinguished road
how can i access the serial port in remote system
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-24-2007, 02:21 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Hi Radhika,

First of all i moved your thread to "New To Java" forum since it was not appropriate for "Java Announcements" forum.

Your problem has two parts:

1. Controlling serial port on a machine

For this part, you will need Java Communications API. Its installation can be a little bit problematic. It is important to find a working tutorial for it. I dont remember which one i used so you need to find your way yourself. But you can start with installation instructions there.

2. Accessing a serial port on a remote machine

After you set up Java Communications API on the remote machine, you will need to develop a server application because you need to control a remote machine and to do this, you should have both client and server.

For client-server programming you can use socket programming or RMI (Remote Method Invocation). If you want to use a web based interface, then you can use Servlets to develop your server application and use your browser as the client application.

Let us know if you have further problems..
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-15-2007, 10:20 PM
Member
 
Join Date: Nov 2007
Posts: 1
dnsunil is on a distinguished road
Does anybody implemented accesing serial port on a remote machine? Please share the information that would be really beneficial to me.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-16-2007, 12:50 PM
Member
 
Join Date: Nov 2007
Posts: 5
hobbyist is on a distinguished road
I also have an issue with serial comm API.
I am trying to write a JavaSE application using Swing to access the virtual COM port created when connecting a Modem aware device to the USB.
I can see data coming across via Hyperterminal and I want to write a hyperterminal type application to react to and filter messaging.
I have tried using the Comm API and followed in the API instructions to the letter.
I am using the following code in my JavaSE app:

{
...
private void initCommPorts() {
CommPortIdentifier portId;
Enumeration portList = CommPortIdentifier.getPortIdentifiers();
if (portList == null) {
System.out.println("portList is null");
}
else {
System.out.println(portList.toString());
}

String comPort = "";
while (portList.hasMoreElements()) {
portId = (CommPortIdentifier) portList.nextElement();
System.out.print("Port found");
comPort = portId.getName();
System.out.println("Found port: " + comPort);
// Add COM port to visual object selection list
comChoice.addItem(comPort);
}

}
...
}

The issue is that this code never finds the COM port. The Enumeration is always empty.

Am I using the right API here. Can the Comm API be used to create a connection to the virtual COM ports in Windows XP?

Thanks guys - and sorry for my ignorance on this matter!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Serial port using JDK 1.6 hasani6leap Advanced Java 2 09-03-2008 07:59 AM
Access Serial port hasani6leap Advanced Java 0 02-12-2008 11:45 AM
Reading from Serial port! Dogge New To Java 0 02-10-2008 06:16 PM
Writing to serial port (com1) Java Tip Java Tips 0 02-05-2008 11:02 AM
serial port musiigedeo Advanced Java 0 07-23-2007 06:52 PM


All times are GMT +3. The time now is 04:41 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org