This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540藉由廣播來跟手機通信之間疑問

Other Parts Discussed in Thread: CC2540

工程師們好:

我使用安卓手機版本 4.4 支援低功耗藍牙,

CC2540 的廣播數據如下圖 :

安卓關鍵代碼 :

public void parseData(byte[] scanRecord,String addr){ 
 String message = ""; 
 for(byte b : scanRecord){ 
 message += byteToHex(b)+","; 
 } 
 Toast.makeText(XXXX.this, message , 1000).show(); 
} 
public String byteToHex(byte b){ 
int i = b & 0xFF; 
return Integer.toHexString(i); 
}

手機收到的數據包訊息如圖:

用sinffer 查看數據包都正常,燒入Central role 來收廣播包也正常,

但手機端怎會收到這樣子的數據,

找了兩三天也找不到原因,

苦悶著求有經驗的工程師解惑 ..

謝謝你