Networking 2. IP over Bluetooth

Similar documents
Rapoo E6700 Setup Instructions

Bluetooth. Bluetooth Radio

Bluetooth Keyboard Setup Instructions

BLUETOOTH PAN and external IP networks

By FaaDoOEngineers.com

Inside Bluetooth. Host. Bluetooth. Module. Application RFCOMM SDP. Transport Interface. Transport Bus. Host Controller Interface

Bluetooth. Quote of the Day. "I don't have to be careful, I've got a gun. -Homer Simpson. Stephen Carter March 19, 2002

Bluetooth: Short-range Wireless Communication

Objectives of the Bluetooth Technology

Amarjeet Singh. February 7, 2012

Taking Advantage of Bluetooth for Communications and More by Hunyue Yau

CHAPTER 7 DEMONSTRATE THE PAN IN LINUX

Bluetooth PCI Adapter

CS4/MSc Computer Networking. Lecture 13: Personal Area Networks Bluetooth

Introduction to Wireless Networking ECE 401WN Spring 2009

[A SHORT REPORT ON BLUETOOTH TECHNOLOGY]

UNIT 5 P.M.Arun Kumar, Assistant Professor, Department of IT, Sri Krishna College of Engineering and Technology, Coimbatore.

Computer Networks II Advanced Features (T )

Wireless Networked Systems

Wireless Sensor Networks

Ethernet. Lecture 6. Outline. Ethernet - Physical Properties. Ethernet - Physical Properties. Ethernet

On-Demand BlueTooth: Experience integrating BlueTooth in Connection Diversity

6/21/2016 bluetooth printing support

Guide to Wireless Communications, 3 rd Edition. Objectives

Using the BT85x Series with Linux and Windows Relevant to Laird # BT850-SA, BT850-ST, BT851, and associated DVKs

Implementing A Bluetooth Stack on UEFI

Embedded Systems. 8. Communication

Extending or Interconnecting LANS. Physical LAN segment. Virtual LAN. Forwarding Algorithm 11/9/15. segments. VLAN2, Port3. VLAN1, Port1.

Local Area Networks NETW 901

Lecture 6. Reminder: Homework 2, Programming Project 2 due on Thursday. Questions? Tuesday, September 13 CS 475 Networks - Lecture 6 1

12/2/09. Mobile and Ubiquitous Computing. Bluetooth Networking" George Roussos! Bluetooth Overview"

Introduction to Bluetooth Wireless Technology

Product Specification

Modulation. Propagation. Typical frequency bands

AT THE END OF THIS SECTION, YOU SHOULD HAVE AN UNDERSTANDING OF THE

MOBILE COMPUTING. Jan-May,2012. ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala.

EXTENDING THE REACH OF PERSONAL AREA NETWORKS BY TRANSPORTING BLUETOOTH COMMUNICATIONS OVER IP NETWORKS

Redes Inalámbricas Tema 2.B Wireless PANs: Bluetooth

Securing A Bluetooth Device

e-pg Pathshala Quadrant 1 e-text

Index. Cambridge University Press Bluetooth Essentials for Programmers Albert S. Huang and Larry Rudolph. Index.

Lessons Learned from Implementing a Wi-Fi and BT Stack

Bluetooth Demystified

Lab Zero: A First Experiment Using GENI and Jacks Tool

Lab Zero: A First Experiment Using GENI and Jacks Tool

ENRNG3076 : Oral presentation BEng Computer and Communications Engineering

Novel Hardware-based Attacks. Jason Zheng Aditya Joshi

Implementation of Broadcasting System Using Bluetooth

SERVICE DISCOVERY IN MOBILE PEER-TO-PEER ENVIRONMENT

REMOTE CONNECTION TUTORIALS. Version 0.8

ECE 471 Embedded Systems Lecture 30

Manual and Application note

Bluetooth low energy technology Bluegiga Technologies

Image acquisition and Communication

UART HCI Bluetooth Module for Linux BT860

Bluetooth. Renato Lo Cigno

Ah-Hoc, PAN, WSN,... Introduction Bluetooth ( ) Zigbee ( ) Renato Lo Cigno

Collaborative Middleware for Bluetooth-based ad-hoc Wireless Networks on Symbian OS

Lab I: Using tcpdump and Wireshark

Logitech Advanced 2.4 GHz Technology With Unifying Technology

LAB THREE STATIC ROUTING

Overview of Bluetooth

Promi-MSP. by Bluetooth. Enabling Wireless Serial Communications HANTZ + PARTNER. Appendix. Contents. The Upgrade Company!

Communication Systems. WPAN: Bluetooth. Page 1

Master. Slave. Master. Slaves. TCP/IP Traffic with Efficient Bluetooth Technology. Shafqat Hameed 1, Umar F.Khan 2, *Muhammad Saleem 3

CS263: Wireless Communications and Sensor Networks

Introduction: Broadcom BCM943142HM Wireless Communication Device User's Guide

Bluetooth Simulations for Wireless Sensor Networks using GTNetS

Introduction to Bluetooth

Access Server: User's and Developer's Guide <<< Previous Next >>>

Data sheet Wireless UART firmware version 4

Rab Nawaz Jadoon (Assistant Professor) Department of Computer Science COMSATS University, Abbottabad, Pakistan

Protocol Based on Mobile Agents

Wireless Sensor Networks BLUETOOTH LOW ENERGY. Flavia Martelli

Spreedbox Getting Started Guide

ON SECURITY OF BLUETOOTH WIRELESS SYSTEM. Pavel Kucera, Petr Fiedler, Zdenek Bradac, Ondrej Hyncica

An Architectural Framework to deploy Scatternet-based Applications over Bluetooth

IP LAB: Current Architecture

Bluetooth. Bluetooth Basics Bluetooth and Linux Bluetooth at AG Tech. Dr.-Ing. H. Ritter, 7.1

Bluetooth Wireless Technology meets CAN

USER MANUAL: 4G. The PiIoT is a WAN communications board which provides a 2G / 3G / 4G

CCNA2 Chapter 1 Practice

Instituto Superior Técnico, Universidade de Lisboa Network and Computer Security. Lab guide: Traffic analysis and TCP/IP Vulnerabilities

THE INTERNET PROTOCOL/1

Wireless Networking. Chapter The McGraw-Hill Companies, Inc. All rights reserved

KODO Controller. Remote Access. Hutech Corporation Atlantic Ocean Dr., Unit B-17. Lake Forest, CA

THE INTERNET PROTOCOL INTERFACES

Rapid Heterogeneous Ad Hoc Connection Establishment: Accelerating Bluetooth Inquiry Using IrDA

WPAN-like Systems. UWB Ultra Wide Band. IrDA Infrared Data Association. Bluetooth. Z-Wave. WPAN Wireless Personal Area Network

The Internet Protocol

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on a Virtual Machine

Lecture 23 Overview. Last Lecture. This Lecture. Next Lecture ADSL, ATM. Wireless Technologies (1) Source: chapters 6.2, 15

BLUETOOTH HID PROFILE

Practice 20 December 10, Wireless Access. Graduate course in Communications Engineering. University of Rome La Sapienza. Rome, Italy

Simulation of Bluetooth Network

Raspberry Pi Setup Tutorial

Lab 1: Packet Sniffing and Wireshark

Sensor Application for Museum Guidance

MI-BPS (Wireless Networks) FIT - CTU

Lab #9: Basic Linux Networking

Transcription:

Networking 2 IP over Bluetooth

IP over Bluetooth Part 1: Setup Connect your Pis directly to the monitor, keyboard, and mouse, login, and start X No VNC or SSH connections We will make a point-to-point connection between 2 Pis: Organize into groups such that each group has 2 Pis Install plugable bluetooth USB adapter in each Pi Install bluetooth, bluez, bluez-compat, bluez-tools, and bridge-utils packages on each Pi: sudo apt-get install bluetooth bluez bluez-compat bluez-tools bridge-utils This will take awhile... Start the bluetooth daemon on each Pi: sudo service bluetooth start

IP over Bluetooth Part 1 (cont): Setup View and set properties on BT adapter on each Pi sudo bt-adapter -i record the adapter hardware address sudo bt-adapter --set Discoverable 1 sudo bt-adapter --set Pairable 1 Check for nearby adapters/devices on each Pi hcitool scan make sure you see the adapter that you hope to pair with Although not manditory, you can remove the ethernet cable from the client Pi; the host Pi requires a ethernet connection

IP over Bluetooth Part 2: Pairing This is a time sensitive operation! On the Pi designated as the client, type the following but do NOT hit enter: sudo bluez-simple-agent hci0 01:01:01:01:01:01 Replace 01:01:01:01:01:01 with the host Pi's MAC address On the Pi designated as the host, enter the following: sudo bluez-simple-agent As soon as you have entered the host Pi's bluez-simple-agent command (directly above), enter the client Pi's bluez-simpleagent command typed earlier When prompted, use 1234 as the pass-code on both Pis The host Pi's terminal is locked by the bluez-simple-agent command; after pairing is complete, it's ok to abort it (ctrl-c, ctrl- C) or move to a new window

IP over Bluetooth Part 2 (cont): Pairing On the host Pi, view and set the properties for each client Pi (we have only 1 client Pi) sudo bt-device -l 01:01:01:01:01:01 Replace 01:01:01:01:01:01 with the client Pi's MAC address should see the client HW address as an "Added device" sudo bt-device --set 01:01:01:01:01:01 Trusted 1

IP over Bluetooth Part 3: Create pan0 Enter the following commands on the host Pi only: sudo brctl addbr pan0 this creates pan0; verify this using the ifconfig command sudo brctl setfd pan0 0 sudo brctl stp pan0 off sudo ifconfig pan0 192.168.2.1 netmask 255.255.255.0 sudo bt-network -s nap pan0 The host Pi's terminal is locked by this command; move to a new window; do NOT abort it

IP over Bluetooth Part 4: Create bnep0 Enter the following commands on the client Pi only: sudo pand -c 01:01:01:01:01:01 Replace 01:01:01:01:01:01 with the host Pi's MAC address this creates bnep0; verify this using the ifconfig command sudo ifconfig bnep0 192.168.2.2 netmask 255.255.255.0 Verify the IP address of bnep0 using ifconfig On the client Pi, verify the connection to the host Pi: ping 192.168.2.1 On the host Pi, verify the connection to the client Pi: ping 192.168.2.2 You should be able to ping, SSH, HTTP, etc between the client and host.

What did we just do? We created a Personal Area Network (PAN) of Bluetooth devices capable of providing services overtcp/ip. The network is refered to as a piconet. Limited by Bluetooth transmission range (up to ten meters) Pan0 is a Network Access Point (NAP), a service that routes network packets between PAN Users (PANU) using the Bluetooth Network Encapsulation Protocol (BNEP) The Bluetooth Network Encapsulation Protocol (BNEP) emulates Ethernet A separate bnep interface is created on demand for each client device that connects (bnep0, bnep1...bnepn) The Bluetooth host providing the NAP service acts as an Ethernet bridge that forwards BNEP packets between each of the connected Bluetooth devices (PANUs), including the Ethernet of an external network

The rest of the story The procedure used to create pan0 and bnep0 is similar to that described in this article You can join up to 7 Pis (1 host & 6 clients) in a PAN using this procedure. The personal area network, pan0 (with NAP) and the connection, bnep0, are lost when the Pi shuts down and must be re-established by repeating the steps in Parts 3 and 4. The pairing of the two Pi's remains after shutdown The system can be configured to recreate pan0 and bnep0 at startup as described in this article I HAVE NOT TESTED THE PROCEDURE DESCRIBED IN THIS ARTICLE

A little about Bluetooth Bluetooth is a low cost, short range, low power radio technology used to connect devices Started in 1994 by Ericson Fast growing Intended for mobile devices Uses short-wavelength UHF radio waves from 2.4 to 2.485 GHz Each Bluetooth transceiver is given a unique 48-bit Bluetooth Device Address Typically used for point-to-point connections in a master/slave configuration It is a packet-based protocol A great tutorial from SparkFun

Bluetooth communication: Discovery and Pairing Two Bluetooth devices that want to communicate must use the same frequency hopping sequence Devices in the inquiry (i.e., discoverable) state send short ID packages with a predetermined hopping pattern at a high repetition rate---only possible to detect devices in this discoverable state When a device detects an ID packet, it waits a random period and then responds with a Frequency Hop Synchronisation (FHS) packet Next a device must take on the master role and connect to a device in a slave role (i.e., pairing) The master transmits the slave's access code (DAC) in different hop channels and listens until it receives response from the slave When the master detects a response it sends its own FHS and sets up an L2CAP link via the Link Manager. After this the Service Discovery Protocol (SDP) will determine the device's capabilities.

Bluetooth communication: BNEP BNEP emulates an Ethernet segment Hides the underlying master-slave piconet topology It runs over L2CAP It reuses the Ethernet packet format It encapsulates the IP packet in BNEP headers and then in an L2CAP header and sends it over the L2CAP connection