×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Sending PDU SMS with port for Midlet

    Hi,

    I use a GSM Modem on my PC to send SMS to Nokia phones.
    I do it in PDU mode and all is working well.
    I have a Midlet on my Nokia listening on a particuliar port.

    I would like to send SMS to the Midlet so I need to specify the port number in the PDU encoding but I do not know how...?

    Any suggestion ?
    TIA
    FRED

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Re: Sending PDU SMS with port for Midlet

    Hi,

    According to GSM 03.40 and with the help of PDUSPY.EXE I made my PDU containing the destination port I want...

    But my MIDlet do not receive the incoming sms on the registered port. I test the server side by using a well-known port instead of my own and it work well. My jad file seems to be correct :

    MIDlet-Name: Yoplait
    MIDlet-Version: 1.0
    MIDlet-Vendor: Praxys
    MicroEdition-Profile: MIDP-2.0
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-Jar-URL: Yoplait.jar
    MIDlet-Jar-Size: 23049
    MIDlet-Icon: /icone.gif
    MIDlet-Push-1: sms://:16666, YoplaitMidlet, *
    MIDlet-Permissions: javax.microedition.io.PushRegistry, javax.wireless.messaging.sms.receive, javax.microedition.io.Connector.sms, javax.wireless.messaging.sms.send
    MIDlet-1: YoplaitMidlet, , YoplaitMidlet

    And the MIDlet code looks like :

    try {
    sconn = ( MessageConnection )Connector.open( "sms://:16666" ) ;
    sconn.setMessageListener( this ) ;
    connections = PushRegistry.listConnections(true);
    } catch( Exception e ) {
    e.printStackTrace( ) ;
    }

    any suggestions ?
    TIA
    FRED

Similar Threads

  1. Replies: 1
    Last Post: 2005-12-01, 23:57
  2. Sending SMS in PDU mode
    By josephtkc in forum Symbian
    Replies: 2
    Last Post: 2004-05-26, 17:59
  3. Sending sms from sms gateway on a specific port
    By _KLiFF in forum Smart Messaging
    Replies: 2
    Last Post: 2004-03-16, 11:38
  4. Port number for sending SMS?
    By stanleylui in forum General Messaging
    Replies: 5
    Last Post: 2003-12-17, 06:06
  5. Error sending SMS
    By jorge_c in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-07, 11:53

Posting Permissions

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