Supercharge Your Innovation With Domain-Expert AI Agents!

Data recording method for simultaneously recording CAN protocol data and Modbus protocol data

A protocol data and data recording technology, applied in the input/output process of data processing, electrical digital data processing, input/output to the record carrier, etc. Achieve the effect of reducing the number of uses, improving reliability, and ensuring consistency

Pending Publication Date: 2021-11-02
中国船舶重工集团公司第七0三研究所
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Secondly, since the two protocols are recorded by different data recorders, the time of the recorded CAN and Modbus bus protocol data is offset, which reduces the reference of the recorded data

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
  • Data recording method for simultaneously recording CAN protocol data and Modbus protocol data
  • Data recording method for simultaneously recording CAN protocol data and Modbus protocol data
  • Data recording method for simultaneously recording CAN protocol data and Modbus protocol data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The present invention is described in more detail below in conjunction with accompanying drawing example:

[0015] combine Figure 1-4 , the present invention simultaneously records CAN protocol data and the data recording method signal interface schematic diagram of Modbus protocol data as figure 1 As shown, when the data logger is in the data recording state, the processor will simultaneously obtain CAN data and CAN interrupt signals from the CAN receiving module, and obtain Modbus data and Modbus status from the Modbus receiving module. Among them, the CAN interrupt signal and the Modbus status signal provide information for when the data logger records two kinds of data. refer to figure 2 , the Modbus receiving module is called in the main function, which belongs to the polling mode, that is, it requests Modbus to obtain data every second. The CAN receiving module is called by the CAN interrupt. Whenever there is new CAN data, the data logger will jump out of th...

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 aims to provide a data recording method for simultaneously recording CAN protocol data and Modbus protocol data. When a data recorder is in a data recording state, a processor simultaneously obtains CAN data and a CAN interrupt signal from a CAN receiving module and obtains Modbus data and a Modbus state from a Modbus receiving module, the Modbus receiving module is called in a main function, the mode is in a polling mode, namely, the Modbus is fixedly requested to acquire data every second, the CAN receiving module is called by CAN interruption, the data recorder jumps out of the Modbus receiving module to enter interruption to record the CAN data every time new CAN data exists, and the data recorder returns to the Modbus receiving module to record Modbus signals after receiving the CAN data, so that the CAN protocol and the Modbus protocol data are recorded at the same time. According to the invention, system data recording of multiple signal protocols can be supported, the number of used data recorders is reduced, and the use cost is reduced. Meanwhile, the consistency of timestamps recorded by the multi-signal protocol data is ensured, and the reliability of the data is improved.

Description

technical field [0001] The invention relates to a data recording method. Background technique [0002] The recording method of the existing data recorder can only record one kind of data at the same time, that is, CAN protocol data or Modbus protocol data, and a corresponding data recorder must be used for one data protocol. For systems that use CAN and Modbus bus protocols, two data loggers must be used to record data of different protocols. Secondly, since the two protocols are recorded by different data recorders, the time of the recorded CAN and Modbus bus protocol data is offset, which reduces the reference of the recorded data. Contents of the invention [0003] The purpose of the present invention is to provide a data recording method for simultaneously recording CAN protocol data and Modbus protocol data. [0004] The purpose of the present invention is achieved like this: [0005] The present invention is a kind of data recording method of simultaneously record...

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): G06F3/06
CPCG06F3/0614G06F3/0626G06F3/0629
Inventor 邹斐马亮王岩徐广野闫昌盛王元龙张震宇杨健毛冬岩马森白若忱
Owner 中国船舶重工集团公司第七0三研究所
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More