A kind of ttcan bus time synchronization and method for sending data

A CAN bus and data transmission technology, applied in the field of TTCAN bus time synchronization and data transmission, can solve the problems of inaccurate timing and confusion of program logic, and achieve the effect of reducing the number of interrupts and avoiding system logic confusion.

Active Publication Date: 2016-09-14
CHINA NORTH VEHICLE RES INST
View PDF6 Cites 0 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 that require timing, the program will generate more interrupts. The program will be interrupted in unknown circumstances, and the timing will be inaccurate under the nesting of multiple interrupts, which will seriously confuse the program logic

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
  • A kind of ttcan bus time synchronization and method for sending data
  • A kind of ttcan bus time synchronization and method for sending data

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 in particular relates to a method for timing and sending data by a TTCAN bus. The method provided by the technical solution of the present invention is applied to the TTCAN bus time slave node to receive the time master node timing message, and in the process of sending the message regularly in the matrix cycle, the system working time can be reasonably allocated, and the bus node can be accurately timed and in the specified time. The bus data is sent periodically in the time slice, and other functions of the system are completed in the idle time slice. The present invention adopts the timer T0 interrupt with higher interrupt priority in the single-chip microcomputer or DSP, so when this interrupt is executed, it will not be interrupted by other low-priority interrupts to cause errors in the bus timing time, and only in the T0 interrupt process Complete the functions of bus time synchronization and sending bus data according to the matrix cycle, and realize other functions of the system in the idle time slice at the same time. Reduce the number of interrupts to avoid system logic confusion caused by more interrupt nesting.

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
Patent Type & Authority Patents(China)
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