LibItsIicp_Pixits.ttcn3 8.18 KB
Newer Older
1
2
/**
 *  @author     ETSI / STF422_EETS
filatov's avatar
filatov committed
3
4
 *  @version    $URL$
 *              $Id$
5
6
7
8
9
10
11
12
13
14
 *  @desc       Inter-ITS-SCU communications (ISO 24102-4) Pixits
 */
module LibItsIicp_Pixits {
    
    // LibCommon
    import from LibCommon_DataStrings {
        type Bit4
    };
    
    // LibIts
garciay's avatar
garciay committed
15
16
    import from CALMllsap language "ASN.1:1997" {
        type 
17
            Link_ID, CIstatus, MedType 
garciay's avatar
garciay committed
18
19
20
    };
    import from CALMmsap language "ASN.1:1997" {
        type 
21
            MF_Command, MN_Command, MI_Command, 
22
23
            MF_Request, MN_Request, MI_Request,
            MF_Request_confirm 
garciay's avatar
garciay committed
24
    };
25
26
27
28
29
30
31
32
33
34
    import from CALMmanagement language "ASN.1:1997" {
        type 
            ITS_scuId, Talive 
    };
    import from CALMiitsscu language "ASN.1:1997" {
        type ITS_SCUtype 
    }; 
    import from CALMfntp language "ASN.1:1997" {
        type PortNumber
    };
garciay's avatar
garciay committed
35
    import from LibItsMgt_TypesAndValues {
garciay's avatar
garciay committed
36
        type IParamNoList, IParamList, ErrorsList 
garciay's avatar
garciay committed
37
    };
38
    
garciay's avatar
garciay committed
39
40
41
42
43
44
45
46
    /**
     * @desc Defines the active CI link identifier
     */
    modulepar Link_ID PX_ACTIVE_VCI_LINK_ID := {
        remoteCIID := '0000000000000000'O, 
        localCIID := '0000000000000000'O 
    };
    
47
48
49
50
51
52
53
54
55
    /**
     * @desc Defines the value to set to fill field for PduRequest field
     * @see ISO/WD 24102-4 - Clause 7
     */
    modulepar Bit4 PX_PDU_REQUEST_FILL_FIELD_VALUE := '0000'B;
    
    /**
     * @desc ITS-SCU-ID of the source ITS-SCU which produces the request
     */
56
    modulepar ITS_scuId PX_SRC_ITS_SCU_ID := 5;
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
    
    /**
     * @desc ITS_SCUtype of the source ITS-SCU which produces the request
     */
    modulepar ITS_SCUtype PX_SRC_ITS_SCU_TYPE := 2; // router
    
    /**
     * @desc ITS-SCU-ID of the destination ITS-SCU which shall evaluate the request
     */
    modulepar ITS_scuId PX_DST_ITS_SCU_ID := 0;
    
    /**
     * @desc The own ITS scuID
     * @see ISO/WD 24102-4 - Table 2 — ITS-SCU-ID value assignment
     */
    modulepar ITS_scuId PX_LOCAL_ITS_SCU_ID := 8; 
    
    /**
     * @desc The type ITS scuID
     * @see ISO/WD 24102-4 - Table 2 — ITS-SCU-ID value assignment
     */
    modulepar ITS_SCUtype PX_LOCAL_ITS_TYPE := 1; // ITS_SCUtype_host_ 
    
    /**
     * @desc Host ITS-SCU-ID
     */
    modulepar ITS_scuId PX_HOST_SCU_ID := 0;
    
    /**
garciay's avatar
garciay committed
86
     * @desc Alive timer
87
     */
garciay's avatar
garciay committed
88
    modulepar Talive PX_TALIVE := 100; // TODO Check what is the role of Talive?
89
90
91
92
93
94
    
    /**
     * Wait until the IUT is in a stable situation (beaconing...)
     */
    modulepar float PX_WAIT_FOR_IUT_READY := 1.0;
    
garciay's avatar
garciay committed
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
    /**
     * @desc MI-Command value used for IICP/COM/xx TPs
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     */
    modulepar MI_Command PX_MI_RCMD_STATECINOTIFY := {
        fill := PX_PDU_REQUEST_FILL_FIELD_VALUE,
        miCmd := {
            wakeUp := 10
        }
    } 
    
    /**
     * @desc MN-Command value used for IICP/COM/xx TPs
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     */
    modulepar MN_Command PX_MN_RCMD_STATECINOTIFY := {
        fill := '00000'B,
        mnCmd := {
            fWTdelete := {
                fill := '0000000'B,
                delete := {
                    fntp := {
                        reference := 10 
                    }
                } 
            }
        }
    } 
    
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
    /**
     * @desc MN-Request value used for IICP/COM/xx TPs
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     */
    modulepar MN_Request PX_MN_RCMD_FWYSETNOTIFY := {
        fill := '00000'B,
        mnReq := {
            fWTsetNot := {
                fill := '0000000'B,
                setNot := {
                    fast := {
                        reference := 0,
                        remotePort := {
                            portShort := 0 
                        },
                        linkID := {
                            remoteCIID := '0000000000000000'O,
                            localCIID :=  '0000000000000000'O
                        },
                        ciStatus := 0,
                        linkPort := {
                            portShort := 0 
                        },
                        serviceInfo := {
                            servicePort := {
                                portShort := 0 
                            },
                            hostITSscu := 0,
                            servicePriority := 0
                        },
                        priority := 0,
                        timeout_ := 0
                    }
                } 
            }
        }
    } 
    
    /**
     * @desc MI-Request value used for IICP/COM/xx TPs
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     */
    modulepar MI_Request PX_MI_RCMD_REGTYPE := {
        fill := '0000'B,
        miReq := { 
            regReq := {
                medType := 10 // FIXME Check why TTWB does not accespt MedType_iso17515_
            }
        }
    }
    
garciay's avatar
garciay committed
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
    /**
     * @desc MF-Command value used for IICP/COM/xx TPs
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     */
    modulepar MF_Command PX_MF_RCMD_STATECINOTIFY := {
        fill := PX_PDU_REQUEST_FILL_FIELD_VALUE,
        mfCmd := {
            stateCInotify := {
                linkId := {
                    remoteCIID := '0000000000000000'O, 
                    localCIID := '0000000000000000'O 
                },
                cIstatus := 8
            }
        }
    } 
    
192
193
194
195
196
197
198
199
200
201
202
203
204
205
    /**
     * @desc MF-Command value used for IICP/COM/xx TPs
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     */
    modulepar MF_Request PX_MF_RCMD_LDM_REGISTER := {
        fill := PX_PDU_REQUEST_FILL_FIELD_VALUE,
        mfReq := {
            lDMregister := {
                iTS_scuId := 0,
                reference := ''O
            }
        }
    } 
    
garciay's avatar
garciay committed
206
207
208
209
210
211
212
213
214
215
    /**
     * @desc List of reference number of parameter to be monitored
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     * @see ISO 21218 Table A.1 — I parameters
     */
    modulepar IParamNoList PX_MI_IPARAMNOLIST := { 
        0, // AuxiliaryChannel 
        1 // ControlChannel 
    }
    
garciay's avatar
garciay committed
216
    /**
217
     * @desc List of error status for each parameter to be monitored
garciay's avatar
garciay committed
218
219
220
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     * @see ISO 21218 Table A.1 — I parameters
     */
garciay's avatar
garciay committed
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
    modulepar IParamList PX_MI_IPARAMLIST := {
        { 
            fill := '00'B, 
            param_ := { 
                errors := {
                    {
                        paramNo := 0, 
                        fill := '0000000'B,
                        med := { },
                        errStatus := 0 
                    }
                }
            } // End of field 'param_'
        } // End of list
    }
garciay's avatar
garciay committed
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
    /**
     * @desc List of errors 
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     * @see ISO 21218 Clause A.2.53 Errors (I-Param.No=255)
     */
    modulepar ErrorsList PX_MI_ERRORSLIST := {
        { 
            { 
                paramNo := 0, 
                fill := '0000000'B,
                med := { },
                errStatus := 0
            } // End of SingleError list 
        } // End of list
    }
garciay's avatar
garciay committed
251
    
252
    /**
253
     * @desc    Error status in response of MF-REQUEST.request service primitive
254
255
256
257
258
259
260
261
262
263
     */
    modulepar MF_Request_confirm PX_IIC_RESPONSE := { 
        commandRef := 1, 
        reqConfirm := { 
            fill := '0000'B, 
            mfReqConf := { 
                lDMregister := 0
            } // End of field 'mfReqConf' 
        }, // End of field 'reqConfirm' 
        errStatus := 0 
264
    } // End of modulepar PX_IIC_RESPONSE 
265
    
266
} // End of module LibItsIicp_Pixits