zephyriot / zep-jira14

0 stars 0 forks source link

Bluetooth IPSP sample : Too small user data size #1738

Closed nashif closed 7 years ago

nashif commented 7 years ago

Reported by Dawei Wu:

Details: This issue was not reproduced in master branch , but in RC4 serial console output:

shell> Run IPSP sample[bt] [WRN] set_static_addr: Using temporary static random address
[bt] [INF] show_dev_info: Identity: fb:e1:ce:b0:f8:cc (random)
[bt] [INF] show_dev_info: HCI: version 4.2 (0x08) revision 0x0000, manufacturer 0xffff
[bt] [INF] show_dev_info: LMP: version 4.2 (0x08) subver 0xffff
[bt] [WRN] bt_pub_key_gen: ECC HCI commands not available
Bluetooth initialized
Advertising successfully started
Starting to waitConnected
UDP IPv6 received 1 bytesReceived 1 bytes, sending 1 bytesSent 1 bytesUDP IPv6 received 6 bytesReceived 6 bytes, sending 6 bytesSent 6 bytesUDP IPv6 received 4 bytesReceived 4 bytes, sending 4 byd
d: Too small user data size

Test Env: host: Ubuntu 16.04,default kernel 4.4.0-21, CSR USB dongle Zephyr revision : rc4/3d2893cf85d51ceca04aa3bec2dd5fc77625ff81 Arduino101 + HCI compatible BLE firmware + IPSP sample node Steps:

Flash FW following https://wiki.zephyrproject.org/view/Arduino_101#Bluetooth_firmware_for_the_Arduino_101

Flash IPSP sample app ,make sure you have ZEPHYR_GCC_VARIANT=zephyr and ZEPHYR_SDK_INSTALL_DIR=

    cd <zephyr code dir> && source zephyr-env.sh
    cd samples/bluetooth/ipsp
    make pristine && make flash BOARD=arduino_101

You will get the MAC addr from serial console or 'hcitool scan' from host , name is 'Test IPSP node'

From host , the connect commands are :

    # modprobe bluetooth_6lowpan
    # echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable
    # hcitool lecc --random <arduino101 MAC addr>
    # echo "connect <arduino101 MAC addr> 2" > /sys/kernel/debug/bluetooth/6lowpan_control

Run 'ifconfig' from host ,see bt0 there

set ipv6 addreess : # ifconfig bt0 inet6 add 2001:0db8::2/64

run echo-client from host # echo-client -i bt0 2001:db8::1

Expected Result: No timeout out Actual Result: timeout in the output

Binding to 2001:db8::2
....Timeout while waiting idx 4 len 1232
Timeout while waiting idx 5 len 1
Timeout while waiting idx 6 len 256

(Imported from Jira ZEP-1890)

nashif commented 7 years ago

by Mark Linkmeyer:

Anas Nashif and Andrei Laperie , do you agree with the current priority setting of high for this bug? As high priority, it's currently a 1.7 release-blocking bug.