CAN bus communication module design method based on dual-port RAM communication in Windows system

A CAN bus and communication module technology, applied in the Windows system field, can solve the problems of not providing a data buffer mechanism, unable to solve the speed mismatch between the host end and the CAN bus board, etc.

Pending Publication Date: 2020-10-30
TIANJIN JINHANG COMP TECH RES INST
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the above method does not provide a data buffer mechanism, and cannot solve the problem of speed mismatch between the host end and the CAN bus board

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
  • CAN bus communication module design method based on dual-port RAM communication in Windows system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0130] The present embodiment provides a CAN bus communication module design method based on dual-port RAM communication under a Windows system, including:

[0131] (1) Divide the dual-port RAM address space, and divide the dual-port RAM into six address areas for the basic information area of ​​the board, the sending and receiving buffer start address storage area of ​​the CAN channel, the command update flag area of ​​the CAN channel, The command area of ​​the CAN channel, the feedback status area of ​​the CAN channel, the error flag area of ​​the CAN channel, and the allocation of signal light resources;

[0132] (2) Initialize the CAN bus board, initialize hardware resources, and set interrupts;

[0133] (3) The main process of the communication module is to query and send CAN bus data and interrupt receiving processing. At the same time, set the working mode of the communication module according to the upper layer application command.

[0134] The steps (1), (2) realize...

Embodiment 2

[0137] like figure 1 As shown, in order to solve the CAN bus driver problem under the Windows system, this embodiment adopts an implementation method based on dual-port RAM communication. The content of this embodiment will be further described below.

[0138] 1. Divide the dual-port RAM address space

[0139] 1) The principle of using even addresses to store data, the smallest unit of memory address division is double bytes.

[0140] 2) Divide the memory address space into 6 intervals:

[0141] ① Board basic information area: used to store the board name, board number, memory size, dual-port RAM size and length, software version number, self-test result information of the board, board running status, self-test result, and working mode;

[0142] ②CAN channel sending and receiving buffer starting address storage area: used to store the starting address of the sending buffer area and the starting address of the sending buffer area of ​​each CAN channel;

[0143] ③The command...

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 Windows systems, and particularly relates to a CAN bus communication module design method based on dual-port RAM communication under a Windows system. The method comprises: firstly, dividing a dual-port RAM address space; secondly, initializing a CAN bus board card; and then, entering a CAN communication main process: regularly inquiring the commandupdating mark, and carrying out different working processes according to the mode set by the application program. The sending data is queried, and the receiving of the data is interrupted. Signal lampprotection is carried out on a dual-port RAM sharing area, and data read-write conflicts are prevented. The CAN bus board card communication function under the Windows system can be achieved, a double-port RAM communication mechanism is adopted in the scheme, and the interaction time of application software and a bottom layer board card is greatly shortened. And meanwhile, the dual-port RAM is used as an intermediate medium for data interaction, so that a data basis for fault location is provided for upper-layer application and bottom-layer board card programs, and program debugging is more convenient.

Description

technical field [0001] The invention belongs to the technical field of Windows systems, and in particular relates to a design method of a CAN bus communication module based on dual-port RAM communication under the Windows system. Background technique [0002] As a serial communication network for real-time control, CAN bus has the characteristics of strong real-time data communication between nodes in the network, and it is easy to form a redundant structure, which improves the reliability and flexibility of the system. [0003] TMS320F28335, as TI's high-performance 32-bit floating-point DSP processor, has the characteristics of high precision, low cost, low power consumption, high performance, and high integration of peripherals. It is often selected as a CAN bus communication module node in practical applications. [0004] TMS320F28335 does not have its own communication program, so users need to design it according to the characteristics of its registers, and the peers 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 Applications(China)
IPC IPC(8): G06F13/42H04L12/40
CPCG06F13/4282H04L12/40H04L2012/40215
Inventor 高娟
Owner TIANJIN JINHANG COMP TECH 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