Bluetooth connection problem

Hello togehter!

I have a problem with a bluetooth connection in my midlet application.

I open my connection as follows:

connection = (javax.microedition.io.StreamConnection) Connector.open(url);

Then I open the input stream and the reader as follows:

is = connection.openInputStream();

reader =new InputStreamReader(is);

Everythings works fine for around 15 minutes. I am reading from that connection (from a gps receiver). But then the reader just stops reading.(No error, but the program just doesn't go on.)

Does anybody have an idea why?

What could be?

I mean the gps receiver is sending.

I tried to close the everything and reopen it after 10 min, but when I say connection.close(), the program just doesn't go on. (The reader and the input stream is already closed.)

I would appreciate any help.

Thanks so much.

Markus

[951 byte] By [Markus1982a] at [2007-11-27 3:36:22]
# 1

Well, I dont know but I remember thyat one person said that bluetooth became inactive when using the gps. I dont know is this may apply for your case but on somehow it seemed that there were a conflict between both of them.

No I dont know if you are receiving the gps position via bluetooth from another device or are you sendind via bluetooth from a gps on the same device.

MelGohana at 2007-7-12 8:39:36 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Hello!Thanks for your reply.I have a cell (Nokia 6230i) and want to read from a GPS reveicer (Navilock BT-328).Any ideas how can prevent that it stops?Thanks a lot.Markus
Markus1982a at 2007-7-12 8:39:36 > top of Java-index,Java Mobility Forums,Java ME Technologies...