原创 樹莓派 - 調試串口

連接USB串口轉換器和樹莓派GPIO的UART針腳(6、8、10號)配置使能調試串口在樹莓派command終端,sudo raspi-config在配置選項中找到在SD的boot分區修改config.txt文件,最後面添加一句:enabl

原创 藍牙學習(9) GATT

在上文中 https://blog.csdn.net/feiwatson/article/details/82946933 配對了RaspberryPi和sensor Tag cc2650. 這裏進一步讀取並分析GATT pi@ras

原创 Bluefruit LE Sniffer - Bluetooth Low Energy (BLE 4.0) - nRF51822 驅動安裝及使用

BLE Sniffer https://www.adafruit.com/product/2269 Bluefruit LE Sniffer - Bluetooth Low Energy (BLE 4.0) - nRF51822 n

原创 藍牙學習 (6) - Play with TI sensorTag (1)

硬件 cc2650 SensorTag Connect with App 在手機上安裝Ti提供的sensorTag App即可和sensorTag 建立連接。 如下手機截圖,

原创 藍牙學習 (7) - raspberrryPi 掃描TI sensorTag

前面幾篇分別簡單涉及了 raspberryPi上bluez BLE sniffer TI SensorTag https://blog.csdn.net/feiwatson/article/details/81590397 http

原创 proto_ops和proto區別

**proto_ops:**該結構體包含了某個特定的“protocol family"的一系列functions。 其包含的functions和struct proto很類似,但是其在socket層 (見下圖中1的位置)。 例如,in

原创 樹莓派 -- i2c學習 續(1) DeviceTree Overlay實例化rtc

上文中討論了通過sysfs來實例化i2c設備 (rtc ds3231) https://blog.csdn.net/feiwatson/article/details/81048616 本文繼續看看如何通過 DeviceTree Ov

原创 樹莓派 - RasberryPi推送數據到cloudMQTT

創建用戶 在https://www.cloudmqtt.com/上創建一個帳戶 轉到右上角的控制面板 點擊“創建”按鈕 安裝lib sudo pip install paho-mqtt 注:不加·sudo可會有如下一些錯誤 Exce

原创 樹莓派 -- i2c學習

硬件平臺 RaspberryPi-3B+ Pioneer600外擴版 i2c芯片爲DS3231,adddress 0x68 首先來看一下i2ctool的使用 i2ctool 使用 https://i2c.wiki.kernel.org

原创 python 中requests 模塊用py2exe生成exe後SSL certificate exception的問題

[('system library', 'fopen', 'No such process'), ('BIO routines', 'BIO_new_file', 'no such file'), ('x509 certificate r

原创 樹莓派 - MQTT

安裝mosquitto 下載源代碼包 wget http://mosquitto.org/files/source/mosquitto-1.5.tar.gz 解壓 tar zxfv mosquitto-1.5.tar.gz 進入目

原创 Linux I2C驅動

Linux I2C 驅動結構 i2c體系結構由三部分組成 i2C core i2c core提供了i2c 總線驅動 和 設備驅動的註冊,註銷方法 i2C and SMBus protocol 實現 i2C “bus” driver

原创 藍牙學習(4) -- L2CAP

L2CAP in protocol 首先看一下L2CAP在Bluetooth protocol architecture diagram中的位置: Features of L2CAP Logical Link Control and

原创 藍牙學習(5) -- sockets

Frames 由下圖可以看出 - SDU由多個I-frames中的Information Payload組成 - 一個I-frames又拆分成多個HCI data payload socket buffers sk_buff,

原创 藍牙學習(3) Linux kernel部分Bluetooth HCI分析

在上文,https://blog.csdn.net/feiwatson/article/details/81712933中主要理解了在Kernel中USB adapter是如何實現USB設備驅動,以及HCI數據是通過不同的pipes和ho