CN115515025A - Intelligent instrument data acquisition method and device - Google Patents

Intelligent instrument data acquisition method and device Download PDF

Info

Publication number
CN115515025A
CN115515025A CN202210993721.1A CN202210993721A CN115515025A CN 115515025 A CN115515025 A CN 115515025A CN 202210993721 A CN202210993721 A CN 202210993721A CN 115515025 A CN115515025 A CN 115515025A
Authority
CN
China
Prior art keywords
data
storage unit
instrument
interface
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210993721.1A
Other languages
Chinese (zh)
Inventor
刘朝晖
潘东亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoneng Baotou Shenzhou Railway Co ltd
Guoneng Baoshen Railway Group Co ltd
Original Assignee
Guoneng Baotou Shenzhou Railway Co ltd
Guoneng Baoshen Railway Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoneng Baotou Shenzhou Railway Co ltd, Guoneng Baoshen Railway Group Co ltd filed Critical Guoneng Baotou Shenzhou Railway Co ltd
Priority to CN202210993721.1A priority Critical patent/CN115515025A/en
Publication of CN115515025A publication Critical patent/CN115515025A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/60Arrangements in telecontrol or telemetry systems for transmitting utility meters data, i.e. transmission of data from the reader of the utility meter

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The application discloses a method and a device for collecting data of an intelligent instrument, which are applied to a data collecting device of the intelligent instrument. The method comprises the following steps: acquiring instrument type information of the instrument; determining the working mode of the first data interface according to the instrument type information; the working modes comprise a host mode and a device mode; when the working mode is a host mode, carrying out data communication between the inspection terminal and the instrument; and when the working mode is the equipment mode, collecting and storing the measurement data derived by the instrument, and sending the measurement data to the inspection terminal. The method and the device do not change the instrument, can automatically adapt to data interfaces of various instruments, and can automatically detect and transmit the latest derived measurement data of the instrument.

Description

Intelligent instrument data acquisition method and device
Technical Field
The invention belongs to the technical field of industrial detection, and particularly relates to a data acquisition method and device for an intelligent instrument.
Background
In recent years, the traditional paper mode is gradually abandoned and electronization is realized in the routing inspection operation management of railway workers, and operators collect the measurement data of various intelligent instruments by utilizing a routing inspection terminal and upload the measurement data to a management system, so that the human factors of data entry are reduced as much as possible, and the convenience, accuracy and authenticity of measurement data collection are improved.
Typically, a smart meter will provide a USB interface that can transfer data to an external device in a virtual serial manner or export data to a USB disk in a file manner and then manually copy the data to the external device. Therefore, the inspection terminal is required to be connected with the intelligent instrument through a USB cable or to copy data with the intelligent instrument through a USB flash disk. However, if the polling terminal and the intelligent instrument are connected by the USB cable, the polling terminal and the intelligent instrument are electrically connected, so that safety risks exist in high-voltage occasions. In addition, the USB interface is often plugged and pulled to easily cause the damage of expensive intelligent instruments. The operation of exporting or copying data by using the USB flash disk is complicated, errors are easy to occur, and the possibility of being artificially tampered exists.
There currently exists a solution: a Bluetooth serial port module is inserted into a USB interface of the intelligent instrument, and meanwhile, communication agent software is installed on the intelligent instrument to transmit the measurement data of the intelligent instrument to the inspection terminal through a Bluetooth serial port. However, this solution requires software development and installation on the smart meter, and because the operating system of the meter is of various types, the implementation of this solution is difficult and it is inconvenient for later maintenance in the case of using an embedded system for the smart meter.
Disclosure of Invention
Aiming at the technical problems, the invention provides a method and a device for collecting data of an intelligent instrument, which realize the automatic adaptation to the data interfaces of various instruments without changing the instrument, and automatically detect and transmit the latest derived measurement data of the instrument.
In a first aspect, the method is applied to an intelligent instrument data acquisition device, and the device comprises a processor, a storage unit, a first data interface in communication connection with an instrument, and a second data interface in communication connection with an inspection terminal; the method comprises the following steps:
acquiring instrument type information of the instrument;
determining an operating mode of the first data interface according to the meter type information, the operating mode including a host mode and a device mode;
when the working mode is a host mode, carrying out data communication between the inspection terminal and the instrument;
and when the working mode is the equipment mode, collecting and storing the measurement data derived by the instrument, and sending the measurement data to the inspection terminal.
In some embodiments, when the operating mode is the host mode, performing data communication between the inspection terminal and the meter includes:
listening for received data received from the first data interface and the second data interface;
judging whether the received data is the inspection terminal data received from the second data interface or the instrument data received from the first data interface;
if the data is the polling terminal data received from the second data interface, the received data is sent to the instrument through the first data interface;
if the received data is the instrument data received from the first data interface, the received data is sent to the inspection terminal through the second data interface;
and if the data are determined to be neither the patrol terminal data received from the second data interface nor the meter data received from the first data interface, continuing to monitor the received data received from the first data interface and the second data interface.
In some embodiments, when the operating mode is the device mode, the acquiring and storing the measurement data derived by the meter, and sending the measurement data to the inspection terminal includes:
reading data information in a main boot record sector in the storage unit, and judging whether the storage unit is formatted according to the read data information, wherein file information is stored in the storage unit and comprises the measurement data;
if the storage unit is judged to be formatted, file information in the storage unit is traversed and recorded according to the data information of the main guide recording sector and is used as locally stored file information;
monitoring whether data are written into a storage unit in real time;
if the situation that data are written into the storage unit is monitored, and new data are not written into the storage unit within preset time, whether data are written into a main pilot sector in the storage unit is checked;
if no data is written in the main guide sector, traversing file information in the storage unit;
comparing all the file information in the storage unit obtained through traversal with the file information stored locally to obtain newly-built, updated and deleted file information, wherein the file information comprises file names and file contents;
and sending the obtained new and updated file names and file contents to the inspection terminal.
In some embodiments, before the step of monitoring whether the storage unit has data written in real time, the method further includes:
and if the storage unit is judged not to be formatted according to the read data information, monitoring whether data are written into the storage unit in real time.
In some embodiments, if it is checked that the primary boot record sector has data written therein, indicating that a formatting event has occurred in the storage unit, the data information of the primary boot record sector in the file system of the storage unit is read.
In some embodiments, further comprising: and updating the locally stored file information according to the found new, updated and deleted file information, and then monitoring whether data are written into the storage unit in real time.
In some embodiments, the first data interface is a USB interface and the second data interface is a bluetooth interface.
In some embodiments, the file information further comprises at least one of update date, starting cluster, file length.
In a second aspect, a smart meter data collection device includes:
the first data interface is connected with the instrument and is used for carrying out data communication with the instrument;
the second data interface is connected with the inspection terminal and is used for carrying out data communication with the inspection terminal;
a storage unit for storing a file system;
the processor is used for determining the working mode of the first data interface according to the received instrument type information of the instrument, and the working mode of the first data interface comprises a host mode and a device mode;
when the working mode of the first data interface is a host mode, the processing module judges whether the received data received by the first data interface and the second data interface is inspection terminal data or instrument data to obtain a judgment result, and determines a data interface for sending the received data according to the judgment result;
when the working mode of the first data interface is an equipment mode, the first data interface is used for collecting the measurement data of the instrument; the file system stored in the storage unit manages and stores the measurement data to obtain file information; the processing module is used for searching the file information which is newly created, updated and deleted from the storage unit, wherein the file information comprises file names and file contents; and the second data interface is used for sending the searched new and updated file names and file contents to the inspection terminal.
In some embodiments, the processing module is configured to find new, updated, and deleted file information from the storage unit, and specifically includes:
the processing module is used for reading data information in a main boot record sector in the storage unit and judging whether the storage unit is formatted according to the read data information;
the processing module is further configured to traverse and record file information in the storage unit according to the data information of the master boot record sector if it is determined that the storage unit is formatted, and detect whether data is written in the storage unit in real time as locally stored file information;
the processing module is further used for checking whether data are written in a main guide recording sector of the file system if it is monitored that data are written in the storage unit and new data are not written in the storage unit within preset time;
the processing module is further configured to traverse the file information in the storage unit if no data is written in the master boot recording sector, and compare all the file information in the storage unit obtained through traversal with the locally stored file information to obtain newly created, updated, and deleted file information.
The application has the advantages that: 1. according to the instrument type of the instrument used in measurement, the working mode of the first data interface connected with the instrument is dynamically switched, so that the data interface of various instruments is automatically adapted. 2. By monitoring whether data are written into the storage unit or not, and by monitoring the file information in the storage unit after the data are written and the file information in the storage unit before the data are not written, the latest exported measurement data of the instrument can be obtained, and the obtained latest exported measurement data of the instrument is sent to the inspection terminal through the second data interface, so that the latest exported measurement data of the instrument can be automatically detected and transmitted, and the influence of human factors is eliminated. 3. According to the device and the method, the instrument does not need to be changed, and when the device is used, the first data interface of the device is only needed to be inserted into the USB data interface of the instrument. 4. The second data interface who links to each other with patrolling and examining the terminal adopts the bluetooth interface, through the device that this application provided promptly, can realize patrolling and examining the terminal and adopt the bluetooth interface can communicate with the instrument, no longer need wired connection, and it is more convenient and safe to use.
Drawings
The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. Wherein the attached figures are included:
fig. 1 is a flowchart of a data collection method for an intelligent meter according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for collecting data of an intelligent meter in a host mode according to an embodiment of the present application;
fig. 3 is a flowchart of a method for collecting data of an intelligent meter in an equipment mode according to an embodiment of the present application;
fig. 4 is a logic block diagram of an intelligent meter data acquisition device according to a second embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
The following description will be added if a similar description of "first \ second \ third" appears in the application file, and in the following description, the terms "first \ second \ third" merely distinguish similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under certain circumstances in a specific order or sequence, so that the embodiments of the application described herein can be implemented in an order other than that shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Example one
The method is applied to an intelligent instrument data acquisition device, and the device comprises a first data interface in communication connection with an instrument, a second data interface in communication connection with an inspection terminal, a storage unit and a processor. The functions realized by the intelligent instrument data acquisition method provided by the embodiment of the application can be realized by calling a program code by a processor in the intelligent instrument data acquisition device, wherein the program code is stored in a storage medium arranged in the processor. As shown in fig. 1, a flowchart of a method for collecting data of an intelligent meter according to this embodiment includes:
and step S100, obtaining instrument type information of the instrument. Specifically, the second data interface receives the instrument type information sent by the inspection terminal, and the processor acquires the received instrument type information.
Step S200, determining the working mode of the first data interface according to the instrument type information, wherein the working mode comprises a host mode and an equipment mode. The working mode of the first data interface connected with the instrument is dynamically switched according to the instrument type of the instrument used in measurement, so that the data interface of various instruments is automatically adapted.
And S300, when the working mode is the host mode, carrying out data communication between the inspection terminal and the instrument.
In some embodiments, as shown in fig. 2, in a flowchart of a method for collecting data of an intelligent meter in the host mode in this embodiment, the step S300 specifically includes:
step S310, listening to the received data received from the first data interface and the second data interface.
Step S320, determining whether the received data is inspection terminal data received from the second data interface or meter data received from the first data interface. Here, the order of determination is not unique, that is, it may be determined whether the received data is polling terminal data received from the second data interface, and if not, it may be determined whether the received data is meter data received from the first data interface. The order may also be that it is determined whether the received data is meter data received from the first data interface, and if not, it is determined whether the received data is patrol terminal data received from the second data interface.
And step S330, if the data is the polling terminal data received from the second data interface, sending the received data to the instrument through the first data interface.
Step S340, if the instrument data received from the first data interface is judged, the received data is sent to the inspection terminal through the second data interface;
step S350, if it is determined that the polling terminal data received by the second data interface is neither polling terminal data nor meter data received by the first data interface, then the polling terminal continues to monitor the received data received by the first data interface and the second data interface.
In some embodiments, the first data interface is a USB interface and the second data interface is a bluetooth interface. The inspection terminal can be communicated with the instrument by adopting the Bluetooth interface, and is not required to be in wired connection, so that the inspection terminal is more convenient and safer to use. And the instrument is not required to be changed, and when the device is used, the device can be used only by inserting the first data interface of the device into the USB data interface of the instrument.
And S400, when the working mode is the equipment mode, collecting and storing the measurement data derived by the instrument, and sending the measurement data to the inspection terminal.
In some embodiments, as shown in fig. 3, which is a flowchart of a method for collecting data of an intelligent meter in the device mode of this embodiment, step S400 specifically includes:
step S410, reading the data information in the main boot record sector in the storage unit. The storage unit stores file information, the file information comprises information such as file names, update dates, starting clusters, file lengths, file contents and the like, and the file contents comprise the measurement data.
Step S420, determining whether the storage unit is formatted according to the read data information, and if the storage unit is determined to be formatted, executing step S430; if the storage unit is not formatted, step S440 is performed.
Step S430, according to the data information of the master boot record sector, traversing and recording the file information in the storage unit as the locally stored file information, and then executing step S440.
Step S440, monitoring whether data is written into the storage unit in real time.
Step S450, if it is monitored that data is written into the storage unit and no new data is written into the storage unit within a preset time, checking whether data is written into the master boot record sector in the storage unit. The predetermined time is 1 second to 3 seconds, preferably 2 seconds.
Step S460, if no data is written in the master boot record sector, then step S470 is executed; if there is data written in the main boot record sector, indicating that a formatting event has occurred in the storage unit, step S410 is executed.
Step S470 is to traverse the file information in the storage unit, and compare all the file information in the storage unit obtained through traversal with the file information stored locally, so as to obtain new, updated, and deleted file information.
Step S480, sending the obtained new and updated file names and file contents to the inspection terminal, updating the locally stored file information according to the file information for finding new, updated and deleted, and then executing step S440.
In this embodiment, by monitoring whether data is written in the storage unit, and by monitoring the file information in the storage unit 210 after data is written and the file information in the storage unit 210 before data is not written, the latest measurement data exported by the meter can be obtained, and the obtained latest measurement data exported by the meter is sent to the inspection terminal through the second data interface, so that automatic detection and data transmission of the latest measurement data exported by the meter are realized, and the influence of human factors is eliminated.
Example two
The embodiment provides a smart meter data acquisition device, which is used for executing the steps of the method in the first embodiment. As shown in fig. 4, the logic block diagram of a smart meter data acquisition device 200 includes a first data interface 230, a second data interface 340, a storage unit 210 and a processor 220.
The first data interface 230 is connected to the meter 400, and supports a host interface, a device interface, and various meter interface drivers, for performing data communication with the meter 400, in this embodiment, the first data interface 230 is a USB interface.
The second data interface 240 is connected to the inspection terminal 300, and is configured to perform data communication with the inspection terminal 300, in this embodiment, the second data interface 240 adopts a bluetooth interface and supports an SPP bluetooth application layer protocol. Can realize patrolling and examining terminal 300 and adopting the bluetooth interface can communicate with instrument 400, no longer need wired connection, it is more convenient and safe to use.
The storage unit 210 is configured to store a file system, where the file system is configured to manage and store file information in the storage unit 210, where the file information includes information such as a file name, an update date, a start cluster, a file length, and a file content, and the file content includes measurement information of the meter 400. In this embodiment, the storage unit 210 is an SD card.
The processor 220 is configured to determine an operation mode of the first data interface 230 according to the received instrument type information of the instrument, and the operation mode of the first data interface 230 includes a host mode and a device mode. The instrument type information is sent by the inspection terminal and received through the second data interface. Therefore, the working mode of the first data interface 230 connected with the meter 400 is dynamically switched according to the currently measured meter type of the meter 400, namely, the data interface automatically adapting to various types of meters can be realized.
When the working mode of the first data interface 230 is the host mode, the processing module 220 determines whether the received data received by the first data interface 230 and the second data interface 240 is inspection terminal data or meter data, obtains a determination result, and determines a data interface for sending the received data according to the determination result. The method specifically comprises the following steps: if the determination result is that the received data is inspection terminal data, the received data is sent to the meter 400 through the first data interface 230; if the determination result is that the received data is meter data, the received data is sent to the inspection terminal 300 through the second data interface 240; if the determination result is that the received data is neither inspection terminal data nor meter data, it is determined whether the received data received by the first data interface 230 and the second data interface 240 is inspection terminal data or meter data.
When the working mode of the first data interface 230 is the device mode, the first data interface 230 is used for collecting the measurement data of the meter 400; the file system of the storage unit 210 manages and stores the measurement data to obtain file information. The processing module 220 is used for searching the new and updated file information from the storage unit 210. The second data interface 240 is configured to send the found new and updated file names and file contents to the inspection terminal 300.
In some embodiments, when the operation mode of the first data interface 230 is the device mode, the processing module 220 is configured to read data information in a master boot record sector in the storage unit 210, and determine whether the storage unit 210 is formatted according to the read data information. The processing module 220 is further configured to traverse and record file information in the storage unit 210 according to the data information of the master boot record sector if it is determined that the storage unit 210 is formatted, and detect whether there is data written in the storage unit 210 in real time, where the file information is locally stored. The processing module 220 is further configured to check whether data is written into the primary boot record sector of the file system if it is monitored that data is written into the storage unit 210 and new data is not written into the primary boot record sector within a preset time. The predetermined time is 1 second to 3 seconds, preferably 2 seconds. The processing module 220 is further configured to traverse the file information in the storage unit 210 if the master boot record sector has no data written therein, and compare all the file information in the storage unit 210 obtained through traversal with the locally stored file information to obtain new, updated, and deleted file information.
In this embodiment, the operation mode of the first data interface 230 connected to the meter 400 is dynamically switched according to the meter type of the meter 400 used in measurement, thereby realizing automatic adaptation to the data interfaces of various types of meters 400. In addition, by monitoring whether data is written in the storage unit 210 or not, and comparing and analyzing the file information in the storage unit 210 after the data is written with the file information in the storage unit 210 before the data is not written, the latest derived measurement data of the meter 400 can be obtained, and the obtained latest derived measurement data of the meter 400 is sent to the inspection terminal 300 through the second data interface 240, so that the latest derived measurement data of the meter 400 can be automatically detected and transmitted, and the influence of human factors is eliminated.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A data acquisition method of an intelligent instrument is characterized in that the method is applied to a data acquisition device of the intelligent instrument, and the device comprises a processor, a storage unit, a first data interface in communication connection with the instrument and a second data interface in communication connection with an inspection terminal;
the method comprises the following steps:
acquiring instrument type information of the instrument;
determining the working mode of the first data interface according to the instrument type information, wherein the working mode comprises a host mode and a device mode;
when the working mode is a host mode, carrying out data communication between the inspection terminal and the instrument;
and when the working mode is the equipment mode, collecting and storing the measurement data derived by the instrument, and sending the measurement data to the inspection terminal.
2. The method of claim 1, wherein when the operating mode is a master mode, communicating data between the inspection terminal and the meter includes:
listening for received data received from the first data interface and the second data interface;
judging whether the received data is the inspection terminal data received from the second data interface or the instrument data received from the first data interface;
if the data is the polling terminal data received from the second data interface, the received data is sent to the instrument through the first data interface;
if the meter data is judged to be received from the first data interface, the received data is sent to the inspection terminal through the second data interface;
and if the data are determined to be neither the patrol terminal data received from the second data interface nor the meter data received from the first data interface, continuing to monitor the received data received from the first data interface and the second data interface.
3. The method of claim 1, wherein when the operating mode is a device mode, the collecting and storing measurement data derived from the meter and sending the measurement data to an inspection terminal comprises:
reading data information in a main boot record sector in the storage unit, and judging whether the storage unit is formatted according to the read data information, wherein file information is stored in the storage unit and comprises the measurement data;
if the storage unit is judged to be formatted, file information in the storage unit is traversed and recorded according to the data information of the main guide recording sector and is used as locally stored file information;
monitoring whether data are written into a storage unit in real time;
if the situation that data are written into the storage unit is monitored, and new data are not written into the storage unit within preset time, whether data are written into a main pilot sector in the storage unit is checked;
if no data is written in the main guide sector, traversing file information in the storage unit;
comparing all the file information in the storage unit obtained through traversal with the file information stored locally to obtain newly-built, updated and deleted file information, wherein the file information comprises file names and file contents;
and sending the obtained new and updated file names and file contents to the inspection terminal.
4. The method of claim 3, further comprising:
and if the storage unit is judged not to be formatted according to the read data information, monitoring whether data are written into the storage unit in real time.
5. The method according to claim 3, wherein if the data writing in the master boot record sector is checked, which indicates that the formatting event has occurred in the storage unit, the data information of the master boot record sector in the storage unit is read.
6. The method of claim 3, further comprising: and updating the locally stored file information according to the found new, updated and deleted file information, and then monitoring whether data are written into the storage unit in real time.
7. The method of claim 2, wherein the first data interface is a USB interface and the second data interface is a bluetooth interface.
8. The method according to claim 3, wherein the file information further comprises at least one of update date, start cluster, and file length.
9. A smart meter data collection device, comprising:
the first data interface is connected with the instrument and is used for carrying out data communication with the instrument;
the second data interface is connected with the inspection terminal and is used for carrying out data communication with the inspection terminal;
a storage unit for storing a file system;
the processor is used for determining the working mode of the first data interface according to the received instrument type information of the instrument, and the working mode of the first data interface comprises a host mode and a device mode;
when the working mode of the first data interface is a host mode, the processing module judges whether the received data received by the first data interface and the second data interface is inspection terminal data or instrument data to obtain a judgment result, and determines a data interface for sending the received data according to the judgment result;
when the working mode of the first data interface is an equipment mode, the first data interface is used for collecting the measurement data of the instrument; the file system stored in the storage unit manages and stores the measurement data to obtain file information; the processing module is used for searching new, updated and deleted file information from the storage unit, wherein the file information comprises file names and file contents; and the second data interface is used for sending the searched new and updated file names and file contents to the inspection terminal.
10. The apparatus according to claim 9, wherein the processing module is configured to find information of a newly created, updated, or deleted file from the storage unit, and specifically includes:
the processing module is used for reading data information in a main boot record sector in the storage unit and judging whether the storage unit is formatted according to the read data information;
the processing module is further used for traversing and recording the file information in the storage unit according to the data information of the main guide recording sector if the storage unit is judged to be formatted, taking the file information as locally stored file information, and detecting whether data is written into the storage unit in real time;
the processing module is further used for checking whether data are written in a main guide recording sector of the file system if it is monitored that data are written in the storage unit and new data are not written in the storage unit within preset time;
the processing module is further configured to traverse the file information in the storage unit if no data is written in the master boot recording sector, and compare all the file information in the storage unit obtained through traversal with the locally stored file information to obtain newly created, updated, and deleted file information.
CN202210993721.1A 2022-08-18 2022-08-18 Intelligent instrument data acquisition method and device Pending CN115515025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210993721.1A CN115515025A (en) 2022-08-18 2022-08-18 Intelligent instrument data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210993721.1A CN115515025A (en) 2022-08-18 2022-08-18 Intelligent instrument data acquisition method and device

Publications (1)

Publication Number Publication Date
CN115515025A true CN115515025A (en) 2022-12-23

Family

ID=84502891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210993721.1A Pending CN115515025A (en) 2022-08-18 2022-08-18 Intelligent instrument data acquisition method and device

Country Status (1)

Country Link
CN (1) CN115515025A (en)

Similar Documents

Publication Publication Date Title
EP2973111B1 (en) Unified data collection and reporting interface for equipment
US8190969B2 (en) Plasma process power delivery system and method with event-controlled data storage
US9310345B2 (en) Sensor system, computer, and machine
CN101576842A (en) System and method for monitoring baseboard management controller
US20190004717A1 (en) System and method for providing a secure airborne network-attached storage node
CN115515025A (en) Intelligent instrument data acquisition method and device
CN116737515B (en) Flash memory parameter visualization method, system and storage medium
CN108304290A (en) Server power-up state monitors system and method, computer storage and equipment
JP5377183B2 (en) Test system and test method for plant instrumentation
CN111290364A (en) Method for monitoring usage of electronic control device of vehicle
JP2014041390A (en) Design and development support system
CN114039849A (en) Equipment parameter modification method and device, electronic equipment and storage medium
JP4962050B2 (en) Information passing device, method, program, and storage medium
CN114018333A (en) Monitoring system and method of chemical grouting recorder
CN110928814A (en) Method and device for detecting transmission abnormality of serial hard disk and electronic equipment
CN112671848A (en) Method and device for acquiring data of fire fighting equipment and fire fighting management system
CN113094007A (en) Data transmission method, data transmission unit and data transmission system
CN103217942A (en) Retrieval of measurement values, diagnosis information or device parameters
CN114109356B (en) Motion detection system and method for oil-gas underground equipment
EP3373143B1 (en) Method of dynamically saving metadata in a process of operating a medical system, medical system, and computer program product
CN111045873B (en) Method for detecting plug-pull stability of PCIE (peripheral component interface express) external equipment
CN219395253U (en) Fire investigation site disposal analysis device with edge analysis capability
BR112020008518A2 (en) operation machine and method for monitoring a control system on an operation machine
CN115238234B (en) Abnormal data determining method, electronic equipment and storage medium
JPS6128168A (en) Data collection system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination