We are using AM335X based custom board and CC2564MODA as controller. We have followed following steps:
1. change value from 1 to 0 in this file /var/lib/systemd/rfkill/platform-48022000.serial:bluetooth
2.
config-pin P9.24 uart
config-pin P9.26 uart
echo 41 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio41/direction
echo 0 > /sys/class/gpio/gpio41/value
sleep 0.01
echo 1 > /sys/class/gpio/gpio41/value
3
hciattach /dev/ttyS1 texas 3000000
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
Loaded BTS script version 1
texas: changing baud rate to 3000000, flow control to 1
Device setup complete4. Service pack : downloaded service pack TIInit_6.7.16.bts5. bluetooth connection to mobile was successful. We are using bluetooth pan profile. So on connection we enabled internet service. We are provideing internet from our device to mobile over bluetooth.
But later it gives failure as follows:Jul 24 09:47:01 arm kernel: [ 513.886958] Bluetooth: received HCILL_WAKE_UP_IND in state 2
Jul 24 09:47:01 arm kernel: [ 513.893837] Bluetooth: Data length is too large
Jul 24 09:47:01 arm kernel: [ 513.898526] Bluetooth: Unknown HCI packet type 52
Jul 24 09:47:01 arm kernel: [ 513.905062] Bluetooth: Unknown HCI packet type 00
Jul 24 09:47:01 arm kernel: [ 513.909886] Bluetooth: Unknown HCI packet type 36
Jul 24 09:47:01 arm kernel: [ 513.916478] Bluetooth: Data length is too large
Jul 24 09:47:01 arm kernel: [ 513.921125] Bluetooth: Unknown HCI packet type 53
Jul 24 09:47:01 arm kernel: [ 513.927661] Bluetooth: Unknown HCI packet type 00
Jul 24 09:47:01 arm kernel: [ 513.933498] Bluetooth: Unknown HCI packet type 46
Jul 24 09:47:01 arm kernel: [ 513.939336] Bluetooth: Data length is too large
Jul 24 09:47:01 arm kernel: [ 513.944987] Bluetooth: Unknown HCI packet type 4e
Jul 24 09:47:01 arm kernel: [ 513.950751] Bluetooth: Unknown HCI packet type 43
Jul 24 09:47:01 arm kernel: [ 513.956692] Bluetooth: Unknown HCI packet type 66
Jul 24 09:47:01 arm kernel: [ 513.961528] Bluetooth: Data length is too large
Jul 24 09:47:01 arm kernel: [ 513.967684] Bluetooth: Unknown HCI packet type 41
Jul 24 09:47:01 arm kernel: [ 513.973478] Bluetooth: Unknown HCI packet type 44
Jul 24 09:47:01 arm kernel: [ 513.979301] Bluetooth: Unknown HCI packet type 6a
Jul 24 09:47:01 arm kernel: [ 513.985177] Bluetooth: Data length is too large
Jul 24 09:47:01 arm kernel: [ 513.990856] Bluetooth: Unknown HCI packet type 49
Jul 24 09:47:01 arm kernel: [ 513.996766] Bluetooth: Unknown HCI packet type 44
Jul 24 09:47:01 arm kernel: [ 514.001815] Bluetooth: Unknown HCI packet type 98
Jul 24 09:47:01 arm kernel: [ 514.012112] Bluetooth: Data length is too large
Jul 24 09:47:01 arm kernel: [ 514.024103] Bluetooth: Unknown HCI packet type 49
Jul 24 09:47:01 arm kernel: [ 514.036089] Bluetooth: Unknown HCI packet type 44
Jul 24 09:47:01 arm kernel: [ 514.047839] Bluetooth: Unknown HCI packet type a8
Jul 24 09:47:01 arm kernel: [ 514.052771] Bluetooth: Data length is too large
Jul 24 09:47:01 arm kernel: [ 514.059427] Bluetooth: Unknown HCI packet type 49
Jul 24 09:47:01 arm kernel: [ 514.065375] Bluetooth: Unknown HCI packet type 44
Jul 24 09:47:01 arm kernel: [ 514.071345] Bluetooth: Unknown HCI packet type acWe tried using multiple baudrates ranging from 115200,230400,460800... 3000000. From all these 230400 worked well for us. Atleast we are able to connect and able to use internet service over bluetooth at rate of 170kbps.
Still we are getting 'Data length is too large' errors. What can be the cause.?