CN108323246B - Networking method, chip and wireless network system - Google Patents

Networking method, chip and wireless network system Download PDF

Info

Publication number
CN108323246B
CN108323246B CN201880000257.3A CN201880000257A CN108323246B CN 108323246 B CN108323246 B CN 108323246B CN 201880000257 A CN201880000257 A CN 201880000257A CN 108323246 B CN108323246 B CN 108323246B
Authority
CN
China
Prior art keywords
slave device
communication link
link
peripheral
central
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.)
Active
Application number
CN201880000257.3A
Other languages
Chinese (zh)
Other versions
CN108323246A (en
Inventor
邹景华
杨显旭
杨柯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Weitongbo Technology Co Ltd
Original Assignee
Shenzhen Weitongbo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Weitongbo Technology Co Ltd filed Critical Shenzhen Weitongbo Technology Co Ltd
Publication of CN108323246A publication Critical patent/CN108323246A/en
Application granted granted Critical
Publication of CN108323246B publication Critical patent/CN108323246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The embodiment of the application provides a networking method, a chip and a wireless network system, and belongs to the technical field of communication. The networking method comprises the following steps: establishing a first communication link with a master device; establishing a second communication link with at least one peripheral slave device to form a slave device local area network; and sending link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes a listening link with the master device according to the link information and listens to data transmitted on the first communication link. The networking method can realize data sharing among multiple parties.

Description

Networking method, chip and wireless network system
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a networking method, a chip and a wireless network system.
Background
With the development of communication technology, wireless data communication enters an outbreak period, and applications based on wireless data communication are widely available, such as wireless headset personal applications based on audio and the like. Among them, Wireless Personal Area Network (WPAN) is a widely used Wireless data communication method, and WPAN is used for communication between devices such as telephones, computers, accessory devices, and digital assistants in a small range (the operating range of Personal Area networks is generally within 10 meters). Through the WPAN, peer-to-peer data interaction can be achieved between devices, such as: wireless network data interaction between the mobile terminal and the wireless headset, and the like. In the WPAN, the general wireless link may use a wireless link scheme such as WIFI, IrDA, or bluetooth. However, as described above, in the existing WPAN, only point-to-point data interaction can be achieved between devices, and data interaction between one device and multiple other devices cannot be achieved at the same time, which cannot meet the requirement of sharing data among multiple devices.
Disclosure of Invention
In view of the above, an embodiment of the present disclosure provides a networking method, a chip and a wireless network system, so as to overcome the problem that a WPAN in the prior art cannot enable multiple devices to share data simultaneously.
According to a first aspect of embodiments of the present application, there is provided a networking method, including: establishing a first communication link with a master device; establishing a second communication link with at least one peripheral slave device to form a slave device local area network; and sending link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes a listening link with the master device according to the link information and listens to data transmitted on the first communication link.
According to a second aspect of the embodiments of the present application, there is provided another networking method, including: establishing a second communication link with the central slave equipment to form a slave equipment local area network, and establishing a first communication link between the central slave equipment and the master equipment; acquiring link information of a first communication link from a central slave device; and establishing a listening link with the main equipment according to the link information, and listening the data transmitted on the first communication link.
According to a third aspect of embodiments of the present application, there is provided a chip, including: the first establishing module is used for establishing a first communication link with the main equipment; the second establishing module is used for establishing a second communication link with at least one peripheral slave device to form a slave device local area network; and the first sending module is used for sending the link information of the first communication link to each peripheral slave device so that each peripheral slave device establishes a monitoring link with the master device according to the link information and monitors the data transmitted on the first communication link.
According to a fourth aspect of the embodiments of the present application, there is provided another chip including: the third establishing module is used for establishing a second communication link with the central slave equipment to form a slave equipment local area network, and a first communication link is established between the central slave equipment and the master equipment; the link information acquisition module is used for acquiring link information of the first communication link from the central slave equipment; and the interception link establishment module is used for establishing an interception link with the main equipment according to the link information and intercepting the data transmitted on the first communication link.
According to a fifth aspect of the embodiments of the present application, there is provided a wireless network system, which includes a master device, a central slave device and a peripheral slave device, and the chip as in the foregoing third aspect is applied to the central slave device.
According to a sixth aspect of the embodiments of the present application, there is provided another wireless network system, which includes a master device, a central slave device and a peripheral slave device, and the chip in the foregoing fourth aspect is applied to the peripheral slave device.
As can be seen from the foregoing technical solutions, in the networking method, the chip, and the wireless network system provided in the embodiments of the present application, the central slave device establishes the first communication link with the master device, where the master device may send data to the central slave device through the first communication link. The center slave device can also establish a second communication link with at least one peripheral slave device, and can send link information of the first communication link to each peripheral slave device through the second communication link, so that the peripheral slave devices can establish a listening link, and each peripheral slave device can acquire data sent by the master device to the center slave device through the listening link, thereby realizing data sharing of one master device to a plurality of slave devices. In addition, the master device only communicates with one slave device, namely the central slave device, and sends data to the master device, the peripheral slave devices in the slave device local area network are transparent to the master device, and the master device does not need to perform connection and data interaction with the peripheral slave devices, which are the same as those of the central slave device, so that the data processing burden of the master device and the whole network system is reduced, and the data processing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a networking method according to a first embodiment of the present application;
fig. 2 is a flowchart illustrating a networking method according to a second embodiment of the present application;
fig. 3 is a process diagram illustrating time division multiplexing of system broadcast, directional broadcast and directional scanning by a slave device in a networking method according to the second embodiment of the present application;
fig. 4 is a schematic diagram illustrating data transmission in a normal case in a networking method according to a second embodiment of the present application;
fig. 5 is a schematic diagram illustrating data transmission in case of an abnormal first communication link in the networking method according to the second embodiment of the present application;
fig. 6 is a schematic diagram illustrating data transmission in case of abnormal listening link in the networking method according to the second embodiment of the present application;
fig. 7 is a flowchart illustrating a networking method according to a third embodiment of the present application;
fig. 8 is a flowchart illustrating a networking method according to a fourth embodiment of the present application;
FIG. 9 is a block diagram of a chip according to an embodiment of the present application;
FIG. 10 is a block diagram of a chip according to an embodiment six of the present application;
fig. 11 shows a block diagram of a chip according to a seventh embodiment of the present application;
fig. 12 shows a block diagram of a chip according to an eighth embodiment of the present application;
fig. 13 is a block diagram illustrating a wireless network system according to an embodiment nine of the present application.
Detailed Description
In order to make the objects, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.
The following further describes specific implementations of embodiments of the present application with reference to the drawings of the embodiments of the present application.
Example one
Referring to fig. 1, a schematic flow chart of a networking method according to a first embodiment of the present application is shown, and the networking method provided in the embodiment of the present application is described in the present embodiment from the perspective of a central slave device. According to the embodiment of the application, the networking method is used for connecting the wireless devices and forming the wireless network system. The method comprises the following steps:
s101: a first communication link is established with a master device.
The wireless network system to be established comprises a master device and a slave device. The master device can perform data transmission with slave devices, wherein the slave devices comprise a central slave device and at least one peripheral slave device. Wherein the central slave device is a centrally located one of the slave devices, which performs data transmission with the master device over the first communication link, and the peripheral slave devices are slave devices other than the central slave device, which listen for data on the first communication link over a listening link established hereinafter.
The master device may actively establish a first communication link with the central slave device and distribute data, and the central slave device obtains the data distributed by the master device from the master device through the first communication link. The main device may be a device having data processing and communication functions, such as a mobile terminal, a smart television, and the like. And the central slave device and the peripheral slave devices may be bluetooth headsets, speakers, etc. that may receive data from the master device.
The first communication link may be any suitable wireless communication link including, but not limited to, a WIFI link, a bluetooth link, and the like.
S102: and establishing a second communication link with at least one peripheral slave device to form a slave device local area network.
The second communication link is a corresponding link according to the different communication connection modes adopted by the central slave device and the peripheral slave device, for example, when the central slave device and the peripheral slave device are connected by a bluetooth mode, the second communication link is a bluetooth connection link. When the central slave device is connected with the peripheral slave device in an infrared (IrDA) mode, the second communication link is an infrared connection link.
The second communication link may employ the same communication protocol as the first communication link or may employ a different communication protocol. For example, the first communication link and the second communication link are both bluetooth links, or the first communication link is a WIFI link and the second communication link is a bluetooth link.
The central slave device and at least one peripheral slave device form a slave device local area network. The peripheral slave device communicates with the central slave device through a second communication link, and acquires link information, data quality service and the like of the first communication link from the central slave device.
S103: and sending link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes a listening link with the master device according to the link information and listens to data transmitted on the first communication link.
After the peripheral slave device acquires the link information of the first communication link from the central slave device, the interception link of the interception master device can be established according to the link information, so that the data distributed by the master device can be acquired.
The link information may include different parameters according to the communication method and the communication protocol used, and may include, for example, but not limited to, time information, frequency information, encoding rules, encryption information, and the like.
In the networking method, a first communication link is established between a center slave device and a master device, wherein the master device can send data to the center slave device through the first communication link. The center slave device can also establish a second communication link with at least one peripheral slave device, and can send link information of the first communication link to each peripheral slave device through the second communication link, so that the peripheral slave devices can establish a listening link, and each peripheral slave device can acquire data sent by the master device to the center slave device through the listening link, thereby realizing data sharing of one master device to a plurality of slave devices. In addition, the networking method can realize that the master device only communicates with one slave device, namely the central slave device, and sends data to the master device, the peripheral slave devices in the slave device local area network are transparent to the master device, and the master device does not need to perform the same connection and data interaction with the peripheral slave devices as the central slave device, so that the data processing burden of the master device and the whole network system is reduced, and the data processing efficiency is improved.
Example two
Fig. 2 shows a schematic flowchart of a networking method according to the second embodiment of the present application, and this embodiment still explains the networking method provided in the second embodiment of the present application from the perspective of a central slave device. As shown in fig. 2, the networking method may be used to construct a wireless network system.
The networking method differs according to the adopted wireless communication protocol, and ble (bluetooth Low energy) communication is taken as an example below to describe the whole link establishment process of the whole wireless network system. However, it should be understood by those skilled in the art that the BLE communication scenario is only an exemplary illustration, and in practical use, those skilled in the art may refer to the solution of the embodiment of the present application to implement networking of a wireless network system in other communication scenarios.
The wireless network system established by the networking method of the embodiment comprises a master device and a slave device, wherein the master device can perform data transmission with the slave device, and the slave device comprises a central slave device and at least one peripheral slave device. The central slave device is used for being connected with and communicating with the master device, forming a slave device local area network with the peripheral slave devices, and sending link information of the first communication link to the peripheral slave devices through the slave device local area network. The peripheral slave device may establish a listening link to listen for data of the first communication link based on the link information of the first communication link.
The networking method of the embodiment comprises the following steps:
s201: and performing information interaction among the plurality of slave devices, and storing interaction information, wherein the interaction information comprises identity information and key information.
In this step, the plurality of slave devices includes a central slave device and one or more peripheral slave devices.
Taking bluetooth communication as an example, before the wireless network system is established by using the bluetooth communication device, information interaction may be performed first, and the information interaction in the bluetooth communication may be implemented in a device pairing manner. For example, through device pairing, pairing information such as identity information and key information is exchanged among a plurality of slave devices. The slave device may store the interactive pairing information for identification and data exchange in subsequent link communications.
The slave device pairing behavior may be triggered by some specific behavior or event, such as pressing an external key, charging the slave device, etc. The pairing can be achieved through wired or wireless transmission and can be achieved based on a standard communication protocol or a proprietary protocol.
Taking bluetooth communication as an example, the slave device performs bluetooth pairing through the pairing information. The pairing information includes, but is not limited to, identity information, key information, and the like. The identity information includes: the System Address (System Address) is an Address shared among all the slave devices and is a uniform Address outside the local area network of the slave devices, and the Private Address (Private Address) is an Address unique to each slave device and is used for characterizing each slave device.
The key information interacted during the pairing of the slave devices can be encrypted information used on a second communication link in the local area network of the slave devices so as to ensure the safety of information transfer.
It should be noted that, although information interaction is described as a first step in the present embodiment, it should be understood by those skilled in the art that this step may be performed at any time before step S203, and is not limited to the execution sequence of the present embodiment. Furthermore, this step can be omitted if the corresponding interaction information already exists on the slave device.
S202: a first communication link is established with a master device.
The master device is an owner of a data source, before the wireless network system is built, the master device identifies potential slave devices through continuous scanning and listening, and after finding the slave devices, connection is actively initiated to create a first communication link. At this time, the master device changes to a link connection state, and is simultaneously used as a master end of the first communication link and is responsible for link parameter maintenance and data distribution.
Before the network is established, the slave device is used as a broadcaster (broadcaster) to continuously broadcast relevant information of the slave device through a System Address (System Address), and hopefully, the slave device can be scanned by the master device and is connected with the master device. The slave device establishing the first communication link with the master device is a central slave device.
When the slave device is powered on, pressed or detected to be in a working state, three activities are created: system-broadcast (system-ADV), directional broadcast (Direct-ADV), and directional Scan (Direct-Scan), wherein the directional broadcast and the directional Scan are performed based on the private address information of the device pair described above, and the system broadcast is performed based on the system address.
As shown in fig. 3, these three activities employ time division multiplexing and may be based on one communication standard or two different communication standards. The abscissa in fig. 3 is a time axis, and it can be seen from fig. 3 that three different activities occur at different times on the same device, and the slave device performs systematic broadcasting in a first time slot, directional broadcasting in a second time slot, and directional scanning in a third time slot. A System broadcast period (System Adv Interval) is formed between two adjacent System broadcasts, a directional broadcast period (Direct Adv Interval) is formed between two adjacent directional broadcasts, and a directional scanning Interval (Direct Scan Interval) is formed between two adjacent directional scans.
Optionally, the specific process of establishing the first communication link between the central slave device and the master device includes:
the center slave equipment sends a system broadcast message to enable the master equipment to initiate a first connection request after scanning the system broadcast message; the method comprises the steps that a center slave device receives a first connection request sent by a master device; the central slave device establishes a first communication link with the master device.
In other words, after the master device scans and listens to the system broadcast message broadcast by the slave device system, the master device actively initiates a connection, that is, generates a connection request according to the information of the listened slave device, and sends the connection request to the listened slave device. The sensed slave device establishes a first communication link with the master device in response to the connection request to effectuate the connection. The sensed slave device is the central slave device.
Meanwhile, because each slave device adopts the same system address (system address) to perform system broadcast, once the first communication link is successfully established, other same system broadcasts using the system address are filtered by the master device system, and therefore, only one first communication link exists in the whole wireless network system. The slave device on the first communication link will become a central slave device of the slave device local area network, and the other slave devices are peripheral slave devices in the slave device local area network.
S203: and establishing a second communication link with at least one peripheral slave device to form a slave device local area network.
The central slave device and the peripheral slave devices perform system broadcasting through system addresses, and also perform directional broadcasting and directional scanning through Private addresses (Private addresses), so as to establish a slave device local area network between each peripheral slave device and the central slave device.
Specifically, the central slave device performs directional scanning on each peripheral slave device according to pairing information with at least one peripheral slave device, and receives a private address sent by each peripheral slave device through directional broadcasting, wherein the private addresses of the peripheral slave devices are different, and a second communication link is established between each peripheral slave device and the corresponding private address to form a slave device local area network.
When the trigger condition is satisfied, the peripheral slave Device which successfully joins the slave Device local area network is switched into a central slave Device of the slave Device local area network (Device Lan) through negotiation.
The peripheral slave device is switched to the central slave device under two trigger conditions, and the switching can be performed when one of the two trigger conditions is met, wherein, firstly, the slave device establishes a first communication link with the master device, if the slave device is not the original central slave device of the slave device local area network, the slave device can be switched to a new central slave device through negotiation, for example, after the establishment of the slave device local area network is completed, the master device scans one slave device in the slave device local area network and establishes a first communication link with the slave device, and if the slave device is not the central slave device in the slave device local area network, the slave device is switched to the central slave device through a protocol with the current central slave device; and secondly, switching is carried out according to the requirement of the central slave equipment of the current slave equipment local area network. For example, when the central slave device determines that its current power is too low, a suitable peripheral slave device may be screened according to the screening policy, and may negotiate with the peripheral slave device to perform switching between the central slave device and the peripheral slave device.
It should be noted that, in this embodiment, step S202 is executed first and then step S203 is executed as an example, but in an actual application, step S203 may be executed first and then step S202 may be executed, or the steps may be executed in parallel.
S204: and sending link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes a listening link with the master device according to the link information and listens to data transmitted on the first communication link.
After the central slave device establishes the second communication link with the peripheral slave device, the central slave device may transmit link information of the first communication link to the peripheral slave device through the second communication link to provide information of establishing a listening (Listen) link to the peripheral slave device. The link information of the first communication link includes, but is not limited to, time information, frequency information, encoding rule, and encryption information of the link. Optionally, the link information may further include access address information. The central slave device is responsible for distributing link information of the first communication link in the slave device local area network, and the peripheral slave device can establish a synchronous listening (listen) link according to the information to acquire data distributed on the first communication link.
After the three links of the first communication link, the second communication link and the listening link of the wireless network system are established, the central slave device can provide a data Quality of Service (QoS) for the peripheral slave device to ensure the reliability of data distribution of the wireless network system.
The following describes the data quality service of the wireless network system in detail:
for the wireless network system, in order to ensure stable and reliable transmission and distribution of various types of data, various handshaking mechanisms are considered in standard design by a general communication protocol, and the data can be ensured to be delivered according to a predetermined plan. Among them, the handshake mechanism mentioned here is used to ensure the quality of data transmission, so as to perform smooth data transmission and provide reliable data service.
In the network topology structure of this embodiment, data distributed by the master device can be sent in the whole slave device lan safely, reliably and in real time without changing the master device, and therefore, the reliability of the three links needs to be ensured.
In this embodiment, the first communication link may use a standard communication protocol, such as BLE (Bluetooth Low Energy), BT (Bluetooth, classic Bluetooth technology standard), WI-FI, to perform data transmission and data quality service.
The second communication link, like the first communication link, may also be based on a standard protocol, such as WI-FI communication, bluetooth communication, IrDA communication, or the like. The communication protocols used by the first communication link and the second communication link may be the same or different.
For this wireless network system, the reliability of data distribution depends on the reliability of the listening link. Since the peripheral slave devices acquire the required data through a silent listening manner, the master device cannot sense the existence of the peripheral slave devices, and therefore, reliable data quality service cannot be provided through a standard protocol. Therefore, in this embodiment, a method for providing data quality service for peripheral slave devices through a central slave device is provided, which includes:
when the Received Signal Strength (RSSI) of the listening link is higher than the receiving sensitivity of the peripheral slave device and under the condition of no interference, the peripheral slave device can correctly analyze the data packet to obtain the required data, and at the moment, the listening is normal, and the peripheral slave device can obtain the data distributed by the master device through the listening link.
The peripheral slave device cannot directly acquire data through the listening link when the received signal strength is below the sensitivity condition or there is interference. In this embodiment, when the interception fails, the central slave Device of the slave Device local area network (Device Lan) provides a data quality service (QoS service) for each peripheral slave Device, that is, when there is an abnormality in the interception link, the peripheral slave Device provides a data request service to the central slave Device through the second communication link, and the central slave Device retransmits the relevant data to the corresponding peripheral slave Device after receiving the data request message.
There are three cases for the actual data transmission process, which are described as follows:
fig. 4 shows a situation where both the first communication link and the listening link receive normally. When the first communication link and the listening link are both normal, the central slave device receives data through the first communication link, and the peripheral slave device receives data transmitted on the first communication link through the listening link.
In this case, the data transmission process is as follows: as shown in fig. 4, the master device (Audio Source) sends a Packet (Packet _ n) to the Central slave device through the first communication link during a connection Interval (Connect Interval), and receives a response message (ACK _ n) returned by the Central slave device (Audio Sink/Central), wherein the response message indicates that the Packet is normally not lost. Then, the master device continues to send the next data Packet (Packet _ n +1) to the central slave device in the next connection period, and receives a response message (ACK _ n +1) returned from the central slave device.
For the central slave device (Audio sink/central), in a connection period, it receives a data Packet (Packet _ n) sent by the master device through the first communication link, and returns a response message (ACK _ n) to the master device, where the response message is used to indicate that the data Packet is normally not lost. Then, the central slave device continues to receive the next data Packet (Packet _ n +1) sent by the master device in the next connection period, and returns a response message (ACK _ n +1) to the master device.
For the peripheral slave (Audio sink/peers), a data Packet (Packet _ n) and a response message (ACK _ n) are received via the listening link during a connection period. Thereafter, the peripheral slave device continues to receive the next Packet (Packet _ n +1) and a response message (ACK _ n +1) in the next connection interval. I.e. data transmitted bi-directionally over the first communication link, is audible to all peripheral slaves.
Fig. 5 shows a situation where the central slave device data reception in the first communication link fails. When the master device fails to receive ACK acknowledgement information (response message) returned by the central slave device as expected, the master device automatically retransmits the previous data according to the standard communication protocol definition until the data transmission is successful or the data is abandoned due to failure or the link is disconnected due to timeout, and the same data may be received in the listening (Listen) link many times in the process, so that the repeated listening data needs to be filtered before data processing.
In this case, the data transmission process is as follows:
as shown in fig. 5, the master device (Audio Source) sends a data Packet (Packet _ n) to the central slave device through the first communication link in a connection period (Connect Interval), but fails to receive a response message (ACK _ n) returned by the central slave device, which indicates that the data Packet is lost or other abnormalities exist. At this time, in the next connection period, the master device retransmits the data Packet (Packet _ n Re-TX), and if a response message (ACK) corresponding to the retransmitted data Packet is received, the master device normally transmits the next data Packet in the next connection period, otherwise, the master device continues retransmitting the data Packet until the data fails or the link is disconnected due to time-out.
For the central slave device (Audio sink/central), in one connection period, the data Packet sent by the master device is not received through the first communication link, so that no response message is returned to the master device, until in the next connection period, the central slave device receives the data Packet (Packet _ n) retransmitted by the master device and returns a response message (ACK) to the master device.
For the peripheral slave devices (Audio sink/peers), a data Packet (Packet _ n) is received through the listening link in one connection period, and the response message returned by the central slave device is not listened to due to the abnormality of the first communication link. Upon receiving the retransmitted Packet (Packet _ n Duplicate) and the response message (ACK) in the next connection period, the peripheral device filters out the received Duplicate packets.
Fig. 6 shows a process of sending a data packet of a failed listening to the central slave device by requesting the peripheral slave device to send the data packet after the data listening failed.
In this case, the data transmission process is as follows:
as shown in fig. 6, for the master device (Audio Source), during one connection period (Connect Interval), a data Packet (Packet _ n) is sent to the central slave device through the first communication link, and a response message (ACK) returned by the central slave device is received. In the next connection period, the next data Packet (Packet _ n +1) is sent, and a response message returned by the central slave device is received.
For the Central slave (Audio sink/Central), in a connection period, a data Packet (Packet _ n) sent by the master is received through the first communication link, and a response message (ACK) is returned to the master. In addition, due to the abnormal condition of the listening link, the peripheral slave device cannot listen to the data Packet (Packet _ n), the central slave device also receives a request data Packet (Reqpacket _ n) from the peripheral slave device (Audio sink/peripherals) through a second communication link, the central slave device responds to the request data Packet to send the data Packet (Packet _ n) received through the first communication link to the peripheral slave device, and the peripheral slave device receives the data Packet (Packet _ n) through the second communication link. In the next connection period, the central slave device receives the next data Packet (Packet _ n +1) and returns a response message to the master device.
For the peripheral slave device, in one connection period, the data Packet (Packet _ n) sent by the master device cannot be obtained through the listening link, so that the request data Packet (ReqPacket _ n) is sent to the central slave device through the second communication link, and the data Packet (Packet _ n) which cannot be received by the central slave device through the listening link is obtained from the central slave device. In the next connection cycle, the peripheral slave device listens to the next Packet (Packet _ n +1) and the response message (ACK).
As can be seen from the above, when the monitoring link is abnormal, the central slave device receives a data request message of the peripheral slave device with the abnormal monitoring link; and the central slave device responds to the data request message and sends data requested by the data request message to the peripheral slave device with abnormal listening link, wherein the data comprises the data sent by the master device through the first communication link. Thus, data distribution reliability is ensured.
In this embodiment, since the central slave device needs to provide a data quality service for the peripheral slave device, in order to ensure the reliability of data transmission, the central slave device and the peripheral slave device in the slave device local area network may perform role and link switching.
In the network topology of the present embodiment, there are three roles: a master device, a central slave device and a peripheral slave device. During the operation, the central slave device and the peripheral slave device can be switched according to the specific conditions of each slave device, such as power information and average data packet receiving conditions. And simultaneously with the role switching, the corresponding link switching is synchronously carried out. The usual handover procedure is as follows:
and the central slave equipment performs central slave equipment switching according to the set rule and the information of the peripheral slave equipment. Specific examples thereof include:
when the set rule is satisfied, the central slave device is switched to the peripheral slave device, and the first communication link carried on the central slave device is also switched to the listening link. The set rule may be a rule in an adopted communication protocol, or may be a rule different from the rule in the communication protocol, which is set by a person skilled in the art according to actual needs.
Meanwhile, a corresponding peripheral slave device is switched to be the central slave device, and a previous listening link is also switched to be the first communication link. This switching process occurs at the same point in time, and is transparent to the master device, which does not need to perceive this change.
The setting rule and method for switching may be different depending on the communication protocol used.
The networking method can establish a wireless network system suitable for wireless data distribution, realize data sharing of multiple users and meet the service requirement of data distribution quality. According to the set rule, the center slave device can perform role switching and link switching without influencing the master device.
EXAMPLE III
Fig. 7 is a flowchart illustrating a networking method according to a third embodiment of the present application. As shown in fig. 7, the method is used to establish a wireless network system, which includes a master device and slave devices, wherein the master device can perform data transmission with the slave devices, and the slave devices include a central slave device and at least one peripheral slave device. The central slave device is used for being connected with and communicating with the master device, forming a slave device local area network with the peripheral slave devices, and sending link information of the first communication link to the peripheral slave devices through the slave device local area network. The peripheral slave device may establish a listening link to listen for data of the first communication link based on the link information of the first communication link. The slave devices include at least one central slave device and at least one peripheral slave device.
In this embodiment, a networking method provided in the embodiment of the present application is described from the perspective of a peripheral slave device.
The networking method comprises the following steps:
s301: and establishing a second communication link with the central slave equipment to form a slave equipment local area network, wherein the first communication link is established between the central slave equipment and the master equipment.
The process and manner of establishing the first communication link between the central slave device and the master device are similar to those of the foregoing embodiment in which the central slave device is used as the execution subject, and therefore, the description thereof is omitted here.
The second communication link established between the peripheral slave device and the central slave device is a corresponding link according to different communication connection modes adopted by the central slave device and the peripheral slave device, for example, when the communication connection mode is adopted, the second communication link is a bluetooth connection link. When the connection is carried out in an infrared (IrDA) mode, the second communication link is an infrared connection link.
When the peripheral slave device and the central slave device establish the second communication link, in a feasible manner, the process and the manner for establishing the second communication link may be similar to those of the foregoing embodiment in which the central slave device is used as an execution subject, and therefore, details are not described herein again.
S302: link information of the first communication link is acquired from the central slave device.
After the peripheral slave device establishes the second communication link with the central slave device, the peripheral slave device acquires link information of the first communication link sent by the central slave device through the second communication link so that the peripheral slave device establishes a listening link. The link information includes, but is not limited to, time information, frequency information, encoding rules, and encryption information.
S303: and establishing a listening link with the main equipment according to the link information, and listening the data transmitted on the first communication link.
The peripheral slave device may establish a synchronous listening (listen) link according to the parameter of the received link information, and obtain data distributed on the first communication link.
According to the networking method, when the master device sends data to the central slave device through the first communication link, each peripheral slave device can acquire the data sent to the central slave device by the master device through the monitoring link, and data sharing of one master device to a plurality of slave devices is achieved. Similarly, the peripheral slave device may also obtain data sent by the central slave device to the master device through the first communication link through the listening link. In addition, the master device only communicates with one slave device, namely the central slave device, and sends data to the master device, the peripheral slave devices in the slave device local area network are transparent to the master device, and the master device does not need to perform connection and data interaction with the peripheral slave devices, which are the same as those of the central slave device, so that the data processing burden of the master device and the whole network system is reduced, and the data processing efficiency is improved.
Example four
Fig. 8 is a flowchart illustrating a networking method according to a fourth embodiment of the present application. As shown in fig. 8, the method is used to construct a wireless network system. The wireless network system comprises a master device and a slave device, wherein the master device can carry out data transmission with the slave device, and the slave device comprises a central slave device and at least one peripheral slave device. The central slave device is used for being connected with and communicating with the master device, forming a slave device local area network with the peripheral slave devices, and sending link information of the first communication link to the peripheral slave devices through the slave device local area network. The peripheral slave device may establish a listening link to listen for data of the first communication link based on the link information of the first communication link. The slave devices include at least one central slave device and at least one peripheral slave device.
In this embodiment, a networking method provided in the embodiment of the present application is described from the perspective of a peripheral slave device.
The networking method comprises the following steps:
s401: and establishing a second communication link with the central slave equipment to form a slave equipment local area network, wherein the first communication link is established between the central slave equipment and the master equipment.
In one possible approach, the manner in which the first communication link is established between the central slave device and the master device may include: the center slave equipment carries out system broadcasting to broadcast a system address; when the main device scans the broadcasted system address, a first connection request is initiated, and the central slave device responds to the first connection request and establishes a first communication link with the main device.
The second communication link established between the peripheral slave device and the central slave device is a corresponding link according to different communication connection modes adopted by the central slave device and the peripheral slave device, for example, when the communication connection mode is adopted, the second communication link is a bluetooth connection link. When the connection is carried out in an infrared (IrDA) mode, the second communication link is an infrared connection link.
In one possible approach, the process of establishing the second communication link may include: according to pairing information (the pairing information includes but is not limited to identity information, key information and the like) with the central slave equipment, a private address is sent to the central slave equipment through directional broadcasting, so that the central slave equipment initiates a second connection request after scanning the private address; and receiving a second connection request sent by the center slave equipment, and establishing a second communication link with the center slave equipment to form a slave equipment local area network.
The peripheral slave device carries out directional broadcast on the central slave device according to the pairing information with the central slave device, sends a private address to the central slave device, initiates a second connection request after the central slave device directionally scans the private address sent by the peripheral slave device, and responds to the second connection request to establish a second communication link with the central slave device so as to form a slave device local area network after the peripheral slave device receives the second connection request.
S402: link information of the first communication link is acquired from the central slave device.
The link information may include different parameters according to the communication mode and the communication protocol used, and the link information may include, but is not limited to, time information, frequency information, encoding rules, encryption information, and the like.
The peripheral slave device acquires link information of the first communication link from the central slave device through the second communication link.
S403: and establishing a listening link with the main equipment according to the link information, and listening the data transmitted on the first communication link.
After the peripheral slave device acquires the link information of the first communication link from the central slave device, the interception link of the interception master device can be established according to the link information, so that the data distributed by the master device can be acquired.
S404: and when the interception link has abnormity, sending a data request message to the central slave equipment.
Exceptions to the listening link include, but are not limited to, loss of data packets by the peripheral slave, disconnection of the listening link, etc.
When the listening link is abnormal, the peripheral slave device sends a data request message to the central slave device through the second communication link, and the data request message is used for requesting lost data packets from the central slave device.
S405: and receiving data requested by a data request message returned by the center slave equipment through a second communication link, wherein the data comprises data sent by the master equipment through the first communication link.
And the peripheral slave device receives the data returned by the central slave device from the central slave device through the second communication link so as to ensure the reliability of data distribution.
The networking method can establish a wireless network system suitable for wireless data distribution, realize data sharing of multiple users and meet the service requirement of data distribution quality. According to the set rule, the center slave device can perform role switching and link switching without influencing the master device.
EXAMPLE five
Fig. 9 shows a block diagram of a chip according to an embodiment of the present application. As shown in fig. 9, the chip of the present embodiment may be provided in a slave device, and the chip of the present embodiment includes: a first establishing module 901, configured to establish a first communication link with a master device; a second establishing module 902, configured to establish a second communication link with at least one peripheral slave device to form a slave device local area network; a first sending module 903, configured to send link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes a listening link with the master device according to the link information, and listens to data transmitted on the first communication link.
The chip establishes a first communication link with the master device through the first establishing module, and establishes a second communication link with at least one peripheral slave device through the second establishing module to form a slave device local area network. The chip sends the link information of the first communication link to the peripheral slave device through the first sending module, so that each peripheral slave device can establish an interception link according to the link information, and obtains data sent to the chip by the master device through the interception link, thereby realizing data sharing of one master device to a plurality of slave devices (namely, the chip). In addition, the master device only communicates with one slave device, namely the central slave device (namely the chip), and sends data to the master device, the peripheral slave devices in the slave device local area network are transparent to the master device, and the master device does not need to perform connection and data interaction with the peripheral slave devices, so that the data processing burden of the master device and the whole network system is reduced, and the data processing efficiency is improved.
EXAMPLE six
Fig. 10 shows a block diagram of a chip according to a sixth embodiment of the present application. As shown in fig. 10, the chip of the present embodiment may be provided in a slave device, and the chip of the present embodiment includes: a first establishing module 1001 configured to establish a first communication link with a master device; a second establishing module 1002, configured to establish a second communication link with at least one peripheral slave device, so as to form a slave device local area network; a first sending module 1003, configured to send link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes a listening link with the master device according to the link information, and listens to data transmitted on the first communication link.
Optionally, the first sending module 1003 is further configured to send a system broadcast message, so that the master device initiates the first connection request after scanning the system broadcast message; the chip further includes a first receiving module 1004, configured to receive a first connection request sent by the master device; a first establishing module 1001 in the chip, configured to establish a first communication link with the master device according to the received first connection request.
Optionally, the chip further comprises: an orientation scanning module 1005, configured to perform orientation scanning on each peripheral slave device according to pairing information with at least one peripheral slave device; the first receiving module 1004 is further configured to receive a private address sent by each peripheral slave device through directional broadcast, where the private address of each peripheral slave device is different; a second establishing module 1002 in the chip, configured to respectively establish a second communication link with the corresponding peripheral slave device according to the private address of each peripheral slave device received by the first receiving module 1004, so as to form a slave device local area network.
Optionally, the link information of the first communication link includes: time information, frequency information, encoding rules, and encryption information.
The chip establishes a first communication link with the master device through the first establishing module, and establishes a second communication link with at least one peripheral slave device through the second establishing module to form a slave device local area network. The chip sends the link information of the first communication link to the peripheral slave device through the first sending module, so that each peripheral slave device can establish an interception link according to the link information, and obtains data sent to the chip by the master device through the interception link, thereby realizing data sharing of one master device to a plurality of slave devices (namely, the chip). In addition, the master device only communicates with one slave device, namely the central slave device (namely the chip), and sends data to the master device, the peripheral slave devices in the slave device local area network are transparent to the master device, and the master device does not need to perform connection and data interaction with the peripheral slave devices, so that the data processing burden of the master device and the whole network system is reduced, and the data processing efficiency is improved.
EXAMPLE seven
Fig. 11 shows a block diagram of a chip according to a seventh embodiment of the present application. As shown in fig. 11, the chip of the present embodiment may be provided in a slave device, and the chip of the present embodiment includes: a third establishing module 1101, configured to establish a second communication link with a central slave device to form a slave device local area network, where a first communication link is established between the central slave device and a master device; a link information obtaining module 1102, configured to obtain link information of the first communication link from the central slave device; an intercepting link establishing module 1103, configured to establish an intercepting link with the master device according to the link information, and intercept data transmitted on the first communication link.
The chip establishes a second communication link with the central slave equipment through a third establishing module and forms a slave equipment local area network. The link information of a first communication link between the central slave device and the master device is acquired through the link information acquisition module, and the interception link is established through the interception link establishment module to acquire data sent by the master device to the central slave device, so that data sharing of one master device to a plurality of slave devices (namely chips) is realized. In addition, the master device only communicates with one slave device, namely the central slave device, and sends data to the master device, the peripheral slave devices (namely chips) in the slave device local area network are transparent to the master device, and the master device does not need to perform connection and data interaction with the peripheral slave devices, so that the data processing burden of the master device and the whole network system is reduced, and the data processing efficiency is improved.
Example eight
Fig. 12 shows a block diagram of a chip according to an eighth embodiment of the present application. As shown in fig. 12, the chip of the present embodiment may be provided in a slave device, and the chip of the present embodiment includes: a third establishing module 1201, configured to establish a second communication link with a central slave device to form a slave device local area network, where a first communication link is established between the central slave device and a master device; a link information obtaining module 1202, configured to obtain link information of the first communication link from the central slave device; the listening link establishing module 1203 is configured to establish a listening link with the host device according to the link information, and listen to data transmitted on the first communication link.
Optionally, the chip further comprises: a second sending module 1204, configured to send a data request message to the central slave device when there is an abnormality in the listening link; a second receiving module 1205, configured to receive, through the second communication link, data requested by the data request message returned by the central slave device, where the data includes data sent by the master device through the first communication link.
Optionally, the second sending module 1204 is further configured to send, according to the pairing information with the central slave device, the private address to the central slave device through directional broadcast, so that the central slave device initiates the second connection request after scanning the private address; a second receiving module 1205, configured to receive a second connection request sent by the central slave device; a third establishing module 1201, configured to establish a second communication link with the central slave device according to the received second connection request, so as to form a slave device local area network.
Optionally, the link information of the first communication link includes: time information, frequency information, encoding rules, and encryption information (i.e., encryption rules).
The chip establishes a second communication link with the central slave equipment through a third establishing module and forms a slave equipment local area network. The link information of a first communication link between the central slave device and the master device is acquired through the link information acquisition module, and the interception link is established through the interception link establishment module to acquire data sent by the master device to the central slave device, so that data sharing of one master device to a plurality of slave devices (namely chips) is realized. In addition, the master device only communicates with one slave device, namely the central slave device, and sends data to the master device, the peripheral slave devices (namely chips) in the slave device local area network are transparent to the master device, and the master device does not need to perform connection and data interaction with the peripheral slave devices, so that the data processing burden of the master device and the whole network system is reduced, and the data processing efficiency is improved.
In practical applications, the chips in the fifth or sixth embodiment and the chips in the seventh or eighth embodiment may be combined, or may be independently arranged. The two can be set in the same slave device at the same time, when the slave device is the central slave device, the function of the chip in the fifth or sixth embodiment is executed; when the slave is a peripheral slave, the functions of the chip in embodiment seven or eight are performed.
Example nine
Fig. 13 is a block diagram illustrating a wireless network system according to an embodiment nine of the present application. As shown in fig. 13, the wireless network system of the present embodiment includes a master device 10 and a slave device, and the master device 10 can perform data transmission with the slave device. The slave devices include a central slave device 21 and at least one peripheral slave device 22. Wherein the central slave 21 is configured to connect and communicate with the master 10, and to form a slave local area network with the peripheral slave 22, and to transmit link information of the first communication link to the peripheral slave 22 through the slave local area network. Peripheral slave device 22 may establish a listening link to listen for data of the first communication link based on the link information of the first communication link. The chip of the foregoing fifth embodiment or sixth embodiment may be applied to a central slave device. The wireless network system can be constructed by the networking method of the first embodiment or the second embodiment.
The first communication link and the second communication link may use different wireless communication protocols, or may use the same wireless communication protocol.
The wireless network system can be applied to wireless data distribution and transmission scenes, for example, a mobile terminal (such as a mobile phone, a pad, and the like) sends audio, voice, and the like to a wireless headset; for another example, multiple users share data, and multiple wireless video and audio sharing is realized; for another example, the wireless network system may be applied to the internet of things, and implement data distribution of a wireless local area network, and one master device may distribute data to a plurality of slave devices. Of course, the wireless network system can also be applied to other wireless network use environments to realize data distribution.
The master device 10 may be a data source device for actively establishing a first communication link with the central slave device 21 and distributing data over the first communication link. The main device 10 may be a source device for storing and transmitting data, and may be a mobile terminal such as a mobile phone storing music files or a television playing videos, etc.
The slave device is used to retrieve data from the master device 10. The slave device may be a sink device. A sink device is a device that receives data from a source device and may be any suitable wireless terminal device such as a wireless headset, speaker, etc. The number of the slave devices is at least two, one of the slave devices is connected with the master device 10, a first communication link is established, the slave device is the center slave device 21, and the center slave device 21 acquires data from the master device 10 through the first communication link. The other slave devices are peripheral slave devices 22, and each peripheral slave device 22 establishes a second communication link with the central slave device 21 to form a slave device local area network. The slave lan may be any suitable lan topology, including but not limited to a star topology or the like. Each peripheral slave device 22 establishes a listening link with the master device 10 and obtains data from the master device 10 via the listening link.
In this embodiment, the wireless network system has three links: a first communication link established between the master device 10 and the central slave device 21, a second communication link established between the central slave device 21 and each peripheral slave device 22, and a listening (Listen) link established between each peripheral slave device 22 and the master device 10, all of which are wireless links, and may also be partially wired links.
The first communication link and the second communication link may be based on different wireless communication protocols or standards according to different wireless transmission modes. For example, the master device 10 and the central slave device 21 may communicate via WI-FI and establish a first communication link according to a WI-FI communication protocol, and the central slave device 21 and the peripheral slave device 22 may communicate via bluetooth and establish a second communication link according to a bluetooth communication protocol.
Optionally, the master device 10 scans for and listens to the system broadcast messages sent by the slave devices, and establishes the first communication link with the slave device corresponding to the scanned and listened to system broadcast message. When the first communication link is established, a connection is established between the master device 10 and any one of a plurality of (at least two) slave devices. The system broadcast message that is again scanned for detection by the master device 10 after the connection setup is complete will be ignored. In one possible approach, multiple slaves may transmit the system broadcast message to the master 10 in a time division multiplexing manner, that is, each slave transmits the system broadcast message to the master 10 within a certain set time period, after the master 10 scans a certain system broadcast message within a certain time period, that is, after the certain system broadcast message is scanned within the certain time period, the slave that transmits the system broadcast message within the certain time period is determined as the slave to be connected, and a first communication link is established therewith, and accordingly, the slave to be connected becomes the central slave 21.
The master device 10 serves as a master of the first communication link and is responsible for link creation, link parameter management, data interaction, and the like. Wherein the link parameters may be carried in link information sent by the central slave device 21 to the peripheral slave device 22. The link parameters may include different parameters depending on the communication protocol employed. Taking bluetooth low energy (ble) as an example, the link parameters include, but are not limited to: connection interval information, frequency hopping algorithm information, frequency hopping interval information, frequency hopping channel map information, link timeout time, link allowable delay parameter, time information, frequency information, coding rule, encryption information, and the like.
A slave local area network between multiple slaves is initiated and established by the central slave 21. For example, the central slave device 21 scans for directional broadcast messages transmitted by the listening peripheral slave device 22 to the central slave device 21, and the peripheral slave device 22 corresponding to the scanned listening directional broadcast message establishes a second communication link.
In the process of establishing the slave device local area network between the slave devices, information interaction is firstly carried out between the slave devices to acquire information for establishing the slave device local area network, such as identity information, key information and the like of the slave devices. Wherein the identity information may comprise a private address for uniquely identifying the corresponding slave device.
Based on the exchanged information, the central slave device 21 scans and listens to the peripheral slave devices 22 directionally, establishes a second communication link with the peripheral slave devices 22 when scanning and listening to the directional broadcast messages sent by the peripheral slave devices 22, and forms a local area network formed by a plurality of slave devices, namely a slave device local area network. The slave device that establishes the first communication link with the master device 10 is used as a central slave device 21 of the slave device lan, and is responsible for managing the peripheral slave device 22 that joins the device lan, establishing the second communication link with the peripheral slave device 22, and performing data interaction.
The slave lan established by the central slave 21 and the peripheral slaves 22 may be a star network structure, or may be a scatternet structure with a more complex structure or other suitable structures, such as a structure in which one device exists in a plurality of PICONETs at the same time, and data may be relayed through the network nodes.
After the central slave device 21 and the master device 10 successfully establish the first communication link, the central slave device 21 sends link information related to the first communication link to each peripheral slave device 22 connected thereto, so that each peripheral slave device 22 can establish a listening link with the master device 10. That is, for the peripheral slave devices 22, each peripheral slave device 22 acquires the link information of the first communication link from the central slave device 21 through the second communication link, and establishes a listening link according to the link information. After the listening link is successfully established, each peripheral slave device 22 listens to the communication between the master device 10 and the central slave device 21 through the listening link, and acquires data transmitted from the master device 10 to the central slave device 21 from the master device 10 according to the listening result. For example, when the master device 10 sends data (e.g., application data) to the central slave device 21, the peripheral slave device 21 may obtain the data by listening.
In some cases, when there is an abnormality in the listening link, for example, the listening link signal strength is lower than a predetermined strength, or the data packet reception rate is lower than a predetermined reception rate, the center slave device 21 retransmits the data, which cannot be correctly received by listening to the first communication link, to the peripheral slave device 22 through the second communication link. That is, the central slave device 21 can provide data distribution quality service for the peripheral slave device 22 when the listening link is abnormal, and through the service, the peripheral slave device 22 which listens the link is abnormal can acquire the missing data from the central slave device 21, so that the integrity of the data is ensured.
In addition, in some cases, the central slave device 21 and the peripheral slave device 22 may also perform switching of the central slave device according to a set rule, that is, perform role switching, for example, the central slave device 21 may be switched according to a set rule according to the states of the central slave device 21 and the peripheral slave device 22, so as to ensure reliability of data transmission and data distribution quality.
For example, the setting rule may be set by a person skilled in the art as appropriate according to actual needs, and if the device power of the current central slave device 21 cannot reach the set device power, or the signal strength cannot meet the set signal strength, or the data transmission/reception probability cannot meet the set probability, a current central slave device may be selected from the plurality of peripheral slave devices 22 to replace the current central slave device, and the current central slave device may serve as a new peripheral slave device, so as to perform role switching of the central slave device 21.
This switching process is performed inside the slave lan, since all slaves in the slave lan communicate with the master 10 via a uniform address, the switching is transparent to the master 10, thus ensuring the stability of the system.
The master device 10 of the wireless network system of this embodiment establishes a connection with only one of the plurality of slave devices (i.e., the central slave device 21), and only needs to distribute data through its corresponding first communication protocol (which may be a standard communication protocol) on the first communication link, so that the data processing amount of the master device 10 is small, and the data processing efficiency of the master device 10 is high.
All the slave devices in the wireless network system form a slave device local area network, a plurality of peripheral slave devices 22 establish a listening link with the master device 10 based on the link information of the first communication link provided by the central slave device 21 in the slave device local area network, and data transmitted by the master device 10 at a time can be shared by the plurality of slave devices through the listening link, so that the data sharing efficiency is improved, and no additional load is added to the data processing of the master device.
The peripheral slave device 21 in the device lan obtains data and data quality service (data quality service is a service mechanism for ensuring that a data receiving party can obtain complete data and is used for ensuring the reliability of data transmission) through the listening link and the second communication link with the central slave device 21, that is, all the distributed data of the master device 10 can be obtained, and the integrity of the data obtained by the peripheral slave device 21 is ensured, thereby ensuring the reliability of the wireless network system.
The wireless network system is scalable and new peripheral slave devices 22 can be added to the slave device lan conveniently as long as the total capacity of the slave device lan is not exceeded. Each slave device can adopt a uniform configuration (that is, the hardware configuration and the software configuration of each slave device are the same, so that in the wireless network system, although the initial allocation of each slave device is different, the slave device is in different network roles, and the roles of the slave devices can be switched according to actual requirements in the following process).
The total capacity of the slave device local area network may be determined based on several factors, such as data throughput rate, probability of successful data reception for the current listening link, and the like.
In summary, the central slave device of the wireless network system can obtain the data quality service from the master device, and the peripheral slave devices can obtain the data quality service from the central slave device, so as to ensure that each slave device can obtain complete data, thereby ensuring the stability of data transmission and the data transmission quality. In addition, the slave equipment local area network can be convenient for adding new peripheral slave equipment, and the expandability of the network is increased. Each peripheral slave device acquires data distributed to the central slave device by the master device through the interception link, the purpose that the master device can enable a plurality of users to share the data by only establishing one link is achieved, the requirement of multi-user data sharing is met, the master device only establishes one link and only communicates with the central slave device, data processing burden is reduced, and data processing efficiency is improved. In a word, the wireless network system can meet the wireless data transmission requirements of multiple clients, a quality service system for wireless network data distribution is established, and each client can correctly and timely receive data distributed by a data source.
Example ten
The present embodiment provides a wireless network system including a master device, a central slave device, and a peripheral slave device, to which the chips of the foregoing seventh or eighth embodiments can be applied.
The wireless network system can be constructed by the networking method of the third embodiment or the fourth embodiment.
The central slave equipment of the wireless network system can obtain data quality service from the main equipment, and the peripheral slave equipment can obtain the data quality service from the central slave equipment, so that each slave equipment can obtain complete data, and the stability of data transmission and the data transmission quality are ensured. In addition, the slave equipment local area network can be convenient for adding new peripheral slave equipment, and the expandability of the network is increased. Each peripheral slave device acquires data distributed to the central slave device by the master device through the interception link, the purpose that the master device can enable a plurality of users to share the data by only establishing one link is achieved, the requirement of multi-user data sharing is met, the master device only establishes one link and only communicates with the central slave device, data processing burden is reduced, and data processing efficiency is improved. In a word, the wireless network system can meet the wireless data transmission requirements of multiple clients, a quality service system for wireless network data distribution is established, and each client can correctly and timely receive data distributed by a data source.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present application, and are not limited thereto; although the embodiments of the present application have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (18)

1. A networking method, the method comprising:
establishing a first communication link with a master device;
establishing a second communication link with at least one peripheral slave device to form a slave device local area network;
sending link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes a listening link with the master device according to the link information and listens to data transmitted on the first communication link;
when one of the at least one peripheral slave device is determined as a new central slave device by a central slave device, the central slave device and the selected peripheral slave device perform role switching in a slave device local area network so that the selected peripheral slave device carries the first communication link, and the central slave device listens for data transmitted on the first communication link;
wherein the establishing a first communication link with a master device comprises:
sending a system broadcast message to enable the master device to initiate a first connection request after scanning the system broadcast message, wherein the system broadcast message is carried out based on a system address, and the system address is a unified address outside a local area network of the slave device;
and receiving the first connection request sent by the main equipment, and establishing a first communication link with the main equipment.
2. The method of claim 1, wherein establishing a second communication link with at least one peripheral slave device forming a slave device area network comprises:
according to the pairing information of at least one peripheral slave device, performing directional scanning on each peripheral slave device;
receiving a private address sent by each peripheral slave device through directional broadcasting, wherein the private address of each peripheral slave device is different;
and establishing a second communication link with the peripheral slave equipment corresponding to each private address respectively to form a slave equipment local area network.
3. The method of claim 1, wherein the link information of the first communication link comprises: time information, frequency information, encoding rules, and encryption information.
4. The method of claim 1, wherein the method further comprises:
when the monitoring link is abnormal, receiving a data request message of peripheral slave equipment with the abnormal monitoring link;
and responding to the data request message, and sending the data requested by the data request message to the peripheral slave equipment with abnormal listening link, wherein the data comprises the data sent by the master equipment through the first communication link.
5. A networking method, the method comprising:
establishing a second communication link with a center slave device to form a slave device local area network, and establishing a first communication link between the center slave device and a master device;
obtaining link information of the first communication link from the central slave device;
establishing an interception link with the main equipment according to the link information, and intercepting data transmitted on the first communication link;
when a peripheral slave device is determined as a new central slave device by the central slave device, the central slave device and the selected peripheral slave device perform role switching in a slave device local area network so that the peripheral slave device bears the first communication link, and the central slave device listens for data transmitted on the first communication link;
wherein the central slave device establishes the first communication link with the master device by:
sending a system broadcast message to enable the master device to initiate a first connection request after scanning the system broadcast message, wherein the system broadcast message is carried out based on a system address, and the system address is a unified address outside a local area network of the slave device;
and receiving the first connection request sent by the main equipment, and establishing the first communication link with the main equipment.
6. The method of claim 5, wherein the method further comprises:
when the monitoring link is abnormal, sending a data request message to the central slave equipment;
and receiving data requested by the data request message returned by the center slave equipment through the second communication link, wherein the data comprises data sent by the master equipment through the first communication link.
7. The method of claim 5, wherein the link information of the first communication link comprises: time information, frequency information, encoding rules, and encryption information.
8. The method of claim 5, wherein establishing a second communication link with a central slave device forming a slave device local area network comprises:
according to pairing information with the center slave equipment, a private address is sent to the center slave equipment through directional broadcasting, so that the center slave equipment initiates a second connection request after scanning the private address;
and receiving the second connection request sent by the center slave equipment, and establishing a second communication link with the center slave equipment to form a slave equipment local area network.
9. A chip, the chip comprising:
the first establishing module is used for establishing a first communication link with the main equipment;
the second establishing module is used for establishing a second communication link with at least one peripheral slave device to form a slave device local area network;
a first sending module, configured to send link information of the first communication link to each peripheral slave device, so that each peripheral slave device establishes an interception link with the master device according to the link information, and intercepts data transmitted on the first communication link;
a first switching module, configured to, when one of the at least one peripheral slave devices is determined by a central slave device as a new central slave device, cause the central slave device to perform role switching with the selected peripheral slave device within a slave device local area network, so that the selected peripheral slave device carries the first communication link, and the central slave device listens to data transmitted on the first communication link;
the first sending module is further configured to send a system broadcast message, so that a master device initiates a first connection request after scanning the system broadcast message, where the system broadcast message is performed based on a system address, and the system address is a unified address outside a local area network of the slave device;
the chip also comprises a first receiving module used for receiving the first connection request sent by the main equipment;
the first establishing module in the chip is configured to establish a first communication link with the master device according to the received first connection request.
10. The chip of claim 9, wherein the chip further comprises:
the directional scanning module is used for directionally scanning each peripheral slave device according to the pairing information of the peripheral slave device and at least one peripheral slave device;
the first receiving module is further configured to receive a private address sent by each peripheral slave device through directional broadcast, where the private address of each peripheral slave device is different;
the second establishing module in the chip is configured to respectively establish a second communication link with a corresponding peripheral slave device according to the private address of each peripheral slave device received by the first receiving module, so as to form a slave device local area network.
11. The chip of claim 9, wherein the link information of the first communication link comprises: time information, frequency information, encoding rules, and encryption information.
12. The chip of claim 9,
the first receiving module is further configured to receive a data request message of a peripheral slave device with an abnormal listening link when the listening link is abnormal;
the first sending module is further configured to send, in response to the data request message, data requested by the data request message to a peripheral slave device with an abnormal listening link, where the data includes data sent by the master device through the first communication link.
13. A chip, the chip comprising:
the third establishing module is used for establishing a second communication link with the central slave equipment to form a slave equipment local area network, and a first communication link is established between the central slave equipment and the master equipment;
a link information acquisition module for acquiring link information of the first communication link from the center slave device;
the intercepting link establishing module is used for establishing an intercepting link with the main equipment according to the link information and intercepting data transmitted on the first communication link;
a second switching module, configured to, when a peripheral slave device is determined by the central slave device as a new central slave device, perform role switching with the selected peripheral slave device within a slave device local area network, so that the peripheral slave device carries the first communication link, and the central slave device listens to data transmitted on the first communication link;
wherein the central slave device establishes the first communication link with the master device by:
sending a system broadcast message to enable the master device to initiate a first connection request after scanning the system broadcast message, wherein the system broadcast message is carried out based on a system address, and the system address is a unified address outside a local area network of the slave device;
and receiving the first connection request sent by the main equipment, and establishing the first communication link with the main equipment.
14. The chip of claim 13, wherein the chip further comprises:
the second sending module is used for sending a data request message to the central slave equipment when the monitoring link is abnormal;
a second receiving module, configured to receive, through the second communication link, data requested by the data request message returned by the central slave device, where the data includes data sent by the master device through the first communication link.
15. The chip of claim 14,
the second sending module is further configured to send a private address to the central slave device through directional broadcast according to pairing information with the central slave device, so that the central slave device initiates a second connection request after scanning the private address;
the second receiving module is further configured to receive the second connection request sent by the central slave device;
and the third establishing module is configured to establish a second communication link with the central slave device according to the received second connection request, so as to form a slave device local area network.
16. The chip of claim 13, wherein the link information of the first communication link comprises: time information, frequency information, encoding rules, and encryption information.
17. A wireless network system comprising a master device, a central slave device and a peripheral slave device, to which central slave device the chip of any of claims 9-12 is applied.
18. A wireless network system comprising a master device, a central slave device and a peripheral slave device to which the chip of any of claims 13-16 is applied.
CN201880000257.3A 2018-01-25 2018-01-25 Networking method, chip and wireless network system Active CN108323246B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/074143 WO2019144343A1 (en) 2018-01-25 2018-01-25 Networking method, chip, and wireless network system

Publications (2)

Publication Number Publication Date
CN108323246A CN108323246A (en) 2018-07-24
CN108323246B true CN108323246B (en) 2021-11-12

Family

ID=62895905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880000257.3A Active CN108323246B (en) 2018-01-25 2018-01-25 Networking method, chip and wireless network system

Country Status (2)

Country Link
CN (1) CN108323246B (en)
WO (1) WO2019144343A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144930B (en) * 2018-09-25 2021-01-05 北京广利核系统工程有限公司 Method and device for rapidly storing analog quantity signals
CN109495869A (en) * 2018-11-30 2019-03-19 锐迪科微电子科技(上海)有限公司 Bluetooth connecting method and device
CN109618406B (en) * 2019-03-01 2019-07-05 展讯通信(上海)有限公司 Wireless connection method, equipment group, system
CN109831766B (en) * 2019-03-18 2022-03-11 恒玄科技(上海)股份有限公司 Data transmission method, Bluetooth equipment assembly and Bluetooth communication system
CN109743782B (en) 2019-03-29 2019-07-23 展讯通信(上海)有限公司 Communication means, device and equipment
CN110266444A (en) * 2019-07-08 2019-09-20 展讯通信(上海)有限公司 Data transmission method, device and equipment
CN110381490B (en) * 2019-07-24 2022-04-22 恒玄科技(上海)股份有限公司 Communication method for wireless earphone, wireless earphone and wireless equipment
KR20210020542A (en) * 2019-08-16 2021-02-24 삼성전자주식회사 Method for supporting multiple links in bluetooth network environment and electronic device thereof
CN110769445B (en) * 2019-10-28 2023-05-26 展讯通信(上海)有限公司 Data transmission method and device
CN111479295B (en) * 2020-03-06 2022-06-10 珠海格力电器股份有限公司 Data transmission method, system, device, equipment and storage medium
CN113115282B (en) * 2021-03-03 2023-07-04 深圳市云海物联科技有限公司 Thing communication method and system
CN113068166B (en) * 2021-03-17 2023-07-25 上海物骐微电子有限公司 Multi-device data transmission system and method based on relay

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105409245A (en) * 2013-08-09 2016-03-16 索诺瓦公司 Hearing assistance system and method
CN106792454A (en) * 2016-12-19 2017-05-31 建荣半导体(深圳)有限公司 Bluetooth communication method, communicator, communication system and electronic equipment

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020159401A1 (en) * 2001-04-25 2002-10-31 Brightcom Technologies Ltd. Masterless slave / master role switch in a bluetooth piconet
US7151745B2 (en) * 2001-11-08 2006-12-19 Broadcom Corporation Scalable synchronous packet transmit scheduler
US8768252B2 (en) * 2010-09-02 2014-07-01 Apple Inc. Un-tethered wireless audio system
CN102111827B (en) * 2011-02-28 2013-05-01 北京邮电大学 Switching control system and method in terminal collaboration of PAN
CN102684753A (en) * 2011-03-07 2012-09-19 中兴通讯股份有限公司 Wireless terminal, short-range SNS (social networking services) system and implementation method based on Bluetooth technology
CN103458483B (en) * 2012-05-31 2017-05-31 安凯(广州)微电子技术有限公司 Link control method and device between a kind of Bluetooth audio data transmission
CN102723094B (en) * 2012-06-15 2015-11-25 杭州海康威视数字技术股份有限公司 The video recording storage of highly reliable easy expansion, search method and system thereof
CN103810074B (en) * 2012-11-14 2017-12-29 华为技术有限公司 A kind of on-chip system chip and corresponding monitoring method
CN103687065B (en) * 2013-12-24 2017-01-25 广州爱的信息科技有限公司 Method for pairing and connecting intelligent terminal and wireless network sound equipment
CN105812899B (en) * 2014-12-31 2019-04-23 鸿富锦精密工业(深圳)有限公司 Electronic device group connects system and method
CN104968021B (en) * 2015-06-25 2020-01-10 福州瑞芯微电子股份有限公司 Bandwidth control method and device in Bluetooth shared network
CN105188022B (en) * 2015-09-29 2019-01-08 爱国者电子科技有限公司 Wireless routing device and communication means
CN105578553B (en) * 2015-12-23 2019-12-13 北京奇虎科技有限公司 data communication initiating, relaying and receiving method and device thereof
CN206350153U (en) * 2016-12-07 2017-07-21 歌尔科技有限公司 A kind of operation switching system of main equipment and slave unit
CN107135256A (en) * 2017-04-27 2017-09-05 建荣半导体(深圳)有限公司 Bluetooth communication method, communicator, communication system and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105409245A (en) * 2013-08-09 2016-03-16 索诺瓦公司 Hearing assistance system and method
CN106792454A (en) * 2016-12-19 2017-05-31 建荣半导体(深圳)有限公司 Bluetooth communication method, communicator, communication system and electronic equipment

Also Published As

Publication number Publication date
CN108323246A (en) 2018-07-24
WO2019144343A1 (en) 2019-08-01

Similar Documents

Publication Publication Date Title
CN108323246B (en) Networking method, chip and wireless network system
US10136429B2 (en) Method for transmitting and receiving audio data in wireless communication system supporting bluetooth communication and device therefor
US9654907B2 (en) System, method and apparatus for wireless network connection using near field communication
JP5000648B2 (en) Direct wireless client-to-client communication
US7882238B2 (en) Using bluetooth to establish ad-hoc connections between non-bluetooth wireless communication modules
KR101707364B1 (en) Apparatus and method for performing wireless docking service
US10051076B2 (en) Low power digital radio range extension
CN111436043B (en) Communication method, device, equipment and system of dual-wireless Bluetooth communication network
CN104539324B (en) Bluetooth low-power-consumption networking interconnecting method and system
US20180176851A1 (en) Method and device for transmitting/receiving data in mesh network using bluetooth
CN105451368B (en) Communication method and device
WO2024083235A1 (en) Network configuration method based on wi-fi sensing, embedded chip system, and medium
WO2023273533A1 (en) Network management method and apparatus
US20240049116A1 (en) Method for transmitting and receiving data and device for same in short-range wireless communication system
Paul et al. On design and implementation of a scalable and reliable Sync system for delay tolerant challenged networks
CN112398943B (en) Information intercommunication method and device, storage medium and electronic equipment
CN114390500A (en) Device connection method, device and storage medium
US20060104235A1 (en) Mixed mode wireless local area network terminal
US20230224958A1 (en) Method, device, and computer program for selecting channel in wireless communication system, and recording medium therefor
CN115396856A (en) Method, device, equipment and storage medium for establishing Bluetooth link
US11044771B2 (en) Method and device for sharing an established connection between a primary device and one of a plurality of secondary devices in a network
CN115515165B (en) Communication mode switching method and communication mode switching device
CN112689252B (en) Physical layer-based intelligent home Internet of things transmission system and method
US11743714B2 (en) Mechanisms for service recovery in neighbor awareness network (NAN)
WO2023040590A1 (en) Channel configuration method and apparatus

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
GR01 Patent grant
GR01 Patent grant