Files
GenericTeProgramLibrary/Source/Program/ConfigFiles/Hardware/MTS/Instruments/CoeDeviceNodeTCP.xml
2025-10-24 15:18:11 -07:00

144 lines
7.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Configurations>
<IniConfiguration>
<section name="Parameters">
<!-- value attribute: UDP or TCP -->
<!-- if UDP: all transactions occur in UDP -->
<!-- if TCP:
1. Connection and keep-alive transactions occur in TCP
2. Message subscription occurs in UDP
2. COE messagining occur in TCP or UDP depending on TCP_SELECT_VALUE
-->
<key name="DriverType" value="TCP" />
<key name="MaxMessageSize" value="4096" />
<key name="EPQueueDepth" value="50" />
<key name="CheckForMessageIntervalMs" value="10" />
<key name="AlwaysSendDefaults" value="True" />
</section>
<section name="ROUTER_CONFIG">
<key name="NODE_ID" value="0" />
<key name="DISPLAY_DEBUG_STATE" value="0" />
<key name="DISPLAY_DEBUG_LABEL_MESSAGE" value="0" />
<key name="DISPLAY_DEBUG_BRIDGE_REGISTRATION" value="0" />
<key name="DISPLAY_DEBUG_ROUTER_DATABASE" value="0" />
<key name="DISPLAY_DEBUG_SEND" value="0" />
<key name="DISPLAY_DEBUG_RECV" value="0" />
<key name="BUFFER_SIZE" value="4096" />
<key name="ENABLE_REGISTRATION_MESSAGES" value="1" />
<key name="THREAD_STACK_SIZE" value="16384" />
<key name="TRANSMIT_OPTIONS" value="0" />
</section>
<section name="ROUTER_PROTOCOL_CONFIG">
<key name="DISPLAY_DEBUG_SEND" value="0" />
<key name="DISPLAY_DEBUG_RECV" value="0" />
<key name="THREAD_STACK_SIZE" value="16384" />
</section>
<section name="ROUTER_BUFFER_POOLS">
<key name="POOL_ENTRY" value="100,128|50,256|50,1024|50,8192|5,65535" />
</section>
<section name="BASIC_REGISTRATION_CONFIG">
<key name="DISPLAY_DEBUG_SEND" value="0" />
<key name="DISPLAY_DEBUG_SEND_BUFFER" value="0" />
<key name="DISPLAY_DEBUG_RECV" value="0" />
<key name="DISPLAY_DEBUG_RECV_BUFFER" value="0" />
<key name="DISPLAY_DEBUG_STATE" value="0" />
<key name="DISPLAY_DEBUG_PING_SEND" value="0" />
<key name="DISPLAY_DEBUG_PING_RECV" value="0" />
<key name="THREAD_STACK_SIZE" value="16384" />
</section>
<section name="UDP_MEDIA_BINDING_CONFIG">
<key name="LOCAL_IP_ADDRESS" value="127.0.0.1" />
<key name="REMOTE_IP_ADDRESS" value="127.0.0.1" />
<key name="LOCAL_SEND_PORT" value="32011" />
<key name="LOCAL_RECV_PORT" value="32021" />
<key name="REMOTE_SEND_PORT" value="32010" />
<key name="REMOTE_RECV_PORT" value="32020" />
<key name="RECV_TIMEOUT" value="200" />
<key name="DISPLAY_DEBUG_SEND" value="0" />
<key name="DISPLAY_DEBUG_RECV" value="0" />
<key name="MTU_SIZE" value="1472" />
<key name="THREAD_STACK_SIZE" value="16384" />
<key name="THREAD_NAME" value="UDP_MB_RCV" />
</section>
<section name="TCP_MEDIA_BINDING_CONFIG">
<key name="SERVER_ADDRESS" value="192.168.1.45:9990" />
<key name="LOCAL_PORT" value="9991" />
<key name="NUM_PORTS" value="32" />
<key name="NUM_DYNAMIC_NODES" value="32" />
<key name="UDP_TX_BUFFER_SIZE" value="32768" />
<key name="UDP_RX_BUFFER_SIZE" value="32768" />
<key name="TCP_TX_BUFFER_SIZE" value="32768" />
<key name="TCP_RX_BUFFER_SIZE" value="32768" />
<key name="PACKET_SIZE" value="5128" />
<!-- When using TCP binding, COE unmanaged library opens both TCP and UDP ports.
Connection and keep alive is done through TCP. COE messaging can be done
on TCP or UDP. Set TCP_SELECT_VALUE = 1 forces COE messaging through TCP.
Set TCP_SELECT_VALUE = 0 forces COE messaging through UDP -->
<key name="TCP_SELECT_VALUE" value="0" />
<key name="DISABLE_NAG_DELAY" value="1" />
<key name="TIMER_RATE" value="1000" />
<key name="CONNECT_KA_RATE" value="1" />
<key name="RECV_KA_RATE" value="0" />
<key name="SERVER_CONNECT_RATE" value="1" />
<key name="RECV_THREAD_STACK_SIZE" value="16384" />
<key name="RECV_THREAD_PRIORITY" value="0" />
<key name="RECV_THREAD_AFFINITY" value="0" />
<key name="DISPLAY_DEBUG_SEND" value="1" />
<key name="DISPLAY_DEBUG_SEND_BUFFER" value="1" />
<key name="DISPLAY_DEBUG_UDP_RECV" value="1" />
<key name="DISPLAY_DEBUG_UDP_RECV_BUFFER" value="1" />
<key name="DISPLAY_DEBUG_TCP_RECV" value="1" />
<key name="DISPLAY_DEBUG_TCP_RECV_BUFFER" value="1" />
<key name="DISPLAY_DEBUG_RECV" value="1" />
<key name="DISPLAY_DEBUG_RECV_BUFFER" value="1" />
</section>
<section name="SERIAL_MEDIA_BINDING_CONFIG">
<key name="DEVICE_NAME" value="COM1" />
<key name="DATA_BITS" value="8" />
<key name="STOP_BITS" value="1" />
<key name="PARITY" value="0" />
<key name="FLOW_CONTROL" value="0" />
<key name="MTU_SIZE" value="256" />
<key name="RECV_PROCESSING_DELAY" value="100" />
<key name="DISPLAY_DEBUG_SEND" value="0" />
<key name="DISPLAY_DEBUG_RECV" value="0" />
</section>
</IniConfiguration>
<XmlConfigurations>
<!-- Every time any message comes in, we receive a notification. If high rate message comes in,
there will be too many notifications of "Message Received..." Let's slow it down" -->
<XmlConfiguration name="IncomingMessageNotificationIntervalInSec">10</XmlConfiguration>
<!-- Each incoming message is assigned a queue. This specifies the max queue size for each message -->
<XmlConfiguration name="MaxQueueSizePerResponseMsg">100</XmlConfiguration>
<XmlConfiguration name="CoeXmlFiles">
<FilePaths>
<FilePath>./CoeXmlFiles/NGSRI/GimbalMsgs.xml</FilePath>
<FilePath>./CoeXmlFiles/NGSRI/NgsriUmbilicalMsgs.xml</FilePath>
<FilePath>./CoeXmlFiles/NGSRI/NgsriMissionManagerMsgs.xml</FilePath>
<FilePath>./CoeXmlFiles/NGSRI/NgsriFirmwareMsg.xml</FilePath>
</FilePaths>
</XmlConfiguration>
<!-- Specify all the messages we're interested in listening to -->
<XmlConfiguration name="ResponseMessageIds">
<ResponseLabels>
<ResponseLabel>MissionManagerMsgLL</ResponseLabel>
</ResponseLabels>
</XmlConfiguration>
<!-- Specify logging options for messages. Mostly to slow down logging for high-rate messages.
Each set of options specified applies to both incoming and outgoing messages -->
<XmlConfiguration name="MessageLogOptions">
<!-- Tag value: Message name -->
<!-- Log attribute: true/false - whether we want to log this message or not -->
<!-- LogIntervalInSec attribute: Number of seconds to log between 2 consecutive messages of the same ID -->
<Message Log="true" LogIntervalInSec="1">MissionManagerMsgLL</Message>
</XmlConfiguration>
</XmlConfigurations>
</Configurations>