devmgr.bi

Contains the message definitions for the device management server

Author

Marcel Sondaar

License Public Domain

Summary
devmgr.biContains the message definitions for the device management server
Constants
DEVMGRCOMMAND_BASEBase message id for device management commands
DEVMGRCOMMANDSLists the messages that the device manager supports
Constants
DEVMGRCOMMANDS_CONNECTIVITYDeprecated Requests the server to list the connected device IDs
DEVMGRCOMMANDS_GETNAMERetrieves a node’s name
DEVMGRCOMMANDS_ADDRequests a new DeviceID to be registerd
DEVMGRCOMMANDS_SETNAMENames a device
DEVMGRCOMMANDS_SETADDRSets the message address for a device.
DEVMGRCOMMANDS_GETADDRRetrieves a device’s address
DEVMGRCOMMANDS_SETLOCATIONNames a device
DEVMGRCOMMANDS_GETLOCATIONRetrieves a node’s location string

Constants

DEVMGRCOMMAND_BASE

Base message id for device management commands

DEVMGRCOMMANDS

Lists the messages that the device manager supports

Summary
Constants
DEVMGRCOMMANDS_CONNECTIVITYDeprecated Requests the server to list the connected device IDs
DEVMGRCOMMANDS_GETNAMERetrieves a node’s name
DEVMGRCOMMANDS_ADDRequests a new DeviceID to be registerd
DEVMGRCOMMANDS_SETNAMENames a device
DEVMGRCOMMANDS_SETADDRSets the message address for a device.
DEVMGRCOMMANDS_GETADDRRetrieves a device’s address
DEVMGRCOMMANDS_SETLOCATIONNames a device
DEVMGRCOMMANDS_GETLOCATIONRetrieves a node’s location string

Constants

DEVMGRCOMMANDS_CONNECTIVITY

Deprecated Requests the server to list the connected device IDs

format

(4) DEVMGRCOMMANDS_CONNECTIVITY (4) Device ID

reply

(4) number of connected nodes (4x) array of connected Device IDs.  The parent is always listed first.

DEVMGRCOMMANDS_GETNAME

Retrieves a node’s name

format

(4) DEVMGRCOMMANDS_GETNAME (4) The Device ID to which this node becomes a child

reply

(n) The byte string containing the name

DEVMGRCOMMANDS_ADD

Requests a new DeviceID to be registerd

format

(4) DEVMGRCOMMANDS_ADD (4) The Device ID to which this node becomes a child

reply

(4) The newly generated Device ID

DEVMGRCOMMANDS_SETNAME

Names a device

format

(4) DEVMGRCOMMANDS_SETNAME (4) Device ID (x) A byte array containing the device name

reply

none

DEVMGRCOMMANDS_SETADDR

Sets the message address for a device.  The address is not present in the message itself, instead the address used to send this message will be taken as the third argument

format

(4) <DEVMGRCOMMANDS_SETINFO> (4) Device ID

reply

none

DEVMGRCOMMANDS_GETADDR

Retrieves a device’s address

format

(4) DEVMGRCOMMANDS_GETADDR (4) The Device ID for which to fetch the location

reply

(4) The device’s currently registered address, or zero if not set (no driver active).

DEVMGRCOMMANDS_SETLOCATION

Names a device

format

(4) <DEVMGRCOMMANDS_SETINFO> (4) Device ID (x) A byte array containing the device name

reply

none

DEVMGRCOMMANDS_GETLOCATION

Retrieves a node’s location string

format

(4) DEVMGRCOMMANDS_GETLOCATION (4) The Device ID for which to fetch the location

reply

(n) The byte array containing the location

Deprecated Requests the server to list the connected device IDs
Retrieves a node’s name
Requests a new DeviceID to be registerd
Names a device
Retrieves a device’s address
Retrieves a node’s location string