Questions tagged [javax.comm]

javax.comm is the Java Communications API. This API allows Java to access serial and parallel ports, and perhipherals attached to serial and parallel ports, including smartcards, modems, and fax machines. This API predates the JCP, so it doesn't have a JSR.

For more information about the Java Communications API, visit Oracle's page.

{{stub}}

82 questions
1
vote
2 answers

Can't find ports with javax.comm api

I am trying to install the javax.comm api on a machine (I already installed on another machine and it is working fine) but when I run the sample "BlackBox" application I get a message that says "No serial ports found!". I have followed the…
beyerss
  • 1,302
  • 3
  • 21
  • 38
1
vote
2 answers

Send command to device with Java

I want to connect magnetic card reader, send commands and get responses with Java (COM Port) in Windows XP. I have .h file & dll. I want use dll functions. How can I connect or send device?
totali
  • 260
  • 6
  • 22
1
vote
2 answers

Advice on unit testing, class to test has dependency on Java serial port

I am working on a large legacy java application. It already has an extensive existing framework in place for handling device drivers. I need to create a new device driver for a device that connects to a serial port via JavaComm. The existing drivers…
fred basset
  • 9,774
  • 28
  • 88
  • 138
1
vote
0 answers

Cannot Get Response Of USSD in javax.comm

I am new to javax.comm and I have a project in which I want to send USSD commands to my modem and receive the response for further processing. In my code below, everything works well, the USSD code is sent, but the program remains infinitely at…
1
vote
1 answer

javax.comm.CommPortIdentifier.getPortIdentifiers() empty on device running Debian 6

I'm afraid this might not strictly be a programming question, but more something I need cleared up to continue my programming. I am simply trying to write a program to do serial communication, specifically using the javax.comm API and I have…
1
vote
0 answers

javafx communicate with serial port with javax.comm

In JDK 8 u 5 I have sample project that uses comm.jar and win32com.dll to communicate with a serial port. I setup javax.comm correctly and put the related files in the JDK and JRE and was able to run sample code with out error. I then created a…
samstart
  • 61
  • 3
1
vote
1 answer

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBPermission

When I am trying to run Maven project on App Engine local Development Server .Its Show's some class Not found Exception Given Below is my console Status Apr 7, 2014 11:56:01 AM com.google.apphosting.utils.config.AppEngineWebXmlReader…
1
vote
0 answers

Why my usb to serial port is not recognized in Ubuntu?

I have to continue the development of a specific java embedded project which talks to some serial external devices. Previous development was done using Windows and now I try to run it using Ubuntu. I have some port issue when using this code: …
Cristian Boariu
  • 9,603
  • 14
  • 91
  • 162
1
vote
2 answers

How to detect disconnection of Serial Port connection with javax.comm?

When a connection of SerialPorts (RS232) is interrupted/disconnected, how could I detect it and report it to the user? As can happen in any moment, I suppose I should use a separate thread. My connection type is: send msg - recieve msg
anat0lius
  • 2,145
  • 6
  • 33
  • 60
1
vote
1 answer

javax.comm: platform driver class name = null Check 'driver' property in javax.comm.properties)

I am running a server application and accessing the database for operations, and I am getting the error as even though I have configured the javax.comm.properties in my project javax.comm: Can't find javax.comm.properties! java.io.IOException:…
user3017166
  • 21
  • 1
  • 3
1
vote
2 answers

Copy javax to JRE using Install4J

I am using install4J to distribute my application . However i am using serial port in my program therefore i will need the below file to be copied to the target JRE folder…
sean
  • 717
  • 2
  • 9
  • 23
1
vote
1 answer

Communicate over Comport on 14400 Baudrate in Java - Serial Communication

Hoping to find solution here. I have a controller which uses a App specific protocol over UART and this protocol works only at 14400 bps. I have to use java code to communicate with this controller over serial port. But i fount the API's i am using…
Abhi4ever
  • 41
  • 7
1
vote
1 answer

How do I communicate with a RS232 serial port on a remote device using TCP/IP?

I have a device connected using a serial port to GC-100-12. I want to connect to it remotely and pass commands to that device and retrieve replies from that device. I am capable of communicating if the device is connected straight to my laptop but I…
GreenGodot
  • 6,030
  • 10
  • 37
  • 66
1
vote
1 answer

Re-Enumerating all Serial devices in java using Javax.comm

Here is the code that I am implementing for Enumeration of devices. I am able to detect and display all the Serial devices connected.But suppose I connected another device and then try to recall this function, It is always showing the devices that…
Abhi4ever
  • 41
  • 7
1
vote
0 answers

USB port cannot be detected after program start

When a device is already connected, my program calls CommPortIdentifier.getPortIdentifiers() from javax.comm, and I get the USB port. However, if the program starts and then I connect the USB device, CommPortIdentifier.getPortIdentifiers() doesn't…