You Are Here:

Community: Developer Discussion Boards

#1 Old 6600 J2ME BT send issue...Please HELP! - 2004-11-24, 17:48

Join Date: Jul 2004
Posts: 3
galipka
Offline
Registered User
I'm working on a simple BT send-recieve library and I have an annoying problem with BT when running my lib on a 6600 phone:

I'm trying to connect a 6600 and 7610...When I created L2CAPServerNotifier object at 7610 side (server) and connected 6600 to it, I have no problem with send/receiving packets...
But when 6600 is the server, something strange happens:

6600 can receive packets from 7610 successfuly but
when it sends a packet to 7610, 7610 receives an invalid packet!
No error is given, just few first bytes are correct and the rest is zero. Even this is a 48 bytes (=MINIMUM_MTU_SIZE) packet!!!
What can be wrong?

Please help!
Reply With Quote

#2 Old 2004-11-26, 10:38

Join Date: Jul 2004
Posts: 3
galipka
Offline
Registered User
Ok I solved the problem. I think it is an implentation issue on 6600.
The reason behind my problem is that 6600 BT library uses your first send packet's size as its internal send buffer size.
This means if you send a 8 byte packet as the very first one and then a 48 byte packet, your second buffers 40 bytes at the end will be lost/ignored.
This is a silly mistake IMO, so we all sould keep our send/recv buffers at fixed sizes for good
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