原创 Bluetooth SDP

1、 what is SDP?       SDP(service discovery protocol:服務發現協議)。SDP協議讓客戶機的應用程序發現存在的服務器應用程序提供的服務以及這些服務的屬性。       SDP提供了一套SD

原创 BLE Software總結預告

之前,已經總結過BLE HOST層的主要協議,包括ATT/GATT,GAP,SMP,L2CAP等部分,在接下來的一段時間裏,我會陸續總結一下BLE的controller部分。算是對整個BLE Software和core Spec的一個完整

原创 藍牙協議分析(11)_BLE安全機制之SM

本文轉自:http://www.wowotech.net/ 1. 前言 注1:此SM是Security Manager的縮寫,非彼SM,大家不要理解歪了! 書接上文,我們在“藍牙協議分析(10)_BLE安全機制之LE Encryption

原创 snprintf比sprintf更安全(注意,snprintf在 Windows和Linux中有區別)

轉自:https://blog.csdn.net/stpeace/article/details/23561425 再轉一篇關於,對snprintf,sprintf在不同平臺上的差別的文章在這裏,從實際操作中,理解帶n與不帶n的函數的差別

原创 區別snprintf和sprintf

在項目完成階段,進行coverity scan時,常常會掃出類似提示,說使用sprintf, is Calling risky function,May result in a security violation。 實際是因爲sprin

原创 BLE Host解析: ATT/GATT

本部分是從各位前輩的學習經驗中,總結過來的,希望對初學者有益。 從藍牙Spec 4.0開始,推出了低功耗(BLE)規範,BLE的協議可分爲Bluetooth Application和Bluetooth Core兩大部分,而Bluetoot

原创 解構藍牙地址以及藍牙MAC地址查詢

現實場景中,經常會碰到“搜索到一個藍牙地址,但是沒有名稱,無法確定是不是想連接的設備等問題?”,這個時候就想着,如果可以從地址信息中能解析出某些有用的信息,幫助我們篩選就好了。別急,還真是有可能的,讓我們先來重新認識一下藍牙地址的

原创 BLE Host解析:BLE SM(5):傳統配對(Legacy Pairing):OOB

本文引自:https://blog.bluetooth.com/bluetooth-pairing-part-5-legacy-pairing-out-of-band   之前章節有介紹了Passkey和Numeric Compariso

原创 嵌入式系統的Watchdog

Introduction Watchdog,又名看門狗,光聽名字就知道是保衛系統的可靠幫手,它相當於系統警察,當系統發生嚴重錯誤(比如程序跑飛或進入死循環等)不能恢復的時候,能夠讓系統重啓。 看門狗最初的意義是因爲早

原创 使用微信藍牙精簡協議僞造記步數據

挺有意思的一篇文章,請參考文章來源:http://www.wowotech.net/bluetooth/weixin_ble_1.html 點贊 1 收藏 分享 文章舉報 no輸給

原创 How to resolve the problem “Firefox is already running, but is not responding......"

Solution: 1)  open a termianl and enter command "firefox -profilemanager" 2)  delete the old profile 3) create a new pr

原创 BLE Host解析:BLE SM(1): 配對特性交換(Pairing Feature Exchange)

     本文引自:https://blog.bluetooth.com/bluetooth-pairing-part-1-pairing-feature-exchange   藍牙的Spec規格有三個主要架構層,從上往下依次是appli

原创 藍牙解析(part1):藍牙的基本概念

轉自 http://www.wowotech.net/bluetooth/bt_overview.html 1. 前言 本文是這個專題的第一篇文章,主要基於藍牙4.1規範(Core_V4.1.pdf),描述藍牙技術的基本概念。

原创 IOT的OTA,你知道多少?

最近發現一篇對理解嵌入式OTA很有幫助的文章,標記一下,也請移步參看原創作者的博客https://blog.csdn.net/wireless_com/article/details/84901222 希望對於熱愛嵌入式的你,有所營養,T

原创 Repo Sync Error:Exited sync due to fetch errors

Background of the problem: 1) command: $ repo sync -j8   2) error: error: Exited sync due to fetch errors 3) solution:$