This chapter shows how to create your first wireless IOT network and how to manage LEDS on your remote IOT nodes. You will learn basic technique how to work with IQRF mesh network. The only hardware prerequisites are your laptop, DS-START-04 starter kit and internet.
|CK-USB-04A||1||IQRF programmer and debugger|
|DK-EVAL-04A||2||Universal portable development kit for TR modules|
|CAB-USBABMICRO||1||Micro USB cable 18.5 cm|
|USB flash drive||1||Software and documentation (including HWP)|
DS-START-04 set contains all you need for setup of IQRF network. Main IQRF transceivers modules are small red boards. These ensures communication, meshing and data transfer.
Transceivers have to be inserted to eval boards providing power and switching of modes.
!Warning: When you are inserting TR module to SIM holder push and hold SW2 button on eval board. This will interrupt feeding of power to TR module and potential damage.
One of eval board is a programmer (CK-USB-04A), you can recognize it that the programmer contains MCU chip on board. We will use the programmer for programming all TR modules.
Eval boards (K-EVAL-04A) are just for powering up of TR modules.
Programmer and eval boards have two push buttons, SW1 for switching modes in TR module and SW2 for power off useful for TR resetting. Jumper JP1 enables power ON/OFF.
More details about TR modules and eval boards you can get after click on links in table above.
The IQRF network topology has always one Coordinator and up to 256 Nodes. Coordinator is connected to gateway or computer and transfers data from all nodes. Nodes are communicating via wireless radio network. This network creates mesh which means that one node can transfer data to Coordinator via another node if Coordinator is not reachable directly.
Now it’s time to setup IQRF hardware on your desk. Connect programmer to your computer USB. We will use it for programming of all three TR modules and later then for feeding of coordinator.
For programming of TR modules (only these are programmable) you need IQRF IDE which is tool for compiling of firmware (software in TR modules), its uploading and downloading and much more…
Download it here: https://www.iqrf.org/technology/iqrf-ide/iqrf-ide-gui
IQRF IDE is available only for Windows OS. Download it, run installer and install anywhere on your computer. It creates program folder and project folder.
Now download IQRF Startup package here from https://www.iqrf.org/support/download&kat=34&ids=82 and unpack it anywhere in your computer.
Open IQRF IDE, click Open and navigate to IQRF Startup package e.g. d:\IQRF_OS403_7xD\Examples\DPA\StartUp and open DPA-demo.iqrfprj .
If you see that USB device not connected in bottom panel, ensure that your programmer is connected to USB port of your computer.
If it is connected and you still see that message, go to menu Tools/USB Classes/Swith to Custom Device mode.
here let scan COM ports, select one where programmer is connected and press Switch.
Now you should see Module ready – communication mode.
The last operation can show dialogue about firmware update, click Yes and then Upload button, wait for firmware update and then press Close.
Coordinator is the node connected with PC or Gateway gathering data from all nodes. Select one TR module from yours which will be Coordinator. All TR modules are HW equal.
Insert TR module to programmer. Warning, when you insert or remove TR from holder, always press SW2 button (the nearer to SIM slot). It breaks power.
In left panel of IQRF IDE select in Plug-ins DPA-Coordinator-… and then double click on DPA-config.xml.
Keep items as image shows and click Upload button.
After successful upload IDE beeps and you can click Close button.
Then in menu select Programming/Upload/Upload Selected Items or click F5 and everything is checked in left panel (plug-in and TR Configuration) is loaded to TR module.
If the system complains that uploading version is not for the connected TR module, please upgrade OS in module. See Upgrade OS in TR module section.
Otherwise Coordinator module is ready.
Remove Coordinator form programmer and insert another TR module to be a node. Warning, when you insert or remove TR from holder, always press SW2 button (nearer to SIM slot). It breaks power.
In left panel select DPA-Node-… and double click to DPA-config and upload DPA config the same way as at coordinator. The settings of parameters is the same.
Then in menu select Programming/Upload/Upload Selected Items or click F5 . After firmware is uploaded, repeat this for another node.
Run the IQRF network
Now it’s time to create your network. Enter Coordinator to programmer and Nodes to other eval boards. Warning, when you insert or remove TR from holder, always press SW2 button (nearer to SIM slot). It breaks power.
Set JP1 on to power TR modules from battery inside eval boards. Programmer does not contain JP1 because it is powered from USB.
When you insert the Node to SIM holder on eval board the red LED on TR module must start furiously flashing. If not this node could be earlier used for other network and is still bonded there. You must unbond it.
If red LED is not flashing I suggest to perform hardware unbonding. Simply pres and hold SW1 also called “bonding button” (the farther one from SIM) and then shortly press SW2. The Green LED is on for about 2 s, once the green LED is off immediately release SW1. The TR module should start red LED flash.
Open IQMESH Network Manager in menu Tools and click Clear All Bonds button which removes possibble early bonded nodes to the coordinator.
Now click Bond Node and during short period of bonding pres SW1 (bonding) button on one node.
The node is bonded and you can see it in dialogue. Press OK.
Repeat bonding procedure for each node. When you have all nodes bonded, which is displayed in matrix with yellow dots, press Discovery button.
Then go to Map View tab and you can see a topology of you network. Your first network is done!
Test your network
Right click on green sphere C (Coordinator) and choose LED Red On and the same do with nodes.
Look at your TR modules and their all have red LED on. Similarly you can turn LED off.
Cancel test network
When you want to cancel the network and start again or build new one you can destroy it by one step. Don’t forget to uncheck Only in Coordinator option as it may leave the nodes bonded to destroyed coordinator and it is not so straightforward to unbond them. Push the button Clear All Bonds
More how to work with IQRF mesh network you can find in document IQMESH Network Deployment.