IQRF IDE remote connect to iqrf-gateway-daemon

This blog describe how to connect IQRF IDE to iqrf-gateway-daemon https://docs.iqrf.org/iqrf-gateway/

Install last version of IQRF IDE (4.54 and later).

The best way to get it is to download actual startup package. At the time of writing this text it was accessible at https://www.iqrf.org/support/download&kat=34&ids=82 . Unzip the package and install IDE from …\IQRF IDE4\IQRF_Startup_Package_OS403D_TR-7xD_191016\IQRF_OS403_7xD\IQRF_IDE\iqrf_ide_454_setup.exe

Connect gateway to LAN and obtain its IP address.

Open IDE and in menu Tools select IQRF Device Manager.

In IQRF Device Manager select Add UDP device. Then enter Remote host IP address, which is IP address of your gateway in your local network, and select User gateway. Then click Add.

This new gateway will show up under UDP devices and now you can click Connect and Close the dialogue.

Successful conection will be displayed in status bar by green indicator at iqrf-gateway.

Enable service mode at iqrf-gateway-daemon

The gateway has to be switched to service mode to accept communication with IDE4. This can be done by sending API command to the iqrf-gateway-daemon as described at https://docs.iqrf.org/iqrf-gateway/api.html#daemon-management The command is:

{
  "mType": "mngDaemon_Mode",
  "data": {
    "msgId": "testMngMode",
    "req": {
      "operMode": "service"
    },
    "returnVerbose": true
  }
}

Work with gateway remotely in IDE

Now you can work with gateway in IDE remotely.

Go to IQMESH Network Manager and click Map View and then blue refresh button. This will show a topology of network.

Now you can bond, unbond, make autonetwork and more things you were used to do locally with the coordinator in CK-USB-04

Disable service mode at IQRF gateway

Once you finished with IDE work, just switch gateway to operational mode back in the same way as it was switched to service mode before:

{
  "mType": "mngDaemon_Mode",
  "data": {
    "msgId": "testMngMode",
    "req": {
      "operMode": "operational"
    },
    "returnVerbose": true
  }
}

You can find some other related information at https://docs.iqrf.org/iqrf-gateway/service.html

Enjoy !

You may also like...

Leave a Reply

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