GeeCON Prague 2014*
The moose likes Java Micro Edition and the fly likes J2ME question: Can I do this with the Push Registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME question: Can I do this with the Push Registry" Watch "J2ME question: Can I do this with the Push Registry" New topic
Author

J2ME question: Can I do this with the Push Registry

Monica Young
Greenhorn

Joined: May 10, 2006
Posts: 9
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.
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Hmmmm.

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!
Monica Young
Greenhorn

Joined: May 10, 2006
Posts: 9
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 ]
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

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.
 
GeeCON Prague 2014
 
subject: J2ME question: Can I do this with the Push Registry