J2ME Serial connection timeout
From: yehoram (y_shenhar_at_yahoo.com)
Date: 12/30/03
- Next message: Ryan Stewart: "Re: SSCCE 1st draft.."
- Previous message: Andrew Thompson: "Re: animation"
- Next in thread: Darryl L. Pierce: "Re: J2ME Serial connection timeout"
- Reply: Darryl L. Pierce: "Re: J2ME Serial connection timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2003 14:06:13 -0800
Hello,
I am writing a j2me location based application that reads GPS data
from a serial connection (it is MIDP2.0 app).
I ran into the following problem:
I am using a CommConnection connection type to open input stream to a
serial port. I use something like
commConnection = (CommConnection)
Connector.open("comm:2;baudrate=4800", Connector.READ, timeout);
to open the connection. However, when timeout = true, i don't seem to
get any timeout exceptions, even after 60 seconds. (I am currently
running only on the WTK2.0 emulator).
I would like to have exception thrown if nothing comes from the serial
within a certain time period.
Any help would be appreciated,
Yehoram Shenhar
- Next message: Ryan Stewart: "Re: SSCCE 1st draft.."
- Previous message: Andrew Thompson: "Re: animation"
- Next in thread: Darryl L. Pierce: "Re: J2ME Serial connection timeout"
- Reply: Darryl L. Pierce: "Re: J2ME Serial connection timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|