×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Aug 2014
    Posts
    6

    Receiving SMS from mobile to PC with USB CABLE

    I am searching on this topic from month and still didn't get the solution I want to write a program in any language (JAVA, C, C++ etc) to receive an sms on my pc from my mobile which is connected to the pc using USB CABLE. Please guide me step by step. I tried to use SOCKET programming but I couldn't do it.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,570

    Re: Receiving SMS from mobile to PC with USB CABLE

    If the phone supports AT commands for receiving SMS, you can connect to it via "virtual" serial port, send AT commands and read and parse the response. Nokia has published some old(10 years or so) AT command references for GSM and CDMA phones by Nokia.

    I think Windows Phone based phones might have some support for AT commands (check on http://msdn.microsoft.com). At leas there used to be a Microsoft utility for sending SMS via AT commands many years ago.

    For older Nokia phones, the APIs (required installing Nokia PC Suite or at least the Nokia PC Suite Connectivity bits, which used to be availabl separate), and then the PC Suite APIs. Not much support for those.

    So, start by researching AT commands and issuing AT commands from PC applications. Then it depends on which phone you use if there are suitable AT commands which the phone supports (often there might be commands to send SMS, but might not be support for receiving them, but things vary).

    If you also tell us which phones you intended or try to use, it might help in narrowing down the options for you.

  3. #3
    Registered User
    Join Date
    Aug 2014
    Posts
    6

    Re: Receiving SMS from mobile to PC with USB CABLE

    Thank You Petrib for answering :-)

    Is there any way I can do this using sockets?
    Because I want to do it for any kind of phone I actually want to access the inbox of the phone and I don't want to write a server-client app the program should only be on the computer side.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,772

    Re: Receiving SMS from mobile to PC with USB CABLE

    Quote Originally Posted by Asmaa View Post
    Is there any way I can do this using sockets?
    Because I want to do it for any kind of phone I actually want to access the inbox of the phone and I don't want to write a server-client app the program should only be on the computer side.
    Sockets unlikely help here. So far Petrib (and me too) interpreted your question as you wanted to use a given/chosen phone as a GSM modem for receiving messages. That is sometimes possible, even without developing anything on the phone side, there are AT commands for configuring the phone to store SMS-s on the SIM card, and there are AT commands to read messages from the SIM card.
    However once the messages are received by the phone, and stored internally, no AT commands can reach them. Then come the various SDK-s and API-s, which may enable reaching the Inbox. These are proprietary libraries, usually Windows-only, and have nothing to do with socket-level access. The PC Connectivity SDK and the PC Suite API were such tools, but their availability is highly questionable. They are not listed on http://developer.nokia.com/resources/downloads any more, and an old download link I found in http://developer.nokia.com/community...aries-to-Dev-C (post #3) seems to be defunct, the site had multiple reorganizations in the past years.

  5. #5
    Registered User
    Join Date
    Aug 2014
    Posts
    6

    Re: Receiving SMS from mobile to PC with USB CABLE

    Okay, SO I think the only possibly left here is to use AT commands.
    So, it means that I can read an sms that was received on the phone while the phone was connected to the laptop and connected to the hyperterminal?
    If this is possible can you give some helpful links to how to start a connection on hyperterminal when our phone is connected using USB CABLE or BLUETOOTH.
    And then how can we configure the phone to receive sms on the sim card?

    Thank You

  6. #6
    Registered User
    Join Date
    Aug 2014
    Posts
    6

    Re: Receiving SMS from mobile to PC with USB CABLE

    hey, I just followed the things you told. I installed hyperterminal and I used my samsung galaxy s4 and connected it with my laptop with usb cable, I installed the drivers and connected to s4 as modem. It shows connected on hyperterminal. But whenever I send any command for example.

    AT
    and press enter. I don't get any response I tried everything I configured the connection according to the modem configurations and when I go to.

    Control Panel > Phone and Modems > Query

    I get success answer for all the commands.
    Then why ain't I getting any response on hyperterminal?
    I checked the user guide of samsung s4 and it supports AT commands. And it have a GSM Modem as well.
    Last edited by Asmaa; 2014-08-15 at 14:31.

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,570

    Re: Receiving SMS from mobile to PC with USB CABLE

    Are you connecting with HyperTerminal to the correct port?

  8. #8
    Registered User
    Join Date
    Aug 2014
    Posts
    6

    Re: Receiving SMS from mobile to PC with USB CABLE

    Yes, I checked the port in phone and modems it was COM3, And that is the same I am using for the connection. I tried to change the port but the hyperterminal gave an error.

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,772

    Re: Receiving SMS from mobile to PC with USB CABLE

    Honestly said, Nokia (and now Microsoft) does not manufacture too many Samsung Galaxy devices. You may want to have a look at the XDA forums.

  10. #10
    Registered User
    Join Date
    Aug 2014
    Posts
    6

    Re: Receiving SMS from mobile to PC with USB CABLE

    Okay, Thank you!

Similar Threads

  1. from mobile to PC Via Cable
    By iworktech_kiran in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-09-18, 12:07
  2. Communication between Mobile and PC with USB cable
    By maan_navtej in forum Symbian
    Replies: 0
    Last Post: 2007-07-05, 12:38
  3. Serial Comunication mobile-PC through cable
    By jlanza in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-08-03, 18:37
  4. About connect mobile by using dku-2 cable
    By suyouxin in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2005-02-02, 04:50
  5. SMS thru C++. What to buy for it??? Mobile??? and Cable???
    By pegsnpops in forum General Messaging
    Replies: 1
    Last Post: 2003-09-18, 15:34

Posting Permissions

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