10.09.2016 Views

Hacking_and_Penetration_Testing_with_Low_Power_Devices

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

166 CHAPTER 7 Building an army of devices<br />

FIGURE 7.8<br />

Configuring a Series 2 modem as a router.<br />

The first time a message is sent to a new node, a broadcast message is sent to discover<br />

the network address. If the destination has a route to the source, it replies <strong>with</strong> a unicast.<br />

If not, the destination performs a routing discovery before sending the reply.<br />

Either way, the network address is stored in a Network Address Table (NAT) on<br />

the source device to speed up future communications.<br />

Battery-powered drones can be configured as end devices in order to permit<br />

modems to go to sleep. The first thing that must be done is to upload the ZigBee<br />

end device API function set as shown in Figure 7.9. The PAN ID should be set to<br />

your selected value. The MY address <strong>and</strong> MP (parent) address will both be 0xFFFE<br />

until the device has joined a network. The default value for SC (scan channels) is<br />

0xFFFF versus 0x3FFF for coordinators <strong>and</strong> routers. This scanning extra channels<br />

isn’t detrimental as the coordinator selects the channel, but changing it to match<br />

the coordinator <strong>and</strong> routers may speed up the joining process.<br />

REMOTE CONTROL THE EASY WAY<br />

In its simplest form, an XBee module can be used to replace a wired serial connection.<br />

A wired serial connection can be used to connect to a server via a TTY connection.<br />

By setting up TTY services on a port connected to an XBee radio on a drone, it

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!