Integrating IQRF_IDE_Command to Windows 7 (10) – a bit different programming of TR modules

The newly released IQRF_IDE_Command application allows programming of TR modules without the need to use IQRF IDE. This article shows you how to use this pure console application in Windows GUI.



All examples assume the placement of IQRF_IDE_Command.exe in the directory C:\IQRF\IQRF_IDE_Command\, customize it according to your own folder location.

If you do not want to re-enter this address over and over again and you want to have the ability to run the application anywhere, you can add this address to the PATH variable system – guide how to do it is at the end of this article.


The first option…

Drag and drop programming by using a shortcut on the desktop


Use the context menu to create a shortcut on the desktop and name it e.g. IQRF Upload.

Use the Properties menu to set up new properties.

Change the content of Target field to the following

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -p /Color /Sound /Confirm /Auto

For the meaning of the parameters, see help at help.txt. Important is the /Confirm parameter, which will cause that a terminal window remains open and we see the result, it closes by pressing any key. The /Auto parameter ensures that the application is waiting for the module to be inserted into the CK, if it is not present.

Now you can choose (in Windows Explorer or any file manager) any HEX, IQRF, XML, or TRCNFG files (files) to grab, drag over the shortcut, and release.

The terminal window will open to inform you about the progress of the programming.

If you want to control the order of programming, just select the group of files per file we require to program first.

If you use multiple CKs or GWs connected at the same time, you need to order the application which one to use. You have two options, assign any CK as fixed using a serial number, which you find using IQRF_IDE_Command.exe -d

Then the command for shortcut is:

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -p 0E0001D9 /Color /Sound /Confirm /Auto

Or, before each programming, select the USB device using the console:

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -p  /Color /Sound /Confirm /Auto/ Select

or GUI:

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -p /Color /Sound /Confirm /Auto /Select=GUI

The advantage of GUI is the ability to identify the appropriate USB device using the Indicate button or by pressing the space bar – the corresponding device flashes.

If only one USB device is connected, the selection is not activated, and a free device is selected automatically.

Using the above procedure, you can create for example a shortcut to identify modules, e.g.:

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -m /Color /Sound /Confirm /Auto=Repeat /Select=GUI

Parameter /Auto=Repeat ensures repeated running of the -m command, then just replace the modules one by one.

The same parameter can also be used for automatic repeated multi-module programming, just inserting the next module will trigger the programming process, significantly faster compared to the IQRF IDE.

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -p /Color /Sound /Confirm /Auto=Repeat /Select=GUI

This way, we can create different * .cmd batches with different parameter combinations of IQRF_IDE_Command application. See IQRF_IDE_Command.exe -h



The second option…

Adding an item to the system context menu – Send to …

In the C:\Users\User\AppData\Roaming\Microsoft\Windows\SendTo directory, create a text file IQRF Upload.cmd. The AppData directory is system-based, so hidden by default. One way to access it is to write your entire path to Windows Explorer.

From now on, the item will be in the context menu under the same name

Insert this to the file

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -p %1 %2 %3 /Color /Sound /Confirm /Auto /Select=GUI

If you would require simultaneous programming of more than three files, add another parameter %4 etc.

Now you only need to right click on the HEX, IQRF, XML, or TRCNFG and select Send to → IQRF Upload.

The same can be done with a group of selected files.

If you want the terminal window to close and remain open only in case of an error, modify the IQRF Upload.cmd file as follows:

@echo off

C:\IQRF\IQRF_IDE_Command\IQRF_IDE_Command.exe  -p %1 %2 %3 /Color /Sound /Auto /Select=GUI

if %errorlevel% GTR 0 Pause



The third option…

Association file extensions with IQRF_IDE_Command

Association can be performed by double-clicking any HEX, IQRF, XML, or TRCNFG file.

Use Browse to select IQRF_IDE_Command.exe. Do not forget to check the option “Always use …”

If you want to avoid editing registers, it is enough to associate the files with a batch, for example, IQRF Upload.cmd mentioned above.

The XML extension is usually already associated with Internet Explorer in the system, change it using the context menu above the XML file.


Windows Registry Editor Version 5.00






@=“\”C:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe\” -p \”%1\” /Sound /Color /Auto /Select=GUI /Confirm”






@=“\”C:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe\” -p \”%1\” /Sound /Color /Auto /Select=GUI /Confirm”






@=“\”C:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe\” -p \”%1\” /Sound /Color /Auto /Select=GUI /Confirm”

Don’t forget to change the paths and possibly add parameters according to your own requirements. Saving it to the registry is done by double-clicking the association.reg file.

If everything was okay, then.

Unfortunately, the direct association of the XML file is not easy because of the interconnection of this format throughout the Windows. There is nothing more than to associate with a * .cmd or * .bat batch.

From now on, double-clicking the HEX, IQRF, XML, or TRCNFG file will execute IQRF_IDE_Command. The same effect is achieved by the right click and the Open menu.


The fourth option…

Create a submenu in the system context menu

Create the MainMenu.reg file with the content:

Windows Registry Editor Version 5.00



“MUIVerb”=”IQRF IDE Command”








“MUIVerb”=”IQRF IDE Command”




Open the file by right-clicking the Desktop. You should see the IQRF IDE menu Command that has no items yet.

If you want the item on the top of the submenu, right-click it and simply comment it "Position"="Top".

You do not cancel the function simply by commenting. This is done by modifying "Position"=-

More experienced users can use the Regedit registry editor to modify them. Find the appropriate key and modify.

To add submenu items, create a MenuItem.reg file with the following content:

Windows Registry Editor Version 5.00





@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -p \”%1\” /Auto /Sound /Color /Confirm /Select=GUI”


@=”Upload – autorepeat”



@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -p \”%1\” /Auto=Repeat /Sound /Color /Confirm /Select=GUI”


@=”Module info”




@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -m  /Auto /Sound /Color /Confirm /Select=GUI”


@=”Module info – autorepeat”



@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -m  /Auto=Repeat /Sound /Color /Confirm /Select=GUI”


@=”Upload FLASH”




@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -p \”%1\” /Auto /Sound /Color /Confirm /F /Select=GUI”


@=”Upload internal EEPROM”



@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -p \”%1\” /Auto /Sound /Color /Confirm /EE /Select=GUI”


@=”Uplload external EEPROM”



@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -p \”%1\” /Auto /Sound /Color /Confirm /EEE /Select=GUI”


@=”Errase all”



@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -c /Auto /Sound /Color /Confirm /Select=GUI”





@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -Factory /Auto /Sound /Color /Confirm /Select=GUI”


@=”List IQRF device”




@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -l /Sound /Color /Confirm”


@=”Device info”



@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -d /Sound /Color /Confirm /Select=GUI”


@=”Support IQRF device”



@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -s /Sound /Color /Confirm”






@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -v /Sound /Color /Confirm”





@=“c:\\IQRF\\IQRF_IDE_Command\\IQRF_IDE_Command.exe -u /Sound /Color /Confirm”

You should see the item in IQRF IDE Command menu by right-clicking the Desktop or any file.

For WIN10, you can comment the lines “CommandFlags” = dword: 00000020 and use separators. Unfortunately, for WIN7, functionality is not entirely without problems. If more than two separators are used, the last menu item does not work. According to MSDN, this feature should already be supported.


Adding an address to the PATH variable system

Inserting the IQRF_IDE_Command application address to the PATH variable system will allow you to run this application without any restrictions from anywhere. How to do it?

Run the command line (Win+R) and then run the cmd terminal.

And set this command:

setx PATH “%PATH%;C:\IQRF\IQRF_IDE_Command”

The change will take effect only after the restart of the terminal, so close the window and open it again by Win + R, cmd and verify functionality, for example, using IQRF_IDE_Command -v

There is certainly even more effective use of the IQRF_IDE_Command, such as integrating it together with CC5x into C code editor, but this is the topic for next time. The above-mentioned options are more for the users who use the IQRF and do not create their own HEX files, or program higher layers over the IQRF. It can be a simplification for them without a need to install the IQRF IDE, creating a project, importing files, etc.

Download Attachments

  • zip Example
    File size: 4 KB Downloads: 5

Leave a Reply

Your email address will not be published. Required fields are marked *