请选择 进入手机版 | 继续访问电脑版

linux系统下smslib无法找到多口短信猫设备的解决方法

[复制链接]

124

主题

188

帖子

1373

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1373
admin 发表于 2020-11-19 13:04:12
161 0
linux系统下smslib无法找到多口短信猫设备的解决方法

A brief note on How to add new enumeration to existing list of ports in Linux?
PRE Version 2.2 -- This section maybe wants removing now?

The RXTXcomm.jar file contains all the required classes that work with javax.comm API. One of them is RXTXCommDriver.class. RXTXCommDriver.java is available in ftp://ftp.qbang.org/pub/rxtx/rxtx-2.0-7pre2/src/ Download the RXTXCommDriver.java. In this code, you will find
if (osName.equals ("Linux")) { String[]Temp = { "ttyS",        // linux Serial Ports "ttySA"        // for the IPAQs }; CandidatePortPrefixes = Temp;
Replace this code with
if (osName.equals ("Linux")) { String[]Temp = { "ttyS", "ttyUSB",        // linux Serial Ports "ttySA"        // for the IPAQs }; CandidatePortPrefixes = Temp; }
Compile the RXTXCommDriver.java and add the resulting RXTXCommDriver.class file to RXTXcomm.jar in /usr/java/jdk1.5.0_07/jre/lib/ext/RXTXcomm.jar
P.S. : RXTXcomm.jar has two sub directories. gnu->io->RXTXCommDriver.class. Make sure the new compiled file goes into the right place. One way is to extract all files from RXTXcomm.jar. Replace the RXTXCommDriver.class with the new file. Create a new RXTXcomm.jar file using the following command
  • jar cvf RXTXcomm.jar gnu META-INF
Replace this new updated jar file with the old one. Then USB to Serial Converters should work great.

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

热帖滚动

推荐阅读

阅读排行

扫描二维码 关注我们官方微信 创业一手掌握
联系我们

0755-82604707

周一至周五9:00-18:00

售后服务 / 投诉处理

Powered by 2013-2017   深圳市腾亨科技有限公司 版权所有   粤ICP备16015368号-1

QQ- 短信设备-4G全网通短信设备-JAVA短信二次开发包-Archiver-手机版-小黑屋- THKJ Inc.