• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java sending AT-Commands to GSM modem  RSS feed

 
Adrian Lee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone. I'm trying to build a java program to send AT-Commands to my GSM modem. Is there anyone that has experience on this?

I've looked up through google, but cant seem to find a working example which I can use as a reference.

What I'm hoping to do for my project is to able to send a short SMS from my GSM modem to a mobile phone and vice versa. At this point, I've already found the AT-Commands to acheive the sending of sms through GSM modem. However, I'm only able to run the commands through Hyper Terminal.

Thanks in advance for your help.

Regards,
Adrian Lee
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adrian,

I think you can take a look at this free open source software which was developed in Java.

SMSLib

I think this one may help you with what you needed.
 
Kelvin Chenhao Lim
Ranch Hand
Posts: 513
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adrian,

If you're interested in a more low-level approach than the SMS library, you may want to check out the Java Communications API (javax.comm), which will allow you to open the serial port and get input and output streams for the port. You can then write your AT commands to the port using its output stream.
 
Adrian Lee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Balasubramanian and Kelvin. Thanks a lot for your replies. Will look at the links given.

Thanks again!
 
Bert Bates
author
Sheriff
Posts: 8954
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this sounds hard...
 
Arthur Buliva
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have managed to send and receive sms text messages using Java and in conjuction with a package called gammu and/or gnokii and using Java's Runtime classes to achieve the desired effect.

The mobile telephone was a Nokia 3310 connected to the computer's serial port through a data cable
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!