×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    20

    Angry Sending an sms to a gsm modem

    hi.
    i want to send an sms to a gsm modem connected to my computer(let's say at COM2).so i first open a connection to the modem:

    MessageConnection sconn = (MessageConnection)
    Connector.open("sms://:COM2");..THIS IS WHAT I WANT TO SET A NUMBER VALUE e.g 3333 THAT WILL MATCH THE PORT NUMBER,HOW DO I DO THAT?)

    TextMessage msg =(TextMessage) sconn.newMessage(
    MessageConnection.TEXT_MESSAGE); msg.setAddress("sms://+254712893128:50000");
    msg.setPayloadText( "Hello World" );
    sconn.send(msg);

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Sending an sms to a gsm modem

    Hello ali30,

    unfortunately that is not possible to achieve with the sms protocol.

    For making a connection for data transfer, I would say that you might have better luck for example with Bluetooth instead.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. sending MMS using AT commands and GSM Modem
    By sriramnaga in forum General Messaging
    Replies: 10
    Last Post: 2010-11-24, 07:08
  2. Sending MMS using AT commands via GPRS modem
    By yamarules in forum General Messaging
    Replies: 0
    Last Post: 2008-02-02, 20:48
  3. GSM MODEM SMS SENDING
    By ABHAYM in forum General Messaging
    Replies: 1
    Last Post: 2006-09-01, 13:14
  4. sending MMS from PC to mobile using GPRS Modem
    By widiyantosg in forum General Messaging
    Replies: 0
    Last Post: 2004-06-14, 04:19
  5. sending picture message via gsm modem
    By kchin in forum Smart Messaging
    Replies: 1
    Last Post: 2002-11-28, 11:04

Posting Permissions

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