wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes intersept sms message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "intersept sms message" Watch "intersept sms message" New topic
Author

intersept sms message

denis denisu
Greenhorn

Joined: Feb 08, 2007
Posts: 1
Does anybody can help me to decide this problem?

I am sending an sms message from PLC to mobile phone using gsm modem Siemens TC35i. Sms message comes on mobile phone, but application can not intercept it, becouse application do know on which port sms message comes. I can not send an sms message from PLC on specified sms port using AT commands.

I need to intercept incoming sms message by application!
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hello,
I am answering with having doubts about your exact problem, but let me assume that you want to get the SMS sent to the phone to a particular application, what you have to do is, register a PushRegistry so that it will automatically trigger the application which you want when a SMS comes to the phone, here you have to specify a port, but if you can't determine a port, you will not be able to do it. Hope this helps you in some way. Regards.


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
Ransika is right. You should use the Push Registry.

See http://developers.sun.com/techtopics/mobility/midp/articles/pushreg/

To register a SMS MIDlet handler over port X enter a line like the one below in the JAD or Manifest file (JAD is usually a better place).



<entry> is an index from 1 to the number of Push entries in the JAD/Manifest ie MIDlet-Push-1, MIDlet-Push-2


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"denis denisu"

Please click on the My Profile link above to change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Pradeep Gudipati
Greenhorn

Joined: Mar 09, 2006
Posts: 16
Hi I guess the problem here is not with the app receiving the problem is with the sending, is it possible to send an sms from a gsm modem with the port number (+112233434:1212 where 1212 is the port number )???



thanks
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hello,
Well, I have no prior experience with GMS modems, but I guess, since at the end of the day it is creating a Message connection to send the SMS right? so in that case I guess you can surely specify the port. Hope this helps.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: intersept sms message
 
Similar Threads
JMS/SMS problem
How to specify the SMS port number for application using GSM modem
send & receive sms using my Nokia3310
WMA MIDlets, how do you receive sms without a port no.
WMA MIDlets, how do you receive sms without a port no.