开发者

Talking to several USB modems from java

I wish to connect 10 usb modems to a windows/linux pc and send AT comments to them t开发者_JAVA百科o send sms and receive sms from them. Is this possible in Java?


I think it is possible. You just have to know the COMM port ID for each modem. I do not know pure java way to discover these IDs. So, you need some platform specific way (e.g. WMI on windows or some command on Unix). But once you have ID it should not be a problem.


Assuming the USB modem implements a serial interface, it should get a COMM port id. If so, you can use RXTX to talk to the model.


afaik, you can use serial communication while talking to usb devices as long as device hardware contains an ftdi chip or so. I used a c++ serial lib in a Qt project, talking to an Arduino connected on a usb port. arduino appears as a com device.

otherwise, you may look at the jusb project: http://www.ibm.com/developerworks/library/j-usb/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜