devicetree.init() connection refused


I’m trying to run the device tree sample script provided with the SDK (\Samples\device-param-access\main.lua) and I’m getting a “connection refused” error when the “init” function is called:

In thread: 0x46300: error: /root/aleos/usr/readyagent/lua/racon/common.lua:30: connection refused
stack traceback:
[C]: in function ‘assert’
/root/aleos/usr/readyagent/lua/racon/common.lua:30: in function ‘init’
/root/aleos/usr/readyagent/lua/racon/devicetree.lua:152: in function ‘init’
main.lua:125: in function main.lua:124

Appreciate if someone could shed some light on this.

Many Thanks


Looks like the problem went away after repowering the GX400 modem.
On closer inspection of /root/aleos/usr/readyagent/lua/racon/common.lua:30, it appears that the “devicetree” service (tcp port 9999) wasn’t running.
It would be good if someone could shed some light on this as we’re intending to run a fairly critical application that requires this service.

The reported ALEOS Software Version is 4.3.2a.010

The device needs to be restarted once you activate or deactivate AAF in AceManager. If that is not done, you would have exactly the symptoms you described: the service the not launched and you cannot connect to it, even if you can run your application with the IDE.