TTCAN bus timing and data transmitting method

A technology of CAN bus and sending data, which is applied in the field of TTCAN bus time synchronization and sending data, can solve problems such as program logic confusion and timing inaccuracy, and achieve the effect of reducing the number of interruptions and avoiding system logic confusion

Active Publication Date: 2014-09-10
CHINA NORTH VEHICLE RES INST
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the dual redundant channel A channel and B channel of the CAN bus need to occupy a dedicated timing interrupt respectively, receiving CAN bus data will also generate an interrupt, and in addition to implementing other functions in the program

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • TTCAN bus timing and data transmitting method
  • TTCAN bus timing and data transmitting method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0046] This embodiment provides a matrix cycle of the TTCAN bus applied to a certain vehicle such as figure 2 As shown, the baud rate of the CAN bus is 1M, and the standard frame data format of 6 bytes. A time slice occupies 175us, a basic cycle consists of 8 time slices, and a matrix cycle consists of 5 basic cycles, so a matrix cycle takes 7ms. The time master node is ECU1, and the current time slave node is ECU2. The control core of this node is DSPTMS320LF28335, and the internal clock is 150M. The timing period of T0 register initialization is T=175us. It takes T1=110us time to calculate the time of receiving the time synchronization message from the master node ECU1. Then T-T1=65us, N=7ms / 175us=40.

[0047] Such as figure 1 As shown, the working process of the present embodiment is as follows:

[0048] 1. Initialize the DSP system control;

[0049] 2. Turn off all interrupts;

[0050] 3. Configure the DSP to interrupt T0 and Receive_can; initialize the CAN contro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the technical field of information communication and particularly relates to a TTCAN bus timing and data transmitting method. According to the technical scheme, the method is applied to TTCAN bus time receiving host time node timing information from nodes, system operation time can be distributed reasonably in the process of transmitting the information is a timing manner in a matrix cycle, accurate bus node timing can be implemented, bus data can be transmitted regularly in the prescribed time slice, and other system functions can be completed in the idle time slice. A timer T0 with higher priority is interrupted internally through a single-chip microcomputer or DSP, the errors of the bus timing time can be avoided since interruption caused by other interruption with the lower priority is avoided during interruption, bus timing and bus data transmitting functions according to the matrix cycle can be implemented in the T0 interruption process, and the other system functions can be completed in the idle time slice; interruption number is decreased, and system logic confusion caused by large amount of nested interruptions can be avoided.

Description

technical field [0001] The invention belongs to the technical field of information communication, and in particular relates to a method for timing and sending data by a TTCAN bus. Background technique [0002] Since the invention of CAN bus technology by German BOSCH company in the 1980s, CAN bus, as a network communication control method, has been widely used in automobiles, aviation, industrial control, automatic control and other fields. With the gradual increase of nodes distributed in the communication network, the communication delay time caused by the priority arbitration mechanism of the bus increases. In order to solve the real-time requirements of bus communication, the international standard ISO 11898-4 is proposed in the session layer of the CAN protocol stack. A time-triggered communication protocol TTCAN is proposed. In the TTCAN communication network, the time master node periodically sends timing messages, and other time slave nodes receive timing messages a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F13/38H04L29/06
Inventor 刘娇娜门义双刘树林蒋明军侯毅王雪涛刘斌高云琨苗秋实周婧郭亮王光辉徐静
Owner CHINA NORTH VEHICLE RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products