Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    62

    MIDlet receiving SMSes from specific mobile number instead of port number

    Hello everyone,

    From what I understand a MIDlet can only receive SMSes sent to a specific port number it is listening on, whereas normal (port 0) SMSes are directed to the handset’s Inbox. Is there any way for a MIDlet to receive SMSes based on the sender’s phone number, instead of port number?

    The reason I'm asking is because the MIDlet I'm working on needs to receive SMSes sent from an SMS Modem, which doesn't allow me to specify the port number.

    Thanks

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

    Re: MIDlet receiving SMSes from specific mobile number instead of port number

    No can do, I'm afraid. You need to switch the SMS Modem to something else (so that you can send SMS to a specific port), or you need to change the target phones to something else (that does not require you to use J2ME so that you can access or intercept port 0 SMS), or you need to set up a different mechanis to communicate that's not dependent on SMS (e.g., HTTP and polling by the phones).

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,808

    Re: MIDlet receiving SMSes from specific mobile number instead of port number

    You may want to check if the SMS modem supports something like "PDU mode". That way you could specify the port as I remember.

  4. #4
    Registered User
    Join Date
    Feb 2011
    Posts
    62

    Re: MIDlet receiving SMSes from specific mobile number instead of port number

    Many thanks for the replies petrib and wizard_hu_. It seems as if the SMS modem doesn't support PDU mode either, so I'll have to use packet-data instead of SMS in the J2ME application.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: MIDlet receiving SMSes from specific mobile number instead of port number

    Quote Originally Posted by Infms View Post
    Hello everyone,

    From what I understand a MIDlet can only receive SMSes sent to a specific port number it is listening on, whereas normal (port 0) SMSes are directed to the handset’s Inbox. Is there any way for a MIDlet to receive SMSes based on the sender’s phone number, instead of port number?

    The reason I'm asking is because the MIDlet I'm working on needs to receive SMSes sent from an SMS Modem, which doesn't allow me to specify the port number.

    Thanks
    Here is work around, on the server side - instead of putting a SMS Modem, put a basic J2me phone - deploy a midlet on this phone - which connects to the server and keeps a socket open to listen for commands over WiFi / USB, and then send the required SMS on specific port numbers to the clients.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  6. #6
    Registered User
    Join Date
    Feb 2011
    Posts
    62

    Re: MIDlet receiving SMSes from specific mobile number instead of port number

    Interesting idea! I will definitely look into this. Thanks.

Similar Threads

  1. Receiving SMS Port Number
    By NaSSaR in forum General Messaging
    Replies: 0
    Last Post: 2008-08-31, 10:36
  2. SMS Port number of device for receiving SMS using J2ME
    By Huddedar in forum General Messaging
    Replies: 1
    Last Post: 2007-06-22, 18:37
  3. Port number for sending and receiving SMS
    By pmramprasath in forum Mobile Java General
    Replies: 5
    Last Post: 2007-01-23, 09:48
  4. How to retrieve the mobile number or home number or work number
    By Rameshwari in forum Mobile Java General
    Replies: 1
    Last Post: 2006-08-19, 00:17
  5. SMS - SMSHeader - Send Number For InBox SMSes?
    By periakaruppan in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-08-11, 15:15

Posting Permissions

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