You are here: CSP Developer’s Guide: Overview > 3 Getting Started > API Messaging
Processing Messages from the Excel Platform
To receive messages from the Excel platform, host applications in multi-node must first send the Multi-host Configure message to register with the Excel platform.
The Excel platform can send messages to any individual host, to all of the hosts, or to any combination of hosts. You use the Enable Switch-Initiated Messages ICB in the Multi-host Configure message to enable messages to be sent from the Excel platform. If no host registers for a particular message type, messages of that type are sent to the default host. The table for each API message in the API Reference indicates whether a message is sent by the Excel platform or by the host.
You use the Disable Switch-Initiated Messages ICB in the Multi-host Configure message to disable sending messages from the Excel platform. By default, the Poll message is always sent to every host. The only time the Poll message is not sent to every host is when the default host disables the Poll message by setting the poll interval to 0 (zero).
For the Excel platform to send messages, the following setup is required:
• Each host must register for messages from the Excel platform. The resulting registration tables are protected against resets (warm starts) by battery back-up.
• Each host must use only the active Matrix Controller card to register for messages from the Excel platform. If a redundant Matrix Controller card is in the Excel platform, the active Matrix Controller card transfers a current image of registration tables to the standby Matrix Controller card. This procedure ensures that information is retained during a switchover.
Even if a host is not connected to the Excel platform, you can register and de-register the host on the active Matrix Controller for messages from the Excel platform. If a host is initially connected but then disconnects from the Excel platform, registration for Excel platform-initiated messages is not lost; it is sent to the default host on Port 0x3142. Even if the default host is not connected, you can still send messages to other hosts.
For all messages from the Excel platform that cannot be routed to any other host, the default host is the default destination. Messages cannot be routed when:
• There is no host registered for that particular message
• The connection is down to the host registered for the message
Multiple hosts can register for the same Excel platform-initiated message. In this case, the message is replicated and sent to all the hosts registered for that message type. The resend mechanism is initiated only if none of the hosts acknowledges the message. Broadcasting messages on multiple host ports has a performance impact.
Processing Messages from the Host
Any host can receive any message type. But only the host that sends a particular message receives an acknowledgment for that message. This is true even if other hosts have registered for the same message type. This arrangement prevents the other hosts from receiving unsolicited acknowledgments and messages.
For the host to send messages, the following steps are required:
• All responses to host-initiated messages are routed to the originating hosts.
• Call control messages that demand real-time processing have priority over other messages, such as configuration and query messages.
• The Excel platform can support only 256 outstanding messages from the host for a particular message type. Hosts sending additional messages receive a negative acknowledgment (NACK) with the error code, "System Congested."
• Some messages from the host, such as Fault Log Query, produce multiple responses. Only one host can send such a message at any one time. If a second host sends such a message while the Excel platform is still processing the message from the first host, the second host receives a negative acknowledgment (NACK) with the error code, Queue Full.
• The hosts connected to the Excel platform on Ports 0x3143 to 0x3147 cannot send the following API messages:
• Poll Interval Configure
• Reset Matrix