2016年8月4日 星期四

CC2540 / CC2541 AES-CBC Encrypted / Decrypted for Write

1.Write Process















2.Set IV.



















3.Set KEY.






























4.Encrypted write data and transmit to peripheral.
 5.Peripheral receive encrypted data



6.Peripheral enter KEY and IV





































7.Peripheral decrypted 

CC2540 / CC2541 AES-CBC Encrypted / Decrypted for Write

1.Write Process















2.Set IV.



















3.Set KEY.






























4.Encrypted write data and transmit to peripheral.
 5.Peripheral receive encrypted data



6.Peripheral enter KEY and IV





































7.Peripheral decrypted 

2016年7月6日 星期三

CC2541 Create 128 UUID and Custom UUID

TI Tutorial :
http://processors.wiki.ti.com/index.php/Tutorial:_How_to_Create_a_Custom_Bluetooth_Smart_Embedded_Application_with_the_CC2650DK

define 128-bit UUID : F000-EE00-0451-4000-B000-000000000000
define Characteristic 1 Properties : Read
define Characteristic 2 Properties : Write / Notify
define Characteristic 3 Properties : Read

1.Advertising Packet

















2.Central(Android phone) connection with CC2541





















3.Check characteristic properties


































4.Read characteristic 1 default value


















5.Peripheral (CC2541) set characteristic 1 value:


























6.Read characteristic 1 Value
















7.Central (Android phone ) write data to peripheral (CC2541) 

















8.Peripheral (CC2541) receive the write data

























9.Enable Notification

















10.Peripheral (CC2541) send notification data to central (Android phone )  

























11.Central receive the notification data

















12.Read characteristic 3 default value

















13.Peripheral (CC2541) set characteristic 3 value

























14.Read characteristic 3 value


2016年4月15日 星期五

Android 6.0 as BLE Peripheral and CC2541 as BLE Central

1.Android5.0 and Android6.0 BLE Check.


















Android 5.0 support central mode only!!

Android 6.0 support central mode and peripheral mode !!

2.Android 5.0 phone as central / Android 6.0 phone as peripheral .





















Connected with peripheral device.





















3.Check service,attribute and peripheral notify data to central .

















4.Program TI-BLE-CC254x-1.4.1 CC254x_SmartRF_SimpleBLECentral.hex














CC2541 discovering ....



Can't find !!




























5.Modify source code and try again.

Devices Found 1 and check device address



























2015年6月25日 星期四

CC2540 / CC2541 White List Test

CC2540 / CC2541 Android Phone White List Test

Get BLEPeripheral_WL Device MAC






















Android Phone Scan





















Use one android phone to bonding BLEPeripheral_WL























Enable White List Function

White List Function define:Allow Scan Request and Connect from White List Only























Android Phone Re-Scan





















Disable White List Function






















Android Phone Re-Scan
























2015年6月15日 星期一

CC2540 / CC2541 Modify The Maximum Number Of Bonds to 25

CC2540 / CC2541  Modify The Maximum Number Of Bonds to 25

CC2540 / CC2541  Maximum Number Of Bonds default : 10

1. Add USART command and function to get bonding info

CMD_PERIPHERAL_GET_BOND_INFO


Return





Maximum Number Of Bonds default : 10, Unbonds BOND.MAC returnFF FF FF FF FF FF

2. Add one bonding device and check the bonding info. 


















3.Modify the TI-BLE-CC254x BLE-Stack source code & add bonding device to bonding id:25