haolq / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

Port Not Found exception #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
I'm a newbie for jSSC.
I'm using following system/env.
OS: Windows 7 Enterprise 32bit
Java: 1.6.0_25
jSSC:jSSC-2.6.0-Release
IR Connector : Edisonsoft ES-620 USB Infrared Adapter (USB to Infrared)
Issue:
1. When I list port after connecting IR Adapter to may computer using API 
SerialPortList.getPortNames() It returns me array of size zero..means no port.
2. When I connect my IR enabled phone with IR Adapter(by just turning on IR on 
my phone and placing it before IR Adapter already connected to my computer) and 
again list ports using SerialPortList.getPortNames(), I get an array with 1 
element having port name COM3.
3. When I try to use same port by opening it using following code(after 
removing my phone from IR Adapter)
SerialPort serialPort = new SerialPort("COM3");
try {
    serialPort.openPort();
.............
.............
I get jssc.SerialPortException: Port name - COM3; Method name - openPort(); 
Exception type - Port not found. I'm clueless why :( ??
Now what I wish to do..
1. Open a port to communicate with IR port.
2. Should I always use COM3 to communicate with IR port?
3. How should I come to know weather my IR port is connected to COM3 or some 
other COMn?
Thanks in advance for your time and help.

-Regards 

Original issue reported on code.google.com by vicky.aq...@gmail.com on 10 Mar 2014 at 3:16

GoogleCodeExporter commented 8 years ago
Please anybody help me.. 
or this lib has been disowned :)

Thanks in advance.. 
-Regards

Original comment by vicky.aq...@gmail.com on 2 Apr 2014 at 7:23

GoogleCodeExporter commented 8 years ago
I´ve same problem. Problem is W7; in XP work perfect.

Original comment by jav...@intelcyl.com on 20 Jun 2014 at 6:48

GoogleCodeExporter commented 8 years ago
Solved! COM1 was assigned to another printer in Printers panel. (GENERIC/TEXT, 
for testing uses). I change it to COM3, and program run ok!

Original comment by jav...@intelcyl.com on 20 Jun 2014 at 7:07