Results 1 to 13 of 13
  1. #1
    ADG
    ADG is offline Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    0

    Default How to receive SMS using a USB dongle

    Hi! Does anybody have a code to receive a SMS using an USB dongle? or else can somebody help me to write a code? I searched in the internet but couldn't find it.

    Note:
    This is for an Electrical & Electronic project for my diploma & I have only a very basic knowledge about java and have not learned it. I know C++.
    I'm using Netbeans IDE.

    It would great if you could provide the necessary libraries also.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default Re: How to receive SMS using a USB dongle

    Reading and writing from/to a USB port can be done with RXTX (you can download it here: http://guides.machinescience.org/mod...ss.php?d=263); depending on the SMS chip you're using you have to consult its manual for the details how to communicate with it (probably through 'at' commands).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    ADG
    ADG is offline Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    0

    Default Re: How to receive SMS using a USB dongle

    Thank you. Do you have a similar code ?

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default Re: How to receive SMS using a USB dongle

    Quote Originally Posted by ADG View Post
    Thank you. Do you have a similar code ?
    A similar code for what? Even if I had, the GSM chipsets could be totally different, so the code wouldn't be of any use to you; besides, this forum isn't a code mill.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,367
    Rep Power
    6

    Default Re: How to receive SMS using a USB dongle

    "I know C++". Yeah the language syntax apparently, but this thread proves that anything else that comes along with C++ development (technical wizardry, research capabilities and problem solving expertise) are not present.

    Let me put it differently: all the C++ programmers I have had dealings with TOLD people what to do, they did not hold up their hand and expect to have things handed to them.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    ADG
    ADG is offline Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    0

    Default Re: How to receive SMS using a USB dongle

    A similar code for what?
    To receive a SMS using the USB dongle. I was able to send a SMS using the dongle. I used SMSlib library. I think the difference in dongle manufacturers will not make an issue.

  7. #7
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default Re: How to receive SMS using a USB dongle

    Quote Originally Posted by ADG View Post
    To receive a SMS using the USB dongle. I was able to send a SMS using the dongle. I used SMSlib library. I think the difference in dongle manufacturers will not make an issue.
    So you basically have this communication chain: PC running Java <---> dongle <---> GSM chip set.

    You're using some SMSLib stuff that hides the gory details from you so you basically don't know how to communicate whith the chip set. Read the manuals for that SMSLib stuff.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  8. #8
    ADG
    ADG is offline Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    0

    Default Re: How to receive SMS using a USB dongle

    I'll explain my project further. My project is Automatic Electricity Billing System. The energy consumption value is send as a SMS to the electricity service providers end via a GSM module. The SMS sent by the GSM modem is received by the dongle for billing. I need to extract this SMS and save it in a link list. My question is how can I achieve this in a java program. As I know there are AT commands and manuals for the GSM modem but not for the dongle.

  9. #9
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default Re: How to receive SMS using a USB dongle

    Quote Originally Posted by ADG View Post
    I'll explain my project further. My project is Automatic Electricity Billing System. The energy consumption value is send as a SMS to the electricity service providers end via a GSM module. The SMS sent by the GSM modem is received by the dongle for billing. I need to extract this SMS and save it in a link list. My question is how can I achieve this in a java program. As I know there are AT commands and manuals for the GSM modem but not for the dongle.
    But a dongle doesn't do anything intelligent; it just passes bytes to and from your computer and that GSM device. Simply send the appropriate bytes to that dongle (using RXTX, it can talk to USB devices which happens to be your dongle). If you can do that your linked lists can come in ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  10. #10
    ADG
    ADG is offline Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    0

    Default Re: How to receive SMS using a USB dongle

    Thanx

  11. #11
    jivansupe is offline Member
    Join Date
    Nov 2014
    Posts
    1
    Rep Power
    0

    Arrow Re: How to receive SMS using a USB dongle

    Quote Originally Posted by ADG View Post
    Thanx
    Hello,
    I am working on the same requirement. As far I was able to implement the send sms functionality, but I am unable to get the solution to read a recieved sms. Please can u share a demo code which can help me in understanding how to read a recieved sms through dongle...?
    I would be grateful if u help me...


    Thanks in Advance..

  12. #12
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,033
    Rep Power
    6

    Default Re: How to receive SMS using a USB dongle

    This thread is over a year old so the OP may not reply anytime soon (or ever).

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  13. #13
    ADG
    ADG is offline Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    0

    Default Re: How to receive SMS using a USB dongle

    Quote Originally Posted by jivansupe View Post
    Hello,
    I am working on the same requirement. As far I was able to implement the send sms functionality, but I am unable to get the solution to read a recieved sms. Please can u share a demo code which can help me in understanding how to read a recieved sms through dongle...?
    I would be grateful if u help me...


    Thanks in Advance..
    Hi! I'm afraid I don't have any of those codes with me. Even the blog that we used as a reference seems to be removed. Sorry, wish I could help you.

    harshadura-blogx: Simply send SMS using Java with GSM Modem or HSDPA Dongle!
    How to send SMS using Java with a HSDPA Dongle. - CodeProject
    SMSLib

Similar Threads

  1. Replies: 2
    Last Post: 01-27-2011, 09:58 PM
  2. UDP Receive Problem
    By Debbie in forum Networking
    Replies: 0
    Last Post: 04-27-2010, 11:56 AM
  3. How to send and receive SMS to and from JSP
    By ashrafraheem in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-27-2009, 03:16 AM
  4. Replies: 0
    Last Post: 12-02-2008, 11:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •