You Are Here:

Community: Developer Discussion Boards

#1 Old bluetooth inputStream blocking 6260 - 2005-10-30, 13:30

Join Date: Oct 2005
Posts: 19
erviins
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia