Skip to Content
Node.js物聯網裝置開發
book

Node.js物聯網裝置開發

by Patrick Mulder, Kelsey Breseman
August 2017
Intermediate to advanced
272 pages
5h 32m
Chinese
GoTop Information, Inc.
Content preview from Node.js物聯網裝置開發
低功耗藍牙通訊協定
|
207
中央裝置連線作業
現今,許多手機都已內建智慧藍牙技術,這麼一來,我們就可以使用手上現有的設備,
先嘗試一下藍牙連線。
智慧型手機一般而言會扮演中央裝置的角色,連線到周邊裝置。智慧型手機對於藍牙
的支援程度,要看作業系統與底層採用的晶片而定,有些型號,特別是較為老舊的
Android 裝置,並不支援 BLE 通訊協定。
操作智慧型手機時,App 佔據至關重要的位置。請到 Play iTunes 線上商店找找,
將會發現能夠搜尋 BLE 服務的 App 數量不少,其中 iOS 平台的 LightBlue 是個不錯的
選擇。
如果你的智慧型手機不支援 BLE,可使用 Raspberry PiIntel Edison Tessel 來作為中
央裝置。
安裝 Bluez
若要在單板電腦上使用藍牙,通常都需要安裝包含驅動程式的藍牙協定疊層,
其中最為廣受歡迎的程式庫是 Bluez
最新版本可到底下網址取得:
# wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.24.tar.xz
然後依序執行底下指令,建置程式庫:
# tar -xf bluez-5.24.tar.xz
# cd bluez-5.24
# ./configure --disable-systemd –disable-udev
# make
# make install
然後便可執行各種能與藍牙功能互動的工具指令,例如
hciconfig
gattools
。若您使用 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

金融人工智能:用Python实现AI量化交易

金融人工智能:用Python实现AI量化交易

Yves Hilpisch
快学熟用D3

快学熟用D3

Philipp K. Janert

Publisher Resources

ISBN: 9789864764594