Method and device for receiving and transmitting mailbox message of CAN bus controller

A CAN bus and controller technology, applied in the DSP field, can solve problems such as poor application reliability and low resource utilization, and achieve the effects of improving reliability, improving utilization, and reducing system resource consumption

Active Publication Date: 2021-07-20
BEIJING INST OF SPACE LAUNCH TECH
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above problems, the embodiments of the present invention provide a method and device for transmitting and receiving mailbox messages of a CAN bus controller, which solves the technical problems of low utilization rate of existing CAN mailbox resources and poor application reliability

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
  • Method and device for receiving and transmitting mailbox message of CAN bus controller
  • Method and device for receiving and transmitting mailbox message of CAN bus controller
  • Method and device for receiving and transmitting mailbox message of CAN bus controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer and clearer, the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0023] The mailbox message sending and receiving method of CAN bus controller of an embodiment of the present invention is as figure 1 shown. exist figure 1 , this example includes:

[0024] Step 100: Initialize the message sending and receiving status of the mailbox by assigning a value to the determination flag of the general register, sequentially obtain the key register pointers of each mailbox, and initialize a...

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 provides a method and a device for receiving and transmitting mailbox messages of a CAN bus controller, which solve the technical problems of low resource utilization rate and poor application reliability of the existing CAN mailbox. The method comprises the following steps of: assigning a determination flag bit of a general register to initialize a message receiving and transmitting state of a mailbox, sequentially obtaining a key register pointer of each mailbox, and carrying out initialization assignment on a pointing address of the key register pointer to sequentially initialize the mailbox; judging the sequence of the mailbox state according to the receiving flag bit in the general register in the mailbox receiving response process, caching the received content in the mailbox, and updating the mailbox state; and in the mailbox sending response process, judging the message sending state according to the general register sending flag bit, caching the sent content, and updating the mailbox state. The problems that mailbox configuration and receiving and sending processes are complex, frames are prone to being lost, DSP hardware resources are wasted and the like are solved, and reliable data receiving and sending under the high-speed and high-load-rate conditions are achieved.

Description

technical field [0001] The invention relates to the technical field of DSP, in particular to a method and device for sending and receiving mailbox messages of a CAN bus controller. Background technique [0002] In the prior art, the C28x series DSPs are a series of DSPs developed by TI. Such DSPs are embedded with CAN bus controllers, have CAN2.0B channels up to 1Mbps, have high security levels and fast communication rates, and can Reliable communication in the electromagnetic environment. The bus controller can configure up to 32 mailboxes in memory by using the CAN channel, and each mailbox can be configured as a sending or receiving mailbox. [0003] Due to the large number of CAN mailboxes of the C28x series DSP, the configuration and use steps are complex, which usually involves the setting and feedback of a large number of special registers and flag bits in the CAN bus controller, and there is no general setting logic strategy. For the convenience of configuration, u...

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 Applications(China)
IPC IPC(8): H04L12/40H04L12/58H04L12/24
CPCH04L12/40006H04L41/0806H04L41/0823H04L2012/40215H04L51/42Y02P90/02
Inventor 夏欢赵志刚骆志伟何刚王辉赵宏志高枫许宝立陈世业刘宇航
Owner BEIJING INST OF SPACE LAUNCH TECH
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