Message conversion method and device, gateway equipment and storage medium
A conversion method and technology of gateway equipment, applied in the direction of data exchange network, network connection, digital transmission system, etc., can solve the problems of complex and difficult implementation, and achieve the effect of simple use, rich network knowledge, and convenient data interaction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com