You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With no clear cause, all dataRequest commands were immediately rejected with a 205 status code, a "no route found" error. Rebooting individual devices or even restarting the network had no effect.
The only solution I could find was to send out a route discovery broadcast message:
ifobj.command=="dataRequest":
# XXX: dataConfirm can arrive before dataRequest responsepayload= {
"endpoint": obj.payload["destendpoint"],
"transid": obj.payload['transid'],
}
waiter=self.wait_for(CommandType.AREQ, Subsystem.AF, "dataConfirm", payload)
result=awaitwaiter.wait()
LOGGER.debug('Got a dataRequest response: %s', result)
status=result.payload['status']
ifstatus!=0:
# No route foundifstatus==205:
BEACON_MAX_DEPTH=0x0FDEF_NWK_RADIUS= (2*BEACON_MAX_DEPTH)
LOGGER.warning('Received a routing failure! Attempting to discover a new route before failing...')
awaitself.request(Subsystem.ZDO, 'extRouteDisc', {
'dstAddr': obj.payload['dstaddr'],
'options': 0x01,
'radius': DEF_NWK_RADIUS
})
awaitasyncio.sleep(5)
raiseCommandError(result.payload['status'], f'Received a bad dataRequest status: {result.payload["status"]}')
Only one request like this is necessary because the dstAddr is really replaced with 0xFFFC, though I'm not sure what the consequences are of enqueuing a bunch of these messages are (especially since all of the useful parts of the Z-Stack firmware are not open source).
The text was updated successfully, but these errors were encountered:
With no clear cause, all
dataRequest
commands were immediately rejected with a205
status code, a "no route found" error. Rebooting individual devices or even restarting the network had no effect.The only solution I could find was to send out a route discovery broadcast message:
Only one request like this is necessary because the
dstAddr
is really replaced with0xFFFC
, though I'm not sure what the consequences are of enqueuing a bunch of these messages are (especially since all of the useful parts of the Z-Stack firmware are not open source).The text was updated successfully, but these errors were encountered: