Networking method, device and equipment among devices, and storage medium
By using a fully connected network approach between the master and slave devices, the slave device level is determined and authenticated, which solves the communication problem in the networking between devices, realizes direct networking connection, and ensures the reliability and security of communication between devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 深圳开鸿数字产业发展有限公司
- Filing Date
- 2023-03-24
- Publication Date
- 2026-06-23
AI Technical Summary
In existing technologies, the networking methods between devices have problems such as distance limitations, low security, and excessive communication load, making it impossible to achieve true secure interconnection of everything.
By connecting the master and slave devices through a fully connected network, the level of the slave devices is determined, and manual or automatic authentication methods are selected based on the level to achieve direct networking connection between the devices.
It improves the reliability, stability, and security of communication between devices, reduces reliance on relay devices, and enhances communication efficiency and security.
Smart Images

Figure CN116528208B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method for networking devices, a device for networking devices, a device, and a computer-readable storage medium. Background Technology
[0002] When fifth-generation mobile communication networks, namely 5G networks, began to be applied to communication services, the Internet of Things gradually transformed from a concept into reality, bringing great convenience to people's lives. However, due to differences in networking methods between devices, as well as differences in connection design and related security standards, true secure interconnection of everything is still not possible.
[0003] In existing technologies, connecting different devices typically involves two methods. One is connecting multiple devices to the same gateway, meaning devices can only communicate through this gateway. While this method addresses communication congestion to some extent, it relies excessively on the gateway, thus limiting the distance between devices and offering lower security. The other method is networking based on forwarding devices. This avoids air interface collisions in forwarding paths, theoretically improving communication quality and efficiency. However, it also fails to achieve secure, unrestricted communication between devices, and its excessive reliance on forwarding devices leads to excessive communication load on these devices. Summary of the Invention
[0004] This application provides a networking method, a networking device, a device, and a computer-readable storage medium for inter-device communication, aiming to achieve direct networking connections between different devices and improve the reliability, stability, and security of inter-device communication.
[0005] To achieve the above objectives, this application provides a networking method for devices, wherein the devices include a master device and a slave device, and the master device and the slave device are connected via a fully connected network. The method includes:
[0006] After the primary device and the secondary device discover each other, the level of the secondary device is determined, wherein the level of the primary device is the first level;
[0007] The master device initiates a network formation request to the slave device.
[0008] After receiving the networking request, the secondary device determines the authentication method of the secondary device based on the level corresponding to the secondary device;
[0009] After the secondary device is successfully authenticated through the authentication method, a connection is established between the primary device and the secondary device to realize the networking between the primary device and the secondary device.
[0010] To achieve the above objectives, this application also provides a networking device between devices, the networking device comprising:
[0011] A level determination module is used to determine the level of the secondary device after the primary device and the secondary device discover each other, wherein the level of the primary device is the first level;
[0012] A network request initiation module, which is used to initiate a network request from the master device to the slave device;
[0013] An authentication method determination module is used to determine the authentication method of the secondary device based on the level corresponding to the secondary device after the secondary device receives the networking request.
[0014] A networking module is used to establish a connection between the master device and the slave device after the slave device is authenticated through the authentication method, so as to realize the networking between the master device and the slave device.
[0015] In addition, to achieve the above objectives, this application also provides a device, the device including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement the steps of the device networking method provided in any of the embodiments of this application.
[0016] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement the steps of the device networking method provided in any of the embodiments of this application.
[0017] This application discloses a device networking method, device networking apparatus, equipment, and computer-readable storage medium that can determine the level of a secondary device after the primary and secondary devices discover each other. The primary and secondary devices are connected via a full network connection, and the primary device's level is the first level. Furthermore, the primary device can initiate a network request to the secondary device. After receiving the request, the secondary device determines its authentication method based on its level and then authenticates it. Upon successful authentication, a network connection is established between the primary and secondary devices. The method proposed in this application can achieve direct network connection between different devices without the need for various relay devices, and can improve the reliability, stability, and security of communication between devices. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1a and Figure 1b This is a schematic diagram of a prior art networking method provided in an embodiment of this application;
[0020] Figure 2 This is a schematic diagram illustrating the steps of a networking method between devices provided in an embodiment of this application;
[0021] Figure 3 This is a schematic flowchart of a networking method between devices provided in an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of a fully connected network scenario provided in an embodiment of this application;
[0023] Figure 5 This is a schematic diagram illustrating the steps of a manual authentication sub-device provided in an embodiment of this application;
[0024] Figure 6 This is a schematic diagram illustrating the steps of an automatic authentication sub-device provided in an embodiment of this application;
[0025] Figure 7 This is a schematic diagram illustrating a networking method between devices provided in an embodiment of this application;
[0026] Figure 8 This is a schematic block diagram of a networking device between devices provided in an embodiment of this application;
[0027] Figure 9 This is a schematic block diagram of a device provided in an embodiment of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation. Furthermore, although functional modules are divided in the device diagram, in some cases, a different module division may be used.
[0030] The term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items, as well as all possible combinations, and includes such combinations.
[0031] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0032] To facilitate understanding of the embodiments of this application, some background information related to the embodiments of this application will be briefly explained below.
[0033] Please see Figure 1a and Figure 1b , Figure 1a and Figure 1b This is a schematic diagram illustrating a scenario of a prior art networking method provided in an embodiment of this application. For example... Figure 1a and Figure 1b As shown, existing device networking solutions typically employ two connection modes: tree-structured networks and star-structured networks. These modes are primarily suitable for situations where the master and slave devices are not equivalent, such as a smartphone or other smart terminal as the master device and a dashcam or other smart component as the slave device. In this case, the master device can access and control the relevant functions and resources of the slave device. The need for data exchange between the master and slave devices is minimal; they are independent and do not require interconnection.
[0034] However, the above solutions are not suitable for connecting equivalent devices, and therefore cannot meet user needs. Therefore, it is necessary to propose a networking method for devices that can achieve direct networking connections between different devices.
[0035] Please see Figure 2 as well as Figure 3 , Figure 2 This is a schematic diagram illustrating the steps of a networking method between devices provided in an embodiment of this application; Figure 3 This is a schematic flowchart illustrating a device networking method provided in an embodiment of this application. The device networking method can be applied to devices, including master devices and slave devices, which are connected via a fully connected network.
[0036] like Figure 2 As shown, the networking method between the devices includes steps S11 to S14.
[0037] Step S11: After the primary and secondary devices discover each other, determine the level of the secondary device.
[0038] Among them, the master device is the device that can actively initiate a network formation request, that is, actively establish a connection with the slave device; the slave device is the device that can receive the network formation request initiated by the master device and passively establish a connection with the master device.
[0039] In addition, the main equipment is classified as Level 1.
[0040] It should be noted that this application does not limit the types of devices in the first category, such as mobile phones, tablets, and other smart terminals. That is, the main device can be a mobile phone or tablet.
[0041] Furthermore, a fully connected network essentially connects all inputs and outputs, and features high throughput, high reliability, and low latency. Because the master and slave devices are connected through a fully connected network, they can discover each other and thus determine the slave device's priority.
[0042] Specifically, the mutual discovery process between the master and slave devices mainly consists of two steps: the first step is to send specific packets to other devices to allow them to discover the device; the second step is to receive specific packets sent by other devices to enable the device to discover other devices. During this process, the master and slave devices switch back and forth between two states: listening and sending, allowing the device to both discover itself and be discovered.
[0043] Optionally, after the primary device and the secondary device discover each other, the level of the secondary device is determined, including: after the primary device and the secondary device discover each other, obtaining the device information of the secondary device, wherein the device information includes level information; and determining the level of the secondary device based on the level information.
[0044] Specifically, different levels of devices can be configured with corresponding level information, which may include relevant identification bits, etc., and this application does not limit this. Furthermore, the level information can be included in its corresponding device information. Therefore, after the main device discovers the secondary device, it can obtain the device information of the secondary device, and then obtain the included level information, thereby determining the level corresponding to the secondary device based on the level information.
[0045] It should be noted that this application does not limit the level of the auxiliary equipment. For example, the auxiliary equipment can be of level one, level two, or level three, etc.
[0046] The device types corresponding to the first level are as described above and will not be repeated here to avoid repetition. Devices corresponding to the second level can be smart components such as cameras and dashcams; devices corresponding to the third level can be smart accessories such as sensors.
[0047] Based on this, please refer to Figure 4 , Figure 4 This is a schematic diagram of a fully connected network scenario provided in an embodiment of this application. For example... Figure 4 As shown, the master device and slave devices of different levels are connected through a fully connected network.
[0048] In this network, devices A through F are classified as first-level devices, and their connections are equivalent. Device x is a second-level device, and its connection to device A is non-equivalent. Similarly, devices p and q are third-level devices, and their connections to device F are also non-equivalent. This application enables networking between devices of different levels through a fully connected network.
[0049] In this embodiment, the master device and the slave device are connected via a fully connected method. Furthermore, after the master and slave devices discover each other, the level of the slave device can be determined to enable networking between devices of different levels.
[0050] Step S12: Initiate a network formation request from the master device to the slave device.
[0051] Step S13: After the secondary device receives the networking request, it determines the authentication method of the secondary device based on the level corresponding to the secondary device.
[0052] The master device can initiate a network formation request to the slave device, which then receives the request. The master device further determines its authentication method based on its corresponding level to identify suitable slave devices for network formation.
[0053] Optionally, the authentication method of the secondary device is determined based on the level corresponding to the secondary device, including: when the level of the secondary device is the first level, the authentication method is determined to be manual authentication; when the level of the secondary device is the second level and / or the third level, the authentication method is determined to be automatic authentication.
[0054] Understandably, when there is an equivalent connection between the master device and the slave device, the authentication method of the slave device can be determined to be manual authentication; when there is a non-equivalent connection between the master device and the slave device, the authentication method of the slave device can be determined to be automatic authentication.
[0055] It should be noted that this application does not limit the manual authentication method or the automatic authentication method. For example, the manual authentication method can be to manually enter the password or manually confirm the authentication code, and the automatic authentication method can be to automatically enter the password or automatically confirm the authentication code.
[0056] Optionally, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating the steps of a manual authentication sub-device provided in an embodiment of this application. For example... Figure 5 As shown, manual authentication of the secondary device can be achieved through steps S131 to S132.
[0057] Step S131: Input the preset identification password into the secondary device to obtain the identification result.
[0058] Step S132: After the recognition result is successful, confirm that the secondary device has been certified.
[0059] This application does not limit the preset identification password, which can be, for example, a PIN (Personal Identification Number).
[0060] Specifically, a preset identification password can be entered into the secondary device to obtain the identification result. The identification result includes successful identification and identification failure. Furthermore, if the identification result is successful, it can be confirmed that the secondary device has passed the identification process.
[0061] It should be noted that the above method applies to the authentication of Tier 1 secondary devices. Furthermore, if a Tier 2 secondary device has a screen, the same authentication method applies.
[0062] Optionally, please refer to Figure 6 , Figure 6 This is a schematic diagram illustrating the steps of an automatic authentication sub-device provided in an embodiment of this application. Figure 6 As shown, automatic authentication of the secondary device can be achieved through steps S133 to S134.
[0063] Step S133: Send the device number of the secondary device to the server so that the server can query the database to see if the device number is present.
[0064] Step S134: If the device number is found in the database, the secondary device authentication is confirmed to be successful.
[0065] Specifically, the aforementioned device information may also include device serial numbers. After the master device and slave device discover each other, the master device can obtain the slave device's device code and send the slave device's device serial number to the server, so that the server can query the database to see if it contains the device serial number. The database stores several device serial numbers that can be used for network configuration.
[0066] Furthermore, if the device number is found in the database, the authentication of the secondary device is confirmed to be successful.
[0067] Optionally, the device information may also include a device identification password. After determining the authentication method of the secondary device based on the level corresponding to the secondary device, it may also include: sending the device identification password to the server so that the server can verify the device identification password; if the verification is successful, the secondary device is confirmed to be authenticated.
[0068] It should be noted that when there are many secondary devices at the second or third level, the main device can also authenticate the secondary devices at the second or third level through external converters, which can improve authentication efficiency and network performance.
[0069] In this embodiment, first-level secondary devices can be authenticated manually, while second-level secondary devices can be authenticated automatically. This allows for the determination of secondary devices suitable for network deployment based on the authentication results.
[0070] Step S14: After the secondary device is successfully authenticated, establish a connection between the primary device and the secondary device to achieve networking between the primary device and the secondary device.
[0071] Understandably, once the secondary device is successfully authenticated, it can be determined that the secondary device is suitable for networking. In this way, a connection can be established between the primary and secondary devices to achieve networking between them.
[0072] Optionally, the secondary device is at the first level, and establishing a connection between the primary device and the secondary device includes: initiating a connection request through the primary device, and establishing a connection between the primary device and the secondary device when the secondary device receives the connection request; or, initiating a connection request through the secondary device, and establishing a connection between the primary device and the secondary device when the primary device receives the connection request.
[0073] Specifically, when the secondary device is at level 1, the connection between the secondary device and the primary device is an equivalent connection. In this case, a connection request can be initiated by either the primary device or the secondary device. When the other device receives the connection request, a connection is established between the primary and secondary devices to achieve networking between the primary and secondary devices.
[0074] Optionally, the secondary device is at level two and / or level three, and establishing a connection between the primary device and the secondary device includes: initiating a connection request through the primary device, and establishing a connection between the primary device and the secondary device when the secondary device receives the connection request.
[0075] Specifically, when the secondary device is at level two and / or level three, the connection between the secondary device and the primary device is a non-equivalent connection. In this case, the primary device can only initiate a connection request, and then when the secondary device receives the connection request, a connection is established between the primary and secondary devices to achieve networking between the primary and secondary devices.
[0076] Optionally, after establishing the connection between the master device and the slave device, the process further includes: negotiating a session key between the master device and the slave device; and after determining the session key, the master device and the slave device communicate using the session key to achieve networking between the master device and the slave device. This improves the security and reliability of communication transmissions such as networking.
[0077] This application discloses a device networking method, device networking apparatus, equipment, and computer-readable storage medium that can determine the level of a secondary device after the primary and secondary devices discover each other. The primary and secondary devices are connected via a full network connection, and the primary device's level is the first level. Furthermore, the primary device can initiate a network request to the secondary device. After receiving the request, the secondary device determines its authentication method based on its level and then authenticates it. Upon successful authentication, a network connection is established between the primary and secondary devices. The method proposed in this application can achieve direct network connection between different devices without the need for various relay devices, and can improve the reliability, stability, and security of communication between devices.
[0078] Please see Figure 7 , Figure 7 This is a schematic diagram illustrating a networking method between devices provided in an embodiment of this application. Figure 7 As shown in the embodiment of this application, the networking method between devices can be used in large unmanned ports.
[0079] The first level of equipment includes main control computers, computing centers, etc.; the second level of equipment includes vehicle-mounted systems, conveyor belt operating systems, etc.; and the third level of equipment includes sensors, surveillance cameras, etc. All of the above equipment are connected through a fully connected network.
[0080] Furthermore, the data receiving module of the authentication networking module adapts its interface to devices of different levels and manufacturers to achieve the goal of freely receiving data. The data parsing module then parses and uses the data, and finally, the data encapsulation and sending module converts the processed data into a data format compatible with different levels of devices, enabling data to be sent to the corresponding devices. In this way, the intelligent devices and controls required by the entire port form a large-scale, hierarchical, fully connected network, which not only saves network communication and labor costs but also improves the port's communication efficiency, reduces equipment downtime, and minimizes resource waste.
[0081] Please see Figure 8 , Figure 8 This is a schematic block diagram of a device networking apparatus provided in an embodiment of this application. The device networking apparatus can be configured in a server to execute the steps of the aforementioned device networking method.
[0082] like Figure 8 As shown, the networking device 200 between the devices includes: a level determination module 201, a networking request initiation module 202, an authentication method determination module 203, and a networking module 204.
[0083] The level determination module 201 is used to determine the level of the secondary device after the primary device and the secondary device discover each other, wherein the level of the primary device is the first level;
[0084] The network request initiation module 202 is used to initiate a network request to the slave device through the master device;
[0085] The authentication method determination module 203 is used to determine the authentication method of the secondary device based on the level corresponding to the secondary device after the secondary device receives the networking request;
[0086] The networking module 204 is used to establish a connection between the master device and the slave device after the slave device is authenticated by the authentication method, so as to realize the networking between the master device and the slave device.
[0087] The level determination module 201 is further configured to, after the master device and the slave device discover each other, obtain the device information of the slave device, wherein the device information includes level information; and determine the level of the slave device based on the level information.
[0088] The level determination module 201 is further configured to determine the authentication method as manual authentication when the level of the secondary device is the first level; and to determine the authentication method as automatic authentication when the level of the secondary device is the second level and / or the third level.
[0089] The authentication method determination module 203 is also used to input a preset identification password into the secondary device and obtain an identification result; after the identification result is successful, it confirms that the secondary device has been authenticated.
[0090] The authentication method determination module 203 is also used to send the device number of the secondary device to the server so that the server can query the database to see if the device number is present. The database stores several device numbers that can be used for networking. If the device number is found in the database, the authentication of the secondary device is confirmed to be successful.
[0091] The authentication method determination module 203 is also used to send the device identification password to the server so that the server can verify the device identification password; if the verification is successful, the authentication of the secondary device is confirmed.
[0092] The networking module 204 is also used to initiate a connection request through the master device and establish a connection between the master device and the slave device when the slave device receives the connection request; or, to initiate a connection request through the slave device and establish a connection between the master device and the slave device when the master device receives the connection request.
[0093] The networking module 204 is also used to initiate a connection request through the master device and establish a connection between the master device and the slave device when the slave device receives the connection request.
[0094] The networking module 204 is also used to negotiate a session key with the secondary device through the master device; after determining the session key, the master device and the secondary device communicate through the session key to realize the networking between the master device and the secondary device.
[0095] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the above-described apparatus and its modules and units can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0096] The methods and apparatus of this application can be used in a wide variety of general-purpose or special-purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0097] For example, the above-described method and apparatus can be implemented as a computer program, which can be used in, for example... Figure 9 It runs on the device shown.
[0098] Please see Figure 9 , Figure 9 This is a schematic block diagram of a device provided in one embodiment of this application. The device may be a server.
[0099] like Figure 9 As shown, the device includes a processor, memory, and network interface connected via a system bus, wherein the memory may include volatile storage media, non-volatile storage media, and internal memory.
[0100] Non-volatile storage media can store operating systems and computer programs. These computer programs include program instructions that, when executed, cause the processor to perform any networking method between devices.
[0101] The processor provides computing and control capabilities to support the operation of the entire device.
[0102] Internal memory provides an environment for the execution of computer programs stored in non-volatile storage media. When these computer programs are executed by a processor, the processor can execute any networking method between devices.
[0103] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that the structure of this device is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the device to which the present application is applied. Specific devices may include more or fewer components than shown in the diagram, or may combine certain components, or may have different component arrangements.
[0104] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.
[0105] In some embodiments, the processor is used to run a computer program stored in a memory to perform the following steps: after the master device and the slave device discover each other, determine the level of the slave device, wherein the level of the master device is the first level; initiate a network request to the slave device through the master device; after the slave device receives the network request, determine the authentication method of the slave device based on the level corresponding to the slave device; after the slave device is authenticated by the authentication method, establish a connection between the master device and the slave device to realize the network between the master device and the slave device.
[0106] In some embodiments, the processor is further configured to, after the master device and the slave device discover each other, acquire device information of the slave device, wherein the device information includes level information; and determine the level of the slave device based on the level information.
[0107] In some embodiments, the processor is further configured to determine that the authentication method is a manual authentication method when the level of the secondary device is a first level; and to determine that the authentication method is an automatic authentication method when the level of the secondary device is a second level and / or a third level.
[0108] In some implementations, the processor is further configured to input a preset identification password to the secondary device to obtain an identification result; after the identification result indicates successful identification, the processor confirms that the secondary device has been authenticated.
[0109] In some implementations, the processor is further configured to send the device number of the secondary device to a server, so that the server can query a database to see if the device number is present, wherein the database stores several device numbers that can be used for networking; if the device number is found in the database, the secondary device is confirmed to be authenticated.
[0110] In some implementations, the processor is further configured to send the device identification password to a server for the server to verify the device identification password; if the verification is successful, the secondary device is confirmed to be authenticated.
[0111] In some embodiments, the processor is further configured to initiate a connection request through the master device, and establish a connection between the master device and the slave device when the slave device receives the connection request; or, initiate a connection request through the slave device, and establish a connection between the master device and the slave device when the master device receives the connection request.
[0112] In some implementations, the processor is further configured to initiate a connection request through the master device and establish a connection between the master device and the slave device when the slave device receives the connection request.
[0113] In some implementations, the processor is further configured to negotiate a session key with the secondary device through the master device; after determining the session key, the master device and the secondary device communicate through the session key to realize the networking between the master device and the secondary device.
[0114] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed, implement any of the device networking methods provided in this application.
[0115] The computer-readable storage medium can be an internal storage unit of the device described in the foregoing embodiments, such as the hard disk or memory of the device. The computer-readable storage medium can also be an external storage device of the device, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the device.
[0116] Furthermore, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system, at least one application program required for a function, etc.
[0117] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A networking method between devices, characterized in that, The device includes a main device and a secondary device, which are connected via a fully connected network. The method includes: After the primary device and the secondary device discover each other, the level of the secondary device is determined, wherein the level of the primary device is the first level; The master device initiates a network formation request to the slave device. After receiving the networking request, the secondary device determines the authentication method of the secondary device based on the level corresponding to the secondary device; After the secondary device is successfully authenticated through the authentication method, a connection is established between the primary device and the secondary device to realize the networking between the primary device and the secondary device; The step of determining the level of the secondary device after the primary device and the secondary device discover each other includes: After the primary device and the secondary device discover each other, the device information of the secondary device is obtained, wherein the device information includes level information; The level of the auxiliary equipment is determined based on the level information; The secondary device is classified into three levels: Level 1, Level 2, and Level 3. Determining the authentication method for the secondary device based on its corresponding level includes: When the level of the secondary device is Level 1, the authentication method is determined to be manual authentication. When the level of the secondary device is the second level and / or the third level, the authentication method is determined to be the automatic authentication method.
2. The method according to claim 1, characterized in that, The authentication method is a manual authentication method. After determining the authentication method of the secondary device based on the level corresponding to the secondary device, the process includes: Input a preset identification password into the secondary device to obtain the identification result; After the identification result is successful, the authentication of the secondary device is confirmed.
3. The method according to claim 1, characterized in that, The authentication method is automatic authentication. The device information includes a device number. After determining the authentication method for the secondary device based on its corresponding level, the process includes: The device number of the secondary device is sent to the server so that the server can query the database to see if the device number is present. The database stores several device numbers that can be used for networking. If the device number is found in the database, the authentication of the secondary device is confirmed to be successful.
4. The method according to claim 1, characterized in that, The authentication method is an automatic authentication method. The device information also includes a device identification password. After determining the authentication method of the secondary device based on the level corresponding to the secondary device, the method further includes: The device identification password is sent to the server so that the server can verify the device identification password; If the verification is successful, the secondary device is confirmed to be certified.
5. The method according to claim 1, characterized in that, The secondary device is classified as Level 1, and establishing the connection between the primary device and the secondary device includes: The primary device initiates a connection request, and upon receiving the connection request, a connection is established between the primary device and the secondary device; or... The secondary device initiates a connection request, and when the primary device receives the connection request, a connection is established between the primary device and the secondary device.
6. The method according to claim 1, characterized in that, The secondary device is at level two and / or level three, and establishing the connection between the primary device and the secondary device includes: The master device initiates a connection request, and when the slave device receives the connection request, a connection is established between the master device and the slave device.
7. The method according to claim 1, characterized in that, After establishing the connection between the master device and the slave device, the method further includes: The master device negotiates the session key with the slave device; After the session key is determined, the master device and the slave device communicate using the session key to establish a network between the master device and the slave device.
8. A networking device for devices, characterized in that, The networking device includes: A level determination module is used to determine the level of the secondary device after the primary device and the secondary device discover each other, wherein the level of the primary device is the first level; A network request initiation module, which is used to initiate a network request from the master device to the slave device; An authentication method determination module is used to determine the authentication method of the secondary device based on the level corresponding to the secondary device after the secondary device receives the networking request. A networking module is used to establish a connection between the master device and the slave device after the slave device is authenticated by the authentication method, so as to realize the networking between the master device and the slave device; The level determination module is further configured to obtain the device information of the secondary device after the primary device and the secondary device discover each other, wherein the device information includes level information; The level of the auxiliary equipment is determined based on the level information; The secondary device is classified into three levels: Level 1, Level 2, and Level 3. Determining the authentication method for the secondary device based on its corresponding level includes: When the level of the secondary device is Level 1, the authentication method is determined to be manual authentication. When the level of the secondary device is the second level and / or the third level, the authentication method is determined to be the automatic authentication method.
9. A device, characterized in that, include: A memory and a processor; wherein the memory is connected to the processor and is used to store a program, and the processor is used to implement the steps of the networking method between devices as described in any one of claims 1-7 by running the program stored in the memory.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to implement the steps of the networking method between devices as described in any one of claims 1-7.