| Reply | « Previous Thread | Next Thread » |
|
Hi,
I am developing Bluetooth application on Mobile phone(Nokia 6260) that connects to J2SE server. In Midlet i use btspp connection, but on J2SE side i use javax.comm and receiving connections on emulated com port. When exchanging simple messages with phone and server, everything is ok, but when there is need for transfering large amounts of data(images), then i got errors (Monty Thread error and something like java-comms@324.. eroor). But sometimes there are not eroor. I started to investigate this problem and found - http://discussion.forum.nokia.com/fo...tooth+blocking As i understand that this is issue in some Nokia phones. Because i tested my application with SE K750i and there was no problems at all. But how can I avoid this issue..? I have one solution, but it doesn`t work while(in.available() == 0){ // waiting for available input stream } input.read() //read data.. or while(true) { if(in.available() > 1){ in.read(); break; } } Maybe you can help and give solution how I can solve this problem. One solution would be to use L2CAP connections, butit would be hard to remake all my application, because it is all based on streams. And i don`t know how to accept L2CAP connection with javax.comm.. Thanks for any help. Ervins |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| corrective patch for 6260 bluetooth bug? | daytripper1021 | Bluetooth Technology | 1 | 2005-03-15 19:11 |
| 6260 Bluetooth *RE*connect to palm T3 | kwakas | Bluetooth Technology | 2 | 2005-02-17 10:23 |
| 6260 Bluetooth vs. Siemens Bluetooth Car Kit | Foris | Bluetooth Technology | 0 | 2005-01-11 06:54 |
| Inputstream read method is blocking | gnhansen | Bluetooth Technology | 0 | 2004-09-29 15:44 |
| Nokia 7650 support Bluetooth audo? | ovjo12 | Bluetooth Technology | 5 | 2003-07-17 19:50 |