『壹』 android手機怎麼都連不上CC2540,CC2540設定無密碼連接,但是android手機一定需要輸入密碼,如何用透傳
這個不需要密碼的,安卓需要藍牙4.0的介面才能操作,直接寫和都UUID就可以操作
『貳』 CC2541DK-MINI 中的CC2540 USB Dongle可以用來開發自己的應用嗎
准備工作 一台 PC IAR Embedded Workbench 集成開發環境,可以用30天試用版本。 支持 藍牙 4.0 的智能手機一部,並安裝下列應用之一 Android Google Play Store. iPhone App Store. CC2540 開發板 CCDebugger 下載器 創建 iBeacon 工程文檔
『叄』 cc2540怎樣發送可變長度數據包
您好,您這樣:
【1】首先要讓開發板跑 SimpleBLEPeripheral , 這里不是重點, 先不說哈。
【2】然後,把燒錄了「 sniffer_fw_cc2540_usb.hex」 固件的 usb-dongle插入到pc, 如果沒有安裝驅動, 是要安裝的驅動的, 但是如果你已經安裝了 SmartRF Packet Sniffer 軟體, 那麼驅動就已經默認安裝了。
【3】 運行 SmartRF Packet Sniffer 。
一旦主機和從機連接上後, 到這一行, 抓包就不在顯示了, 這個時候, 如上填入地址, 並選好信道號, 然後再重新復位從機,主機重新連接,這個時候不一定 SmartRF Packet Sniffer 就能顯示到連接後的數據包, 如果不能連接上, 就試試 把 改成 38、 39等等, 多試試幾次, 就會出現下面圖了。
下面用lightblue進行一個char1的讀操作, lightblue讀取到了0x04.(lightblue是ios上很牛的一個軟體, 如果不知道, 可以先看看我先前的文章哈,
http://blog.csdn.net/mzy202/article/details/23600587)
下面用lightblue進行一個char1的寫操作, lightblue寫入0x01.
在實際開發中, 這個抓包還是顯得比較重要的, 比如android4.3的ble, 目前還不是很穩定,這個時候你又不能確定是不是你代碼的問題還是從機的問題, 我們通過抓取空中傳遞的數據包, 就能確定到底是在主機或從機的問題。
『肆』 Android 哪個版本支持和cc2540通訊
CC2540是基於藍牙4.0即BLE通訊協議棧的。
BLE的支持不僅與硬體配置有關,也與軟體有關。
軟體方面,安卓操作系統要4.3以上才支持BLE的驅動,如果是4.3以下的,即使硬體支持,軟體支持不了,同樣也用不了。
『伍』 如何使用 CC2540 製作一個 iBeacon
准備工作
一台 PC
IAR Embedded Workbench 集成開發環境,可以用30天試用版本。
支持 藍牙 4.0 的智能手機一部,並安裝下列應用之一
Android Google Play Store.
iPhone App Store.
CC2540 開發板
CCDebugger 下載器
創建 iBeacon 工程文檔
安裝 TI 官方的 CC254x 開發環境
復制 C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\ble\SimpleBLEBroadcaster 文件夾
粘貼到:C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\ble\iBeacon
運行 IAR Embedded Workbench,點擊 File > Open > Workspace
修改源代碼
simpleBLEBroadcaster.c
// GAP - Advertisement data (max size = 31 bytes, though this is
// best kept short to conserve power while advertisting)
static uint8 advertData[] =
{
// Flags; this sets the device to use limited discoverable
// mode (advertises for 30 seconds at a time) instead of general
// discoverable mode (advertises indefinitely)
0x02, // length of this data
GAP_ADTYPE_FLAGS,
GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
// three-byte broadcast of the data "1 2 3"
0x04, // length of this data including the data type byte
GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific advertisement data type
1,
2,
3
};
修改下面關鍵字
UID: E2C56DB5-DFFB-48D2-B060-D0F5A71096E0
Major: 1 (0x0001)
Minor: 1 (0x0001)
Measured Power: -59 (0xc5)
// GAP - Advertisement data (max size = 31 bytes, though this is
// best kept short to conserve power while advertisting)
static uint8 advertData[] =
{
// 25 byte ibeacon advertising data
// Preamble: 0x4c000215
// UUID: E2C56DB5-DFFB-48D2-B060-D0F5A71096E0
// Major: 1 (0x0001)
// Minor: 1 (0x0001)
// Measured Power: -59 (0xc5)
0x1A, // length of this data including the data type byte
GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific advertisement data type
0x4c,
0x00,
0x02,
0x15,
0xe2,
0xc5,
0x6d,
0xb5,
0xdf,
0xfb,
0x48,
0xd2,
0xb0,
0x60,
0xd0,
0xf5,
0xa7,
0x10,
0x96,
0xe0,
0x00,
0x01,
0x00,
0x01,
0xc5
};
接下來修改廣播類型,將下面代碼
//uint8 advType = GAP_ADTYPE_ADV_NONCONN_IND;// use non-connectable advertisements
uint8 advType = GAP_ADTYPE_ADV_DISCOVER_IND; // use scannable unidirected advertisements
修改為
uint8 advType = GAP_ADTYPE_ADV_NONCONN_IND; // use non-connectable advertisements
//uint8 advType = GAP_ADTYPE_ADV_DISCOVER_IND; // use scannable unidirected advertisements
接下來修改 GAP
// Set the GAP Role Parameters
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable );
GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), &gapRole_AdvertOffTime );
GAPRole_SetParameter( GAPROLE_SCAN_RSP_DATA, sizeof ( scanRspData ), scanRspData );
GAPRole_SetParameter( GAPROLE_ADVERT_DATA, sizeof( advertData ), advertData );
GAPRole_SetParameter( GAPROLE_ADV_EVENT_TYPE, sizeof( uint8 ), &advType );
因為 iBeacon 必須不間斷廣播,並且不響應任何數據請求,所以我們要修改 GAPROLE_ADVERT_OFF_TIME 和 GAPROLE_SCAN_RSP_DATA。
// Set the GAP Role Parameters
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable );
//GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), &gapRole_AdvertOffTime );
//GAPRole_SetParameter( GAPROLE_SCAN_RSP_DATA, sizeof ( scanRspData ), scanRspData );
GAPRole_SetParameter( GAPROLE_ADVERT_DATA, sizeof( advertData ), advertData );
GAPRole_SetParameter( GAPROLE_ADV_EVENT_TYPE, sizeof( uint8 ), &advType );
保存工程後,進行編譯,並通過 CCDebugger 下載程序到開發板中。
Select Project > Clean to clean the project.
Select Project > Make to make the project.
Select Project > Download and Debug to send the code to the CC2540 Key Fob
Select Debug > Go to Run the code on the CC2540 Key Fob.
BLE iBeacon
TI Displayport ESD Protection – TPD8S009
Arino SPI 精華課程
TAGS
Arino Arino Due Arino Esplora Atmega32u4 Atmel BacklightBMP085 Bootloader CC3x00 DatasheetDisplayport EasyDriver EDID eDPEsplora HDMI HMC5883L I2CJoystick LCD LED Luban LVDS MIPIMPU6050 MySQL Nginx PCB PHP pinModePWM PX4 Raspberry Pi RGB Sensor SPIStepper Motor Ubuntu Wifi 搖桿 樹莓派步進電機 電源 背光 藍牙
CATEGORIES
3D Printer
Android
Application Notes
Arino
AVR
Backlight Driver
C
CC3x00
Datasheet
Development Environment
HDMI
Imaging & Graphics
iOS
Javascript
LCD/LCM
Material
Others
PCB Design
Power Management
Prototyping
Raspberry Pi
Rostock
Sensor
Server
Software
STM32
Super Manual
Tutorials
Work
『陸』 android手機的BLE的傳輸速率最大是多少
BLE的最大傳輸速率是5.9k位元組每秒。
藍牙低能耗(BLE)技術是低成本、短距離、可互操作的魯棒性無線技術,工作在免許可的2.4GHz ISM射頻頻段。它從一開始就設計為超低功耗(ULP)無線技術。它利用許多智能手段最大限度地降低功耗。藍牙低能耗技術採用可變連接時間間隔,這個間隔根據具體應用可以設置為幾毫秒到幾秒不等。另外,因為BLE技術採用非常快速的連接方式,因此平時可以處於「非連接」狀態(節省能源),此時鏈路兩端相互間只是知曉對方,只有在必要時才開啟鏈路,然後在盡可能短的時間內關閉鏈路。
BLE技術的工作模式非常適合用於從微型無線感測器(每半秒交換一次數據)或使用完全非同步通信的遙控器等其它外設傳送數據。這些設備發送的數據量非常少(通常幾個位元組),而且發送次數也很少(例如每秒幾次到每分鍾一次,甚至更少)。
『柒』 word2007中查找替換功能怎麼用
ctrl鍵+F(同時按「ctrl」鍵和字母「 F 」鍵)點「替換(P)」在查找框 中輸入要找的文字,在替換中輸入要替換的文字,點全部替換。