我在哪里可以下载 Java comm api? [英] Where can I get to download Java comm api?

查看:29
本文介绍了我在哪里可以下载 Java comm api?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Java comm api 编写一些程序.我无法找到可以下载此 API 的站点/页面.谁能告诉我从哪里可以得到这个 API?

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?

基本上我想从 PC 向手机发送短信.手机将通过 USB 电缆连接到 PC.我也想知道有哪些方法可以向手机发送短信?(我正在寻找不会让我花钱的选项)

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)

提前致谢!

我不得使用第三方 API.Java comm API 现在似乎已经死了.那么有没有其他方法可以从PC向手机发送消息?

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?

推荐答案

从这里下载 javax.comm api 库:http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm

Download javax.comm api library from here : http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm

在我看来,javax.comm 的最佳替代品是 rxtx.


通过串行连接发送短信

In my opinion, the best alternative to javax.comm is rxtx.


Sending SMS over Serial Connection

要通过串行连接发送短信,您必须使用 AT 命令.

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-phonehttp://www.developershome.com/sms/howToSendSMSFromPC.asphttp://www.codeproject.com/KB/vb/AT_commands.aspx

我建议您在像超级终端这样的应用程序上测试命令(win 7 的替代方案:http://helpdeskgeek.com/windows-7/windows-7-hyperterminal/) 首先.

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.

这篇关于我在哪里可以下载 Java comm api?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆