I need to write a midlet that will listen for an incoming message from the comm port on a Motorola i355 iden phone. I don`t care if the midlet is open or closed when the message comes in. Whichever would be fastest would be best. I'm using the phone to process a message and send another message back out through the comm port to a connected machine. I also don't have control over the message that is coming from the machine that the phone will be connected to. This will only be my 2nd J2ME application so I'm very new at this.
I have seen plenty of examples of using the push registry to do this for a socket and datagram (I don`t even know what a datagram is), but nothing for use with a comm connection. If anyone can steer me in the right direction, it would be greatly appreciated. Thanks.
I suppose you could write one using the comm port - it is just looking for a connection to associate with the AMS entry. The best way to find out would be to try, I think, in the emulator.
Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Joined: May 10, 2006
I'm really new to this and that's another question I have. I am using the Motorola iDen SDK Emulator. Where do I set up a connection to the comm port? Without doing anything to the emulator setup, I get a "Failed to open serial port!" error. So i guess I have a few more problems before I can actually test the Push Registry. [ August 24, 2006: Message edited by: Monica Young ]
Not being familiar with the Motorola emulator, I wouldn't know off the top of my head. I can certainly go look at Sun's basic emulator when I get home (or perhaps my SprintPCS variant) and see if there's something in there that might give me an idea of what to suggest.. but I am also sure that Motorola has a forum that you could check for similar solutions.
subject: J2ME question: Can I do this with the Push Registry