File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

intersept sms message

denis denisu

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
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.


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 - See what all the buzz is about ...
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

"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.



Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Pradeep Gudipati

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 )???

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
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.
I agree. Here's the link:
subject: intersept sms message
It's not a secret anymore!