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
2
votes
1 answer

How to read sms from gsm using java comm?

I found free source project to send sms using java comm: http://code.google.com/p/find-ur-pal/source/browse/src/?r=21 Function sending sms looks like this: public void run(){ boolean timeOut=false; long startTime=(new…
Robert
  • 2,571
  • 10
  • 63
  • 95
2
votes
0 answers

Java serial communication: Rxtx unable to find serial ports on FriendlyARM mini2440

I am attempting to get the Java rxtx library to work on the FriendlyARM mini2440. I am using emDebian "squeeze" on the mini244. The rxtx library is taken from "lenny" as the squeeze version does not match my requirements. The Java environment works…
2
votes
1 answer

Java Comm API Package download

Possible Duplicate: Where can I get to download Java comm api? I'm looking for a link to download sun's javax.comm package for Ubuntu(linux x86 and x64). I looked at this link: http://java.sun.com/products/javacomm/ But its being re routed to an…
Siddharthan Asokan
  • 4,321
  • 11
  • 44
  • 80
2
votes
3 answers

javax.comm: Error when device is disconnected

I have an application that reads data from a com port using javax.comm. The problem I am having is that if the device that I'm reading from is unexpectedly disconnected I get an error in the console that says "WaitCommEvent: Error 5" I have looked…
beyerss
  • 1,302
  • 3
  • 21
  • 38
2
votes
0 answers

javax.comm only seems to send one message

I am trying to communicate from my computer to a circuit board over a serial port using javax.comm. I wrote a program (based on the SimpleRead and SimpleWrite examples) that will take any data received from the device and print it to System.out and…
2
votes
1 answer

Can we use same @HandlerChain for all my webServies which there are in different package name?

i have couple of webservice with different package location what i want is to use same HandlerChain for all the webservice but maven build is failing with [Could not parse handler chain file] could not find file .... as its locking for handler in…
2
votes
1 answer

Portability of Java application using javax.comm

It seems the hurdle with being about to using javax.comm for working with COM ports is the placement of two files win32com.dll and javax.comm.properties. They need to go in the JRE and/or JDK folders, which isn't particularly good making the…
Glom
  • 21
  • 1
2
votes
1 answer

How to read a usb serial port in JAVA?

I add some detail to my question. I receive on my Xbee device a flow of GPS coordinates but I'm unable to read and stock these data on a buffer. My Xbee device is connected to my laptop on a usb serial port, that's why I want to create a program…
user3607632
  • 21
  • 1
  • 2
2
votes
2 answers

Greater efficienty for data reception through serial port in Java

Here is the code snippet Here i am initiating an Action Listener try { port_seleted.addEventListener(this); } catch (TooManyListenersException e) { System.out.println("too many Listeners!"); } …
Abhi4ever
  • 41
  • 7
1
vote
1 answer

implementing SerialPortEventListener - java

I am trying to implement SerialPortEventListener but failed. My code is public class Communicator implements SerialPortEventListener{ My netbeans 7.1 shows mateorssms.Communicator is not abstract and does not override abstract method…
A. K. M. Tariqul Islam
  • 2,824
  • 6
  • 31
  • 48
1
vote
1 answer

The javax.comm package

I've searched far and wide for the javax.comm package, but I cannot find it anywhere. There is a download site for it at oracle, but it's just the API for it. Does anybody know where I can obtain the package? Thanks in advance!
Avogadro
  • 353
  • 2
  • 11
1
vote
1 answer

Specifying the location of Java communication libraries

Is there a workaround or a solution to having to place the javax.comm.properties file and the win32com.dll file in their respective folders? My program works fine when I have the files stored as…
mjh2007
  • 776
  • 1
  • 8
  • 17
1
vote
0 answers

Java Serial Communication using Javax.comm and saving variables into an array

Ok the idea is that i want to use serial communication in java, using javax.comm. What I want to do exactly is read a line though serial communication and save it in an array. For example every time I press a button on my external device, it will…
1
vote
1 answer

READ ASCII data using Javax comm package

I have a device sends some data to COM port, byte stream is a human readable ASCII character stream. I tried to read the data stream from a port reader and I can read it easily like, Param Flags Value Unit [min-max] WBC E 0.00 10^9/l …
1
vote
2 answers

possible to import javax.comm on Android? want to open serial device

I have a rooted Android device with a USB serial device connected. The device shows up as "/dev/ttyUSB5" I would like to open the serial port and read/write from it. First and foremost... within Android, will it even allow me to read/open…
gnychis
  • 7,289
  • 18
  • 75
  • 113