3
« on: May 12, 2005, 09:25:21 am »
Hi,
I have two SL-C3000 with Socket Rev H bt card.
I established "manually" a PAN connection:
C3000#1: pand --listen --role GN
C3000#2: pand –connect MACaddrC3000#1
ifconfig bnep0 192.168.0.101
C3000#1: ifconfig bnep0 192.168.0.100
The problem is a communication performance / freezing after a while:
C3000#1: ping -s 1024 192.168.0.101
1032 bytes from 192.168.0.101: icmp_seq=0 ttl=64 time=4464.8 ms
1032 bytes from 192.168.0.101: icmp_seq=1 ttl=64 time=4285.7 ms
1032 bytes from 192.168.0.101: icmp_seq=2 ttl=64 time=5131.8 ms
1032 bytes from 192.168.0.101: icmp_seq=3 ttl=64 time=6461.1 ms
ping: sendto: Network is unreachable
However C3000#2 still show the connection:
C3000#2: pand -l
bnep0 MACaddrC3000#1
When I tried to have more input with hcidump, syslog, I notice that ping response time decreased, meaning that with a takeCPUBusy.sh script I was able to reduce the response time below 100ms:
C3000#2: cat files of a directory in loop
C3000#1: ping -s 1024 192.168.0.101
PING 192.168.0.101 (192.168.0.101): 1024 data bytes
1032 bytes from 192.168.0.101: icmp_seq=0 ttl=64 time=129.2 ms
1032 bytes from 192.168.0.101: icmp_seq=1 ttl=64 time=75.5 ms
1032 bytes from 192.168.0.101: icmp_seq=2 ttl=64 time=74.5 ms
1032 bytes from 192.168.0.101: icmp_seq=3 ttl=64 time=67.7 ms
1032 bytes from 192.168.0.101: icmp_seq=4 ttl=64 time=65.2 ms
1032 bytes from 192.168.0.101: icmp_seq=5 ttl=64 time=70.2 ms
...
I tried to reduce the speed rate from 230400 to 115200 on /etc/bluetooth/uart, without success (i.e. hciattach failed with BCSP timout error).
what else can I change try?
Any explanation, tip or any kind of help is welcome!
Following is dump of log that may be interessting:
# hciconfig -a
hci0: Type: UART
BD Address: 00:02:C7:42:B0:22 ACL MTU: 340:4 SCO MTU: 64:10
UP RUNNING PSCAN ISCAN
RX bytes:5828 acl:29 sco:0 events:55 errors:0
TX bytes:10399 acl:44 sco:0 commands:15 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'zaurus'
Class: 0x120114
Service Classes: Networking
Device Class: Computer, Palm
HCI Ver: 1.1 (0x1) HCI Rev: 0x1bb LMP Ver: 1.1 (0x1) LMP Subver: 0x1bb
Manufacturer: Cambridge Silicon Radio (10)
syslog:
Feb 2 12:45:31 localhost kernel: bcsp_recv: Error in BCSP hdr checksum
Feb 2 12:45:32 localhost kernel: bcsp_recv: Short BCSP packet
Feb 2 12:45:32 localhost kernel: bcsp_recv: Error in BCSP hdr checksum
Feb 2 12:45:32 localhost kernel: bcsp_recv: Short BCSP packet
Feb 2 12:45:33 localhost kernel: bcsp_recv: Short BCSP packet
Feb 2 12:45:33 localhost kernel: bcsp_recv: Error in BCSP hdr checksum
Feb 2 12:45:34 localhost last message repeated 7 times
Feb 2 12:45:34 localhost kernel: bcsp_recv: Out-of-order packet arrived, got 7 expected 6
Feb 2 12:45:34 localhost kernel: bcsp_recv: Out-of-order packet arrived, got 0 expected 6
Feb 2 12:45:34 localhost kernel: bcsp_recv: Out-of-order packet arrived, got 1 expected 6
Feb 2 12:45:35 localhost kernel: bcsp_recv: Error in BCSP hdr checksum
Feb 2 12:45:36 localhost last message repeated 7 times
Feb 2 12:45:36 localhost kernel: bcsp_recv: Out-of-order packet arrived, got 7 expected 6
Feb 2 12:45:36 localhost kernel: bcsp_recv: Out-of-order packet arrived, got 0 expected 6
Feb 2 12:45:36 localhost kernel: bcsp_recv: Out-of-order packet arrived, got 1 expected 6
Feb 2 12:45:37 localhost kernel: bcsp_recv: Error in BCSP hdr checksum
Feb 2 12:45:37 localhost last message repeated 2 times