The Health Management service passes parameters to ctaOpenServices in the svcargs.args element of the CTA_SERVICE_DESC structure, as described in the following table:
|
Element |
Description |
|
args[0] |
A unique index for each connection made to the Health Management service, 0 - 15. There is a maximum of 16 open connections. |
|
args[1] |
Identifies which board this channel manages. If this is a call to open an event channel, this can be set to HMI_EVENTS_ALL_BOARDS to receive events for all boards managed by the HMI service. |
|
args[2] |
Set to HMI_RCV_EVENTS to receive events or set to HMI_DO_COMMANDS to perform actions. |
The Natural Access service name is hmi and the Natural Access service manager name is hmimgr. These names should be placed in the CTA_SERVICE_DESC structure when opening the service. These names can also be edited into the cta.cfg file to facilitate using the tracing service, as shown in the following sample code:
[ctasys]
Service = adi, adimgr
Service = hmi, hmimgr # trace the HM API
TraceMask = 0
StartWebServer = 1 # Change to 0 to disable ctdaemon web server.
StartTraceServer = 1 # Change to 0 to disable ctdaemon trace server.
HttpPort = 1100 # TCP/IP port for web server.
TracePort = 1101 # TCP/IP port for trace server.
TraceMaxControllers = 1 # Num. clients allowed to set tracemask.
TraceMaxMonitors = 10 # Num. clients allowed to monitor trace msgs.
[ctapar]
[eof]
Refer to the Natural Access Developer's Reference Manual for more information.