问题
I want to write some programs using Java comm api. I am not able to find site/page from which I can download this API. Can anyone please tell me where can I get this API?
Basically I want to send SMS to mobile from PC. Mobile will connect to PC through USB cable. I would also like to know what are the possible ways to send SMS to mobile? (I am looking for option which wont incur me money)
Thanks in advance !
EDIT 1
I am not allowed to use third party APIs. It seems that Java comm API is dead now. So is there any other way to send messages to mobile from pc?
回答1:
Download javax.comm api library from here : http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm
In my opinion, the best alternative to javax.comm is rxtx.
Sending SMS over Serial Connection
For sending sms over serial connection you have to use AT command.
Here are some examples on other languages (but the concept is same).
http://linux-101.org/script/python-code-sending-sms-messages-usb-connected-mobile-phone http://www.developershome.com/sms/howToSendSMSFromPC.asp http://www.codeproject.com/KB/vb/AT_commands.aspx
I'd suggest you to test the commands on app like hyperterminal( alternative for win 7 : http://helpdeskgeek.com/windows-7/windows-7-hyperterminal/) first.
回答2:
I would recommend RXTX. It doesn't use the javax.comm package, but it follows the same API, with a little extra.
回答3:
It might be an older version, but MIT hosts a copy of javaxcomm.zip here.
回答4:
If this is still relevant for you (maybe others, though);
Serialio.com are the true experts on serial communication. They have an excellent package (SerialPort) which I have used since 1997, and never given me any problems, and since then they have added support for Java Comm API as well as an endless number of platforms.
回答5:
Try this source at oracle.com:
Misc. Java SE Tools and Libraries Downloads
来源:https://stackoverflow.com/questions/8350969/where-can-i-get-to-download-java-comm-api