本文主要目的是依據SAE J1939協定,針對CAN通訊網路電子控制單元(ECU)進行大客車網路管理功能應用程式介面函式庫API (Application Programming Interface)之研發。 本研究首先使用C/C++語言,進行API程式編輯,先以Freescale公司Code Warrior開發軟體編譯完成後,藉由Freescale之USB Multilink Interface,線上燒入置Freescale MC9S08DZ60晶片中,並結合測試軟體及CAN介面,進行ECU大客車網路管理功能應用程式介面函式庫之開發,完成網路管理功能API後,進行API的轉移,將網路管理API移植到Infineon公司所生產的XC2336B晶片中,完成移植後開始系統的測試,ECU、節點或閘道器網路管理功能測試,達成網路管理API可移植之目的。 本文依據AUTOSAR規範,完成SAE J1939-81協定之最小網路管理功能,實現SAE J1939-81協定規範中的地址聲明功能、請求地址聲明功能或回應請求地址聲明訊息、可程式編輯ECU名字地址等,並於上電期間能保持已配置完成之網路配置。本研究成果可提供大客車、貨卡車或工程機械零件廠及車輛製造廠,在車輛網路EUC元件或系統模組開發階段引用,藉以提昇國內車輛電子產業相關技術。
This artical completion of the J1939 Network Management function Application Programming Interface(API) of SAEJ1939 protocol on Controller Area Network (CAN) electronic control unit(ECU) of motor coach. This research compiles the API program based on C/C ++ language by Freescale CodeWarrior , and online programming to MC9S08DZ60. Combining the testing software and CAN interface , this research proceeds the development of the API of network management of Motor coach of SAEJ1939 on ECU,. After the completion of the network management function API on MC9S08DZ60 , The network management API ported to the company produced XC2336B Infineon chip, After the completion of the transplant , began testing the system , network management function , include ECU, node and gateway,to achieve the purpose of portable network management API. This article based on AUTOSAR specification , completes Minimum Network Management Capability of SAE J1939-81. Also,this research implements the Address Claim Function,Address Claim Requirements Function , ECU can edit the name and address and so on, Maintaining the network configuration has been configured during power on. This research can be involved into vehicle parts supplier or vehicle manufacturer for developing the ECU of network on vehicle or system module.And,it improves the domestic relevant industry technology of telematics.