Device interconnection method, apparatus, electronic device, and computer program product

By using Bluetooth communication and MD5 conversion verification, and utilizing the Bluetooth address and unique matching identifier of the power terminal for device interconnection, the problem of inconvenient identity recognition during device interconnection is solved, thereby improving security and efficiency.

CN118827128BActive Publication Date: 2025-12-05CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410326945.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2025-12-05
Estimated Expiration
2044-03-21

AI Technical Summary

Technical Problem

In the process of device interconnection, existing technologies require multiple authentications, which is inconvenient for users and affects work efficiency. The inability to complete identity recognition synchronously reduces the security and efficiency of device interconnection.

Method used

By obtaining the Bluetooth address and unique matching identifier of the power terminal, device interconnection is achieved through Bluetooth communication. Authentication is performed by combining MD5 conversion and database comparison, and a unique information code is generated for device interconnection.

Benefits of technology

It improves the security and efficiency of device interconnection, simplifies the operation process, and ensures the security and accuracy of the device interconnection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827128B_ABST
    Figure CN118827128B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a device interconnection method, device, electronic device and computer program product. The device interconnection method is applied to a user terminal, and includes: in the case that the user terminal has communication permission, obtaining a Bluetooth address and a unique matching identifier of a power terminal to be interconnected, the unique matching identifier being pre-generated according to terminal information corresponding to the user terminal and the power terminal respectively. In the case that the Bluetooth address is a legal address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal, so that the power terminal completes device interconnection when receiving the device interconnection request and the unique matching identifier. The present disclosure improves the security of device interconnection by judging the legality of the Bluetooth address. Since the unique matching identifier is generated according to the identity information of the user terminal and the power terminal, it plays a role in identity recognition in the device interconnection process. Therefore, the method can solve the technical problem that identity recognition cannot be completed synchronously while device interconnection is being performed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a device interconnection method and device, an electronic device and a computer program product. BACKGROUND

[0002] With the increasing scale and complexity of power systems, the security and reliability thereof are facing more and more challenges. In order to ensure the normal operation of the power system, the mobile terminal needs to be connected with the power system, so as to effectively monitor the power system and each terminal belonging to the power system.

[0003] In the related art, the mobile terminal is generally integrated with the terminal belonging to the power system through a USB (Universal Serial Bus), WIFI (Wireless Fidelity) or Bluetooth, so as to realize device interconnection. However, in the process of device interconnection, the user usually needs to perform identity recognition for multiple times, which not only brings inconvenience to the user, but also affects the work efficiency of device interconnection. SUMMARY

[0004] Therefore, the exemplary embodiments of the present disclosure provide a device interconnection method, device, electronic device and computer program product to solve the problems in the related art.

[0005] In a first aspect, the exemplary embodiments of the present disclosure provide a device interconnection method, which is applied to a user terminal and includes the following steps.

[0006] In the case that the user terminal has communication permission, the Bluetooth address and the unique matching identifier of the power terminal to be interconnected are acquired; the unique matching identifier is generated in advance according to the terminal information corresponding to the user terminal and the power terminal, respectively.

[0007] In the case that the Bluetooth address is a legal address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal, so that the power terminal completes device interconnection in the case that the device interconnection request and the unique matching identifier are received.

[0008] In a second aspect, the exemplary embodiments of the present disclosure provide a device interconnection method, which is applied to a system to which the user terminal belongs and includes the following steps.

[0009] The locally pre-stored Bluetooth address is acquired.

[0010] It is judged whether the acquired Bluetooth address is consistent with the pre-stored Bluetooth address.

[0011] In a case where the acquired Bluetooth address is consistent with the pre-stored Bluetooth address, the Bluetooth address is determined as a legal address.

[0012] In a third aspect of the example embodiments of the present disclosure, a device interconnection method is provided, which is applied to a power terminal and includes:

[0013] In a case where a device interconnection request is received from a user terminal, a Bluetooth address of the power terminal is sent to the user terminal.

[0014] In a case where the received unique matching identifier is consistent with the pre-stored unique matching identifier, the interconnection between the user terminal and the power terminal is established.

[0015] In a case where the received unique matching identifier is consistent with the pre-stored unique matching identifier, the interconnection between the user terminal and the power terminal is established.

[0016] In a fourth aspect of the example embodiments of the present disclosure, a device interconnection method is provided, which is applied to a power server and includes:

[0017] In a case where a device interconnection request is received from a user terminal, the power server acquires terminal information corresponding to the user terminal and determines whether the user terminal has communication authority according to the terminal information corresponding to the user terminal.

[0018] In a case where the user terminal has communication authority, the power server performs matching processing on the user terminal and a power terminal and generates a unique matching identifier.

[0019] The power server sends the unique matching identifier and a Bluetooth address corresponding to the power terminal to the user terminal.

[0020] In a fifth aspect of the example embodiments of the present disclosure, a device interconnection apparatus is provided, which is applied to a user terminal and includes:

[0021] A data acquisition module is configured to acquire a Bluetooth address and a unique matching identifier of a power terminal to be interconnected in a case where the user terminal has communication authority, and the unique matching identifier is pre-generated according to terminal information corresponding to the user terminal and the power terminal, respectively.

[0022] A data processing module is configured to send, in a case where the Bluetooth address is a legal address, a device interconnection request and the unique matching identifier to the power terminal by the user terminal, so that the power terminal completes device interconnection in a case where the device interconnection request and the unique matching identifier are received.

[0023] In a sixth aspect, the present disclosure provides a device interconnection apparatus, which is applied to a system to which a user terminal belongs, and comprises:

[0024] a data acquisition module configured to acquire a locally pre-stored Bluetooth address;

[0025] a data processing module configured to determine whether the acquired Bluetooth address is consistent with the pre-stored Bluetooth address;

[0026] The data processing module is further configured to determine that the Bluetooth address is a legal address in a case where the acquired Bluetooth address is consistent with the pre-stored Bluetooth address.

[0027] In a seventh aspect, the present disclosure provides a device interconnection apparatus, which is applied to a power terminal, and comprises:

[0028] a data acquisition module configured to send a Bluetooth address of the power terminal to a user terminal in a case where a device interconnection request sent by the user terminal is received;

[0029] a data processing module configured to compare a received unique matching identifier with a pre-stored unique matching identifier in a case where the unique matching identifier is received;

[0030] The data processing module is further configured to establish interconnection between the user terminal and the power terminal in a case where the received unique matching identifier is consistent with the pre-stored unique matching identifier.

[0031] In an eighth aspect, the present disclosure provides a device interconnection apparatus, which is applied to a power server, and comprises:

[0032] a data acquisition module configured to acquire terminal information corresponding to a user terminal and determine whether the user terminal has communication authority according to the terminal information corresponding to the user terminal in a case where a device interconnection request sent by the user terminal is received;

[0033] a data processing module configured to perform matching processing on the user terminal and a power terminal to generate a unique matching identifier in a case where the user terminal has communication authority;

[0034] The data processing module is further configured to send the unique matching identifier and a Bluetooth address corresponding to the power terminal to the user terminal by the power server.

[0035] In a ninth aspect, the present disclosure provides a device interconnection system, which comprises a user terminal, a power terminal, a power server and a system to which the user terminal belongs, and the system comprises:

[0036] The user terminal sends a device interconnection request to the power server;

[0037] The power server, upon receiving the device interconnection request from the user terminal, acquires terminal information corresponding to the user terminal, and determines whether the user terminal has communication authority according to the terminal information corresponding to the user terminal;

[0038] In the case where the user terminal has communication authority, the power server performs matching processing on the user terminal and the power terminal, and generates a unique matching identifier;

[0039] The power server sends the unique matching identifier and the Bluetooth address corresponding to the power terminal to the user terminal;

[0040] The user terminal acquires the unique matching identifier and the Bluetooth address of the power terminal, and sends the Bluetooth address of the power terminal to the system to which the user terminal belongs;

[0041] The system to which the user terminal belongs determines whether the Bluetooth address is a legal address;

[0042] In the case where the Bluetooth address is a legal address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal;

[0043] The power terminal, upon receiving the device interconnection request from the user terminal, establishes interconnection with the user terminal according to the unique matching identifier.

[0044] The tenth aspect of the exemplary embodiments of the present disclosure provides an electronic device, comprising:

[0045] at least one processor;

[0046] a memory for storing at least one processor-executable instruction; wherein the at least one processor is configured to execute the instructions to implement the steps of the above method.

[0047] According to the eleventh aspect of the present disclosure, a computer program product is provided, which comprises a computer program that, when executed by a processor, implements the method described in the exemplary embodiments of the present disclosure.

[0048] The above at least one technical solution adopted by the exemplary embodiments of the present disclosure can achieve the following beneficial effects: The above device interconnection method is applied to a user terminal, and includes: in the case that the user terminal has communication permission, obtaining a Bluetooth address and a unique matching identifier of a power terminal to be interconnected, the unique matching identifier being pre-generated according to terminal information corresponding to the user terminal and the power terminal respectively. In the case that the Bluetooth address is a legal address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal, so that the power terminal completes device interconnection in the case that the device interconnection request and the unique matching identifier are received. The present disclosure improves the security of device interconnection by judging the legality of the Bluetooth address. In addition, the unique matching identifier is generated according to the terminal information of the user terminal and the power terminal, and plays a role of identity recognition in the process of device interconnection. Therefore, the device interconnection method can solve the technical problem that identity recognition cannot be completed synchronously while device interconnection is performed. BRIEF DESCRIPTION OF DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the exemplary embodiments of the present disclosure, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.

[0050] Figure 1 A structural schematic diagram of a device interconnection method based on Bluetooth communication provided by an exemplary embodiment of the present disclosure;

[0051] Figure 2 A flowchart of a device interconnection method based on Bluetooth communication provided by an exemplary embodiment of the present disclosure;

[0052] Figure 3 A flowchart of a device interconnection method provided by an exemplary embodiment of the present disclosure;

[0053] Figure 4 A functional module schematic block diagram of a device interconnection apparatus provided by an exemplary embodiment of the present disclosure;

[0054] Figure 5 A schematic block diagram of a chip provided by an exemplary embodiment of the present disclosure;

[0055] Figure 6 A structural block diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0056] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein; rather, these embodiments are provided so as to more completely and thoroughly understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for illustrative purposes and are not intended to limit the scope of protection of the present disclosure.

[0057] It should be understood that each of the steps recited in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0058] The term "comprising" and variations thereof as used herein are open-ended, that is "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Related terms are defined in the following description. It should be noted that the concepts mentioned in the present disclosure are merely for distinguishing different apparatuses, modules or units, and are not intended to limit the functions of these apparatuses, modules or units.

[0059] It should be noted that the modification of "one" or "multiple" mentioned in the present disclosure is illustrative rather than limiting, and those skilled in the art should understand that, unless otherwise explicitly indicated in the context, it should be understood as "one or more".

[0060] The names of the messages or information exchanged between the plurality of apparatuses in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0061] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, use range, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations.

[0062] For example, when responding to the active request of the user, prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using the personal information of the user. Thus, the user can voluntarily choose whether to provide the personal information to the software or hardware such as electronic device, application program, server or storage medium, etc. performing the operation of the technical solutions of the present disclosure according to the prompt information.

[0063] As an optional but non-limiting implementation, in response to receiving the active request of the user, the manner of sending the prompt information to the user may be, for example, a pop-up window manner in which the prompt information may be presented in a textual manner. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device. It can be understood that the above notification and obtaining user authorization process is only illustrative and does not limit the implementation of the present disclosure, and other manners that meet the relevant laws and regulations can also be applied to the implementation of the present disclosure.

[0064] With the increasing size and complexity of the power system, its security and reliability are facing more and more challenges. In order to ensure the normal operation of the power system, it is necessary to connect the mobile terminal with the power system, so as to effectively monitor the power system and each terminal belonging to the power system.

[0065] In the related art, the mobile terminal generally integrates with the terminal belonging to the power system through USB, WIFI or Bluetooth and the like to realize device interconnection. However, in the process of device interconnection, it is often necessary to establish an identity recognition relationship through face recognition, fingerprint comparison and the like, and a direct identity authentication mechanism is not established between the mobile terminal and other terminals belonging to it. This leads to the fact that while the devices are interconnected, the identity recognition cannot be completed synchronously, thereby reducing the security and interconnection efficiency of the device interconnection process.

[0066] Therefore, in order to solve the above problems, the example embodiments of the present disclosure provide a device interconnection method which can be applied to the operation, monitoring and control of the power system, and improves the communication security and efficiency between the mobile terminal and the power system. For example, the staff of the power system can remotely access the data and state of the power system through the mobile terminal, and perform operations such as fault diagnosis, parameter adjustment and instruction issuing. The Bluetooth communication between the mobile terminal and the power system can ensure the real-time and accuracy of the data, and can also prevent illegal users or devices from accessing the power system, causing data leakage or system damage.

[0067] In addition, the staff of the power system can also realize device interconnection with the terminal belonging to the power system through the mobile terminal, remotely access the data and working system of the terminal, and correct the error data on the terminal, thereby ensuring the real-time and accuracy of the data. This device interconnection method can be applied to different power systems such as smart grid, microgrid and distributed power generation, and is used to improve the intelligence and reliability of the power system.

[0068] Specifically, the user's mobile terminal initiates a request to the power system for interconnection with the terminal belonging to the power system, the power system matches the terminal belonging to the power system based on the Bluetooth information of the terminal, and meanwhile, extracts the authority scope information of the current logged-in user of the power system. After the terminal belonging to the power system is matched successfully, the power system generates a unique information code and sends the unique information code and the Bluetooth information to the mobile terminal. The mobile terminal belonging to the system compares the Bluetooth information of the terminal belonging to the power system with the Bluetooth information of the terminal belonging to the system in the database of the mobile terminal, confirms that the terminal belonging to the power system is the target terminal to be connected, and then the mobile terminal sends the received unique information code, the consent connection instruction and the legal instruction to the terminal belonging to the power system, thereby completing the identity verification and the interconnection of the devices.

[0069] Exemplarily, Figure 1 A structural schematic diagram of a device interconnection method based on Bluetooth communication is provided for an example of the present disclosure. As shown in the figure, Figure 1 The mobile terminal belonging to the system 110 is in communication connection with the mobile terminal 120, and the power system 130 can be in communication connection with multiple terminals 140 belonging to the system. In this embodiment, the mobile terminal 120 completes the identity recognition and the device interconnection with the terminal 140 belonging to the system through the MAC (Media Access Control) address of Bluetooth and the information code generated by the system. The specific process can include:

[0070] ① The power system 130 acquires the Bluetooth MAC addresses corresponding to multiple terminals 140 belonging to the system respectively.

[0071] ② The user's mobile terminal 120 initiates a request to the power system 130 for interconnection with the terminal 140 belonging to the system.

[0072] ③ After the power system 130 matches a certain terminal 140 belonging to the system with the mobile terminal 120, the power system 130 sends the unique information code generated and the Bluetooth MAC address of the terminal 140 belonging to the system to the mobile terminal belonging to the system 110.

[0073] ④ The user's mobile terminal 120 sends the Bluetooth MAC address of the terminal 140 belonging to the system to the mobile terminal belonging to the system 110.

[0074] ⑤ The mobile terminal belonging to the system 110 judges whether the Bluetooth MAC address sent by the mobile terminal 120 is consistent with the Bluetooth MAC address sent by the power system 130. In the case where the Bluetooth MAC addresses are consistent, the mobile terminal 120 sends the unique information code to the terminal 140 belonging to the system, thereby completing the identity verification and the device interconnection.

[0075] Exemplarily, Figure 2 A flowchart of a device interconnection method based on Bluetooth communication is provided for an example of the present disclosure.

[0076] As Figure 2As shown, the device interconnection method based on Bluetooth communication can include the following steps:

[0077] Step S201: The mobile terminal sends a connection request to the power system.

[0078] First, the mobile terminal sends terminal information of the mobile terminal and the terminal to which connection is required, and Bluetooth information to the power system in order to make a connection request. The terminal information includes device SN (Serial Number) number, geographic location, ICCID (Integrated Circuit Card Identifier), IP (Internet Protocol) address, terminal manufacturer, and terminal model; and the Bluetooth information includes Bluetooth name, version, frequency, transmission power, MAC address, and the like. The power system searches whether the user exists in the relevant database according to the login username according to the basic terminal information and Bluetooth communication module information sent by the mobile terminal through the identity recognition module. If the user exists, the terminal information and Bluetooth communication module information are converted by MD5 (Message Digest Algorithm 5), and compared with the relevant information of the user in the database. If the information is completely consistent, the connection request application is successful.

[0079] For example, the mobile terminal can be a smart phone, a tablet computer, a notebook computer, or the like, and the power system can be a transformer substation, a power distribution network, a power transmission line, or the like. The mobile terminal needs to send terminal information and Bluetooth information of itself and the terminal to which connection is required to the power system in order for the power system to identify the identity and Bluetooth parameters of the mobile terminal.

[0080] After the mobile terminal sends a connection request to the power system, the power system uses the characteristics of Bluetooth communication, combines the terminal information and Bluetooth information of the terminal, and realizes effective verification of the connection request of the mobile terminal and the terminal by MD5 conversion and database comparison.

[0081] Specifically, the mobile terminal sends a connection request of the mobile terminal and the terminal to which connection is required to the power system, and the connection request can include terminal information and Bluetooth information of the mobile terminal and the terminal in order to subsequently perform device interconnection. The terminal information can include device SN number, geographic location, ICCID, IP address, terminal manufacturer, and terminal model, and the like, and the terminal information can uniquely identify a mobile terminal or a terminal. The Bluetooth information can include Bluetooth name, version, frequency, transmission power, MAC address, and the like, and the Bluetooth information can reflect characteristics of a Bluetooth communication module in a mobile terminal or a terminal.

[0082] The power system obtains the login username of the mobile terminal according to the terminal information and the Bluetooth information sent by the mobile terminal through the identity recognition module, and then searches the database for whether the user exists according to the login username. The database stores the terminal information, Bluetooth information and corresponding MD5 conversion value of each user. If the user does not exist in the database, the connection request is rejected.

[0083] If the user exists, the terminal information and the Bluetooth information sent by the mobile terminal are converted by MD5 to generate a 32-bit hexadecimal string as the unique identifier of the mobile terminal. MD5 conversion is an irreversible hash algorithm that can convert data of any length into fixed-length data, and has high security and uniqueness. Then, the MD5 conversion value of the mobile terminal is compared with the MD5 conversion value of the user in the database. If the information is completely consistent, the connection request is successful. If the terminal information or the Bluetooth information of the user is inconsistent with that sent by the mobile terminal, the connection request is rejected.

[0084] Based on this, since MD5 conversion is irreversible, the terminal information and the Bluetooth information are converted into a unique string, so as to ensure that the terminal information and the Bluetooth information are not directly exposed in the data transmission process, thereby improving the security of the device interconnection method. In addition, using the Bluetooth communication function for data transmission and request sending makes the connection of the mobile terminal and the power system not need to pass through the network or other external devices, but only need to communicate through the Bluetooth module, thereby saving time and resources, improving communication efficiency and convenience.

[0085] Step S202: Obtain the role information corresponding to the user in the power system.

[0086] In order to ensure the security of the data in the power system, the operation of the user needs to be controlled. In this embodiment, the role information corresponding to the user can be obtained, and then the user is assigned with corresponding access rights and operation rights, as well as corresponding user interface and function menu according to the role information.

[0087] For example, the identity recognition module in the power system can obtain the role information of the login user by querying the "user-role" relationship table in the database according to the successfully logged-in user information. The identity recognition module is used to identify the legality of the user information and store the permission information of the user. It can control the access rights and operation rights of the user to the power system according to different user roles, so as to ensure the safe and stable operation of the power system. For example, the power system can include the following user roles:

[0088] System administrator: responsible for the overall management and maintenance of the power system, with the highest access and operation permissions, can monitor, configure, debug, optimize, etc. operation of each part of the power system.

[0089] System operator: responsible for the daily operation and control of the power system, with higher access and operation permissions, can monitor, control, dispatch, etc. operation of the main part of the power system.

[0090] System maintenance personnel: responsible for fault detection and repair of the power system, with lower access and operation permissions, can only detect and repair the fault part of the power system.

[0091] System auditor: responsible for the security and compliance review of the power system, with the lowest access and operation permissions, can only view and analyze the operation log and security report of the power system.

[0092] Specifically, the workflow of the identity recognition module in the power system can include:

[0093] When the mobile terminal is connected to the power system through Bluetooth communication, the identity recognition module will perform identity verification according to the terminal information and Bluetooth information sent by the mobile terminal. After successful identity verification, the identity recognition module can extract the user's role information by querying the "user-role" relationship table according to the user's username.

[0094] Further, according to the user's role information, the identity recognition module can assign the user corresponding access and operation permissions, as well as corresponding user interface and function menu.

[0095] Step S203: permission control of user's operation according to role information.

[0096] For example, the power system can extract the permission scope information of the logged-in user from the role permission table according to the user's role information through the operation verification module, and use the permission scope information as the basis for supervising and controlling the user's operation. The permission scope information can include the instruction type of system operation and the add, delete, modify, and query operations on the data in the terminal.

[0097] In an optional manner, the permission scope information can be reflected in the URL (uniform resource locator, uniform resource locator) address of the instruction, so as to control and limit according to the access address content of the instruction. The way of reflecting the permission scope information in the URL address of the instruction can include adding a suffix corresponding to the permission scope on the URL address, or adding a pointing information on the URL address.

[0098] For example, the operation verification module can also acquire instruction type information according to a suffix or pointing information on the URL address, and distinguish whether the corresponding instruction is an operation instruction of the system to which the mobile terminal belongs or a mobile terminal operation instruction according to the instruction type information. After the mobile terminal is connected to the power system, the specific operation of the user on the terminal can be controlled according to the mobile terminal information and the user authority scope information.

[0099] If it is a mobile terminal operation instruction, the operation verification module of the power system can extract terminal information of the terminal to which the user needs to be connected, and feed back terminal information in the authority scope of the user to the user according to the authority scope information.

[0100] If it is a mobile terminal operation instruction, the operation verification module of the power system can extract terminal information of the terminal to which the user needs to be connected, and feed back terminal information in the authority scope of the user to the user according to the authority scope information.

[0101] If the user has the relevant operation authority, and the terminal to which the mobile terminal needs to be connected is searched in the system, the power system will randomly generate a unique information code and send it to the mobile terminal together with the Bluetooth MAC address of the terminal. The mobile terminal feeds back the received unique information code and Bluetooth MAC address to the system to which the mobile terminal belongs. If the user does not have the relevant operation authority, the instruction is refused to be executed.

[0102] For example, Mr. Zhang, the system administrator, logs in to the power system. His role is "administrator", and his authority scope information is that he can perform operations such as adding, deleting, modifying and inquiring on all terminals and system operations.

[0103] Mr. Zhang wants to check the running status of a certain power station. He inputs an instruction on the mobile terminal, and the URL address of the instruction is http: / / ***-system.com / station / status?station_id=***, wherein station_id=*** is pointing information indicating the number of the power station to be checked.

[0104] After the operation verification module receives the instruction, it is judged according to the URL address that it is a mobile terminal operation instruction, the type of the instruction is "check", the terminal is "power station", and the operation instruction is "status".

[0105] The operation verification module extracts the instruction set corresponding to the administrator role from the "authority-method" data table in the system database to which the mobile terminal belongs, finds that the "status" instruction is in it, and it is indicated that Mr. Zhang has the authority to execute the instruction.

[0106] The operation verification module allows the instruction to be executed and returns the operation state information of the power station to the mobile terminal of Mr. Zhang.

[0107] Mr. Zhang sees the operation state information of the power station on the mobile terminal, including voltage, current, power, temperature and other data.

[0108] Step S204: The system to which the mobile terminal belongs determines whether the Bluetooth MAC address is correct.

[0109] Firstly, the mobile terminal receives the unique information code fed back by the power system and the Bluetooth MAC address of the terminal. Through the unique information code and the Bluetooth MAC address of the terminal, the mobile terminal can know which terminal to communicate with and obtain the identity information of the terminal.

[0110] Specifically, the mobile terminal can turn on the Bluetooth function near the relevant power equipment and scan the available devices around. The power system detects the Bluetooth signal of the mobile terminal, sends a unique information code and the Bluetooth MAC address of the terminal to the mobile terminal. After the mobile terminal receives these information, it stores them in the memory and waits for the next operation.

[0111] Then, the mobile terminal feeds back the relevant information to the system to which the mobile terminal belongs, so that the system to which the mobile terminal belongs processes and verifies the received information.

[0112] Specifically, the mobile terminal system compares the Bluetooth MAC address of the terminal in the database with the received Bluetooth MAC address of the terminal. If they are consistent, it means that the terminal is real and correct, and the subsequent secure connection operation can be performed.

[0113] The mobile terminal system feeds back the comparison result to the mobile terminal. If it is successful, the mobile terminal will display a prompt information such as "terminal verification passed, can perform secure connection operation"; if it fails, the mobile terminal will display a warning information such as "terminal verification failed, may be a counterfeit or tampered device, do not perform any operation".

[0114] Step S205: The mobile terminal sends a connection request to the terminal to complete the interconnection of devices.

[0115] Firstly, the mobile terminal sends the received unique information code, connection agreement instruction and legal instruction to the terminal together to complete the identity verification and interconnection of devices. Thus, a secure data channel is established between the mobile terminal and the terminal to exchange data and perform control operation.

[0116] Specifically, the mobile terminal sends the received unique information code, the consent connection instruction, and the legal instruction to the affiliated terminal together to complete identity verification and device interconnection after establishing a secure connection with the power system. After receiving the information from the mobile terminal, the affiliated terminal confirms the identity and authority of the mobile terminal according to the unique information code and the consent connection instruction. If it passes, it accepts the legal instruction. If it does not pass, it rejects the legal instruction and sends an error message to the mobile terminal.

[0117] Then, the affiliated terminal inputs the legal instruction into the message processing module, which performs logical processing in the control layer of the MVC (Model-View-Controller) programming mode to realize the operation function of the corresponding instruction. Thus, the affiliated terminal performs corresponding data processing and control operations according to the instruction issued by the mobile terminal. Among them, the message processing module can be a software module on the affiliated terminal, responsible for receiving and processing the legal instruction issued by the mobile terminal, and realizing the corresponding operation function. The MVC programming mode refers to a software design mode that divides software into three layers: model (Model), view (View), and controller (Controller). The model is responsible for processing data, the view is responsible for displaying the interface, and the controller is responsible for processing logic.

[0118] Specifically, the affiliated terminal inputs the legal instruction into the message processing module, which performs logical processing in the control layer of the MVC programming mode to realize the operation function of the corresponding instruction, such as obtaining the running state of the power equipment from the model layer, and passing the result to the view layer. The view layer displays the result in the form of a chart or text on the screen of the affiliated terminal for the power engineer to view. The message processing module also sends the result back to the mobile terminal, allowing the mobile terminal to also view the running state of the power equipment.

[0119] Finally, the subsequent power system can perform related operations on the affiliated terminal and the mobile terminal according to the operation function of the corresponding instruction. Thus, the power system performs corresponding feedback and adjustment according to the results of data exchange and control operations of the affiliated terminal and the mobile terminal.

[0120] Specifically, the power system monitors the running state and parameters of the power equipment in real time through secure connections with the affiliated terminal and the mobile terminal, such as voltage, current, temperature, etc. The power system determines whether to perform related operations, such as sending an alarm message, adjusting the parameters of the power equipment, cutting off the power supply of the power equipment, etc. according to the running state and parameters of the power equipment. The power system sends the instruction of the related operation to the affiliated terminal and the mobile terminal, allowing them to perform corresponding operations, such as displaying an alarm message, adjusting the parameters of the power equipment, cutting off the power supply of the power equipment, etc.

[0121] The one or more technical solutions provided in the exemplary embodiments of the present disclosure enable the mobile terminal and the power system to communicate through the Bluetooth module only, without the need for network or other external devices, thereby saving time and resources and improving communication efficiency and convenience. Meanwhile, the method does not require the user to input a password or other information, but only requires the user to provide a login username, which not only simplifies the operation process, but also improves the safety factor during device interconnection.

[0122] Therefore, the device interconnection method provided in the exemplary embodiments of the present disclosure can effectively verify the connection request of the mobile terminal and the power system or the terminal belonging thereto, thereby improving the safety and reliability of the power system.

[0123] Based on the above embodiments, the present disclosure further provides a device interconnection method, Figure 3 The flowchart of the device interconnection method provided in an exemplary embodiment of the present disclosure is shown in Figure 3 The method can include the following steps:

[0124] Step S310: In the case where the user terminal has communication authority, the Bluetooth address and the unique matching identifier of the power terminal to be interconnected are obtained. The unique matching identifier is generated in advance according to the terminal information corresponding to the user terminal and the power terminal, respectively.

[0125] In the present embodiment, the user terminal corresponds to the mobile terminal in the above embodiments, the power terminal corresponds to the terminal belonging to the power system in the above embodiments, the power server corresponds to the power system in the above embodiments, and the system to which the user terminal belongs corresponds to the system to which the mobile terminal belongs in the above embodiments.

[0126] In the present embodiment, the user terminal and the power terminal can protect the security of data transmission through an encrypted communication protocol on the premise that the user terminal has communication authority. A secure Bluetooth protocol or other secure communication protocol can be used to protect the transmission process of the Bluetooth address and the unique matching identifier.

[0127] For example, the user terminal and the power terminal can use digital certificates or other identity verification mechanisms to verify each other to ensure the legitimacy of both parties and the security of the terminal information.

[0128] For example, the unique matching identifier can be generated based on device feature analysis or terminal information comparison, thereby improving the accuracy and reliability of the unique matching identifier.

[0129] Step S320: In the case that the Bluetooth address is a legal address, the user terminal sends a device interconnection request and a unique matching identifier to the power terminal, so that the power terminal completes device interconnection upon receiving the device interconnection request and the unique matching identifier.

[0130] In an embodiment, the manner of judging whether the Bluetooth address is a legal address can include:

[0131] Address verification: The verification mechanism of the Bluetooth address can be used to check its legality, such as verifying the format, length and validity of the Bluetooth address.

[0132] White list filtering: A white list mechanism can be introduced to pre-store legal Bluetooth addresses in the user terminal, and the legality of the Bluetooth address is compared with the white list when judging the legality of the Bluetooth address. Only the Bluetooth address existing in the white list is considered legal.

[0133] Security protocol: The legality of the Bluetooth address is verified in combination with security protocols such as identity verification and encryption. By combining with device identity verification process and secure communication, the legality of the Bluetooth address can be more reliably judged.

[0134] In an embodiment, in the case that the Bluetooth address is determined to be a legal address, the user terminal can send a device interconnection request and a unique matching identifier to the power terminal, so that the power terminal completes device interconnection and identity recognition upon receiving the device interconnection request and the unique matching identifier.

[0135] Based on this, in the case that the user terminal has communication authority, the user terminal acquires the Bluetooth address and the unique matching identifier of the power terminal, and the unique matching identifier is generated by matching the user terminal and the power terminal. It is judged whether the Bluetooth address is a legal address. In the case that the Bluetooth address is a legal address, the user terminal sends a device interconnection request and a unique matching identifier to the power terminal. The present disclosure improves the security of device interconnection by judging the legality of the Bluetooth address. In addition, the unique matching identifier is generated according to the terminal information of the user terminal and the power terminal, and plays a role in identity recognition in the process of device interconnection. Therefore, the device interconnection method solves the technical problem that identity recognition cannot be completed synchronously while device interconnection is being performed.

[0136] Based on the above embodiment, in another embodiment provided by the present disclosure, the above-mentioned device interconnection method can further include:

[0137] In the case that the user terminal and the power terminal complete device interconnection, an operation request is sent to the power server;

[0138] A target operation instruction sent by the power server is received; the target operation instruction is generated according to the operation request and the operation authority of the user terminal;

[0139] The target operation instruction is sent to the power terminal.

[0140] In the embodiment, when the user terminal and the power terminal complete the device interconnection, the user terminal can send an operation request to the power server and receive a target operation instruction generated by the power server. The target operation instruction can be generated according to the operation request and the permission of the user terminal on the target terminal information or the target operation method in the power terminal.

[0141] For example, if the permission of the user terminal can only view the database table A and the database table B of the power terminal, and cannot view the remaining database tables, the target terminal information is the database table A and the database table B.

[0142] If the permission of the user terminal can only perform the viewing operation on the database table A and the database table B of the power terminal, and cannot perform the modification or deletion operation, the target operation method is viewing.

[0143] In an optional manner, the permission scope information can be embodied on the URL address of the target operation instruction, so as to control and limit according to the access address content of the target operation instruction. The manner of embodying the permission scope information on the URL address of the target operation instruction can include adding the suffix corresponding to the permission scope on the URL address, or adding the pointing information on the URL address.

[0144] The user terminal receives the target operation instruction and sends it to the power terminal.

[0145] After the power terminal receives the instruction, the corresponding operation is performed according to the instruction content.

[0146] In an optional manner, after the power terminal performs the operation, the feedback information or the confirmation signal can be sent to the user terminal to ensure the completion of the operation and the feedback of the result.

[0147] Based on this, on the basis of the device interconnection, the user terminal can generate the corresponding target operation instruction by sending the operation request to the power server, and then transmit the target operation instruction to the power terminal, so as to realize the control and operation on the data of the power terminal.

[0148] Based on the above embodiment, in another embodiment provided by the present disclosure, the above device interconnection method can further include:

[0149] The device interconnection request and the terminal information corresponding to the user terminal are sent to the power server. The terminal information is used to determine whether the user terminal has the communication permission to interconnect with the power terminal.

[0150] In the case where the unique matching identifier sent by the power server is received, it is determined that the user terminal has the communication permission.

[0151] In the embodiment, after the power server receives the device interconnection request and the terminal information of the user terminal, the power server can perform communication permission judgment, which involves verifying the identity, permission and legality of the user terminal. The terminal information can include a unique identifier, a certificate or other identity verification information of the user terminal, for the power server to perform permission judgment. Through verification and comparison of the terminal information, the power server can determine whether the user terminal has the communication permission to interconnect with the power terminal.

[0152] In the case where the user terminal has the communication permission, the Bluetooth address and the unique matching identifier of the power terminal can be obtained through the following steps:

[0153] The user terminal and the power terminal can establish a secure communication connection through the Bluetooth protocol.

[0154] After the secure connection is established, the user terminal can perform communication negotiation with the power terminal to obtain the Bluetooth address and the unique matching identifier of the power terminal.

[0155] The power terminal can perform authorization verification on the user terminal to ensure that only the user terminal with legal permission can obtain the Bluetooth address and the unique matching identifier.

[0156] Based on this, the power server judges the communication permission of the user terminal by verifying the terminal information, and in the case where the user terminal has the communication permission, the Bluetooth address and the unique matching identifier of the power terminal are obtained, so as to ensure that only the user terminal with legal permission can interconnect with the power terminal and obtain the required Bluetooth address and unique matching identifier.

[0157] Based on the above embodiment, in another embodiment provided by the present disclosure, a device interconnection method applied to a system to which a user terminal belongs is also provided, which can include:

[0158] Obtain the locally pre-stored Bluetooth address;

[0159] Determine whether the obtained Bluetooth address is consistent with the pre-stored Bluetooth address;

[0160] In the case where the obtained Bluetooth address is consistent with the pre-stored Bluetooth address, determine that the Bluetooth address is a legal address.

[0161] In the embodiment, the system to which the user terminal belongs can find the target Bluetooth address corresponding to the power terminal in the database, compare the Bluetooth address with the target Bluetooth address, and if they are consistent, it means that the power terminal is real and correct, and the subsequent secure connection operation can be performed.

[0162] Based on this, the system to which the user terminal belongs acquires the target Bluetooth address of the power terminal from the database of the system, and judges the consistency of the Bluetooth address, so as to determine the legitimacy of the Bluetooth address. Such a scheme can ensure that the user terminal is interconnected only with the power terminal having a legitimate Bluetooth address, and improve the security and reliability of the system.

[0163] Based on the above embodiment, in another embodiment provided by the present disclosure, a device interconnection method applied to a power terminal is further provided, which can include:

[0164] In the case of receiving the device interconnection request issued by the user terminal, the Bluetooth address of the power terminal is sent to the user terminal;

[0165] In the case of receiving the unique matching identifier, the received unique matching identifier is compared with the pre-stored unique matching identifier;

[0166] In the case that the received unique matching identifier and the pre-stored unique matching identifier are consistent, the interconnection between the user terminal and the power terminal is established.

[0167] In the embodiment, after receiving the device interconnection request, the power terminal can send its own Bluetooth address to the user terminal for subsequent device interconnection. During the transmission of the Bluetooth address, an encrypted communication protocol can be used to protect the confidentiality and integrity of the Bluetooth address.

[0168] The power terminal can pre-acquire the target unique matching identifier from the power server. After receiving the unique matching identifier sent by the user terminal, the power terminal can compare the received unique matching identifier with the pre-stored target unique matching identifier. In the case that the unique matching identifiers are consistent, the power terminal can perform the device interconnection operation with the user terminal.

[0169] Based on this, when receiving the device interconnection request, the power terminal sends its own Bluetooth address to the user terminal, and verifies the legitimacy of the unique matching identifier during the device interconnection process. In the case that the unique matching identifier is confirmed to be legitimate and consistent, the device interconnection operation is performed. Such a scheme can ensure that the interconnection operation between devices is performed in a safe and reliable environment, and improves the security and reliability of the system.

[0170] Based on the above embodiment, in another embodiment provided by the present disclosure, a device interconnection method applied to a power server is further provided, which can include:

[0171] In the case of receiving the device interconnection request issued by the user terminal, the power server acquires the terminal information corresponding to the user terminal, and judges whether the user terminal has communication permission according to the terminal information corresponding to the user terminal;

[0172] In the case that the user terminal has the communication permission, the power server performs matching processing on the user terminal and the power terminal, and generates a unique matching identifier;

[0173] The power server sends the unique matching identifier and the Bluetooth address corresponding to the power terminal to the user terminal.

[0174] In the embodiment, after receiving the device interconnection request of the user terminal, the power server can obtain the terminal information corresponding to the user terminal from a secure authentication server or an identity management system. The terminal information can include a unique identifier, a certificate or other identity verification information of the user terminal. The power server can determine whether the user terminal has the communication permission according to the terminal information, to ensure that only the user terminal with the legal permission can perform the device interconnection.

[0175] In the case that the user terminal has the communication permission, the power server can perform matching processing on the user terminal and the power terminal, and generate a unique matching identifier. The relevant information of the user terminal and the power terminal can be processed by an encryption algorithm to generate the unique matching identifier.

[0176] The power server can send the generated unique matching identifier and the Bluetooth address corresponding to the power terminal to the user terminal. After receiving the unique matching identifier and the Bluetooth address corresponding to the power terminal, the user terminal can complete the device interconnection operation with the power terminal according to the information.

[0177] Based on this, the power server obtains the terminal information corresponding to the user terminal and determines the communication permission. In the case that the user terminal has the communication permission, the power server generates a unique matching identifier and sends it to the user terminal together with the Bluetooth address of the power terminal, and finally completes the device interconnection operation. The unique matching identifier is generated according to the terminal information of the user terminal and the power terminal, and plays a role of identity recognition in the device interconnection process. Therefore, the device interconnection method solves the technical problem that the identity recognition cannot be completed synchronously while the device interconnection is performed.

[0178] Based on the above embodiment, in another embodiment provided by the present disclosure, the above determining whether the user terminal has the communication permission according to the terminal information corresponding to the user terminal can include:

[0179] Obtaining target identification information in the terminal information corresponding to the user terminal;

[0180] Traversing the identification information corresponding to the terminal information of each of a plurality of user terminals in the power server;

[0181] Respectively obtaining the similarity between the target identification information and the identification information corresponding to the terminal information of each of the plurality of user terminals;

[0182] In the case that the similarity is greater than a threshold value, it is determined that the user terminal has the communication permission.

[0183] In an embodiment, the power server can obtain target identification information in terminal information corresponding to the user terminal after receiving the device interconnection request of the user terminal. The target identification information can be user information associated with the user terminal, or an MD5 conversion code of the terminal information. The terminal information can include device SN number, geographic location, ICCID, IP address, terminal manufacturer, and terminal model, etc., and the terminal information can uniquely identify a mobile terminal or a terminal belonging thereto.

[0184] The power server can traverse the terminal information of a plurality of user terminals stored in its database, and obtain the identification information in the terminal information of each user terminal. Then, the similarity between the target identification information and the identification information of each user terminal is compared to determine. The similarity can be calculated using a suitable algorithm (such as a string similarity algorithm).

[0185] If the similarity is greater than a set threshold, the power server can determine that the user terminal has communication permission. The threshold can be adjusted according to specific requirements and system security requirements. If the similarity is lower than the threshold, the device interconnection request of the user terminal can be rejected.

[0186] Therefore, the power server determines whether the user terminal has communication permission by obtaining the target identification information in the terminal information corresponding to the user terminal, and comparing the similarity of the terminal information of a plurality of user terminals. This scheme can determine the legitimacy of the user terminal according to the similarity of the identification information, and improve the security and credibility in the device interconnection process.

[0187] One or more technical solutions provided in the exemplary embodiments of the present disclosure make the connection between the mobile terminal and the power server only need to communicate through the Bluetooth module, without the need to pass through the network or other external devices, thereby saving time and resources, and improving the communication efficiency and convenience. At the same time, the method does not need the user to input the password or other information, but only needs the user to provide the login username, which not only simplifies the operation process, but also improves the safety factor in the device interconnection process.

[0188] Therefore, the device interconnection method provided in the exemplary embodiments of the present disclosure can effectively verify the connection request of the mobile terminal and the power server or the terminal belonging thereto, and improve the security and reliability of the power server.

[0189] The above mainly introduces the scheme provided by the exemplary embodiments of the present disclosure. It can be understood that, in order to realize the above functions, the electronic device contains the hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be realized in the form of hardware or the combination of hardware and computer software. Whether a certain function is realized in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure.

[0190] The exemplary embodiments of the present disclosure can divide the functional units of the electronic device according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing module. The above integrated module can be realized in the form of hardware or software functional module. It should be noted that the division of the module in the exemplary embodiments of the present disclosure is illustrative, and is only a logical functional division. When actually implemented, there can be another division manner.

[0191] In the case of dividing each functional module according to each function, the exemplary embodiments of the present disclosure provide a device interconnection apparatus, which can be a server or a chip applied to a server. Figure 4 The functional module schematic diagram of the device interconnection apparatus provided by an exemplary embodiment of the present disclosure is shown in FIG. 4. As shown in the figure, the device interconnection apparatus 400 can be applied to a user terminal, which includes: Figure 4

[0192] The data acquisition module 410 is configured to acquire the Bluetooth address and the unique matching identifier of the power terminal to be interconnected in the case that the user terminal has communication authority; the unique matching identifier is generated in advance according to the terminal information corresponding to the user terminal and the power terminal respectively;

[0193] The data processing module 420 is configured to send the device interconnection request and the unique matching identifier to the power terminal in the case that the Bluetooth address is a legal address, so that the power terminal completes device interconnection in the case that the device interconnection request and the unique matching identifier are received.

[0194] ​In a further embodiment provided by the present disclosure, the data processing module 420 is further configured to, in a case where the user terminal and the power terminal complete device interconnection, send an operation request to a power server, receive a target operation instruction sent by the power server, wherein the target operation instruction is generated according to the operation request and an operation permission of the user terminal, and send the target operation instruction to the power terminal.

[0195] In a further embodiment provided by the present disclosure, the data processing module 420 is further configured to send a device interconnection request and terminal information corresponding to the user terminal to a power server, wherein the terminal information is used to determine whether the user terminal has a communication permission for interconnection with the power terminal, and in a case where the unique matching identifier sent by the power server is received, it is determined that the user terminal has the communication permission.

[0196] The exemplary embodiments of the present disclosure further provide a device interconnection apparatus, which can be applied to a system to which a user terminal belongs, comprising:

[0197] The data processing module is configured to acquire the locally pre-stored Bluetooth address by the data acquisition module.

[0198] The data processing module is further configured to determine whether the acquired Bluetooth address is consistent with the pre-stored Bluetooth address.

[0199] The data processing module is further configured to, in a case where the acquired Bluetooth address is consistent with the pre-stored Bluetooth address, determine that the Bluetooth address is a legal address.

[0200] The exemplary embodiments of the present disclosure further provide a device interconnection apparatus, which can be applied to a power terminal, comprising:

[0201] The data acquisition module is configured to, in a case where a device interconnection request is received from a user terminal, send a Bluetooth address of the power terminal to the user terminal.

[0202] The data processing module is configured to, in a case where a unique matching identifier is received, compare the received unique matching identifier with a pre-stored unique matching identifier.

[0203] The data processing module is further configured to, in a case where the received unique matching identifier is consistent with the pre-stored unique matching identifier, establish interconnection between the user terminal and the power terminal.

[0204] The exemplary embodiments of the present disclosure further provide a device interconnection apparatus, which can be applied to a power server, comprising:

[0205] The data acquisition module is configured to, in response to receiving a device interconnection request sent by a user terminal, acquire terminal information corresponding to the user terminal, and determine whether the user terminal has communication permission according to the terminal information corresponding to the user terminal.

[0206] The data processing module is configured to, in response to the user terminal having communication permission, perform matching processing on the user terminal and a power terminal, and generate a unique matching identifier.

[0207] The data processing module is further configured to send the unique matching identifier and a Bluetooth address corresponding to the power terminal to the user terminal.

[0208] In another embodiment provided by the present disclosure, the data processing module is further configured to acquire target identifier information in the terminal information corresponding to the user terminal, traverse identifier information corresponding to terminal information of a plurality of user terminals in the power server, respectively acquire similarity between the target identifier information and the identifier information corresponding to the terminal information of the plurality of user terminals, and determine that the user terminal has communication permission in response to the similarity being greater than a threshold.

[0209] Based on the above-mentioned embodiments, the present disclosure further provides a device interconnection system, which comprises a user terminal, a power terminal, a power server, and a system to which the user terminal belongs, and the system comprises:

[0210] The user terminal sends a device interconnection request to the power server.

[0211] The power server acquires terminal information corresponding to the user terminal in response to receiving a device interconnection request sent by the user terminal, and determines whether the user terminal has communication permission according to the terminal information corresponding to the user terminal.

[0212] The power server performs matching processing on the user terminal and the power terminal in response to the user terminal having communication permission, and generates a unique matching identifier.

[0213] The power server sends the unique matching identifier and a Bluetooth address corresponding to the power terminal to the user terminal.

[0214] The user terminal acquires the unique matching identifier and the Bluetooth address of the power terminal, and sends the Bluetooth address of the power terminal to the system to which the user terminal belongs.

[0215] The system to which the user terminal belongs determines whether the Bluetooth address is a legal address.

[0216] If the Bluetooth address is a valid address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal;

[0217] Upon receiving a device interconnection request from a user terminal, the power terminal establishes an interconnection with the user terminal based on the unique matching identifier.

[0218] Figure 5 This is a schematic block diagram of a chip provided as an example of this disclosure. Figure 5 As shown, the chip 500 includes one or more (including two) processors 501 and a communication interface 502. The communication interface 502 can support the server in performing the data transmission and reception steps in the above method, and the processor 501 can support the server in performing the data processing steps in the above method.

[0219] Optional, such as Figure 5 As shown, the chip 500 also includes a memory 503, which may include read-only memory and random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (NVRAM).

[0220] In some implementations, such as Figure 5 As shown, processor 501 executes corresponding operations by calling operation instructions stored in memory (which may be stored in the operating system). Processor 501 controls the processing operations of any terminal device; the processor can also be called a central processing unit (CPU). Memory 503 may include read-only memory and random access memory, and provides instructions and data to the processor. A portion of memory 503 may also include NVRAM. For example, in applications, memory, communication interfaces, and other components are coupled together via a bus system, which may include, in addition to a data bus, a power bus, a control bus, and a status signal bus, etc. However, for clarity, in... Figure 5 The general designated all buses as Bus System 504.

[0221] The method disclosed in the embodiments of the present disclosure can be applied to a processor or implemented by the processor. The processor can be an integrated circuit chip having a signal processing capability. In the implementation process, the steps of the above method can be completed by the integrated logic electric circuit in the processor or the instruction form of software. The processor can be a general processor, a digital signal processor (DSP), an ASIC (Application-Specific Integrated Circuit), a FPGA (field-programmable gate array) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as a hardware code processor for execution, or a combination of hardware and software modules in the code processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, or other mature storage medium in the art. The storage medium is located in the storage, and the processor reads the information in the storage and combines the hardware to complete the steps of the above method.

[0222] The exemplary embodiments of the present disclosure further provide an electronic device, including at least one processor, and a memory connected with the at least one processor in communication. The memory stores a computer program capable of being executed by the at least one processor, and the computer program, when executed by the at least one processor, is configured to cause the electronic device to perform the method according to the embodiments of the present disclosure.

[0223] The exemplary embodiments of the present disclosure further provide a non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is configured to cause the computer to perform the method according to the embodiments of the present disclosure.

[0224] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is configured to cause the computer to perform the method according to the embodiments of the present disclosure.

[0225] Figure 6The present disclosure provides an exemplary structural block diagram of an electronic device. The structural block diagram of an electronic device 600 that can serve as a server or client of the present disclosure is now described, and it is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0226] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. The RAM 603 may also store various programs and data required for the operation of the electronic device 600. The computing unit 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0227] Multiple components in electronic device 600 are connected to I / O interface 605, including: input unit 606, output unit 607, storage unit 608, and communication unit 609. Input unit 606 can be any type of device capable of inputting information to electronic device 600. Input unit 606 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device. Output unit 607 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 608 may include, but is not limited to, disks and optical discs. Communication unit 609 allows electronic device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth™ devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.

[0228] The computing unit 601 can be various general purpose and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs various methods and processes described above. Each of the methods described above can be implemented as a computer software program tangibly embodied in a machine readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 600 via the ROM 602 and / or the communication unit 609.

[0229] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a function / operation specified in the flowchart and / or block diagram. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.

[0230] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0231] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus and / or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal that can be used to provide machine instructions and / or data to a programmable processor.

[0232] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0233] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0234] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

[0235] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer programs or instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present disclosure are performed. The computer can be a general purpose computer, a special purpose computer, a computer network, a terminal, user equipment or other programmable apparatus. The computer programs or instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer programs or instructions can be transferred from one website site, computer, server or data center to another website site, computer, server or data center through wired or wireless manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center and the like integrated with one or more available media. The available media can be a magnetic medium, for example, a floppy disk, a hard disk, a magnetic tape; or an optical medium, for example, a digital video disc (Digital video disc, DVD); or a semiconductor medium, for example, a solid state drive (solid state drive, SSD).

[0236] Although the present disclosure is described in conjunction with specific features and embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art in light of the foregoing description. Accordingly, it is intended to embrace all alternatives, modifications and variations that fall within the scope of the present disclosure. Obviously, various modifications and changes are possible in the present disclosure without departing from the spirit and scope of the present disclosure. Accordingly, the present disclosure intends to include all such modifications and changes in the scope of the present disclosure. Obviously, those skilled in the art can make various modifications and changes to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and changes of the present disclosure fall within the scope of the claims of the present disclosure and their equivalent technologies, the present disclosure also intends to include these modifications and changes.

Claims

1. A method of device interconnection, characterized by, The method is applied to a user terminal, and the method comprises: sending a device interconnection request and terminal information corresponding to the user terminal to a power server; the terminal information is used to determine whether the user terminal has communication permission for interconnection with a power terminal; in the case that a unique matching identifier sent by the power server is received, determining that the user terminal has communication permission; in the case that the user terminal has communication permission, obtaining a Bluetooth address and a unique matching identifier of a power terminal to be interconnected; the unique matching identifier is generated in advance according to terminal information corresponding to the user terminal and the power terminal respectively; in the case that the Bluetooth address is a legal address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal, so that the power terminal completes device interconnection in the case that the device interconnection request and the unique matching identifier are received.

2. The method of claim 1, wherein, The method further comprises: in the case that the user terminal and the power terminal complete device interconnection, sending an operation request to a power server; receiving a target operation instruction sent by the power server; the target operation instruction is generated according to the operation request and operation permission of the user terminal; sending the target operation instruction to the power terminal.

3. A method of interconnecting devices, characterized by, The method is applied to a system to which a user terminal belongs, and the method comprises: obtaining a locally pre-stored Bluetooth address; determining whether the obtained Bluetooth address is consistent with the pre-stored Bluetooth address; in the case that the obtained Bluetooth address is consistent with the pre-stored Bluetooth address, determining that the Bluetooth address is a legal address; wherein the Bluetooth address is obtained by the user terminal after having communication permission and is sent to the system to which the user terminal belongs; the user terminal sends a device interconnection request and terminal information corresponding to the user terminal to a power server, and determines that the user terminal has communication permission in the case that a unique matching identifier sent by the power server is received; the terminal information is used to determine whether the user terminal has communication permission for interconnection with a power terminal.

4. A method of interconnecting devices, characterized by, The method is applied to a power terminal, and the method comprises: in the case that a device interconnection request issued by a user terminal is received, sending a Bluetooth address of the power terminal to the user terminal; in the case that a unique matching identifier is received, comparing the received unique matching identifier with a pre-stored unique matching identifier; in the case that the received unique matching identifier is consistent with the pre-stored unique matching identifier, establishing interconnection between the user terminal and the power terminal; wherein the unique matching identifier is sent by the user terminal after having communication permission; the user terminal sends a device interconnection request and terminal information corresponding to the user terminal to a power server, and determines that the user terminal has communication permission in the case that a unique matching identifier sent by the power server is received; the terminal information is used to determine whether the user terminal has communication permission for interconnection with the power terminal.

5. A method of interconnecting devices, characterized by, The method is applied to a power server, and the method comprises: In a case that the device interconnection request is received from the user terminal, the power server acquires terminal information corresponding to the user terminal, and determines whether the user terminal has communication permission according to the terminal information corresponding to the user terminal; In a case that the user terminal has the communication permission, the power server performs matching processing on the user terminal and the power terminal, and generates a unique matching identifier; The power server sends the unique matching identifier and the Bluetooth address corresponding to the power terminal to the user terminal, so that the user terminal acquires the Bluetooth address of the power terminal to be interconnected and the unique matching identifier in a case that the user terminal has the communication permission, the unique matching identifier is generated in advance according to the terminal information corresponding to the user terminal and the power terminal respectively, and in a case that the Bluetooth address is a legal address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal, so that the power terminal completes the device interconnection in a case that the device interconnection request and the unique matching identifier are received.

6. The method of claim 5, wherein, The determination whether the user terminal has the communication permission according to the terminal information corresponding to the user terminal comprises: Acquiring target identifier information in the terminal information corresponding to the user terminal; Traversing identifier information corresponding to terminal information of a plurality of user terminals in the power server respectively; Respectively acquiring similarity between the target identifier information and the identifier information corresponding to the terminal information of the plurality of user terminals respectively; In a case that the similarity is greater than a threshold value, it is determined that the user terminal has the communication permission.

7. An apparatus interconnect device, comprising: The device is applied to a user terminal, and the device comprises: A data acquisition module configured to send a device interconnection request and terminal information corresponding to the user terminal to a power server, the terminal information being used to determine whether the user terminal has communication permission for interconnection with a power terminal, in a case that a unique matching identifier sent by the power server is received, it is determined that the user terminal has the communication permission, in a case that the user terminal has the communication permission, a Bluetooth address and a unique matching identifier of a power terminal to be interconnected are acquired, the unique matching identifier being generated in advance according to terminal information corresponding to the user terminal and the power terminal respectively; A data processing module configured to, in a case that the Bluetooth address is a legal address, send a device interconnection request and the unique matching identifier to the power terminal by the user terminal, so that the power terminal completes the device interconnection in a case that the device interconnection request and the unique matching identifier are received.

8. An apparatus interconnect device, comprising: The device is applied to a system to which a user terminal belongs, and the device comprises: A data acquisition module configured to acquire a locally pre-stored Bluetooth address; A data processing module configured to determine whether the acquired Bluetooth address is consistent with the pre-stored Bluetooth address; The data processing module is further configured to determine that the Bluetooth address is a legal address when the acquired Bluetooth address is consistent with the pre-stored Bluetooth address; the Bluetooth address is acquired by the user terminal after the user terminal has the communication permission and is sent to a system to which the user terminal belongs; the user terminal sends a device interconnection request and terminal information corresponding to the user terminal to the power server, and determines that the user terminal has the communication permission when a unique matching identifier sent by the power server is received; and the terminal information is used to determine whether the user terminal has the communication permission for interconnecting with the power terminal.

9. An apparatus interconnect device, comprising: The device is applied to a power terminal, and the device comprises: a data acquisition module configured to send a Bluetooth address of the power terminal to the user terminal when a device interconnection request sent by the user terminal is received; a data processing module configured to compare a received unique matching identifier with a pre-stored unique matching identifier when the unique matching identifier is received; The data processing module is further configured to establish interconnection between the user terminal and the power terminal when the received unique matching identifier is consistent with the pre-stored unique matching identifier; the unique matching identifier is sent by the user terminal after the user terminal has the communication permission, the user terminal sends a device interconnection request and terminal information corresponding to the user terminal to the power server, and determines that the user terminal has the communication permission when a unique matching identifier sent by the power server is received; and the terminal information is used to determine whether the user terminal has the communication permission for interconnecting with the power terminal.

10. An apparatus interconnect device, comprising: The device is applied to a power server, and the device comprises: a data acquisition module configured to acquire terminal information corresponding to the user terminal according to the terminal information corresponding to the user terminal when a device interconnection request sent by the user terminal is received, and determine whether the user terminal has the communication permission; a data processing module configured to perform matching processing on the user terminal and the power terminal to generate a unique matching identifier when the user terminal has the communication permission; The data processing module is further configured to send the unique matching identifier and a Bluetooth address corresponding to the power terminal to the user terminal by the power server, so that the user terminal acquires the Bluetooth address of the power terminal to be interconnected and the unique matching identifier when the user terminal has the communication permission; the unique matching identifier is pre-generated according to terminal information corresponding to the user terminal and the power terminal respectively; and the user terminal sends a device interconnection request and the unique matching identifier to the power terminal when the Bluetooth address is a legal address, so that the power terminal completes device interconnection when the device interconnection request and the unique matching identifier are received.

11. A device-interaction system characterized by comprising: The device interconnection system comprises a user terminal, a power terminal, a power server and a system to which the user terminal belongs, and the system comprises: The user terminal sends a device interconnection request to the power server; The power server acquires terminal information corresponding to the user terminal upon receiving a device interconnection request from the user terminal, and determines whether the user terminal has communication authority according to the terminal information corresponding to the user terminal; In the case where the user terminal has communication authority, the power server performs matching processing on the user terminal and the power terminal, and generates a unique matching identifier; The power server sends the unique matching identifier and the Bluetooth address corresponding to the power terminal to the user terminal; The user terminal acquires the unique matching identifier and the Bluetooth address of the power terminal, and sends the Bluetooth address of the power terminal to the system to which the user terminal belongs; The system to which the user terminal belongs determines whether the Bluetooth address is a legal address; In the case where the Bluetooth address is a legal address, the user terminal sends a device interconnection request and the unique matching identifier to the power terminal; The power terminal establishes interconnection with the user terminal according to the unique matching identifier upon receiving a device interconnection request from the user terminal.

12. An electronic device, comprising: Comprise: At least one processor; Memory for storing instructions executable by the at least one processor; Wherein the at least one processor is configured to execute the instructions to implement the steps of the method of any one of claims 1-2.

13. A computer program product, characterised in that, The computer program product comprises a computer program which, when executed by a processor, implements the method of any one of claims 1-2.

Citation Information

Patent Citations

  • Bluetooth connection method and terminal

    CN109417758A

  • Bluetooth connection method and terminal

    US20190253857A1