| Reply | « Previous Thread | Next Thread » |
|
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! |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|