Decoder Compiling Instruction

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 6

STEP1 Creating c and h files SOLARIS on ws4222 Set path to license file.

setenv OSSINFO "path to license" RRC /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -output rrc -prefix RRC_ -externa lname rrc_ctrl -uper -root /vobs/rnc/rrc/asn/rrc_nicknames.asn /vobs/rnc/rrc/asn /rrc_const.asn /vobs/rnc/rrc/asn/rrc_class.asn /vobs/rnc/rrc/asn/rrc_ies.asn /vo bs/rnc/rrc/asn/rrc_pdu.asn /vobs/rnc/rrc/asn/rrc_internode.asn RANAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -output ranap -prefix RANAP_ -ext ernalname ranap_ctrl -per /vobs/rnc/ranap/raw_asn/ranap_common.asn /vobs/rnc/ran ap/raw_asn/ranap_const.asn /vobs/rnc/ranap/raw_asn/ranap_ies.asn /vobs/rnc/ranap /raw_asn/ranap_container.asn /vobs/rnc/ranap/raw_asn/ranap_pdu.asn /vobs/rnc/ran ap/raw_asn/ranap_class.asn GPEH EVENTS /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -externalname event_ctrl -per -ro ot ~/OSSTOOLS_SOLARIS/GPEH/eventParam.asn /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -output IntFormat.BB2 -prefix in tEvent IntFormat.BB2.asn NBAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -output nbap -prefix NBAP_ -exter nalname nbap_ctrl -per /vobs/rbs/sw/nbap/raw_asn/nbap_common.asn /vobs/rbs/sw/nb ap/raw_asn/nbap_const.asn /vobs/rbs/sw/nbap/raw_asn/nbap_ies.asn /vobs/rbs/sw/nb ap/raw_asn/nbap_container.asn /vobs/rbs/sw/nbap/raw_asn/nbap_pdu.asn /vobs/rbs/s w/nbap/raw_asn/nbap_class.asn PCAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -output pcap -prefix PCAP_ -exter nalname pcap_ctrl -per /vobs/rnc/pcap/raw_asn/pcap_common.asn /vobs/rnc/pcap/raw _asn/pcap_ies.asn /vobs/rnc/pcap/raw_asn/pcap_const.asn /vobs/rnc/pcap/raw_asn/p cap_container.asn /vobs/rnc/pcap/raw_asn/pcap_pdu.asn /vobs/rnc/pcap/raw_asn/pca p_class.asn SABP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -output sabp -prefix SABP_ -exter nalname sabp_ctrl -per /vobs/rnc/sabp/raw_asn/sabp_common.asn /vobs/rnc/sabp/raw _asn/sabp_const.asn /vobs/rnc/sabp/raw_asn/sabp_container.asn /vobs/rnc/sabp/raw _asn/sabp_ies.asn /vobs/rnc/sabp/raw_asn/sabp_pdu.asn /vobs/rnc/sabp/raw_asn/sab p_class.asn RNSAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -output rnsap -prefix RNSAP_ -ext ernalname rnsap_ctrl -per /vobs/rnc/rnsap/raw_asn/rnsap_common.asn /vobs/rnc/rns ap/raw_asn/rnsap_const.asn /vobs/rnc/rnsap/raw_asn/rnsap_container.asn /vobs/rnc /rnsap/raw_asn/rnsap_ericsson.asn /vobs/rnc/rnsap/raw_asn/rnsap_ies.asn /vobs/rn c/rnsap/raw_asn/rnsap_pdu.asn /vobs/rnc/rnsap/raw_asn/rnsap_procedure.asn

CYGWIN CrossCompile on wl1016 Start firefox and sign in to access.ki.sw.ericsson.se Ct mount a Ct setview emarald_1

setenv OSSINFO "path to license" IMPORTANT: if you compile with an older library you must also use an older versi on of ASN1, below we using library 5.4.4 for Cygwin. USE LABEL for ASN1: OSS_ASN1-8.2.0. GPEH EVENTS /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1@@/main/rnc/3 compat v5.4.4 -output eventParam -prefix RRC_ -externalname event_ctrl -per ~/OSSTOOLS_CYGWIN/asn1dfl t.cygwin ~/OSSTOOLS_CYGWIN/GPEH/eventParam.asn /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1@@/main/rnc/3 compat v5.4.4 -output IntFormat.BB2 -prefix intEvent -per ~/OSSTOOLS_CYGWIN/asn1dflt.cygwin IntForm at.BB2.asn RRC /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 compat v5.4.4 -output rrc -prefix RRC_ -externalname rrc_ctrl -uper -root ~/OSSTOOLS_CYGWIN/asn1dflt.cygwin /vobs/ rnc/rrc/asn/rrc_nicknames.asn /vobs/rnc/rrc/asn/rrc_const.asn /vobs/rnc/rrc/asn/ rrc_class.asn /vobs/rnc/rrc/asn/rrc_ies.asn /vobs/rnc/rrc/asn/rrc_pdu.asn /vobs/ rnc/rrc/asn/rrc_internode.asn IMPORTANT for cygwin. add path to asn1dflt.cygwin. must be the first i library that will be included. -compat v5.4.4 RNSAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -compat v5.4.4 -output rnsap -pre fix RNSAP_ -externalname rnsap_ctrl -per ~/OSSTOOLS_CYGWIN/asn1dflt.cygwin /vobs /rnc/rnsap/raw_asn/rnsap_common.asn /vobs/rnc/rnsap/raw_asn/rnsap_const.asn /vob s/rnc/rnsap/raw_asn/rnsap_container.asn /vobs/rnc/rnsap/raw_asn/rnsap_ericsson.a sn /vobs/rnc/rnsap/raw_asn/rnsap_ies.asn /vobs/rnc/rnsap/raw_asn/rnsap_pdu.asn / vobs/rnc/rnsap/raw_asn/rnsap_procedure.asn IMPORTANT for cygwin. add path to asn1dflt.cygwin must be the first library that will be included. -compat v5.4.4 RANAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -compat v5.4.4 -output ranap -pre fix RANAP_ -externalname ranap_ctrl -per ~/OSSTOOLS_CYGWIN/asn1dflt.cygwin /vob s/rnc/ranap/raw_asn/ranap_common.asn /vobs/rnc/ranap/raw_asn/ranap_const.asn /vo bs/rnc/ranap/raw_asn/ranap_ies.asn /vobs/rnc/ranap/raw_asn/ranap_container.asn / vobs/rnc/ranap/raw_asn/ranap_pdu.asn /vobs/rnc/ranap/raw_asn/ranap_class.asn SABP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -compat v5.4.4 -output sabp -pre fix SABP_ -externalname sabp_ctrl -per ~/OSSTOOLS_CYGWIN/asn1dflt.cygwin /vobs/r nc/sabp/raw_asn/sabp_common.asn /vobs/rnc/sabp/raw_asn/sabp_const.asn /vobs/rnc/ sabp/raw_asn/sabp_container.asn /vobs/rnc/sabp/raw_asn/sabp_ies.asn /vobs/rnc/sa bp/raw_asn/sabp_pdu.asn /vobs/rnc/sabp/raw_asn/sabp_class.asn PCAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -compat v5.4.4 -output pcap -pre fix PCAP_ -externalname pcap_ctrl -per ~/OSSTOOLS_CYGWIN/asn1dflt.cygwin /vobs/r nc/pcap/raw_asn/pcap_common.asn /vobs/rnc/pcap/raw_asn/pcap_ies.asn /vobs/rnc/pc ap/raw_asn/pcap_const.asn /vobs/rnc/pcap/raw_asn/pcap_container.asn /vobs/rnc/pc

ap/raw_asn/pcap_pdu.asn /vobs/rnc/pcap/raw_asn/pcap_class.asn NBAP /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1 -compat v5.4.4 -output nbap -pre fix NBAP_ -externalname nbap_ctrl -per ~/OSSTOOLS_CYGWIN/asn1dflt.cygwin /vobs/r bs/sw/nbap/raw_asn/nbap_common.asn /vobs/rbs/sw/nbap/raw_asn/nbap_const.asn /vob s/rbs/sw/nbap/raw_asn/nbap_ies.asn /vobs/rbs/sw/nbap/raw_asn/nbap_container.asn /vobs/rbs/sw/nbap/raw_asn/nbap_pdu.asn /vobs/rbs/sw/nbap/raw_asn/nbap_class.asn SOLARIS on ranmoinmoin Set path to license file. export OSSINFO="path to license" RRC asn1 -output rrc -prefix RRC_ -externalname rrc_ctrl -uper -root /vobs/rnc/rrc/a sn/rrc_nicknames.asn /vobs/rnc/rrc/asn/rrc_const.asn /vobs/rnc/rrc/asn/rrc_class .asn /vobs/rnc/rrc/asn/rrc_ies.asn /vobs/rnc/rrc/asn/rrc_pdu.asn /vobs/rnc/rrc/a sn/rrc_internode.asn RANAP asn1 -output ranap -prefix RANAP_ -externalname ranap_ctrl -per /vobs/rnc/ranap/ raw_asn/ranap_common.asn /vobs/rnc/ranap/raw_asn/ranap_const.asn /vobs/rnc/ranap /raw_asn/ranap_ies.asn /vobs/rnc/ranap/raw_asn/ranap_container.asn /vobs/rnc/ran ap/raw_asn/ranap_pdu.asn /vobs/rnc/ranap/raw_asn/ranap_class.asn GPEH EVENTS asn1 -externalname event_ctrl -per -root ~/OSSTOOLS_SOLARIS/GPEH/eventParam.asn asn1 -output IntFormat.BB2 -prefix intEvent IntFormat.BB2.asn NBAP asn1 -output nbap -prefix NBAP_ -externalname nbap_ctrl -per /vobs/rbs/sw/nbap/r aw_asn/nbap_common.asn /vobs/rbs/sw/nbap/raw_asn/nbap_const.asn /vobs/rbs/sw/nba p/raw_asn/nbap_ies.asn /vobs/rbs/sw/nbap/raw_asn/nbap_container.asn /vobs/rbs/sw /nbap/raw_asn/nbap_pdu.asn /vobs/rbs/sw/nbap/raw_asn/nbap_class.asn PCAP asn1 -output pcap -prefix PCAP_ -externalname pcap_ctrl -per /vobs/rnc/pcap/raw_ asn/pcap_common.asn /vobs/rnc/pcap/raw_asn/pcap_ies.asn /vobs/rnc/pcap/raw_asn/p cap_const.asn /vobs/rnc/pcap/raw_asn/pcap_container.asn /vobs/rnc/pcap/raw_asn/p cap_pdu.asn /vobs/rnc/pcap/raw_asn/pcap_class.asn SABP asn1 -output sabp -prefix SABP_ -externalname sabp_ctrl -per /vobs/rnc/sabp/raw_ asn/sabp_common.asn /vobs/rnc/sabp/raw_asn/sabp_const.asn /vobs/rnc/sabp/raw_asn /sabp_container.asn /vobs/rnc/sabp/raw_asn/sabp_ies.asn /vobs/rnc/sabp/raw_asn/s abp_pdu.asn /vobs/rnc/sabp/raw_asn/sabp_class.asn RNSAP asn1 -output rnsap -prefix RNSAP_ -externalname rnsap_ctrl -per /vobs/rnc/rnsap/ raw_asn/rnsap_common.asn /vobs/rnc/rnsap/raw_asn/rnsap_const.asn /vobs/rnc/rnsap /raw_asn/rnsap_container.asn /vobs/rnc/rnsap/raw_asn/rnsap_ericsson.asn /vobs/rn c/rnsap/raw_asn/rnsap_ies.asn /vobs/rnc/rnsap/raw_asn/rnsap_pdu.asn /vobs/rnc/rn sap/raw_asn/rnsap_procedure.asn LINUX 64bit on cits.ki.sw.ericsson.se Set path to license file. export OSSINFO="path to license"

RRC /home/devitk/ossasn1/linux-glibc2.3-amd64/8.3.1/bin/asn1 -output rrc -prefix RRC _ -externalname rrc_ctrl -uper -root /home/devitk/src/rrc/rrc_nicknames.asn /hom e/devitk/src/rrc/rrc_const.asn /home/devitk/src/rrc/rrc_class.asn /home/devitk/s rc/rrc/rrc_ies.asn /home/devitk/src/rrc/rrc_pdu.asn /home/devitk/src/rrc/rrc_int ernode.asn RANAP /home/devitk/ossasn1/linux-glibc2.3-amd64/8.3.1/bin/asn1 -output ranap -prefix R ANAP_ -externalname ranap_ctrl -per /home/devitk/src/ranap/ranap_common.asn /hom e/devitk/src/ranap/ranap_const.asn /home/devitk/src/ranap/ranap_ies.asn /home/de vitk/src/ranap/ranap_container.asn /home/devitk/src/ranap/ranap_pdu.asn /home/de vitk/src/ranap/ranap_class.asn GPEH EVENTS /home/devitk/ossasn1/linux-glibc2.3-amd64/8.3.1/bin/asn1 -externalname event_ctr l -uper -root /home/devitk/src /eventParam.asn NBAP /home/devitk/ossasn1/linux-glibc2.3-amd64/8.3.1/bin/asn1 -output nbap -prefix NB AP_ -externalname nbap_ctrl -per /home/devitk/src/nbap/nbap_common.asn /home/dev itk/src/nbap/nbap_const.asn /home/devitk/src/nbap/nbap_ies.asn /home/devitk/src/ nbap/nbap_container.asn /home/devitk/src/nbap/nbap_pdu.asn /home/devitk/src/nbap /nbap_class.asn PCAP /home/devitk/ossasn1/linux-glibc2.3-amd64/8.3.1/bin/asn1 -output pcap -prefix PC AP_ -externalname pcap_ctrl -per /home/devitk/src/pcap/pcap_common.asn /home/dev itk/src/pcap/pcap_ies.asn /home/devitk/src/pcap/pcap_const.asn /home/devitk/src/ pcap/pcap_container.asn /home/devitk/src/pcap/pcap_pdu.asn /home/devitk/src/pcap /pcap_class.asn SABP /home/devitk/ossasn1/linux-glibc2.3-amd64/8.3.1/bin/asn1 -output sabp -prefix SA BP_ -externalname sabp_ctrl -per /home/devitk/src/sabp/sabp_common.asn /home/dev itk/src/sabp/sabp_const.asn /home/devitk/src/sabp/sabp_container.asn /home/devit k/src/sabp/sabp_ies.asn /home/devitk/src/sabp/sabp_pdu.asn /home/devitk/src/sabp /sabp_class.asn RNSAP /home/devitk/ossasn1/linux-glibc2.3-amd64/8.3.1/bin/asn1 -output rnsap -prefix R NSAP_ -externalname rnsap_ctrl -per /home/devitk/src/rnsap/rnsap_common.asn /hom e/devitk/src/rnsap/rnsap_const.asn /home/devitk/src/rnsap/rnsap_container.asn /h ome/devitk/src/rnsap/rnsap_ericsson.asn /home/devitk/src/rnsap/rnsap_ies.asn /ho me/devitk/src/rnsap/rnsap_pdu.asn /home/devitk/src/rnsap/rnsap_procedure.asn STEP2 - Swig Create the binary files. Log into the platform you want you create the binary files for. For Cygwin, make sure that you have make , swig and gcc installed. SWIG swig swig swig swig swig swig will create wrap.c and pm-files -module events perl event_decode.i -module nasCodec -perl nasCodec.i -module nbap -perl nbap.i -module pcap -perl pcap.i -module ranap -perl ranap.i -module rnsap -perl rnsap.i

swig -module rrc -perl rrc.i swig -module sabp -perl sabp.i STEP3 Makefile.PL example below is for SOLARIS use ExtUtils::MakeMaker; require 5.8.0; GPEH WriteMakefile( 'NAME' => 'events', # Name of package 'VERSION' => 'BB2_SOLARIS_3.0a', 'INC' => '-I/home/SIGNUM/solaris-2.4/8.3.1/include -I/home/SIGNUM/so laris-2.4/8.3.1/lib', 'OBJECT' => 'event_decode.o event_decode_wrap.o eventParam.o IntForm at.BB2.o /home/SIGNUM /OSSTOOLS_SOLARIS/solaris-2.4/8.3.1/lib/libasn1code.sa ' # Object files ); NBAP WriteMakefile( 'NAME' => 'nbap', # Name of package 'VERSION' => 'Nbap_SOLARIS_3.0a', 'INC' => '-I/home/ SIGNUM /solaris-2.4/8.3.1/include', 'OBJECT' => 'nbap.o nbap_wrap.o nbapdecoder.o /home/ SIGNUM /solaris-2. 4/8.3.1/lib/libasn1code.sa ' # Object files ); PCAP WriteMakefile( 'NAME' => 'pcap', # Name of package 'VERSION' => 'Pcap_SOLARIS_3.0a', 'INC' => '-I/home/ SIGNUM /solaris-2.4/8.3.1/include', 'OBJECT' => 'pcap.o pcap_wrap.o pcapdecoder.o /home/ SIGNUM /solaris-2. 4/8.3.1/lib/libasn1code.sa ' # Object files ); RANAP WriteMakefile( 'NAME' => 'ranap', # Name of package 'VERSION' => 'Ranap_SOLARIS_3.0a', 'INC' => '-I/home/SIGNUM/solaris-2.4/8.3.1/include -I/home/SIGNUM/NA S', 'OBJECT' => 'ranap.o ranap_wrap.o ranapdecoder.o /home/SIGNUM/solaris-2 .4/8.3.1/lib/libasn1code.sa nasCodec.o nasFuncBcc.o nasFuncCommon.o nasF uncGcc.o nasFuncGsm.o nasFuncMm.o nasFuncSms.o nasFuncSs2.o nasFuncCc.o na sFuncEncode.o nasFuncGmm.o nasFuncLs.o nasFuncRr.o nasFuncSs1.o nasFuncSs. o' # Object files ); RNSAP WriteMakefile( 'NAME' => 'rnsap', # Name of package 'VERSION' => 'RnsapSOLARISV1', 'INC' => '-I/home/SIGNUM/solaris-2.4/8.3.1/include', 'OBJECT' => 'rnsap.o rnsap_wrap.o rnsapdecoder.o /home/SIGNUM/solaris-2 .4/8.3.1/lib/libasn1code.sa ' # Object files ); RRC WriteMakefile( 'NAME' => 'rrc', # Name of package 'VERSION' => 'Rrc_SOLARIS_3.0a', 'INC' => '-I/home/SIGNUM/solaris-2.4/8.3.1/include -I/home/SIGNUM/NA S',

'OBJECT' => 'rrc.o rrc_wrap.o rrcdecoder.o /home/SIGNUM/solaris-2.4/8. 3.1/lib/libasn1code.sa nasCodec.o nasFuncBcc.o nasFuncCommon.o nasFuncG cc.o nasFuncGsm.o nasFuncMm.o nasFuncSms.o nasFuncSs2.o nasFuncCc.o nasFun cEncode.o nasFuncGmm.o nasFuncLs.o nasFuncRr.o nasFuncSs1.o nasFuncSs.o' # Object files ); SBAP WriteMakefile( 'NAME' => 'sabp', # Name of package 'VERSION' => 'sabp_SOLARIS_3.0a', 'INC' => '-I/home/SIGNUM/solaris-2.4/8.3.1/include', 'OBJECT' => 'sabp.o sabp_wrap.o sabpdecoder.o /home/SIGNUM/solaris-2.4/ 8.3.1/lib/libasn1code.sa ' # Object files ); STEP4 Be sure that us have perl 5.8.4 and gcc 4.1.2 or later. If you using old library for Cygwin, add following to ranapdecoder.c : void print_nas (NAS_PDU * nas_PDU) { int i; printf ("----List of the values in DirectTransfer to process in nasDecoder---- \n") ; for (i = 0; i < nas_PDU->length; ++i) { printf ("%02x", nas_PDU->value[i]); } printf ("\n"); } Create Makefile from Makefile.pl do this for all protocols Perl Makefile.pl make SOURCE FILES " /vobs/wds/swt/oss/ossasn1/solaris-2.4/bin/asn1, /vobs/iov/ran/testprogram/utran_decoders_src/nas_src/ " /vobs/rnc/rnsap/raw_asn " /vobs/rnc/rrc/asn " /vobs/rbs/sw/nbap/raw_asn, " /vobs/rnc/ranap/raw_asn, " /vobs/rnc/pcap/raw_asn, " /vobs/rnc/sabp/raw_asn

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy