CN111858227A - Equipment state monitoring method, device, equipment and storage medium - Google Patents

Equipment state monitoring method, device, equipment and storage medium Download PDF

Info

Publication number
CN111858227A
CN111858227A CN201911423112.7A CN201911423112A CN111858227A CN 111858227 A CN111858227 A CN 111858227A CN 201911423112 A CN201911423112 A CN 201911423112A CN 111858227 A CN111858227 A CN 111858227A
Authority
CN
China
Prior art keywords
state information
state
storage component
information
shared
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
CN201911423112.7A
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.)
Beijing Qisheng Technology Co Ltd
Original Assignee
Beijing Qisheng Technology 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 Beijing Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN201911423112.7A priority Critical patent/CN111858227A/en
Publication of CN111858227A publication Critical patent/CN111858227A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for monitoring equipment state, wherein the method comprises the following steps: acquiring state information of a sharing device, wherein the state information comprises: the method comprises the steps of obtaining normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event, storing the state information into a special storage assembly, and transmitting the state information in the special storage assembly to test equipment, and the test equipment is used for monitoring the running state of the sharing equipment according to the obtained state information. According to the technical scheme, the state information of the shared equipment is stored by means of the special storage component, and the historical state information of the shared equipment can be traced.

Description

Equipment state monitoring method, device, equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for monitoring a device status.
Background
With the explosion of the sharing economy, the sharing devices are becoming popular and popular, and more sharing devices are being put into use, such as sharing a bicycle, sharing a car, sharing a charger, sharing a massage chair, and so on. At present, after the shared equipment is put into use, the shared equipment is usually in an unsupervised state, and operators usually cannot know the state information of the shared equipment in time.
In the related art, when a fault occurs in shared devices put into use, the state information of the shared devices is usually obtained by means of operation and maintenance search or direct on-site investigation by research personnel.
However, the above method for obtaining the state information of the shared device is time-consuming, labor-consuming and high in cost, and some faults occurring in the using process of the shared device may not be reproduced in the subsequent analysis, so that some faults of the shared device still cannot be solved in time, and the problem of low fault solving efficiency exists.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for monitoring equipment state, which aim to solve the problems of high cost and low failure solution efficiency of the existing equipment state monitoring method.
In a first aspect, the present application provides an apparatus status monitoring method, which is applied to a shared apparatus, and the method includes:
acquiring state information of the sharing device, wherein the state information comprises: the method comprises the following steps of obtaining normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event;
storing the state information in a dedicated storage component;
and transmitting the state information in the special storage assembly to test equipment, wherein the test equipment is used for monitoring the running state of the sharing equipment according to the acquired state information.
In a possible design of the first aspect, the obtaining the state information of the shared device includes:
respectively detecting the operation information of a plurality of functional components of the sharing equipment through a plurality of sensors arranged in the sharing equipment;
and determining the state information of the shared equipment according to the operation information of the functional components and a preset normal operation state set.
In another possible design of the first aspect, the status information includes any one or a combination of more than one of: power state, network state, position information, motion state, use state, master control state information, and switch lock state.
In yet another possible design of the first aspect, the storing the state information in a dedicated storage component includes:
storing the state information into a special storage component at preset time intervals; or
Storing the state information into a dedicated storage component by means of event triggering, wherein the event triggering comprises: and the working state of the sharing equipment is changed into normal and abnormal states.
In yet another possible design of the first aspect, the storing the state information in a dedicated storage component includes:
Determining an available storage area in the special storage component according to the size of the space occupied by the state information;
storing the state information in the available storage area in the dedicated storage component.
Optionally, the determining an available storage area in the dedicated storage component according to the size of the space required to be occupied by the state information includes:
when the special storage component has a free area and the space size of the free area is larger than or equal to the space size occupied by the state information, determining the available storage area in the free area;
when the special storage component does not have a free area and/or the space size of the free area is smaller than the space size required to be occupied by the state information, determining the available storage area in the special storage component according to a preset coverage rule, wherein the preset coverage rule comprises: a chronological override of storage and/or a secondary-important order override of information.
In yet another possible design of the first aspect, the transmitting the state information in the dedicated storage component to the test equipment includes:
Transmitting the state information in the special storage assembly to the test equipment through a serial port line or a short-distance wireless communication function connected between the sharing equipment and the test equipment; or
And transmitting the state information in the special storage component to the test equipment in any one mode of long-distance wireless communication, a connected transmission protocol and a connectionless transmission protocol.
In a second aspect, the present application provides an apparatus for monitoring device status, which is applied to a shared device, and the apparatus includes: the device comprises an acquisition module, a processing module and a transmission module;
the obtaining module is configured to obtain state information of the shared device, where the state information includes: the method comprises the following steps of obtaining normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event;
the processing module is used for storing the state information into a special storage component;
the transmission module is used for transmitting the state information in the special storage assembly to the test equipment, and the test equipment is used for monitoring the running state of the sharing equipment according to the acquired state information.
In a possible design of the second aspect, the obtaining module is specifically configured to detect, through a plurality of sensors built in a shared device, operation information of a plurality of functional components of the shared device, respectively, and determine the state information of the shared device according to the operation information of the plurality of functional components and a preset normal operation state set.
In another possible design of the second aspect, the status information includes any one or a combination of more than one of: power state, network state, position information, motion state, use state, master control state information, and switch lock state.
In yet another possible design of the second aspect, the processing module is specifically configured to store the state information into a dedicated storage component at intervals of a preset duration; or
The processing module is specifically configured to store the state information in a dedicated storage component in an event triggering manner, where the event triggering includes: and the working state of the sharing equipment is changed into normal and abnormal states.
In yet another possible design of the second aspect, the processing module is specifically configured to determine an available storage area in the dedicated storage component according to a size of a space required to be occupied by the state information, and store the state information in the available storage area in the dedicated storage component.
Optionally, the processing module is specifically configured to determine the available storage area in the idle area when the dedicated storage component has an idle area and the size of the idle area is greater than or equal to the size of the space required to be occupied by the state information, and determine the available storage area in the dedicated storage component according to a preset coverage rule when the dedicated storage component does not have an idle area and/or the size of the idle area is smaller than the size of the space required to be occupied by the state information, where the preset coverage rule includes: a chronological override of storage and/or a secondary-important order override of information.
In yet another possible design of the second aspect, the transmission module is configured to transmit the status information in the dedicated storage component to the testing device through a serial port line or a short-range wireless communication function connected between the sharing device and the testing device; or
And the transmission module is used for transmitting the state information in the special storage assembly to the test equipment in any one mode of long-distance wireless communication, a connected transmission protocol and a connectionless transmission protocol.
In a third aspect, the present application provides a sharing device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method according to the first aspect as well as possible designs of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer program instructions which, when run on a computer, cause the computer to perform the method as set forth in the first aspect and each possible design of the first aspect.
According to the equipment state monitoring method, the device, the equipment and the storage medium provided by the embodiment of the application, the shared equipment is used for acquiring the state information of the shared equipment, storing the state information into the special storage assembly and transmitting the state information in the special storage assembly to the test equipment, so that the test equipment can monitor the running state of the shared equipment according to the acquired state information. In the technical scheme, the special storage component is a storage component for storing the state information of the equipment by a special user, can store the state information of the shared equipment within a preset period of time, and not only comprises normal state information, but also comprises abnormal state information, and the abnormal state information comprises the processing record of an abnormal event and the processing result of the abnormal event, so that the historical state information of the shared equipment can be obtained by analyzing the state information, the problems of time and labor waste caused by manual operation are avoided, and the failure solving efficiency is improved.
Drawings
Fig. 1a is an application scenario diagram of an apparatus status monitoring method according to an embodiment of the present application;
FIG. 1b is a block diagram of the application scenario shown in FIG. 1 a;
fig. 2 is a block diagram of another application scenario of the device status monitoring method according to the embodiment of the present application;
fig. 3 is a schematic flowchart of a first embodiment of an apparatus state monitoring method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a shared device communicating with a test device;
fig. 5 is a schematic flowchart of a second embodiment of an apparatus state monitoring method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an embodiment of an apparatus state monitoring device provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a sharing device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the advancement of science and technology and the improvement of living standards of people, shared devices gradually come into the sight line and life of people, such as a shared bicycle, a shared automobile, a shared charger, a shared massage chair and the like. The sharing equipment is a product which reasonably configures and efficiently utilizes social resources in a sharing mode, and brings convenience to the life of people.
In practical application, after the shared device is put into operation, the shared device is usually in an unsupervised state, and whether the shared device is normally operated or automatically recovered to be normal after a fault occurs is a problem which needs to be paid important attention. In the prior art, when a shared device in operation has a problem, the shared device is generally searched by operation and maintenance and is transported to a designated place to be detected and determined by detection personnel, or research and development personnel directly go to a field to perform investigation, and the state detection mode is time-consuming and labor-consuming and has low detection efficiency.
To solve the problem, an embodiment of the present application provides an apparatus state monitoring method, and a general idea of the scheme is: the shared device can acquire state information of the shared device, store the state information into the special storage assembly, and transmit the state information in the special storage assembly to the test device, so that the test device can monitor the running state of the shared device according to the acquired state information.
Before the technical solution of the present application is described below, an application scenario of an embodiment of the device status monitoring method provided in the embodiment of the present application is first described.
As an example, fig. 1a is an application scenario diagram of the device status monitoring method provided in the embodiment of the present application. Referring to fig. 1a, the application scenario may include: a shared device 11 and a test device 12 capable of communicating with each other, and a dedicated storage component 13 connected to the shared device 11.
In this embodiment, the dedicated storage component 13 may be a storage device independent from the sharing device 11 but attached to the sharing device 11, and may perform information interaction with the sharing device 11 through a communication interface provided therein, and transmit the stored status information to the testing device through the sharing device 11. Wherein the shared device 11 has a communication interface matching the communication interface of the dedicated storage component 13.
Typically, the dedicated storage component 13 is located inside the shared device to ensure that it is not easily damaged. By way of example, fig. 1a shows a shared bicycle 11a and a shared power bank 11b, as well as a dedicated storage component 13a disposed on the shared bicycle 11a and connected to the shared bicycle 11a, and a dedicated storage component 13b disposed on the shared power bank 11b and connected to the shared power bank 11 b. The embodiment of the present application does not limit the specific form of the sharing device.
In this embodiment, the shared device 11 may store its own state information, event-triggered processing logic, and processing results into the dedicated storage component 13 at regular time, so that the dedicated storage component 13 may store log information of the shared device 11, and when a certain condition is satisfied, the shared device 11 transmits the state information in the dedicated storage component 13 to the test device 12, and analyzes the operating state of the shared device according to the acquired state information of the shared device 11 by using the test device 12.
It will be appreciated that to reduce the additional cost of the shared device 11, the dedicated memory component 13 is typically an external memory device without processing capability, which is generally not capable of communicating directly with other devices, and thus, in this embodiment, the dedicated memory component 13 needs to transmit the stored state information to the test device 12 through the shared device 11.
For example, the dedicated storage component 13 may be a dedicated storage device such as a usb disk, an optical disk, a mobile hard disk, or other storage devices, and the embodiment of the present application does not limit the specific representation form of the dedicated storage component 13, and may be selected according to an actual application scenario.
Optionally, in other application scenarios, the dedicated storage component 13 may also be connected to other devices having a matching communication interface, and this embodiment is not limited thereto.
For example, the testing device 12 may be a monitoring system in the cloud, for example, including: a processor 121 and a display 122, wherein the processor 121 is used for processing the status information of the shared device, and the display 122 is used for presenting the processing result of the processor 121 to determine whether the shared device 11 has a fault. The testing device in fig. 1a only exemplarily shows one processor and one display, and the actual composition of the electronic device may be determined according to the actual situation, which is not described herein again.
Illustratively, FIG. 1b is a block diagram of the application scenario shown in FIG. 1 a. In this embodiment, referring to fig. 1b, a plurality of sensors 111 and a main controller 112 are provided in the shared device 11. Among them, the plurality of sensors 111 may detect status information of the sharing device 11, for example, a temperature sensor may detect temperature information of the sharing device, a power management chip may detect a power status of the sharing device, a positioning chip may detect location information of the sharing device in real time, and the like.
The main controller 112 makes a logical decision on the status information detected by the plurality of sensors 111, and performs a corresponding operation. For example, for a shared bicycle, when a user needs to use the shared bicycle, a microswitch output sensor of the shared bicycle determines whether a condition of the user meets a preset unlocking condition when detecting an unlocking request of the user, and automatically opens an electronic lock when the condition is met, so that the shared bicycle can be ridden. For another example, for the shared power bank, when the user performs the relevant operation steps based on the operation instruction by using the terminal device such as the mobile phone, the shared power bank is allowed to be used.
As another example, fig. 2 is a block diagram of another application scenario of the device status monitoring method provided in the embodiment of the present application. Referring to fig. 2, the application scenario may include: a shared device 11 and a test device 12 capable of communicating with each other. The shared device 11 is provided with a plurality of sensors 111, a main controller 112, and a memory 113. The memory 113 may include a dedicated storage component 1330, and the dedicated storage component 1130 is used for storing status information of the shared device.
In the present embodiment, the application scenario shown in fig. 2 is different from the application scenario shown in fig. 1b in that the dedicated storage component 1130 in the application scenario shown in fig. 2 is directly implemented by using the memory of the shared device 11, whereas the dedicated storage component 13 in the application scenario shown in fig. 1a is a device independent from the shared device 11 and can work in coordination with the memory of the shared device 11 itself.
It is understood that the working principle of the dedicated storage component 1130 in the application scenario shown in fig. 2 is similar to that of the dedicated storage component 13 in the application scenario shown in fig. 1a, and the detailed description thereof is omitted here. The working principle of the shared device 11 and the test device 12 in the application scenario shown in fig. 2 is similar to that of the shared device 11 and the test device 12 in the application scenario shown in fig. 1a, and is not limited herein.
In the embodiment of the present application, the shared device in the application scenario shown in fig. 1a or fig. 2 may be a shared device in various scenarios, such as sharing a vehicle, sharing a power bank, sharing a massage chair, sharing an umbrella, sharing a vending machine, and so on. In the present embodiment, a shared device is used as an execution subject of the device status monitoring method for explanation, and a concrete representation form of the shared device may be determined according to an actual situation.
The technical solution of the present application will be described in detail below with reference to specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 3 is a schematic flowchart of a first embodiment of a device status monitoring method according to an embodiment of the present application. The method is applied to the sharing device in the application scenario shown in fig. 1a or fig. 2. As shown in fig. 3, the device status monitoring method may include the steps of:
Step 31, obtaining the state information of the sharing device, where the state information includes: normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event.
In the embodiment of the present application, the shared device is usually in an unsupervised state after being put into use, and thus the shared device generally has the capability of detecting its own state information, such as power state, use state, location state, and the like.
For example, the state information of the sharing device may be divided into normal state information and abnormal state information according to whether an abnormal state occurs after the sharing device is put into use. The normal state information may include normal processing logic of the shared device, where the normal processing logic includes: the system comprises a starting state, a using state and an ending state, wherein the exception state information comprises a processing record of an exception event and a processing result of the exception event.
For example, for a shared vehicle, the normal state information may include: the abnormal event can be abnormal unlocking, and the abnormal state information can be unlocking mode, unlocking judgment logic, abnormal reason and the like of an account corresponding to the abnormal unlocking.
For the shared power bank, the normal state information may include normal borrowing and returning information, and the abnormal state information may include the reasons for the incapability of charging, the incapability of connecting, the occurrence of each process, and the like.
It can be understood that, in the embodiments of the present application, a specific representation form of the state information of the sharing device is not limited, and may be determined according to a specific type of the sharing device, which is not described herein again.
Illustratively, in this embodiment, this step may be implemented by the following possible design manners:
a1: the operation information of a plurality of functional components of the shared device is detected by a plurality of sensors built in the shared device.
Typically, various sensors are disposed within the shared device to detect the operational status of various functional components within the shared device. For example, for a shared vehicle, the motion state of the wheels is detected using a pressure sensor, a hall sensor, etc., the on-off state of the lock is detected using a micro switch sensor, the state of the power is detected using a power management chip, the state of charge of the battery is detected using a card chip, the network and communication states are detected using a card reader, etc., the position information of the device is determined using a positioning chip, the state of the main controller is detected using a temperature sensor and a logic sensor, etc. The embodiments of the present application do not limit the type and function of the sensor.
A2: and determining the state information of the sharing equipment according to the operation information of the functional components and a preset normal operation state set.
In this embodiment, a normal operation state set is preset in the shared device, where the normal operation state set includes normal state information of each functional component, and whether the state of each functional component is normal or not may be determined by comparing the detected operation information of the plurality of functional components with a corresponding operation state in the preset normal operation state set, so as to determine the state information of the shared device.
For example, in this embodiment, the status information may include any one or a combination of more than one of the following: power state, network state, position information, motion state, use state, master control state information, and switch lock state.
It will be appreciated that the status information of the sharing device may also include other types of status information, such as bluetooth status, SIM card information, etc. of the sharing device. Different types of shared devices have different types and combination forms of state information, for example, the state information of the shared power bank does not include the motion state, the switch lock state and the like included in the shared vehicle, and the state information of the shared vehicle may not include the charge state of the shared power bank. The embodiment of the present application does not limit the expression form of the state information of the shared device.
And step 32, storing the state information into a special storage component.
In the embodiment of the application, after acquiring the state information of the sharing device, the sharing device may write the state information into the dedicated storage component. In general, the shared device may store the acquired normal state information to the dedicated storage component at regular intervals, or the shared device may directly store the processing record and the processing result of the abnormal event to the dedicated storage component when the abnormal event occurs.
For example, the exception event may be an on-off lock exception, an illegal move, or the like, and in this case, the shared device may directly write the specific processing logic flow into the dedicated storage component.
It is worth mentioning that, in the embodiment of the present application, before the shared device stores the state information into the dedicated storage component, the state information may be further encrypted and compressed, the encryption process may ensure the transmission security of the state information, and the compression process may reduce the size of the space occupied by the state information, so as to reasonably utilize the storage space of the dedicated storage component.
In summary, in this embodiment, the step 32 can be implemented by the following possible implementation manners:
As an example, the sharing device stores the state information into the dedicated storage component every preset time interval.
In a normal state, in order to avoid excessive power consumption and improve battery endurance of the sharing device, the sharing device may periodically store the state information of the sharing device in the dedicated storage component, that is, write the state information to the dedicated storage component at preset intervals.
As another example, the shared device stores the state information in the dedicated storage component by means of event triggering, where the event triggering includes: the working state of the sharing equipment is changed into normal and abnormal states.
In this embodiment, the change of the operating state may include a change of the operating state from normal to abnormal, or a change of the operating state from abnormal to normal. Therefore, the shared device can be triggered to execute the process of writing the state information into the special storage component when the working state of the shared device is changed from normal to abnormal or the working state is changed from abnormal to normal.
For example, the change of the working state from normal to abnormal may include that the power cannot be normally turned on or off, the borrowing cannot be performed, the settlement cannot be performed, and the like, and the change of the working state from abnormal to normal may include that the borrowing cannot be performed or the settlement cannot be performed when the network state is good, and the like. The embodiment of the present application does not limit the specific representation form of the working state change, and the specific representation form may be determined according to the category of the shared device and the actual application scenario, which is not described herein again.
And step 33, transmitting the state information in the special storage component to the test equipment, wherein the test equipment is used for monitoring the running state of the sharing equipment according to the acquired state information.
In this embodiment, in order to enable the monitoring personnel to timely acquire the state information of the sharing device and determine the actual operating state of the sharing device, the sharing device can be further connected (wired or wireless) with the testing device, and transmit the state information in the dedicated storage component to the testing device, so that the research and development personnel can acquire the historical operating state of the sharing device by analyzing the state information of the sharing device through the testing device.
It can be understood that, in the embodiment of the present application, when the state information stored in the dedicated storage component is subjected to encryption and compression processing, and before the shared device transmits the state information in the dedicated storage component to the test device, the state information read from the dedicated storage component may be decrypted first, and then semantic analysis is performed to determine whether an abnormal event occurs in the shared device, so that the abnormal state information corresponding to the abnormal event may be transmitted as important information, and the remaining normal state information may be transmitted as secondary important information to the test device, respectively, so that the test device may analyze the operating state of the shared device in a targeted manner.
Illustratively, fig. 4 is a schematic diagram of a sharing device communicating with a testing device. Referring to fig. 4, specific implementation of this step can be realized by two possible implementations:
referring to fig. 4, in one possible design, the shared device transmits the status information in the dedicated storage component to the test device via a serial port line or a short-range wireless communication function connected between the shared device and the test device.
Optionally, the possible implementation manner is a means for the testing device to read information from the dedicated storage component, and since the sharing device performs information interaction with the testing device through the serial port line or the short-range wireless communication function, the possible implementation manner is also referred to as local reading for the testing device. Alternatively, the short range wireless communication function may be a bluetooth function or the like.
Referring to fig. 4, in another possible design, the shared device may also transmit the status information in the dedicated storage component to the testing device through any one of long-distance wireless communication, a connected transmission protocol, and a connectionless transmission protocol.
Optionally, the sharing device may further perform remote communication with the cloud server between the sharing device and the testing device, for example, when the sharing device and the testing device have wireless transmission capabilities, the sharing device may transmit the state information in the dedicated storage component to the testing device through a remote wireless communication function (a transceiving function); when the shared device and the test device are connected, the state information in the dedicated storage component can be transmitted to the test device in any one of a connectionless transmission protocol such as a User Datagram Protocol (UDP) and a Transmission Control Protocol (TCP).
The embodiment of the application does not limit the specific transmission mode between the sharing device and the testing device, and the specific transmission mode can be determined according to actual conditions.
In the embodiment, the abnormal problem of the shared device can be traced through the memory storage mode of the special storage component, reproduction and simulation are not needed, and the state information stored in the special storage device can be transmitted to the test device through various means, so that the implementation mode is simple and efficient, the occupied resources are less, the writing and reading are simple and reliable, and the monitoring efficiency of the shared device is improved.
In the method for monitoring device status provided in the embodiment of the present application, the shared device obtains its own status information, where the status information includes: the method comprises the steps of obtaining normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event, storing the state information into a special storage assembly, and transmitting the state information in the special storage assembly to test equipment, so that the test equipment can monitor the running state of the sharing equipment according to the obtained state information. According to the technical scheme, the state information of the shared equipment is stored by means of the special storage assembly, the historical state information of the shared equipment can be traced, the method is simple and efficient, the problems of time and labor waste caused by manual operation are solved, and the monitoring efficiency is improved.
Exemplarily, on the basis of the above embodiments, fig. 5 is a schematic flow chart of a second embodiment of the device status monitoring method provided in the embodiment of the present application. As shown in fig. 5, in the present embodiment, the step 32 can be implemented by:
step 51, determining an available storage area in the dedicated storage component according to the size of the space occupied by the state information.
In this embodiment, after acquiring the state information of the sharing device, the sharing device may first determine the size of the space required to be occupied by the sharing device, and then determine an available storage area for storing the state information in the dedicated storage component based on the size of the space required to be occupied by the sharing device.
Illustratively, in this embodiment, this step 51 may be implemented by the following possible implementation manners:
b1, determining the size of the occupied space required by the state information;
b2, judging whether the special storage component has a free area, if so, executing B3, and if not, executing B5;
b3, judging whether the space size of the free area in the special memory module is larger than or equal to the space size occupied by the state information, if so, executing B4, and if not, executing B5.
B4, determining an available storage area in the free area;
B5, according to the preset covering rule, determining the available storage area in the storage area of the special storage component.
Wherein the preset coverage rule comprises: a chronological override of storage and/or a secondary-important order override of information.
As an example, the preset override rule may override according to the storage time sequence, that is, the rule of first storing the override is stored first, that is, the state information to be stored at this time first overrides the information stored in the dedicated storage component first.
As another example, the preset override rule may also override in the order of information secondary-important, that is, the principle of overriding the secondary information first and overriding the important information later, that is, the state information to be stored at this time overrides the least important information stored previously.
It should be noted that, in this embodiment, the shared device may also determine the available storage area in the dedicated storage component in combination with the stored chronological override and the information secondary-important order override.
For example, in this embodiment, after determining the size of the space occupied by the state information, the sharing device first determines whether a free area exists in the dedicated storage component, and then determines an available storage area according to the size of the free area.
Optionally, when the dedicated storage component has a free area and the size of the free area is greater than or equal to the size of the space required to be occupied by the state information, an available storage area may be determined in the free area, and when the dedicated storage component does not have a free area and/or the size of the free area is smaller than the size of the space required to be occupied by the state information, an available storage area may be determined in the storage area in the dedicated storage component according to a preset coverage rule.
Step 52, store the state information into an available storage area in the dedicated storage component.
In this embodiment, after the shared device determines the available storage area in the dedicated storage component, the state information of the shared device may be stored in the available storage component, so that the real-time storage of the state information of the shared device is realized.
According to the device state monitoring method provided by the embodiment of the application, the shared device determines the available storage area in the special storage component according to the size of the space occupied by the state information, and stores the state information into the available storage area in the special storage component. In the technical scheme, the available storage area in the special storage assembly is determined at first, and then the state information is stored, so that the complete storage of the storage can be ensured, and a foundation is laid for the subsequent analysis of the running state of the shared device.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of an embodiment of an apparatus state monitoring device provided in the embodiment of the present application. The apparatus may be applied to a sharing device. Referring to fig. 6, the apparatus may include: an acquisition module 61, a processing module 62 and a transmission module 63.
The obtaining module 61 is configured to obtain status information of the shared device, where the status information includes: the method comprises the following steps of obtaining normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event;
the processing module 62 is used for storing the state information into a special storage component;
the transmission module 63 is configured to transmit the state information in the dedicated storage component to a test device, where the test device is configured to monitor an operating state of the shared device according to the acquired state information.
In a possible design of the embodiment of the present application, the obtaining module 61 is specifically configured to detect, through a plurality of sensors built in a shared device, operation information of a plurality of functional components of the shared device, respectively, and determine state information of the shared device according to the operation information of the plurality of functional components and a preset normal operation state set.
Illustratively, in the embodiments of the present application, the status information includes any one or more of the following combinations: power state, network state, position information, motion state, use state, master control state information, and switch lock state.
In another possible design of the embodiment of the present application, the processing module 62 is specifically configured to store the state information into a dedicated storage component every preset time interval; or
The processing module 62 is specifically configured to store the state information in a special storage component in an event triggering manner, where the event triggering includes: and the working state of the sharing equipment is changed into normal and abnormal states.
In yet another possible design of this embodiment of the present application, the processing module 62 is specifically configured to determine an available storage area in the dedicated storage component according to a size of a space that needs to be occupied by the state information, and store the state information in the available storage area in the dedicated storage component.
For example, in this embodiment, the processing module 62 is specifically configured to determine the available storage area in the free area when the dedicated storage component has a free area and the size of the free area is greater than or equal to the size of the space required to be occupied by the state information, and determine the available storage area in the dedicated storage component according to a preset coverage rule when the dedicated storage component has no free area and/or the size of the free area is smaller than the size of the space required to be occupied by the state information, where the preset coverage rule includes: a chronological override of storage and/or a secondary-important order override of information.
In yet another possible design of the embodiment of the present application, the transmission module 63 is configured to transmit the state information in the dedicated storage component to the testing device through a serial port line or a short-range wireless communication function connected between the sharing device and the testing device; or
The transmission module 63 is configured to transmit the state information in the dedicated storage component to the test device through any one of remote wireless communication, a connection transmission protocol and a connectionless transmission protocol.
The apparatus provided in the embodiment of the present application may be used to execute the method in the embodiment shown in fig. 3 or fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the determining module may be a processing element separately set up, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the determining module is called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Fig. 7 is a schematic structural diagram of a sharing device according to an embodiment of the present application. As shown in fig. 7, the apparatus may include: the system comprises a processor 71, a memory 72, a communication interface 73 and a system bus 74, wherein the memory 72 and the communication interface 73 are connected with the processor 71 through the system bus 74 and complete mutual communication, the memory 72 is used for storing computer execution instructions, the communication interface 73 is used for communicating with other devices, and the processor 71 implements the scheme of the embodiment shown in fig. 3 or fig. 5 when executing the computer execution instructions.
The system bus mentioned in fig. 7 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The memory may comprise Random Access Memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor may be a general-purpose processor, including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Optionally, an embodiment of the present application further provides a computer-readable storage medium, in which computer program instructions are stored, and when the computer program instructions are executed on a computer, the computer is caused to execute the method according to the embodiment shown in fig. 3 or fig. 5.
Optionally, an embodiment of the present application further provides a chip for executing the instruction, where the chip is configured to execute the method in the embodiment shown in fig. 3 or fig. 5.
Embodiments of the present application also provide a computer program product, which includes computer program instructions stored in a computer-readable storage medium, and when the computer program instructions are executed on a computer, the computer is caused to execute the method according to the embodiment shown in fig. 3 or fig. 5.
In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (16)

1. A device state monitoring method is applied to shared devices, and is characterized by comprising the following steps:
acquiring state information of the sharing device, wherein the state information comprises: the method comprises the following steps of obtaining normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event;
Storing the state information in a dedicated storage component;
and transmitting the state information in the special storage assembly to test equipment, wherein the test equipment is used for monitoring the running state of the sharing equipment according to the acquired state information.
2. The method of claim 1, wherein the obtaining the status information of the shared device comprises:
respectively detecting the operation information of a plurality of functional components of the sharing equipment through a plurality of sensors arranged in the sharing equipment;
and determining the state information of the shared equipment according to the operation information of the functional components and a preset normal operation state set.
3. The method of claim 1, wherein the status information comprises any one or more of the following: power state, network state, position information, motion state, use state, master control state information, and switch lock state.
4. The method of claim 1, wherein storing the state information in a dedicated storage component comprises:
storing the state information into a special storage component at preset time intervals; or
Storing the state information into a dedicated storage component by means of event triggering, wherein the event triggering comprises: and the working state of the sharing equipment is changed into normal and abnormal states.
5. The method of any of claims 1-4, wherein storing the state information in a dedicated storage component comprises:
determining an available storage area in the special storage component according to the size of the space occupied by the state information;
storing the state information in the available storage area in the dedicated storage component.
6. The method of claim 5, wherein determining the available storage area in the dedicated storage component according to the size of the space required by the status information comprises:
when the special storage component has a free area and the space size of the free area is larger than or equal to the space size occupied by the state information, determining the available storage area in the free area;
when the special storage component does not have a free area and/or the space size of the free area is smaller than the space size required to be occupied by the state information, determining the available storage area in the special storage component according to a preset coverage rule, wherein the preset coverage rule comprises: a chronological override of storage and/or a secondary-important order override of information.
7. The method of any of claims 1-4, wherein transmitting the state information in the dedicated storage component to a test device comprises:
transmitting the state information in the special storage assembly to the test equipment through a serial port line or a short-distance wireless communication function connected between the sharing equipment and the test equipment; or
And transmitting the state information in the special storage component to the test equipment in any one mode of long-distance wireless communication, a connected transmission protocol and a connectionless transmission protocol.
8. An apparatus for monitoring device status is applied to a shared device, and the apparatus comprises: the device comprises an acquisition module, a processing module and a transmission module;
the obtaining module is configured to obtain state information of the shared device, where the state information includes: the method comprises the following steps of obtaining normal state information and abnormal state information, wherein the abnormal state information comprises a processing record of an abnormal event and a processing result of the abnormal event;
the processing module is used for storing the state information into a special storage component;
the transmission module is used for transmitting the state information in the special storage assembly to the test equipment, and the test equipment is used for monitoring the running state of the sharing equipment according to the acquired state information.
9. The apparatus according to claim 8, wherein the obtaining module is specifically configured to detect, through a plurality of sensors built in a shared device, operation information of a plurality of functional components of the shared device, respectively, and determine the state information of the shared device according to the operation information of the plurality of functional components and a preset normal operation state set.
10. The apparatus of claim 8, wherein the status information comprises any one or more of the following: power state, network state, position information, motion state, use state, master control state information, and switch lock state.
11. The apparatus according to claim 8, wherein the processing module is specifically configured to store the state information in a dedicated storage component at intervals of a preset duration; or
The processing module is specifically configured to store the state information in a dedicated storage component in an event triggering manner, where the event triggering includes: and the working state of the sharing equipment is changed into normal and abnormal states.
12. The apparatus according to any one of claims 8 to 11, wherein the processing module is specifically configured to determine an available storage area in the dedicated storage component according to a size of a space required to be occupied by the state information, and store the state information in the available storage area in the dedicated storage component.
13. The apparatus according to claim 12, wherein the processing module is specifically configured to determine the available storage area in the free area when the dedicated storage component has a free area and the size of the free area is greater than or equal to the size of the space required to be occupied by the state information, and determine the available storage area in the dedicated storage component according to a preset coverage rule when the dedicated storage component has no free area and/or the size of the free area is smaller than the size of the space required to be occupied by the state information, where the preset coverage rule includes: a chronological override of storage and/or a secondary-important order override of information.
14. The apparatus according to any one of claims 8 to 11, wherein the transmission module is configured to transmit the status information in the dedicated storage component to the testing device through a serial port line or a short-range wireless communication function connected between the sharing device and the testing device; or
And the transmission module is used for transmitting the state information in the special storage assembly to the test equipment in any one mode of long-distance wireless communication, a connected transmission protocol and a connectionless transmission protocol.
15. A shared device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when executing the program.
16. A computer-readable storage medium having computer program instructions stored therein, which when run on a computer, cause the computer to perform the method of any one of claims 1-7.
CN201911423112.7A 2019-12-31 2019-12-31 Equipment state monitoring method, device, equipment and storage medium Pending CN111858227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423112.7A CN111858227A (en) 2019-12-31 2019-12-31 Equipment state monitoring method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423112.7A CN111858227A (en) 2019-12-31 2019-12-31 Equipment state monitoring method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111858227A true CN111858227A (en) 2020-10-30

Family

ID=72970828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423112.7A Pending CN111858227A (en) 2019-12-31 2019-12-31 Equipment state monitoring method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111858227A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118771A (en) * 2022-06-27 2022-09-27 中国工商银行股份有限公司 Terminal device management method, device, storage medium, and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060010284A (en) * 2004-07-27 2006-02-02 한국수력원자력 주식회사 System for real time controlling driving data of power plant
CN102081394A (en) * 2010-12-24 2011-06-01 深圳市翰盛通讯设备有限公司 Method and device for acquiring vehicle status information
CN202038323U (en) * 2011-05-04 2011-11-16 广州市地下铁道总公司 Online operation status detection display system for urban mass transit
CN108183760A (en) * 2018-01-15 2018-06-19 武开有 Broadcast broadcasting signal intelligent monitor system based on removable monitoring
CN108683732A (en) * 2018-05-14 2018-10-19 广东高标电子科技有限公司 A kind of failure management method of shared bicycle
CN109572526A (en) * 2018-11-28 2019-04-05 北京理工大学 A kind of intelligent sharing bicycle transfer car(buggy)
CN110140114A (en) * 2017-03-27 2019-08-16 西部数据技术公司 Manage the I/O operation of data object in storage system
CN209606831U (en) * 2019-03-11 2019-11-08 上海华常机电工程技术有限公司 A kind of complicated various industrial equipment state Centralizing inspection and fault diagnosis system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060010284A (en) * 2004-07-27 2006-02-02 한국수력원자력 주식회사 System for real time controlling driving data of power plant
CN102081394A (en) * 2010-12-24 2011-06-01 深圳市翰盛通讯设备有限公司 Method and device for acquiring vehicle status information
CN202038323U (en) * 2011-05-04 2011-11-16 广州市地下铁道总公司 Online operation status detection display system for urban mass transit
CN110140114A (en) * 2017-03-27 2019-08-16 西部数据技术公司 Manage the I/O operation of data object in storage system
CN108183760A (en) * 2018-01-15 2018-06-19 武开有 Broadcast broadcasting signal intelligent monitor system based on removable monitoring
CN108683732A (en) * 2018-05-14 2018-10-19 广东高标电子科技有限公司 A kind of failure management method of shared bicycle
CN109572526A (en) * 2018-11-28 2019-04-05 北京理工大学 A kind of intelligent sharing bicycle transfer car(buggy)
CN209606831U (en) * 2019-03-11 2019-11-08 上海华常机电工程技术有限公司 A kind of complicated various industrial equipment state Centralizing inspection and fault diagnosis system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
武林平;张晓霞;王伟;罗红兵;: "集群系统运行状态监控软件设计", 华中科技大学学报(自然科学版), no. 1, 15 June 2011 (2011-06-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118771A (en) * 2022-06-27 2022-09-27 中国工商银行股份有限公司 Terminal device management method, device, storage medium, and program product

Similar Documents

Publication Publication Date Title
CN102799827B (en) Effective protection of data in mobile device
CN102110211B (en) For the method and apparatus of Administrative Security event
CN108090567B (en) Fault diagnosis method and device for power communication system
RU2601148C1 (en) System and method for detecting anomalies when connecting devices
US9043076B2 (en) Automating predictive maintenance for automobiles
CN105283852A (en) Obfuscating trace data
US20090037654A1 (en) System, method, and computer program product for detecting access to a memory device
CN105283849A (en) Parallel tracing for performance and detail
Zhao et al. Attack tree based android malware detection with hybrid analysis
AU2021204479B2 (en) Battery failure or inadequate charge condition prediction method and system
KR20090038189A (en) Apparatus and method for managing terminal users
CN112087445A (en) Electric power Internet of things security vulnerability assessment method fusing business security
CN113949652B (en) User abnormal behavior detection method and device based on artificial intelligence and related equipment
CN112488877A (en) Industrial energy consumption visualization system for energy service platform
CN115965913A (en) Security monitoring method, device and system and computer readable storage medium
CN111858227A (en) Equipment state monitoring method, device, equipment and storage medium
KR102410151B1 (en) Method, apparatus and computer-readable medium for machine learning based observation level measurement using server system log and risk calculation using thereof
CN109586788B (en) Monitoring system fault diagnosis method and device, computer equipment and storage medium
CN117235797A (en) Intelligent management method, device, equipment and system for big data resource access
CN116843314A (en) Monitoring terminal operation and maintenance management method, system, equipment and storage medium
CN111651753A (en) User behavior analysis system and method
CN115277472A (en) Network security risk early warning system and method for multidimensional industrial control system
CN112307475A (en) System detection method and device
CN112702566A (en) Power line patrol unmanned aerial vehicle communication system and method
Alam et al. Context-aware multi-agent based framework for securing Android

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