Documente Academic
Documente Profesional
Documente Cultură
PAOLO CHIARLONE
SENIOR SALES ENGINEER
the Digi RF
Products!!!
Professor:
Paolo Chiarlone
2 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
HELLO I AM
MULTIPLE FREQUENCIES
FOR WORLDWIDE DEPLOYMENT MULTIPLE PROTOCOLS COMPLETE SOLUTION
Anything below 10 kHz is considered to be audible and within the sonic range
Somewhere above 100 GHz the frequencies reach the infrared and eventually
visible light spectrum
OBSTACLE !!!
19 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
PATH LOSS
Material Attenuation @ 900 MHz
Glass 0.25 (6mm) 0.8 dB
Glass 0.5 (13mm) 2 dB
Lumber 3 (76mm) 2.8 dB
Brick 3.5 (89mm) 3.5 dB
Brick 7 (178mm) 5 dB
Brick 10.5 (267mm) 7 dB
Concrete 4 (102mm) 12 dB
Masonry Block 8 (203mm) 12 dB
Rule of thumb
12dB of increased system gain is necessary to double the
transmission distance in typical non RF line of sight conditions
6dB of increased system gain is necessary to double the
transmission distance in typical RF line of sight conditions
Same goes for the opposite - reduction!
= Conducted
- + = EIRP
The difference between the Link budget and the RX sensitivity is called the
Link Margin. If the Link Margin is negative, there is no communication!!!!
26 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
RX SENSITIVITY RANGE ADVANTAGE
DIGI.COM
29 | PUBLIC | DIGI INTERNATIONAL INC.
ANTENNA GAIN RESTRICTIONS
The power restrictions are Government-imposed
In the United States, FCC regulates the use of antennas via FCC Part 15.247
The Equivalent Isotropic Radiated Power (EIRP) represents the total effective
transmit power of the radio, including gains from the antenna and
subtracting losses from cables, connectors, etc.
FCC defines the maximum power of an ISM 2.4 GHz radio to be
1 watt (or 30 dBm) for conducted power and a maximum of 4 Watts
(or 36 dBm) for EIRP power
315 MHz
433 MHz 420 MHz
868 MHz 2.4 GHz 900 MHz
5.8 GHz
(World) 5.8 GHz
C
B
Router
Joins a network
Routes data through the network
Allows other routers and end-devices to join
It has to be always awake or the branch could lose connectivity
End device
Joins a network
Cannot route data, needs a parent to do so
Supports low-power/sleep modes, cannot be always awake!
I
If a destination radio is not in immediate H
range, the message can be forwarded by
E F G
intermediate nodes
D
B
C
A
53 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
ARCHITECTURE: MESH NETWORK
N
Messages are automatically routed to their
M
destination J K L
I
Routes are discovered as needed H
E F G
Redundant routes improve reliability
D
B
C
A
54 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
ARCHITECTURE: MESH NETWORK
Notes:
Set SC command (bitmask channels to scan)
Set ID command (extended PAN ID to select)
By default, Routers and End Device scan the channels allowed by the SC
bitmask and join any PAN ID
Ensure a coordinator (or joined router) is running on a valid PAN ID and
on a channel included in the SC bitmask
Read the actual operating PAN ID and operating channel using the OI
and CH commands
Join failures can be diagnosed using the AI command
DigiMesh
Simpler, one Pre-Shared 128-bit AES encryption key
DM
ZigBee DigiMesh
Source Routing Directed Broadcasting
DM
Product page:
http://www.digi.com/lp/xbee
Through-hole 20 pins
SMD has 37 pins
TH PRO is slightly longer than Standard
GPIO, ADC, PWM
I/O is at 3.3v!!!
UART and SPI available
Digi
XBee
XBee SMD
77 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
XBEE VS. XBEE-PRO
You can mix and match them in the same network!
Lower Power Higher Power
Less Range More Range
Lower Priced Higher Priced
Smaller Form Factor (TH only) Longer Form Factor (TH only)
XBee Family DigiMesh modules ZigBee modules DigiMesh & 900HP modules Thread-ready modules
Intro to Mesh
Intro to Mesh networking Intro to DigiMesh and our Intro to Thread with Mesh
Overview networking with
with ZigBee 900HP modules modules
DigiMesh
N. America, Australia, Brazil,
Market Worldwide Worldwide Worldwide
Singapore
Wireless S2C
Name Arduino Coding Kit Digi XBee Cloud Kit
Connectivity Kit
Make sure you follow the correct mounting of an XBee module on the
Digi Development Board or 3rd party adapters!
Just follow the silkscreen
Variants of antennas that can be used are listed under the Appendix B
Agency Certifications of the Hardware Reference Manual Digi P/N
90000976
A lot of things
in your life!!!!
111 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
ZB SLEEP MODE CONFIGURATION
SM=0
Disabled Modules always awake
SM=1
Pin Sleep Pin 9 (Sleep_RQ) HIGH = Sleep
Pin 9 (Sleep_RQ) LOW = WakeUp
SM=4
Cyclic SP=Sleep Period before wakeup (SN=multiplier)
ST= Sleep time before sleep
Routers
NOTE: data is buffered on routers for a
End Device
maximum of 30 seconds; after that, is lost!
112 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
113 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
ZIGBEE PROTOCOL
OVERVIEW
Broadcasts
Sent to all radios in the network
Unicasts
Addressed to a single radio in the
network
Description of Settings:
EE = if 1, encryption is enabled
KY = Link Key, encrypts the link (and passwords!)
if 0, the key is shared clear SECURITY HOLE!
if not 0, a trust center stores the key and new nodes can only join if they know the
preconfigured key
NK = key to be used (if 0, means random generated)
NJ = permit joining if 0xFF always allowed POSSIBLE SECURITY HOLE!
If 0x00 does not allow anymore joining DANGEROUS!
125 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
ZIGBEE AUTH / ENCRYPTION
Network encryption
Messages encrypted at a network level (payload + header)
Packets encrypted authenticated and decrypted at each hop
APS encryption
Encrypts only the payload of the message
Each packet can have a different key
Key is known by originator and destination only
Walkthrough:
http://docs.digi.com/display/XBeeArduinoCodingPlatform/XCTU+walkthrough
When ready, click Finish to add the radio module to the list
of modules
At the left-bottom side there will be also a little image with a letter which indicates the role
of the module within its network:
C: Coordinator
R: Router
E: End device
If you hover over the icon with the mouse, XCTU will display
more information about the module
The main structure of the API frame varies depending on the frame
type. This section will include anywhere from 1 to 10 fields
The length of the frame is primarily used to determine where the end of the frame is and how large of a
payload is included. The length is how many bytes are between Length and Checksum fields (excluded)
API frames all start with a common delimiter of 0x7E, this is used to easily identify the beginning of the frame
Note: Digi may add new API frames to future versions of firmware, so please build into your
software interface the ability to filter out additional API frames with unknown API identifiers
AT command RF packet
ASCII
ASCII
data
data
data
AT response RF ACK
BINARY
API frame RF packet
data
data
data
API response RF ACK
There is no difference in sending data in AT or API mode, as the data in the air is always RF!!!
It is possible to send data in API mode and receive in AT mode !! (and vice versa)
NOTE: the module has to be in AT mode, also remember to type +++ first!!
Associate LED
Various blink codes for sleep status
Blinks fast for one second when it receives a node ident frame
responses to K N
M
J K L
Locally in AT mode: ATFN
I
H
E F G
D
B
C
160 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
A
HOW NEIGHBOR POLLING WORKS - 2
Example: A unicasts to N DM
Packet has NACK enabled
N
Packet fails between radios H and K M
J K L
Route information packet:
I
Route Route Link Link Retries
H
Source Dest Source Dest Used E F G
A N H K 10 D
B
Unicast Packet C
Route Information Packet A
163 DIGI.COM | PUBLIC | DIGI INTERNATIONAL INC.
DM DIAGNOSTICS: TRACE ROUTE
By using the Cluster 0x12, any data transmitted to the remote device, DM
will be returned to the sender
The loopback will be done internally to the radio so it wont test
external failures
To test external connections, it is necessary to use an external
loopback (either physical connector or wires)
Can be done both in AT and in API modes
No on-board intelligence
Only remote commands triggers XBee behavior
Preconfigured input sampling
No custom code running on the XBee
Microcontroller
Radios UART
Radio
7 DIO11/PWM1/PTA2/SDA 7 36
8 BKGD/PTA4 No Connection 48
9 SLEEP_RQ/!DTR/PTD5 9 20
10 GND 10 7,8,9,31, 41
11 DIO4/PTB3/MOSI1 11 23
12 !CTS/DIO7/PTC0 No Direct Access 22
13 ON/!SLEEP/PTA1 No Direct Access 37
14 VREF No Connection 6
15 ASSOC/DIO5/PTD4 15 32
16 !RTS/DIO6/PTD7 No Direct Access 18
17 DIO3/ADC3/PTB5.A7/!SS 17 14, 27
18 DIO2/ADC2/PTB2/SPSCK 18 24
19 DIO1/ADC1/PTA3/SCL 19 35
20 DIO0/ADC0/PTA0 20 38
ZigBee Network
Ethernet
Wi-Fi
Cellular
DM
LOCAL WEBPAGE
WALL SENSOR
INTERNET - CLOUD
POST
TCP
MULE
TCP
SOCKETS XBee NETWORK
XBee GATEWAY
CC6UL
mBed
https://developer.mbed.org/teams/Digi-International-Inc/code/XBeeLib/
216
216 DIGI.COM | PUBLIC | DIGI INTERNATIONAL,
INTERNATIONAL INC.
INC.
DIGI EMBEDDED PRODUCTS
INDUSTRIAL, RELIABLE SOLUTIONS
Features of the Digi Embedded products
- High performance
- Long battery life
- Wireless enabled
- More I/O: Ethernet, GPIO, Analog, I2S, SPI, UART, video, etc
- Can be integrated with other Digi products, like XBee
- Small/standard form factor
http://www.digi.com/pdf/embedded-feature-product-comparion.pdf