Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
message_matching [2020/05/12 18:12] wikiadmin created |
message_matching [2020/06/05 16:46] (current) wikiadmin |
||
---|---|---|---|
Line 60: | Line 60: | ||
Somewhat common is to rely on the order of the message matching in TransSECS to match a " | Somewhat common is to rely on the order of the message matching in TransSECS to match a " | ||
+ | |||
+ | |||
+ | **Type Length and Fixed Length** | ||
+ | |||
+ | The "Type Length"/" | ||
**Remote Command Messages** | **Remote Command Messages** | ||
Line 73: | Line 78: | ||
If the "Send Err Msg" box is checked, if the " | If the "Send Err Msg" box is checked, if the " | ||
+ | |||
+ | |||
+ | Ensure that the " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | These checkboxes will only be available for valid S2F41/F49 messages. | ||
+ | | ||
+ | The first check is that the command is valid. | ||
+ | |||
+ | < | ||
+ | S2F41 W <L[2] | ||
+ | <A ' | ||
+ | <L[1] | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <A ' | ||
+ | > | ||
+ | > | ||
+ | > . | ||
+ | |||
+ | RECEIVED: 2020.06.05 15: | ||
+ | S2F42 <L[2] | ||
+ | <B 0x1> /* Decimal[1]: 1 */ | ||
+ | <L[0] | ||
+ | > | ||
+ | > . | ||
+ | </ | ||
+ | |||
+ | Next the CPName/ | ||
+ | |||
+ | < | ||
+ | SENT: 2020.06.05 15: | ||
+ | S2F41 W <L[2] | ||
+ | <A ' | ||
+ | <L[1] | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <A ' | ||
+ | > | ||
+ | > | ||
+ | > . | ||
+ | |||
+ | RECEIVED: 2020.06.05 15: | ||
+ | S2F42 <L[2] | ||
+ | <B 0x3> /* Decimal[1]: 3 */ | ||
+ | <L[2] | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <B 0x1> /* Decimal[1]: 1 */ | ||
+ | > | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <B 0x4> /* Decimal[1]: 4 */ | ||
+ | > | ||
+ | > | ||
+ | > . | ||
+ | </ | ||
+ | |||
+ | This error indicates that the CPName " | ||
+ | |||
+ | The order of the CPName/ | ||
+ | < | ||
+ | SENT: 2020.06.05 15: | ||
+ | S2F41 W <L[2] | ||
+ | <A ' | ||
+ | <L[2] | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <A ' | ||
+ | > | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <A ' | ||
+ | > | ||
+ | > | ||
+ | > . | ||
+ | |||
+ | RECEIVED: 2020.06.05 15: | ||
+ | S2F42 <L[2] | ||
+ | <B 0x0> /* Decimal[1]: 0 */ | ||
+ | <L[0] | ||
+ | > | ||
+ | > . | ||
+ | |||
+ | SENT: 2020.06.05 15: | ||
+ | S2F41 W <L[2] | ||
+ | <A ' | ||
+ | <L[2] | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <A ' | ||
+ | > | ||
+ | <L[2] | ||
+ | <A ' | ||
+ | <A ' | ||
+ | > | ||
+ | > | ||
+ | > . | ||
+ | |||
+ | RECEIVED: 2020.06.05 15: | ||
+ | S2F42 <L[2] | ||
+ | <B 0x0> /* Decimal[1]: 0 */ | ||
+ | <L[0] | ||
+ | > | ||
+ | > . | ||
+ | </ | ||
**Advanced Message Matching** | **Advanced Message Matching** | ||
+ | |||
+ | It is unusual to need the TransSECS advanced message matching features. | ||
+ | |||
+ | However, on rare occasions the " | ||
+ | |||
+ | In this simple example, we send a request for the list of ECIDs. | ||
+ | |||
+ | < | ||
+ | S2F30 <L[10] | ||
+ | <L[6] | ||
+ | <U4 2000> | ||
+ | <A ' | ||
+ | <U4 50> | ||
+ | <U4 400> | ||
+ | <U4 50> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33007> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 16> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33009> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 0> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33012> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 0> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33013> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 5> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33014> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 100> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33015> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 0> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33018> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 1> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33019> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 1> | ||
+ | <A ''> | ||
+ | > | ||
+ | <L[6] | ||
+ | <U4 33020> | ||
+ | <A ' | ||
+ | <U4[0] 0> | ||
+ | <U4[0] 0> | ||
+ | <U4 11> | ||
+ | <A ''> | ||
+ | > | ||
+ | > . | ||
+ | </ | ||
+ | |||
+ | We can define the message in TransSECS as a single list of 6 elements and give a meaningful name to each element. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | We then enter the maximum number of lists we might ever expect in the //" | ||
+ | |||
+ | When the S2F30 message is received, the list, and the contents of the list, will be Published repeatedly - in this case, once for each ECID. In all cases, the contents of the list will be published first and the list itself will be published last. You can register for notification of the list value changing and be sure that all the list values will be populated on that notification. | ||
+ | |||
+ | Another likely use for //Repeat// and // | ||
+ | |||
+ | The use cases really are few and far between, so double check that you haven' | ||
+ | |||
+ |