- Easy to use (that is why we call it EasyAsn)
- Automatically generate codec source codes (C style only for the moment) for 3GPP NGAP, S1AP, X2AP, XNAP etc.
- Automatically generate dummy test source codes
- Automatically generate wireshark-like message dumpping codes (for trouble-shootings)
-
Prerequisite
Any Linux style system with gcc 4.3.0 or above.
-
Clone project to local folder, saying /workings/tmp/easyasn_ngap
NOTE: Do not change the sub folders' structure.
-
Generate example codec using the shipped tool asn_aper_gen_v125
linux-vm2:/ # cd /workings/tmp/easyasn_ngap/
linux-vm2:/workings/tmp/easyasn_ngap # ls
asn_aper_gen_v125 ngap_asn README test
linux-vm2:/workings/tmp/easyasn_ngap # ./asn_aper_gen_v125 NGAP ./ngap_asn/ngap-class-0.8.0.asn ./ngap_asn/ngap-const-0.8.0.asn ./ngap_asn/ngap-main-1.0.0.asn LTE_ ./test/ngap_codes/
- Check that codes shall be generated in sub-folder test/ngap_codes
linux-vm2:/workings/tmp/easyasn_ngap # ls test/ngap_codes/
LTE_NGAP_Dec.c LTE_NGAP_Dec.h LTE_NGAP_DISP.c LTE_NGAP_DISP.h LTE_NGAP_Enc.c LTE_NGAP_Enc.h LTE_NGAP_IE.h LTE_NGAP_TST.c LTE_NGAP_TST.h
- Build test executable ngap_code_tst based on the generated codes
linux-vm2:/workings/tmp/easyasn_ngap # cd test/release/
linux-vm2:/workings/tmp/easyasn_ngap/test/release # make clean
linux-vm2:/workings/tmp/easyasn_ngap/test/release # make
Building file: ../ngap_codes/LTE_NGAP_DISP.c
Invoking: GCC C Compiler
gcc -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"ngap_codes/LTE_NGAP_DISP.d" -MT"ngap_codes/LTE_NGAP_DISP.d" -o "ngap_codes/LTE_NGAP_DISP.o" "../ngap_codes/LTE_NGAP_DISP.c"
...
Finished building target: ngap_code_tst
- Run the test executable and generate a log file
linux-vm2:/workings/tmp/easyasn_ngap/test/release # ls
makefile manual ngap_codes ngap_code_tst
linux-vm2:/workings/tmp/easyasn_ngap/test/release # ./ngap_code_tst
>> [INFO ] Choice bunch 1 ...
>> 1 Test OK, 0 Test failed.
- The test result is logged into file ngap_src_test.log
linux-vm2:/workings/tmp/easyasn_ngap/test/release # ls
makefile manual ngap_codes ngap_code_tst ngap_src_test.log
- For more usage of the tool please try:
linux-vm2:/workings/tmp/easyasn_ngap # ./asn_aper_gen_v125 -h
- For extended help, contact author via email (included in source codes generated).