Skip to contentSkip to conversation

How can i change MTU to max value?

Bluez-devel Rupesh Gujare 2 participants 2 messages Nov 7, 2006 – Nov 13, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello all,
I am programming for transferring data between my Linux box and mobile phone. But while transferring large files it takes quiet a few time.
I want to achieve maximum data transfer rates without affecting reliability of system. I am using "object push service" for this. And tried changing default MTU size in /usr/include/openobex/obex_const.h But got same results.
Can anyone tell me how can i increase MTU size? Or is there any limitation on it? (I think Max. MTU size can be 64k).
Any help or suggestions are appreciated.
(partial) hcidump looks something like this:-

     L2CAP(d): cid 0x0040 len 7 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 8 pf 0 ilen 3 fcs 0x80
< ACL data: handle 1 flags 0x02 dlen 678
< ACL data: handle 1 flags 0x01 dlen 338
    L2CAP(d): cid 0x0046 len 1012 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 1007 fcs 0x5a
< ACL data: handle 1 flags 0x02 dlen 25
    L2CAP(d): cid 0x0046 len 21 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 17 fcs 0x5a
Quoted 4 lines

HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 1 flags 0x02 dlen 11

    L2CAP(d): cid 0x0040 len 7 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 8 pf 0 ilen 3 fcs 0x80
< ACL data: handle 1 flags 0x02 dlen 678
< ACL data: handle 1 flags 0x01 dlen 338
    L2CAP(d): cid 0x0046 len 1012 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 1007 fcs 0x5a
< ACL data: handle 1 flags 0x02 dlen 25
    L2CAP(d): cid 0x0046 len 21 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 17 fcs 0x5a
Quoted 4 lines

HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 1 flags 0x02 dlen 11

    L2CAP(d): cid 0x0040 len 7 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 8 pf 0 ilen 3 fcs 0x80
< ACL data: handle 1 flags 0x02 dlen 678
< ACL data: handle 1 flags 0x01 dlen 338
    L2CAP(d): cid 0x0046 len 1012 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 1007 fcs 0x5a
< ACL data: handle 1 flags 0x02 dlen 25
    L2CAP(d): cid 0x0046 len 21 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 17 fcs 0x5a
Quoted 4 lines

HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 1 flags 0x02 dlen 11

    L2CAP(d): cid 0x0040 len 7 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 8 pf 0 ilen 3 fcs 0x80
< ACL data: handle 1 flags 0x02 dlen 678
< ACL data: handle 1 flags 0x01 dlen 338
    L2CAP(d): cid 0x0046 len 1012 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 1007 fcs 0x5a
< ACL data: handle 1 flags 0x02 dlen 25
    L2CAP(d): cid 0x0046 len 21 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 17 fcs 0x5a
Quoted 4 lines

HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 1 flags 0x02 dlen 11

    L2CAP(d): cid 0x0040 len 7 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 8 pf 0 ilen 3 fcs 0x80
< ACL data: handle 1 flags 0x02 dlen 678
< ACL data: handle 1 flags 0x01 dlen 338
    L2CAP(d): cid 0x0046 len 1012 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 1007 fcs 0x5a
< ACL data: handle 1 flags 0x02 dlen 25
    L2CAP(d): cid 0x0046 len 21 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 8 pf 0 ilen 17 fcs 0x5a
Quoted 4 lines

HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 1 flags 0x02 dlen 11

    L2CAP(d): cid 0x0040 len 7 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 8 pf 0 ilen 3 fcs 0x80

< ACL data: handle 1 flags 0x02 dlen 678
< ACL data: handle 1 flags 0x01 dlen 338

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi,

Quoted 9 lines

I am programming for transferring data between my Linux box and
mobile phone. But while transferring large files it takes quiet a few time.
I want to achieve maximum data transfer rates without affecting
reliability of system. I am using "object push service" for this. And tried changing default MTU size in /usr/include/openobex/obex_const.h
But got same results.
Can anyone tell me how can i increase MTU size? Or is there any
limitation on it? (I think Max. MTU size can be 64k).

the maximum MTU is used by default.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel