Bluetooth Development with 'NET - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

Bluetooth Development with 'NET

Description:

low power radio on license free 2.4GHz band. Short 32ft (10m) range ... Windows XP supports multiple radios. BluetoothRadio.AllRadios .Mode Off, On & Discoverable. ... – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 18
Provided by: peterf153
Category:

less

Transcript and Presenter's Notes

Title: Bluetooth Development with 'NET


1
Bluetooth Development with .NET
  • Peter Foot

2
Bluetooth
  • A layered protocol
  • low power radio on license free 2.4GHz band
  • Short 32ft (10m) range
  • Enables peer to peer connectivity
  • Standard range of profiles for common tasks
  • Extensible by third-parties

3
32feet.NET
  • Collection of libraries for .NET
  • For Desktop, Embedded and Mobile devices
  • Currently Bluetooth and IrDA transports and
    Object Exchange protocol support
  • Designed to complement existing network support
    in .NET
  • Online forums and documentation

4
Supported Platforms
  • Windows XP SP1 (And later)
  • Running Microsoft Bluetooth Stack
  • Windows CE 4.1 (And later)
  • Including Windows Mobile 2003 and up
  • Running Microsoft Bluetooth Stack
  • Broadcom (Widcomm) stack not currently supported
    - http//www.high-point.com

5
Bluetooth Tasks
  • Manage device radio state
  • Find available devices
  • Make connections
  • Host a service
  • Send objects

6
BluetoothRadio
  • Windows CE supports single radio
  • BluetoothRadio.PrimaryRadio
  • Windows XP supports multiple radios
  • BluetoothRadio.AllRadios
  • .Mode Off, On Discoverable
  • .IsSupported Detect whether Microsoft Bluetooth
    stack is installed

7
Discover
  • BluetoothClient class
  • .DiscoverDevices()
  • Default will return all devices
  • Optionally return only previously bonded devices,
    or only unknown devices
  • Returns collection of BluetoothDeviceInfo objects

8
Choose a Device
  • SelectBluetoothDeviceDialog

9
Demo
  • Discovering Devices

10
Connecting
  • Use the BluetoothClient class
  • Specify the unique service id
  • BluetoothService class contains standard service
    ids
  • Read and write data via a NetworkStream object
  • Close stream when finished

11
Demo
  • Connect to GPS

12
Host a Service
  • Use the BluetoothListener class
  • Create a unique service id (Guid)
  • Start() to publish your service
  • AcceptSocket() or AcceptBluetoothClient()
  • Block until incoming connection is made
  • Send and receive data
  • Stop() to unregister the service

13
Send Objects
  • ObexWebRequest
  • Works just like an HttpWebRequest
  • Send any file or object
  • Some devices may only accept common object types
    vCard, vCalendar etc
  • Common Mime types are in
  • InTheHand.Net.Mime namespace

14
Demo
  • Send a vCard

15
Receive Objects
  • ObexListener
  • Works like HttpListener (.NET 2.0)
  • Receive incoming objects
  • Sample included in the download

16
Call to Action
  • Easy to add Personal Area Networking to your .Net
    applications
  • Download the latest version-
  • http//www.32feet.net
  • Start developing exciting applications
  • Let me know how you get on-
  • peter.foot_at_gmail.com

17
Demo
  • Receiving beamed images

18
Any Questions?
Write a Comment
User Comments (0)
About PowerShow.com