Device information processing method and device, readable storage medium and electronic device

文档序号:1952453 发布日期:2021-12-10 浏览:11次 中文

阅读说明:本技术 设备信息处理方法及装置、可读存储介质、电子设备 (Device information processing method and device, readable storage medium and electronic device ) 是由 宗涛 郑旭 刘超 于 2021-09-28 设计创作,主要内容包括:本公开属于计算机技术领域,涉及一种设备信息处理方法及装置、可读存储介质、电子设备。该方法包括:接收由物联服务器发送的设备信息,并将设备信息存储;其中,设备信息由物联设备发送给物联服务器;对物联设备的设备信息进行统计得到统计结果,若统计结果满足警告条件,生成用于警告物联设备存在异常的警告信息。在本公开中,一方面,设备信息不再存储于物联服务器中,避免了在物联服务器升级或者宕机过程中,无法对设备信息及时的记录而使得设备信息丢失的情况发生;另一方面,对设备信息进行统计得到统计结果,若统计结果满足警告条件,生成警告信息,提高了对物联设备维护、管理以及控制的效率。(The disclosure belongs to the technical field of computers, and relates to a device information processing method and device, a readable storage medium and an electronic device. The method comprises the following steps: receiving equipment information sent by the Internet of things server, and storing the equipment information; the equipment information is sent to the Internet of things server by the Internet of things equipment; and counting the equipment information of the equipment of the Internet of things to obtain a statistical result, and if the statistical result meets a warning condition, generating warning information for warning that the equipment of the Internet of things is abnormal. In the disclosure, on one hand, the equipment information is not stored in the internet of things server, so that the condition that the equipment information is lost due to the fact that the equipment information cannot be recorded in time in the process of upgrading or downtime of the internet of things server is avoided; on the other hand, the device information is counted to obtain a statistical result, and if the statistical result meets the warning condition, warning information is generated, so that the efficiency of maintaining, managing and controlling the equipment of the internet of things is improved.)

1. An apparatus information processing method, characterized in that the method comprises:

receiving equipment information sent by an Internet of things server, and storing the equipment information; the equipment information is sent to the Internet of things server by the Internet of things equipment;

and counting the equipment information of the equipment of the Internet of things to obtain a statistical result, and if the statistical result meets a warning condition, generating warning information for warning that the equipment of the Internet of things is abnormal.

2. The apparatus information processing method according to claim 1, wherein the apparatus information includes a login time;

the storing the device information includes:

if a logout instruction of the internet of things equipment sent by the internet of things server is received within preset time, the login time is not stored;

and if the log-out instruction is not received within the preset time, storing the log-in time.

3. The device information processing method according to claim 2, wherein storing the login time if the logout instruction is not received within the preset time includes:

if a plurality of login time values for the Internet of things equipment are received, calculating respective adjacent login time difference values of the login time values;

and if the difference value of the respective adjacent login time is smaller than a first time threshold, determining one login time as a target login time in the login time, so as to store the target login time.

4. The apparatus information processing method according to claim 3, wherein the apparatus information includes logout information;

the storing the device information includes:

acquiring the login time corresponding to the Internet of things equipment, and calculating a time difference between the login time and the current time;

and if the time difference is larger than a second time threshold, determining that the current time is the logout time of the internet of things device, and storing the logout time.

5. The apparatus information processing method according to claim 4, wherein after storing the logout time, the method further comprises:

receiving real logout time sent by the Internet of things server, and determining a device identifier corresponding to the real logout time; the real logout time is sent to the internet of things server after the internet of things equipment corresponding to the equipment identification recovers to a normal operation state;

and searching the stored logout information for target logout time corresponding to the equipment identification so as to replace the target logout time with the real logout time.

6. The apparatus information processing method according to claim 5, wherein the statistical result includes a first statistical result;

the counting of the device information of the internet of things device to obtain a statistical result includes:

calculating a difference value between the real login-out time and the login time to obtain login duration, and comparing the login duration with a duration threshold to obtain a duration comparison result;

and counting the number of the login durations larger than the duration threshold value based on the duration comparison result to obtain the first counting result.

7. The apparatus information processing method according to claim 5 or 6, wherein the statistical result includes a second statistical result;

the counting of the device information of the internet of things device to obtain a statistical result includes:

counting the number of times of the login time received in unit time to obtain a second statistical result; or

And counting the times of the logout time determined in unit time to obtain the second statistical result.

8. The device information processing method according to claim 2, characterized by further comprising:

acquiring server performance data and acquiring a performance threshold corresponding to the server performance data; wherein the server performance data corresponds to a new storage performance for storing the device information;

if the server performance data is larger than the performance threshold, expanding the preset time;

and if the server performance data is less than or equal to the performance threshold, reducing the preset time.

9. An apparatus information processing apparatus characterized by comprising:

a storage module configured to receive the device information transmitted by the internet of things server and store the device information; the equipment information is sent to the Internet of things server by the Internet of things equipment;

and the counting module is configured to count the equipment information of the equipment of the Internet of things to obtain a counting result, and if the counting result meets a warning condition, warning information for warning that the equipment of the Internet of things is abnormal is generated.

10. An electronic device, comprising:

a processor;

a memory for storing executable instructions of the processor;

wherein the processor is configured to perform the device information processing method of any one of claims 1-8 via execution of the executable instructions.

11. A non-transitory computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the device information processing method according to any one of claims 1 to 8.

Technical Field

The present disclosure relates to the field of computer technologies, and in particular, to an apparatus information processing method, an apparatus information processing device, a computer-readable storage medium, and an electronic apparatus.

Background

With the development and popularization of the internet of things technology, the internet of things equipment has gone deep into various fields, and in order to better maintain, manage and control the internet of things equipment, equipment information related to the internet of things equipment needs to be acquired.

In the related art, the internet of things server directly acquires the equipment information of the internet of things equipment and stores the equipment information of the internet of things equipment, however, the internet of things server has emergencies such as upgrading and downtime, and the internet of things server may not store the equipment information timely, so that the equipment information of the internet of things equipment is lost, and the maintenance, management and control efficiency of the internet of things equipment is reduced.

In view of the above, there is a need in the art to develop a new device information processing method and apparatus.

It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.

Disclosure of Invention

The present disclosure aims to provide an equipment information processing method, an equipment information processing apparatus, a computer-readable storage medium, and an electronic device, so as to overcome, at least to a certain extent, the problem that equipment information is lost due to the fact that, in the process of upgrading or downtime of an internet of things server, the equipment information cannot be recorded in time due to related technologies.

Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.

According to a first aspect of embodiments of the present invention, there is provided a device information processing method, the method including: receiving equipment information sent by an Internet of things server, and storing the equipment information; the equipment information is sent to the Internet of things server by the Internet of things equipment; and counting the equipment information of the equipment of the Internet of things to obtain a statistical result, and if the statistical result meets a warning condition, generating warning information for warning that the equipment of the Internet of things is abnormal.

In an exemplary embodiment of the present invention, the device information includes a login time; the storing the device information includes: if a logout instruction of the internet of things equipment sent by the internet of things server is received within preset time, the login time is not stored; and if the log-out instruction is not received within the preset time, storing the log-in time.

In an exemplary embodiment of the invention, the method further comprises: if the log-out instruction is not received within the preset time, storing the log-in time, including: if a plurality of login time values for the Internet of things equipment are received, calculating respective adjacent login time difference values of the login time values; and if the difference value of the respective adjacent login time is smaller than a first time threshold, determining one login time as a target login time in the login time, so as to store the target login time.

In an exemplary embodiment of the present invention, the device information includes logout information; the storing the device information includes: acquiring the login time corresponding to the Internet of things equipment, and calculating a time difference between the login time and the current time; and if the time difference is larger than a second time threshold, determining that the current time is the logout time of the internet of things device, and storing the logout time.

In an exemplary embodiment of the invention, after storing the check-out time, the method further comprises: receiving real logout time sent by an internet of things server, and determining a device identifier corresponding to the real logout time; the real logout time is sent to the internet of things server after the internet of things equipment corresponding to the equipment identification recovers to a normal operation state; and searching the stored logout information for target logout time corresponding to the equipment identification so as to replace the target logout time with the real logout time.

In an exemplary embodiment of the invention, the statistical result comprises a first statistical result; the counting of the device information of the internet of things device to obtain a statistical result includes: calculating a difference value between the real login-out time and the login time to obtain login duration, and comparing the login duration with a duration threshold to obtain a duration comparison result; and counting the number of the login durations larger than the duration threshold value based on the duration comparison result to obtain the first counting result.

In an exemplary embodiment of the present invention, the statistical result includes a second statistical result; the counting of the device information of the internet of things device to obtain a statistical result includes: counting the number of times of the login time received in unit time to obtain a second statistical result; or counting the times of the logout time determined in the unit time to obtain the second statistical result.

In an exemplary embodiment of the invention, the method further comprises: acquiring server performance data and acquiring a performance threshold corresponding to the server performance data; wherein the server performance data corresponds to a new storage performance for storing the device information; if the server performance data is larger than the performance threshold, expanding the preset time; and if the server performance data is less than or equal to the performance threshold, reducing the preset time.

According to a second aspect of the embodiments of the present invention, there is provided an apparatus for device information processing, the apparatus including: a storage module configured to receive the device information transmitted by the internet of things server and store the device information; the equipment information is sent to the Internet of things server by the Internet of things equipment; and the counting module is configured to count the equipment information of the equipment of the Internet of things to obtain a counting result, and if the counting result meets a warning condition, warning information for warning that the equipment of the Internet of things is abnormal is generated.

According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus including: a processor and a memory; wherein the memory has stored thereon computer-readable instructions which, when executed by the processor, implement the device information processing method of any of the above-described exemplary embodiments.

According to a fourth aspect of embodiments of the present invention, there is provided a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a device information processing method in any of the above-described exemplary embodiments.

As can be seen from the foregoing technical solutions, the device information processing method, the device information processing apparatus, the computer storage medium, and the electronic device in the exemplary embodiments of the present invention have at least the following advantages and positive effects:

in the method and the device provided by the exemplary embodiment of the disclosure, on one hand, the equipment information is no longer stored in the internet of things server, and the condition that the equipment information is lost due to the fact that the equipment information cannot be recorded in time in the upgrading or downtime process of the internet of things server is avoided; on the other hand, the device information is counted to obtain a statistical result, and if the statistical result meets the warning condition, warning information is generated, so that the efficiency of maintaining, managing and controlling the equipment of the internet of things is improved.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.

Fig. 1 schematically illustrates a flow chart of an apparatus information processing method in an embodiment of the present disclosure;

fig. 2 schematically illustrates a storage process of device information in an embodiment of the present disclosure;

FIG. 3 is a schematic flow chart illustrating storage of device information in an embodiment of the present disclosure;

FIG. 4 is a schematic flow chart illustrating storage of login information in an embodiment of the present disclosure;

FIG. 5 is a schematic flow chart illustrating storage of device information in an embodiment of the present disclosure;

FIG. 6 schematically illustrates a flow diagram after storing a logout time in an embodiment of the disclosure;

FIG. 7 is a schematic flow chart illustrating adjusting the preset time in the embodiment of the present disclosure;

fig. 8 schematically illustrates a flow chart of statistical result obtained by counting device information in the embodiment of the present disclosure;

fig. 9 schematically illustrates a flow chart of obtaining a statistical result by counting device information in the embodiment of the present disclosure;

fig. 10 schematically shows a schematic structural diagram of an apparatus information processing device in an embodiment of the present disclosure;

fig. 11 schematically illustrates an electronic device used in a device information processing method in an embodiment of the present disclosure;

fig. 12 schematically illustrates a non-transitory computer-readable storage medium for a device information processing method in an embodiment of the present disclosure.

Detailed Description

Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.

The terms "a," "an," "the," and "said" are used in this specification to denote the presence of one or more elements/components/parts/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first" and "second", etc. are used merely as labels, and are not limiting on the number of their objects.

Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.

In view of the problems in the related art, the present disclosure provides an apparatus information processing method. Fig. 1 shows a flow diagram of a device information processing method, which, as shown in fig. 1, comprises at least the following steps:

s110, receiving equipment information sent by the Internet of things server, and storing the equipment information; and the equipment information is sent to the Internet of things server by the Internet of things equipment.

And S120, counting the equipment information of the equipment of the Internet of things to obtain a statistical result, and if the statistical result meets the warning condition, generating warning information for warning that the equipment of the Internet of things is abnormal.

In the method and the device provided by the exemplary embodiment of the disclosure, on one hand, the equipment information is no longer stored in the internet of things server, and the condition that the equipment information is lost due to the fact that the equipment information cannot be recorded in time in the upgrading or downtime process of the internet of things server is avoided; on the other hand, the device information is counted to obtain a statistical result, and if the statistical result meets the warning condition, warning information is generated, so that the efficiency of maintaining, managing and controlling the equipment of the internet of things is improved.

The respective steps of the device information processing method are explained in detail below.

In step S110, receiving the device information sent by the internet of things server, and storing the device information; and the equipment information is sent to the Internet of things server by the Internet of things equipment.

In an exemplary embodiment of the disclosure, in the internet of things, through access of various networks, ubiquitous connection between an object and a person can be achieved, an internet of things device is an object therein, device information refers to device information corresponding to the internet of things device, specifically, the device information may include login time of the internet of things device, login information of the internet of things device, device identification of the internet of things device, update time of the internet of things device, and any information related to the internet of things device, which is not particularly limited in this exemplary embodiment.

The login time refers to the time when the internet of things equipment accesses the internet of things, the logout time refers to the time when the internet of things equipment exits the internet of things, the updating time refers to the time for updating the equipment information, and the equipment identification refers to the identification information representing the internet of things equipment. The internet of things server refers to a server for acquiring and storing device information in the prior art.

However, in the present exemplary embodiment, the device information is no longer stored in the internet of things server, but when the internet of things server receives the device information sent by the internet of things device, the device information is transferred to the device information server, so that the device information server stores the device information.

For example, fig. 2 shows a schematic diagram of a storage process of device information, as shown in fig. 2, where the device 210 is an internet of things device, the server 220 is an internet of things server, the server 230 is a device information server, and the database 240 is a database for storing device information, and after the internet of things server 220 receives the device information sent by the internet of things device 210, the device information is transmitted to the device information server 230, so that the device information server 230 stores the device information in the database 240.

In an alternative embodiment, fig. 3 is a schematic flow chart illustrating a device information storage method for a device information processing method, where the device information includes a login time, and as shown in fig. 3, the method at least includes the following steps: in step S310, if the log-out command of the internet of things device sent by the internet of things server is received within the preset time, the log-in time is not stored.

The login in the normal state is performed in the normal state, the login in the abnormal state is performed in the abnormal state, the frequent login and logout cannot happen in the login in the normal state, however, the frequent login and logout happen in the login in the abnormal state, and the preset time is a preset time value used for determining whether the current login is the login in the normal state or the login in the abnormal state.

The logout instruction refers to an instruction of the internet of things server to quit the internet of things. If the equipment information server receives the log-out instruction sent by the Internet of things server within the preset time, the log-in is proved to be in an abnormal state at the moment, and the log-in time is not stored.

For example, a student can start a shower A in a form of scanning a two-dimensional code, the shower A can access the Internet of things at the moment, 2 points of login time are sent to the Internet of things server by 01 points, and the Internet of things server transfers login information to the equipment information server.

At this time, the login time is not immediately stored, but whether an exit instruction that the student does not use the shower A is received within 20 seconds of the preset time is judged, and if the exit instruction of the shower A is received within 20 seconds of the preset time, the login time 2 point 01 is not stored.

In step S320, if the log-out command is not received within the preset time, the log-in time is stored.

If the login instruction is not received within the preset time, the login is proved to be a login in a normal state, and the login time is stored.

For example, a student can start a shower A in a form of scanning a two-dimensional code, the shower A can access the Internet of things at the moment, 2 points of login time are sent to the Internet of things server by 01 points, and the Internet of things server transfers login information to the equipment information server.

At this time, the login time is not immediately stored, but whether an exit instruction that the student does not use the shower A is received within 20 seconds of the preset time is judged, and if the exit instruction of the shower A is not received within 20 seconds of the preset time, the login time 2 point 01 is stored.

In the exemplary embodiment, by determining whether the log-out command is received within the preset time, the database pressure caused by logging in an abnormal state can be effectively prevented, that is, the database pressure caused by frequent log-in and log-out can be effectively prevented.

In an alternative embodiment, fig. 4 shows a schematic flow chart of storing login information in a device information processing method, where the device information includes the login information, and as shown in fig. 4, the method at least includes the following steps: in step S410, when a plurality of login times for the internet of things device are received, a login time difference value adjacent to each of the plurality of login times is calculated.

Wherein, the login time difference is the respective adjacent difference between the received login times.

For example, the device information server receives 3 login times about the shower a sent from the internet of things server, which are login time B, login time C and login time D, wherein login time B is 2 point 01 min 23 sec, login time C is 2 point 01 min 30 sec, and login time D is 2 point 01 min 33 sec.

Based on this, two login time differences can be calculated, namely a login time difference of 7 seconds between login time C and login time B, and a login time difference of 3 seconds between login time D and login time C.

In step S420, if the difference between the respective adjacent login times is smaller than the first time threshold, one of the login times is determined as a target login time, so as to store the target login time.

The first time threshold refers to a critical value for limiting whether login is frequent login, and when the login time difference is smaller than the first time threshold, it is determined that two logins corresponding to the login time difference belong to frequent login.

For example, two login time differences may be calculated, namely a login time difference of 7 seconds between login time C and login time B, a login time difference of 3 seconds between login time D and login time C, and the first time threshold is 10 seconds.

Obviously, the login corresponding to the login time B, the login corresponding to the login time C, and the login corresponding to the login time D all belong to frequent logins, and the login time D is determined as the target login time of the shower a, and is stored.

In the exemplary embodiment, by calculating the login time difference and comparing the login time difference with the first time threshold, only one login time can be stored under the condition of frequent login, so that the storage pressure of the database is relieved, and unnecessary performance loss is reduced.

In an alternative embodiment, fig. 5 is a schematic flow chart illustrating a device information storage method for a device information processing method, where the device information includes log-out information, and as shown in fig. 5, the method at least includes the following steps: in step S510, a login time corresponding to the internet of things device is obtained, and a time difference between the login time and the current time is calculated.

After the device information server obtains the login time, the difference value between the login time and the current time is calculated at regular time, and the difference value is the time difference value. The reason why the time difference value needs to be calculated is that the abnormality of the equipment of the internet of things may be caused by reasons such as power failure, network disconnection, damage and the like, in this case, although the equipment of the internet of things exits from the internet of things, the server of the internet of things may not timely acquire the log-out time of the equipment of the internet of things, and based on the log-out time of the equipment of the internet of things, the time difference value is calculated regularly for comparison with the second time threshold value, so that the exit time which is closest to the time when the equipment of the internet of things exits from the internet of things is determined.

For example, the login time of shower a is determined to be 2 o ' clock 01 min 33 sec, and the time difference between the current time 3 o ' clock 23 min 00 sec and the login time 2 o ' clock 01 min 33 sec is calculated to be 1 hour 21 min 27 sec.

In step S520, if the time difference is greater than the second time threshold, it is determined that the current time is the logout time of the internet of things device, so as to store the logout time.

In this case, the real logout information of the internet of things device may not be obtained, so the second time threshold is the time threshold determined to be closest to the real logout time of the physical device.

For example, the second time threshold is 1 hour 20 minutes, the time difference is 1 hour 21 minutes, and obviously, when the time difference is greater than the second time threshold, the current time 3 point, 23 minutes 00 seconds, is determined as the log-out time of the shower a, and the log-out time is stored.

In the exemplary embodiment, when the time difference is greater than the second time threshold, it is determined that the current time is the logout time of the internet of things device, which effectively avoids the situation that the logout time cannot be stored when the internet of things device is abnormal, and ensures timely and complete recording of device information.

In an alternative embodiment, fig. 6 shows a schematic flow chart of the device information processing method after storing the logout time, and as shown in fig. 6, the method at least includes the following steps: in step S610, receiving a real logout time sent by the internet of things server, and determining a device identifier corresponding to the real logout time; and the real log-out time is sent to the internet of things server after the internet of things equipment corresponding to the equipment identifier recovers to a normal operation state.

When the internet of things device is abnormal, the current time is stored as the logout time of the internet of things device, however, a certain error may exist between the logout time and the logout time of the real internet of things device, and in order to correct the error, the real logout time needs to be acquired.

It should be noted that, for some internet of things devices, the internet of things device may have a function of reporting the real logout time of the internet of things device under an abnormal condition, so that when the internet of things device recovers to a normal operation state, the real logout time may be transmitted to the internet of things server, and then the device information server receives the real logout time through the internet of things server.

For example, the real logout time is received as 2 o' clock, 22 min 01 sec, and the device identifier corresponding to the real logout time is determined as a.

In step S620, in the stored logout information, the target logout time corresponding to the device identification is searched for to replace the target logout time with the real logout time.

The target logout time refers to the logout time of the internet-of-things device corresponding to the device identification and stored in the database.

For example, it is found that the equipment of the internet of things corresponding to the equipment identification a is shower a in the database, and the target logout time of the shower a stored in the database is 3 points 23 minutes 00 seconds, and since the target logout time is determined when the shower a is abnormal, the target logout time of the shower a is replaced from 3 points 23 minutes 00 seconds to 2 points 22 minutes 01 seconds after receiving the real login time of 2 points 22 minutes 01 seconds sent after the shower a returns to the normal state.

In the exemplary embodiment, the real logout time is received, and the stored target logout time is replaced by the real logout time, so that the accuracy of the stored logout time of the internet of things device is improved, and a more accurate basis is provided for subsequent maintenance, management and control of the internet of things device.

In an alternative embodiment, fig. 7 is a schematic flow chart illustrating the preset time adjustment in the device information processing method, and as shown in fig. 7, the method at least includes the following steps: in step S710, server performance data is obtained, and a performance threshold corresponding to the server performance data is obtained; wherein the server performance data corresponds to the new performance of storage of the storage device information.

The server performance data refers to the storage performance of the storage device information, and specifically may be a storage speed of the storage device information, a storage frequency of the storage device information, or all data that may indicate the storage performance of the storage device information, which is not particularly limited in this exemplary embodiment.

The performance threshold refers to a critical value of the storage pressure of the server storing the device information, and if the server performance data is greater than the performance threshold, it indicates that the storage pressure of the server storing the device information is too large, and correspondingly, if the server performance data is less than or equal to the performance threshold, it indicates that the storage pressure of the server storing the device information can be borne by the server itself.

For example, the obtained server performance data is 100 pieces/second, and the performance threshold is 90 pieces/second.

In step S720, if the server performance data is greater than the performance threshold, the preset time is extended.

If the server performance data is greater than the performance threshold, the storage pressure of the device information server storing the device information at the time is too large, and therefore the preset time needs to be increased to relieve the storage pressure of the device information server.

For example, the obtained server performance data is 100 pieces/second, and the performance threshold is 90 pieces/second. Obviously, the server performance data is larger than the performance threshold at this time, and the preset time can be expanded from 20 seconds to 30 seconds at this time.

In step S730, if the server performance data is less than or equal to the performance threshold, the preset time is shortened.

If the server performance data is less than or equal to the performance threshold, the storage pressure of the server for storing the equipment information at the moment can be borne by the server, and based on the storage pressure, the preset time can be shortened to improve the speed of storing the equipment information.

For example, the obtained server performance data is 50 pieces/second, and the performance threshold is 90 pieces/second. Obviously, the server performance data is smaller than the performance threshold at this time, and the preset time can be reduced from 20 seconds to 10 seconds at this time.

In the exemplary embodiment, if the performance of the server is greater than the performance threshold, the preset time is extended to relieve the storage pressure of the storage device information, and if the performance of the server is less than or equal to the performance threshold, the preset time is shortened to increase the speed of the storage device information.

In step S120, the device information of the equipment in the internet of things is counted to obtain a statistical result, and if the statistical result satisfies the warning condition, warning information for warning that the equipment in the internet of things is abnormal is generated.

In an exemplary embodiment of the present disclosure, the warning condition is a condition used to define whether warning information needs to be generated, and specifically, the warning condition may be a condition for generating warning information that the equipment of the internet of things needs to be maintained, may be a condition for generating warning information that the equipment of the internet of things needs to be managed, and may also be a condition for generating warning information that the equipment of the internet of things cannot be controlled, which is not particularly limited in this exemplary embodiment.

The statistical result obtained by performing statistics on the device information may be a statistical result obtained by performing statistics on login time, a statistical result obtained by performing statistics on logout time, a statistical result obtained by performing statistics on login frequency or logout frequency, or a statistical result obtained by performing statistics on any kind of device information, which is not particularly limited in this exemplary embodiment.

For example, a difference value between the login time and the real login time of the internet of things device is calculated to obtain login duration, the statistical result is that the login times of the login duration is greater than 2 hours and 100 times are obtained, the statistical result meets the warning condition that the internet of things device needs to be maintained, and warning information A is generated based on the warning condition to inform that the internet of things device is abnormal and needs to be maintained.

In an alternative embodiment, fig. 8 is a schematic flow chart illustrating a process of obtaining a statistical result by counting device information in a device information processing method, where the statistical result includes a first statistical result, and as shown in fig. 8, the method at least includes the following steps: in step S810, a difference between the real logout time and the login time is calculated to obtain a login duration, and the login duration is compared with a duration threshold to obtain a duration comparison result.

The statistical result comprises a first statistical result, the first statistical result refers to a result obtained by counting the number of login durations of which the login durations are greater than a duration threshold, the login durations are difference values between real login-out time and login time, and the duration threshold refers to a critical value for limiting whether the login durations are too long or not so as to influence the equipment function of the internet-of-things equipment. The time length comparison result is a comparison result obtained by comparing the login time length with a time length threshold value.

For example, the real log-out time is 2 points 01 minutes 00 seconds, the log-in time is 9 points 01 minutes 00 seconds, based on which, the log-in time is 5 hours, and the time threshold is 3 hours, and obviously, the time comparison result at this time is the comparison result that the log-in time is greater than the time threshold.

In step S820, based on the time length comparison result, the number of login time lengths greater than the time length threshold is counted to obtain a first statistical result.

According to the time length comparison result, the number of the login time lengths larger than the time length threshold value can be counted, and then a first counting result is obtained.

For example, there are 3 duration comparison results, which are a duration comparison result a, a duration comparison result B, and a duration comparison result C, specifically, the duration comparison result a is a comparison result that the login duration a1 is greater than the duration threshold, the duration comparison result B is a comparison result that the login duration B1 is greater than the duration threshold, and the duration comparison result C is a comparison result that the login duration C1 is less than the duration threshold. Based on this, the first statistical result is that there are 2 logins whose login duration is greater than the duration threshold.

In the exemplary embodiment, the first statistical result is a statistical result obtained from a dimension of the login duration, which is helpful for generating alarm information according to a relation between the login duration and the duration threshold in the following process, and further provides a basis for maintenance and management of the internet of things device.

In an alternative embodiment, fig. 9 is a schematic flow chart illustrating a process of obtaining a statistical result by performing statistics on device information in a device information processing method, where the statistical result includes a second statistical result, and as shown in fig. 9, the method at least includes the following steps: in step S910, the number of times of login time received in unit time is counted to obtain a second statistical result.

The statistical result comprises a second statistical result, and the second statistical result refers to a result obtained by counting the login frequency or the logout frequency received in unit time. The unit time may be 1 minute, 1 hour, half hour, or any time range, and this exemplary embodiment is not particularly limited thereto.

For example, the number of log-in times of shower a received within 20 minutes is 2, i.e. the second statistical result is that log-in times of shower a were received 2 times within 20 minutes.

In step S920, the number of times of the determined logout time per unit time is counted to obtain a second statistical result.

The second statistical result may also be a result of counting the number of times of logout time in unit time.

For example, the number of logout times of shower a received within 20 minutes is 1, i.e. the second statistical result is that the logout time of shower a was received 1 within 20 minutes.

In the exemplary embodiment, the second statistical result is a statistical result obtained from a dimension of the login frequency or the logout frequency, which is helpful for generating alarm information according to the login frequency or the logout frequency, and further provides a basis for controlling the internet of things device.

In the exemplary embodiment, on one hand, the device information is no longer stored in the internet of things server, so that the situation that the device information is lost due to the fact that the device information cannot be recorded in time in the process of upgrading or downtime of the internet of things server is avoided; on the other hand, the device information is counted to obtain a statistical result, and if the statistical result meets the warning condition, warning information is generated, so that the efficiency of maintaining, managing and controlling the equipment of the internet of things is improved.

The following describes the device information processing method in the embodiment of the present disclosure in detail with reference to an application scenario.

The internet of things equipment can be a sweeping robot, when a user is connected with the sweeping robot through mobile phone Bluetooth, the internet of things server receives login time A of the sweeping robot and transfers the login time A to the equipment information server, and therefore the equipment information server stores the login time A.

When the user is disconnected with the sweeping robot through the mobile phone, the Internet of things server receives the log-out time B sent by the sweeping robot and transfers the log-out time B to the equipment information server, so that the equipment information server stores the log-out time B.

The received login time frequency of the sweeping robot is counted to obtain a statistical result, specifically, the frequency of the received login time is 50 times/minute, obviously, the sweeping robot frequently logs out at the moment, the statistical result meets the alarm condition, and then alarm information for alarming the abnormity of the sweeping robot is generated, so that a control signal is not sent to the sweeping robot at the moment.

In the application scenario, on one hand, the equipment information is not stored in the internet of things server, so that the condition that the equipment information is lost due to the fact that the equipment information cannot be recorded in time in the process of upgrading or downtime of the internet of things server is avoided; on the other hand, the device information is counted to obtain a statistical result, and if the statistical result meets the warning condition, warning information is generated, so that the efficiency of maintaining, managing and controlling the equipment of the internet of things is improved.

Further, in an exemplary embodiment of the present disclosure, a device information processing apparatus is also provided. Fig. 10 shows a schematic configuration diagram of the device information processing apparatus, and as shown in fig. 10, the device information processing apparatus 1000 may include: a storage module 1010 and a statistics module 1020. Wherein:

a storage module 1010 configured to receive the device information transmitted by the internet of things server and store the device information; the equipment information is sent to the Internet of things server by the Internet of things equipment; the statistical module 1020 is configured to perform statistics on the device information of the internet of things device to obtain a statistical result, and generate warning information for warning that the internet of things device is abnormal if the statistical result meets a warning condition.

The details of the device information processing apparatus 1000 are already described in detail in the corresponding device information processing method, and therefore are not described herein again.

It should be noted that although several modules or units of the device information processing apparatus 1000 are mentioned in the above detailed description, such division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.

In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

An electronic device 1100 according to such an embodiment of the invention is described below with reference to fig. 11. The electronic device 1100 shown in fig. 11 is only an example and should not bring any limitations to the function and the scope of use of the embodiments of the present invention.

As shown in fig. 11, electronic device 1100 is embodied in the form of a general purpose computing device. The components of the electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one memory unit 1120, a bus 1130 connecting different system components (including the memory unit 1120 and the processing unit 1110), and a display unit 1140.

Wherein the storage unit stores program code that is executable by the processing unit 1110 to cause the processing unit 1110 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification.

The storage unit 1120 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)1121 and/or a cache memory unit 1122, and may further include a read-only memory unit (ROM) 1123.

Storage unit 1120 can also include a program/usage tool 1124 having a set (at least one) of program modules 1125, such program modules 1125 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, and in some combination, may comprise a representation of a network environment.

Bus 1130 may be representative of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

The electronic device 1100 may also communicate with one or more external devices 1170 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1100, and/or any devices (e.g., router, modem, etc.) that enable the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 1150. Also, the electronic device 1100 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1160. As shown, the network adapter 1160 communicates with the other modules of the electronic device 1100 over the bus 1130. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.

Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.

Referring to fig. 12, a program product 1200 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:异步日志处理方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!