Equipment connection method and device, equipment, readable storage medium and program product

By performing dual verification of the device identification address and connection parameters before connecting to a smart device, the legitimacy of the target device is ensured, solving the problem of counterfeit devices in smart device connections and improving the reliability and security of the connection.

CN121664847APending Publication Date: 2026-03-13SHANGHAI FLYCO ELECTRICAL APPLIANCE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202512056285.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In existing technologies, it is impossible to determine whether a device to be connected is a counterfeit device when connecting to a smart device, resulting in low device connection reliability and a high risk of user information leakage.

Method used

Before connecting, obtain the target device's device identification address and connection parameters. Verify the address and parameters using the identification verification content and connection verification parameters to ensure the device's legitimacy. Connect only after successful verification.

Benefits of technology

It improves the reliability of device connections, prevents unauthorized device connections, and reduces the risk of information leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121664847A_ABST
    Figure CN121664847A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment connection method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the steps that after a connection request is sent to target equipment to be connected, an equipment identification address and equipment connection parameters returned by the target equipment are acquired; on the basis of the device information of the target device, corresponding verification content is obtained, and the verification content comprises identification verification content matched with the device information and connection verification parameters; performing address verification on the device identification address based on the identification verification content, and performing parameter verification on the device connection parameter based on the connection verification parameter; determining a device verification result of the target device based on the address verification result and the parameter verification result; and when the device verification result indicates that the target device is the legal device, the target device is connected, so that the reliability of device connection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a device connection method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology

[0002] With the rapid development of IoT communication and computer technologies, smart home appliances that support multi-device interconnection have emerged. Nowadays, smart devices are only released to the market after automated production and tooling verification. Once purchased, users need to connect their devices to their mobile devices to control them and check their status.

[0003] In related technologies, when connecting smart devices, it is usually necessary to use Bluetooth to search for smart devices that are already connected to the user terminal, and then directly connect the found smart devices to the user terminal. However, these technologies cannot determine whether the smart device to be connected is a counterfeit device. If it is a counterfeit device, it can lead to the leakage of the user's relevant information, thus resulting in low device connection reliability. Summary of the Invention

[0004] Therefore, it is necessary to provide a device connection method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the reliability of device connection in response to the above-mentioned technical problems.

[0005] In a first aspect, this application provides a device connection method, including:

[0006] After sending a connection request to the target device to be connected, obtain the device identifier address and device connection parameters returned by the target device;

[0007] Based on the device information of the target device, obtain the corresponding verification content, which includes the identifier verification content and connection verification parameters matched by the device information;

[0008] Based on the identification verification content, the device identification address is verified, and based on the connection verification parameters, the device connection parameters are verified.

[0009] Based on the address verification results and parameter verification results, the device verification result of the target device is determined;

[0010] If the device verification result indicates that the target device is a legitimate device, then connect to the target device.

[0011] Secondly, this application also provides a device connection apparatus, comprising:

[0012] The data acquisition module is used to acquire the device identifier address and device connection parameters returned by the target device after sending a connection request to the target device to be connected;

[0013] The content acquisition module is used to acquire corresponding verification content based on the device information of the target device. The verification content includes the identifier verification content matched by the device information and the connection verification parameters.

[0014] The data verification module is used to perform address verification on the device identifier address based on the identifier verification content, and to perform parameter verification on the device connection parameters based on the connection verification parameters;

[0015] The result determination module is used to determine the device verification result of the target device based on the address verification result and the parameter verification result;

[0016] The device connection module is used to connect to the target device when the device verification result indicates that the target device is a legitimate device.

[0017] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0018] After sending a connection request to the target device to be connected, obtain the device identifier address and device connection parameters returned by the target device;

[0019] Based on the device information of the target device, obtain the corresponding verification content, which includes the identifier verification content and connection verification parameters matched by the device information;

[0020] Based on the identification verification content, the device identification address is verified, and based on the connection verification parameters, the device connection parameters are verified.

[0021] Based on the address verification results and parameter verification results, the device verification result of the target device is determined;

[0022] If the device verification result indicates that the target device is a legitimate device, then connect to the target device.

[0023] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0024] After sending a connection request to the target device to be connected, obtain the device identifier address and device connection parameters returned by the target device;

[0025] Based on the device information of the target device, obtain the corresponding verification content, which includes the identifier verification content and connection verification parameters matched by the device information;

[0026] Based on the identification verification content, the device identification address is verified, and based on the connection verification parameters, the device connection parameters are verified.

[0027] Based on the address verification results and parameter verification results, the device verification result of the target device is determined;

[0028] If the device verification result indicates that the target device is a legitimate device, then connect to the target device.

[0029] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0030] After sending a connection request to the target device to be connected, obtain the device identifier address and device connection parameters returned by the target device;

[0031] Based on the device information of the target device, obtain the corresponding verification content, which includes the identifier verification content and connection verification parameters matched by the device information;

[0032] Based on the identification verification content, the device identification address is verified, and based on the connection verification parameters, the device connection parameters are verified.

[0033] Based on the address verification results and parameter verification results, the device verification result of the target device is determined;

[0034] If the device verification result indicates that the target device is a legitimate device, then connect to the target device.

[0035] The aforementioned device connection method, apparatus, computer device, computer-readable storage medium, and computer program product, after sending a connection request to the target device (i.e., before the actual connection), first obtain the device identification address and device connection parameters returned by the target device; based on the target device's device information, obtain corresponding verification content, including identification verification content and connection verification parameters matched with the device information; based on the identification verification content, perform address verification on the device identification address to verify the device's legitimacy from an address perspective. Then, based on the connection verification parameters, perform parameter verification on the device connection parameters to verify whether the devices are merged from a connection perspective. Based on the address verification results and parameter verification results corresponding to each dimension, the device verification result of the target device can be accurately determined, enabling an effective and accurate assessment of the target device's legitimacy. Finally, the target device will only be connected if the device verification result indicates that the target device is legitimate, avoiding connection to illegitimate devices, preventing information leakage, and thus improving the reliability of device connections. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is an application environment diagram of the device connection method in one embodiment;

[0038] Figure 2 This is a flowchart illustrating a device connection method in one embodiment;

[0039] Figure 3 This is a schematic diagram illustrating the specific process of device connection in one embodiment;

[0040] Figure 4 This is a structural block diagram of the device connection device in one embodiment;

[0041] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0044] The device connection method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with target device 104 via a network. In some embodiments, after sending a connection request to the target device 104, terminal 102 obtains the device identification address and device connection parameters returned by the target device 104; based on the device information of the target device 104, terminal 102 obtains the corresponding verification content, which includes the identification verification content matched by the device information and the connection verification parameters; based on the identification verification content, terminal 102 performs address verification on the device identification address, and based on the connection verification parameters, performs parameter verification on the device connection parameters; based on the address verification result and the parameter verification result, terminal 102 determines the device verification result of the target device 104; if the device verification result indicates that the target device 104 is a legitimate device, the terminal 102 connects to the target device 104. In some embodiments, terminal 102 may be an object terminal held by a target object using the target device.

[0045] The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart TVs, smart in-vehicle systems, etc. Portable wearable devices can include smartwatches, smart bracelets, etc. The target device 104 can be any electronic device with communication capabilities. Further, the target device 104 can be a smart device, such as an electric shaver, electric toothbrush, etc.

[0046] In one exemplary embodiment, such as Figure 2 As shown, a device connection method is provided, which is applied to Figure 1 Taking the object terminal in the example, the explanation includes the following steps 202 to 210. Wherein:

[0047] Step 202: After sending a connection request to the target device to be connected, obtain the device identifier address and device connection parameters returned by the target device.

[0048] The target device is the smart device to be connected to the terminal, such as an electric toothbrush or an electronic scale. The connection request is the terminal's request to connect to the target device. The device identifier address is the unique hardware identifier of the target device, used to identify the device within a local area network. For example, the device identifier address can be a MAC address (Media Access Control Address). Device connection parameters are parameters used for device connection; these parameters are generated by the tooling terminal during tooling verification of the target device. Different devices have corresponding device connection parameters. These device connection parameters are generated by the tooling terminal after tooling of the target device and sent to the target device for storage.

[0049] Optionally, after the Bluetooth deployed on the target terminal discovers a target device to be connected to, the target terminal sends a connection request to the discovered target device. Upon receiving the connection request, the target device sends its locally stored device identifier address and device connection parameters to the target terminal. For example, after the Bluetooth deployed on the target terminal discovers at least one device near the target terminal, in response to a selection operation of any one of the at least one device, the target terminal designates the selected terminal as the target device and automatically sends a connection request to the target device.

[0050] Step 204: Based on the device information of the target device, obtain the corresponding verification content, which includes the identifier verification content matched with the device information and the connection verification parameters.

[0051] Among them, device information is the information used to obtain the verification content. Device information includes information that can characterize the target device, such as device name, device model, etc.

[0052] Optionally, after sending a connection request, the target terminal also identifies the device information of the target device and generates a content acquisition request and a parameter acquisition request based on the device information. The target terminal sends the content acquisition request to the address distribution party, so that the address distribution party responds to the content acquisition request, obtains the corresponding identification verification content, and returns it to the target terminal. The target terminal also sends the parameter acquisition request to the compliant equipment manufacturer to which the tooling terminal belongs, so that the compliant equipment manufacturer responds to the parameter acquisition request, finds the corresponding connection verification parameters, and returns them to the target terminal. The target terminal determines the verification content based on the identification verification content and connection verification parameters matched with the received device information.

[0053] It's important to note that before launching their manufactured equipment, compliant equipment manufacturers tool the device using a corresponding tooling terminal. During this process, the tooling terminal randomly generates connection verification parameters and, based on these parameters, generates corresponding device connection parameters. These connection parameters are then sent to both the device's database and the compliant equipment manufacturer's database for storage. Alternatively, the connection parameters can be sent to the device itself for storage, while the connection verification parameters are sent to the database for storage. If a non-compliant manufacturer counterfeits the compliant equipment manufacturer's device, the connection verification parameters and device connection parameters generated by the non-compliant manufacturer will not be stored in the compliant equipment manufacturer's database, nor will they be stored in the legitimate devices manufactured by the compliant equipment manufacturer. In other words, neither the compliant equipment manufacturer's devices nor their corresponding database store the connection verification parameters and device connection parameters of the non-compliant manufacturers' devices. Therefore, the legitimacy of a device can be verified based on the connection verification parameters and device connection parameters of either device.

[0054] Step 206: Based on the identification verification content, perform address verification on the device identification address, and based on the connection verification parameters, perform parameter verification on the device connection parameters.

[0055] Address verification verifies the legality of the target device's device identifier address, checking whether it conforms to the address standards of the compliant device manufacturer. This verifies the target device's compliance (i.e., whether it is a legitimate device) from the address perspective. Parameter verification verifies whether the connection verification parameters are produced by the tooling terminal corresponding to the compliant device manufacturer. This verifies the target device's compliance (i.e., whether it is a legitimate device) from the connection perspective.

[0056] Optionally, the target terminal obtains the address compliance conditions from the identifier verification content, verifies whether the device identifier address meets the address compliance conditions, and obtains the address verification result. The address compliance conditions may indicate the range of device identifier addresses or the format of device identifier addresses.

[0057] Optionally, the target terminal generates valid connection parameters based on the connection verification parameters, following the connection parameter generation method of the tooling terminal of the compliant equipment manufacturer. Based on the valid connection parameters and the equipment connection parameters, the parameter verification result is determined.

[0058] In some embodiments, address verification of the device identifier address is performed based on the identifier verification content, including: obtaining the address range from the identifier verification content; verifying whether the device identifier address is within the address range; if the device identifier address is found to be within the address range, obtaining an address verification result indicating that the address verification has passed; if the device identifier address is found to be outside the address range, obtaining an address verification result indicating that the address verification has failed.

[0059] The address range is applied for by the compliant device manufacturer to the Bluetooth SIG. For example, the compliant device manufacturer applies to the Bluetooth SIG for a batch of compliant device identification addresses (MAC addresses) specifically for the compliant device manufacturer's production equipment. The address range is determined based on this batch of compliant device identification addresses, such as the range AE.

[0060] For example, the target terminal obtains the address range from the identifier verification content. It verifies whether the device identifier address is within the address range; if the device identifier address is found to be within the address range, it obtains an address verification result indicating that the address verification has passed; if the device identifier address is found to be outside the address range, it obtains an address verification result indicating that the address verification has failed.

[0061] In other embodiments, the method further includes: after obtaining the device identification address, the target terminal sends the device identification address to the compliant device manufacturer; the compliant device manufacturer verifies whether the device identification address is one of multiple compliant device identification addresses; if so, it generates an address verification result indicating that the address verification has passed; otherwise, it generates an address verification result indicating that the address verification has failed. The compliant device manufacturer then sends the address verification result to the target terminal.

[0062] In the above embodiments, by verifying whether the device identifier address is within the address range, it is possible to effectively verify whether the address is compliant, thereby realizing the legality of the device from the address dimension and ensuring the reliability of the device connection.

[0063] In some embodiments, the device connection parameters are verified based on the connection verification parameters, including: obtaining a baseline connection parameter based on the device identification address and the connection verification parameters using a preset data processing method; comparing the baseline connection parameter and the device connection parameter; obtaining a parameter verification result indicating that the parameter verification has passed if the baseline connection parameter and the device connection parameter are the same; and obtaining a parameter verification result indicating that the parameter verification has failed if the baseline connection parameter and the device connection parameter are different.

[0064] The connection verification parameter can be a random number randomly generated by the tooling terminal, while the baseline connection parameter is a compliant device connection parameter obtained after data processing based on the compliant device identifier address and connection verification parameter. The data processing method refers to the way the device identifier address and connection verification parameter are integrated; for example, the data processing method can be concatenation, or concatenation followed by hash calculation, etc.

[0065] For example, the target terminal combines the device identification address and connection verification parameters according to a preset data processing method to obtain the base connection parameters. For instance, the connection verification parameters are appended to the device identification address to obtain the base connection parameters. Alternatively, after appending the connection verification parameters to the device identification address to obtain the concatenated parameters, the concatenated parameters are hashed to obtain the base connection parameters.

[0066] For example, the target terminal compares whether the reference connection parameters and the device connection parameters are the same; if the reference connection parameters and the device connection parameters are the same, a parameter verification result indicating that the parameter verification has passed is obtained; if the reference connection parameters and the device connection parameters are different, a parameter verification result indicating that the parameter verification has failed is obtained.

[0067] In the above embodiments, a compliant baseline connection parameter is calculated through a preset data processing method, thereby accurately verifying the device connection parameter to achieve legal verification of the device from the connection dimension and ensure the reliability of the device connection.

[0068] In some embodiments, after performing address verification on the device identifier address based on the identifier verification content, the method further includes: if the address verification result indicates that the address verification failed, directly determining the target device as an unqualified device, and the target terminal refusing to connect to the target device. In this way, after address verification failure, parameter verification is unnecessary, saving verification costs and improving verification efficiency.

[0069] Step 208: Based on the address verification result and parameter verification result, determine the device verification result of the target device.

[0070] The device verification result is used to indicate whether the target device is compliant, that is, whether it is a legitimate device.

[0071] In some embodiments, determining the device verification result of the target device based on the address verification result and the parameter verification result includes: obtaining a device verification result indicating that the target device is a legitimate device when the address verification result indicates that the address verification is successful and the parameter verification result indicates that the parameter verification is successful; and obtaining a device verification result indicating that the target device is an illegitimate device when the address verification result indicates that the address verification is unsuccessful, or when the parameter verification result indicates that the parameter verification is unsuccessful.

[0072] For example, when the address verification result indicates that the address verification is successful and the parameter verification result indicates that the parameter verification is successful, the target device is determined to be a legitimate device. When at least one of the address verification result and the parameter verification result indicates that the verification is unsuccessful, the target device is determined to be an illegitimate device.

[0073] In the above embodiments, the legitimacy of the device is verified by both the address dimension and the connection dimension, thereby achieving dual legitimacy verification of the device, avoiding connection to illegitimate devices, preventing information leakage, and thus improving the reliability of device connection.

[0074] Step 210: If the device verification result indicates that the target device is a legitimate device, connect to the target device.

[0075] For example, if the device verification result indicates that the target device is a legitimate device, the target terminal connects to the target device. If the device verification result indicates that the target device is an illegitimate device, the target terminal displays an alarm pop-up window to promptly inform the target device of the connection risk, and in response to the connection rejection trigger operation in the alarm pop-up window, refuses to connect to the target device.

[0076] In the aforementioned device connection method, after sending a connection request to the target device (i.e., before the actual connection), the device identifier address and device connection parameters returned by the target device are first obtained. Based on the target device's device information, corresponding verification content is obtained, including identifier verification content matching the device information and connection verification parameters. Based on the identifier verification content, address verification is performed on the device identifier address to verify the device's legitimacy from an address perspective. Then, based on the connection verification parameters, parameter verification is performed on the device connection parameters to verify whether the devices are merged from a connection perspective. Based on the address verification results and parameter verification results corresponding to different dimensions, the device verification result of the target device can be accurately determined, allowing for an effective and accurate assessment of the target device's legitimacy. Finally, the target device is only connected if the device verification result indicates that the target device is legitimate, avoiding connections to illegitimate devices, preventing information leakage, and thus improving the reliability of the device connection.

[0077] In some embodiments, the method further includes: obtaining the device identifier of the target device; generating a tooling verification result request based on the device identifier and sending it to the tooling terminal, so that the tooling terminal can query the corresponding tooling verification result based on the device identifier; and sending a connection request to the target device to be connected if the tooling verification result returned by the tooling terminal indicates that the tooling verification of the target device has passed.

[0078] Among them, the device identifier is also a type of device information, which can be understood as the device serial number.

[0079] For example, after identifying the target device to be connected, the object terminal generates a tooling verification result request based on the device identifier and sends it to the tooling terminal. The tooling terminal queries the corresponding tooling verification result based on the device identifier; if the tooling verification result returned by the tooling terminal indicates that the tooling verification of the target device has passed, a connection request is sent to the target device to be connected. If the tooling verification result returned by the tooling terminal indicates that the tooling verification of the target device has passed, the object terminal refuses to connect to the target device and the target device cannot be used.

[0080] In the above embodiments, before sending a connection request to the target device, it is first verified whether the target device is a successfully tooled device to ensure the validity of subsequent device connections.

[0081] In some embodiments, the tooling verification step of the target device includes: when multi-dimensional device data of the target device is obtained through the tooling terminal, for each dimension involved in the multi-dimensional device data, the tooling terminal performs data verification on the dimension data belonging to the dimension in the multi-dimensional device data according to the corresponding dimension verification method, and obtains the dimension verification result corresponding to the dimension. If the verification result of each dimension indicates that the verification is passed, it is determined that the target device has passed the tooling verification.

[0082] Among them, multidimensional device data includes at least the device power data in the power dimension, the device voltage data in the voltage dimension, the number of connections in the connection status dimension, and the device identification address data in the address dimension.

[0083] For example, before the target device goes online, during the production phase, after the tooling terminal identifies the target device to be tooled, the tooling terminal obtains multi-dimensional device data of the target device. The tooling terminal obtains device power data in the power dimension, device voltage data in the voltage dimension, connection count in the connection status dimension, and device identifier address in the address dimension from the multi-dimensional device data.

[0084] For example, regarding the power consumption dimension, the tooling terminal verifies whether the corresponding device power consumption data is within the standard power consumption range, thus obtaining the power consumption dimension verification result. If it is within the standard power consumption range, the power consumption dimension verification result is "verification passed"; otherwise, it is "verification failed".

[0085] For example, for the voltage dimension, the tooling terminal verifies whether the corresponding device voltage data is within the voltage standard range, and obtains the voltage dimension verification result. If it is within the voltage standard range, the voltage dimension verification result is "verification passed"; if it is not within the voltage standard range, the voltage dimension verification result is "verification failed".

[0086] For example, for the connectivity status dimension, the tooling terminal verifies whether the corresponding number of connections is a preset number to obtain the connectivity status dimension verification result. The preset number can be 0. If it is, the connectivity status dimension verification result is "verification passed"; otherwise, the connectivity status dimension verification result is "verification failed".

[0087] For example, for the address dimension, the tooling terminal verifies whether the format of the corresponding device identifier address is a preset format. If it is, the address dimension verification result is "verification passed"; otherwise, the address dimension verification result is "verification failed".

[0088] For example, if the verification results for each dimension indicate that the verification has passed, such as the verification results for the power dimension, voltage dimension, connection status dimension, and address dimension all indicating that the verification has passed, then the tooling verification result indicates that the target device has passed the tooling verification. If at least one dimension verification result indicates that the verification has failed, such as at least one verification result for the power dimension, voltage dimension, connection status dimension, and address dimension indicating that the verification has failed, then the tooling verification result indicates that the target device has failed the tooling verification.

[0089] In some embodiments, the method further includes: the tooling terminal sending the tooling verification result to the target device, and the target device displaying the result accordingly. For example, diodes or indicator lights in the target device can be used for display. When tooling is successful (the target device passes tooling verification), all indicator lights are on; when tooling fails (the target device fails tooling verification), the indicator light corresponding to the tooling failure is displayed. Thus, tooling verification personnel can determine the tooling verification result or the reason for tooling failure based on the corresponding display. Further, in the case of tooling failure, the result is returned to the production personnel for resolution. When the target device passes tooling verification, the process is transferred to the next workstation for processing. After all pre-launch verifications are completed, the target device is launched. For example, when the target device fails tooling verification, the result is displayed according to the number of indicator lights on the target device, following display rules (sufficient indicator lights: single indicator light flashes according to error type; insufficient indicator lights: multiple indicator lights flash using binary combination); tooling verification personnel find the reason for tooling failure according to the indicator light lookup table and troubleshoot accordingly.

[0090] In the above embodiments, multi-dimensional device data can be used to perform multi-dimensional tooling verification on the target device, so as to ensure that the production of the device connected to the user terminal is qualified, thereby improving the success rate of device connection.

[0091] In a specific embodiment, such as Figure 3The diagram shown is a schematic representation of the specific process of device connection in one embodiment. Figure 3 The diagram illustrates the production and connection stages that a compliant equipment manufacturer must go through when producing any device. The production stage is the stage of verifying the equipment before it goes live (such as tooling verification), and the connection stage is the stage of connecting the device to the target device after it goes live. The following is an example illustrating the interaction between the tooling terminal (during tooling verification), the target device's terminal, and the target device:

[0092] Step 1: The target equipment enters production mode. The tooling terminal performs tooling verification based on the multi-dimensional equipment data of the target equipment and obtains the tooling verification results.

[0093] Specifically, the tooling terminal acquires multi-dimensional equipment data of the target device. For each dimension involved in the multi-dimensional equipment data, the tooling terminal performs data verification on the dimension data belonging to that dimension according to the corresponding dimension verification method, obtaining the dimension-specific verification result. If the verification result for each dimension indicates that the verification has passed, a tooling verification result indicating that the target device has passed the tooling verification is determined. If at least one dimension verification result indicates that the verification has failed, a tooling verification result indicating that the target device has failed the tooling verification is determined.

[0094] Step 2: The tooling terminal determines whether the tooling was successful based on the tooling verification result. If successful, it sends the tooling to the target device and displays the corresponding message for successful tooling. If unsuccessful, it sends the tooling to the target device and displays the corresponding message for unsuccessful tooling.

[0095] Step 3: When connecting to the target device, the target terminal determines whether the tooling of the target device is successful. If successful, the target terminal performs address verification and connection verification on the target device, obtains the device verification result, and proceeds to Step 4. If unsuccessful, the target terminal cannot connect to the target device. Optionally, after sending a connection request to the target device to be connected, the target terminal obtains the device identifier address and device connection parameters returned by the target device.

[0096] Based on the device information of the target device, obtain the corresponding verification content, which includes the identifier verification content matched with the device information and the connection verification parameters.

[0097] Obtain the address range from the identifier verification content; verify whether the device identifier address is within the address range; if the device identifier address is found to be within the address range, obtain an address verification result indicating that the address verification has passed; if the device identifier address is found to be outside the address range, obtain an address verification result indicating that the address verification has failed.

[0098] Based on the device identification address and connection verification parameters, a preset data processing method is used to obtain the baseline connection parameters; the baseline connection parameters and the device connection parameters are compared; if the baseline connection parameters and the device connection parameters are the same, a parameter verification result indicating that the parameter verification has passed is obtained; if the baseline connection parameters and the device connection parameters are different, a parameter verification result indicating that the parameter verification has failed is obtained.

[0099] If both the address verification result and the parameter verification result indicate that the address verification is successful, a device verification result indicating that the target device is a legitimate device is obtained; if the address verification result indicates that the address verification is unsuccessful, or if the parameter verification result indicates that the parameter verification is unsuccessful, a device verification result indicating that the target device is an illegitimate device is obtained.

[0100] Step 4: The target terminal determines whether the device verification passed based on the device verification result, that is, whether the target device is a legitimate device. If yes, the target terminal connects to the target device; otherwise, the target terminal cannot connect to the target device.

[0101] In this embodiment, after sending a connection request to the target device (i.e., before the actual connection), the device identifier address and device connection parameters returned by the target device are first obtained. Based on the target device's device information, corresponding verification content is obtained, including identifier verification content and connection verification parameters matched with the device information. Based on the identifier verification content, address verification is performed on the device identifier address to verify the device's legitimacy from the address dimension. Then, based on the connection verification parameters, parameter verification is performed on the device connection parameters to verify whether the devices are merged from the connection dimension. Based on the address verification results and parameter verification results corresponding to different dimensions, the device verification result of the target device can be accurately determined, allowing for an effective and accurate assessment of the target device's legitimacy. Finally, the target device is only connected if the device verification result indicates that the target device is legitimate, avoiding connections to illegitimate devices, preventing information leakage, and thus improving the reliability of device connections.

[0102] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0103] Based on the same inventive concept, this application also provides a device connection apparatus for implementing the device connection method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more device connection apparatus embodiments provided below can be found in the limitations of the device connection method described above, and will not be repeated here.

[0104] In one exemplary embodiment, such as Figure 4 As shown, a device connection device 400 is provided, including: a data acquisition module 402, a content acquisition module 404, a data verification module 406, a result determination module 408, and a device connection module 410, wherein:

[0105] The data acquisition module 402 is used to acquire the device identification address and device connection parameters returned by the target device after sending a connection request to the target device to be connected;

[0106] The content acquisition module 404 is used to acquire the corresponding verification content based on the device information of the target device. The verification content includes the identifier verification content matched by the device information and the connection verification parameters.

[0107] The data verification module 406 is used to perform address verification on the device identifier address based on the identifier verification content, and to perform parameter verification on the device connection parameters based on the connection verification parameters.

[0108] The result determination module 408 is used to determine the device verification result of the target device based on the address verification result and the parameter verification result;

[0109] The device connection module 410 is used to connect to the target device when the device verification result indicates that the target device is a legitimate device.

[0110] In some embodiments, the content acquisition module 404 is used to acquire the address range from the identifier verification content; verify whether the device identifier address is within the address range; if the device identifier address is found to be within the address range, obtain an address verification result indicating that the address verification has passed; if the device identifier address is found to be outside the address range, obtain an address verification result indicating that the address verification has failed.

[0111] In some embodiments, the data verification module 406 is used to obtain a baseline connection parameter based on the device identification address and connection verification parameters using a preset data processing method; compare the baseline connection parameter with the device connection parameter; if the baseline connection parameter and the device connection parameter are the same, obtain a parameter verification result indicating that the parameter verification has passed; if the baseline connection parameter and the device connection parameter are different, obtain a parameter verification result indicating that the parameter verification has failed.

[0112] In some embodiments, the result determination module 408 is configured to obtain a device verification result indicating that the target device is a legitimate device when the address verification result indicates that the address verification is successful and the parameter verification result indicates that the parameter verification is successful; and to obtain a device verification result indicating that the target device is an illegitimate device when the address verification result indicates that the address verification is unsuccessful, or when the parameter verification result indicates that the parameter verification is unsuccessful.

[0113] In some embodiments, the apparatus further includes a tooling determination module, configured to obtain the device identifier of the target device; generate a tooling verification result request based on the device identifier and send it to the tooling terminal, so that the tooling terminal can query the corresponding tooling verification result based on the device identifier; and send a connection request to the target device to be connected if the tooling verification result returned by the tooling terminal indicates that the tooling verification of the target device has passed.

[0114] In some embodiments, the apparatus further includes a tooling verification module, which, when multidimensional device data of the target device is obtained through the tooling terminal, verifies the dimension data belonging to the dimension in the multidimensional device data according to the corresponding dimension verification method through the tooling terminal for each dimension involved in the multidimensional device data, obtains the dimension verification result corresponding to the dimension, and determines that the target device has passed the tooling verification when the verification result of each dimension indicates that the verification has passed.

[0115] Each module in the aforementioned device connection apparatus can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0116] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 5 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and databases. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a device connection method.

[0117] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0118] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0119] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0120] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0121] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0122] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0124] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A device connection method, characterized in that, The method includes: After sending a connection request to the target device to be connected, obtain the device identifier address and device connection parameters returned by the target device; Based on the device information of the target device, obtain the corresponding verification content, which includes the identifier verification content and connection verification parameters matched by the device information; Based on the identification verification content, the device identification address is verified, and based on the connection verification parameters, the device connection parameters are verified. Based on the address verification results and parameter verification results, the device verification result of the target device is determined; If the device verification result indicates that the target device is a legitimate device, then connect to the target device.

2. The method according to claim 1, characterized in that, The step of verifying the device identifier address based on the identifier verification content includes: Obtain the address range from the verified identifier content; Verify whether the device identifier address is within the address range; If the device identifier address is found to be within the address range, an address verification result indicating that the address verification has passed is obtained; If the device identifier address is found to be outside the address range, an address verification result indicating that the address verification failed is obtained.

3. The method according to claim 1, characterized in that, The step of verifying the device connection parameters based on the connection verification parameters includes: Based on the device identification address and the connection verification parameters, a baseline connection parameter is obtained using a preset data processing method. Compare the baseline connection parameters with the device connection parameters; When the reference connection parameters are the same as the device connection parameters, a parameter verification result indicating that the parameter verification has passed is obtained; If the reference connection parameters are different from the device connection parameters, a parameter verification result indicating that the parameter verification failed is obtained.

4. The method according to claim 1, characterized in that, The process of determining the device verification result of the target device based on the address verification result and the parameter verification result includes: If the address verification result indicates that the address verification is successful and the parameter verification result indicates that the parameter verification is successful, a device verification result indicating that the target device is a legitimate device is obtained; If the address verification result indicates that the address verification failed, or if the parameter verification result indicates that the parameter verification failed, a device verification result indicating that the target device is an illegitimate device is obtained.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Obtain the device identifier of the target device; Based on the device identifier, a tooling verification result request is generated and sent to the tooling terminal, so that the tooling terminal can query the corresponding tooling verification result based on the device identifier. If the tooling verification result returned by the tooling terminal indicates that the tooling verification of the target device has passed, a connection request is sent to the target device to be connected.

6. The method according to claim 5, characterized in that, The tooling verification step of the target device includes: when the multi-dimensional device data of the target device is obtained through the tooling terminal, for each dimension involved in the multi-dimensional device data, the tooling terminal performs data verification on the dimension data belonging to the dimension in the multi-dimensional device data according to the corresponding dimension verification method, and obtains the dimension verification result corresponding to the dimension. When the verification result of each dimension indicates that the verification is passed, it is determined that the target device has passed the tooling verification.

7. A device connection apparatus, characterized in that, The device includes: The data acquisition module is used to acquire the device identifier address and device connection parameters returned by the target device after sending a connection request to the target device to be connected; The content acquisition module is used to acquire corresponding verification content based on the device information of the target device. The verification content includes the identifier verification content matched by the device information and the connection verification parameters. The data verification module is used to perform address verification on the device identifier address based on the identifier verification content, and to perform parameter verification on the device connection parameters based on the connection verification parameters; The result determination module is used to determine the device verification result of the target device based on the address verification result and the parameter verification result; The device connection module is used to connect to the target device when the device verification result indicates that the target device is a legitimate device.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.