java-communication-api

Where to download Java Communications API [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-21 21:43:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I want to build a Java application like callerID application. But I can't find the link to download three files: comm.jar win32com.dll javax.comm.properties Some forums said: can be found at http://java.sun.com/products/javacomm. But this link does not have them. Where are these files available? 回答1: I believe

Reading from a port in Java

不羁的心 提交于 2019-12-13 04:43:36
问题 Here is the scenario: 1. I have a GSM modem which is connected to my computer, It's working I can read and send SMS via the built-in program. 2. The port assign to my gsm modem is COM11 . I saw it from DeviceManager -> modems -> myModem-> Advance -> AdvancePortSettings . 3. I write the Java code to read incomming message. The code is as follows: public class PScanner implements SerialPortEventListener, Runnable { CommPortIdentifier pid = null; SerialPort sp; BufferedReader input; OutputStream

How to get the output of AT command into a string in java?

为君一笑 提交于 2019-11-28 11:45:06
I am trying to read the result of an AT command (command executed to do various operation to a GSM modem from console). I have seen and successfully tested using the Java OuputStream class to get the result of an AT command as output stream but what I need to do is to get the result not as outputstream but into a variable (String for now) in my class. If it is possible to do like outStream.write(("Some At command").getBytes()); which works fine, how can it be possibe to do something like this Strign resultOfCommmand=.....result of some AT command; I am trying it in this way InputStream is =

How to get the output of AT command into a string in java?

青春壹個敷衍的年華 提交于 2019-11-27 03:41:46
问题 I am trying to read the result of an AT command (command executed to do various operation to a GSM modem from console). I have seen and successfully tested using the Java OuputStream class to get the result of an AT command as output stream but what I need to do is to get the result not as outputstream but into a variable (String for now) in my class. If it is possible to do like outStream.write(("Some At command").getBytes()); which works fine, how can it be possibe to do something like this