1
%%%-------------------------------------------------------------------
2
%%% File : extensionAdditionGroup.erl
3
%%% Author : Kenneth Lundin
6
%%% Created : 18 May 2010 by kenneth
10
%% Copyright Ericsson AB 2001-2010. All Rights Reserved.
12
%% The contents of this file are subject to the Erlang Public License,
13
%% Version 1.1, (the "License"); you may not use this file except in
14
%% compliance with the License. You should have received a copy of the
15
%% Erlang Public License along with this software. If not, it can be
16
%% retrieved online at http://www.erlang.org/.
18
%% Software distributed under the License is distributed on an "AS IS"
19
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
20
%% the License for the specific language governing rights and limitations
25
%%%-------------------------------------------------------------------
26
-module(extensionAdditionGroup).
27
-include("Extension-Addition-Group.hrl").
33
Val = #'Ax'{a=253, b = true, c= {e,true}, g="123", h = true},
34
io:format("~p:~p~n",[Erule,Val]),
35
{ok,List}= asn1rt:encode('Extension-Addition-Group','Ax',Val),
36
Enc = iolist_to_binary(List),
37
io:format("~p~n",[Enc]),
38
{ok,Val2} = asn1rt:decode('Extension-Addition-Group','Ax',Enc),
39
io:format("~p~n",[Val2]),
42
_ -> exit({expected,Val, got, Val2})
46
Val = #'Ax3'{a=253, b = true, s = #'Ax3_s'{sa = 11, sb = true, sextaddgroup = 17}},
47
io:format("~p:~p~n",[Erule,Val]),
48
{ok,List}= asn1rt:encode('Extension-Addition-Group','Ax3',Val),
49
Enc = iolist_to_binary(List),
50
io:format("~p~n",[Enc]),
51
{ok,Val2} = asn1rt:decode('Extension-Addition-Group','Ax3',Enc),
52
io:format("~p~n",[Val2]),
55
_ -> exit({expected,Val, got, Val2})
60
{'RRC-DL-DCCH-Message',
62
{rrcConnectionReconfiguration,
63
{'RRC-RRCConnectionReconfiguration',0,
65
{'rrcConnectionReconfiguration-r8',
66
{'RRC-RRCConnectionReconfiguration-r8-IEs',
67
{'RRC-MeasConfig',asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE,
68
asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE,
69
asn1_NOVALUE,asn1_NOVALUE},
71
[[80,66,0,5,10,0,5,0,24,11,7,84,54,33,0,1,1,0,0,0,1,39,5,66,127,0,0,1],
73
{'RRC-RadioResourceConfigDedicated',
74
[{'RRC-SRB-ToAddMod',1,
78
{'RRC-UL-AM-RLC',ms45,pInfinity,kBinfinity,t4},
79
{'RRC-DL-AM-RLC',ms35,ms0}}}},
81
{'RRC-LogicalChannelConfig',
82
{'RRC-LogicalChannelConfig_ul-SpecificParameters',3,infinity,
85
[{'RRC-DRB-ToAddMod',3,3,
86
{'RRC-PDCP-Config',infinity,
87
{'RRC-PDCP-Config_rlc-AM',false},
92
{'RRC-UL-AM-RLC',ms70,p256,kBinfinity,t4},
93
{'RRC-DL-AM-RLC',ms35,ms40}}},
95
{'RRC-LogicalChannelConfig',
96
{'RRC-LogicalChannelConfig_ul-SpecificParameters',5,infinity,ms50,
99
{'RRC-DRB-ToAddMod',4,4,
100
{'RRC-PDCP-Config',infinity,
101
{'RRC-PDCP-Config_rlc-AM',false},
105
{'RRC-RLC-Config_am',
106
{'RRC-UL-AM-RLC',ms70,p256,kBinfinity,t4},
107
{'RRC-DL-AM-RLC',ms35,ms40}}},
109
{'RRC-LogicalChannelConfig',
110
{'RRC-LogicalChannelConfig_ul-SpecificParameters',5,infinity,ms50,
115
{'RRC-MAC-MainConfig',
116
{'RRC-MAC-MainConfig_ul-SCH-Config',n4,sf10,sf10240,false},
118
{setup,{'RRC-MAC-MainConfig_phr-Config_setup',sf200,sf200,dB3}},
120
asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE},
121
asn1_NOVALUE,asn1_NOVALUE}}}}}}},
122
io:format("~p:~p~n",[Erule,Val]),
123
{ok,List}= asn1rt:encode('EUTRA-RRC-Definitions','DL-DCCH-Message',Val),
124
Enc = iolist_to_binary(List),
125
io:format("Result from encode:~n~p~n",[Enc]),
126
{ok,Val2} = asn1rt:decode('EUTRA-RRC-Definitions','DL-DCCH-Message',Enc),
127
io:format("Result from decode:~n~p~n",[Val2]),
130
_ -> exit({expected,Val, got, Val2})