Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get to download Java comm api?

Tags:

java

mobile

sms

usb

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?


like image 424
Shekhar Avatar asked Dec 02 '11 02:12

Shekhar


4 Answers

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.

like image 194
gtiwari333 Avatar answered Nov 13 '22 03:11

gtiwari333


I would recommend RXTX. It doesn't use the javax.comm package, but it follows the same API, with a little extra.

like image 33
Jeffrey Avatar answered Nov 13 '22 01:11

Jeffrey


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.

like image 3
Niclas Hedhman Avatar answered Nov 13 '22 03:11

Niclas Hedhman


It might be an older version, but MIT hosts a copy of javaxcomm.zip here.

like image 2
Beau Grantham Avatar answered Nov 13 '22 02:11

Beau Grantham