Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Message conversion method, device, gateway device and storage medium

A conversion method and message technology, applied in data exchange networks, network connections, digital transmission systems, etc., can solve the problems of complex and difficult implementation, and achieve the effect of being simple to use, enriching network knowledge, and facilitating data interaction

Active Publication Date: 2021-05-18
北京东土军悦科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In practical applications, to achieve data interaction between devices following the CAN protocol and devices following the NAT protocol, it is necessary to build a complex network environment, which is complex and difficult to implement, and requires users to have extensive network knowledge to understand and implement CAN Data interaction between protocol and NAT protocol

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
  • Message conversion method, device, gateway device and storage medium
  • Message conversion method, device, gateway device and storage medium
  • Message conversion method, device, gateway device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] figure 1 It is a flowchart of the message conversion method provided by Embodiment 1 of the present invention. This embodiment is applicable to the mutual conversion of NAT messages and CAN messages. The method can be performed by a message conversion device, which can be implemented by software And / or hardware implementation, the device can be integrated in the gateway device. Such as figure 1 As shown, the method specifically includes the following steps:

[0050] S110. Receive a first packet.

[0051] The message conversion method of the present embodiment can carry out the mutual conversion of NAT message and CAN message, therefore, the first message that receives can be the message (being NAT message) that follows NAT protocol, also can be to follow CAN protocol The message (that is, the CAN message). Specifically, the NAT message can be received through the network port (that is, the network interface or the network card), and the CAN message can be received t...

Embodiment 2

[0059] On the basis of the foregoing embodiments, this embodiment provides an implementation manner of converting a NAT message into a CAN message. Explanations of terms that are the same as or corresponding to those in the foregoing embodiments will not be repeated in this embodiment.

[0060] When the first message follows the NAT protocol, searching for user configuration information according to preset information related to the first message to obtain processing information corresponding to the first message, including: from the first message The source IP address and the destination IP address are obtained from the header information; according to the source IP address and the destination IP address, the operation mode corresponding to the source IP address and the destination IP address is obtained from the user configuration information; if the The operation mode is forwarding, and the corresponding CAN channel is obtained from the user configuration information.

[0...

Embodiment 3

[0079] On the basis of the foregoing embodiments, this embodiment provides an implementation manner of converting a CAN message into a NAT message. Explanations of terms that are the same as or corresponding to those in the foregoing embodiments will not be repeated in this embodiment.

[0080] When the first message follows the CAN protocol, searching for user configuration information according to preset information related to the first message to obtain processing information corresponding to the first message, including: determining to receive the first message the CAN channel of the text; obtain the operation mode corresponding to the identification information of the CAN channel from the user configuration information; if the operation mode is forwarding, obtain the corresponding IP address from the user configuration information.

[0081] Correspondingly, converting the first packet into a corresponding second packet according to the processing information includes: det...

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 embodiment of the present invention discloses a message conversion method, device, gateway device and storage medium. The method includes: receiving a first message; searching for user configuration information according to preset information related to the first message, to Obtain processing information corresponding to the first packet; convert the first packet into a corresponding second packet according to the processing information; wherein, when the first packet follows the NAT protocol, the corresponding first packet The second message follows the CAN protocol; when the first message follows the CAN protocol, the corresponding second message follows the NAT protocol. The embodiment of the present invention can realize the bidirectional conversion of the NAT message and the CAN message.

Description

technical field [0001] Embodiments of the present invention relate to industrial Internet communication technologies, and in particular to a message conversion method, device, gateway device, and storage medium. Background technique [0002] The CAN (Controller Area Network, Controller Area Network) industrial bus protocol exists widely in the industrial and military fields because of its stability and reliability. NAT (Network Address Translation, Network Address Translation) can not only solve the problem of insufficient IP addresses, but also effectively avoid attacks from outside the network, hide and protect computers inside the network. [0003] At present, only intercommunication between devices conforming to the CAN protocol or intercommunication among devices conforming to the NAT protocol can be realized. In practical applications, to achieve data interaction between devices following the CAN protocol and devices following the NAT protocol, it is necessary to buil...

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): H04L29/06H04L12/66
CPCH04L12/66H04L61/2503H04L69/08H04L2012/40215
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
Eureka Blog
Learn More
PatSnap group products