CN115460220A - Equipment networking method and device, equipment and storage medium - Google Patents
Equipment networking method and device, equipment and storage medium Download PDFInfo
- Publication number
- CN115460220A CN115460220A CN202110559921.1A CN202110559921A CN115460220A CN 115460220 A CN115460220 A CN 115460220A CN 202110559921 A CN202110559921 A CN 202110559921A CN 115460220 A CN115460220 A CN 115460220A
- Authority
- CN
- China
- Prior art keywords
- network
- equipment
- networking
- target
- group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000006855 networking Effects 0.000 title claims abstract description 103
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000008521 reorganization Effects 0.000 claims abstract description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000005266 casting Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1046—Joining mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application provides a device networking method, a device networking device and a storage medium, wherein the method comprises the following steps: if networking request information is acquired, sending a network reorganization request message to first equipment, and enabling the first equipment to delete a first network formed by one-to-one networking of the first equipment and the first equipment, wherein the first equipment is a group owner of the first network and the equipment is a group client of the first network; after the connection with the first network is disconnected, creating the group owner identity, and respectively sending network information to the first equipment and the second equipment sending networking request information, so that the first equipment and the second equipment are respectively connected with the equipment according to the network information to form a second network. When a new device applies for joining an existing one-to-one network and a target device of the new device is a GC device in the one-to-one network, automatic re-networking can be performed, and the requirement of direct connection networking of the new device and the target device is met.
Description
Technical Field
The present invention relates to the field of P2P networking technologies, and in particular, to a device networking method and apparatus, a device, and a storage medium.
Background
Based on Bluetooth Low Energy (BLE) and WIFI point-to-point (P2P) technologies, one-to-one terminal communication networking capability is already mature. However, due to the constraint of the P2P protocol specification, the networking device distinguishes different identities of a Group Owner (GO) and a Group Client (GC). As shown in fig. 1, only the GO device can be connected to multiple GC devices, and only one GO device can be connected as a GC device. Therefore, if more equipment connection scenes exist, users need to be made to perceive the existence of GO and GC identities, the flexibility and the convenience of networking are greatly reduced, and the use experience of the users is reduced.
Disclosure of Invention
The embodiment of the invention provides a device networking method, a device, equipment and a storage medium, wherein the device networking method can automatically re-network under the condition that new equipment applies for adding into an existing one-to-one network and target equipment of the new equipment is GC equipment in the one-to-one network, so that the requirement of direct connection networking of the new equipment and the target equipment is met.
In a first aspect, an embodiment of the present invention provides a device networking method, including: if networking request information is acquired, sending a network reorganization request message to first equipment, and enabling the first equipment to delete a first network formed by one-to-one networking of the first equipment and the first equipment, wherein the first equipment is a group owner of the first network, and the first equipment is a group client of the first network; and after the connection with the first network is disconnected, creating a group owner identity, and respectively sending network information to the first equipment and second equipment sending the networking request information to enable the first equipment and the second equipment to be respectively connected with the equipment according to the network information so as to form a second network, wherein the equipment is simultaneously connected with the first equipment and the second equipment in the second network.
Further, after the sending a reassembly network request message to a first device, causing the first device to delete a first network formed by the device and the first device in a one-to-one networking mode, and before the creating the group owner identity, the method further includes: disconnecting the network connection to the first network.
Further, the network information includes an identification of the second network and a key of the second network.
Further, after the device is started, continuously broadcasting the first state broadcast message of the device; the first status broadcast message includes a device identifier of the device, a device identity of the device, and a device ID of the first device.
In a second aspect, an embodiment of the present application further provides an apparatus networking method, including: sending networking request information to target equipment, wherein the target equipment is a group client in a target network; and acquiring the network information sent by the target equipment, and directly connecting the network information with the target equipment to form a network according to the network information.
Further, before sending the networking request information to the target device, the method further includes: determining that the number of group clients in the target network where the target device is located is less than a set number.
Further, before the determining that the number of the group clients in the network where the target device is located is smaller than the set number, the method further includes: acquiring a first state broadcast message broadcasted by the target equipment; determining whether the number of the group clients in the target network is less than a set number according to the first status broadcast message; wherein the first status broadcast message includes a device identification of the target device, a device identity of the target device, and a device ID of a group owner device in the target network.
Further, the determining whether the number of the group clients in the network where the target device is located is less than a set number according to the status broadcast message includes: acquiring a second state broadcast message broadcasted by the group owner device according to the device ID of the group owner device in the target network; determining whether the number of the group clients in the target network is less than a set number according to the second status broadcast message; wherein the second status broadcast information comprises a device identification of the group owner device, a device identity of the group owner device, and a number of device-connected group clients of the group owner device; wherein the target device is one of the device-connected group clients of the group owner device.
In a third aspect, another embodiment of the present application further provides an apparatus for device networking, including: a processor and a memory, the memory being configured to store at least one instruction which is loaded and executed by the processor to implement the device networking method provided by the first or second aspect.
In an embodiment, the device networking apparatus provided in the second aspect may be a chip.
In a fourth aspect, a further embodiment of the present application further provides a chip, where the chip is connected to a memory, and a user of the memory stores at least one program or instruction, where the program or instruction is executed by the chip to implement the device networking method provided in the first aspect or the second aspect.
In a fifth aspect, a further embodiment of the present application further provides an apparatus, where the apparatus includes an apparatus body and the apparatus networking device provided in the third aspect. In another embodiment, the device may comprise a device body and the chip provided in the fourth aspect.
In a sixth aspect, a further embodiment of the present application further provides a computer storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the device networking method of the first aspect or the device networking method provided by the second aspect.
Through the technical scheme, after the device (currently, GC) in a first network formed by a pair of networks receives networking request information, a recombined network request message can be sent to the first device (current GO of the first network) in the first network, so that the first device (current GO of the first network) deletes the first network. Further, after the device disconnects from the first network, a Group Owner (GO) identity is created, and network information is sent to the first device (currently, the initial identity) and the second device (the device that sends the networking request information) respectively by using the group owner identity, so that the first device and the second device are connected to the device respectively according to the network information to form a second network, where the device (the current GO of the second network) in the second network is connected to the first device (the current GC of the second network) and the second device (the current GC of the second network) at the same time. By the scheme, when new equipment applies to join an existing one-to-one network and target equipment of the new equipment is GC equipment in the one-to-one network, networking is automatically re-established, and the requirement of direct connection networking of the new equipment and the target equipment is met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram of a prior art P2P network architecture;
FIG. 2 is a diagram illustrating different requirements for a user to use a mobile phone to project a screen in the prior art;
FIG. 2a is a diagram illustrating a dual-handset device projecting a same TV screen in the prior art;
FIG. 3 is a flow diagram of a pair of networks provided by an embodiment of the present application;
fig. 4 is a schematic diagram of a device networking requirement according to still another embodiment of the present application;
fig. 5 is a schematic diagram of a network formed by three devices according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a device requesting to join a P2P network according to yet another embodiment of the present application;
fig. 6a is a schematic diagram of a network formed by three devices according to another embodiment of the present application;
FIG. 7a is a schematic diagram of a direct connection networking for increasing screen projection of a mobile phone according to yet another embodiment of the present application;
fig. 7b is a schematic diagram illustrating that a mobile phone is directly connected to a television and a smart speaker respectively for networking according to still another embodiment of the present application;
fig. 8 is a schematic mechanism diagram of an apparatus networking device according to still another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Limited by the P2P protocol specification, a user needs to perceive GO and GC identities in a P2P network, and a device of the user can only directly connect with a GO device in the P2P network for networking, and if a target device of the user is a GC device in the P2P network, the device of the user cannot directly connect with a target device (GC device) in the P2P network for networking.
For example, fig. 2 is a diagram illustrating different requirements of a user using a mobile phone to project a screen in the prior art, and as shown in fig. 2, the scene may include a mobile phone 201 and a television 202. In normal operation, the handset 201 may request networking with the television 202, and the handset 201 is connected to the television 202 for screen projection. In order to meet specific requirements of users, two mobile phones can be connected to the same television at the same time for screen projection. Fig. 2a is a schematic diagram of a two-phone screen projection method for the same television in the prior art, as shown in fig. 2a, a mobile phone 201a (mobile phone a) and a mobile phone 201B (mobile phone B) may be networked with a television 202, the mobile phone 201a (mobile phone a) and the mobile phone 201B (mobile phone B) are simultaneously connected to the television 202 for screen projection, and the television 202 may simultaneously display screen projection images of the mobile phone 201a (mobile phone a) and the mobile phone 201B (mobile phone B).
In the current implementation, the application layer defines the identity of the television 202 as GO, and thus either one or both of the handsets are connected to the television 202 as a GC (GO). However, the user cannot perceive the identity information of the mobile phone and the television 202, i.e., cannot perceive which device is GO and which device is GC. In this case, the user cannot connect the mobile phone (GC) to the speaker 203 for voice delivery while the mobile phone (GC) is projected on the television 202.
To sum up, it can be determined that, in the existing technical solution, an upper layer service or a user needs to explicitly specify an equipment identity (GO identity, GC identity), and after the equipment identity is determined, switching of the equipment identity cannot be performed to meet a networking requirement of the user.
In order to overcome the foregoing technical problem, an embodiment of the present application provides an apparatus networking method, where when performing apparatus networking by using the apparatus networking method, a user does not need to specify an identity of an apparatus in a target network, and may directly request to perform networking with a target apparatus in the target network. When the GC device in the target network determines that the GC device is the target device requested to be directly connected with the network, the target device can be re-networked with the GO identity after the current network is deleted and the device identity is switched, so that the original GO device and the device of the user are respectively connected, and the requirement that the user is directly connected with the target device in the target network through the device of the user is met.
The device networking method provided by the embodiment of the application is that after a one-to-one network is formed, networking control of the one-to-one network is added to a third device. Fig. 3 is a one-to-one networking flow chart provided in an embodiment of the present application, and as shown in fig. 3, the one-to-one networking flow may include the following steps:
step 301: device a requests to connect to device B.
Step 302: device a creates a GO identity.
Step 303: device a sends an M2 message to device B in the GO identity.
Step 304: and the device B completes connection with the device A according to the M2 message, and the device A and the device B form a one-to-one networking.
In the initial state, there is no networking between the device a and the device B, that is, the device identities of the device a and the device B are initial identities (INIT identities). In the initial state, device a and device B broadcast M1 messages with INIT identities.
Wherein the M1 message is a status broadcast message of the device. After each device starts, an M1 message may be continuously broadcast and transmitted through BLE, where the M1 message may include the following information: the Device identification (Device ID), the Device identity (Role), the GO Device identification (PeerGO) connected with the Device, and the number (GCNum) of GC devices connected with the Device. Through the M1 message, the device state and the device capability can be exchanged and perceived among the devices. The device identity in the M1 message of the device may include GO, GC, or INIT, and it may be determined whether the device is already networked according to the device identity, and if the device identity is INIT, it is determined that the device is in an initial state and no networking is performed; if the device identity is not INIT, it is determined that the device is already networked, and it may be further determined whether the identity of the device in the network is GO or GC. If the device does not perform networking (Role = INIT), peerGO and GCNum in the M1 message broadcast by the device are null. If the device is already networked (Role = GO/GC), further, if the identity of the device in the network is GO, and PeerGO in the M1 message broadcast by the device is empty, the number of GC devices connected to the device (Role = GO) may be shown in GCNum, for example, GCNum =1, which indicates that the device is connected to 1 GC device, and GCNum =2, which indicates that the device is connected to 2 GC devices. If the identity of the device in the network is GC, and GCNum in the M1 message broadcast by the device is null, the device ID of the GO device connected to the device may be shown in PeerGO.
As shown in fig. 3, in the specific implementation of steps 301-304, device a may initiate networking and connect with device B. The device A can determine that the current device identity of the device B is INIT through the M1 message broadcasted by the device B, the device A firstly creates a GO and uses the GO as a GO device, and sends an M2 message request connection to the device B by the GO identity, the device B performs network connection with the device A after receiving the M2 message sent by the device A, and the GO is used as a GC device in a GO network created by the device A, and one-to-one device networking is completed.
The M2 message is a networking secret key message, and no matter the GO equipment initiates networking to actively connect with the GC equipment or the GC equipment actively initiates a networking request to connect with the GO equipment, finally the GO equipment sends the network secret key information of the equipment to the GC equipment to be connected through the M2 message. The M2 message may include the following information: service Set Identifier (SSID), GO network key. After receiving the M2 message sent by the GO device, the GC device may join the GO network according to the SSID and GO network key connection therein.
After the one-to-one network is formed, networking control may be performed when a third device requests to join the one-to-one network. In the one-to-one network, device a is a GO device, device B is a GC device, and a third device (device C) requests to join the one-to-one network.
Fig. 4 is a schematic diagram of a device networking requirement according to still another embodiment of the present application, and as shown in fig. 4, when a device C in an initial state requests to join a one-to-one network (a target network) formed by a device a and a device B, the device C requests a target device of a direct connection networking to be a device a in the one-to-one network or a device B in the one-to-one network.
If the target device of the device C is the device a, the device C sends an M3 message to the device a to request to directly join the network with the device a. Since device a is a GO device in the network, device a (GO device) has the ability to connect multiple GC devices simultaneously, and device a can maintain the current one-to-one network. The M3 message is a networking request message, and the M3 message includes the following information: the device identification of the GC device which initiates the networking request, and the device identification of the target device. The device identifier of the target device may be obtained according to the M1 message broadcast by the target device.
Further, after receiving the M3 message sent by the device C, the device a determines that the device a itself is the GO device, and may reply an M2 message to the device C to notify the device C (formed by the device a and the device B) of the SSID of the one-to-one network and the GO network key. After receiving the M2 message replied by the device a, the device C may join the GO network according to the SSID therein and the GO network key connection, so as to form three device networking in which the device a is connected to the device B and the device C, respectively, as shown in fig. 5, so as to implement direct connection networking between the device C and a target device (device a).
As shown in fig. 4, if the target device of the device C is the device B, the device C sends an M3 message to the device B to request to directly join the network with the device B. Since the device B is a GC device in the network and the GC device can only be connected to one GO device, in order to meet the requirement of direct connection networking between the device C and the device B (currently, the GC device), direct connection networking between the device C and the target device (device B) can be realized through network recombination.
Fig. 6 is a flowchart illustrating a device requesting to join a P2P network (a one-to-one network formed by connecting a device a and a device B) according to yet another embodiment of the present application, where the device networking method provided in the embodiment illustrated in fig. 6 includes the following steps:
step 601: device C requests connection to device B (GC device).
Step 602: device C sends an M3 message to device B requesting to connect to device B.
Step 603: the device B judges that the device B is GC device and cannot be directly networked with the device C.
Step 604: device B sends an M4 message to device a (GO device) requesting a re-networking.
Step 605: after disconnecting the network connection with the device a, the device B creates a GO identity, and sends an M2 message to the device a and the device C, respectively, with the GO identity.
Step 606: device a and device C connect with device B, respectively, according to the M2 message to form a second network.
In a one-to-one network (first network) formed by connecting device a and device B, device a is a GO device in the first network, and device B is a GC device in the first network. And the equipment C is INIT equipment to be directly connected with the equipment B for networking.
After each device starts up, an M1 message (status broadcast message) may be continuously broadcast through BLE. Wherein, device B continuously broadcasts a first status broadcast message through BLE, and the first status broadcast message may include: device ID of device B, current device identity (GC) of device B, and device ID of GO device in first network (PeerGO), i.e., device ID of device a).
Device a continuously broadcasts a second status broadcast message over BLE, which may include: the device ID of device a, the current device identity (GO) of device a, and the number of GC devices (GCNum) to which the GO device has been connected in the first network, i.e., the number of GC devices to which device a is connected, the current device a (GO) is connected only to device B (GC), and thus GCNum =1 in the current second status broadcast message.
Device C continuously broadcasts a third status broadcast message over BLE, which may include: the device ID of device C and the current device identity (INIT) of device C.
In the specific implementation of step 601, the device C attempts to directly network with a target device (device B in the first network), the device C may generate a connection request event requesting to connect to the device B, after the connection request event is generated, the device C determines whether the number of GC devices (GCNum) in the first network is less than a set number N, and continues to execute step 602 after determining that GCNum is less than N, and if it is determined that GCNum is greater than or equal to N, the connection request event is ended.
Specifically, the device C may obtain the first status broadcast message broadcasted by the target device (device B), and since the target device (device B) is a GC device in the first network, the number of GC devices in the first network cannot be known according to the first status broadcast message, but the device ID of the GO device in the first network may be obtained. Further, a second status broadcast message broadcasted by the GO device (i.e., device a) may be acquired according to the device ID of the GO device in the first network, and it may be determined whether the number of GC devices (GCNum) in the first network is less than the set number N according to the second status broadcast message.
In a specific implementation of step 602, after determining that the GC devices in the first network are less than the set number N, the device C may send an M3 message to the target device (device B), where the M3 message may include the device ID of the device C and the device ID of the target device (device B).
In the specific implementation of step 603, after receiving the M3 message sent by the device C, the device B determines that the device C requests to perform direct connection networking with its own device, and determines that the device B cannot directly perform networking with the device C according to its own current identity (GC device), and needs to perform re-networking, and performs step 604.
In an implementation of step 604, device B (GC device) sends an M4 message to device a (GO device) requesting to reform the current network (first network). The message M4 is a network reorganization request message, and after two devices (GO device and GC device) successfully build a network, the GC device can inform the GO device of network reorganization and delete the current networking by sending the M4 message to the GO device. The M4 message may include: the device ID of the GC device (device B) that initiated the regrouping network request and the device ID of the GO device (device a) in the current network.
In one embodiment, after sending the M4 message to device a (GO device), device B may wait for device a (GO device) to complete the network disconnection with device B and the current network deletion, and then proceed to step 605.
In another embodiment, after sending the M4 message to device a (GO device), device B may actively disconnect the network connection with the first network (i.e., delete the GC) in order to quickly implement network reorganization, and then proceed to step 605.
It should be noted that during the network switching period, the original two devices (the GO device and the GC device in the first network) may have a certain time interruption (in some measurement experiments, the interruption time is generally about 500 ms), and during this time, the user experience is maintained through the cache and the user interaction. In addition, the IP address of the device inevitably changes, and the application needs to perform related sensing and processing.
In the specific implementation of step 605, after the device B disconnects the network connection with the device a, the device B may create a GO identity, and send M2 messages to the device a and the device C respectively by using the GO identity, and after receiving the M2 message sent by the device B, the device a and the device C respectively perform network connection with the device B, and then both the device a and the device C serve as GC devices in the GO network created by the device a, thereby completing networking (i.e., forming a second network).
The process of network reconfiguration provided in the embodiment shown in fig. 6 is as shown in fig. 6a, where device a and device B are deleted to form a one-to-one network, and device B is used as GO to create a second network, so that device a and device C are connected to device B respectively to form three devices, i.e., device B and device C, to form a pair of a and a pair of C network.
The device networking method provided by the embodiment shown in fig. 6 is specifically described below by taking a screen-casting scene as an example.
Fig. 7a is a schematic diagram of a direct connection networking for increasing screen projection of a mobile phone according to still another embodiment of the present application, and as shown in fig. 7a, a mobile phone 701 and a television 702 have formed a one-to-one networking (a first network), where in the first network, the mobile phone 701 is a GO device and the television 702 is a GC device. When another mobile phone needs to screen the television 702, the mobile phone needs to directly connect with the television 702 for networking. In this scenario, two mobile phones exist at the same time, and are respectively labeled as a mobile phone 701a and a mobile phone 701b for distinguishing the two mobile phones, where the mobile phone 701a is a mobile phone that is networked with the television 702 in a one-to-one manner in the first network, and the mobile phone 701b is another mobile phone that requests to join a screen.
The handset 701b (INIT device) attempts to connect to the television 702 and acquires a first status broadcast message broadcast by the television 702 (GC device) to acquire the device ID of the handset 701 a. And a second status broadcast message broadcasted by the mobile phone 701a is obtained according to the device ID of the mobile phone 701a, so as to determine whether the number of GC devices in the target network (first network) is less than the set number N (N may be 2). That is, the handset 701b, when determining that there is only one GC device in the first network, transmits an M3 message to the television 702 requesting connection to the television 702. After receiving the M3 message sent by the cell phone 701b, the television 702 determines that the television 702 is a GC device and cannot directly network with the cell phone 701b, and the television 702 sends an M4 message to the cell phone 701a to request to network again. After receiving the M4 message, the handset 701a performs an operation of deleting the first network. To quickly implement the re-networking, the television 702 may actively disconnect the network connection with the handset 701a and create a GO identity. The television 702 sends M2 messages to the mobile phone 701a and the mobile phone 702b respectively by the GO identity, and requests the mobile phone 701a and the mobile phone 702b to perform networking, so that the television 702, the mobile phone 701a and the mobile phone 702b complete networking to form a second network.
Fig. 7b is a schematic diagram of a mobile phone directly connected to a television and a smart speaker respectively for networking, as shown in fig. 7b, a mobile phone 701 and a television 702 have already formed a one-to-one networking (a first network), where in the first network, the mobile phone 701 is a GO device, and the television 702 is a GC device. The mobile phone 701 wants to connect to the speaker 703 again, and transmits the sound to the speaker 703 for playing. Since the mobile phone 701 is a GO device in the first network, it can perform networking with the speaker 703. Further, the mobile phone 701 may actively send an M2 message to the speaker 703 to request networking with the speaker 703. The sound box 703 is connected to the mobile phone 701 according to the received M2 message, thereby completing the direct connection networking between the mobile phone 701 and the sound box 703, and further the mobile phone 701 can project a screen on the television 702, and transmit corresponding audio information to the sound box 703, so that the sound box 703 plays corresponding sound.
Fig. 8 is a device networking apparatus according to yet another embodiment of the present application, and as shown in fig. 8, the apparatus may include a processor 801 and a memory 802, where the memory 802 is configured to store at least one instruction, and the instruction is loaded and executed by the processor 801 to implement the device networking method according to the embodiment shown in fig. 6. In one implementation, the device networking apparatus provided in the embodiment shown in fig. 8 may be a chip.
On the other hand, a further embodiment of the present application further provides a chip, where the chip is connected to a memory, and a user of the memory stores at least one program or instruction, where the program or instruction is executed by the chip to implement the device networking method provided in the embodiment shown in fig. 6.
Still another embodiment of the present application further provides an apparatus, where the apparatus includes an apparatus body and the apparatus networking device provided in the embodiment shown in fig. 8. In another embodiment, the device may include a device body and the above chip connected to the memory.
Yet another embodiment of the present application further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the device networking method provided in the embodiment shown in fig. 6.
It should be noted that the terminal according to the embodiment of the present invention may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, a smart watch, a smart speaker, a smart screen, and the like.
It should be understood that the application may be an application program (native app) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (11)
1. A method for networking devices, the method comprising:
if networking request information is acquired, sending a network reorganization request message to first equipment, and enabling the first equipment to delete a first network formed by one-to-one networking of the first equipment and the first equipment, wherein the first equipment is a group owner of the first network and is a group client of the first network; and
after the connection with the first network is disconnected, creating a group owner identity, and respectively sending network information to the first equipment and second equipment sending the networking request information, so that the first equipment and the second equipment are respectively connected with the equipment according to the network information to form a second network, wherein the equipment is simultaneously connected with the first equipment and the second equipment in the second network.
2. The method according to claim 1, wherein after said sending a regrouping network request message to the first device, causing the first device to delete the first network formed by the device and the first device in a one-to-one group, and before said creating the group owner identity, further comprising:
disconnecting the network connection to the first network.
3. The method of claim 1, wherein the network information comprises an identification of the second network and a key of the second network.
4. The method of claim 1, wherein the first status broadcast message of the device is continuously broadcast after the device is started;
the first status broadcast message includes a device identifier of the device, a device identity of the device, and a device ID of the first device.
5. A method for networking devices, the method comprising:
sending networking request information to target equipment, wherein the target equipment is a group client in a target network; and
and acquiring the network information sent by the target equipment, and directly connecting the network information with the target equipment to form a network according to the network information.
6. The method of claim 5, further comprising, before sending the networking request information to the target device:
determining that the number of group clients in the target network where the target device is located is less than a set number.
7. The method according to claim 6, further comprising, before the determining that the number of group clients in the network where the target device is located is less than a set number:
acquiring a first state broadcast message broadcasted by the target equipment; and
determining whether the number of the group clients in the target network is less than a set number according to the first state broadcast message;
wherein the first status broadcast message includes a device identification of the target device, a device identity of the target device, and a device ID of a group owner device in the target network.
8. The method of claim 7, wherein the determining whether the number of group clients in the network where the target device is located is less than a set number according to the status broadcast message comprises:
acquiring a second state broadcast message broadcasted by the group owner equipment according to the equipment ID of the group owner equipment in the target network;
determining whether the number of the group clients in the target network is less than a set number according to the second state broadcast message;
wherein the second status broadcast information comprises a device identification of the group owner device, a device identity of the group owner device, and a number of device-connected group clients of the group owner device;
wherein the target device is one of the device-connected group clients of the group owner device.
9. An apparatus for networking devices, the apparatus comprising:
a processor and a memory for storing at least one instruction which is loaded and executed by the processor to implement the device networking method of any of claims 1-8.
10. An apparatus, characterized in that the apparatus comprises the apparatus networking device of claim 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for networking a device according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110559921.1A CN115460220A (en) | 2021-05-21 | 2021-05-21 | Equipment networking method and device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110559921.1A CN115460220A (en) | 2021-05-21 | 2021-05-21 | Equipment networking method and device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115460220A true CN115460220A (en) | 2022-12-09 |
Family
ID=84295174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110559921.1A Pending CN115460220A (en) | 2021-05-21 | 2021-05-21 | Equipment networking method and device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115460220A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150117318A1 (en) * | 2011-12-20 | 2015-04-30 | Emily H. Qi | Wireless communication devices and methods for forming peer-to-peer (p2p) wireless connections between devices |
US20190014172A1 (en) * | 2015-09-03 | 2019-01-10 | Nec Corporation | Group formation control in multi-group peer-to-peer network |
CN110832947A (en) * | 2018-04-12 | 2020-02-21 | 华为技术有限公司 | Networking method and equipment |
CN111372325A (en) * | 2020-02-21 | 2020-07-03 | 华为技术有限公司 | Method and device for establishing Wi-Fi point-to-point connection |
CN114390491A (en) * | 2020-10-20 | 2022-04-22 | 华为技术有限公司 | Networking method, device and system |
-
2021
- 2021-05-21 CN CN202110559921.1A patent/CN115460220A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150117318A1 (en) * | 2011-12-20 | 2015-04-30 | Emily H. Qi | Wireless communication devices and methods for forming peer-to-peer (p2p) wireless connections between devices |
US20190014172A1 (en) * | 2015-09-03 | 2019-01-10 | Nec Corporation | Group formation control in multi-group peer-to-peer network |
CN110832947A (en) * | 2018-04-12 | 2020-02-21 | 华为技术有限公司 | Networking method and equipment |
CN111372325A (en) * | 2020-02-21 | 2020-07-03 | 华为技术有限公司 | Method and device for establishing Wi-Fi point-to-point connection |
CN114390491A (en) * | 2020-10-20 | 2022-04-22 | 华为技术有限公司 | Networking method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110139387B (en) | Uplink small data transmission method, network side DU and network side CU | |
EP2652912B1 (en) | Content sharing between a universal plug and play device and a wide area network device | |
TWI512489B (en) | Multi-screen interactive method, center equipment, terminal equipment and systems | |
KR100939182B1 (en) | Group communication server | |
CN108282846B (en) | Service request processing method and device | |
CN111427527A (en) | Screen projection method, device, equipment and computer readable storage medium | |
KR102590338B1 (en) | Short message service ability updating method, device and apparatus | |
CN108235042A (en) | A kind of more people's live network broadcast methods, device, adding apparatus and system | |
CN112738540A (en) | Multi-device live broadcast switching method, device and system, electronic device and readable storage medium | |
US20230020443A1 (en) | Message forwarding method and apparatus | |
JP2017527238A (en) | Smart device router access method, apparatus, system, program, and recording medium | |
CN112684995A (en) | Cross-screen input method and device | |
US20220286731A1 (en) | Multimedia apparatus and cast method | |
CN114143586B (en) | Split screen display sharing method, system, storage medium and intelligent screen | |
JP4792495B2 (en) | Communication control apparatus and method | |
CN106817627A (en) | A kind of social contact method and system based on intelligent television | |
CN105933922B (en) | Information sending method, information receiving method and device | |
WO2016004581A1 (en) | User management method, corresponding device and system of shared network | |
CN115665470B (en) | Method for quick change of intelligent television through data migration | |
CN115460220A (en) | Equipment networking method and device, equipment and storage medium | |
CN107920372B (en) | Information indication method and device | |
WO2012022139A1 (en) | Method and system for obtaining mobile phone tv service keys | |
CN109067882B (en) | Data sharing method and related product | |
KR20130012235A (en) | Apparatus and method for providing community service in portable terminal | |
CN111698571B (en) | Public network mirroring method, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |