Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Messaging

  • 27-02-2007 12:53PM
    #1
    Closed Accounts Posts: 488 ✭✭


    Hello,

    Has anyone have any success of sending text messages through the a pc using a mobile connected to a mobile via cable in java.

    Any help or good sites to help me out.
    Tried different sites but to no avail.

    Thank you


Comments

  • Registered Users, Registered Users 2 Posts: 4,188 ✭✭✭pH


    Some mobile phone manufacturers have proprietary PC software which may also have an API that you can use.

    The standard way to do this is to get your mobile connected to the PC as a GSM modem. Most mobile phones have drivers for this and you can connect using a physical cable, bluetooth IR etc.
    http://www.developershome.com/sms/howToSendSMSFromPC.asp

    Test that this shows up as a serial port on windows (COM1/2/3) and you should be now able to use a terminal prog to test this and send text messages using +AT commands
    http://www.developershome.com/sms/howToUseHyperTerminal.asp

    here's a sample from the site above:
    AT
    OK
    AT+CMGF=1
    OK
    AT+CMGW="+85291234567"
    > A simple demo of SMS text messaging.
    +CMGW: 1
    
    OK
    AT+CMSS=1
    +CMSS: 20
    
    OK
    

    Now then all you need to do is recreate the serial port IO in Java and you should be there.


Advertisement