# install firmware
#INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/BT_FW_BCM4330B1_002.001.003.0221.0265.hcd DESTINATION ${PLUGIN_INSTALL_PREFIX}/etc/bluetooth)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/BT_FW_BCM4358A1_001.002.005.0032.0066.hcd DESTINATION ${PLUGIN_INSTALL_PREFIX}/etc/bluetooth)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/BCM4345C0_003.001.025.0111.0205.hcd DESTINATION ${PLUGIN_INSTALL_PREFIX}/etc/bluetooth)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/BCM4354_003.001.012.0353.0745_Samsung_Artik_ORC.hcd DESTINATION ${PLUGIN_INSTALL_PREFIX}/etc/bluetooth)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/artik_bcmtool/brcm_patchram_plus DESTINATION ${PLUGIN_INSTALL_PREFIX}/bin)
Name: bluetooth-firmware-bcm
Summary: firmware and tools for bluetooth
-Version: 0.1.3
+Version: 0.2.0
Release: 1
Group: Hardware Support/Handset
License: Apache-2.0
%{_bindir}/brcm_patchram_plus
%{_bindir}/setbd
%{_prefix}/etc/bluetooth/BCM4354_003.001.012.0353.0745_Samsung_Artik_ORC.hcd
+%{_prefix}/etc/bluetooth/BCM4345C0_003.001.025.0111.0205.hcd
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh
BCM_TOOL=/usr/bin/brcm_patchram_plus
BCM_FIRMWARE=BCM4354_003.001.012.0353.0745_Samsung_Artik_ORC.hcd
;;
+
+ "artik710")
+ BT_UART_DEVICE=/dev/ttySAC1
+ BCM_TOOL=/usr/bin/brcm_patchram_plus
+ BCM_FIRMWARE=BCM4345C0_003.001.025.0111.0205.hcd
+ ;;
+
esac
}
do
echo "******* Bcmtool download attempt $c ********"
- $BCM_TOOL $BT_UART_DEVICE --patchram /usr/etc/bluetooth/$BCM_FIRMWARE --no2bytes --baudrate $UART_SPEED --use_baudrate_for_download $BT_UART_DEVICE --bd_addr ${BD_ADDR} > /dev/null 2>&1 &
+ if [ $BD_ADDR ];then
+ $BCM_TOOL $BT_UART_DEVICE --patchram /usr/etc/bluetooth/$BCM_FIRMWARE --no2bytes --baudrate $UART_SPEED --use_baudrate_for_download $BT_UART_DEVICE --bd_addr ${BD_ADDR} > /dev/null 2>&1 &
+ else
+ $BCM_TOOL $BT_UART_DEVICE --patchram /usr/etc/bluetooth/$BCM_FIRMWARE --no2bytes --baudrate $UART_SPEED --use_baudrate_for_download $BT_UART_DEVICE --enable_lpm > /dev/null 2>&1 &
+ fi
+
bcmtool_pid=$!
#Check next timeout seconds for bcmtool success
for (( i=1; i<=$TIMEOUT; i++))