Communication method capable of self-adaptively switching between two speeds of CAN (Controller Area Network) bus

A CAN bus, adaptive switching technology, applied in the bus network, data exchange network, data exchange through path configuration, etc., can solve problems such as difficulty in adapting to changes in communication rates

Inactive Publication Date: 2012-05-02
中国人民解放军第二炮兵装备研究院第三研究所
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the smart instrument has a setting interface, the operator can set the rate before connecting to the sys

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] Embodiment 1: a communication method for adaptively switching between two CAN bus rates, comprising the following steps:

[0031] a. Assume that there is an intelligent instrument numbered 0 and other M intelligent instruments numbered 1 to M in the system using the CAN bus; the intelligent instrument numbered 0 sets the communication speed of the CAN bus to A or B;

[0032] b. Perform the following steps after the smart instrument with the number 0 is powered on:

[0033] b1. let i=1;

[0034] b2. According to the communication rate of the CAN bus is set to A or B, let the variable bLastSpeed ​​representing the last successful communication rate between the intelligent instrument and the system be 0 or 1;

[0035] b3. Set the current communication rate of the CAN bus to A;

[0036] b4. Communicate with the intelligent instrument numbered i, and assign bLastSpeed ​​to the intelligent instrument numbered i;

[0037] b5. Wait for nTime;

[0038] b6. If the returned d...

Embodiment 2

[0054] Embodiment 2: as described in embodiment 1, the communication method of self-adaptive switching between CAN bus two kinds of rates is characterized in that: the variable bLastSpeed ​​of described expression intelligent instrument and system last successful communication rate is stored in each intelligent instrument in the power-off storage unit.

Embodiment 3

[0055] Embodiment 3: as described in embodiment 1, the communication method of self-adaptive switching between CAN bus two kinds of speeds, it is characterized in that: the variable bLastSpeed ​​of described smart instrument and system successful communication rate last time is powered on the smart instrument is a random variable.

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 computer network communication, and in particular relates to a method for automatically adapting to speed change of a bus. The technical scheme of the invention provides a communication method capable of self-adaptively switching between two speeds of a CAN (Controller Area Network) bus and an intelligent instrument can automatically adapt to the bus speeds of different systems by two ways as follows: one way is that a No.0 intelligent instrument is used for setting bus speeds for other intelligent instruments; and the other way is that the bus speeds can be automatically indentified and configured by the other intelligent instruments, so that the artificial configuration is not needed.

Description

technical field [0001] The invention belongs to the technical field of computer network communication, and in particular relates to a method for automatically adapting to bus rate changes. Background technique [0002] In the field of modern measurement and control, CAN bus technology is often used. Its characteristic is that multiple intelligent instruments (number 0~M) are connected to CAN bus. Each intelligent instrument has its own address and independent function. Or real-time information to form an integrated measurement and control system. Generally speaking, the CAN bus communication rate of the system is fixed, and each intelligent instrument only needs to be set to a fixed value as required. [0003] However, in some special applications, such as the bus communication rates of the two systems are different, but the intelligent instruments connected to the bus are required to be common, or the same system needs to use A communication rate in one environment, but in...

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): H04L12/24H04L12/40
Inventor 彭晓军张明照孟涛林红斌胡斌刘辉解静张强
Owner 中国人民解放军第二炮兵装备研究院第三研究所
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