Home » Eclipse Projects » Eclipse Titan » usage of LENGTHTO and UNIT(elements)(usage of LENGTHTO and UNIT(elements))
usage of LENGTHTO and UNIT(elements) [message #1853081] |
Thu, 16 June 2022 22:15  |
Eclipse User |
|
|
|
as the struct in the images
what I do is use noOfPktFillter represent the count of packetFilterList elements,
But whatever I do, the decoded struct show noOfPktFillter := '0000'B, while in the encodedNasMessage, which should be '0010'B
do I has a wrong usage of LENGTHTO and UNIT(elements)?
thanks very much
[Updated on: Thu, 16 June 2022 22:17] by Moderator
|
|
| |
Re: usage of LENGTHTO and UNIT(elements) [message #1853086 is a reply to message #1853084] |
Fri, 17 June 2022 02:25   |
Eclipse User |
|
|
|
thanks for your reply
But this doesnot work
I have configured this way before
type record TrafficFlowTemplate{
IEI8_Type iei optional,
Type4Length_Type iel,
B3_Type tftOperationCode,
B1_Type eBit,
B4_Type noOfPktFilter,
record of PacketFilter packetFilterList optional,
record of TftParameter parameterList optional,
}with{
variant (iel) "LENGTHTO(tftOperationCode, eBit, noOfPktFilter, packetFilterList, parameterList)"
variant (tftOperationCode, eBit, noOfPktFilter) "FIELDORDER(msb)"
variant (parameterList) "PRESENCE(eBit = '1'B)
variant (noOfPktFilter) "LENGTHTO(packetFilterList)"
variant (noOfpktFilter) "UNIT(elements)"
}
BUT no matter what the encoded code is, the noOfPktFilter will be decoded as '0000'B, and packetFilterList is omit
it seems the statements
variant (noOfPktFilter) "LENGTHTO(packetFilterList)"
variant (noOfpktFilter) "UNIT(elements)"
affects the decoding of noOfPktFilter
|
|
| | |
Re: usage of LENGTHTO and UNIT(elements) [message #1853091 is a reply to message #1853089] |
Fri, 17 June 2022 05:17   |
Eclipse User |
|
|
|
it still puzzles me
let me show the difference
if I configure as
type record TrafficFlowTemplate{
IEI8_Type iei optional,
Type4Length_Type iel,
B3_Type tftOperationCode,
B1_Type eBit,
B4_Type noOfPktFilter,
record of PacketFilter packetFilterList optional,
record of TftParameter parameterList optional,
}with{
variant (iel) "LENGTHTO(tftOperationCode, eBit, noOfPktFilter, packetFilterList, parameterList)"
variant (tftOperationCode, eBit, noOfPktFilter) "FIELDORDER(msb)"
variant (parameterList) "PRESENCE(eBit = '1'B)
variant (noOfPktFilter) "LENGTHTO(packetFilterList)"
variant (noOfpktFilter) "UNIT(elements)"
}
then the decoded situation show in decoded_with_UNIT.jpg
if I configure as
type record TrafficFlowTemplate{
IEI8_Type iei optional,
Type4Length_Type iel,
B3_Type tftOperationCode,
B1_Type eBit,
B4_Type noOfPktFilter,
record of PacketFilter packetFilterList optional,
record of TftParameter parameterList optional,
}with{
variant (iel) "LENGTHTO(tftOperationCode, eBit, noOfPktFilter, packetFilterList, parameterList)"
variant (tftOperationCode, eBit, noOfPktFilter) "FIELDORDER(msb)"
variant (parameterList) "PRESENCE(eBit = '1'B)
// variant (noOfPktFilter) "LENGTHTO(packetFilterList)"
// variant (noOfpktFilter) "UNIT(elements)"
}
then the decoded situation show in decoded_without_UNIT.jpg
there is no other different except the above configuration
you can ignore the decoding of the previous part (outside the red frame), and the LinkedEpsBearerId is 4 bit
and I cannot change the order of the fields, This is explicit in the protocol documentation
[Updated on: Fri, 17 June 2022 05:33] by Moderator
|
|
| | | |
Goto Forum:
Current Time: Tue May 13 16:48:00 EDT 2025
Powered by FUDForum. Page generated in 0.03326 seconds
|