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
0 answers

No output from my Java code

I want to find the ports present in the Windows 7 and I have written code for it. It successfully compiles but there is no output. I have Compiled in Netbeans Here is my code: import java.util.*; import javax.comm.*; public class PortLister { …
VenuNalla
  • 39
  • 8
1
vote
0 answers

Find Serial Buffer Size of Converter

I'm using an FTDI USB-to-Serial converter on linux. I'm writing an application that implements the standard functionality of changing settings like baud rate, etc... The only thing that I'm not sure how to get is the buffer size, e.g. if the user…
Gatica
  • 593
  • 1
  • 6
  • 13
1
vote
1 answer

Finding out SIM card operator

My JAVA program can find a modem connected with serial port. Like: COM1: Serial COM3: Serial // This is my modem LPT1: Parallel LPT2: Parallel Is there any AT Command or other process which can help me to find out the operators identity (name),…
A. K. M. Tariqul Islam
  • 2,824
  • 6
  • 31
  • 48
0
votes
0 answers

Is javax.comm v2.0.3. jar available anywhere now?

Much documentation still available for open source packages such as rxtx assumes that you can somehow get hold of javax comm v.2.0.3 jar. However that appears to no longer be true. For example http://www.intellog.com/blog/?p=255 links to…
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
0
votes
3 answers

Java which library I should use to receive and send sms via RS232 on Windows and Linux

I want to write application to send sms via COM port. Currently I have Windows, but then this application should works on Linux too. I found javax.comm library here: http://www.oracle.com/technetwork/java/index-jsp-141752.html but I don't know from…
Robert
  • 2,571
  • 10
  • 63
  • 95
0
votes
2 answers

Can't download javax.comm

I'm making a Java ECG Software which needs to be able to communicate with an ECG through serial communication. However, the java API javax.comm is nowhere to be found. I have searched Oracle but there's no download link whatsoever. Does anyone know…
Cyberlurk
  • 766
  • 3
  • 9
  • 30
0
votes
0 answers

Serial port param values prob

I'm trying to read/write some data from a COM port. The program sets up the serial port parameter values as follows: serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE). However, the program…
Naresh
  • 51
  • 1
  • 6
0
votes
1 answer

Alternatives of javax.comm

Hi all i want to control a parallel port through java code, when i googled i found a few packages like javax.comm , RXTX, SerialIO.com (website) etc. Currently i have written a native code(in C) for port communication.And let JNI do the…
buch11
  • 872
  • 3
  • 13
  • 29
0
votes
2 answers

add javax.comm API on a mac

I would like make an java app that communicates with a serial device(handheld scanner) so that the app is platform independent. I have found a few code examples, and when I copy them into Eclipse it says that javax.comm.* is missing. How do I…
lmkk
  • 609
  • 2
  • 9
  • 21
0
votes
2 answers

java javax.comm

Hi im trying to read com port, so I add library to my java directory like they wrote here but when Im witing simple code like import java.util.Enumeration; import javax.comm.*; public class CompotCore { public static void main(String[] args) …
kskaradzinski
  • 4,954
  • 10
  • 48
  • 70
0
votes
1 answer

GPS FIX data, reading from com Port

I'm creating a very simple application to read the info from a GPS in java. The information is sent on the COM1 in the NMEA0183 format. Everything works good except that I can't find my position because the RMC and GGA sentence are empty. I receive…
Deepu
  • 47
  • 1
  • 3
0
votes
1 answer

javax.comm : Identify which serial port my GPS device is operating

I am writing a small application which uses the javax.comm api to return an enumeration of comms ports, using the following syntax CommPortIdentifier.getPortIdentifiers(); My question is how would one programmatically identify which port my GPS…
T-Pane
  • 3
  • 1
0
votes
2 answers

NoSuchPortException problem for serial port

I tried to connect to SerialPort COM6 using (Windows XP) javax.comm library with this piece of code portId = CommPortIdentifier.getPortIdentifier(commName); port = portId.open("", Integer.parseInt(timeout)); serialPort =…
Damir
  • 54,277
  • 94
  • 246
  • 365
0
votes
1 answer

Nested exception is java.lang.NoClassDefFoundError in javax.comm with Srping MVC while deploying WAR?

Am trying to read COM port through javax.comm (WINDOWS 32) which implemented in Spirng MVC. Yes I got worked at development, if I deploy the WAR on Tomcat that throws error. My Error Log: org.apache.catalina.core.StandardContext.listenerStart…
Sankar
  • 687
  • 1
  • 13
  • 25
0
votes
1 answer

Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path

I have a small piece of code that requires javax.comm api for serial port communication. This is what i have done. Placed the comm.jar file in the jre/lib/ext directory. Placed the javax.comm.properties file in the jre/lib directory. Placed the…
Nyagaka Enock
  • 444
  • 1
  • 10
  • 20