Disclosure of Invention
In view of the above, it is necessary to provide a link loss calculation method, apparatus, gateway and readable storage medium for solving the above technical problems.
In a first aspect, a method of link loss calculation, the method comprising:
receiving a Bluetooth signal broadcast by a room sub-antenna on a Bluetooth channel, and detecting a Bluetooth receiving intensity parameter of the received Bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor sub-antenna is connected with a gateway through a topology network and is integrated with a Bluetooth chip for generating the Bluetooth signal;
and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In one embodiment, the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the indoor branch antenna; the Bluetooth transmitting power parameter of the indoor branch antenna is the difference value of the Bluetooth transmitting power parameter of the Bluetooth chip and the Bluetooth signal antenna loss parameter, the indoor branch antenna stores the Bluetooth signal antenna loss parameter, and the Bluetooth signal antenna loss parameter is the loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the bluetooth chip; determining link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter, including:
calculating a first difference value between a Bluetooth transmitting power parameter and a Bluetooth signal antenna loss parameter of the Bluetooth chip, calculating a second difference value between the first difference value and the Bluetooth receiving intensity parameter and between the Bluetooth signal gateway loss parameters, and taking the second difference value as a link loss between the gateway and the indoor branch antenna; and the Bluetooth signal antenna loss parameter is a loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, the bluetooth chip is a low power bluetooth chip.
In one embodiment, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal further includes: a current Bluetooth channel number; the determining link loss between the gateway and the indoor branch antenna according to the target bluetooth transmitting power parameter, the bluetooth receiving strength parameter, and the bluetooth signal gateway loss parameter includes:
determining a Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number according to the corresponding relation between the Bluetooth channel number and the Bluetooth signal gateway loss parameter;
and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number.
In one embodiment, the indoor sub-antenna comprises a plurality of antenna ports, the bluetooth signal further comprises a current link channel number, and the current link channel number corresponds to one antenna port of the indoor sub-antenna; the determining link loss between the gateway and the indoor branch antenna according to the target bluetooth transmitting power parameter, the bluetooth receiving strength parameter, and the bluetooth signal gateway loss parameter includes:
and determining the link loss between the gateway and the antenna port corresponding to the current link channel number according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In one embodiment, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal antenna loss parameter is a bluetooth signal antenna loss parameter corresponding to a bluetooth channel where the bluetooth signal is located, or an average value of the bluetooth signal antenna loss parameters corresponding to the plurality of bluetooth channels.
In a second aspect, a link loss calculation apparatus, the apparatus comprising:
the system comprises an acquisition module, a receiving module and a processing module, wherein the acquisition module is used for receiving a Bluetooth signal broadcasted by a indoor sub-antenna on a Bluetooth channel and detecting a Bluetooth receiving intensity parameter of the received Bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor sub-antenna is connected with a gateway through a topology network and is integrated with a Bluetooth chip for generating the Bluetooth signal;
and the calculation module is used for determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In a third aspect, a gateway comprises a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving a Bluetooth signal broadcast by a room sub-antenna on a Bluetooth channel, and detecting a Bluetooth receiving intensity parameter of the received Bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor sub-antenna is connected with a gateway through a topology network and is integrated with a Bluetooth chip for generating the Bluetooth signal;
and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In a fourth aspect, a readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving a Bluetooth signal broadcast by a room sub-antenna on a Bluetooth channel, and detecting a Bluetooth receiving intensity parameter of the received Bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor sub-antenna is connected with a gateway through a topology network and is integrated with a Bluetooth chip for generating the Bluetooth signal;
and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
According to the link loss calculation method, the device, the gateway and the readable storage medium, the Bluetooth signal broadcasted on the Bluetooth channel by the indoor sub-antenna is received, the Bluetooth receiving intensity parameter of the received Bluetooth signal is detected, and then the link loss between the gateway and the indoor sub-antenna is determined according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter. In the process of determining the link loss between the gateway and the indoor branch antenna, the link loss is determined without adopting the signal strength obtained by wireless induction between the RFID and the indoor branch antenna, so that the problem of inaccurate calculation of the link loss caused by poor consistency of induction signals is avoided, and the accuracy of calculation of the link loss between the gateway and the indoor branch antenna is improved; in addition, the influence of the RFID tag and the RFID reader on the antenna index is also avoided.
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.
The link loss calculation method provided by the application can be applied to the application environment shown in fig. 1. The signal source 10 and the gateway 11 are respectively connected to an indoor branch antenna 13 through a topology network 12, the indoor branch antenna 13 may include a plurality of antenna interfaces 131, a bluetooth chip 132 is integrated in the antenna interfaces 131, and specifically, an output end of the bluetooth chip may be coupled to a feeder line of the indoor branch antenna; the gateway can be integrated with a bluetooth module, the signal source can be a base station such as 2G/3G/4G/5G or other signal sources, the topology network is a wired radio frequency link, the indoor branch antenna can receive and transmit wireless signals, for example, mobile signals of the base station received through the topology network can be sent out and received mobile terminal signals can be received and returned to the base station through the topology network, bluetooth signals output by the bluetooth chip can be sent to the gateway through the topology network, and the gateway can receive and analyze the bluetooth signals.
In one embodiment, as shown in fig. 2, a method for calculating a link loss is provided, which is described by taking the method as an example applied to the gateway in fig. 1, and includes the following steps:
s201, receiving a Bluetooth signal broadcast by a room branch antenna on a Bluetooth channel, and detecting a Bluetooth receiving intensity parameter of the received Bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor antenna is connected with the gateway through a topology network and is integrated with a Bluetooth chip for generating Bluetooth signals.
The bluetooth reception strength parameter may be used to indicate the signal strength of the bluetooth signal received by the gateway, and may be a numerical value obtained by directly reading the signal strength of the bluetooth signal, or may be a signal strength obtained by filtering and removing noise after filtering, which is not limited in this embodiment of the application. The target bluetooth transmission power parameter may be used to represent the signal strength of the bluetooth chip transmission power integrated on the antenna port of the indoor branch antenna, where the indoor branch antenna may include four parts, which are integrally designed with the antenna, including an RF access unit, a bluetooth unit, a control unit, and a power supply unit, and the RF access unit mainly couples the bluetooth RF signal to the feed line of the antenna and performs a filtering function. The target bluetooth transmission power parameter may be a signal strength of a bluetooth signal transmitted by the bluetooth chip, or a difference obtained by subtracting a loss of the transmission power of the bluetooth chip through the antenna link from the transmission power signal strength of the bluetooth chip, which is not limited in this embodiment of the present application. The indoor branch antenna can be connected with the gateway through a topology network, and is integrated with a bluetooth chip for generating bluetooth signals, the bluetooth chip can be integrated inside the indoor branch antenna, and the bluetooth chip can also be integrated on the outer surface of the indoor branch antenna, which is not limited in the embodiment of the application.
In the process of specifically receiving the Bluetooth signal broadcast by the indoor sub-antenna on the Bluetooth channel and detecting the Bluetooth receiving intensity parameter of the received Bluetooth signal, the Bluetooth chip transmits the Bluetooth signal in the topology network in a broadcasting mode, wherein the Bluetooth signal comprises a target Bluetooth transmitting power parameter. When the Bluetooth chip transmits the Bluetooth signal to the topology network in a broadcasting mode, the Bluetooth chip can transmit the Bluetooth signal to a coupling port of the topology network in a coupling mode, and the topology network receives the Bluetooth signal through the coupling port and sends the Bluetooth signal to the gateway in a broadcasting mode. When the indoor branch antenna broadcasts the Bluetooth signal on a Bluetooth channel, a physical link is selected firstly, then the Bluetooth signal is packaged into a broadcast data packet, and the broadcast is carried out according to a set broadcast period through Bluetooth broadcast. The gateway receives the Bluetooth signals passing through the topology network and the gateway internal link to obtain Bluetooth receiving intensity parameters, wherein the signal intensity of the Bluetooth signals passing through the gateway internal link loss is represented by the Bluetooth signal gateway loss parameters. When receiving the bluetooth signal, the gateway may receive the bluetooth signal circularly, and a passive receiving mode is adopted, so that active scanning is not required to be initiated.
And S202, determining link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
Specifically, on the basis of the above embodiment, the link loss between the gateway and the indoor branch antenna can be determined by the target bluetooth transmission power parameter, the bluetooth reception strength parameter, and the bluetooth signal gateway loss parameter. For example, the link loss between the gateway and the indoor branch antenna can be obtained by subtracting the bluetooth receiving intensity parameter and the bluetooth signal gateway loss parameter from the target bluetooth transmitting power parameter; the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter can be added to obtain a Bluetooth signal intensity parameter at a port where the topological network is connected with the gateway, and then the Bluetooth signal intensity parameter at the port where the topological network is connected with the gateway is subtracted from a target Bluetooth transmitting power parameter to obtain link loss between the gateway and the indoor branch antenna; the embodiment of the present application does not limit this.
According to the link loss calculation method, the Bluetooth signals broadcast on the Bluetooth channel by the indoor sub-antenna are received, the Bluetooth receiving intensity parameters of the received Bluetooth signals are detected, and then the link loss between the gateway and the indoor sub-antenna is determined according to the target Bluetooth transmitting power parameters, the Bluetooth receiving intensity parameters and the Bluetooth signal gateway loss parameters. In the process of determining the link loss between the gateway and the indoor branch antenna, the link loss is determined without adopting the signal strength obtained by wireless induction between the RFID and the indoor branch antenna, so that the problem of inaccurate calculation of the link loss caused by poor consistency of induction signals is avoided, and the accuracy of calculation of the link loss between the gateway and the indoor branch antenna is improved.
In addition, the RFID sensitivity is limited, the maximum allowable detection link loss is generally less than 30dB, the engineering application requirements cannot be met, and the detection sensitivity of Bluetooth is higher than that of the RFID; the RFID reader has larger transmitting power, generally at least 30dBm, so that the interference is larger, and the Bluetooth chip generally has lower power consumption and smaller interference; the RFID label is attached inside the antenna, so that the indexes such as antenna intermodulation and the like can be deteriorated.
Optionally, the bluetooth chip is a bluetooth low energy chip.
Specifically, the bluetooth Low energy chip may include a small-sized and Low-power bluetooth chip supporting ble (bluetooth Low energy) protocol. The bluetooth low energy chip may be used to provide the lowest power consumption bluetooth signal, which is optimized for low power consumption, low bandwidth, low cost and low complexity. The bluetooth low energy chip may include: a single mode bluetooth low energy chip and a dual mode bluetooth low energy chip.
In one embodiment, when the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the indoor branch antenna, the link loss between the gateway and the indoor branch antenna can be determined through the bluetooth transmission power parameter, the bluetooth reception strength parameter and the bluetooth signal gateway loss parameter of the indoor branch antenna.
Optionally, the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the indoor branch antenna; the bluetooth transmit power parameter of room branch antenna is the difference of bluetooth transmit power parameter and the bluetooth signal antenna loss parameter of bluetooth chip, and room branch antenna storage has bluetooth signal antenna loss parameter, and bluetooth signal antenna loss parameter is the loss value between bluetooth chip and the room branch antenna feeder mouth.
Specifically, the bluetooth signal antenna loss parameter is a loss value between the bluetooth chip and the indoor branch antenna feeder port, and may be used to represent a bluetooth signal transmitted by the bluetooth chip, and the power loss generated by the bluetooth signal is transmitted to the indoor branch antenna feeder port through the integrated indoor branch antenna internal circuit. The loss parameter of the bluetooth signal antenna may be one loss parameter corresponding to one indoor division antenna, or may be a plurality of loss parameters corresponding to each frequency point determined by a frequency division point, which is not limited in the embodiment of the present application. The bluetooth signal antenna loss parameter may be stored in the indoor branch antenna. The bluetooth transmission power parameter of the indoor sub-antenna can be used for representing the signal strength of the bluetooth signal at the interface between the indoor sub-antenna and the topology network, and can be obtained by the difference between the bluetooth transmission power parameter of the bluetooth chip and the bluetooth signal antenna loss parameter.
On the basis of the embodiment, the link loss between the gateway and the indoor branch antenna is determined according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter, wherein the link loss between the gateway and the indoor branch antenna can be obtained by subtracting the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter from the Bluetooth transmitting power parameter of the indoor branch antenna; the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter can be added to obtain a Bluetooth signal intensity parameter at a port where the topological network is connected with the gateway, and then the Bluetooth signal intensity parameter at the port where the topological network is connected with the gateway is subtracted from a Bluetooth transmitting power parameter of the indoor branch antenna to obtain link loss between the gateway and the indoor branch antenna; the embodiment of the present application does not limit this.
In the above link loss calculation method, when the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the indoor branch antenna; the indoor sub-antenna is stored with a Bluetooth signal antenna loss parameter which is a loss value between the Bluetooth chip and the indoor sub-antenna feeder port. And the terminal determines the link loss between the gateway and the indoor branch antenna according to the Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter of the indoor branch antenna. In the process of determining the link loss between the gateway and the indoor branch antenna, the loss value of the Bluetooth signal passing through the internal circuit of the indoor branch antenna is removed, so that the link loss between the gateway and the indoor branch antenna is determined more accurately through the Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter of the indoor branch antenna, and the accuracy of calculating the link loss between the gateway and the indoor branch antenna is further improved.
In one embodiment, when the target bluetooth transmission power parameter is a bluetooth transmission power parameter of a bluetooth chip, the link loss between the gateway and the indoor branch antenna may be determined through the bluetooth transmission power parameter, the bluetooth signal antenna loss parameter, the bluetooth reception strength parameter, and the bluetooth signal gateway loss parameter of the bluetooth chip.
Optionally, when the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the bluetooth chip; calculating a first difference value between a Bluetooth transmitting power parameter of a Bluetooth chip and a Bluetooth signal antenna loss parameter, calculating a second difference value between the first difference value and a Bluetooth receiving intensity parameter and between the Bluetooth signal gateway loss parameters, and taking the second difference value as link loss between a gateway and an indoor branch antenna; the Bluetooth signal antenna loss parameter is a loss value between the Bluetooth chip and the feeder port of the indoor branch antenna.
Specifically, the first difference may be a signal strength difference between a bluetooth transmission power parameter of the bluetooth chip and a bluetooth signal antenna loss parameter, and when the target bluetooth transmission power parameter is the bluetooth transmission power parameter of the bluetooth chip, the first difference may be obtained through the target bluetooth transmission power parameter and the bluetooth signal antenna loss parameter, where the bluetooth signal antenna loss parameter is a loss value between the bluetooth chip and the indoor branch antenna feeder port, and may be stored in the indoor branch antenna. And subtracting the Bluetooth signal antenna loss parameter stored in the indoor branch antenna from the Bluetooth transmitting power parameter of the Bluetooth chip to obtain a first difference value. And then, a second difference value, namely the link loss between the gateway and the indoor branch antenna, is obtained by obtaining the Bluetooth receiving intensity parameter, the Bluetooth signal gateway loss parameter and the first difference value.
In the process of obtaining the link loss between the gateway and the indoor branch antenna by obtaining the Bluetooth receiving intensity parameter, the Bluetooth signal gateway loss parameter and the first difference value, the link loss between the gateway and the indoor branch antenna can be obtained by simultaneously subtracting the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter from the first difference value; the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter can be added to obtain a Bluetooth signal intensity parameter at a port where the topological network is connected with the gateway, and then the Bluetooth signal intensity parameter at the port where the topological network is connected with the gateway is subtracted by the first difference value to obtain link loss between the gateway and the indoor branch antenna; the embodiment of the present application does not limit this.
According to the link loss calculation method, when the target Bluetooth transmitting power parameter is the Bluetooth transmitting power parameter of the Bluetooth chip, a first difference value between the Bluetooth transmitting power parameter of the Bluetooth chip and the Bluetooth signal antenna loss parameter is calculated, wherein the Bluetooth signal antenna loss parameter is a loss value between the Bluetooth chip and the indoor branch antenna feeder port, a second difference value between the first difference value and the Bluetooth receiving intensity parameter and between the Bluetooth signal gateway loss parameters is calculated, and the second difference value is used as the link loss between the gateway and the indoor branch antenna. In the process of determining the link loss between the gateway and the indoor branch antenna, the loss value of the Bluetooth signal passing through the internal circuit of the indoor branch antenna is removed, so that the link loss between the gateway and the indoor branch antenna is more accurately determined, and the accuracy of calculating the link loss between the gateway and the indoor branch antenna is further improved.
Fig. 3 is a schematic flow chart of a link loss calculation method in another embodiment, where this embodiment relates to a specific process of determining link loss between a gateway and an indoor sub-antenna according to a target bluetooth transmission power parameter, a bluetooth reception strength parameter, and a bluetooth signal gateway loss parameter corresponding to a current bluetooth channel number when a bluetooth chip corresponds to multiple bluetooth channels, as shown in fig. 3, a possible implementation method of the above-mentioned S202 "determining link loss between a gateway and an indoor sub-antenna according to a target bluetooth transmission power parameter, a bluetooth reception strength parameter, and a bluetooth signal gateway loss parameter" includes the following steps:
s301, determining a Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number according to the corresponding relation between the Bluetooth channel number and the Bluetooth signal gateway loss parameter.
Specifically, on the basis of the above embodiment, bluetooth signals of multiple channels can be sent out by the same bluetooth chip, for example, in one bluetooth chip, bluetooth signals can be sent out by three broadcast channels, the frequencies of the three channels are 2402MHz, 2426MHz, and 2480MHz, respectively, and the frequency bandwidths of the three channels are all 2 MHz. Because different frequency points correspond to different channel losses, especially when high-frequency signals pass through the same signal path (receiving path in the gateway), the generated signal losses have differences. Therefore, the bluetooth signal gateway loss parameter corresponding to each bluetooth channel number needs to be determined. In the process of specifically obtaining the loss parameters of the Bluetooth signal gateway, the loss parameters of the Bluetooth signal gateway corresponding to the frequency point can be obtained through calculation through a signal path in the gateway and corresponding frequency information; or storing gateway loss parameters corresponding to a plurality of frequency points in the gateway, and calling the gateway loss parameters of the frequency points stored in the gateway according to the frequency points corresponding to the Bluetooth channel numbers, namely determining the Bluetooth signal gateway loss parameters corresponding to the Bluetooth channel numbers; the embodiment of the present application does not limit this.
S302, determining link loss between the gateway and the indoor branch antenna according to a target Bluetooth transmitting power parameter, a Bluetooth receiving intensity parameter and a Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number.
Specifically, on the basis of the above-described embodiment, the bluetooth signal further includes a bluetooth channel number. The target bluetooth transmit power parameter corresponding to the current bluetooth channel number may be used to indicate the signal strength of the currently transmitted bluetooth signal. On the basis of the embodiment, the link loss between the gateway and the indoor branch antenna is determined according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number. The link loss between the gateway and the indoor branch antenna can be obtained by simultaneously subtracting the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter from the target Bluetooth transmitting power parameter corresponding to the current Bluetooth channel number; the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter can be added to obtain the Bluetooth signal intensity parameter at the port where the topological network is connected with the gateway, and then the Bluetooth signal intensity parameter at the port where the topological network is connected with the gateway is subtracted from the target Bluetooth transmitting power parameter corresponding to the current Bluetooth channel number to obtain the link loss between the gateway and the indoor branch antenna; the embodiment of the present application does not limit this.
The link loss calculation method determines the Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number according to the corresponding relation between the Bluetooth channel number and the Bluetooth signal gateway loss parameter, so that the Bluetooth signal gateway loss parameter is changed according to the different Bluetooth channel numbers, and determines the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number.
In one embodiment, when the indoor sub-antenna comprises a plurality of antenna ports, the bluetooth signal further comprises a current link channel number, and the link loss between each antenna port and the gateway can be further determined in the process of determining the link loss between the gateway and the indoor sub-antenna through the target bluetooth transmission power parameter, the bluetooth reception strength parameter and the bluetooth signal gateway loss parameter.
Optionally, the indoor sub-antenna includes a plurality of antenna ports, the bluetooth signal further includes a current link channel number, and the current link channel number corresponds to one antenna port of the indoor sub-antenna; and determining the link loss between the gateway and the antenna port corresponding to the current link channel number according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
Specifically, as shown in fig. 1, the indoor antenna 13 may include a plurality of antenna ports 131, each antenna port 131 corresponds to a link channel number, and on the basis of the above embodiment, the bluetooth signal further includes the link channel number. Each antenna port 131 transmits the bluetooth signal to the gateway through the topology network, and since the position of each antenna port 131 is different, each antenna port 131 transmits the bluetooth signal through a different topology network, that is, the link loss between the gateway and the antenna port corresponding to a different link channel number is different. In a specific process of determining link loss between the antenna ports corresponding to the gateway and the current link channel number according to the target bluetooth transmission power parameter, the bluetooth reception intensity parameter and the bluetooth signal gateway loss parameter, detecting that the received bluetooth signal also includes the link channel number. The link loss between the gateway and the antenna port corresponding to the current link channel number can be obtained by simultaneously subtracting the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter from the target Bluetooth transmitting power parameter corresponding to the current link channel number; the method can also be characterized in that the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter are added to obtain the Bluetooth signal intensity parameter at the port where the topological network is connected with the gateway, and then the Bluetooth signal intensity parameter at the port where the topological network is connected with the gateway is subtracted from the target Bluetooth transmitting power parameter corresponding to the current link channel number to obtain the link loss between the gateway and the antenna port corresponding to the current link channel number; the embodiment of the present application does not limit this.
Optionally, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal antenna loss parameter is a bluetooth signal antenna loss parameter corresponding to a bluetooth channel where the bluetooth signal is located, or is an average value of the bluetooth signal antenna loss parameters corresponding to the plurality of bluetooth channels.
Specifically, the bluetooth chip may correspond to a plurality of bluetooth channels, and on the basis of the above embodiment, the bluetooth signal antenna loss parameter may represent a loss value between the bluetooth chip and the indoor branch antenna feeder port, which may be a bluetooth signal antenna loss parameter corresponding to the bluetooth channel where the bluetooth signal is located, for example, the bluetooth chip corresponds to 3 bluetooth channels, which are respectively a bluetooth channel 1, a bluetooth channel 2, and a bluetooth channel 3, where the bluetooth channel 1 corresponds to one bluetooth signal antenna loss parameter 1, the bluetooth channel 2 corresponds to one bluetooth signal antenna loss parameter 2, and the bluetooth channel 3 corresponds to one bluetooth signal antenna loss parameter 3. The bluetooth signal antenna loss parameter may also be an average value of bluetooth signal antenna loss parameters corresponding to a plurality of bluetooth channels. Continuing to take the example that the bluetooth chip corresponds to 3 bluetooth channels, the bluetooth channel 1 corresponds to a bluetooth signal antenna loss parameter 1 of 0.5dBm, the bluetooth channel 2 corresponds to a bluetooth signal antenna loss parameter 2 of 0.7dBm, the bluetooth channel 3 corresponds to a bluetooth signal antenna loss parameter 3 of 0.6dBm, and then the bluetooth signal antenna loss parameter is the average value of the bluetooth signal antenna loss parameter 1, the bluetooth signal antenna loss parameter 2, and the bluetooth signal antenna loss parameter 3, that is, 0.6 dBm.
According to the link loss calculation method, the Bluetooth chip corresponds to the plurality of Bluetooth channels, the Bluetooth signal antenna loss parameter is the Bluetooth signal antenna loss parameter corresponding to the Bluetooth channel where the Bluetooth signal is located, or is the average value of the Bluetooth signal antenna loss parameters corresponding to the plurality of Bluetooth channels, and in the process of determining the link loss between the gateway and the indoor branch antenna, the obtained link loss calculation between the gateway and the indoor branch antenna removes errors caused by different Bluetooth channels through the Bluetooth signal antenna loss parameters corresponding to different Bluetooth channels, so that the accuracy of the link loss calculation between the gateway and the indoor branch antenna is further improved. Or determining the Bluetooth signal antenna loss parameters through the average value of the Bluetooth signal antenna loss parameters corresponding to the plurality of Bluetooth channels, so that the process of obtaining the link loss calculation between the gateway and the indoor branch antenna is simple.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as 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. 2-3 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 performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 4 is a schematic structural diagram of a link loss calculation apparatus provided in an embodiment, and as shown in fig. 4, the link loss calculation apparatus includes: an acquisition module 10 and a calculation module 20, wherein:
the acquisition module 10 is configured to receive a bluetooth signal broadcast by a indoor sub-antenna on a bluetooth channel, and detect a bluetooth reception intensity parameter of the received bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor sub-antenna is connected with a gateway through a topology network and is integrated with a Bluetooth chip for generating the Bluetooth signal;
and the calculating module 20 is configured to determine link loss between the gateway and the indoor branch antenna according to the target bluetooth transmitting power parameter, the bluetooth receiving intensity parameter, and the bluetooth signal gateway loss parameter.
In one embodiment, if the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the indoor branch antenna; the Bluetooth transmitting power parameter of the indoor branch antenna is the difference value of the Bluetooth transmitting power parameter of the Bluetooth chip and the Bluetooth signal antenna loss parameter, the indoor branch antenna stores the Bluetooth signal antenna loss parameter, and the Bluetooth signal antenna loss parameter is the loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, if the target bluetooth transmission power parameter is a bluetooth transmission power parameter of the bluetooth chip; the calculating module 20 is specifically configured to calculate a first difference between a bluetooth transmission power parameter of the bluetooth chip and a bluetooth signal antenna loss parameter, calculate a second difference between the first difference and the bluetooth reception strength parameter, and the bluetooth signal gateway loss parameter, and use the second difference as a link loss between the gateway and the indoor branch antenna; and the Bluetooth signal antenna loss parameter is a loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, the bluetooth chip is a bluetooth low energy chip.
The link loss calculation apparatus provided in the embodiment of the present invention may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a link loss calculation apparatus provided in another embodiment, and based on the embodiment shown in fig. 4, as shown in fig. 5, the calculation module 20 includes: a correspondence unit 201 and a determination unit 202, wherein:
the corresponding unit 201 is configured to determine a bluetooth signal gateway loss parameter corresponding to the current bluetooth channel number according to a corresponding relationship between the bluetooth channel number and the bluetooth signal gateway loss parameter;
the determining unit 202 is configured to determine link loss between the gateway and the indoor branch antenna according to the target bluetooth transmitting power parameter, the bluetooth receiving strength parameter, and the bluetooth signal gateway loss parameter corresponding to the current bluetooth channel number.
In one embodiment, the calculation module 20 is further configured to determine, according to the target bluetooth transmission power parameter, the bluetooth reception strength parameter, and the bluetooth signal gateway loss parameter, a link loss between the gateway and an antenna port corresponding to the current link channel number.
In one embodiment, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal antenna loss parameter is a bluetooth signal antenna loss parameter corresponding to a bluetooth channel where the bluetooth signal is located, or an average value of the bluetooth signal antenna loss parameters corresponding to the plurality of bluetooth channels.
The link loss calculation apparatus provided in the embodiment of the present invention may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
For a specific limitation of the link loss calculation device, reference may be made to the above limitation of the link loss calculation method, and details are not described herein again. The various modules in the link loss calculation apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a gateway is provided, which may be a server, and the internal structure diagram thereof may be as shown in fig. 6. The gateway includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the gateway is configured to provide computing and control capabilities. The memory of the gateway comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the gateway is used to store link loss data. The network interface of the gateway is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a link loss calculation method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a gateway comprising a memory and a processor, the memory storing a computer program which when executed by the processor performs the steps of:
receiving a Bluetooth signal broadcast by a room sub-antenna on a Bluetooth channel, and detecting a Bluetooth receiving intensity parameter of the received Bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor sub-antenna is connected with a gateway through a topology network and is integrated with a Bluetooth chip for generating the Bluetooth signal;
and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In one embodiment, the target bluetooth transmit power parameter is a bluetooth transmit power parameter of the indoor branch antenna; the Bluetooth transmitting power parameter of the indoor branch antenna is the difference value of the Bluetooth transmitting power parameter of the Bluetooth chip and the Bluetooth signal antenna loss parameter, the indoor branch antenna stores the Bluetooth signal antenna loss parameter, and the Bluetooth signal antenna loss parameter is the loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, the processor, when executing the computer program, further performs the steps of: calculating a first difference value between a Bluetooth transmitting power parameter and a Bluetooth signal antenna loss parameter of the Bluetooth chip, calculating a second difference value between the first difference value and the Bluetooth receiving intensity parameter and between the Bluetooth signal gateway loss parameters, and taking the second difference value as a link loss between the gateway and the indoor branch antenna; and the Bluetooth signal antenna loss parameter is a loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, the bluetooth chip is a bluetooth low energy chip.
In one embodiment, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal further includes: a current Bluetooth channel number; the processor, when executing the computer program, further performs the steps of: determining a Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number according to the corresponding relation between the Bluetooth channel number and the Bluetooth signal gateway loss parameter; and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number.
In one embodiment, the indoor sub-antenna comprises a plurality of antenna ports, the bluetooth signal further comprises a current link lane number, and the current link lane number corresponds to one antenna port of the indoor sub-antenna; the processor, when executing the computer program, further performs the steps of: and determining the link loss between the gateway and the antenna port corresponding to the current link channel number according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In one embodiment, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal antenna loss parameter is a bluetooth signal antenna loss parameter corresponding to a bluetooth channel where the bluetooth signal is located, or an average value of the bluetooth signal antenna loss parameters corresponding to the plurality of bluetooth channels.
The implementation principle and technical effect of the terminal device provided in this embodiment are similar to those of the method embodiments described above, and are not described herein again.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving a Bluetooth signal broadcast by a room sub-antenna on a Bluetooth channel, and detecting a Bluetooth receiving intensity parameter of the received Bluetooth signal; the bluetooth signal includes: a target bluetooth transmit power parameter; the indoor sub-antenna is connected with a gateway through a topology network and is integrated with a Bluetooth chip for generating the Bluetooth signal;
and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In one embodiment, the computer program when executed by the processor implements the steps of: the target Bluetooth transmitting power parameter is a Bluetooth transmitting power parameter of the indoor branch antenna; the Bluetooth transmitting power parameter of the indoor branch antenna is the difference value of the Bluetooth transmitting power parameter of the Bluetooth chip and the Bluetooth signal antenna loss parameter, the indoor branch antenna stores the Bluetooth signal antenna loss parameter, and the Bluetooth signal antenna loss parameter is the loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, the target bluetooth transmit power parameter is a bluetooth transmit power parameter of the bluetooth chip; the computer program when executed by a processor implements the steps of: calculating a first difference value between a Bluetooth transmitting power parameter and a Bluetooth signal antenna loss parameter of the Bluetooth chip, calculating a second difference value between the first difference value and the Bluetooth receiving intensity parameter and between the Bluetooth signal gateway loss parameters, and taking the second difference value as a link loss between the gateway and the indoor branch antenna; and the Bluetooth signal antenna loss parameter is a loss value between the Bluetooth chip and the indoor branch antenna feeder port.
In one embodiment, the bluetooth chip is a bluetooth low energy chip.
In one embodiment, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal further includes: a current Bluetooth channel number; the computer program when executed by a processor implements the steps of: determining a Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number according to the corresponding relation between the Bluetooth channel number and the Bluetooth signal gateway loss parameter; and determining the link loss between the gateway and the indoor branch antenna according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter corresponding to the current Bluetooth channel number.
In one embodiment, the indoor sub-antenna comprises a plurality of antenna ports, the bluetooth signal further comprises a current link lane number, and the current link lane number corresponds to one antenna port of the indoor sub-antenna; the computer program when executed by a processor implements the steps of: and determining the link loss between the gateway and the antenna port corresponding to the current link channel number according to the target Bluetooth transmitting power parameter, the Bluetooth receiving intensity parameter and the Bluetooth signal gateway loss parameter.
In one embodiment, the bluetooth chip corresponds to a plurality of bluetooth channels, and the bluetooth signal antenna loss parameter is a bluetooth signal antenna loss parameter corresponding to a bluetooth channel where the bluetooth signal is located, or an average value of the bluetooth signal antenna loss parameters corresponding to the plurality of bluetooth channels.
The implementation principle and technical effect of the readable storage medium provided by this embodiment are similar to those of the above method embodiments, and are not described herein again.
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 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 (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several 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.