| Reply | « Previous Thread | Next Thread » |
|
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. |
| DieterTschanz |
| View Public Profile |
| Find all posts by DieterTschanz |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|