TD-SCDMA is the 3rd generation mobile communication system having self-owned intellectual property. This system consists 3 parts: Radio Network Controller (RNC), NodeB and User Equipment (UE). The Iub interface, which is between RNC and NodeB, provides the flowing functions:(1) user data transmission;(2) control message exchange;(3) logical O&M (operation and maintenance);NodeB Part Application Protocol (NBAP) protocol is the controlling protocol between RNC and NodeB, through which the parameter of physical layer and transmission layer can be configured.The paper is a dissertation of project developing experience, the implentmentation of NBAP protocol. The main content and refered technology:(1) flows of NBAP protocol, the key point of implantation;(2) NBAP protocol encode/decode and transmission: NBAP protocol is defined by Abstract Sytax Notation One (ASN.1), and use Packed Encoding Rule (PER) for transmission; We use commercial ASN.1 tool to change ASN.1 to target language;(3) implementation frame of NBAP: threads and processing flows.(4) NBAP test and validation, by all kind of test cases;The first edition NBAP implementation is multi-thread running. The key idea is: The uplink message and downlink message are handling separately, using global link list, buffer queue and semaphore for information exchange. The program is well worked and can handle more than one message at the same time.The final test result indicates that our implementation is very successful, which can provide prototype and technical accumulation for future product developing. |