Category Archives: Dave’s Tools

Tools – Tools/Script/Code written by Dave

itevad – How to write your own protocol and its stack – part 5

Previous_Part_4 In this post, we will begin our Itevad Protocol Text Encoder. Again, with the help of ASN.1 compiler, we have already got the structure of Itevad itself. Moreover, we have implemented binary encoder and decoder in previous post. For … Continue reading

Posted in Dave's Tools, H.248/MEGACO/EGCP, Programming, Stuff about Compiler | Tagged , | Leave a comment

itevad – How to write your own protocol and its stack – part 4

Previous_Part_3 In this post, we will continue our Itevad Protocol Binary Ber Decoder. With the help of ANS.1 compiler, not only do we get the structural description of Itevad protocol itself but also the necessary converting functions used to convert … Continue reading

Posted in Dave's Tools, H.248/MEGACO/EGCP, Programming, Stuff about Compiler | Tagged , , | Leave a comment

itevad – How to write your own protocol and its stack – part 3

Previous_Part_2 In this post, we will focus on writing Itevad Protocol Binary Ber Encoder. With the necessary headers and sources generated in Part_2, now we could write our Ber Encoder. Then we will run our encoder and use hexdump to … Continue reading

Posted in Dave's Tools, H.248/MEGACO/EGCP, Programming, Stuff about Compiler | Tagged , , , | 1 Comment

itevad – How to write your own protocol and its stack – part 2

Previous_Part_1 In this part, we will start to play with ASN.1 and asn1c – installing open source ASN.1 compiler, asn1c, writing ANS.1 description of Itevad and then compiling. Please note we will not cover detailed grammar of ASN.1 or how … Continue reading

Posted in Dave's Tools, H.248/MEGACO/EGCP, Programming, Stuff about Compiler | Tagged , , | Leave a comment

itevad – How to write your own protocol and its stack – part 1

From this post, as well as the following 4~6 posts, I will try to illustrate how to write your own protocol and its stack, step by step. You will learn all the related stuffs to write a carrier grade telecommunication … Continue reading

Posted in Dave's Tools, H.248/MEGACO/EGCP, Programming, Stuff about Compiler | Tagged , , , , , , , , | Leave a comment

jmgsim again – jmgsim-ov, git and github fantastic!

While Kenny (kenny.du@alcatel-lucent.com) is refactoring ‘jmgsim’ in java.net, I am looking for a better code repository to hold my initial, tested and verified source code of jmgsim for my personal reference as well as design mapping in first_post_of_jmgsim. Finally I … Continue reading

Posted in Dave's Tools, Programming | Tagged , , , , , , | Leave a comment

jmgsim – a Java implementation of H.248 media gateway simulator

‘jmgsim’ is a Java implementation of H.248 Media Gateway (MG) simulator and Media Gateway Controller (MGC) simulator used for testing real MG/MGC. It is coded within NetBeans 7.1 and has been published as a public project at ‘java.net’, as ‘kenai’ … Continue reading

Posted in Dave's Tools, H.248/MEGACO/EGCP, Programming | Tagged , , , , , , | Leave a comment

Auth Lib – with DH Key Exchange Algorithm, MD5 Digest Algorithm and Helper APIs

Finally, I’ve got time to summaries the authentication work I’ve done for MGC:) This post gives a useful C lib on authentication focusing on DH key exchange algorithm and MD5 digest helper APIs. Please note this lib should be built/used … Continue reading

Posted in Dave's Tools, Programming | Tagged , , , , | Leave a comment

coverity modeling build automation tool – cmbat (one way to write multiple-choice menu via shell)

I have been responsible for Coverity tool integration/test/support in ALU LCP (Linux Control Platform) dept for nearly 2 years.  In this post, I would share a ksh tool/framework wrote on 2009 for Coverity modeling build automation. However, I would not … Continue reading

Posted in Dave's Tools | Tagged , , | Leave a comment

state machine programming – smp

This is a little C program used to show the framework of state machine programming (smp,状态机编程). Detailed state transition picture is as below. Try to build the source code below and enjoy:) /* * State Machine Program (SMP) * This … Continue reading

Posted in Dave's Tools, Programming | Tagged , , | Leave a comment