XB EE in API mode PRESENTED BY : NIKUNJ GANDHI (200811013) VARUN - - PowerPoint PPT Presentation

xb ee in api mode
SMART_READER_LITE
LIVE PREVIEW

XB EE in API mode PRESENTED BY : NIKUNJ GANDHI (200811013) VARUN - - PowerPoint PPT Presentation

XB EE in API mode PRESENTED BY : NIKUNJ GANDHI (200811013) VARUN KUMAR DWIVEDI (200811011) 1 XB EE RADIOS D ONT T ELL M E A BOUT T HE T ECHNOLOGY T ELL M E A BOUT T HE A PPLICATION --- TOM 2 W HATS T HE A PPLICATION? Design


slide-1
SLIDE 1

1

XBEE in API mode

PRESENTED BY : NIKUNJ GANDHI (200811013) VARUN KUMAR DWIVEDI (200811011)

slide-2
SLIDE 2

2

XBEE RADIO’S

“DON’T TELL ME ABOUT THE TECHNOLOGY

TELL ME ABOUT THE APPLICATION”

  • -- TOM
slide-3
SLIDE 3

3

WHAT’S THE APPLICATION?

 Design and develop a multi-channel, wireless

communication system for the purpose

  • f

modifying toys for children with disabilities

Switch XBee M odule Picaxe Toy Picaxe XBee M odule

XBee Protocol

  • Fig. 1. Application of XBEE Protocol

http://www2.hawaii.edu/~allencha

slide-4
SLIDE 4

4

WHAT’S THE APPLICATION? Cont…

 Parking lot automation  Energy management solution  Solution for building insurance  Limitations in those applications

1) Bandwidth 2) Radio range

slide-5
SLIDE 5

5

WHAT’S THE TECHNOLOGY?

What do we want from Technology?

 Guarantee for the high reliability  Protects against network intrusion  Long wireless range  Low power  Compact  Extensive option of controlling and reducing

battery drainage.

slide-6
SLIDE 6

6

WHAT’S THE TECHNOLOGY? Cont..

Fig 2.1. Official Bluetooth logo

Fig 2.2. Official Wi-Fi logo

Fig 2.3. Official Zigbee logo

slide-7
SLIDE 7

7

COMMUNICATION USING XBEE ..

  • Fig. 3. Internal data flow diagram
slide-8
SLIDE 8

8

COMMUNICATION USING XBEE Cont..

 XBEE module support both transparent & API

serial interface.

 When operating in transparent mode, the

modules act as a serial line replacement. It

  • perates in a similar way to e.g. modems.

 The communication done by AT mode is either

a fixed, single target or broadcast.

slide-9
SLIDE 9

9

COMMUNICATION USING XBEE Cont..

The major problem in AT mode :-

2.

For each module to communicate, a target 64 bit and 16 bit address has to be set at the module.

3.

The change of these addresses, however, can be only done in the command mode.

4.

That means rapid changes of transmit destinations are not possible, because there is the requirement of total over 2 seconds of the silence before entering command mode.

slide-10
SLIDE 10

10

COMMUNICATION USING XBEE Cont..

 AT mode can be used in mainly point to

point links, such as remote controls for TV or any other applications where XBees can act as a replacement of serial

  • cable. But in addition to that, it is

possible to use it for sensors that are reporting their status to a single master.

slide-11
SLIDE 11

11

COMMUNICATION USING XBEE Cont..

XBEE operation modes : -

  • Fig. 4 Modes of Operation in XBEE
slide-12
SLIDE 12

12

COMMAND MODE

In a command mode, command can be issued to configure the device, retrieve the device configuration or run a network discovery

To access the command mode, there has to be one second of silence, then sequence of three pulses (+++) has to be sent within one second and than another one second of silence is required.

On entering command mode module sends ‘OK\r’ to UART.

slide-13
SLIDE 13

13

AT COMMAND FORMAT

slide-14
SLIDE 14

14

API OPERATION

 API is the more sophisticated option of

the communication with the module.

 API firmware uses structured packet

interface to communicate via UART.

 Data wrapped together with commands,

addressing and status information.

 API allows programmer’s ability to

change the parameters without entering into command mode.

slide-15
SLIDE 15

15

API OPERATION (cont..)

There are two modes of API operation

2.

Standard (AP = 1)

3.

Escaped (AP = 2)

  • Fig. 5. Data frame structure (AP = 1)
slide-16
SLIDE 16

16

API OPERATION

 When sending or receiving a UART data

frame, specific value must be escaped so they do not interfere with data frame sequence.

  • Fig. 6. Data frame structure (AP = 2)
slide-17
SLIDE 17

17

API TYPES

 The

cmdID frame (API Identifier) indicates which API message will be contained in the cmdData frame (identifier specific data).

slide-18
SLIDE 18

18

API TYPES

 Modem status :-  API Identifier :- 0x8A  RF module status messages are sent from the

module in response in response to specific conditions.

slide-19
SLIDE 19

19

REMOTE CONFIGURATION

 Any device running on API is capable of

configuring any remote device within its current PAN.

 This is done by sending a ‘Remote AT

Command Request’.

 If the acknowledge is requested, the

remote node will reply with ‘Remote Command Response’ frame.

slide-20
SLIDE 20

20

REFERENCES

[1] Wikipedia –Zigbee http://en.wikipedia.org/wiki/ZigBee [2] Wikipedia - Bluetooth http://en.wikipedia.org/wiki/ZigBee [3] Maxstream XBEE series manual [4] XBee™/XBee-PRO™ OEM RF Modules [5] http://www2.hawaii.edu/~allencha