CN111148085A - Bluetooth gateway circuit, intelligent room subsystem, link control method and device - Google Patents

Bluetooth gateway circuit, intelligent room subsystem, link control method and device Download PDF

Info

Publication number
CN111148085A
CN111148085A CN201911404652.0A CN201911404652A CN111148085A CN 111148085 A CN111148085 A CN 111148085A CN 201911404652 A CN201911404652 A CN 201911404652A CN 111148085 A CN111148085 A CN 111148085A
Authority
CN
China
Prior art keywords
connection
antenna
bluetooth
main control
control unit
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.)
Granted
Application number
CN201911404652.0A
Other languages
Chinese (zh)
Other versions
CN111148085B (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China 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 Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201911404652.0A priority Critical patent/CN111148085B/en
Publication of CN111148085A publication Critical patent/CN111148085A/en
Application granted granted Critical
Publication of CN111148085B publication Critical patent/CN111148085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention relates to a Bluetooth gateway circuit, an intelligent room subsystem, a link control method and a link control device. The Bluetooth gateway circuit comprises a main control unit, a power divider and at least two Bluetooth chips. Each branch port of the power divider is connected to the main control unit through a Bluetooth chip, and the merging port of the power divider is used for being connected with the intelligent indoor distribution antenna. The Bluetooth chip is used for reporting the broadcast packet reported by the intelligent indoor sub-antenna to the main control unit. The main control unit is used for determining the current antenna connection quantity of the Bluetooth chips according to the broadcast packets, and indicating another Bluetooth chip with the current spare capacity to be accessed into the intelligent indoor branch antenna according to the connection capacity and the antenna connection quantity of the Bluetooth chips. The other Bluetooth chip is used for negotiating with the intelligent indoor sub-antenna to adjust the speed of the physical layer to the maximum bandwidth and updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively. The system capacity is effectively increased, the bandwidth adjustment is realized, and the system performance is greatly improved.

Description

Bluetooth gateway circuit, intelligent room subsystem, link control method and device
Technical Field
The invention relates to the technical field of communication, in particular to a Bluetooth gateway circuit, an intelligent room subsystem, a link control method and a link control device.
Background
With the development of mobile communication technology, smart room division technology has emerged, which can be classified into two types of conventional DAS (distributed antenna systems) technology and new room division technology. Reduce network construction cost and operation cost among the wisdom room branch system, promote the room and divide the additional value of network to the operator and be equally important, introduce low-cost BLE bluetooth technology and realize that the intellectuality of room branch system accords with operator's application demand. The intelligent indoor distribution technology can realize perfect fusion of two application scenes, and provides functions of value-added service engine, indoor position service, Internet of things data collection and the like for a massive indoor distribution network of an operator while providing controllable indoor distribution and intelligent operation, and the antenna is innovative application of the service.
In the application of wisdom room branch technique, single bluetooth gateway need support 30 pairs of antennas at least under the traditional DAS scene, and single bluetooth gateway need support 8 pairs of antennas at least under the novel room branch scene, supports functions such as feeder link loss detection, forward and reverse location and collection thing allies oneself with data. Since the antenna has uplink data transmission, transmission delay, bandwidth and capacity are critical indexes of the smart room subsystem. However, in the implementation process, the inventor finds that the traditional smart room subsystem based on the BLE bluetooth technology has the problem of low system performance.
Disclosure of Invention
In view of the above, it is necessary to provide a bluetooth gateway circuit, a smart room subsystem, a link control method, a link control apparatus and a computer-readable storage medium, which can greatly improve the system performance, in view of the above-mentioned problems in the conventional smart room subsystem.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
on one hand, the embodiment of the invention provides a bluetooth gateway circuit, which comprises a main control unit, a power divider and at least two bluetooth chips, wherein each branch port of the power divider is connected to the main control unit through one bluetooth chip, and a merging port of the power divider is used for connecting a smart room branch antenna;
the Bluetooth chip is used for reporting a broadcast packet reported by the smart indoor sub-antenna to the main control unit, and the main control unit is used for determining the current antenna connection quantity of the Bluetooth chip according to the broadcast packet and indicating another Bluetooth chip with spare capacity to be accessed to the smart indoor sub-antenna according to the connection capacity and the antenna connection quantity of the Bluetooth chip;
the other Bluetooth chip is used for negotiating with the intelligent indoor sub-antenna to adjust the speed of the physical layer to the maximum bandwidth and updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively.
On the other hand, another intelligent room division system is also provided, which comprises an intelligent room division antenna and the Bluetooth gateway circuit.
In another aspect, a link control method is provided, which is applied to an intelligent room subsystem, where the intelligent room subsystem includes a main control unit, a power divider, an intelligent room antenna, and at least two bluetooth chips, each branch port of the power divider is connected to the main control unit through one bluetooth chip, and a merging port of the power divider is connected to the intelligent room antenna;
the method comprises the following steps:
after receiving a connection instruction of the main control unit, initiating connection to the smart indoor sub-antenna; the connection indication is an indication that the intelligent indoor sub-antenna reports the broadcast packet to the main control unit through the currently connected Bluetooth chip, and the main control unit outputs the broadcast packet according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection number;
negotiate with the smart-room antenna to adjust the physical layer rate to the maximum bandwidth and update the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum supported byte, respectively.
On the other hand, the link control device is applied to a smart room subsystem, the smart room subsystem comprises a main control unit, a power divider, a smart room antenna and at least two Bluetooth chips, each branch port of the power divider is connected to the main control unit through one Bluetooth chip, and a merging port of the power divider is connected with the smart room antenna;
the link control device includes:
the connection processing module is used for initiating connection to the smart room branch antenna after receiving the connection instruction of the main control unit; the connection indication is an indication that the intelligent indoor sub-antenna reports the broadcast packet to the main control unit through the currently connected Bluetooth chip, and the main control unit outputs the broadcast packet according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection number;
and the link adjusting module is used for negotiating with the intelligent chamber sub-antenna to adjust the speed of the physical layer to the maximum bandwidth and respectively updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte.
In yet another aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned link control method.
One of the above technical solutions has the following advantages and beneficial effects:
according to the Bluetooth gateway circuit, the intelligent room subsystem, the link control method and the link control device, a plurality of Bluetooth chips are adopted according to the requirement of system capacity in an actual application scene, external radio frequency links are shared among the Bluetooth chips through power dividers, and the Bluetooth chips are uniformly managed by the main control unit. The Bluetooth chip connected with the intelligent indoor sub-antenna currently reports the received broadcast packet to the main control unit, the main control unit determines the current antenna connection quantity of the Bluetooth chip according to the broadcast packet, then indicates another Bluetooth chip with current empty margin to initiate connection of the intelligent indoor sub-antenna according to the connection capacity and the antenna connection quantity of the Bluetooth chip, and when the another Bluetooth chip is connected with the intelligent indoor sub-antenna, the another Bluetooth chip negotiates with the intelligent indoor sub-antenna to adjust the rate of a physical layer to the maximum bandwidth, and updates the maximum transmission unit of a link layer and the maximum transmission unit of an attribute protocol layer to the maximum support byte respectively. Therefore, the system capacity can be effectively increased, the bandwidth adjustment can be realized, the effects of the best performance such as the system capacity and the bandwidth can be achieved, and the system performance can be greatly improved.
Drawings
FIG. 1 is a block diagram of the circuit configuration of a Bluetooth gateway circuit in one embodiment;
FIG. 2 is a block diagram of the circuit configuration of the Bluetooth gateway circuit in another embodiment;
FIG. 3 is a diagram illustrating a data structure for Notify transport in one embodiment;
FIG. 4 is a diagram illustrating a data structure of acknowledgement data returned by a gateway in one embodiment;
FIG. 5 is a flow diagram illustrating a method for link control in one embodiment;
fig. 6 is a flowchart illustrating a link control method according to another embodiment;
FIG. 7 is a flow diagram illustrating dynamic adjustment of connection event times in one embodiment;
FIG. 8 is a flowchart illustrating a link control method according to another embodiment;
fig. 9 is a flowchart illustrating a link control method according to still another embodiment;
fig. 10 is a block diagram of a link control device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element and integrated therewith or intervening elements may be present, i.e., indirectly connected to the other element.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, in one embodiment, a bluetooth gateway circuit 100 is provided, which includes a main control unit 12, a power divider 14, and at least two bluetooth chips 16. Each branch port of the power divider 14 is connected to the main control unit 12 through a bluetooth chip 16, and the merging port of the power divider 14 is used for connecting the smart room antenna 101. The bluetooth chip 16 is configured to report the broadcast packet reported by the smart room antenna 101 to the main control unit 12. The main control unit 12 is configured to determine the current number of antenna connections of the bluetooth chip 16 according to the broadcast packet, and indicate another bluetooth chip 16 having a spare capacity to access the smart room antenna 101 according to the connection capacity and the number of antenna connections of the bluetooth chip 16. Another bluetooth chip 16 is used to negotiate with the smart-room antenna 101 to adjust the physical layer rate to the maximum bandwidth and update the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum supported byte, respectively.
It is understood that the main control unit 12 is a management unit of the bluetooth chip 16, and may be, but is not limited to, a microprocessor, a single chip, or a system on chip with a programmable logic circuit as a main control device. The power divider 14 may be a three-port power divider 14, or may be a multi-port power divider 14 with more than three ports, and the specific type of the power divider 14 may be determined according to the requirement that the bluetooth chip 16 deployed in the actual application scenario accesses the smart room dividing antenna 101. The bluetooth chip 16 is a bluetooth SOC (system on chip) chip of a bluetooth gateway applied in the smart room subsystem, and the number of antennas that each bluetooth chip 16 can connect is limited, and the number of bluetooth chips 16 that need to be accessed can be determined according to the number of antennas in the smart room subsystem 101 that need to be connected in practical application. Bluetooth chip 16 and wisdom room divide antenna 101 can both support the bluetooth 5.0 agreement, carry out data transmission through the radio frequency feeder between Bluetooth chip 16 and the wisdom room divide antenna 101, and signal quality is good, can need not to use bluetooth 5.0's code transmission mode to carry out data transmission. The physical layer rate is also referred to as PHY rate or physical layer transmission bandwidth, and after the bluetooth chip 16 is connected to the smart indoor antenna 101, the default physical layer transmission bandwidth may be 1Mbps, and then the corresponding maximum bandwidth may be 2 Mbps. The maximum Transmission unit, that is, MTU (maximum Transmission unit), and the maximum support byte of the MTU of the link layer may be 251 bytes. The maximum transmission unit of the Attribute Protocol layer is also referred to as MTU of ATT layer (Attribute Protocol), and the maximum supported byte may be 247 bytes.
Specifically, when the bluetooth gateway circuit 100 works in an actual smart partition application scenario, the bluetooth chip 16 receives the broadcast packet reported by the smart partition antenna 101, and then reports the received broadcast packet to the main control unit 12. The main control unit 12 determines the current antenna connection number of the bluetooth chip 16 according to the broadcast packet reported by the bluetooth chip 16, that is, the number of antennas in the smart room sub-antenna 101 to which the bluetooth chip 16 is currently connected, and then the main control unit 12 determines whether other bluetooth chips 16 having spare capacity need to be assigned to join the connection with the smart room sub-antenna 101 according to the connection capacity of the bluetooth chip 16 and the determined antenna connection number, so as to meet the system capacity requirement under the current working condition. For example, when the number of antenna connections of the bluetooth chip 16 currently reporting the broadcast packet has reached the capacity limit (smaller than or equal to the connection capacity of the bluetooth chip 16), an instruction is sent to another bluetooth chip 16 currently having spare capacity to instruct the another bluetooth chip 16 to initiate a connection to the smart partition antenna 101.
When the another bluetooth chip 16 establishes a connection with the smart-room antenna 101, the another bluetooth chip 16 and the smart-room antenna 101 negotiate to switch the physical layer rate to the maximum bandwidth, for example, to switch the PHY rate from the current 1Mbps to 2 Mbps. Meanwhile, the other bluetooth chip 16 negotiates with the smart room antenna 101 to update the MTU of the link layer to the maximum support byte, such as 251 bytes, and update the MTU of the ATT layer to the maximum support byte, such as 247 bytes, so as to greatly increase the actual system capacity provided by the bluetooth gateway circuit 100 in the smart room application scenario, ensure the capacity required by the current data output of the system, and adjust the transmission bandwidth of the system, thereby maximizing the efficiency of the transmission bandwidth, solving the actual requirement of unbalanced load of the smart room antenna 101, and enabling the bluetooth gateway circuit 100 to adapt to more transmission scenarios.
The bluetooth gateway circuit 100 employs a plurality of bluetooth chips 16 according to the requirement of system capacity in an actual application scenario, each bluetooth chip 16 shares an external radio frequency link through the power divider 14, and each bluetooth chip 16 is managed by the main control unit 12 in a unified manner. The bluetooth chip 16 currently connected with the smart room antenna 101 reports the received broadcast packet to the main control unit 12, the main control unit 12 determines the current antenna connection number of the bluetooth chip 16 according to the broadcast packet, then indicates another bluetooth chip 16 currently having a margin to initiate connection with the smart room antenna 101 according to the connection capacity and the antenna connection number of the bluetooth chip 16, and when the another bluetooth chip 16 is connected with the smart room antenna 101, negotiates with the smart room antenna 101 to adjust the physical layer rate to the maximum bandwidth, and updates the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively. Therefore, the system capacity can be effectively increased, the bandwidth adjustment can be realized, the effects of the best performance such as the system capacity and the bandwidth can be achieved, and the system performance can be greatly improved.
In one embodiment, the working channels between the bluetooth chips 16 are equally distributed by the main control unit 12 according to the number of the bluetooth chips 16, and the connection mode between the bluetooth chips 16 and the smart room antenna 101 is a long connection.
It can be understood that the bluetooth chip 16 has 37 working channels in the connected state, the master control unit 12 can equally allocate the working channels in each bluetooth chip 16 according to the number of the bluetooth chips 16, for example, when two bluetooth chips 16 are provided, the working channel allocated to one bluetooth chip 16 is 0 to 17 channels, the working channel allocated to the other bluetooth chip 16 is 18 to 36 channels, when the bluetooth chip 16 initiates a connection to the smart room antenna 101, the channel is configured as a specified channel range in the channel parameters and is transmitted to the smart room antenna 101 connected to the opposite end, so that data transmission between the bluetooth chip 16 and the smart room antenna 101 is completed in the specified channel.
The main control unit 12 evenly distributes the working channels according to the number of the bluetooth chips 16 and adopts a long connection mode, so that the bluetooth chips 16 can support a frequency hopping working mechanism in a connection state, and data loss or abnormal disconnection caused by same frequency interference can be reduced, thereby more effectively ensuring the system capacity.
In one embodiment, the other bluetooth chip 16 is further configured to count data rates returned by the links of the link layer, and dynamically adjust the connection event time within a range from the single-connection base duration to the maximum single-connection event length according to the data rate by using the single-connection base duration as a step size.
It will be appreciated that the duration of a single connection base, i.e. the duration of a single link connection event tevent_jWherein j is ∈ [1, N)],tevent_j∈[Tevent_min,Tevent_max]And N represents the maximum number of connections for a single bluetooth chip 16, which may range from 8 to 20. T isevent_minThe minimum basic connection duration is represented, the link layer transmission bandwidth under the conventional condition is determined and is also the minimum guaranteed bandwidth, the minimum basic connection duration can be between 2.5ms and 5ms, and the minimum basic connection duration can be configured in advance according to different application scenes; maximum single connection event length Tevent_maxThe time length when the maximum transmission bandwidth of the link layer is provided can be 20ms to 40ms, and can be configured in advance according to different application scenarios. Before the bluetooth gateway circuit 100 is powered on or in an initialization stage, the main control unit 12 may complete the distribution and setting of various system parameters according to the preconfigured system parameters (including the aforementioned single connection base duration and the maximum single connection event length).
Specifically, when a new connection between another bluetooth chip 16 and the smart room antenna 101 is established, the connection event duration initially allocated by the main control unit 12 for the another bluetooth chip 16 is a default value, i.e. a single-connection basic duration, for example, 5ms, and can provide a basic link layer transmission bandwidth of about 3 KB. The other bluetooth chip 16 counts the data rate returned by each link of the link layer in real time, and dynamically adjusts the connection event time according to the real-time counted data rate, for example, when the data rate is greater than 80% of the currently provided link layer transmission bandwidth for a certain period, the connection event time is increased by taking 5ms as a step length, and the maximum limit value is the maximum single connection event length. And when the data rate is less than 50% of the currently provided link layer transmission bandwidth for a certain period, reducing the connection event time by taking 5ms as a step until the connection event time of 5ms is reached. It should be noted that, the aforementioned 80% is an upper limit percentage selected according to one of the intelligent room distribution application scenarios, and 50% is a corresponding selected lower limit percentage, so that the efficiency of the transmission bandwidth is maximized through the dynamic adjustment of the connection event time, i.e. the dynamic adjustment of the link layer transmission bandwidth, in the intelligent room distribution application scenario. The specific size of the set period can be determined according to the adjustment requirement of the connection event time in the specific intelligent room application scene, as long as the required transmission bandwidth adjustment effect can be achieved.
Through the real-time monitoring of the data rate returned by each link of the link layer by the bluetooth chip 16, the connection event time is dynamically adjusted, the efficiency maximization of the transmission bandwidth can be more effectively realized, the system capacity is ensured, and the actual requirement of unbalanced load of the intelligent indoor antenna 101 is solved.
In one embodiment, the other bluetooth chip 16 is further configured to synchronously adjust the scanning window according to the current number of antenna connections and bandwidth; the scan window is equal to the difference between the system delay, the guard interval, and the connection duration in the current capacity connection period.
It will be appreciated that the scanning window, i.e. tscan_window∈[Tscan_min,Tscan_interval) Wherein, Tscan_minThe minimum scan window time is used to avoid the bluetooth chip 16 being unable to find the broadcast packet of the antenna. Because the bluetooth chip 16 is connected with the smart room antenna 101 in a long connection manner, and the infrastructure built in the smart room application scenario is fixed, the possibility of dynamic change of the infrastructure is low, the efficiency of discovering the broadcast packet can be properly sacrificed in order to leave more channel time for the connected data service, so as to enable T to be transmitted to Tscan_minSet to a moderate value, e.g. 40 ms. t is tscan_intervalIndicating the scan interval of the bluetooth chip 16, equal to the set system delay. The set system delay is the delay index T pre-selected according to the practical application scene of the intelligent room subsystemdelayThe value of the system delay may range from 200ms to 400 ms.
Guard time intervalSeparate tguardI.e., the processing time interval required for the state transition of the bluetooth chip 16, may typically be 1 ms. The duration of connection within the current capacity connection period, i.e.
Figure BDA0002348294770000091
The synchronization adjustment value of the scanning window is equal to the difference between the system delay, the guard interval and the connection duration in the current capacity connection period, that is:
Figure BDA0002348294770000092
wherein l is a certain antenna connection of the bluetooth chip 16, k is the current connection number of the bluetooth chip 16, and k is less than or equal to N. As shown in the parameter table of the system parameters in table 1, before the bluetooth gateway circuit 100 is powered on or in an initialization stage, the main control unit 12 may complete the allocation and setting of the system parameters according to the preconfigured system parameters (including the single connection base duration and the maximum single connection event length) in table 1. It should be noted that table 1 is only one application example to facilitate understanding of the present invention, and does not limit the parameter allocation setting manner in all practical application scenarios. During the operation of the Bluetooth chip 16, the window t is scannedscan_windowThe window t is scanned according to the synchronous change of the connection number and the bandwidth adjustment of the Bluetooth chip 16scan_windowThe value of (2) is calculated according to the above equation (1).
TABLE 1
Figure BDA0002348294770000093
Figure BDA0002348294770000101
TABLE 1 (continuation)
Figure BDA0002348294770000102
The above system parameters can be determined by the following calculation relationship:
Figure BDA0002348294770000103
wherein the first term on the left of the equation represents the connection duration in a connection period at full capacity. Maximum connection duration in connection period at full capacity:
Figure BDA0002348294770000104
minimum connection duration in connection period at full capacity:
Figure BDA0002348294770000105
there is then the following conversion relation:
Figure BDA0002348294770000106
wherein, the first term on the left side of the equation represents the maximum connection duration in the current capacity connection period.
Figure BDA0002348294770000107
Wherein, the first term on the left side of the equation represents the minimum connection duration in the current capacity connection period. Minimum single connection event length of single connection event lengths:
min(tevent_j)=Tevent_min
maximum single connection event length of single connection event lengths:
Figure BDA0002348294770000111
minimum scanning window:
min(tscan_window)=Tscan_min
through the synchronous adjustment of the scanning window, the bluetooth chip 16 can efficiently discover the broadcast packet, and further improve the utilization rate of the transmission bandwidth and reduce the transmission delay, thereby further improving the system performance.
Referring to fig. 2, in an embodiment, the bluetooth gateway circuit 100 further includes a filtering unit 18. One end of the filter unit 18 is connected to the combining port of the power divider 14, and the other end of the filter unit 18 is connected to the smart room antenna 101.
It is understood that the filtering unit 18 is a noise filtering unit for filtering noise of the signal transmitted between the smart room antenna 101 and the power divider 14, and may be a filter or a unit circuit with a filter as a core element. The particular type of filtering unit 18 may be selected according to the desired filtering effect.
Specifically, the side where the power divider 14 is connected to the smart room branch antenna 101 is further provided with a filtering unit 18 for providing a signal filtering function between the power divider 14 and the smart room branch antenna 101, so as to filter out clutter signals on one side of the smart room branch antenna 101 and to avoid noise interference of the bluetooth gateway circuit 100 receiving broadcast packets through required broadcast packets, thereby improving the system performance of the bluetooth gateway circuit 100.
In one embodiment, a smart room subsystem is also provided, which includes a smart room antenna 101 and the bluetooth gateway circuit 100.
It can be understood that, for the explanation of the smart indoor antenna 101 and the bluetooth gateway circuit 100 in this embodiment, the same process can be understood by referring to the explanation in each embodiment of the bluetooth gateway circuit 100, and the detailed description thereof is omitted here.
The intelligent room subsystem can realize that a plurality of Bluetooth chips 16 are adopted according to the requirement of system capacity in an actual application scene by applying the Bluetooth gateway circuit 100, each Bluetooth chip 16 shares an external radio frequency link through the power divider 14, and each Bluetooth chip 16 is uniformly managed by the main control unit 12. The bluetooth chip 16 currently connected with the smart room antenna 101 reports the received broadcast packet to the main control unit 12, the main control unit 12 determines the current antenna connection number of the bluetooth chip 16 according to the broadcast packet, then indicates another bluetooth chip 16 currently having a margin to initiate connection with the smart room antenna 101 according to the connection capacity and the antenna connection number of the bluetooth chip 16, and when the another bluetooth chip 16 is connected with the smart room antenna 101, negotiates with the smart room antenna 101 to adjust the physical layer rate to the maximum bandwidth, and updates the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively. Therefore, the system capacity can be effectively increased, the bandwidth adjustment can be realized, the effects of the best performance such as the system capacity and the bandwidth can be achieved, and the system performance can be greatly improved.
Referring to fig. 3, in one embodiment, the smart room antenna 101 reports the broadcast packet to the bluetooth gateway circuit 100 via Notify transmission; the broadcast packet is obtained by the intelligent indoor sub-antenna 101 through timing data aggregation and packaging, and the timing duration is less than the link connection period.
Note transport means is also a data transport means notified by note in the art. Link connection period also TIntervalIs constant equal to the delay index TdelayThe timing duration does not exceed the link connection period. It can be understood that as shown in fig. 3, the data structure of Notify transmission is composed of a packet sequence number and a plurality of pieces of internet of things data, where the internet of things data includes a length, an MAC address of an internet of things device, an RSSI value (received signal strength indicator value) received by a gateway, and transparent transmission data.
Specifically, an asynchronous transmission processing mechanism is adopted between the bluetooth gateway circuit 100 and the smart room branch antenna 101, that is, on one side of the smart room branch antenna 101, the smart room branch antenna 101 reports the acquired internet of things data in a Notify transmission mode, and meanwhile, the smart room branch antenna 101 adopts a timing data aggregation and packaging mechanism to perform broadcast packet packaging on the internet of things data of each internet of things device, so that it is ensured that each broadcast packet is fully loaded.
By applying the asynchronous transmission processing mechanism, the transmission bandwidth provided by the link layer can be fully utilized, and the maximum transmission unit MTU of the link layer is utilized to the maximum extent, so that the effect of further improving the system performance is achieved.
In one embodiment, the broadcast packet comprises the data of the internet of things needing to be confirmed by the gateway, the data of the internet of things needing not to be confirmed by the gateway and the confirmation data replied by the gateway.
It is understood that the smart room antenna 101 may define three different UUIDs (i.e., universal Unique Identifier) for the data transmission service of the internet of things, and the length of the UUID may be 244 bytes at most, which are respectively used for dividing the broadcast packet into three types of data, i.e., the internet of things data requiring gateway confirmation, the internet of things data not requiring gateway confirmation, and the confirmation data for gateway reply. That is to say, two transmission mechanisms may be adopted between the bluetooth gateway circuit 100 and the smart room sub-antenna 101, one of which is a reliable transmission mechanism, that is, when the reported broadcast packet contains the internet of things data that needs to be confirmed by the gateway, the gateway application layer of the bluetooth gateway circuit 100 needs to perform a confirmation response, and the response packet may adopt a response packet in a write command mode (that is, a response mode specified in the bluetooth 5.0 protocol), such as the confirmation data replied by the gateway. Another is an unreliable transmission mechanism, that is, when the reported broadcast packet contains internet of things data that does not need to be confirmed by the gateway, the gateway application layer of the bluetooth gateway circuit 100 does not need to respond.
Through the application of the reliable transmission mechanism and the non-reliable transmission mechanism, the reporting efficiency of the data of the internet of things can be improved, the transmission time delay is further reduced, the system performance of the intelligent room subsystem can be better improved, the large-scale commercial use in the field of the intelligent room subsystem is realized, and the applicable transmission scene is wider.
Referring to fig. 4, in one embodiment, the acknowledgement data returned by the gateway includes the received code, the expected received packet sequence number, and the packet sequence number received earlier than successfully. The receiving codes comprise code values for defining that the gateway normally receives the data of the Internet of things, code values for defining that the gateway suspends receiving the data of the Internet of things and code values for defining that the gateway stops receiving the data of the Internet of things.
It will be appreciated that the code values may be numeric codes (such as, but not limited to, 0, 1 and 2), alphabetic codes (such as, but not limited to, A, B and C), or other forms of code values that define the different received codes. For example, the data of the internet of things is normally received by the gateway through the numerical code 0, the data of the internet of things is suspended to be received by the gateway through the numerical code 1, the data of the internet of things is stopped to be received by the gateway through the numerical code 2, and the other code values are reserved. The expected received packet sequence number indicates that the data before the packet sequence number has been successfully received, and the packet sequence number is the packet sequence number expected to be received next time by the bluetooth chip 16. The bluetooth chip 16 sends the packet sequence number successfully received in advance to inform the smart room antenna 101 that the transmission is not required again, and only the discarded broadcast packet needs to be transmitted.
The smart room antenna 101 retransmits according to the confirmation condition of the bluetooth gateway circuit 100, the bluetooth gateway circuit 100 does not process the advanced data packet, but directly sends the advanced data packet to the internet of things server in the application scene connected correspondingly, and if the internet of things server is unavailable, the bluetooth gateway circuit 100 provides data cache with a certain capacity to cache the advanced data packet. Fig. 4 is a data structure of the acknowledgement data returned by the gateway, which includes a receiving code, a packet sequence number expected to be received, and a packet sequence number received in advance, and is used for the response of the bluetooth chip 16 to the smart room antenna 101 in the reliable transmission mechanism, and specifically, a response manner of multiple questions and one response may be adopted.
Through the setting of the confirmation data replied by the gateway, the response efficiency of the intelligent indoor sub-antenna 101 can be improved, and the system performance of the intelligent indoor sub-system is further improved.
Referring to fig. 5, in one embodiment, a link control method for an intelligent room subsystem is also provided. The intelligent room divides the system to include main control unit, merit and divides ware, intelligent room branch antenna and two at least bluetooth chips, and every branch port that the ware was divided to the merit all is connected to main control unit through a bluetooth chip, and the merging port that the ware was divided to the merit is connected intelligent room and is divided the antenna.
The link control method includes the following processing steps S12 and S14:
s12, after receiving the connection instruction of the main control unit, initiating connection to the smart indoor sub-antenna; the connection indication is an indication that the intelligent indoor sub-antenna reports the broadcast packet to the main control unit through the currently connected Bluetooth chip, and the main control unit outputs the broadcast packet according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection number;
s14, negotiating with the smart-room antenna to adjust the physical layer rate to the maximum bandwidth, and updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum supported byte respectively.
It is understood that the explanation of the technical terms in this embodiment can be understood by referring to the above-mentioned embodiments of the bluetooth gateway circuit 100 and the detailed explanation of the embodiments of the intelligent room subsystem provided in this application, and the detailed description of this embodiment and other method embodiments will not be repeated herein.
Specifically, when the smart room sub-system works in an actual smart room sub-application scene, the currently connected bluetooth chip receives the broadcast packet reported by the smart room sub-antenna and then reports the received broadcast packet to the main control unit. The main control unit determines the current antenna connection quantity of the Bluetooth chip according to the broadcast packet reported by the Bluetooth chip, namely the quantity of the antennas in the smart room sub-antenna currently connected with the Bluetooth chip, and then the main control unit judges whether other Bluetooth chips with spare capacity need to be assigned to join the connection with the smart room sub-antenna according to the connection capacity of the Bluetooth chip and the determined antenna connection quantity so as to meet the system capacity requirement under the current working condition. For example, when the number of antenna connections of the bluetooth chip currently reporting the broadcast packet has reached the capacity limit (smaller than or equal to the connection capacity of the bluetooth chip), an instruction is sent to another bluetooth chip currently having spare capacity, that is, the connection instruction mentioned above indicates that the another bluetooth chip initiates a connection to the smart room antenna.
When the other bluetooth chip establishes connection with the smart indoor antenna, the other bluetooth chip and the smart indoor antenna negotiate to switch the physical layer rate to the maximum bandwidth, for example, to switch the PHY rate from the current 1Mbps to 2Mbps through the LL _ PHY _ REQ command of the link layer. Meanwhile, the other bluetooth chip and the smart indoor antenna negotiate to update the MTU of the link layer to the maximum support byte, for example, via the LL _ LENGTH _ REQ command of the link layer, the maximum transmission unit of the link layer of both sides is updated to the maximum support byte, such as 251 bytes. Then, the Exchange MTURequest command of the GATT (generic attribute protocol) layer exchanges ATT layer MTUs of both parties, and updates MTU of the ATT layer to maximum support bytes, such as 247 bytes, so that the actual system capacity provided by the bluetooth gateway circuit 100 under the smart room sub-application scenario is greatly increased, the capacity required by the current data output of the system is ensured, the system transmission bandwidth is adjusted, the efficiency maximization of the transmission bandwidth is realized, the actual requirement of the smart room sub-antenna load imbalance is solved, and the bluetooth gateway circuit 100 can adapt to more transmission scenarios.
The link control method determines the current antenna connection number of the Bluetooth chip according to the broadcast packet by the main control unit, then indicates another Bluetooth chip with current margin to initiate connection with the intelligent indoor sub-antenna according to the connection capacity and the antenna connection number of the Bluetooth chip, and negotiates with the intelligent indoor sub-antenna to adjust the physical layer rate to the maximum bandwidth when the other Bluetooth chip is connected with the intelligent indoor sub-antenna, and updates the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively. Therefore, the system capacity can be effectively increased, the bandwidth adjustment can be realized, the effects of the best performance such as the system capacity and the bandwidth can be achieved, and the system performance can be greatly improved.
Referring to fig. 6, in an embodiment, the link control method may further include the following processing step S16:
and S16, counting the data rate returned by each link of the link layer, and dynamically adjusting the connection event time within the range from the single connection basic time length to the maximum single connection event length by taking the single connection basic time length as the step length according to the data rate.
It can be understood that, for a bluetooth chip newly establishing connection with the smart room antenna, the connection event duration initially allocated by the main control unit for the bluetooth chip is a default value, i.e. a single connection basic duration, e.g. 5ms, and can provide a basic link layer transmission bandwidth of about 3 KB. The connection event time is also referred to as a connection event duration.
Specifically, the bluetooth chip newly establishing connection with the smart indoor antenna may count the data rate returned by each link of the link layer in real time, and dynamically adjust the connection event time according to the data rate counted in real time, for example, when the data rate is greater than the currently provided link layer transmission bandwidth or a certain percentage of the currently provided link layer transmission bandwidth, the connection event time is increased by taking 5ms as a step length, and the maximum limit is the maximum single connection event length. And when the data rate is less than the currently provided link layer transmission bandwidth or a certain percentage lower limit of the currently provided link layer transmission bandwidth, reducing the connection event time by taking 5ms as a step length until the connection event time of 5ms is reached.
Through the processing step S16, the bluetooth chip monitors the data rate returned by each link of the link layer in real time, so as to dynamically adjust the connection event time, thereby more effectively maximizing the efficiency of the transmission bandwidth, ensuring the system capacity and solving the actual requirement of unbalanced load of the smart indoor distribution antenna.
Referring to fig. 7, in an embodiment, regarding the step S16 of dynamically adjusting the connection event time within the range from the single connection duration to the maximum single connection event length by taking the single connection duration as a step size according to the data rate, the method may specifically include the following processing step S162:
and S162, when the data rate is larger than the upper limit percentage of the current bandwidth for a set period, increasing the connection event time by taking the single connection basic time length as a step length until the maximum single connection event length is reached.
It will be appreciated that the determination of whether to increase the connection event time may be made in this embodiment in a manner that exceeds the percentage of the current bandwidth for a period of time. Wherein the current bandwidth is also the currently provided link layer transmission bandwidth, and the upper percentage is, for example, but not limited to, 70%, 80%, or 90%. Specifically, when the data rate is greater than 80% of the currently provided link layer transmission bandwidth for a set period, the connection event time is increased by using the single connection basic duration (e.g., 5ms) as a step length, and the maximum limit value is the maximum single connection event length. Therefore, the connection event time can be dynamically increased, and the efficiency maximization of the transmission bandwidth is realized.
In an embodiment, as shown in fig. 7, regarding the process of dynamically adjusting the connection event time in the range from the single connection basic duration to the maximum single connection event length by taking the single connection basic duration as a step size according to the data rate in step S16, the process may specifically include the following processing step S164:
and S164, when the data rate is less than the lower limit percentage of the current bandwidth for a set period, reducing the connection event time by taking the single connection basic time length as a step length until the single connection basic time length is reached.
Specifically, when the data rate reaches a set period in less than 50% of the currently provided link layer transmission bandwidth, the connection event time is reduced by using the single connection base duration (e.g., 5ms) as a step size until the connection event time reaches 5 ms. The setting period of the present embodiment may be the same as or different from the setting period of the previous embodiment, and may be specifically determined according to the actual application requirements. Therefore, the connection event time can be dynamically reduced, and the efficiency maximization of the transmission bandwidth is realized.
Referring to fig. 8, in an embodiment, the link control method may further include the following processing step S18:
s18, synchronously adjusting the scanning window according to the current antenna connection number and bandwidth; the scan window is equal to the difference between the system delay, the guard interval, and the connection duration in the current capacity connection period.
It can be understood that, for specific explanation of technical terms in this embodiment, the same explanation can be found in the corresponding explanation in the embodiment of the bluetooth gateway circuit 100, and details are not repeated here.
Specifically, in the working process of the Bluetooth chip, the window t is scannedscan_windowSynchronously changing with the connection quantity and bandwidth adjustment of the Bluetooth chip, and scanning the window tscan_windowThe value of (2) is calculated according to the above equation (1).
Through the processing steps, the scanning window is synchronously adjusted, so that the Bluetooth chip can efficiently discover the broadcast packet, and meanwhile, the utilization rate of transmission bandwidth is further improved, the transmission delay is reduced, and the system performance is further improved.
In one embodiment, the reporting mode of the broadcast packet is a Notify transmission mode, and the broadcast packet is obtained by a smart room sub-antenna through a timing data aggregation packet; the timing duration is less than the link connection period.
It can be understood that, for specific explanation of technical terms in this embodiment, the same explanation can be found in the corresponding explanation in the embodiment of the bluetooth gateway circuit 100, and details are not repeated here.
Specifically, adopt asynchronous transmission processing mechanism between bluetooth chip and the smart room branch antenna, also be in smart room branch antenna one side, smart room branch antenna reports the thing of gathering the thing allies oneself with data through Notify transmission mode, and smart room branch antenna adopts the mechanism that regularly data assemble the group package simultaneously, carries out broadcast package group package to the thing allies oneself with data of each thing allies oneself with equipment, guarantees that each broadcast package is full-load. When the intelligent room is divided into the antenna groups, the total length of the data 1 to N of the internet of things is required to be ensured not to exceed 242 bytes, the data of a single internet of things is required to be prevented from being split into two or more data packets for grouping, the single transparent transmission data length of a single internet of things device is required to be ensured not to exceed 234 bytes, and the internet of things device automatically completes the splitting and recombination of the transparent transmission data when the length exceeds the length, so that the grouping requirement is met.
By applying the asynchronous transmission processing mechanism, the transmission bandwidth provided by the link layer can be fully utilized, and the maximum transmission unit MTU of the link layer is utilized to the maximum extent, so that the effect of further improving the system performance is achieved.
In one embodiment, in step S35 described above, the broadcast packet includes the data of the internet of things that needs to be confirmed by the gateway, the data of the internet of things that does not need to be confirmed by the gateway, and the confirmation data returned by the gateway.
It can be understood that, for specific explanation of technical terms in this embodiment, the same explanation can be found in the corresponding explanation in the embodiment of the bluetooth gateway circuit 100, and details are not repeated here. Through the application of the reliable transmission mechanism and the non-reliable transmission mechanism, the reporting efficiency of the data of the internet of things can be improved, the transmission time delay is further reduced, the system performance of the intelligent room subsystem can be better improved, the large-scale commercial use in the field of the intelligent room subsystem is realized, and the applicable transmission scene is wider.
In one embodiment, the acknowledgement data returned by the gateway includes the received code, the expected received packet sequence number, and the packet sequence number received earlier than successfully; the receiving codes comprise code values for defining that the gateway normally receives the data of the Internet of things, code values for defining that the gateway suspends receiving the data of the Internet of things and code values for defining that the gateway stops receiving the data of the Internet of things.
It can be understood that, for specific explanation of technical terms in this embodiment, the same explanation can be found in the corresponding explanation in the embodiment of the bluetooth gateway circuit 100, and details are not repeated here. Through the setting of the confirmation data replied by the gateway, the response efficiency of the smart room branch antenna can be improved, and the system performance of the smart room branch system is further improved.
Referring to fig. 9, in an embodiment, the link control method may further include the following processing step S19:
s19, when the connection with the intelligent indoor sub-antenna is disconnected, the connection disconnection information is reported to the main control unit; the disconnection message is used to instruct the master control unit to monitor the current system connection capacity.
It can be understood that when the bluetooth chip is disconnected with the smart indoor sub-antenna, the bluetooth chip also needs to be synchronously reported to the main control unit, so that the main control unit can monitor the connection capacity of the whole system in real time. The disconnection message is a signal for notifying the master control unit of the disconnection event when the bluetooth chip disconnects from the smart room antenna.
Through the processing step S19, the monitoring efficiency of the system connection capacity can be effectively improved, so that other Bluetooth chips can be controlled to initiate connection more accurately and efficiently when needed, and the system connection capacity is ensured to be sufficient, thereby further improving the system performance.
It should be understood that, although the respective steps in the flowcharts of fig. 5 to 9 are sequentially shown as indicated by arrows, the steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 5-9 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 10, in an embodiment, a link control device 200 is further provided, which is applied to an intelligent indoor subsystem, the intelligent indoor subsystem includes a main control unit, a power divider, an intelligent indoor antenna, and at least two bluetooth chips, each branch port of the power divider is connected to the main control unit through one bluetooth chip, and a merging port of the power divider is connected to the intelligent indoor antenna.
The link control apparatus 200 includes a connection processing module 201 and a link adjusting module 203. The connection processing module 201 is configured to initiate a connection to the smart room sub-antenna after receiving a connection instruction from the main control unit; the connection indication is an indication that the intelligent indoor sub-antenna reports the broadcast packet to the main control unit through the currently connected Bluetooth chip, and the main control unit outputs the broadcast packet according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection quantity. The link adjusting module 203 is used for negotiating with the smart-room antenna to adjust the physical layer rate to the maximum bandwidth and updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively.
The link control apparatus 200 determines the current antenna connection number of the bluetooth chip according to the broadcast packet through the cooperation of each module, and then indicates the connection processing module 201 of another bluetooth chip having a margin currently to initiate connection to the smart room sub-antenna according to the connection capacity and the antenna connection number of the bluetooth chip, and when the another bluetooth chip is connected to the smart room sub-antenna, the link adjustment module 203 of the another bluetooth chip negotiates with the smart room sub-antenna to adjust the physical layer rate to the maximum bandwidth, and updates the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively. Therefore, the system capacity can be effectively increased, the bandwidth adjustment can be realized, the effects of the best performance such as the system capacity and the bandwidth can be achieved, and the system performance can be greatly improved.
In an embodiment, the link control apparatus 200 further includes a connection event adjusting module, configured to count data rates returned by links of the link layer, and dynamically adjust the connection event time within a range from a single-connection base duration to a maximum single-connection event length according to the data rate by using the single-connection base duration as a step length.
In an embodiment, the first connection event adjusting module, in a process of dynamically adjusting the connection event time within a range from a single-connection basic duration to a maximum single-connection event length according to a data rate by using the single-connection basic duration as a step length, may be specifically configured to increase the connection event time by using the single-connection basic duration as the step length until the maximum single-connection event length is reached when the data rate is greater than an upper limit percentage of a current bandwidth by a set period.
In an embodiment, the first connection event adjusting module is further configured to, in a process of dynamically adjusting the connection event time within a range from a single-connection basic duration to a maximum single-connection event length according to the data rate by using the single-connection basic duration as a step length, specifically, when the data rate is less than a lower limit percentage of a current bandwidth for a set period, decrease the connection event time by using the single-connection basic duration as the step length until the single-connection basic duration is reached.
In an embodiment, the link control apparatus 200 further includes a window synchronization module, configured to synchronously adjust a scanning window according to the current number of antenna connections and bandwidth; the scan window is equal to the difference between the system delay, the guard interval, and the connection duration in the current capacity connection period.
In an embodiment, the reporting mode of the broadcast packet is a Notify transmission mode, and the broadcast packet is obtained by a smart room branch antenna through a timing data aggregation packet; the timing duration is less than the link connection period.
In one embodiment, the broadcast packet comprises the data of the internet of things needing to be confirmed by the gateway, the data of the internet of things needing not to be confirmed by the gateway and the confirmation data replied by the gateway.
In one embodiment, the acknowledgement data returned by the gateway includes the received code, the expected received packet sequence number, and the packet sequence number received earlier than successfully; the receiving codes comprise code values for defining that the gateway normally receives the data of the Internet of things, code values for defining that the gateway suspends receiving the data of the Internet of things and code values for defining that the gateway stops receiving the data of the Internet of things.
In an embodiment, the link control apparatus 200 further includes a connection status reporting module, configured to report a connection disconnection message to the main control unit when the connection with the smart room sub-antenna is disconnected; the disconnection message is used to instruct the master control unit to monitor the current system connection capacity.
For specific limitations of the link control apparatus 200, reference may be made to the corresponding limitations of the link control method in the foregoing, and details are not repeated here. The respective modules in the link control device 200 described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the Bluetooth gateway, and can also be stored in a memory in the Bluetooth gateway in a software form, so that the processor can call and execute the corresponding operations of the modules.
In one embodiment, there is also provided a bluetooth gateway comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: after receiving a connection instruction of the main control unit, initiating connection to the smart indoor sub-antenna; the connection indication is an indication that the intelligent indoor sub-antenna reports the broadcast packet to the main control unit through the currently connected Bluetooth chip, and the main control unit outputs the broadcast packet according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection number; negotiate with the smart-room antenna to adjust the physical layer rate to the maximum bandwidth and update the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum supported byte, respectively.
Those skilled in the art can understand that the bluetooth gateway in this embodiment may further include other components besides the memory and the processor, which may be determined according to the specific structural components and functions of different types of bluetooth gateways in the art, and the description of this specification is not repeated.
In one embodiment, the processor, when executing the computer program, may also implement the additional steps or sub-steps of the embodiments of the link control method described above.
In one embodiment, there is also provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of: after receiving a connection instruction of the main control unit, initiating connection to the smart indoor sub-antenna; the connection indication is an indication that the intelligent indoor sub-antenna reports the broadcast packet to the main control unit through the currently connected Bluetooth chip, and the main control unit outputs the broadcast packet according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection number; negotiate with the smart-room antenna to adjust the physical layer rate to the maximum bandwidth and update the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum supported byte, respectively.
In one embodiment, the computer program, when executed by the processor, may further implement the additional steps or sub-steps of the embodiments of the link control method described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link DRAM (Synchlink) DRAM (SLDRAM), Rambus DRAM (RDRAM), and interface DRAM (DRDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (20)

1. A Bluetooth gateway circuit is characterized by comprising a main control unit, a power divider and at least two Bluetooth chips, wherein each branch port of the power divider is connected to the main control unit through one Bluetooth chip, and a combined port of the power divider is used for being connected with an intelligent indoor branch antenna;
the Bluetooth chip is used for reporting a broadcast packet reported by the intelligent indoor sub-antenna to the main control unit, and the main control unit is used for determining the current antenna connection quantity of the Bluetooth chip according to the broadcast packet and indicating another Bluetooth chip with vacant capacity to access the intelligent indoor sub-antenna according to the connection capacity of the Bluetooth chip and the antenna connection quantity;
and the other Bluetooth chip is used for negotiating with the intelligent indoor sub-antenna to adjust the speed of the physical layer to the maximum bandwidth and updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte respectively.
2. The bluetooth gateway circuit of claim 1, wherein another bluetooth chip is further configured to count data rates returned by links of the link layer, and dynamically adjust the connection event time within a range from a single-connection-based duration to a maximum single-connection event length according to the data rates by using the single-connection-based duration as a step size.
3. The bluetooth gateway circuit of claim 2, wherein another bluetooth chip is further configured to synchronously adjust the scanning window according to the current number of antenna connections and bandwidth; the scanning window is equal to the difference between the system delay, the guard interval and the connection duration in the current capacity connection period.
4. The bluetooth gateway circuit according to any one of claims 1 to 3, wherein the working channels between the bluetooth chips are equally distributed by the main control unit according to the number of the bluetooth chips, and the connection mode between the bluetooth chips and the smart room antenna is a long connection.
5. The bluetooth gateway circuit according to claim 4, further comprising a filter unit, wherein one end of the filter unit is connected to the combining port of the power divider, and the other end of the filter unit is used for connecting to the smart room divider antenna.
6. A smart room subsystem comprising a smart room antenna and the Bluetooth gateway circuit of any one of claims 1 to 4.
7. The intelligent room distribution system of claim 6, wherein the intelligent room distribution antenna reports broadcast packets to the bluetooth gateway circuit via Notify transmission; the broadcasting packet is obtained by the intelligent indoor sub-antenna through timing data aggregation and packaging, and the timing duration is less than the link connection period.
8. The intelligent indoor distribution system of claim 7, wherein the broadcast packet comprises Internet of things data requiring gateway confirmation, Internet of things data not requiring gateway confirmation, and confirmation data returned by the gateway.
9. The smart room subsystem of claim 8 wherein the acknowledgement data returned by the gateway includes a received code, a packet sequence number expected to be received, and a packet sequence number received in advance of successful receipt; the receiving codes comprise a code value for defining that the gateway normally receives the data of the Internet of things, a code value for defining that the gateway suspends receiving the data of the Internet of things and a code value for defining that the gateway stops receiving the data of the Internet of things.
10. A link control method is characterized by being applied to an intelligent room subsystem, wherein the intelligent room subsystem comprises a main control unit, a power divider, an intelligent room antenna and at least two Bluetooth chips, each branch port of the power divider is connected to the main control unit through one Bluetooth chip, and a merging port of the power divider is connected with the intelligent room antenna;
the method comprises the following steps:
after receiving the connection instruction of the main control unit, initiating connection to the intelligent indoor sub-antenna; the connection indication is an indication that the main control unit outputs according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection quantity after the intelligent indoor sub-antenna reports a broadcast packet to the main control unit through the currently connected Bluetooth chip;
and negotiating with the intelligent indoor sub-antenna to adjust the physical layer rate to the maximum bandwidth, and respectively updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte.
11. The link control method of claim 10, further comprising:
and counting the data rate returned by each link of the link layer, and dynamically adjusting the connection event time within the range from the single connection basic time length to the maximum single connection event length by taking the single connection basic time length as a step length according to the data rate.
12. The method of claim 11, wherein the step of dynamically adjusting the connection event time from the duration of the single connection basis to the maximum length of the single connection event based on the data rate and the duration of the single connection basis comprises:
and when the data rate is greater than the upper limit percentage of the current bandwidth by a set period, increasing the connection event time by taking the single connection basic time length as a step length until the maximum single connection event length is reached.
13. The method of claim 11, wherein the step of dynamically adjusting the connection event time from the duration of the single connection basis to the maximum length of the single connection event based on the data rate and the duration of the single connection basis comprises:
and when the data rate is less than the lower limit percentage of the current bandwidth for a set period, reducing the connection event time by taking the single connection basic time length as a step length until the single connection basic time length is reached.
14. The link control method according to any one of claims 10 to 13, wherein the method further comprises:
synchronously adjusting a scanning window according to the current antenna connection quantity and bandwidth; the scanning window is equal to the difference between the system delay, the guard interval and the connection duration in the current capacity connection period.
15. The link control method according to claim 14, wherein the broadcast packet is reported in a Notify transmission mode, and the broadcast packet is obtained by the smart room branch antenna through a timing data aggregation packet; the duration of the timing is less than the link connection period.
16. The link control method according to claim 15, wherein the broadcast packet includes the data of the internet of things that needs gateway acknowledgement, the data of the internet of things that does not need gateway acknowledgement, and the acknowledgement data returned by the gateway.
17. The link control method according to claim 16, wherein the acknowledgement data returned by the gateway includes a reception code, a packet sequence number expected to be received, and a packet sequence number received earlier than successfully; the receiving codes comprise a code value for defining that the gateway normally receives the data of the Internet of things, a code value for defining that the gateway suspends receiving the data of the Internet of things and a code value for defining that the gateway stops receiving the data of the Internet of things.
18. The link control method according to any one of claims 10 to 13, wherein the method further comprises:
when the connection with the intelligent indoor sub-antenna is disconnected, reporting a connection disconnection message to the main control unit; the disconnection message is used for indicating the main control unit to monitor the current system connection capacity.
19. A link control device is characterized by being applied to an intelligent room subsystem, wherein the intelligent room subsystem comprises a main control unit, a power divider, an intelligent room antenna and at least two Bluetooth chips, each branch port of the power divider is connected to the main control unit through one Bluetooth chip, and a merging port of the power divider is connected with the intelligent room antenna;
the link control device includes:
the connection processing module is used for initiating connection to the intelligent indoor sub-antenna after receiving the connection instruction of the main control unit; the connection indication is an indication that the main control unit outputs according to the connection capacity of the currently connected Bluetooth chip and the current antenna connection quantity after the intelligent indoor sub-antenna reports a broadcast packet to the main control unit through the currently connected Bluetooth chip;
and the link adjusting module is used for negotiating with the intelligent indoor sub-antenna to adjust the speed of the physical layer to the maximum bandwidth and respectively updating the maximum transmission unit of the link layer and the maximum transmission unit of the attribute protocol layer to the maximum support byte.
20. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the link control method according to any one of claims 10 to 18.
CN201911404652.0A 2019-12-30 2019-12-30 Bluetooth gateway circuit, intelligent room subsystem, link control method and device Active CN111148085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911404652.0A CN111148085B (en) 2019-12-30 2019-12-30 Bluetooth gateway circuit, intelligent room subsystem, link control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911404652.0A CN111148085B (en) 2019-12-30 2019-12-30 Bluetooth gateway circuit, intelligent room subsystem, link control method and device

Publications (2)

Publication Number Publication Date
CN111148085A true CN111148085A (en) 2020-05-12
CN111148085B CN111148085B (en) 2023-04-18

Family

ID=70522338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911404652.0A Active CN111148085B (en) 2019-12-30 2019-12-30 Bluetooth gateway circuit, intelligent room subsystem, link control method and device

Country Status (1)

Country Link
CN (1) CN111148085B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745730A (en) * 2022-04-25 2022-07-12 河北迈拓港湾数字信息股份有限公司 Intelligent indoor sub-antenna coverage system and use method thereof
CN115347977A (en) * 2021-05-12 2022-11-15 华为技术有限公司 Data modulation method, data processing method, device and storage medium
CN115967416A (en) * 2022-12-21 2023-04-14 中国铁塔股份有限公司 Bluetooth signal combining circuit, system and coupler determining method
CN115347977B (en) * 2021-05-12 2024-05-10 华为技术有限公司 Data modulation method, data processing method, device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150071163A1 (en) * 2013-09-12 2015-03-12 Olea Networks, Inc. Portable Wireless Mesh Device
CN108289276A (en) * 2017-06-01 2018-07-17 中国移动通信有限公司研究院 Room divided antenna and system, information processing method and storage medium
CN108289304A (en) * 2017-06-01 2018-07-17 中国移动通信有限公司研究院 Information processing method, intelligent gateway and storage medium
US20190028958A1 (en) * 2017-06-23 2019-01-24 Schlage Lock Company Llc Predictive rate limiting for reliable bluetooth low energy connections
CN109451478A (en) * 2018-12-28 2019-03-08 京信通信系统(中国)有限公司 Link load calculation method, device, gateway and readable storage medium storing program for executing
CN109618365A (en) * 2018-12-29 2019-04-12 京信通信系统(中国)有限公司 A kind of method for managing and monitoring and equipment dividing spotlight antenna applied to room
CN109640339A (en) * 2018-12-21 2019-04-16 京信通信系统(中国)有限公司 Manage method, equipment, system and the storage medium of a variety of Bluetooth antenna equipment
WO2019096073A1 (en) * 2017-11-17 2019-05-23 华为技术有限公司 Random access method and device
CN110234178A (en) * 2019-06-11 2019-09-13 深圳云里物里科技股份有限公司 A kind of Bluetooth gateway and setting method, system, computer readable storage medium
CN110278043A (en) * 2019-06-14 2019-09-24 深圳市觅拓物联信息技术有限公司 A kind of method, gateway and storage medium monitoring link load by Bluetooth beacon
CN209767546U (en) * 2019-06-12 2019-12-10 京信通信系统(中国)有限公司 Distributed antenna system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150071163A1 (en) * 2013-09-12 2015-03-12 Olea Networks, Inc. Portable Wireless Mesh Device
CN108289276A (en) * 2017-06-01 2018-07-17 中国移动通信有限公司研究院 Room divided antenna and system, information processing method and storage medium
CN108289304A (en) * 2017-06-01 2018-07-17 中国移动通信有限公司研究院 Information processing method, intelligent gateway and storage medium
US20190028958A1 (en) * 2017-06-23 2019-01-24 Schlage Lock Company Llc Predictive rate limiting for reliable bluetooth low energy connections
WO2019096073A1 (en) * 2017-11-17 2019-05-23 华为技术有限公司 Random access method and device
CN109640339A (en) * 2018-12-21 2019-04-16 京信通信系统(中国)有限公司 Manage method, equipment, system and the storage medium of a variety of Bluetooth antenna equipment
CN109451478A (en) * 2018-12-28 2019-03-08 京信通信系统(中国)有限公司 Link load calculation method, device, gateway and readable storage medium storing program for executing
CN109618365A (en) * 2018-12-29 2019-04-12 京信通信系统(中国)有限公司 A kind of method for managing and monitoring and equipment dividing spotlight antenna applied to room
CN110234178A (en) * 2019-06-11 2019-09-13 深圳云里物里科技股份有限公司 A kind of Bluetooth gateway and setting method, system, computer readable storage medium
CN209767546U (en) * 2019-06-12 2019-12-10 京信通信系统(中国)有限公司 Distributed antenna system
CN110278043A (en) * 2019-06-14 2019-09-24 深圳市觅拓物联信息技术有限公司 A kind of method, gateway and storage medium monitoring link load by Bluetooth beacon

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
夏聪: "基于BLE的室内分布式天线系统安全性研究与实现", 《信息通信》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115347977A (en) * 2021-05-12 2022-11-15 华为技术有限公司 Data modulation method, data processing method, device and storage medium
CN115347977B (en) * 2021-05-12 2024-05-10 华为技术有限公司 Data modulation method, data processing method, device and storage medium
CN114745730A (en) * 2022-04-25 2022-07-12 河北迈拓港湾数字信息股份有限公司 Intelligent indoor sub-antenna coverage system and use method thereof
CN114745730B (en) * 2022-04-25 2023-08-29 河北迈拓港湾数字信息股份有限公司 Intelligent indoor antenna coverage system and application method thereof
CN115967416A (en) * 2022-12-21 2023-04-14 中国铁塔股份有限公司 Bluetooth signal combining circuit, system and coupler determining method

Also Published As

Publication number Publication date
CN111148085B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
EP3965440A1 (en) Sidelink communication method and apparatus, and storage medium
EP2606684B1 (en) Apparatus, method and system for managing data transmission
EP2647175B1 (en) Facilitating device-to-device communication
CN102083136B (en) Wireless network control method and wireless controller
EP3267721B1 (en) Air-interface protocol stack configuration method, and data transmission method and device
US20220022244A1 (en) Resource allocation method, terminal and node device
CN111294775B (en) Resource allocation method based on H2H dynamic characteristics in large-scale MTC and H2H coexistence scene
EP2179610A1 (en) A method and apparatus for collecting performance management data in communication networks
CN108282819B (en) Method and device for reducing interrupt time delay and user equipment
CN111148085B (en) Bluetooth gateway circuit, intelligent room subsystem, link control method and device
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN113747478A (en) Communication method and device
US20230171823A1 (en) Information transmission method, network device and terminal
US10212021B2 (en) Network protocol configuration method and apparatus
CN106332129B (en) Configuration method of wireless network function, wireless network node and core network equipment
US20240114383A1 (en) Communication method and apparatus
EP4178240A1 (en) Method and device for providing terminal capability information in wireless communication system
CN108683598B (en) Asymmetric network traffic processing method and processing device
US20220322140A1 (en) Communication method and apparatus
EP2341755A2 (en) Wireless network with star topology and method for operating wireless network with star topology
CN109495918B (en) Data transmission method and device
CN112333749A (en) Multi-standard base station system, frequency distribution method and remote monitoring management method
CN116530202A (en) Method and device for dual connectivity
CN113873584A (en) Cell switching method and communication device
US20230370362A1 (en) Networking method, communication method, and communication system for multi-mode communication device, device, and chip

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd.

GR01 Patent grant
GR01 Patent grant