QUICK START
5. Examples
A quick test of the network functionality can be performed by the pop-up menu (example A below). For detailed
testing of DPA commands the
Terminal – DPA Test
tool provides two ways how to set up a specific DPA command:
using macros (example B) or manual arrangement of DPA packet (example C).
A. Pop-up menu
For the simpliest checking, a command to switch the red LED On/Off on
selected Node can be immediately sent by clicking the left mouse button on
the symbol of given Node in the map.
The command currently selected in the
DPA Test – Data to Send
window can
be executed by the right mouse button click on the symbol of given Node in the
map and by selecting the
Send Packet from DPA Test
item.
NADR
is set
automatically according to selected Node.
B. Macros
Click on the particular macro and
PNUM
,
PCMD
,
HWPID
and
DATA
are automatically filled in. Then select
Node
Address
in
NADR
box (for Broadcast use address
0xFF
) and click the
Send
button.
•
Go to LED macros and click on macro
Set LEDR on
. To switch all LEDs on, fill in
0xFF
in
NADR
and Click
Send
button.
•
Use various macros and Node addresses to test the functionality.
C. DPA packet arranged manually
To get better understanding of DPA packet structure, you can
also fill in the DPA packet manually. By clicking the right
mouse button to the area for selecting
NADR
,
PNUM,
PCMD
or
HWPID
, menu
Predefined Addresses, Predefined
Peripherals,
Predefined Commands
or
Predefined HWP
is
displayed. These lists allow to select items defined by the
DPA specification and directly arrange the packet.
•
From menu
Predefined Addresses
select
Broadcast
or
directly specify the address of given Node.
•
From menu
Predefined Peripherals
select the LEDR
peripheral.
•
From menu
Predefined Commands
select the
Set on
command.
•
From menu
Predefined HWP
select the
To All HWP
item.
•
Click the
Send
button.
Test other peripherals and commands in the same way.
© 2015 MICRORISC s.r.o.
www.iqrf.org
Quick_Start_Guide_IQRF_ 150805
Page 15