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

A 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 paying attention to the logical relationship between the two protocols, not considering the variety of application layer protocols, and the conversion logic does not support modification, etc.

Active Publication Date: 2020-04-03
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
  • A programming method of can-lonworks protocol conversion logic
  • A programming method of can-lonworks protocol conversion logic
  • A 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 with reference to the embodiments of the accompanying drawings.

[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 the operator and define the priority of each operator, as shown in Table 1;

[0038] Table 1 Operators

[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, 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 vari...

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 for CAN-LonWorks protocol conversion logic, comprising the following steps: defining operators and defining the priority of each operator; defining unique digital codes corresponding to protocol variables; according to CAN-LonWorks protocol conversion requirements, using Operands and operators, and formulate the explicit assignment expressions of each protocol variable through operator rules; compress and convert the explicit assignment expressions, so as to encode the explicit assignment expressions into implicit assignment expressions; The assignment expression is checked, if the parsing is correct, the check is passed and a line of end mark "END" is appended at the end of the assignment expression. The programming method of the CAN-LonWorks protocol conversion logic provided by the present invention performs on-demand programming on the conversion logic to adapt to different application occasions.

Description

technical field [0001] The invention relates to a programming method of 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, and 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
Patent Type & Authority Patents(China)
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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products