A data collection method and system adapted to different recorders

By judging the recorder model in the data acquisition method and saving communication commands, automatic adaptation of different recorders is achieved, and the problem of cumbersome adaptation process and poor stability of the acquisition station in the prior art is solved, and the work efficiency and functional stability are improved.

CN113821493BActive Publication Date: 2025-03-04GUANG DONG JIU LIAN KAI HONG KE JI FA ZHAN YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110832882.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2025-03-04
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

Existing collection stations require on-site docking and program modifications for different recorders, resulting in large workloads for developers and difficult to ensure the stability of software functions.

Method used

A data acquisition method is proposed to adapt to different recorders. By judging whether the recorder is a recorded model, grab and save communication commands, automatic adaptation and data migration are realized.

Benefits of technology

The normal communication process between the recorder and the acquisition station is realized, reducing the workload of developers and improving the stability of software functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821493B_ABST
    Figure CN113821493B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data acquisition technology for recorders, and in particular to a data acquisition method and system adapted to different recorders, the method comprising steps S1, the recorder is connected to a collection station; S2, judging whether the current recorder is a recorder that has been connected to the collection station, if so, executing S4, if not, executing S3; S3, capturing the communication command sent by the recorder, adjusting the recorder to a command receiving state, and sending the captured communication command to the recorder, saving the communication command that implements the corresponding function in the collection station, and returning to S2; S4, performing data migration according to the communication command saved by the current recorder. The present invention solves the problem that the existing collection station needs to modify the program after on-site docking for different recorders, and the above work needs to be repeated for each new model of recorder, resulting in a large workload for developers, and the stability of the software functions completed in a short period of time is also difficult to guarantee.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of recorder data collection, and in particular to a data collection method and system adapted to different recorders. Background Art

[0002] A recorder refers to a new type of intelligent paperless recording instrument with an advanced CPU as the core, supplemented by large-scale integrated circuits, large-capacity FLASH storage and a high-resolution graphic LCD display. It has the characteristics of small size, large number of channels, low power consumption, high accuracy, strong versatility, stable operation and high reliability.

[0003] There are many brands and styles of recorders in the current market. Whenever a customer needs to purchase a new acquisition station, they always have to consider whether it can be adapted to the recorder they already have. If it is not originally adapted, it is necessary to connect it on site and modify the program. Adapting the recorder provided by the customer will place a heavy burden on the development and operation and maintenance personnel. Every time a new model of recorder is connected, the connection and deployment work must be repeated. For customers, it is difficult to ensure that the software functions completed in a short period of time are stable and reliable.

[0004] Therefore, a data collection method and system adapted to different recorders came into being. Summary of the invention

[0005] The invention content of the present invention is to provide a data collection method and system adapted to different recorders, which mainly solves the problem that the existing collection station needs to modify the program after on-site docking for different recorders, and the above work needs to be repeated for each new model of recorder, resulting in a large workload for developers, and the stability of the software functions completed in a short time is difficult to guarantee.

[0006] The present invention proposes a data collection method adapted to different recorders, comprising the following steps:

[0007] S1, the recorder is connected to the collection station;

[0008] S2, determining whether the current recorder is a recorder that has been connected to the acquisition station, if yes, executing step S4, if no, executing step S3;

[0009] S3, capturing the communication command sent by the acquisition station, adjusting the recorder to a command receiving state, and sending the captured communication command to the recorder, saving the communication command that implements the corresponding function in the acquisition station, and returning to step S2;

[0010] S4, performing data migration according to the communication command currently saved by the recorder.

[0011] Preferably, the step S3 specifically includes:

[0012] S31, the recorder communicates with the host computer, and the acquisition station captures the communication process between the recorder and the host computer;

[0013] S32, the recorder is adjusted to a command receiving state, and receives a communication command in the communication process sent by the acquisition station;

[0014] S33, the collection station continuously monitors whether the recorder receives any of the communication commands and implements the corresponding function, and if so, saves the information; otherwise, switches to the next communication command.

[0015] Preferably, the step S31 specifically includes:

[0016] S311, the recorder establishes a communication path with the host computer;

[0017] S312, the acquisition station captures each communication command between the recorder and the host computer, and determines whether the current communication command is the end of the communication process, or the current recorder information changes, or the system mounts a disk. If so, terminate and execute the next step, otherwise continue capturing.

[0018] The present invention also proposes a data acquisition system adapted to different recorders, comprising a processor, and a judgment module, an automatic adaptation module and an acquisition function module electrically connected to the processor respectively;

[0019] The judgment module is used to identify whether the currently connected recorder is the recorder with existing records, and if so, directly connect the acquisition function module through the processor, and if not, connect the automatic adaptation module through the processor;

[0020] The automatic adaptation module is used to record the capture of the communication command between the recorder and the acquisition station; it is also used to verify and adjust the captured communication command; it is also used to persist the adjusted communication command in the database;

[0021] The acquisition function module is used to receive and send the communication command to the recorder; and is also used to save the data in the recorder to the hard disk.

[0022] Preferably, the automatic adaptation module includes a communication monitoring submodule, a command flow verification submodule and a data persistence submodule;

[0023] The communication monitoring submodule is used to record the capture of communication commands between the recorder and the collection station;

[0024] The command flow verification submodule is used to verify and adjust the captured communication commands;

[0025] The data persistence submodule is used to persist the adjusted communication command in the database.

[0026] Preferably, the automatic adaptation module further includes a UI control submodule;

[0027] The UI control submodule is used to display corresponding guidance on the display screen to assist in completing the adaptation process.

[0028] Preferably, the judgment module is used to judge whether the code of the current recorder is consistent with any code of the recorder in the database. If so, it is considered that the currently connected recorder is the recorder with existing records.

[0029] As can be seen from the above, the application of the technical solution provided by the present invention can achieve the following beneficial effects:

[0030] First, the method and system proposed in the present invention give priority to obtaining the communication command of the recorder, and then the acquisition station verifies the receivable command types of the recorder one by one and records them in its own database, so as to ensure that the corresponding communication command can be automatically adapted when the current model of recorder is encountered next time, so as to realize the normal communication process between the recorder and the acquisition station;

[0031] Secondly, the method and system proposed in the present invention terminate the communication command capture by judging whether the current communication process ends, whether the recorder signal changes, and whether the system mounted disk increases. This can end the communication command capture process of the current recorder as soon as possible, avoid missing capture, and also avoid the possibility of erroneous capture. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0033] Figure 1 This is a block diagram of the data acquisition method and system integration in Embodiment 1 and Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] The existing collection stations need to modify the program after on-site docking for different recorders, and the above work needs to be repeated for each new model of recorder, resulting in a large workload for developers, and the stability of software functions completed in a short period of time is difficult to guarantee.

[0036] It should be emphasized that the recorder needs to obtain the device information interface, time synchronization interface, and mobile disk interface when connecting to the collection station, and the adaptation process of each interface is basically the same. This embodiment analyzes the device adaptation process by taking the mobile disk interface as an example.

[0037] Example 1

[0038] In order to solve the above problems, this embodiment proposes a data collection method adapted to different recorders, which mainly includes the following steps:

[0039] S1, the recorder is connected to the collection station;

[0040] S2, determine whether the current recorder is a recorder that has been connected to the collection station, if yes, execute step S4, if no, execute step S3;

[0041] S3, capture the communication command sent by the collection station, adjust the recorder to the command receiving state, and send the captured communication command to the recorder, save the communication command that realizes the corresponding function in the collection station, and return to step S2;

[0042] S4, data migration is performed according to the communication commands currently saved by the recorder.

[0043] Preferably, but not limited to, in this embodiment, the acquisition station should be installed with the device driver of the current recorder and the corresponding host computer software, which can be used to connect the recorder and realize the communication between the recorder and the host computer.

[0044] Preferably but not limited to, in this embodiment, the recorder is connected to the collection station, and the user selects to perform the mobile disk transfer operation through the collection station and selects the current recorder on the currently listed device tree.

[0045] More specifically, step S3 specifically includes:

[0046] S31, the recorder communicates with the host computer, and the collection station captures the communication process between the recorder and the host computer;

[0047] S32, the recorder is adjusted to a command receiving state, and receives the communication command in the communication process sent by the acquisition station;

[0048] S33, the collection station continuously monitors whether the recorder receives any communication command and implements the corresponding function, if so, it is saved, if not, it switches to the next communication command.

[0049] Preferably but not limited to, in step S31 of this embodiment, during the communication between the recorder and the host computer, the recorder should be in the transceiver state to ensure normal communication, so the recorder needs to be modified to the receive-only state in step S32.

[0050] Preferably, but not limited to, in this embodiment, the model of the current recorder can be added when saving in step S33, and when another recorder of the same model is connected to the current acquisition station, the saved communication command can be directly obtained and related operations can be performed. In this embodiment, step S2 can directly obtain the recorder model and check whether there is a communication command of the corresponding model in the database. If there is, it is a recorder that has been connected, and the corresponding communication command can be directly called.

[0051] More specifically, step S31 specifically includes:

[0052] S311, the recorder establishes a communication path with the host computer;

[0053] S312, the acquisition station captures each communication command between the recorder and the host computer, and determines whether the current communication command is a record of the communication process, or whether the current recorder information has changed, or whether the system mounted disk has increased. If so, terminate and execute the next step, otherwise continue to capture.

[0054] Example 2

[0055] In order to solve the above problems, this embodiment proposes a data acquisition system adapted to different recorders, which mainly includes a processor, and a judgment module, an automatic adaptation module and a collection function module electrically connected to the processor respectively.

[0056] Among them, the judgment module is used to identify whether the currently connected recorder is a recorder with existing records. If so, the acquisition function module is directly turned on by the processor. Otherwise, the automatic adaptation module is turned on by the processor; the automatic adaptation module is used to capture the communication commands between the recorder and the acquisition station; it is also used to verify and adjust the captured communication commands; it is also used to persist the adjusted communication commands in the database; the acquisition function module is used to receive and send communication commands with the recorder; it is also used to save the data in the recorder to the hard disk.

[0057] Preferably, but not limited to, the collection station should also be installed with a recorder device driver to ensure that the recorder can be normally connected to the collection station and realize data transmission, and the corresponding host computer software should also be installed.

[0058] Preferably but not limited to, in this embodiment, the database storage location of the collection station can be independent of the hard disk, and can also be formed in the hard disk.

[0059] Preferably but not limited to, in this embodiment, a display screen is formed on the collection station, and the display screen is a touch screen, or is provided with buttons for control. When the recorder is connected to the collection station, the user needs to select the current recorder device through the display screen.

[0060] More specifically, the automatic adaptation module includes a communication monitoring submodule, a command flow verification submodule and a data persistence submodule.

[0061] Among them, the communication monitoring submodule is used to record the capture of communication commands between the recorder and the collection station; the command process verification submodule is used to verify and adjust the captured communication commands; the data persistence submodule is used to persist the adjusted communication commands to the database.

[0062] More specifically, the automatic adaptation module also includes a UI control submodule, which is used to display corresponding guidance on the display screen to assist in completing the adaptation process.

[0063] Preferably but not limited to, in this embodiment, the UI control submodule can guide the user to operate step by step, and adopts a combination of graphics and text.

[0064] More specifically, the judgment module is used to judge whether the model code of the current recorder is consistent with any recorder code in the database. If so, it is considered that the currently connected recorder is a recorder with existing records.

[0065] Preferably but not limited to, the recorder with existing records in this embodiment stores the corresponding model code in this embodiment, so it can be searched by the model code.

[0066] To sum up, the present embodiment proposes a data collection method and system adapted to different recorders, which collects multiple communication commands of the recorder one by one and makes judgments, and saves the communication commands obtained by judgment. The next time, the recorder of the same model can directly call the corresponding communication command to perform data migration and other operations, which conforms to the adaptation process of a single collection station and multiple recorders.

[0067] The above-described implementation methods do not constitute a limitation on the protection scope of the technical solution. Any modification, equivalent replacement and improvement made within the spirit and principle of the above-described implementation methods shall be included in the protection scope of the technical solution.

Claims

1. A data collection method adapted to different recorders, characterized in that: The following steps are involved: S1, the recorder is connected to the collection station; S2, determining whether the current recorder is a recorder that has been connected to the acquisition station, if yes, executing step S4, if no, executing step S3; The step S3 comprises: S31, the recorder communicates with the host computer, and the acquisition station captures the communication process between the recorder and the host computer; S32, the recorder is adjusted to a command receiving state, and receives a communication command in the communication process sent by the acquisition station; S33, the collection station continuously monitors whether the recorder receives any of the communication commands and implements the corresponding function, if yes, saves and returns to step S2, if no, switches to the next communication command; Wherein, step S31 also includes: S311, the recorder establishes a communication path with the host computer; S312, the acquisition station captures each communication command between the recorder and the host computer, and determines whether the current communication command is the end of the communication process, or whether the current recorder information is changed, or whether the system mounted disk is increased. If so, terminate and execute the next step, otherwise continue to capture; S4, performing data migration according to the communication command currently saved by the recorder.

2. A data acquisition system adapted to different recorders, the data acquisition system is used to execute the data acquisition method according to claim 1, characterized in that: It includes a processor, and a judgment module, an automatic adaptation module and a collection function module which are electrically connected to the processor respectively; The judgment module is used to identify whether the currently connected recorder is the recorder with existing records, and if so, directly connect the acquisition function module through the processor, and if not, connect the automatic adaptation module through the processor; The automatic adaptation module is used to record the capture of the communication command between the recorder and the acquisition station; it is also used to verify and adjust the captured communication command; it is also used to persist the adjusted communication command in the database; The acquisition function module is used to receive and send the communication command to the recorder; and is also used to save the data in the recorder to the hard disk.

3. A data acquisition system adapted to different recorders according to claim 2, characterized in that: The automatic adaptation module includes a communication monitoring submodule, a command flow verification submodule and a data persistence submodule; The communication monitoring submodule is used to record the capture of communication commands between the recorder and the collection station; The command flow verification submodule is used to verify and adjust the captured communication commands; The data persistence submodule is used to persist the adjusted communication command in the database.

4. A data acquisition system adapted to different recorders according to claim 3, characterized in that: The automatic adaptation module also includes a UI control submodule; The UI control submodule is used to display corresponding guidance on the display screen to assist in completing the adaptation process.

5. A data acquisition system adapted to different recorders according to any one of claims 2 to 4, characterized in that: The judgment module is used to judge whether the model code of the current recorder is consistent with the model code of any recorder in the database. If so, it is considered that the currently connected recorder is the recorder with existing records.

Citation Information

Patent Citations

  • Gateway communication interaction service method for multi-protocol Beidou data acquisition

    CN110138755A

  • System and method for automatically adapting to embedded equipment and controlling automobile data recorder

    CN111599034A