Soumettre la recherche
Mettre en ligne
Bluetooth le for FreeBSD
•
Télécharger en tant que ODP, PDF
•
0 j'aime
•
1,152 vues
T
takawata19
Suivre
FreeBSDをBluetooth LEに対応させようとしている話 なんかフォントがあれなことになってるのは気にしない
Lire moins
Lire la suite
Ingénierie
Signaler
Partager
Signaler
Partager
1 sur 14
Télécharger maintenant
Recommandé
MTX-Router Helios I
MTX-Router Helios I
MTX M2M
MTX-Router Titan 3G
MTX-Router Titan 3G
MTX M2M
MTX M2M IoT modems gateways routers
MTX M2M IoT modems gateways routers
MTX M2M
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Recommandé
MTX-Router Helios I
MTX-Router Helios I
MTX M2M
MTX-Router Titan 3G
MTX-Router Titan 3G
MTX M2M
MTX M2M IoT modems gateways routers
MTX M2M IoT modems gateways routers
MTX M2M
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
Contenu connexe
En vedette
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
En vedette
(20)
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Bluetooth le for FreeBSD
1.
BluetoothLE
2.
今日はBluetoothLE ● BluetoothLEとは
– Bluetooth 4.0で定義された、Bluetoothの通信方式 – 低電力 – 今までのBluetoothと互換は無い。但し両対応のデバ イスは存在する。
3.
BluetoothLE ● デバイス
– センサなどが多い ● 手元には万歩計と接近認証カードがある
4.
BluetoothLE ● デバイスとホストが完全に分かれている。
● 認識時、デバイス側はホストに放送して存在 を伝える ● ホスト側はスキャンしてそのデバイスを認識 する ● ● 今日はここまでしか出来てない。
5.
BluetoothLE ● パケット長は小さい
● HCI, ACLの概念はある – HCI ホストコントローラコマンドインターフェイ ス – ACL 非同期コネクションレスリンク
6.
L2CAP ● リンク層でのプロトコル
● BluetoothLEではこの上にATT更にGATTという プロトコルが乗る ● これらで、デバイスのプロパティを問い合わ せるという形を取る。
7.
コマンド体系 ● 既存のコマンド体系とは違う
– グループごとちがう。 – イベントも別物 –
8.
ホスト側でやること ● スキャンパラメータを設定
● イベントマスクの設定 ● スキャン開始 ● デバイスのリストを得る。
9.
USB HCI ●
クラスが定義されている。 ● Bulk In/out, ISOC In/out Intr In を持つ ● Bulk In/outはACLデータが流れる ● ISOC In/outはSCOデータが流れる ● コントロールエンドポイントでホストコマンド を発行 ● Intrエンドポイントでコントローライベントを取 得
10.
FreeBSDの対応 ● ほぼ無し
● とりあえず、HCIコマンドを叩けばデバイスに 発行 ● そこから、カーネル内でデバイスのコネク ションを管理し、L2CAPインターフェイスに データを流す必要がある
11.
FreeBSDのBTスタック ● netgraph上で作られている
● Netgraphとはモジュールを組み合わせてプロト コルスタックを構成する枠組 ● 一つ一つのモジュールがグラフ理論でいう ノードそこから出るエッジを通してノードど うしが通信を行う
12.
モジュール ● Ubt
USBインターフェイス ● Hci ホストコントローラインターフェイス ● L2cap Link Layer Contorol Access Protocol ● Socket ユーザーランドのソケットインターフェ イス
13.
手元のコード ● とりあえず、ユーザーランドからHCIにアクセ
スしてBluetoothLEコマンド発行を許可 ● ホストコントローラをスキャンモードにする ● アドレスに属性を追加 ● スキャンした結果をBR/EDRのInquiryと同様に neighbor cacheに入れる ● L2cap, socketインターフェイスを整備しかけてい る
14.
デモ
Télécharger maintenant