Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages

A CAN bus, IP data packet technology, applied in the field of satellite communication, can solve the problems of increased transmission cost, power consumption and volume, difficulty in meeting demand, inconvenient data processing and application layer programming, etc., to achieve good reusability and convenience. development effect

Active Publication Date: 2011-11-23
NAT UNIV OF DEFENSE TECH
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The problems existing in the existing solutions mainly include: the CAN gateway and the CAN-to-Ethernet device are both implemented by hardware. Although they work well in general occasions, they occupy a certain volume and weight for occasions with strict requirements such as micro-applications and space environments. As a result, the launch cost, power consumption and volume increase, making it difficult to meet the demand
However, all CAN message frame communication is used, which brings a lot of inconvenience to data processing and application layer programming.

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 for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages
  • Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages
  • Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0036] Such as figure 1 Shown is the CAN frame format used in the method of the present invention. Among them, the FF field is the frame format flag, which is set to 1; the RTR field identifies the frame type, RTR=0 means a data frame, RTR=1 means a remote frame, and DLC means the actual data length when the frame type is a data frame. Its basis is the CAN2.0B extended frame, and the specific modification is described as follows:

[0037] (1) Define the unused 5-6 bits of the first byte of the CAN frame as the IPoCCtrl field. When IPoCCtrl is 1, it means that the CAN message is the first CAN message divided by the IP packet; when it is 2, it means the middle CAN message divided by the IP packet; when it is 3, it means the last CAN message divided by the IP packet. And when IPoCCtrl is 0, it means that the CAN message is not obtaine...

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 discloses a method for converting data format between IP data packages on a CAN bus and CAN messages, comprising the steps of: (1) virtualizing a CAN interface: while registering a CAN device in a system, registering according to the standard format of a registered Ethernet interface; while defining an input/output interface module, using a custom IPoverCAN processing interface for interacting with a network layer and the CAN device; and (2) sending IP messages and receiving CAN messages: while sending IP messages, invoking a Socket interface used by the Ethernet interface, and invoking to an IPoverCAN module after invoking layer by layer by the system; while receiving the CAN messages, placing the CAN messages from the same source address in the same IP packet buffering area, and submitting to an upper layer until a complete IP packet is assembled. In the invention, a hardware structure is simplified, the application range is expanded, and the upper layer application is wider so that the processing of data and application programming by the upper layer is convenient by abstracting the CAN device to be an Ethernet interface.

Description

technical field [0001] The invention mainly relates to the field of satellite communication, in particular to a method for converting data formats between IP data packets and CAN messages on a CAN bus between satellite payloads. Background technique [0002] The full name of CAN is "Controller Area Network", which is a multi-master serial communication bus. The basic design specification requires high bit rate, high resistance to electromagnetic interference, and the ability to detect the generated Any mistakes, so it is considered one of the most promising fieldbus. At present, in addition to being used in the field of automotive electronics, CAN-bus is also widely used in many fields such as industrial field control, power communication, community security, environmental monitoring, aerospace and navigation. [0003] The existing CAN bus networking solutions are mainly: multiple CAN devices are connected to the CAN bus, and the main control terminal is connected to the CA...

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/56H04L12/40H04B7/185H04L12/70
Inventor 刘波吴纯青虞万荣赵宝康董绍进时向泉王小峰
Owner NAT UNIV OF DEFENSE 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