Equipment state synchronization method and device, terminal, medium and product
By sending the status change information of the terminal device and the mapping relationship between the global unique identifier and the device unique identifier in the secondary management device, the problem that the secondary management device cannot synchronize the status of the terminal device is solved, and consistent synchronization of the status of the terminal device is achieved.
Patent Information
- Application Number
- CN202311872653.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
The secondary management device cannot find the corresponding terminal device and perform status synchronization after the main management device performs security service processing on the terminal device.
By sending the mapping relationship between the corresponding state change-related information, the global unique identifier and the device unique identifier corresponding to the terminal device during the security management service processing to the secondary management device, the secondary management device can determine the corresponding terminal device according to the mapping relationship and perform state synchronization.
The synchronization processing of terminal device status is realized to ensure that the terminal device can maintain the consistent device status when connecting the secondary management device.
Smart Images

Figure CN120238407A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of information security technology, and in particular, to a device status synchronization method, apparatus, terminal, medium, and product. Background Art
[0002] Currently, in some industries, information data security control is carried out through a security authentication management system. The security authentication management system includes a main management device and multiple secondary management devices. Terminal devices can be processed for security authentication, permission management, etc. by secondary management devices such as gateway devices, or can be directly connected to the main management device such as a cloud platform server for security authentication, permission management, etc.
[0003] When the terminal device switches to the direct connection terminal mode to apply for login to the main management device, the login request will carry a globally unique identifier (Global Unique ID, GUID). The main management device performs the current security service processing of the terminal device based on this globally unique identifier. When the main management device completes the security service processing, in order to ensure that the device status is consistent when the terminal device is connected to the secondary management device, it is necessary to synchronize the globally unique identifier and the device status of the terminal device to the secondary management device. However, the secondary management device cannot find the corresponding device according to the globally unique identifier for data synchronization processing.
[0004] Therefore, currently, the secondary management device cannot find the corresponding terminal device and synchronize its status after the main management device performs security service processing on the terminal device. Summary of the Invention
[0005] The present invention provides a device status synchronization method, apparatus, terminal, medium, and product to solve the problem that currently, the secondary management device cannot find the corresponding terminal device and synchronize its status after the main management device performs security service processing on the terminal device.
[0006] The first aspect of the embodiments of the present invention provides a device status synchronization method, including:
[0007] Receiving a device login request sent by a terminal device; the device login request includes a globally unique identifier corresponding to the terminal device;
[0008] Verifying the globally unique identifier to generate a corresponding verification result;
[0009] If the verification result is verification passed, determining that the terminal device has completed device login;
[0010] Send the information related to the status change corresponding to the terminal device during the security management service processing, and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device, to the secondary management device, so that the secondary management device determines the corresponding terminal device according to the mapping relationship, and synchronizes the device status data corresponding to the terminal device according to the information related to the status change; the device unique identifier is pre-stored in a preset database.
[0011] Optionally, for the method as described above, the verifying the globally unique identifier to generate a corresponding verification result includes:
[0012] Perform an inverse process on the globally unique identifier corresponding to the terminal device according to the generation policy corresponding to the globally unique identifier to generate a registration identifier corresponding to the terminal device;
[0013] Verify the registration identifier to generate a corresponding verification result.
[0014] Optionally, for the method as described above, the information related to the status change is the service processing result corresponding to the security management service processing or the corresponding operation instruction generated during the security management service processing of the terminal device;
[0015] If the information related to the status change is the operation instruction, then the sending the information related to the status change corresponding to the terminal device during the security management service processing, and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device, to the secondary management device includes:
[0016] After completing the security management service processing of the terminal device, send status synchronization information to the secondary management device; the status synchronization information includes the operation instruction and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device.
[0017] Optionally, for the method as described above, if the information related to the status change is the operation instruction, then the sending the information related to the status change corresponding to the terminal device during the security management service processing, and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device, to the secondary management device includes:
[0018] Before performing the security management service processing on the terminal device, send the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device;
[0019] After completing the security management service processing of the terminal device, send the operation instruction to the secondary management device.
[0020] Optionally, in the method described above, before sending the state change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device, further includes:
[0021] Determine a corresponding preset processing policy according to the registration identifier; the preset processing policy is stored in a preset database;
[0022] Generate a corresponding operation instruction according to the preset processing policy, and send the operation instruction to the terminal device.
[0023] Optionally, in the method described above, before receiving the device login request sent by the terminal device, further includes:
[0024] Receive a device registration request sent by the terminal device; the device registration request includes the device unique identifier corresponding to the terminal device;
[0025] Generate a corresponding registration identifier according to the device unique identifier, and store the registration identifier in a preset database to complete the registration process of the terminal device.
[0026] A second aspect of the embodiments of the present invention provides a device state synchronization device, including:
[0027] A receiving module, configured to receive a device login request sent by a terminal device; the device login request includes a globally unique identifier corresponding to the terminal device;
[0028] A verification module, configured to verify the globally unique identifier to generate a corresponding verification result;
[0029] A determination module, configured to determine that the terminal device has completed device login if the verification result is verification passed;
[0030] A sending module, configured to send the state change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device, so that the secondary management device determines the corresponding terminal device according to the mapping relationship, and synchronizes the device state data corresponding to the terminal device according to the state change related information; the device unique identifier is pre-stored in a preset database.
[0031] Optionally, in the device described above, the verification module is specifically configured to:
[0032] Perform an inverse process on the globally unique identifier corresponding to the terminal device according to the generation policy corresponding to the globally unique identifier to generate a registration identifier corresponding to the terminal device; verify the registration identifier to generate a corresponding verification result.
[0033] Optionally, for the device as described above, the status change related information is the service processing result corresponding to the security management service processing or the corresponding operation instruction generated during the security management service processing of the terminal device;
[0034] If the status change related information is the operation instruction, when the sending module sends the mapping relationship between the status change related information corresponding to the terminal device during the security management service processing, the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device, it is specifically used for:
[0035] After completing the security management service processing of the terminal device, send status synchronization information to the secondary management device; the status synchronization information includes the mapping relationship between the operation instruction, the globally unique identifier and the device unique identifier corresponding to the terminal device.
[0036] Optionally, for the device as described above, if the status change related information is the operation instruction, when the sending module sends the mapping relationship between the status change related information corresponding to the terminal device during the security management service processing, the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device, it is specifically used for:
[0037] Before performing the security management service processing on the terminal device, send the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device; after completing the security management service processing of the terminal device, send the operation instruction to the secondary management device.
[0038] Optionally, for the device as described above, the device further includes:
[0039] A processing module, configured to determine a corresponding preset processing strategy according to the registration identifier; the preset processing strategy is stored in a preset database; generate a corresponding operation instruction according to the preset processing strategy, and send the operation instruction to the terminal device.
[0040] Optionally, for the device as described above, the device further includes:
[0041] A registration module, configured to receive a device registration request sent by a terminal device; the device registration request includes the device unique identifier corresponding to the terminal device; generate a corresponding registration identifier according to the device unique identifier, and store the registration identifier in a preset database to complete the registration processing of the terminal device.
[0042] A third aspect of an embodiment of the present invention provides an electronic device, including: a memory and a processor;
[0043] The memory stores computer-executable instructions;
[0044] The processor executes the computer-executable instructions stored in the memory to implement the device status synchronization method according to any one of the first aspects.
[0045] A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the device status synchronization method according to any one of the first aspects.
[0046] A fifth aspect of the embodiments of the present invention provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the device status synchronization method according to any one of the first aspects.
[0047] A device status synchronization method, device, terminal, medium and product provided by the embodiments of the present invention include: receiving a device login request sent by a terminal device; the device login request includes a globally unique identifier corresponding to the terminal device; verifying the globally unique identifier to generate a corresponding verification result; if the verification result is verification passed, determining that the terminal device has completed device login; sending the status change-related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device, so that the secondary management device determines the corresponding terminal device according to the mapping relationship, and synchronizes the device status data corresponding to the terminal device according to the status change-related information; the device unique identifier is pre-stored in a preset database. In the device status synchronization method of the embodiments of the present invention, when receiving a device login request sent by a terminal device, the globally unique identifier is verified, and after the verification passes, the status change-related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device are sent to the secondary management device. The secondary management device can find and determine the terminal device according to the mapping relationship, so as to implement the synchronization processing of the device status of the terminal device according to the status change-related information. Description of the Drawings
[0048] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.
[0049] Figure 1 It is a scenario diagram for implementing the device status synchronization method of the embodiments of the present invention;
[0050] Figure 2 It is a flow schematic diagram of the device status synchronization method provided by the present inventionFigure 1 ;
[0051] Figure 3 Schematic flow of the device status synchronization method provided by the present invention Figure 2 ;
[0052] Figure 4 Overall schematic flow of the device status synchronization method provided by the present invention Figure 1 ;
[0053] Figure 5 Overall schematic flow of the device status synchronization method provided by the present invention Figure 2 ;
[0054] Figure 6 Schematic structural diagram of the device status synchronization device provided by the present invention;
[0055] Figure 7 Schematic structural diagram of the electronic device provided by the present invention.
[0056] Through the above-mentioned drawings, specific embodiments of the present invention have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the concept of the present invention to those skilled in the art by reference to specific embodiments. Detailed Description of the Embodiments
[0057] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0058] The technical solution of the present invention will be described in detail below with specific embodiments. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below with reference to the drawings.
[0059] To clearly understand the technical solution of the present application, the solutions of the prior art will be introduced in detail first. To improve the security of information data, many places and institutions will set up security authentication management systems. When an employee enters the scope of a place, they can apply to directly connect to the main management device through a terminal device, and the main management device will perform authentication and security service processing, such as setting the communication connection relationship of the employee's terminal device, such as only being able to receive data, only being able to interconnect with which several terminal devices, etc.
[0060] When the primary management device completes the security service processing, to ensure that the device status remains consistent when the terminal device connects to the secondary management device, the primary management device needs to synchronize the status of the terminal device to the secondary management device. However, the secondary management device cannot find the corresponding terminal device and synchronize its status.
[0061] Therefore, for the problem in the prior art that the secondary management device cannot find the corresponding terminal device and synchronize its status after the primary management device performs security service processing on the terminal device, the inventor found in the research that the problem is caused by the fact that in the security data link system protocol, it is stipulated that only the globally unique identifier is carried in the service instructions other than device registration / device login, and no other identifiers that can identify the device are carried. The globally unique identifier changes every time the device logs in, and only the server that receives the device login can obtain it. As a result, the secondary management device cannot find the corresponding terminal device based on the globally unique identifier. To solve this problem, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device can be sent to the secondary management device, and the secondary management device can find and determine the terminal device according to the mapping relationship, so as to realize the synchronization processing of the device status of the terminal device according to the status change related information.
[0062] Specifically, receive the device login request sent by the terminal device. The device login request includes the globally unique identifier corresponding to the terminal device. Verify the globally unique identifier to generate the corresponding verification result. If the verification result is verification passed, it is determined that the terminal device has completed device login. Send the status change related information corresponding to the terminal device during the security management service processing and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device, so that the secondary management device can determine the corresponding terminal device according to the mapping relationship and synchronize the device status data corresponding to the terminal device according to the status change related information. The device unique identifier is pre-stored in the preset database.
[0063] Based on the above creative discovery, the inventor proposed the technical solution of this application.
[0064] Next, the application scenario of the device status synchronization method provided by the embodiments of the present invention will be introduced. As Figure 1 shown, 1 is the primary management device, 2 is the secondary management device, and 3 is the terminal device. The primary management device 1 can be a cloud platform server, the secondary management device 2 can be a gateway device, and the number of secondary management devices 2 can be multiple. The terminal device 3 can be a device such as a mobile phone or a tablet computer.
[0065] In this embodiment, when the terminal device 3 needs to perform login verification, the following login process is carried out: ① Send a device login request to the main management device 1, where the device login request includes the globally unique identifier corresponding to the terminal device. The main management device 1 performs the following process:
[0066] ② Verify the globally unique identifier and generate a corresponding verification result.
[0067] ③ If the verification result is passed, it is determined that the terminal device has completed device login.
[0068] ④ Send the status change related information and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device 2. The secondary management device 2 performs the following process:
[0069] ⑤ Determine the corresponding terminal device according to the mapping relationship.
[0070] ⑥ Synchronize the device status data corresponding to the terminal device according to the status change related information.
[0071] At the same time, the terminal device 3 can apply to log in to the secondary management device 2. When the secondary management device 2 verifies that the device status of the terminal device 3 conforms to the recorded device status, the terminal device 3 is allowed to log in to the secondary management device 2.
[0072] Next, the embodiments of the present invention will be introduced with reference to the accompanying drawings of the specification.
[0073] Figure 2 It is a flowchart of the device status synchronization method provided by the present invention Figure 1 As Figure 2 shown, in this embodiment, the execution subject of the embodiment of the present invention is a device status synchronization device, and the device status synchronization device can be integrated in the main management device, such as a cloud platform server, etc. The device status synchronization method provided in this embodiment includes the following steps:
[0074] Step S101: Receive a device login request sent by a terminal device. The device login request includes the globally unique identifier corresponding to the terminal device.
[0075] In this embodiment, the globally unique identifier changes each time the device logs in, has a fixed generation format, and the terminal device to which it belongs can be determined during this login through the globally unique identifier. The device login request may also include the request login time, location information, etc.
[0076] Step S102: Verify the globally unique identifier and generate a corresponding verification result.
[0077] In this embodiment, the globally unique identifier can be inversely processed to obtain the registration identifier to be verified. After performing corresponding verification on the registration identifier, the finally obtained verification result is generated.
[0078] Step S103, if the verification result is verification passed, it is determined that the terminal device has completed device login.
[0079] If the verification result is verification passed, it is determined that the current login application of the terminal device has passed, and the terminal device has completed device login.
[0080] Step S104, send the state change related information corresponding to the terminal device during the security management service processing, and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device, so that the secondary management device can determine the corresponding terminal device according to the mapping relationship, and synchronize the device state data corresponding to the terminal device according to the state change related information. The device unique identifier is pre-stored in a preset database.
[0081] In this embodiment, after the terminal device completes login, the primary management device performs corresponding security management service processing on it. For example, device operations such as remote stun, remote turn on, remote kill, and logout can be performed on it, or its communication relationship with other terminal devices can be set. During the security management service processing, the terminal device will generate a state change and generate corresponding state change related information.
[0082] Sending the state change related information and the mapping relationship to the secondary management device can be sent simultaneously or successively. Among them, the mapping relationship can be sent after the security management service processing is completed, or can be sent before the security management service processing, etc.
[0083] In this embodiment, the device unique identifier corresponding to the terminal device is stored in the preset database of the primary management device. When verifying the globally unique identifier, the device unique identifier corresponding to the globally unique identifier can be determined, so as to generate the mapping relationship between the globally unique identifier and the device unique identifier.
[0084] At the same time, the device unique identifier of the terminal device is also stored in the secondary management device. When the secondary management device receives the mapping relationship between the globally unique identifier and the device unique identifier, it can determine the terminal device whose state has changed according to the mapping relationship, and synchronize the device state data corresponding to the terminal device based on the state change related information.
[0085] A device status synchronization method, device, terminal, medium, and product provided by an embodiment of the present invention. The method includes: receiving a device login request sent by a terminal device. The device login request includes a globally unique identifier corresponding to the terminal device. Verifying the globally unique identifier to generate a corresponding verification result. If the verification result is verification passed, it is determined that the terminal device has completed device login. Sending the status change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device, so that the secondary management device determines the corresponding terminal device according to the mapping relationship and synchronizes the device status data corresponding to the terminal device according to the status change related information. The device unique identifier is pre-stored in a preset database.
[0086] The device status synchronization method of the embodiment of the present invention, when receiving a device login request sent by a terminal device, verifies the globally unique identifier, and after the verification passes, sends the status change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device. The secondary management device can find and determine the terminal device according to the mapping relationship, so as to realize the synchronization processing of the device status of the terminal device according to the status change related information.
[0087] Figure 3 It is a flow schematic of the device status synchronization method provided by the present invention Figure 2 , such as Figure 3 shown, on the basis of the previous embodiment, the device status synchronization method provided in this embodiment is further refined. The device status synchronization method includes the following steps:
[0088] Step S201: Receive a device login request sent by a terminal device.
[0089] The implementation manner of S201 in this embodiment is similar to that of S101 in the previous embodiment and will not be elaborated here.
[0090] Optionally, in this embodiment, before S201, the terminal device can also be registered, specifically as follows:
[0091] Receive a device registration request sent by a terminal device. The device registration request includes a device unique identifier corresponding to the terminal device.
[0092] Generate a corresponding registration identifier according to the device unique identifier and store the registration identifier in a preset database to complete the registration process of the terminal device.
[0093] The registration identifier can be data with a format changed according to the unique device identifier, or can be a corresponding registration identifier generated based on the unique device identifier by adding data. This embodiment does not limit this.
[0094] The registration identifier can be processed such as cancelled, newly added, modified, etc. By registering the terminal device, the security of the interaction between the terminal device and the main management device can be further improved.
[0095] Step S202, perform an inverse process on the globally unique identifier corresponding to the terminal device according to the generation strategy corresponding to the globally unique identifier, and generate the registration identifier corresponding to the terminal device.
[0096] In this embodiment, the generation strategy corresponding to the globally unique identifier is generated based on the registration identifier. Therefore, through the inverse process, the registration identifier corresponding to the terminal device can be directly and quickly determined.
[0097] Step S203, verify the registration identifier and generate the corresponding verification result.
[0098] In this embodiment, since the registration identifier corresponding to the terminal device is stored, it can be directly determined whether the registration identifier is valid. If it is valid, it is determined that the verification result is verification passed.
[0099] Step S204, determine the corresponding preset processing strategy according to the registration identifier. The preset processing strategy is stored in the preset database.
[0100] In this embodiment, the corresponding preset processing strategy can be determined in advance according to the registration identifier. For example, different security levels are divided for different registration identifiers, and corresponding security management service processes are performed for different security levels. Thereby, the security of the interaction between the terminal device and the main management device, the secondary management device, and other terminal devices is further improved.
[0101] Step S205, generate the corresponding operation instruction according to the preset processing strategy, and send the operation instruction to the terminal device.
[0102] In this embodiment, the operation instruction can be instructions such as remote stun, remote turn on, remote kill, cancellation, permission setting, etc.
[0103] It should be noted that in this embodiment, the status change related information is the service processing result corresponding to the security management service process or the corresponding operation instruction generated during the security management service process for the terminal device.
[0104] Step S206: After completing the security management service processing for the terminal device, send status synchronization information to the secondary management device. The status synchronization information includes the mapping relationship between the operation instruction, the globally unique identifier, and the device unique identifier corresponding to the terminal device. Enable the secondary management device to determine the corresponding terminal device according to the mapping relationship, and synchronize the device status data corresponding to the terminal device according to the status change related information.
[0105] In this embodiment, the operation instruction is sent to the secondary management device. Generally, the operation instruction has a timestamp. At the same time, the order of each operation instruction can be clearly determined. When problems such as network delay occur, compared with the service processing result corresponding to the security management service processing, the secondary management device can more accurately determine the status of the terminal device based on the operation instruction.
[0106] In this embodiment, after completing the security management service processing for the terminal device, the operation instruction and the mapping relationship are sent to the secondary management device at the same time, so as to reduce the consumption of network resources and improve the data sending efficiency.
[0107] Optionally, in this embodiment, step S206 can also be changed to:
[0108] Before performing the security management service processing on the terminal device, send the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device.
[0109] After completing the security management service processing for the terminal device, send the operation instruction to the secondary management device.
[0110] In this embodiment, before performing the security management service processing on the terminal device, the mapping relationship is sent to the secondary management device alone, so as to avoid mixing the mapping relationship and the operation instruction together, enabling the secondary management device to first find the corresponding terminal device according to the mapping relationship and improving the terminal device search efficiency of the secondary management device.
[0111] At the same time, to further illustrate the device status synchronization method of this embodiment, it will be specifically described below with reference to the accompanying drawings. As Figure 4 and Figure 5 shown, the primary management device of this embodiment is a cloud platform server (abbreviated as cloud platform in the figure), and the secondary management device is a gateway device (abbreviated as gateway in the figure).
[0112] As Figure 4 shown, in this embodiment, after the cloud platform server completes the operation on the terminal device, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device can be sent to the gateway. Specifically as follows:
[0113] S301. When the terminal device is in the direct connection terminal mode, it initiates a device login to the cloud platform and carries the globally unique identifier generated this time in the device login request. After verification by the cloud platform, the direct connection terminal device is allowed to log in successfully.
[0114] S302. The cloud platform performs operations such as device remote hibernation on the direct connection terminal.
[0115] S303. The cloud platform synchronizes the operation instructions such as device remote hibernation of the direct connection terminal to the gateway, and carries the corresponding relationship between the globally unique identifier of the direct connection terminal and the device unique identifier of this terminal device in the instruction.
[0116] S304. The gateway finds this terminal device according to the corresponding relationship between the globally unique identifier in this instruction and the device unique identifier of this terminal device, and performs device status data synchronization processing.
[0117] S305. The direct connection terminal switches to the extended terminal mode.
[0118] S306. When the terminal device is in the extended terminal mode, it initiates a device login to the gateway. The gateway performs a consistency check based on the device status of this device locally and the current status of the terminal. If the check passes, the device login is successful.
[0119] As Figure 5 shown, in this embodiment, before the cloud platform server operates on the terminal device, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device can be sent to the gateway, thereby further improving information security, specifically as follows:
[0120] S401. When the terminal is in the direct connection terminal mode, it initiates a device login to the cloud platform and carries the globally unique identifier generated this time in the device login request. After verification by the cloud platform, the direct connection terminal device is allowed to log in successfully.
[0121] S402. The cloud platform synchronizes the corresponding relationship between the globally unique identifier of this terminal and the device unique identifier of this terminal device to the gateway through a separate instruction.
[0122] S403. The cloud platform performs operations such as device remote hibernation on the direct connection terminal.
[0123] S404. The cloud platform synchronizes the operation instructions such as device remote hibernation of the direct connection terminal to the gateway without carrying the corresponding relationship between the globally unique identifier and the device unique identifier.
[0124] S405. The gateway finds this terminal device according to the corresponding relationship between the globally unique identifier received previously and the device unique identifier of this device, and performs device status data synchronization processing.
[0125] S406: The directly connected terminal switches to the extended terminal mode.
[0126] S407, the terminal is in extended terminal mode, and initiates device login to the gateway. The gateway performs consistency check based on the local device status and the current terminal status. If the check passes, the device login is successful.
[0127] Figure 6 A schematic diagram of the structure of the device state synchronization device provided by the present invention, such as Figure 6 As shown, in this embodiment, the device state synchronization apparatus 500 is located in the electronic device, and the device state synchronization apparatus 500 includes:
[0128] The receiving module 501 is used to receive a device login request sent by a terminal device. The device login request includes a globally unique identifier corresponding to the terminal device.
[0129] The verification module 502 is used to verify the globally unique identifier and generate a corresponding verification result.
[0130] The determination module 503 is used to determine whether the terminal device has completed device login if the verification result is that the verification has passed.
[0131] The sending module 504 is used to send the state change related information corresponding to the terminal device during the security management business processing, and the mapping relationship between the global unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device, so that the secondary management device determines the corresponding terminal device according to the mapping relationship, and synchronizes the device state data corresponding to the terminal device according to the state change related information. The device unique identifier is pre-stored in a preset database.
[0132] The device state synchronization apparatus provided in this embodiment can be executed Figure 2 The technical solution of the method embodiment shown in the figure has the same implementation principle and technical effect as Figure 2 The method embodiments shown are similar and will not be described in detail here.
[0133] The device state synchronization device provided by the present invention is further refined on the basis of the device state synchronization device provided by the previous embodiment. The device state synchronization device 500 specifically includes:
[0134] Optionally, in this embodiment, the verification module 502 is specifically used for:
[0135] According to the generation strategy corresponding to the globally unique identifier, the globally unique identifier corresponding to the terminal device is reversely processed to generate a registration identifier corresponding to the terminal device. The registration identifier is verified to generate a corresponding verification result.
[0136] Optionally, in this embodiment, the status change related information is the service processing result corresponding to the security management service or the corresponding operation instruction generated during the security management service processing of the terminal device.
[0137] If the status change related information is an operation instruction, when the sending module 504 sends the mapping relationship between the status change related information corresponding to the terminal device during the security management service processing, the globally unique identifier, and the device unique identifier corresponding to the terminal device to the secondary management device, it is specifically used for:
[0138] After completing the security management service processing of the terminal device, send status synchronization information to the secondary management device. The status synchronization information includes the mapping relationship between the operation instruction, the globally unique identifier, and the device unique identifier corresponding to the terminal device.
[0139] Optionally, in this embodiment, if the status change related information is an operation instruction, when the sending module 504 sends the mapping relationship between the status change related information corresponding to the terminal device during the security management service processing, the globally unique identifier, and the device unique identifier corresponding to the terminal device to the secondary management device, it is specifically used for:
[0140] Before performing the security management service processing on the terminal device, send the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device. After completing the security management service processing of the terminal device, send the operation instruction to the secondary management device.
[0141] Optionally, in this embodiment, the device status synchronization device 500 further includes:
[0142] A processing module, configured to determine a corresponding preset processing policy according to the registration identifier. The preset processing policy is stored in a preset database. Generate a corresponding operation instruction according to the preset processing policy, and send the operation instruction to the terminal device.
[0143] Optionally, in this embodiment, the device status synchronization device 500 further includes:
[0144] A registration module, configured to receive a device registration request sent by the terminal device. The device registration request includes the device unique identifier corresponding to the terminal device. Generate a corresponding registration identifier according to the device unique identifier, and store the registration identifier in the preset database to complete the registration processing of the terminal device.
[0145] The device status synchronization device provided in this embodiment can execute Figures 2 - 5 the technical solution of the method embodiment shown, and its implementation principle and technical effect are similar to those of Figures 2 - 5 the method embodiment shown, and will not be elaborated here one by one.
[0146] According to an embodiment of the present invention, the present invention further provides an electronic device, a computer-readable storage medium, and a computer program product.
[0147] As Figure 7 shown, Figure 7 FIG. is a schematic structural diagram of the electronic device provided by the present invention. The electronic device is intended for various forms of electronic devices, such as servers, tablet computers, computers, etc. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0148] As Figure 7 shown, the electronic device includes: a processor 601 and a memory 602. Each component is interconnected using different buses and can be installed on a common motherboard or otherwise installed as needed. The processor 601 can process instructions executed within the electronic device.
[0149] The memory 602 is the non-transitory computer-readable storage medium provided by the present invention. Among them, the memory stores instructions executable by at least one processor, so that at least one processor executes the device state synchronization method provided by the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions, and the computer instructions are used to cause a computer to execute the device state synchronization method provided by the present invention.
[0150] The memory 602, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions / modules corresponding to the device state synchronization method in the embodiments of the present invention (for example, the receiving module 501, the verification module 502, the determination module 503, and the sending module 504 shown in Figure 6 FIG.). The processor 601 executes various functional applications and data processing of the electronic device by running the non-transitory software programs, instructions, and modules stored in the memory 602, that is, implements the device state synchronization method in the above method embodiments.
[0151] At the same time, this embodiment also provides a computer product. When the instructions in the computer product are executed by the processor of the electronic device, the electronic device can execute the device state synchronization method of the above embodiment.
[0152] Other embodiments of the embodiments of the present invention will be readily apparent to those skilled in the art after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the embodiments of the present invention, which follow the general principles of the embodiments of the present invention and include known common general knowledge or conventional technical means in the technical field not disclosed in the embodiments of the present invention. The specification and examples are only illustrative, and the true scope and spirit of the embodiments of the present invention are pointed out by the claims.
[0153] It should be understood that the embodiments of the present invention are not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the embodiments of the present invention is only limited by the appended claims.
Claims
1. A device status synchronization method, characterized in that, Including: Receiving a device login request sent by a terminal device; The device login request includes a globally unique identifier corresponding to the terminal device; Verifying the globally unique identifier to generate a corresponding verification result; If the verification result is a pass, determining that the terminal device has completed device login; Sending the status change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device, so that the secondary management device determines the corresponding terminal device according to the mapping relationship, and synchronizes the device status data corresponding to the terminal device according to the status change related information; The device unique identifier is pre-stored in a preset database.
2. The method according to claim 1, wherein The verifying the globally unique identifier to generate a corresponding verification result includes: Performing an inverse process on the globally unique identifier corresponding to the terminal device according to the generation strategy corresponding to the globally unique identifier to generate a registration identifier corresponding to the terminal device; Verifying the registration identifier to generate a corresponding verification result.
3. The method according to claim 2, characterized in that The status change related information is the service processing result corresponding to the security management service processing or the corresponding operation instruction generated during the security management service processing of the terminal device; If the status change related information is the operation instruction, the sending the status change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device includes: After completing the security management service processing of the terminal device, sending status synchronization information to the secondary management device; The status synchronization information includes the operation instruction, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device.
4. The method according to claim 3, characterized in that, If the status change related information is the operation instruction, the sending the status change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device includes: Before performing the security management service processing on the terminal device, sending the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to the secondary management device; After completing the security management service processing of the terminal device, sending the operation instruction to the secondary management device.
5. The method according to claim 2, characterized in that Before sending the status change related information corresponding to the terminal device during the security management service processing, the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device, further including: Determining a corresponding preset processing strategy according to the registration identifier; the preset processing strategy is stored in a preset database; Generating a corresponding operation instruction according to the preset processing strategy and sending the operation instruction to the terminal device.
6. The method according to any one of claims 1 to 5, characterized in that, Before receiving the device login request sent by the terminal device, further including: Receiving a device registration request sent by the terminal device; the device registration request includes the device unique identifier corresponding to the terminal device; Generate a corresponding registration identifier according to the unique device identifier, and store the registration identifier in a preset database to complete the registration process of the terminal device.
7. A device status synchronization device, characterized in that, It includes: A receiving module, configured to receive a device login request sent by a terminal device; The device login request includes a globally unique identifier corresponding to the terminal device; A verification module, configured to verify the globally unique identifier and generate a corresponding verification result; A determination module, configured to determine that the terminal device has completed device login if the verification result is verification passed; A sending module, configured to send the status change related information corresponding to the terminal device during the security management service processing, and the mapping relationship between the globally unique identifier and the device unique identifier corresponding to the terminal device to a secondary management device, so that the secondary management device determines the corresponding terminal device according to the mapping relationship, and synchronizes the device status data corresponding to the terminal device according to the status change related information; The device unique identifier is pre-stored in a preset database.
8. An electronic device, characterized in that, It includes: A memory and a processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory to implement the device status synchronization method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium, and when the computer execution instructions are executed by a processor, they are used to implement the device status synchronization method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the device status synchronization method according to any one of claims 1 to 6.