Log display method, device, electronic device, and storage medium
By combining the text and image log data of the smart door lock and generating mixed log data, the problem of single log form of the smart door lock is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111492330.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-12-08
AI Technical Summary
The log data of the smart door lock is single in form and cannot display pictures or video information, resulting in poor user experience, especially when important events occur, inability to view the situation in front of the door.
Acquire text log data and image log data of smart door lock, merge and process to generate mixed log data, and display it.
Make the log data form of smart door locks richer, improve user experience, and allow users to view pictures or video information when the event occurs.
Smart Images

Figure CN114201472B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of log processing technology, and more specifically, to a log display method, device, electronic device, and storage medium. Background Art
[0002] With the development of science and technology, smart door locks have become an indispensable smart device in smart home systems. With more and more functions, smart door locks have become a must-have in people's daily lives. However, the log data format of smart door locks is relatively simple, which leads to poor user experience. Summary of the Invention
[0003] In view of the above problems, the present application proposes a log display method, device, electronic device and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a log display method, which includes: obtaining text log data of a smart door lock as first text log data, and obtaining image log data of the smart door lock; merging the first text log data and the image log data to obtain mixed log data; and displaying the mixed log data.
[0005] In second aspect, an embodiment of the present application provides a log display device, which includes: a log data acquisition module, used to obtain text log data of a smart door lock as first text log data, and obtain image log data of the smart door lock; a mixed log data acquisition module, used to merge the first text log data and the image log data to obtain mixed log data; and a mixed log data display module, used to display the mixed log data.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.
[0008] The log display method, device, electronic device and storage medium provided in the embodiments of the present application obtain the text log data of the smart door lock as the first text log data, and obtain the image log data of the smart door lock, merge the first text log data and the image log data to obtain mixed log data, and display the mixed log data, thereby realizing the display of the log generated by the smart door lock, and making the log data format of the smart door lock richer, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A schematic diagram showing an application environment of the log display method provided in an embodiment of the present application;
[0011] Figure 2 A schematic diagram showing an application environment of the log display method provided in an embodiment of the present application;
[0012] Figure 3 A schematic diagram showing an application environment of the log display method provided in an embodiment of the present application;
[0013] Figure 4 A flow chart of a log display method provided in an embodiment of the present application is shown;
[0014] Figure 5 A flow chart of a log display method provided by an embodiment of the present application is shown;
[0015] Figure 6 A flow chart of a log display method provided by an embodiment of the present application is shown;
[0016] Figure 7 Shows the application Figure 6 Schematic diagram of the flow of step S330 of the log data method shown;
[0017] Figure 8 A flow chart of a log display method provided by an embodiment of the present application is shown;
[0018] Figure 9 A schematic diagram of a display interface provided by an embodiment of the present application is shown;
[0019] Figure 10 A flow chart of a log display method provided by an embodiment of the present application is shown;
[0020] Figure 11 Shows the application Figure 10 Schematic diagram of the flow of step S530 of the log data method shown;
[0021] Figure 12 The module block diagram of the log display device provided by the embodiment of the present application is shown;
[0022] Figure 13 A block diagram of an electronic device for executing a log display method according to an embodiment of the present application is shown;
[0023] Figure 14 A storage unit for storing or carrying program codes for implementing the log display method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0024] In order to enable people skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0025] With the advancement of science and technology, smart door locks have become an indispensable smart device in smart home systems. Their increasing functionality has made them a necessity in our daily lives. Currently, the log data generated by smart door locks is relatively simple. Specifically, these logs contain only plain text data and are unable to display image or video logs. Furthermore, when important events occur, smart door locks cannot provide images or videos of what was happening in front of the door at the time of the event. Therefore, users are unable to view these images or videos, resulting in a poor user experience.
[0026] To address the above issues, the inventors, after extensive research, have discovered and proposed the log display method, device, electronic device, and storage medium provided in the embodiments of this application. By acquiring the text log data and image log data of a smart door lock and merging them to obtain and display mixed log data, the inventors can display mixed log data generated by the smart door lock, including text log data and image log data. This enriches the display format of the smart door lock's log data and enhances the user experience. The specific log display method is described in detail in the subsequent embodiments.
[0027] See Figure 1 , Figure 1A schematic diagram of the application environment of the log display method provided in an embodiment of the present application is shown, and the application environment includes: an electronic device 100, a server 200 and a smart door lock 300, wherein the smart door lock 300 includes a camera module 310 and a WIFI module 320, the electronic device 100 is connected to the server 200 via 2G / 3G / 4G / 5G, WIFI, etc., and the server 200 is connected to the smart door lock 300 via the WIFI module 320 to realize data interaction between the electronic device 100 and the server 200, and to realize data interaction between the server 200 and the smart door lock 300, so that the electronic device 100 can obtain the log data pre-uploaded by the smart door lock 300 in the server 200, wherein the log data may include text log data, image log data, mixed log data, etc., which are not limited here.
[0028] In some embodiments, the electronic device 100 may include a smart phone, a tablet computer, a wearable electronic device, a smart control panel, a smart home control device, etc., which is not limited here.
[0029] In some embodiments, the smart door lock 300 may include a fully automatic smart door lock, a semi-automatic smart door lock, a fingerprint smart door lock, a finger vein smart door lock, and a face recognition smart door lock, etc., which are not limited here.
[0030] See Figure 2 , Figure 2 A schematic diagram showing an application environment of the log display method provided in an embodiment of the present application, wherein the application environment includes: an electronic device 100, a server 200, and a smart door lock 300.
[0031] Among them, the smart door lock includes 300 including a camera module 310, a WIFI module 320 and a Bluetooth module 330. The electronic device 100 can be connected to the smart door lock 300 through the Bluetooth module 330 to realize data interaction between the electronic device 100 and the smart door lock 300 through the Bluetooth module 330, so that the electronic device 100 can obtain text log data of the smart door lock 300 through the Bluetooth module 330. The electronic device 100 is connected to the server 200 via WIFI, and the server 200 is connected to the smart door lock 300 via the WIFI module 320.
[0032] See Figure 3 , Figure 3 A schematic diagram of an application environment for the log display method provided in an embodiment of the present application is shown, which includes: a server 200, a smart door lock 300, and a gateway 400. The smart door lock 300 includes a camera module 310, a Wi-Fi module 320, and a Bluetooth module 330. The camera module 310 can be used to obtain image logs.
[0033] In some embodiments, the camera module 310 can be always in an on state and capture images. Alternatively, the camera module 310 can be pre-initiated in an off state and switched from the off state to the on state based on certain trigger conditions. As one approach, a sensor can be provided within the smart door lock 300. The smart door lock 300 can activate the camera 310 and capture images when the sensor detects that a user has been in front of the smart door lock 300 for longer than a preset time. Alternatively, the smart door lock 300 can be provided with a doorbell. The smart door lock 300 can activate the camera 310 and capture images when a user rings the doorbell.
[0034] In some implementations, the WIFI module 320 may upload the image log data acquired by the camera module 310 and the text log corresponding to the image log data to the server 200 .
[0035] In some embodiments, the Bluetooth module 330 can upload the text log data of the smart door lock 300 to the server 200 through the gateway 400 .
[0036] See also Figure 4 , Figure 4 The flow chart of the log display method provided by the embodiment of the present application is shown in FIG. Figure 12 The log display device 500 and the electronic device 100 equipped with the log display device 500 ( Figure 13 ), the electronic device 100 is connected to the server. The following will take the electronic device as an example to illustrate the specific process of this embodiment. Figure 4 The process shown is described in detail, and the log display method may specifically include the following steps:
[0037] Step S110: Acquire text log data of the smart door lock as first text log data, and acquire image log data of the smart door lock.
[0038] In this embodiment, the electronic device can obtain the text log data of the smart door lock as the first text log data and obtain the image log data of the smart door lock. In some embodiments, the electronic device can obtain the text log data of the smart door lock as the first text log data and obtain the image log data of the smart door lock from the server, wherein the text log data and image log data in the server are pre-generated and uploaded by the smart door lock. In some embodiments, the electronic device can obtain the text log data of the smart door lock as the first text log data and obtain the image log data of the smart door lock from the smart door lock, wherein the text log data and image log data in the smart door lock are pre-generated and stored locally by the smart door lock.
[0039] As one approach, the electronic device can obtain the text log data of the smart door lock as the first text log data and obtain the image log data of the smart door lock when detecting that the smart door lock has generated log data. As another approach, the user can set the time for obtaining log data in the electronic device. During this time period, the electronic device can obtain the text log data of the smart door lock as the first text log data and obtain the image log data of the smart door lock. For example, if the user sets the electronic device to obtain log data during the time period from 7:00 to 22:00, the electronic device will obtain the text log data of the smart door lock as the first text log data and obtain the image log data of the smart door lock during the time period from 7:00 to 22:00.
[0040] In some embodiments, as Figure 1 As shown, the text log data and image log data in the smart door lock can be uploaded to the server through the WIFI module, and the electronic device can directly obtain the text log data of the smart door lock from the server as the first text log data, and obtain the image log data of the smart door lock from the server. Among them, the image log data is obtained by the camera module of the smart door lock. The first text log data can be the text log data generated by the camera module of the smart door lock at the same time as the image log data is generated, and the first text log data can also be the text log data generated by the smart door lock when no image log data is generated. The text log data may include unlocking events, locking events, adding unlocking credentials events, unlocking abnormal events, doorbell ringing events, and door lock prying abnormal events, etc., which are not limited here. The content of the text log data is used to characterize the specific events that occurred on the door lock end. The first text log data can be pre-generated by the smart door lock and uploaded through the WIFI module, and the image log data can be pre-generated by the smart door lock and uploaded through the WIFI module.
[0041] In some embodiments, when a user opens an application corresponding to the smart door lock, the electronic device may obtain text log data of the smart door lock from the server as first text log data, and obtain image log data of the smart door lock from the server.
[0042] Step S120: merging the first text log data and the image log data to obtain mixed log data.
[0043] In this embodiment, the electronic device can merge the first text log data and the image log data to obtain mixed log data. One mixed log data can display text information and image information of the same event occurring at the door lock end.
[0044] In some implementations, the electronic device may merge the first text log data and the image log data according to identification information of each text log data in the first text log data and identification information of each text log data in the image log data to obtain mixed log data.
[0045] Step S130: Displaying the mixed log data.
[0046] As one approach, the hybrid log data can be directly displayed when the application corresponding to the smart door lock is opened. As another approach, after the application corresponding to the smart door lock is opened, upon receiving an instruction for instructing the display of the hybrid log data, the hybrid log data can be displayed in response to the instruction, wherein the instruction can be generated based on input voice, input text, input touch operation, etc., without limitation here.
[0047] In one embodiment of the present application, the electronic device can display the hybrid log data in full screen, the electronic device can display the hybrid log data in partial screen, the electronic device can display the hybrid log data in a suspended manner, the electronic device can display the hybrid log data in a scrolling manner, etc., which are not limited here.
[0048] In some implementations, when a preset alarm event is detected in the mixed log data, an interface for displaying the mixed log data may be automatically popped up to display the mixed log data.
[0049] The log display method provided in the embodiment of the present application obtains text log data of the smart door lock from the server as first text log data, and obtains image log data of the smart door lock from the server, wherein the text log data and image log data in the server are pre-generated and uploaded by the smart door lock, the first text log data and the image log data are merged to obtain mixed log data, and the mixed log data is displayed, thereby realizing the display of the log generated by the smart door lock, making the log data display form of the smart door lock richer and improving the user experience.
[0050] See also Figure 5 , Figure 5 The flow chart of the log display method provided by an embodiment of the present application is shown. In this embodiment, the electronic device is connected to the server and the smart door lock respectively. Figure 5 The process shown is described in detail, and the resource processing method may specifically include the following steps:
[0051] Step S210: Obtain text log data of the smart door lock from the server as first text log data, and obtain image log data of the smart door lock from the server, wherein the text log data and image log data in the server are pre-generated and uploaded by the smart door lock.
[0052] In this embodiment, if Figure 1 As shown, the electronic device can directly obtain the text log data of the smart door lock as the first text log data from the server, and obtain the image log data of the smart door lock from the server. The image log data is obtained by the camera module of the smart door lock. The first text log data can be text log data generated by the camera module of the smart door lock at the same time as the image log data is generated, or the first text log data can be text log data generated by the smart door lock when no image log data is generated. The first text log data can be pre-generated by the smart door lock and uploaded via the WIFI module, and the image log data can be pre-generated by the smart door lock and uploaded via the WIFI module.
[0053] Step S220: Obtain text log data from the smart door lock as second text log data, wherein the text log data in the smart door lock is pre-generated by the smart door lock and stored locally.
[0054] In this embodiment, if Figure 1 As shown, a Bluetooth module can be provided in the smart door lock, and the electronic device can directly obtain its text log data from the smart door lock through the Bluetooth module as the second text log data, wherein the second text log data is pre-generated by the smart door lock.
[0055] In some embodiments, the electronic device may obtain text log data from the smart door lock as second text log data when the user opens an application corresponding to the smart door lock.
[0056] Step S230: merging and removing duplicates of the first text log data and the second text log data to obtain third text log data.
[0057] It can be understood that the text log data generated by the smart door lock can be uploaded to the server as the first text log data, or stored locally in the smart door lock as the second text log data. Therefore, there may be duplicate text log data in the first text log data and the second text log data.
[0058] In addition, since there is a certain lag in the communication between the smart door lock and the server, and between the server and the electronic device, the first text log data does not necessarily include the latest text log data, that is, the text log data in the first text log data may be less than the text log data in the second text log data. Furthermore, in some cases, the text log data generated by the smart door lock is not all uploaded to the server, but is stored locally in the smart door lock, that is, the text log data in the first text log data is incomplete, and therefore, the text log data in the first text log data may be less than the text log data in the second text log data.
[0059] Furthermore, since the storage space of a smart door lock is limited, the amount of text log data that can be stored is limited. A smart door lock may only store the latest text log data, and historical text log data may have been deleted from the smart door lock. Therefore, the text log data in the first text log data may be greater than the text log data in the second text log data.
[0060] Based on the above situations, it can be seen that the first text log data and the second text log data may include duplicate text log data, and the amount of text log data included in the first text log data and the amount of text log data included in the second text log data may be different. Therefore, the first text log data and the second text log data can be merged and deduplicated.
[0061] In some embodiments, the first text log data obtained from the server and the second text log data obtained from the smart door lock can be merged and deduplicated based on the identification information of each text log data in the first text log data and the identification information of each text log data in the second text log data to obtain third text log data. For example, the first text log data and the second text log data can be traversed separately. If the identification information of two text log data is found to be duplicated, one of the two text log data is deleted and the first text log data and the second text log data are merged to obtain the third text log data.
[0062] Step S240: merging the third text log data and the image log data to obtain the mixed log data.
[0063] In this embodiment, the electronic device may merge the third text log data and the image log data to obtain mixed log data.
[0064] In some implementations, the electronic device may combine the third text log data and the image log data according to identification information corresponding to the third text log data and identification information corresponding to the image log data to obtain mixed log data.
[0065] Step S250: Displaying the mixed log data.
[0066] The detailed description of step S250 can be found in step S130 and will not be repeated here.
[0067] Compared with the log display method provided by an embodiment of the present application, Figure 4 The log display method shown in the embodiment can also obtain text data in the smart door lock as the second text data, deduplicate the first text log data and the second text data, obtain third text log data, merge the third text data with the image data, and obtain mixed log data, thereby realizing log display, making the log data display form of the smart door lock richer, and by obtaining the log data of the smart door lock, the mixed log data can be more complete, preventing the lack of log data, ensuring that users can view real-time and complete log data, and improving user experience.
[0068] See also Figure 6 , Figure 6 The following is a flow chart of a log display method provided by an embodiment of the present application. Figure 6 The process shown is described in detail, and the resource processing method may specifically include the following steps:
[0069] Step S310: Acquire text log data of the smart door lock as first text log data, and acquire image log data of the smart door lock.
[0070] The detailed description of step S310 can be found in step S110 and will not be repeated here.
[0071] Step S320: Obtain text log data from the smart door lock as second text log data, wherein the text log data in the smart door lock is pre-generated by the smart door lock and stored locally.
[0072] For the detailed description of step S320, please refer to step S220, which will not be repeated here.
[0073] Step S330: obtaining repeated text log data in the first text log data and the second text log data.
[0074] In this embodiment, the electronic device can obtain duplicate text log data in the first text log data and the second text log data. For example, if the first text log data includes unlock event 1, unlock event 2, lock event 3, unlock credential addition event 4, and unlock exception event 5, and the second text log data includes unlock event 2 and unlock credential addition event 6, the duplicate text log data is unlock event 2.
[0075] See also Figure 7 , Figure 7 Shows the application Figure 6 The flow chart of step S330 of the log data method shown in FIG. Figure 7 The process shown is described in detail, and the method may specifically include the following steps:
[0076] Step S331: obtaining identification information of each text log data in the first text log data, and obtaining identification information of each text log data in the second text log data.
[0077] In some embodiments, the smart door lock can generate identification information for each text log data in the first text log data and identification information for each text log data in the second text log data. The identification information can be a numerical number or an alphabetical number, which is not limited here. For example, text log data 1, text log data 2; text log data A, text log data B; text log data a, text log data b.
[0078] In this embodiment, the electronic device may obtain identification information of each text log data in the first text log data, and obtain identification information of each text log data in the second text log data.
[0079] Step S332: Determine the text log data with the same identification information in the first text log data and the second text log data as duplicate text log data.
[0080] In this embodiment, the text log data with the same identification information in the first text log data and the second text log data are determined to be duplicate text log data. For example, the first text log data includes unlocking event 1 and adding unlocking credential event 2, and the second text log data includes unlocking event 1, unlocking event 3, locking event 4, adding unlocking credential event 5 and unlocking exception event 6, then the duplicate text log data is unlocking event 1.
[0081] Step S340: deleting the duplicate text log data from the first text log data, and merging the first text log data after deleting the duplicate text log data with the second text log data to obtain the third text log data.
[0082] In this embodiment, duplicate text log data can be deleted from the first text log data, and the first text log data after deleting the duplicate text log data and the second text log data are merged to obtain third text log data. For example, the first text log data includes unlocking event 1 and adding unlocking credential event 2, and the second text log data includes unlocking event 1, unlocking event 3, locking event 4, adding unlocking credential event 5, and unlocking exception event 6. Then, the duplicate text log data is unlocking event 1, the unlocking event 1 in the first text data is deleted, and the first text log data after deleting the duplicate text log data and the second text log data are merged to obtain the third text log data including unlocking event 1, unlocking credential event 2, unlocking event 3, locking event 4, adding unlocking credential event 5, and unlocking exception event 6.
[0083] Step S350: deleting the duplicate text log data from the second text log data, and merging the second text log data after deleting the duplicate text log data with the first text log data to obtain the third text log data.
[0084] In this embodiment, duplicate text log data can also be deleted from the second text log data, and the second text log data after deleting the duplicate text log data and the first text log data are merged to obtain the third text log data. For example, the first text log data includes unlocking event 1 and adding unlocking credential event 2, and the second text log data includes unlocking event 1, unlocking event 3, locking event 4, adding unlocking credential event 5, and unlocking abnormal event 6. Then the duplicate text log data is unlocking event 1, the unlocking event 1 in the second text data is deleted, and the first text log data after deleting the duplicate text log data and the second text log data are merged to obtain the third text log data including unlocking event 1, unlocking credential event 2, unlocking event 3, locking event 4, adding unlocking credential event 5, and unlocking abnormal event 6.
[0085] It is understandable that deleting duplicate text data in the first text log data and the second text log data can avoid repeated processing of the merged text log data, reduce processing time, and thus reduce display delay.
[0086] Among them, step S340 and step S350 can be executed one by one, and the order of step S340 and step S350 is not limited.
[0087] Step S360: obtaining identification information of each text log data in the third text log data, and obtaining identification information of each image log data in the image log data.
[0088] In some implementations, the smart door lock may generate identification information of each text log data in the third text data and identification information of each text log data in the image log data.
[0089] In this embodiment, the electronic device can obtain identification information of each text log data in the third text log data, and obtain identification information of each image log data in the image log data. The identification information represents the uniqueness of the event generated by the smart door lock. In other words, the identification information can be used to distinguish the same event generated by the smart door lock at different times, and the identification information can also be used to distinguish different events generated by the smart door lock at the same time.
[0090] Step S370: Merge the text log data and the image log data with the same identification information in the third text log data and the image log data to obtain the mixed log data.
[0091] In this embodiment, based on obtaining the identification information of each text log data in the third text log data and the identification information of each image log data in the image log data, the log data with the same identification information in the third text log data and the image log data can be merged to obtain mixed log data. For example, the third text log data includes unlocking event 1, unlocking event 2, locking event 3, adding unlocking credential event 4 and unlocking abnormal event 5, and the image log data includes unlocking event 1, unlocking event 2 and locking event 6, then the log data of unlocking event 1 and unlocking event 2 are merged to obtain mixed log data.
[0092] Among them, the smart door lock generates image log data and text log data at the same time as the image log data, which are different types of log data generated when the same event occurs. The identification information of the same event is the same, then the identification information of the image log data is the same as the identification information of the text log data generated at the same time as the image log data is generated. Therefore, the mixed log data includes image log data and text log data with the same identification information (corresponding to the same event).
[0093] Step S380: Display the mixed log data.
[0094] For the detailed description of step S380, please refer to step S130, which will not be repeated here.
[0095] Step S390: In response to the log data filtering instruction, the mixed log data is updated and displayed.
[0096] In some embodiments, the electronic device can update and display the mixed log data in response to a log data filtering instruction. The log data filtering instruction can be time, log data, etc., which are not limited here. For example, when the log data filtering instruction is between 12 o'clock and 16 o'clock, the mixed log data is updated and the mixed log data generated between 12 o'clock and 16 o'clock is displayed, and the mixed log data is displayed; when the log filtering instruction is image log data, the mixed log data is updated and only image log data is displayed; when the log filtering instruction is text log data, the mixed log data is updated and only text log data is displayed.
[0097] Compared with the log display method provided by an embodiment of the present application, Figure 4 The log display method shown in this embodiment can also obtain the identification information of the log data, merge and deduplicate the log data, thereby realizing mixed log data display, making the log data display form of the smart door lock richer.
[0098] See also Figure 8 , Figure 8 The flow chart of the log display method provided by an embodiment of the present application is shown. In this embodiment, the mixed log data includes target mixed log data, and the target mixed log data is generated by merging target text log data and target image log data. Figure 8 The process shown is described in detail, and the resource processing method may specifically include the following steps:
[0099] Step S410: Acquire text log data of the smart door lock as first text log data, and acquire image log data of the smart door lock.
[0100] Step S420: merging the first text log data and the image log data to obtain mixed log data.
[0101] For the detailed description of steps S410 to S420 , please refer to steps S110 to S120 , which will not be repeated here.
[0102] Step S430: acquiring the generation time of each mixed log data in the mixed log data, wherein the generation time of the mixed log data is consistent with the generation time of the text log data and the image log data included in the mixed log data.
[0103] In some implementations, the generation time of each mixed log data in the mixed log data is obtained. As a method, the electronic device can directly obtain the generation time of each mixed log data in the mixed log data.
[0104] In some embodiments, when the same event occurs in the smart door lock, the smart door lock will generate text log data at the same time as the image log data. Therefore, the time of the text log data and the image log data generated by the smart door lock is consistent. After mixing the text log data and the image log data, the mixed log data is obtained. When the mixed log data is displayed, the generation time of the text log data and / or image log data included in the mixed log data is displayed.
[0105] Step S440: generating a mixed log data list based on the generation time of each log data, wherein the mixed log data list includes the mixed log data arranged according to the generation time.
[0106] In this embodiment, a mixed log data list can be generated based on the generation time of each log data item. The mixed log data items in the mixed log data list are arranged according to the generation time. The mixed log data items can be arranged from earliest to latest generation time, as shown in Table 1, or from latest to earliest generation time, as shown in Table 2. This is not limited here.
[0107] Table 1
[0108] Serial number Generation time Log data 1 12:51 Add unlock credential event 2 12:55 Lock event 3 13:20 Unlocking event 4 13:50 Unlocking event
[0109] Table 2
[0110] Serial number Generation time Log data 1 13:50 Unlocking event 2 13:20 Unlocking event 3 12:55 Lock event 4 12:51 Add unlock credential event
[0111] Step S450: Display the mixed log data list.
[0112] As one approach, the hybrid log data list can be directly displayed when the application corresponding to the smart door lock is opened. As another approach, after the application corresponding to the smart door lock is opened, upon receiving an instruction for instructing the display of hybrid log data, the hybrid log data list can be displayed in response to the instruction, wherein the instruction can be generated based on input voice, input text, input touch operation, etc., without limitation here.
[0113] In one embodiment of the present application, the electronic device can display the hybrid log data list in full screen, the electronic device can display the hybrid log data list in partial screen, the electronic device can display the hybrid log data list in a floating manner, the electronic device can display the hybrid log data list in a scrolling manner, etc., which are not limited here.
[0114] In some implementations, when a preset alarm event is detected in the mixed log data, an interface for displaying a mixed log data list may be automatically popped up, and the mixed log data list may be displayed.
[0115] In some embodiments, see Figure 9 , wherein the display control 111 can be used to display the generation time and text log data, and the display control 112 can be used to display image log data.
[0116] Compared with the log display method provided by an embodiment of the present application, Figure 4 The log display method shown in this embodiment can also arrange the log data according to the generation time of the log data to obtain a mixed log data list, thereby realizing log display, and the log data display form of the smart door lock is richer, making the log data clearer and improving the user experience.
[0117] See also Figure 10 , Figure 10 The flow chart of the log display method provided by an embodiment of the present application is shown. In this embodiment, the mixed log data includes target mixed log data, and the target mixed log data is generated by merging target text log data and target image log data. Figure 10 The process shown is described in detail, and the resource processing method may specifically include the following steps:
[0118] Step S510: Acquire text log data of the smart door lock as first text log data, and acquire image log data of the smart door lock.
[0119] Step S520: merging the first text log data and the image log data to obtain mixed log data.
[0120] For the detailed description of steps S510 to S520 , please refer to steps S110 to S120 , which will not be repeated here.
[0121] Step S530: When the target hybrid log data meets a preset alarm event, the target hybrid log data is highlighted.
[0122] In this embodiment, when the target hybrid log data satisfies a preset alarm event, the target hybrid log data is highlighted; when the target hybrid log data does not satisfy the preset alarm event, the target hybrid log data is not highlighted. For example, if the preset alarm event is an unlocking event where the user unlocking credential does not satisfy the preset user unlocking credential, when the target hybrid log data is an unlocking event where the user unlocking credential does not satisfy the preset user unlocking credential, the unlocking event where the user unlocking credential does not satisfy the preset user unlocking credential is highlighted.
[0123] In some implementations, the target mixed log data may be highlighted by using a target color, or by enlarging a font of the target mixed log data, etc., which is not limited here.
[0124] See also Figure 11 , Figure 11 Shows the application Figure 10 The following is a flow chart of step S530 of the log data method. Figure 4 The process shown is described in detail, and the method may specifically include the following steps:
[0125] Step S531: Displaying the target text log data in a target color and displaying the target image log data.
[0126] In this embodiment, the target text log data can be displayed in a target color and the target image log data can be displayed, wherein the target image data corresponds to the target text log data displayed in the target color. Figure 9 As shown, target image log data 112 is displayed.
[0127] Step S532: When a viewing instruction for the target image log data is received, the target image log data is played.
[0128] In some embodiments, the target image log data may be an image or a video. When a viewing instruction for the target image log data is received, the target image log data is played. The viewing instruction for the target image log data may include a click instruction, a voice instruction, a touch instruction, etc., and the specific instruction is not limited here.
[0129] Compared with the log display method provided by an embodiment of the present application, Figure 4 The log display method shown in this embodiment can also highlight the target text log data of the preset alarm event when displaying mixed log data, and display the corresponding target image data, so that the user can view the picture when the preset alarm event occurs, thereby realizing log display, and the log data display form of the smart door lock is richer, improving the user experience.
[0130] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0131] See also Figure 12 , Figure 12 The module block diagram of the log display device provided by the embodiment of the present application is shown. The log display device 500 is applied to the above electronic equipment. Figure 12 As illustrated in the block diagram, the log display device 500 includes: a log data acquisition module 510, a hybrid log data acquisition module 520, and a hybrid log data display module 530, wherein:
[0132] The log data acquisition module 510 is used to acquire text log data of the smart door lock as first text log data, and acquire image log data of the smart door lock.
[0133] Furthermore, the log data acquisition module 510 includes: a server data acquisition submodule, wherein:
[0134] The server data acquisition submodule is used to obtain the text log data of the smart door lock from the server as the first text log data, and to obtain the image log data of the smart door lock from the server, wherein the text log data and image log data in the server are pre-generated and uploaded by the smart door lock.
[0135] The mixed log data acquisition module 520 is configured to merge the first text log data and the image log data to obtain mixed log data.
[0136] Furthermore, the hybrid log data acquisition module 520 includes: a second text data acquisition submodule, a third text data acquisition submodule, and a log data merging submodule, wherein:
[0137] The second text data acquisition submodule is used to obtain text log data from the smart door lock as second text log data, wherein the text log data in the smart door lock is pre-generated by the smart door lock and stored locally.
[0138] A third text data acquisition submodule is configured to merge and remove duplicates from the first text log data and the second text log data to obtain third text log data;
[0139] The log data merging submodule is used to merge the third text log data and the image log data to obtain the mixed log data.
[0140] Furthermore, the log data merging submodule includes: an identification information acquisition unit and a hybrid log data merging unit, wherein:
[0141] The identification information acquiring unit is configured to acquire identification information of each text log data in the third text log data, and acquire identification information of each image log data in the image log data.
[0142] The mixed log data merging unit is configured to merge the text log data and the image log data having the same identification information in the third text log data and the image log data to obtain the mixed log data.
[0143] Furthermore, the log data merging submodule further includes: a duplicate text data acquiring unit, a first duplicate text log deleting unit, and a second duplicate text log deleting unit, wherein:
[0144] The repeated text data acquiring unit is configured to acquire repeated text log data from the first text log data and the second text log data.
[0145] The first duplicate text log deleting unit is configured to delete the duplicate text log data from the first text log data, and merge the first text log data after deleting the duplicate text log data with the second text log data to obtain the third text log data.
[0146] The second duplicate text log deleting unit is configured to delete the duplicate text log data from the second text log data, and merge the second text log data after deleting the duplicate text log data with the first text log data to obtain the third text log data.
[0147] The hybrid log data display module 530 is configured to display the hybrid log data.
[0148] Furthermore, the hybrid log data display module 530 includes: a generation time acquisition submodule, a hybrid log data arrangement submodule and a first display submodule, wherein:
[0149] The generation time acquisition submodule is used to acquire the generation time of each mixed log data in the mixed log data, wherein the generation time of the mixed log data is consistent with the generation time of the text log data and the image log data included in the mixed log data.
[0150] The mixed log data arrangement submodule is configured to generate a mixed log data list based on the generation time of each log data, wherein the mixed log data list includes the mixed log data arranged according to the generation time.
[0151] The first display submodule is used to display the mixed log data list.
[0152] Furthermore, the hybrid log data display module 530 includes: a second display submodule, wherein:
[0153] The second display submodule is configured to highlight the target hybrid log data when the target hybrid log data meets a preset alarm event.
[0154] Furthermore, the second display submodule includes: a target image log data display unit and a target image log data playback unit, wherein:
[0155] The target image log data display unit is configured to display the target text log data in a target color and display the target image log data.
[0156] The target image log data playing unit is configured to play the target image log data when receiving a viewing instruction for the target image log data.
[0157] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0158] In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0159] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0160] See also Figure 13 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 can be an electronic device capable of running applications, such as a smartphone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0161] The processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and circuits to connect various components within the electronic device 100. It executes instructions, programs, code sets, or instruction sets stored in the memory 120, and accesses data stored in the memory 120 to perform various functions and process data within the electronic device 100. Optionally, the processor 110 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing displayed content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 110 and may be implemented separately via a communication chip.
[0162] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the terminal 100 during use (such as a phone book, audio and video data, chat record data), etc.
[0163] The touch screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one embodiment, the touch screen 130 can be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.
[0164] See also Figure 14, which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 600 stores program code, which can be called by a processor to execute the method described in the above method embodiment.
[0165] The computer-readable storage medium 600 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 600 has storage space for program code 610 for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in a suitable form.
[0166] To sum up, the log display method, device, electronic device and storage medium provided in the embodiments of the present application obtain the text log data of the smart door lock as the first text log data, and obtain the image log data of the smart door lock, merge the first text log data and the image log data to obtain mixed log data, and display the mixed log data, thereby realizing the display of the log generated by the smart door lock, and making the log data format of the smart door lock richer, thereby improving the user experience.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A log display method, characterized in that: The method comprises: Acquire text log data of the smart door lock from a server as first text log data, and acquire image log data of the smart door lock from the server, wherein the text log data and image log data in the server are pre-generated and uploaded by the smart door lock; Acquire text log data from the smart door lock as second text log data through a Bluetooth module, wherein the text log data in the smart door lock is pre-generated by the smart door lock and stored locally; Merging and removing duplicates from the first text log data and the second text log data to obtain third text log data; Merging the third text log data and the image log data to obtain mixed log data; displaying the mixed log data; The merging of the third text log data and the image log data to obtain the mixed log data includes: Acquire identification information of each text log data in the third text log data, and acquire identification information of each image log data in the image log data; The text log data and the image log data having the same identification information in the third text log data and the image log data are merged to obtain the mixed log data.
2. The method according to claim 1, characterized in that The merging and deduplicating the first text log data and the second text log data to obtain third text log data includes: Acquire repeated text log data from the first text log data and the second text log data; deleting the duplicate text log data from the first text log data, and merging the first text log data after deleting the duplicate text log data with the second text log data to obtain the third text log data; or The duplicate text log data is deleted from the second text log data, and the second text log data after the duplicate text log data is deleted and the first text log data are merged to obtain the third text log data.
3. The method according to claim 2, characterized in that The obtaining of repeated text log data in the first text log data and the second text log data includes: Obtaining identification information of each text log data in the first text log data, and obtaining identification information of each text log data in the second text log data; The text log data with the same identification information in the first text log data and the second text log data are determined as duplicate text log data.
4. The method according to any one of claims 1 to 3, characterized in that The displaying of the mixed log data includes: Acquire the generation time of each mixed log data in the mixed log data, wherein the generation time of the mixed log data is consistent with the generation time of the text log data and the image log data included in the mixed log data; generating a mixed log data list based on the generation time of each mixed log data, wherein the mixed log data list includes the mixed log data arranged according to the generation time; The mixed log data list is displayed.
5. The method according to any one of claims 1 to 3, characterized in that The mixed log data includes target mixed log data, and the displaying of the mixed log data includes: When the target hybrid log data meets a preset alarm event, the target hybrid log data is highlighted.
6. The method according to claim 5, characterized in that The target mixed log data is generated by merging target text log data and target image log data, and the highlighting of the target mixed log data includes: The target text log data is displayed by a target color, and the target image log data is displayed.
7. The method according to claim 6, characterized in that After displaying the target text log data in a target color and displaying the target image log data, the method further includes: When a viewing instruction for the target image log data is received, the target image log data is played.
8. The method according to any one of claims 1 to 3, characterized in that After displaying the mixed log data, the method further includes: In response to the log data filtering instruction, the mixed log data is updated and displayed.
9. A log display device, characterized in that: The device comprises: a log data acquisition module, configured to acquire text log data of the smart door lock from a server as first text log data, and acquire image log data of the smart door lock from the server, wherein the text log data and image log data in the server are pre-generated and uploaded by the smart door lock; A hybrid log data acquisition module is configured to acquire text log data from the smart door lock as second text log data via a Bluetooth module; merge and deduplicate the first text log data and the second text log data to obtain third text log data; and merge the third text log data with the image log data to obtain hybrid log data; wherein the text log data in the smart door lock is pre-generated by the smart door lock and stored locally; A mixed log data display module, used for displaying the mixed log data; The merging of the third text log data and the image log data to obtain the mixed log data includes: Acquire identification information of each text log data in the third text log data, and acquire identification information of each image log data in the image log data; The text log data and the image log data having the same identification information in the third text log data and the image log data are merged to obtain the mixed log data.
10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor and stores instructions. When the instructions are executed by the processor, the processor performs the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 8.