Part Number: CC2564
Other Parts Discussed in Thread: AM3354,
Tool/software: Linux
I have a custom board based on an AM3354 running Linux. UART1 is connected to a PAN1326B that is based in a CC2564B. I am having trouble increasing the baud rate; 460800 and lower works, 921600 and higher does not. I have multiple TIInit_6.7.16.bts files set to various baud rates. I am at a loss. Any ideas? Here's how I'm testing. I have added some diagnostics to hciattach.
root@am335x-neptune:~# cd /usr/matrix/sbin/
root@am335x-neptune:/usr/matrix/sbin# InitBluetooth.sh
model=HELIX9_CHIRP_GPS
root@am335x-neptune:/usr/matrix/sbin# hciconfig hci0 up
root@am335x-neptune:/usr/matrix/sbin# sdptool browse 78:FD:94:1A:E6:22
Failed to connect to SDP server on 78:FD:94:1A:E6:22: Operation now in progress
root@am335x-neptune:/usr/matrix/sbin# cat InitBluetooth.sh
#!/bin/bash
GPIO_FILE="/sys/class/gpio/gpio114/value"
if [ -f "$GPIO_FILE" ];
then
exit
else
get_model_id.sh
echo "PRETTY_HOSTNAME=$MATRIX_MODEL" > /etc/machine-info
echo 114 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio114/direction
echo 1 > /sys/class/gpio/gpio114/value
hciattach -s 115200 /dev/ttyO1 texas >x.txt 2>y.txt
systemctl start bluetooth.service
fi
root@am335x-neptune:/usr/matrix/sbin# cat x.txt
argv Init speed = 115200
init_uart dev = /dev/ttyO1, initial speed = 115200, final speed = 115200
set speed 115200
set_speed no error
texas_init
Try 0
---6.7.16.
Sending script to serial device
brf_size = 82
CCCCCCCCCCCCCCCCCCCCWRCSset speed 921600
set_speed no error
CCCCCCCWRCCCCWRCCWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRCCCCCCWRWRWRWRWRWRCCCCCCCCCCCCCCWRCCWRCCCWRCCCCWRWRWRCCCCCCWRCCWRCCWRCWRCWRCCCCCCWRCCWRCDEEP SLEEP
n = 0x00000000
set speed 921600
set_speed no error
texas_post
Added device hci0
Sending script to bluetooth socket
brf_size = 13
WRCCCCC
Initial baud rate = 115200, final baud rate = 921600
Device setup complete
root@am335x-neptune:/usr/matrix/sbin# cat y.txt
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 921600, flow control to 1
root@am335x-neptune:/usr/matrix/sbin# cd /lib/firmware/ti-connectivity/
root@am335x-neptune:/lib/firmware/ti-connectivity# cp TIInit_6.7.16.bts.460800 TIInit_6.7.16.bts
root@am335x-neptune:/lib/firmware/ti-connectivity# sync
root@am335x-neptune:/lib/firmware/ti-connectivity# reboot
root@am335x-neptune:~# cd /usr/matrix/sbin/
root@am335x-neptune:/usr/matrix/sbin# InitBluetooth.sh
model=HELIX9_CHIRP_GPS
root@am335x-neptune:/usr/matrix/sbin# hciconfig hci0 up
root@am335x-neptune:/usr/matrix/sbin# sdptool browse 78:FD:94:1A:E6:22
Browsing 78:FD:94:1A:E6:22 ...
Service Name: MAP MAS-iOS
Service RecHandle: 0x4f491132
Service Class ID List:
"Message Access - MAS" (0x1132)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"Message Access" (0x1134)
Version: 0x0100
Service Name: PAN Network Access Profile
Service Description: Network Access Point
Service RecHandle: 0x4f491116
Service Class ID List:
"Network Access Point" (0x1116)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 15
"BNEP" (0x000f)
Version: 0x0100
SEQ8: 0 6 0 dd
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"Network Access Point" (0x1116)
Version: 0x0100
Service Name: Wireless iAP
Service RecHandle: 0x4f4913b0
Service Class ID List:
UUID 128: 00000000-deca-fade-deca-deafdecacafe
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"Serial Port" (0x1101)
Version: 0x0100
Service Name: AVRCP Device
Service Description: Remote Control Device
Service RecHandle: 0x4f49110e
Service Class ID List:
"AV Remote" (0x110e)
"AV Remote Controller" (0x110f)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x0103
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0104
Service Name: AVRCP Device
Service Description: Remote Control Device
Service RecHandle: 0x4f49110c
Service Class ID List:
"AV Remote Target" (0x110c)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x0103
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0104
Service Name: Audio Source
Service RecHandle: 0x4f49110a
Service Class ID List:
"Audio Source" (0x110a)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 25
"AVDTP" (0x0019)
uint16: 0x0103
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"Advanced Audio" (0x110d)
Version: 0x0103
Service Name: Phonebook
Service RecHandle: 0x4f49112f
Service Class ID List:
"Phonebook Access - PSE" (0x112f)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 13
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"Phonebook Access" (0x1130)
Version: 0x0100
Service Name: Handsfree Gateway
Service RecHandle: 0x4f49111f
Service Class ID List:
"Handsfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 8
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Profile Descriptor List:
"Handsfree" (0x111e)
Version: 0x0106
Service Description: PnP Information
Service RecHandle: 0x4f491200
Service Class ID List:
"PnP Information" (0x1200)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x6672
encoding: 0x6a
base_offset: 0x110
code_ISO639: 0x6465
encoding: 0x6a
base_offset: 0x120
code_ISO639: 0x6a61
encoding: 0x6a
base_offset: 0x130
Browsing 78:FD:94:1A:E6:22 ...
Service Search failed: Invalid argument
root@am335x-neptune:/usr/matrix/sbin# cat x.txt
argv Init speed = 115200
init_uart dev = /dev/ttyO1, initial speed = 115200, final speed = 115200
set speed 115200
set_speed no error
texas_init
Try 0
---6.7.16.
Sending script to serial device
brf_size = 82
CCCCCCCCCCCCCCCCCCCCWRCSset speed 460800
set_speed no error
CCCCCCCWRCCCCWRCCWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRCCCCCCWRWRWRWRWRWRCCCCCCCCCCCCCCWRCCWRCCCWRCCCCWRWRWRCCCCCCWRCCWRCCWRCWRCWRCCCCCCWRCCWRCDEEP SLEEP
n = 0x00000000
set speed 460800
set_speed no error
texas_post
Added device hci0
Sending script to bluetooth socket
brf_size = 13
WRCCCCC
Initial baud rate = 115200, final baud rate = 460800
Device setup complete
root@am335x-neptune:/usr/matrix/sbin# cat y.txt
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 460800, flow control to 1
root@am335x-neptune:/usr/matrix/sbin# cd /lib/firmware/ti-connectivity/
root@am335x-neptune:/lib/firmware/ti-connectivity# cp TIInit_6.7.16.bts.921600 TIInit_6.7.16.bts
root@am335x-neptune:/lib/firmware/ti-connectivity# sync
root@am335x-neptune:/lib/firmware/ti-connectivity# reboot
root@am335x-neptune:~# cd /usr/matrix/sbin/
root@am335x-neptune:/usr/matrix/sbin# InitBluetooth.sh
model=HELIX9_CHIRP_GPS
root@am335x-neptune:/usr/matrix/sbin# hciconfig hci0 up
root@am335x-neptune:/usr/matrix/sbin# sdptool browse 78:FD:94:1A:E6:22
Failed to connect to SDP server on 78:FD:94:1A:E6:22: Operation now in progress
root@am335x-neptune:/usr/matrix/sbin# cat x.txt
argv Init speed = 115200
init_uart dev = /dev/ttyO1, initial speed = 115200, final speed = 115200
set speed 115200
set_speed no error
texas_init
Try 0
---6.7.16.
Sending script to serial device
brf_size = 82
CCCCCCCCCCCCCCCCCCCCWRCSset speed 921600
set_speed no error
CCCCCCCWRCCCCWRCCWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRCCCCCCWRWRWRWRWRWRCCCCCCCCCCCCCCWRCCWRCCCWRCCCCWRWRWRCCCCCCWRCCWRCCWRCWRCWRCCCCCCWRCCWRCDEEP SLEEP
n = 0x00000000
set speed 921600
set_speed no error
texas_post
Added device hci0
Sending script to bluetooth socket
brf_size = 13
WRCCCCC
Initial baud rate = 115200, final baud rate = 921600
Device setup complete
root@am335x-neptune:/usr/matrix/sbin# cat y.txt
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 921600, flow control to 1