You Are Here:

Community: Developer Discussion Boards

#1 Old Losing data over Bluetooth connection between 6600 and linux box - 2004-06-17, 11:56

Join Date: Feb 2004
Posts: 1
DieterTschanz
Offline
Registered User
Hello,

i have an j2me application running on a 6600 which communicates over bluetooth with a linux computer. My problem is that i don't receive all of the data send from the 6600 to the linux box.

Code nokia 6600:

public void transmit(Packet aPacket) throws Exception{
ByteArrayOutputStream os = new ByteArrayOutputStream();
byte[] outer = null;
os.write(aPacket.getHeader().membersToData());
os.write(aPacket.getPayload());
outer = os.toByteArray();

// No exception gets thrown here...
if(outer.length>connection.getTransmitMTU()){
throw new Exception("MTU:"+connection.getTransmitMTU());
}
connection.send(outer);
// outer.lenth is 153 bytes
throw new Exception("TR:"+outer.length);
}


On the linux box i receive just 66 bytes (expecting 153). Using hcidump shows:

> ACL data: handle 0x0001 flags 0x02 dlen 70
L2CAP(d): cid 0x40 len 66 [psm 4097]
. . . . . . p a s s . . . ) c h . f h s
o . i 3 t . c s b . m g e . i n t e r a
c t i o n . T o u r V a l u e . . . . 2
0 0 4 0 5 0

The data received is the same as the data send from the 6600, except the length that is wrong.

Does anyone encountered similar problems? I start to believe that this is a bug in the Symbian OS....

Thanks for any information that might help.
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

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