Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User Infms's Avatar
    Join Date
    Feb 2011
    Posts
    55
    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
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,412
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 Infms's Avatar
    Join Date
    Feb 2011
    Posts
    55
    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 im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    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
    (Poster of the Month -Dec'12)
    Follow me on my blog for Innovative Mobile Apps

  6. #6
    Registered User Infms's Avatar
    Join Date
    Feb 2011
    Posts
    55
    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, 08: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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved