Data monitoring device and system
By designing a data monitoring device to collect and process the RS485 and carrier communication data of the instrument, it solves the problem of fault recurrence affecting the instrument in the existing technology, achieves efficient troubleshooting and data monitoring, and simplifies on-site operations.
Patent Information
- Application Number
- CN202410812381.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-24
AI Technical Summary
The existing technology can easily affect the normal operation of the carrier module on the instrument when communication faults occur, and technicians need to carry a variety of tools and data lines, which is complex to operate and inconvenient to use in a field environment.
A data monitoring device is designed, including a data collection component and a control component. It collects the RS485 communication data and carrier communication data of the instrument through the RS485 circuit and the carrier circuit, and monitors it without affecting the normal operation of the instrument. By adding time tags and channel labels for data processing and storage.
It realizes the non-impact monitoring of carrier communication data and RS485 communication data when the instrument fails again, can determine the root cause of the fault, simplifies the operation process of technicians, and improves the efficiency of troubleshooting.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of remote meter reading, and in particular to a data monitoring device and system. Background Art
[0002] Nowadays, the calculation of electricity bills for each household is no longer done manually by reading the meter at the door. The development of the Internet of Things has led to the emergence of smart meters, which can realize remote meter reading through data interaction with the master station (concentrator). Not only that, smart meters can also record various events to ensure the normal operation of the meter. On the other hand, it is also very common for meters to malfunction on site.
[0003] For smart meters in field use, when problems or failures occur, technicians are generally dispatched to the site to monitor and record data on the smart meters. Through the carrier communication data port and 485 protocol communication data port on the smart meters, technicians generally need to carry on-site tools such as laptop computers (including charging cables), 485 communication data cables, and serial port debugging data cables.
[0004] The troubleshooting of on-site instrument failures requires technicians to monitor the communication data between the instrument and the main station through the communication data line, and perform data analysis through the host computer in the computer to find the cause of the problem. This troubleshooting method requires the instrument failure to be reproduced in order to locate the fault message and thus locate the problem. At this time, if you need to monitor the data of the carrier channel, you need to remove the carrier module and connect the computer to the carrier port of the instrument through the serial port data line. This operation will affect the normal operation of the carrier module on the instrument, and the communication failure between the carrier module and the instrument cannot be reproduced, which has limitations. At the same time, technicians need to carry laptops and various communication data cables, which have high requirements for the on-site environment and operation. Summary of the invention
[0005] The purpose of this application is to provide a data monitoring device and system to solve the technical problem in the prior art that the normal operation of the carrier module on the instrument is affected when a communication failure occurs. The preferred technical solution among the many technical solutions provided in this application can produce many technical effects as described below.
[0006] To achieve the above objectives, this application provides the following technical solutions:
[0007] In the first aspect of the present application, a data monitoring device is provided, comprising a data collection component and a control component; the control component is connected to the data collection component; the data collection component comprises a first interface and a second interface; wherein the first interface is connected to an instrument for collecting RS485 communication data of the instrument; the instrument comprises a carrier interface and a carrier module, the carrier interface and the carrier module are detachably connected, and when the second interface is configured to be connected to the carrier interface and the carrier module, the second interface is used to collect carrier communication data transmitted between the carrier interface and the carrier module; the control component receives the RS485 communication data of the first interface and the carrier communication data of the second interface, and monitors the RS485 communication data and the carrier communication data.
[0008] In some embodiments, the data collection component includes an RS485 circuit and a carrier circuit; the RS485 circuit is connected to the first interface, the RS485 circuit receives a level signal representing the RS485 communication data, converts the level signal, and sends the converted level signal to the control component; the carrier circuit is connected to the second interface, the carrier circuit receives a carrier signal representing the carrier communication data, converts the carrier signal, and sends the converted carrier signal to the control component.
[0009] In some embodiments, the control component is configured to add a time tag and a channel tag to the RS485 communication data and the carrier communication data after receiving the RS485 communication data and the carrier communication data; wherein the time tag represents time information, and the channel tag is used to indicate the communication direction of the RS485 communication data and the carrier communication data.
[0010] In some embodiments, after the control component receives the RS485 communication data of the first interface and the carrier communication data of the second interface for a first preset time, the channel label and the time label are added to the RS485 communication data and the carrier communication data; the first preset time is less than or equal to the communication interval time of the instrument; the first preset time is 90 milliseconds to 110 milliseconds.
[0011] In some embodiments, the data monitoring device also includes an interactive component, which includes a light-emitting unit for identifying different working modes and a key unit for switching the working modes; the light-emitting unit and the key unit are connected to the control component; the control component receives the key unit being triggered to generate a switching operation instruction, controls the RS485 circuit to switch the working mode according to the switching operation instruction, and controls the light-emitting unit to display the light-emitting state corresponding to the working mode.
[0012] In some embodiments, the button unit is connected to a detection button pin of the control component; when the detection button pin detects that the level signal triggered by pressing the button unit changes and reaches a second preset time length, the control component generates the switching operation instruction.
[0013] In some embodiments, the light emitting unit is connected to an information receiving pin of the control component, and the light emitting unit changes a light emitting state in response to a level change of the information receiving pin.
[0014] In some embodiments, the data monitoring device further includes a storage component; the storage component is connected to the control component and is configured to receive and store processed carrier communication data and processed RS485 communication data.
[0015] In some embodiments, the data monitoring device also includes a power supply component, which is connected to the control component, the storage component, the RS485 circuit and the carrier circuit, and the power supply component is configured to provide power to the control component, the storage component, the RS485 circuit and the carrier circuit.
[0016] The second aspect of the present application provides a data monitoring system, comprising a host computer and the data monitoring device as described above, the host computer and the data monitoring device being communicatively connected via a first interface, the host computer performing configuration operations on the data monitoring device, wherein the configuration operations at least include at least one of setting the time for the data monitoring device, setting the baud rates of the first interface and the second interface, uploading data of the data monitoring device, clearing data of the data monitoring device, and checking space usage.
[0017] Implementing one of the above technical solutions of the present application has the following advantages or beneficial effects: In the present application, by setting a first interface for collecting RS485 communication data of the instrument and a second interface for collecting carrier communication data transmitted between the carrier interface of the instrument and the carrier module, it is possible to monitor dual-channel data at the same time, that is, carrier communication data and RS485 communication data. Compared with other terminal devices, such as computers, etc., which need to remove the carrier module when obtaining carrier communication data, the present application can monitor dual-channel data while not affecting the normal operation of the instrument to the greatest extent. In this case, when the instrument fails, the data monitoring device of the embodiment of the present application can collect communication messages when the instrument reproduces the failure, and by analyzing the communication messages, the root cause of the failure can be determined. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0019] Figure 1 is a structural block diagram of a data monitoring device according to an embodiment of the present application;
[0020] Figure 2 It is an interactive schematic diagram of the data monitoring device of an embodiment of the present application.
[0021] In the figure: 1. data monitoring device; 10. data collection component; 20. control component; 30. interaction component; 40. storage component; 50. power supply component; 11. first interface; 12. second interface; 13. RS485 circuit; 14. carrier circuit; 31. light-emitting unit; 32. button unit; 51. first power supply circuit; 52. second power supply circuit. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of the present application clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present application are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, and devices that are consistent with some aspects disclosed in the present application as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present application.
[0023] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0024] In order to illustrate the technical solution described in the present application, a specific embodiment is provided below, and only the parts related to the embodiment of the present application are shown.
[0025] The first aspect of the present application provides a data monitoring device 1. In some embodiments, the data monitoring device 1 can be used to collect and monitor RS485 communication data between the meter and the main station or concentrator; the data monitoring device 1 can be used to collect and monitor the carrier communication data between the meter and the carrier module. Among them, RS485 communication data can refer to data transmitted based on the RS485 communication protocol, and the RS485 communication data can include at least one of the meter data, status information and the control command of the main station. The meter can include one of an electric energy meter, a gas meter or a water meter.
[0026] like Figure 1 and Figure 2 As shown, in some embodiments, the data monitoring device 1 may include a data collection component 10 and a control component 20. The control component 20 may be connected to the data collection component 10, and the data collection component 10 may include a first interface 11 and a second interface 12; wherein the first interface 11 may be connected to the instrument to collect RS485 communication data of the instrument. In some embodiments, the instrument may include a carrier interface and a carrier module, and the carrier interface and the carrier module may be detachably connected.
[0027] In some embodiments, the second interface 12 can be configured to be connected to the carrier interface and the carrier module, and the second interface 12 is used to collect the carrier communication data transmitted between the carrier interface and the carrier module. The control component 20 receives the RS485 communication data of the first interface 11 and the carrier communication data of the second interface 12, and monitors the RS485 communication data and the carrier communication data.
[0028] In some embodiments, RS485 communication data may include RS485 receiving data and RS485 sending data, wherein RS485 receiving data may refer to data transmitted based on RS485 communication protocol received by the instrument from the main station, and RS485 sending data may refer to data transmitted based on RS485 communication protocol sent by the instrument to the main station. In some embodiments, the first interface 11 may be a USB port; the first interface 11 may be connected to the RS485 communication interface of the instrument via a USB to 485 line, such as a USB to 485 alligator clip line, and the USB to 485 line is connected in parallel with the RS485 communication line connected between the main station and the instrument. In this case, since the instrument has multiple RS485 communication interfaces, when the instrument communicates with the main station using the RS485 communication line connected in parallel with the USB to 485 line, the first interface 11 can synchronously obtain the RS485 communication data transmitted by the RS485 communication interface of the instrument.
[0029] In some embodiments, the data collection component 10 may include an RS485 circuit 13 and a carrier circuit 14. In some embodiments, the RS485 circuit 13 may be connected to the first interface 11, the RS485 circuit 13 receives a level signal representing RS485 communication data, converts the level signal, and sends the converted level signal to the control component 20. In some embodiments, the carrier circuit 14 may be connected to the second interface 12, the carrier circuit 14 receives a carrier signal representing carrier communication data, converts the carrier signal, and sends the converted carrier signal to the control component 20.
[0030] In certain embodiments, RS485 circuit 13 can include RS485 to TTL level chip, such as MAX485 chip or 75176 chip. RS485 circuit 13 can realize RS485 level signal, that is, the conversion between the level signal and TTL level signal that characterizes RS485 communication data. RS485 receiving data and RS485 sending data can be based on RS485 level signal transmission. Control assembly 20 can receive and parse TTL level signal, obtain RS485 receiving data and RS485 sending data.
[0031] Generally speaking, the meter can communicate with the master station, concentrator or other smart grid equipment through the carrier module, wherein the carrier module can convert the meter data or status information of the meter into a carrier signal, and then transmit it to the master station, concentrator or other smart grid equipment through the power line. At the same time, the carrier module can receive the control signal of the concentrator or other smart grid equipment and transmit it to the meter. The carrier communication data can refer to the data transmitted between the carrier interface of the meter and the carrier module. The carrier communication protocol can be a communication protocol such as ANSI C12.22 and G37.
[0032] In some embodiments, the carrier communication data may include carrier reception data and carrier transmission data, wherein the carrier reception data may be data sent from the carrier module to the instrument, such as a control signal, etc., and the carrier transmission data may be data sent from the instrument to the carrier module, such as the instrument's collected data or status information. The carrier reception data may be received via the instrument's carrier interface, and the carrier transmission data may be sent via the instrument's carrier interface.
[0033] In some embodiments, the second interface 12 may be used to receive carrier reception data, and the second interface 12 may include an interface or a socket for inserting a carrier module.
[0034] In some embodiments, the second interface 12 can be used to receive data sent by the carrier, and the second interface 12 can be connected to the carrier interface of the meter. The second interface 12 can be connected to the carrier interface of the meter by direct plugging, for example, by plugging into the carrier interface of the meter.
[0035] In some embodiments, the second interface 12 may be used only to receive carrier communication data. In this case, the second interface 12 can play a role similar to a bridge, which can reduce the impact on the communication between the meter and the carrier module.
[0036] In some embodiments, the carrier circuit 14 may be used to generate, amplify, and transmit a carrier signal for data transmission over a power line or other transmission media.
[0037] In some embodiments, the control component 20 can be used to process data. The control component 20 can process the data collected by the data collection component 10. The control component 20 can be connected to the RS485 circuit 13 to receive the RS485 communication data of the instrument; the control component 20 can be connected to the carrier circuit 14 to receive the carrier communication data. For example, the processing method can include at least one of denoising, filtering, calibration, statistical analysis and trend prediction of the data.
[0038] In some embodiments, the control component 20 can be a MCU (Microcontroller Unit) chip. RS485 communication data and carrier communication data can enter the MCU chip through the information receiving pin of the MCU chip. The MCU chip can be one of an 8-bit MCU, a 16-bit MCU or a 32-bit MCU. The model of the MCU chip can be one of PIC16F877A, AT89C51, MCP16F16, STM706 or ARM Cortex-M0.
[0039] In some embodiments, the control component 20 may include a cache space. After data enters the control component 20, it can be stored in the cache space and wait for information processing. When data is transmitted to the information receiving pin, the information receiving pin will change level, that is, change between a high level and a low level. When the current information receiving pin no longer changes level, it can be considered that there is no data currently being transmitted, and the control component 20 can retrieve and process the data in the cache space.
[0040] In some embodiments, the control component 20 is configured to add a time tag and a channel tag to the RS485 communication data and the carrier communication data after receiving the RS485 communication data and the carrier communication data; wherein the time tag can represent the time information, and the channel tag can be used to indicate the communication direction of the RS485 communication data and the carrier communication data.
[0041] In some embodiments, according to the communication direction, the channel tag may include a first tag representing RS485 received data, a second tag representing RS485 sent data, a third tag representing carrier received data, and a fourth tag representing carrier sent data. In this case, when analyzing the data, the communication direction of the data can be easily obtained, so that the receiver or sender of the data can be obtained. The time information may refer to the current time.
[0042] In some embodiments, the control component 20 can add a channel tag and a time tag to the RS485 communication data and the carrier communication data after receiving the RS485 communication data of the first interface 11 and the carrier communication data of the second interface 12 for a first preset time; the first preset time can be less than or equal to the communication interval of the instrument; the first preset time can be 90 milliseconds to 110 milliseconds, for example, 90 milliseconds, 95 milliseconds, 100 milliseconds, 105 milliseconds or 110 milliseconds. In this case, since there is a time interval between each communication of the instrument and the next communication, by adding the channel tag and the time tag after the first preset time is reached, it can be judged that the instrument has sent or received relatively complete data, thereby improving the integrity of the data.
[0043] In some embodiments, the control component 20 can add a channel tag and a time tag to the RS485 communication data and the carrier communication data after the information receiving pin stops changing its level for a first preset time period, thereby further improving the integrity of the data.
[0044] In some embodiments, the data monitoring device 1 may further include a storage component 40. The storage component 40 may be connected to the control component 20, and may be configured to receive and store the processed carrier communication data and the processed RS485 communication data.
[0045] In some embodiments, the storage component 40 may include a Flash chip. The processed carrier communication data and the processed RS485 communication data may be stored in the Flash chip. The processed carrier communication data and the processed RS485 communication data may carry corresponding channel tags and time tags. The capacity of the Flash chip may be 32M. In this case, the Flash chip can store data of the meter for more than one week, reducing the waiting time of the technicians, and can better solve the problem that the meter is difficult to reproduce for a long time.
[0046] In some embodiments, the control component 20 can calculate the remaining storage space of the storage component 40 according to the current storage address. Before the processed carrier communication data and the processed RS485 communication data are stored in the storage component 40, the control component 20 can determine the address offset pointer of the Flash chip. When the Flash chip is full, the address offset pointer will exceed the maximum storage address of the Flash chip. At this time, the control component 20 can stop storing data in the storage component 40. The control component 20 can retrieve data from the storage component 40.
[0047] In some embodiments, the storage component 40 may further include an eeprom chip, which may be used to store data that needs to be saved when the data monitoring device 1 itself is running. The capacity of the eeprom chip may be 128KB.
[0048] In some embodiments, the data monitoring device 1 may further include an interactive component 30, which is connected to the control component 20. The interactive component 30 may include a light emitting unit 31 for identifying different working modes, and a key unit 32 for switching working modes. The light emitting unit 31 and the key unit 32 may be connected to the control component 20.
[0049] In some embodiments, the control component 20 receives the key unit 32 being triggered to generate a switching operation instruction, controls the RS485 circuit 13 to switch the working mode according to the switching operation instruction, and controls the light-emitting unit 31 to display a light-emitting state corresponding to the working mode.
[0050] In some embodiments, the interactive component 30 can be used to indicate the current working mode of the data monitoring device 1, and the working mode can include a monitoring mode and a configuration mode. When the data monitoring device 1 is in the monitoring mode, the first interface 11 can receive the RS485 communication data of the instrument and transmit it to the RS485 circuit 13; then the RS485 circuit 13 can transmit the data to the control component 20. The current working mode can be viewed through the interactive component 30.
[0051] In some embodiments, the light-emitting state of the light-emitting unit 31 may include the wavelength and color of the light emitted, the switch state, such as at least one of emitting or extinguishing, and flashing. In some embodiments, the light-emitting unit 31 may indicate the current working mode by displaying different wavelengths and colors of light. For example, the monitoring mode may be indicated by yellow light, and the configuration mode may be indicated by green light. Thus, the working mode of the data monitoring device 1 can be easily identified.
[0052] In some embodiments, the light-emitting unit 31 can be connected to the information receiving pin of the control component 20, and the light-emitting unit 31 changes the light-emitting state in response to the level change of the information receiving pin. For example, the light-emitting unit 31 can emit light or turn off in response to the level change of the information receiving pin. In some embodiments, when the information receiving pin is a high-level signal, the light-emitting unit 31 can emit light; when the information receiving pin is a low-level signal, the light-emitting unit 31 can turn off. In some embodiments, when the light-emitting unit 31 flashes quickly and irregularly, it can be considered that the current control component 20 is monitoring RS485 communication data, and the control component 20 is storing RS485 communication data in the storage component 40.
[0053] In some embodiments, when the RS485 communication data cannot be stored in the storage component 40, or the storage space of the storage component 40 is full, the light-emitting unit 31 can flash regularly, and the flashing frequency can be once per second, twice per second, or once per two seconds, which can be set according to actual needs and is not limited here. Therefore, when the light-emitting unit 31 flashes regularly, it can be considered that the remaining storage space of the storage component 40 is insufficient, and the control component 20 cannot continue to monitor the RS485 communication data. The control component 20 can be connected to the light-emitting unit 31 to control the light-emitting unit 31 to flash regularly.
[0054] In some embodiments, when the light-emitting unit 31 is always on, that is, the light-emitting unit 31 keeps emitting light for a third preset time, it can be considered that the data monitoring device 1 is in the monitoring mode or the configuration mode. When in the monitoring mode or in the configuration mode, the color of the light emitted by the light-emitting unit 31 can be different.
[0055] In some embodiments, when in configuration mode, the first interface 11 can be used to receive and / or send data. In some embodiments, the first interface 11 can be connected to a terminal device, receive data from the terminal device, and send data to the terminal device, such as RS485 communication data.
[0056] In some embodiments, the button unit 32 can be connected to the detection button pin of the control component 20; when the detection button pin detects that the level signal triggered by the button unit 32 being pressed changes and reaches the second preset duration, the control component 20 generates a switching operation instruction. In some embodiments, when the level signal triggered by the detection button pin is changed from a first level signal to a second level signal, and the second level signal is maintained for a second preset duration, the control component 20 generates a switching operation instruction. According to the switching operation instruction, the control component 20 can switch the working mode of the RS485 circuit 13, for example, from a configuration mode to a monitoring mode. In some embodiments, the first level signal can be a high level signal, and the second level signal can be a low level signal. In other embodiments, the first level signal can be a low level signal, and the second level signal can be a high level signal.
[0057] In some embodiments, the second preset duration may be 1 second to 5 seconds, for example, 1 second, 2 seconds, 3 seconds, 4 seconds or 5 seconds.
[0058] In some embodiments, the data monitoring device 1 may further include a power supply component 50, which is connected to the control component 20, the storage component 40, the RS485 circuit 13 and the carrier circuit 14, and the power supply component 50 is configured to provide electrical energy to the control component 20, the storage component 40, the RS485 circuit 13 and the carrier circuit 14.
[0059] In some embodiments, the power supply component 50 may include a power supply and a power supply circuit, and the power supply may be connected to the power supply circuit.
[0060] In some embodiments, the power source may be a small button battery, which may be enabled when the data monitoring device 1 is in low power consumption. Thus, the time of the data monitoring device 1 is not initialized, so that the time tag of the data in the data monitoring device 1 can be more accurate.
[0061] In some embodiments, the power supply circuit may include a first power supply circuit 51 and a second power supply circuit 52 .
[0062] In some embodiments, the first power supply circuit 51 can be connected to an external power supply to obtain electrical energy. In some embodiments, the first power supply circuit 51 can be connected to an external power supply through a USB charging interface of the data monitoring device 1. The external power supply can be a mobile power supply or other USB 5V power supply. The first power supply circuit 51 can convert the voltage of the external power supply into a predetermined voltage through internal voltage transformation, for example, the predetermined voltage can be 3.3V.
[0063] In some embodiments, the first power supply circuit 51 may be connected to the storage component 40 , the control component 20 , and the RS485 circuit 13 to provide a predetermined voltage.
[0064] In some embodiments, the second power supply circuit 52 can be connected to the carrier module to obtain power, and the power can be provided by the 12V pin on the carrier module. The second power supply circuit 52 can be connected to the carrier module through the second interface 12. The second power supply circuit 52 can convert the voltage of the 12V pin on the carrier module into a predetermined voltage through internal voltage transformation, for example, the predetermined voltage can be 3.3V.
[0065] In some embodiments, the second power supply circuit 52 may be connected to the carrier circuit 14 to provide a predetermined voltage to the carrier circuit 14 .
[0066] In some embodiments, the first power supply circuit 51 and the second power supply circuit 52 can be used separately. In other embodiments, the first power supply circuit 51 and the second power supply circuit 52 can also be used at the same time.
[0067] The second aspect of the present application provides a data monitoring system, which may include a host computer and the data monitoring device 1 as described in the first aspect of the present application.
[0068] In some embodiments, the host computer and the data monitoring device 1 can be connected to each other through the first interface 11. The host computer can perform configuration operations on the data monitoring device 1, wherein the configuration operations at least include setting the time of the data monitoring device 1, setting the baud rate of the first interface 11 and the second interface 12, uploading data of the data monitoring device 1, clearing the data of the data monitoring device 1, and checking the space usage. In some embodiments, the space usage of the storage component 40 can be checked.
[0069] In some embodiments, when in configuration mode, the first interface 11 can be connected to the serial port of the host computer via a 485 to TLL data line for data exchange.
[0070] In some embodiments, the host computer may be a computer or a tablet device used in conjunction with the data monitoring device 1. The host computer may configure and operate the data monitoring device 1 through a variety of operating instructions.
[0071] In the present application, by setting a first interface 11 for collecting RS485 communication data of the instrument and a second interface 12 for collecting carrier communication data transmitted between the carrier interface of the instrument and the carrier module, it is possible to monitor dual-channel data at the same time, that is, carrier communication data and RS485 communication data. Compared with other terminal devices, such as computers, which need to remove the carrier module when obtaining carrier communication data, the present application can monitor dual-channel data while not affecting the normal operation of the instrument to the greatest extent. In this case, when the instrument fails, the data monitoring device 1 of the embodiment of the present application can collect communication messages when the instrument reproduces the failure, and by analyzing the communication messages, the root cause of the failure can be determined.
[0072] The above is only the preferred embodiment of the present application. Those skilled in the art will appreciate that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present application. In addition, under the guidance of the present application, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of the present application belong to the protection scope of the present application.
Claims
1. A data monitoring device, characterized in that: It includes a data collection component and a control component; the control component is connected to the data collection component; The data collection component includes a first interface and a second interface; wherein the first interface is connected to the instrument and is used to collect RS485 communication data of the instrument; The instrument includes a carrier interface and a carrier module, the carrier interface and the carrier module are detachably connected, and when the second interface is configured to be connected to the carrier interface and the carrier module, the second interface is used to collect carrier communication data transmitted between the carrier interface and the carrier module; The control component receives RS485 communication data of the first interface and carrier communication data of the second interface, and monitors the RS485 communication data and the carrier communication data.
2. The data monitoring device according to claim 1, characterized in that: The data collection component includes an RS485 circuit and a carrier circuit; the RS485 circuit is connected to the first interface, the RS485 circuit receives a level signal representing the RS485 communication data, converts the level signal, and sends the converted level signal to the control component; the carrier circuit is connected to the second interface, the carrier circuit receives a carrier signal representing the carrier communication data, converts the carrier signal, and sends the converted carrier signal to the control component.
3. The data monitoring device according to claim 1, characterized in that: The control component is configured to add a time tag and a channel tag to the RS485 communication data and the carrier communication data after receiving the RS485 communication data and the carrier communication data; wherein the time tag represents time information, and the channel tag is used to indicate the communication direction of the RS485 communication data and the carrier communication data.
4. The data monitoring device according to claim 3, characterized in that: After the control component receives the RS485 communication data of the first interface and the carrier communication data of the second interface for a first preset time length, adding the channel label and the time label to the RS485 communication data and the carrier communication data; The first preset duration is less than or equal to the communication interval of the instrument; The first preset time length is 90 milliseconds to 110 milliseconds.
5. The data monitoring device according to claim 1, characterized in that: The data monitoring device further comprises an interactive component, wherein the interactive component comprises a light emitting unit for identifying different working modes and a key unit for switching the working modes; the light emitting unit and the key unit are connected to the control component; The control component receives the switch operation instruction generated by the button unit being triggered, controls the RS485 circuit to switch the working mode according to the switch operation instruction, and controls the light-emitting unit to display the light-emitting state corresponding to the working mode.
6. The data monitoring device according to claim 5, characterized in that: The button unit is connected to the detection button pin of the control component; when the detection button pin detects that the level signal triggered by pressing the button unit changes and reaches a second preset time length, the control component generates the switching operation instruction.
7. The data monitoring device according to claim 5, characterized in that: The light emitting unit is connected to the information receiving pin of the control component, and the light emitting unit changes the light emitting state in response to the level change of the information receiving pin.
8. The data monitoring device according to claim 2, characterized in that: The data monitoring device also includes a storage component; the storage component is connected to the control component and is configured to receive and store the processed carrier communication data and the processed RS485 communication data.
9. The data monitoring device according to claim 8, characterized in that: The data monitoring device also includes a power supply component, which is connected to the control component, the storage component, the RS485 circuit and the carrier circuit, and the power supply component is configured to provide electrical energy to the control component, the storage component, the RS485 circuit and the carrier circuit.
10. A data monitoring system, characterized in that: It includes a host computer and a data monitoring device as described in any one of claims 1 to 9, the host computer and the data monitoring device are communicatively connected via a first interface, and the host computer performs configuration operations on the data monitoring device, wherein the configuration operations at least include at least one of setting the time of the data monitoring device, setting the baud rate of the first interface and the second interface, uploading data of the data monitoring device, clearing data of the data monitoring device, and checking space usage.
