Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Programming method of CAN-LonWorks protocol conversion logic

A protocol conversion and programming method technology, which is applied in the programming field of CAN-LonWorks protocol conversion logic, can solve the problems of not considering the variety of application layer protocols, not paying attention to the logical relationship between the two protocols, and the conversion logic does not support modification, etc.

Active Publication Date: 2017-10-13
NINGBO CRRC TIMES TRANSDUCER TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing protocol converters focus on the conversion of the two underlying protocols of the bus, and only convert the CAN protocol and the LonTalk protocol, without considering the variety and variety of the application layer protocols, and not paying attention to the connection between the two protocols. Complex logical relationship, that is, the complex logical relationship between the format of the LonTalk protocol (message type, data, etc.) and the format of the CAN protocol (frame type, frame format, identifier, data, etc.) is not converted, it can be considered completed It is only a transparent transmission between LonTalk protocol and CAN protocol, and its conversion logic does not support modification

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
  • Programming method of CAN-LonWorks protocol conversion logic
  • Programming method of CAN-LonWorks protocol conversion logic
  • Programming method of CAN-LonWorks protocol conversion logic

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 embodiments.

[0036] The programming method of the CAN-LonWorks protocol conversion logic in the present embodiment is characterized in that comprising the following steps:

[0037] Step 1, define operators and define the priority of each operator, as shown in Table 1;

[0038] table 1 operator

[0039]

[0040] Step 2. Define the unique digital code corresponding to the protocol variable. The protocol variable includes CAN identifier, LonTalk message code or network variable selector, CAN data, and LonTalk data, as shown in Table 2;

[0041] Table 2 Protocol variables

[0042]

[0043] Step 3. According to CAN-LonWorks protocol conversion requirements, use operands and operators, and formulate explicit assignment expressions for each protocol variable through operator rules. The operands include decimal values, hexadecimal values, and protocol variab...

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 relates to a programming method of CAN-LonWorks protocol conversion logic. The method includes: defining operators and the priority of each operator; defining the only digital code corresponding to each protocol variable; using operation number and the operators to compile the explicit assignment expression of each protocol variable according to CAN-LonWorks protocol conversion requirements and through operator rules; performing compression conversion on the explicit assignment expressions to encode the explicit assignment expressions into implicit assignment expressions; inspecting the implicit assignment expressions, determining that the inspection is passed if the implicit assignment expressions are correctly analyzed, and adding ending tags 'END' to the tails of the assignment expressions. The programming method programs the conversion logic according to needs to adapt to different application occasions.

Description

technical field [0001] The invention relates to a programming method for CAN-LonWorks protocol conversion logic. Background technique [0002] CAN is an ISO international standardized serial communication protocol. CAN bus is widely used in the fields of automobile and industrial measurement and control because of its good anti-interference and low cost. The CAN bus protocol provides the OSI reference model three-layer protocol (physical layer, data link layer and application layer), and defines the physical layer and data link layer. The application layer protocol is defined according to the application object. The data frame format of the CAN protocol is as follows: figure 1 , including 7 parts: Start of Frame, Arbitration Field, Control Field, Data Field, CRC Field, ACK Field, Frame End of Frame. Among them, the frame start, CRC field, response field, and frame end are automatically completed by the CAN controller, and the arbitration field, control field, and data fie...

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): G06F13/40
CPCG06F13/4009
Inventor 杨玉钊周峰包演生王飞郑良广
Owner NINGBO CRRC TIMES TRANSDUCER TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products