0

I need to make an SMS transceiver that automatically inputs to a database every SMS that it receives. I am using a USB GSM Modem and able to use AT commands via HyperTerminal at COM Port 3.

Thanks.

Benjo
  • 1
  • 1

3 Answers3

3

The official API from sun/oracle for communication with serial/parallel ports is the Java Communication API ( www.oracle.com slash technetwork/java/index-jsp-141752.html ).

Be aware: this api just contains Java interfaces - no implementation classes. Sun/oracle suggests to use the rxtx library as implementation (licensed as LGPL).

I have been using the rxtx library successfully. The official webpage is not looking promising, but the implementation works fine for serial and parallel ports: http://users.frii.com/jarvi/rxtx/

slartidan
  • 20,403
  • 15
  • 83
  • 131
1

You can take a look at SMSLib. It is Java library for interacting with GSM Devices. It should save you some time.

If this is not what you are looking for, check here.

Community
  • 1
  • 1
npinti
  • 51,780
  • 5
  • 72
  • 96
  • +1 Although technically not answering the question the OP *asked*, it's still useful. – T.J. Crowder Dec 24 '10 at 10:18
  • I posted a link to a previous SO question for that reason. I used SMSLib in a project... for my case, it was better than using AT Commands, so I think that the OP will find it better than using AT commands. – npinti Dec 24 '10 at 10:24
0

If you don't want use lib then write your code in cpp and use JNA or JNI to invoke the function. Third party libaray depends on hardware, I am not sure these will behave well.

Kamahire
  • 2,149
  • 3
  • 21
  • 50