Digital telephone system based on CAN bus Design and Implementation

Author
HeHeng
Advisor
YangXiaoLong
School
University of Electronic Science and Technology
Major
Communication and Information System
Classification
TN916.34 Digital Telephone
Degree
Master's thesis
Year
2011
Downloads
55
Citations
0

Request the full text

Abstract

CAN (Control Area Network) bus is a widely used field bus, with high bitrates (up to 1Mbps), long transmission distance (farthest 10Km), and good interference immunity. It is a multi-master system and with self-exchange properties. Based on the above advantages, CAN bus can be applied to the telephone system, to solve problems of traditional PBX (Private Branch Exchange) on expensive switching equipment, complicated wiring, small capacity, etc. Moreover, taking into account that CAN bus is widely used in industrial automation and control, CAN bus-based digital telephone system can be applied to voice communication in industrial field, which is with poor and complicatied environment that the wireless communications industry can not be with good effect. It has broad application prospects.This article discusses the design and implementation of CAN bus-based digital telephone systems, which includes CAN bus-based digital phone, CAN bus-based digital telephone network’s gateway to PSTN and to VoIP network. The system is designed to relieze voice communication during CAN bus-based digital phone without gateway, and inter-communication with phones of PSTN and VoIP network with gateway.The system is with L9320 as the ADPCM speech codec, ATmega16 as the master control chip, MCP2515 as the CAN controller, PCA82C250 as the CAN transceiver. C and assembly language are used in software, and ICC-AVR is as the build environment. The programes are downloaded to MCU (Micro Control Unit) through the ISP (In-System Programming) interface.The main contents are as follows:1, illustrating the general design of CAN bus-based digital telephone, CAN bus-based telephone network’s gateway to VoIP network and to PSTN; and the chip selections of all nodes as above;2, detailing the system topology design, the frame structure design, signaling design, number allocation scheme, the calling flow and the short messaging process; 3, detailing the implementation and detailed design of CAN bus-based digital phone on hardware and software;4, to solve the difficulty on the interface and conmmunication of MCU and L9320’s PCM/ADPCM serial interface, bringing forward an interface scheme that simulates the timing sequence of PCM/ADPCM serial interface, using assembly language. For the similar on timing of L9320’s PCM/ADPCM serial interface and DSP’s McBSP, the scheme also provides a way to implemente McBSP by software in MCU.

Table of contents

Summary 4-5 ABSTRACT 5-15 first chapter 15-21 1.1 Introduction 15-17 1.2 digital phone system structure based on CAN bus 17-19 1.2.1 topology design 17-18 1.2.2 Capacity Description 18 < br /> 1.2.3 on multi-way call concurrent support 18-19 a 1.3 system advantages and applications prospects 19-20 1.4 topics are found; 20-21 Chapter II CAN bus technology Introduction 21-31 2.1 CAN bus protocol hierarchy 21-23 between 2.2 CAN bus network node communication 23-24 2.3 CAN bus protocol frame structure the data frame 24-28 2.3.1 24-25 2.3.2 Remote frame 25 2.3.3 error frame 25-26 2.3.4 overload frame the frame interval 26-27 2.3.5 27-28 2.4 packet filtering, checksum encoding 28 2.5 Reliability Description 28-30 2.6 bit timing and synchronization 30-31 Chapter overall system design 31-43 3.1 CAN controller chip MCP2515 About 31-34 3.1.1 devices Overview 31-32 3.1.2 packet transceiver 32-33 the 3.1.3 bit timing and synchronization 33 3.1.4 interrupt 33 - 34 3.2 controller chips, the ATmega16 Profile 34-37 3.2.1 the structure overview 34-35 3.2.2 AVR the CPU kernel summarized 35 -36 3.2.3 AVR microcontroller instruction execution 36-37 3.3 CAN bus transceiver part design 37-38 3.4 based on CAN bus digital telephone terminal 38-41 3.5 PSTN / CAN gateway design 41-42 3.6 VoIP / CAN gateway 42-43 Chapter system functional design 43-59 4.1 function model 43-44 4.2 ID field definition-cum-frame structural design 44-47 4.2.1 ID field defined 44-45 4.2.2 data frame classification and function 45-47 4.3 the CAN digital telephone system signaling design 47 - 51 4.3.1 call management signaling 47-48 4.3.2 multicast management signaling nbsp the; 48-50 4.3.3 Number management signaling 50-51 4.4 Number distribution plan design 51-55 4.4.1 Overview of the program the 51-52 4.4.2 Number allocation process 52-53 4.4.3 Number important issue of the allocation process 53-55 4.4.4 The program defects 55 4.4.5 simplifies program 55 4.5 calls and SMS process design 55-59 4.5.1 Netcom words flow 55-56 4.5.2 outs, call process (to the PSTN network) 56-57 4.5.3 Incoming call flow (from the PSTN network) 57-58 4.5.4 VoIP network call flow nbsp the; 58 4.5.5 SMS transceiver flow the 58-59 fifth chapter. based on CAN bus, the detailed design of the digital telephone terminal 59-83 the 5.1 hardware design 59-64 5.1.1 MCU part the 59-61 5.1.2 CAN bus part 61 5.1.3 voice processing part 61-62 5.1.4 keyboard and LCD part the 62-63 5.1.5 external storage part 63 5.1.6 power section 63-64 5.2 software design the 5.2.1 compiler environment About 64-73 64 5.2.2 system main program flow 64-68 5.2.3 initialization process 68-70 5.2.4 CAN bus frame transceiver function 70-71 5.2.5 voice and tone important subfunction 71-73 5.3 L9320 and MCU interface design 73-79 5.3.1 L9320 PCM / ADPCM serial interface description 74-75 5.3.2 MCU with PCM / ADPCM serial interface hardware connectivity solutions 75 5.3.3 MCU with PCM / ADPCM serial interface software connectivity solutions to achieve 75 -79 5.3.4 timing errors and programming requirements 79 5.4 debugging process 79-83 5.4.1 debugging environment 79 -80 5.4.2 CAN bus transceiver functions the 80-81 5.4.3 voice capabilities to debug the 81-82 5.4.4 system debugging 82 5.4.5 physical map 82-83 Chapter Summary and Outlook 83-85 6.1 Full Summary 83-84 6.2 Future Job Outlook 84-85 thank the to References 85-86 86-89 Appendix digital telephone terminal based on CAN bus list of major software program research during the study period 89-94 94-95

Related dissertations

  1. Intelligent Home Control System Based on the CAN Bus
    ZhuXiaoLi ·Hefei University of Technology ·2012 ·Master's thesis
  2. Design of Intelligent Remote Controller for Human-computer Interaction Based on2.4G Wireless Transmission
  3. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  4. The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
  5. The Design of Monitoring System for the Photovoltaic Plant Based on DSP
  6. Design and Application of the Distributed Monitoring System Based on Embedded Web
  7. The Design of Hybrid Electric Bus Data Acquisition and Test System
    LiHuiXian ·Hunan University ·2012 ·Master's thesis
  8. Industrial Field Data Acquisition System Design Based on CAN Bus
  9. Design of the Hazard Source Monitoring System Based on CAN Bus
  10. The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
  11. Research on Data Acquisition System of Can Bus
  12. The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
    QianYiWei ·Hunan University ·2013 ·Master's thesis
  13. Design of Remote Monitoring System of Agricultural Field Information Based on GPRS Network
    FeiYongYun ·Nanjing Agricultural College ·2013 ·Master's thesis
  14. Design and Implementation of Intelligent Wiring Hardness Detection System
  15. Research on Indoor Localization System for Intelligent Wheelchair
  16. Research on CAN Bus Communication and Application Experiments
    WangHuaWei ·Harbin Institute of Technology ·2012 ·Master's thesis
  17. Based on Can Field-bus Technology and Web Service Home Intelligent Control System Design and Realization
  18. Research of Fieldbus Relay Basing on CAN Bus
  19. Research and Realization of Fieldbus Conversion and Monitoring System Based on ARM
    ZhaoBo ·Dalian Polytechnic University ·2012 ·Master's thesis
  20. CAN Network Development of Commercial Vehicle
    MaJiZhou ·Xi'an University of Petroleum ·2012 ·Master's thesis