Manage method, equipment, system and the storage medium of a variety of Bluetooth antenna equipment
Technical field
The present invention relates to wireless communication fields, more particularly, to method, equipment, the system for managing a variety of Bluetooth antenna equipment
And storage medium.
Background technique
In the mobile communication network, internal home network is covered by using wisdom room subnetwork.
Wisdom room subnetwork is usually made of Bluetooth antenna equipment, gateway and NM server, and Bluetooth antenna is set
The standby interior that is arranged in covers internal home network, and gateway is communicated by bluetooth with Bluetooth antenna equipment, by network management
The data forwarding that server is sent to Bluetooth antenna equipment gives Bluetooth antenna equipment, and Bluetooth antenna equipment is sent to network manager service
The data forwarding of device is to NM server.
However, with the construction of mobile communications network and the fast development of Client application demand, in order to meet mobile communication
The functional requirement and demand on signal quality of equipment, the type of Bluetooth antenna equipment is also more and more, this allows for wisdom room subnetting
Network requires a gateway that can support a variety of different types of Bluetooth antenna equipment.
But in the prior art, a type of Bluetooth antenna equipment can only correspond to a kind of gateway, to cause nothing
Method realizes that a gateway is managed all types of bluetooth equipments, and then makes room subnetwork there are more redundancies, money
The low technical problem of source waste, the efficiency of management.
In consideration of it, how to allow a kind of gateway that can support that a plurality of types of Bluetooth antenna equipment are urgently to be resolved as one
The technical issues of.
Summary of the invention
The present invention provides method, equipment, system and the storage medium for managing a variety of Bluetooth antenna equipment, existing to solve
The technical issues of a kind of gateway present in technology cannot support a plurality of types of Bluetooth antenna equipment.
In a first aspect, in order to solve the above technical problems, a kind of a variety of Bluetooth antennas of management provided in an embodiment of the present invention are set
Standby method is applied to gateway, and the technical solution of this method is as follows:
Receive the broadcast data packet that Bluetooth antenna equipment is sent;The bluetooth is wherein included at least in the broadcast data packet
The MAC Address of antenna equipment;
Based on the MAC Address, judge whether the Bluetooth antenna equipment is existing bluetooth day in the subsystem of wisdom room
Line equipment;
If it has, then determining the bluetooth from MAC Address and the antenna type record prestored based on the MAC Address
The antenna type of antenna equipment;
Antenna type and default antenna type based on the Bluetooth antenna equipment and parameter mapping relations, determine described in
The difference parameter of Bluetooth antenna equipment, and real time data corresponding with the difference parameter in the broadcast data packet is sent to
NM server;Wherein, a kind of corresponding parameter of antenna type includes common parameters and difference parameter, and the common parameters are institute
There is the parameter that antenna type all has, the difference parameter is parameter specific to respective antenna type.
The MAC Address for including in the broadcast data packet sent by the Bluetooth antenna equipment received, to judge bluetooth day
Whether line equipment is existing Bluetooth antenna equipment in the subsystem of wisdom room, if it has, then based on MAC Address from the MAC prestored
In address and antenna type record, the antenna type of Bluetooth antenna equipment is determined;Later, based on the antenna class of Bluetooth antenna equipment
Type and default antenna type and parameter mapping relations, determine the difference parameter of Bluetooth antenna equipment, and by broadcast data packet with
The corresponding real time data of difference parameter is sent to NM server;Wherein, a kind of corresponding parameter of antenna type includes general character ginseng
Several and difference parameter, common parameters are the parameter that all antenna types all have, and difference parameter is peculiar for respective antenna type
Parameter.To realize the technical effect being managed with same gateway to a variety of Bluetooth antenna equipment.
Optionally, judge the Bluetooth antenna equipment whether be in the subsystem of wisdom room existing Bluetooth antenna equipment it
Afterwards, further includes:
If the Bluetooth antenna equipment is not existing Bluetooth antenna equipment in the subsystem of the wisdom room, described in record
MAC Address, and be non-uploaded state by the status indication of the Bluetooth antenna equipment;
Connection request is sent to the Bluetooth antenna equipment according to the MAC Address;Wherein, the connection request is for obtaining
Take the common parameters of the Bluetooth antenna equipment.
Optionally, connection request is sent to the Bluetooth antenna equipment according to the MAC Address, comprising:
If being within a specified time not connected with the upper Bluetooth antenna equipment, periodically sent out to the Bluetooth antenna equipment
The connection request is sent, until connecting upper.
Optionally, after sending connection request to the Bluetooth antenna equipment according to the MAC Address, further includes:
The common parameters of the Bluetooth antenna equipment are received, and are to have reported by the status indication of the Bluetooth antenna equipment
State;
The common parameters and the MAC Address are sent to the NM server, make the Bluetooth antenna equipment
MAC Address and the common parameters are recorded in the NM server.
Optionally, the antenna type, comprising:
Spotlight antenna, dual polarization type antenna, extended pattern antenna, Almightiness type antenna.
Optionally, the common parameters, comprising:
Product ID SN, MAC Address, antenna model, antenna software version number, UUID, MINOR, MAJOR, EPC
Any one of Code, broadcast cycle or at least two combination.
Optionally, the difference parameter, comprising:
When the antenna type is spotlight antenna, the difference parameter is link line loss value 1~3, the torch-type
The electricity and angle of declination of antenna;
When the antenna type is extended pattern antenna, the difference parameter is link line loss value 1, the extended pattern antenna
Electricity;
When the antenna type is dual polarization type antenna, the difference parameter is link line loss value 1~2;
When the antenna type is Almightiness type antenna, the difference parameter is RFID line loss value;Wherein, the RFID line loss
Value is obtained from the RFID mould group of the gateway.
Second aspect, the embodiment of the invention provides a kind of gateways, comprising:
Receiving unit, for receiving the broadcast data packet of Bluetooth antenna equipment transmission;Wherein in the broadcast data packet extremely
It less include the MAC Address of the Bluetooth antenna equipment;
Judging unit judges whether the Bluetooth antenna equipment is in the subsystem of wisdom room for being based on the MAC Address
Existing Bluetooth antenna equipment;
Processing unit, for if it has, then based on the MAC Address from the MAC Address that prestores and antenna type record,
Determine the antenna type of the Bluetooth antenna equipment;Antenna type and default antenna type based on the Bluetooth antenna equipment
With parameter mapping relations, determine the difference parameter of the Bluetooth antenna equipment, and by the broadcast data packet with the difference
The corresponding real time data of parameter is sent to NM server;Wherein, a kind of corresponding parameter of antenna type include common parameters and
Difference parameter, the common parameters are the parameter that all antenna types all have, and the difference parameter is respective antenna type institute
Distinctive parameter.
Optionally, the processing unit, is also used to:
If the Bluetooth antenna equipment is not existing Bluetooth antenna equipment in the subsystem of the wisdom room, described in record
MAC Address, and be non-uploaded state by the status indication of the Bluetooth antenna equipment;
Connection request is sent to the Bluetooth antenna equipment according to the MAC Address;Wherein, the connection request is for obtaining
Take the common parameters of the Bluetooth antenna equipment.
Optionally, the processing unit, is also used to:
If being within a specified time not connected with the upper Bluetooth antenna equipment, periodically sent out to the Bluetooth antenna equipment
The connection request is sent, until connecting upper.
Optionally, the processing unit, is also used to:
The common parameters of the Bluetooth antenna equipment are received, and are to have reported by the status indication of the Bluetooth antenna equipment
State;
The common parameters and the MAC Address are sent to the NM server, make the Bluetooth antenna equipment
MAC Address and the common parameters are recorded in the NM server.
Optionally, the antenna type, comprising:
Spotlight antenna, dual polarization type antenna, extended pattern antenna, Almightiness type antenna.
Optionally, the common parameters, comprising:
Product ID SN, MAC Address, antenna model, antenna software version number, UUID, MINOR, MAJOR, EPC
Any one of Code, broadcast cycle or at least two combination.
Optionally, the difference parameter, comprising:
When the antenna type is spotlight antenna, the difference parameter is link line loss value 1~3, the torch-type
The electricity and angle of declination of antenna;
When the antenna type is extended pattern antenna, the difference parameter is link line loss value 1, the extended pattern antenna
Electricity;
When the antenna type is dual polarization type antenna, the difference parameter is link line loss value 1~2;
When the antenna type is Almightiness type antenna, the difference parameter is RFID line loss value;Wherein, the RFID line loss
Value is obtained from the RFID mould group of the gateway.
The third aspect, the embodiment of the invention provides a kind of wisdom room subsystem, wisdom room subsystem includes a variety of
Different types of multiple Bluetooth antenna equipment, gateway and NM server, the gateway use such as first aspect
The method is managed the multiple Bluetooth antenna equipment.
Fourth aspect, the embodiment of the present invention also provide a kind of gateway, comprising:
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least one
The instruction that device is stored by executing the memory is managed, the method as described in above-mentioned first aspect is executed.
5th aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, comprising:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers
When, so that computer executes the method as described in above-mentioned first aspect.
The technical solution in said one or multiple embodiments through the embodiment of the present invention, the embodiment of the present invention at least have
There is following technical effect:
In embodiment provided by the invention, include in the broadcast data packet by the Bluetooth antenna equipment transmission received
MAC Address, to judge whether Bluetooth antenna equipment is existing Bluetooth antenna equipment in the subsystem of wisdom room, if it has, then
Based on MAC Address from MAC Address and the antenna type record prestored, the antenna type of Bluetooth antenna equipment is determined;Later, base
In the antenna type and default antenna type and parameter mapping relations of Bluetooth antenna equipment, the difference of Bluetooth antenna equipment is determined
Parameter, and real time data corresponding with difference parameter in broadcast data packet is sent to NM server;Wherein, a kind of antenna class
The corresponding parameter of type includes common parameters and difference parameter, and common parameters are the parameter that all antenna types all have, difference ginseng
Number is parameter specific to respective antenna type.A variety of Bluetooth antenna equipment are managed with same gateway to realize
Technical effect.
Detailed description of the invention
Fig. 1 is a kind of flow chart for managing a variety of Bluetooth antenna device, methods provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of wisdom room subsystem provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of gateway provided in an embodiment of the present invention.
Specific embodiment
Implementation column of the present invention provides method, equipment, system and the storage medium for managing a variety of Bluetooth antenna equipment, to solve
The technical issues of same gateway existing in the prior art cannot support a plurality of types of Bluetooth antenna equipment.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A kind of method managing a variety of Bluetooth antenna equipment is provided, gateway is applied to, this method comprises: receiving bluetooth
The broadcast data packet that antenna equipment is sent;Wherein, the MAC Address of Bluetooth antenna equipment is included at least in broadcast data packet;It is based on
MAC Address judges whether Bluetooth antenna equipment is existing Bluetooth antenna equipment in the subsystem of wisdom room;If it has, then being based on
MAC Address determines the antenna type of Bluetooth antenna equipment from MAC Address and the antenna type record prestored;Later, based on indigo plant
The antenna type and default antenna type and parameter mapping relations of tooth antenna equipment, determine the difference parameter of Bluetooth antenna equipment,
And real time data corresponding with difference parameter in broadcast data packet is sent to NM server;Wherein, a kind of antenna type pair
The parameter answered includes common parameters and difference parameter, and common parameters are the parameter that all antenna types all have, and difference parameter is
Parameter specific to respective antenna type.To realize the skill being managed with same gateway to a variety of Bluetooth antenna equipment
Art effect.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention
It is described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to the detailed of technical solution of the present invention
Thin explanation, rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present invention and embodiment
In technical characteristic can be combined with each other.
Referring to FIG. 1, the embodiment of the present invention provides a kind of method for managing a variety of Bluetooth antenna equipment, set applied to gateway
Standby, the treatment process of this method is as follows.
Step 101: receiving the broadcast data packet that Bluetooth antenna equipment is sent;Wherein, indigo plant is included at least in broadcast data packet
The MAC Address of tooth antenna equipment.
Fig. 2 is referred to, is the structural schematic diagram of wisdom room subsystem, (wherein, N is not by 1~N of Bluetooth antenna equipment for it
Natural number less than 1), gateway, NM server composition, Bluetooth antenna equipment and gateway pass through indigo plant within the system
Tooth signal transmitted data, these Bluetooth signals pass through 4G net using privately owned Bluetooth protocol, gateway and NM server
Network transmits data, using Transmission Control Protocol.Wherein, bluetooth mould group is all provided in Bluetooth antenna equipment and in gateway,
It is used for transmission Bluetooth signal, and is also provided with radio frequency identification (Radio Frequency in gateway
Identification, RFID) mould group, for supporting that antenna type is the Bluetooth antenna equipment of Almightiness type antenna equipment, due to
Gateway and NM server are by 4G transmitted data on network, so it is logical to be also provided with 4G the whole network in gateway
modem。
Usual Bluetooth antenna equipment is arranged in room, such as certain office building haves three layers altogether, and every layer has 10 rooms,
14 Bluetooth antenna equipment are disposed in each room, then every floor shares 140 Bluetooth antenna equipment, these Bluetooth antennas are set
It is standby to assume that (according to the actual range of Bluetooth signal transmission, actually possible more than one gateway is set by a gateway management
It is standby, here simply to illustrate that facilitate that citing does it is assumed that not representing the quantity of gateway used in practical application), this
Some in a little Bluetooth antenna equipment have been added to gateway, some are not yet added.These Bluetooth antenna equipment can pass through
Its internal bluetooth mould group periodically sends broadcast data packet to gateway, and at least carries respectively in broadcast data packet
From media access control address (Media Access Control Address, MAC Address).
Wherein, the antenna type of Bluetooth antenna equipment include spotlight antenna, it is dual polarization type antenna, extended pattern antenna, complete
It can type antenna.
Gateway can execute step 102 after the broadcast data for receiving Bluetooth antenna equipment.
Step 102: being based on MAC Address, judge whether Bluetooth antenna equipment is existing bluetooth day in the subsystem of wisdom room
Line equipment.
Judging whether Bluetooth antenna equipment is in the subsystem of wisdom room after existing Bluetooth antenna equipment, if bluetooth day
Line equipment is not existing Bluetooth antenna equipment in the subsystem of wisdom room, then records MAC Address, and by the shape of Bluetooth antenna equipment
State is labeled as non-uploaded state;And connection request is sent to Bluetooth antenna equipment according to MAC Address;Wherein, connection request is used for
Obtain the common parameters of Bluetooth antenna equipment.
Specifically, connection request is sent to Bluetooth antenna equipment according to MAC Address, if being within a specified time not connected with blueing
Tooth antenna equipment then periodically sends the connection request to Bluetooth antenna equipment, until connecting upper.
For example, when the Bluetooth antenna equipment 1 for sending broadcast data packet to gateway is the new bluetooth that gateway is added
When antenna equipment, then the record of the MAC Address 1 of Bluetooth antenna equipment 1 is not just had in gateway, when gateway receives
After the broadcast data packet that Bluetooth antenna equipment 1 is sent, the MAC Address 1 of Bluetooth antenna equipment 1 is obtained from the broadcast data packet,
And MAC Address 1 is compared with the MAC Address record in gateway, determine that MAC Address 1 is not present in gateway
MAC Address record in, and then determine Bluetooth antenna equipment 1 be not existing Bluetooth antenna equipment in the subsystem of wisdom room, and
It is the Bluetooth antenna equipment being newly added.
At this point, gateway need to record the MAC Address 1 of Bluetooth antenna equipment 1, and in the state mark of Bluetooth antenna equipment 1
It is denoted as non-uploaded state, is sent later to Bluetooth antenna equipment 1 for obtaining being total to for Bluetooth antenna equipment 1 further according to MAC Address 1
The connection request of property parameter, makes Bluetooth antenna equipment 1 that its common parameters is sent to gateway.
If gateway is all not received by bluetooth within the specified time after sending connection request to Bluetooth antenna equipment 1
The response message of antenna equipment 1, it is determined that the not connected upper gateway of Bluetooth antenna equipment 1, gateway can be according to bluetooth
The unmarked state of antenna equipment 1 periodically sends connection request by the time interval of 10s to Bluetooth antenna equipment 1, until
Until Bluetooth antenna equipment 1 connects upper gateway.
Wherein, common parameters, may include: product ID SN, MAC Address, antenna model, antenna software version number,
Universally Unique Identifier (Universally Unique Identifier, UUID), secondary device number (MINOR), major device number
(MAJOR), any one of electronic product code (Electronic Product Code, EPC code), broadcast cycle, or
At least two combination.
After gateway sends connection request to Bluetooth antenna equipment according to MAC Address, if Bluetooth antenna equipment is returned
Corresponding response message back, it is determined that gateway has been gone up in the connection of Bluetooth antenna equipment, and gateway receives bluetooth day at this time
The common parameters of line equipment, and be uploaded state by the status indication of Bluetooth antenna equipment;And also by common parameters and MAC
Address is sent to NM server, is recorded in the MAC Address of Bluetooth antenna equipment and common parameters in NM server.
For example, receiving gateway transmission in Bluetooth antenna equipment 1 still by taking aforementioned Bluetooth antenna equipment 1 as an example
After connection request, according to the content of connection request, the sound for carrying the common parameters of Bluetooth antenna equipment 1 is sent to gateway
Answer message.
Gateway receives the response message of Bluetooth antenna equipment 1, and therefrom obtains the general character ginseng of Bluetooth antenna equipment 1
Then the status indication of Bluetooth antenna equipment 1 is that flag states (have shown that wisdom room has been added in Bluetooth antenna equipment 1 by number
Subsystem), meanwhile, gateway will record the common parameters of Bluetooth antenna equipment 1, and by the general character of Bluetooth antenna equipment 1
Parameter is sent to NM server, allows in NM server and retains the common parameters of Bluetooth antenna equipment 1.Bluetooth afterwards in this way
The MAC Address 1 and difference parameter that itself need to be only carried in the broadcast data packet that equipment 1 is sent, send altogether without repeating
Property parameter, so as to efficiently reduce data volume of the data in the subsystem of wisdom room, improve efficiency of transmission, reduce communication at
This.
If in a step 102, judging, Bluetooth antenna equipment is that the Bluetooth antenna being present in the subsystem of wisdom room is set
It is standby, then follow the steps 103~step 104.
Step 103: if it has, then determining bluetooth from MAC Address and the antenna type record prestored based on MAC Address
The antenna type of antenna equipment.
Step 104: antenna type and default antenna type and parameter mapping relations based on Bluetooth antenna equipment determine
The difference parameter of Bluetooth antenna equipment, and real time data corresponding with difference parameter in broadcast data packet is sent to network manager service
Device;Wherein, a kind of corresponding parameter of antenna type includes common parameters and difference parameter, common parameters be all antenna types all
The parameter having, difference parameter are parameter specific to respective antenna type.
Wherein, difference parameter, according to the different type of Bluetooth antenna equipment, corresponding parameter are as follows:
When antenna type is spotlight antenna, difference parameter is link line loss value 1~3, the electricity of spotlight antenna with
And angle of declination;
When antenna type is extended pattern antenna, difference parameter is link line loss value 1, the electricity of extended pattern antenna;
When antenna type is dual polarization type antenna, difference parameter is link line loss value 1~2;
When antenna type is Almightiness type antenna, difference parameter is RFID line loss value;Wherein, RFID line loss value is from gateway
RFID mould group in obtain.
Wherein, link line loss value refers to signal power loss in specified transmission line, i.e. Bluetooth signal receives power
With the difference that power occurs.
For example, according to MAC Address 1 is obtained from broadcast data packet, with the MAC Address and antenna class prestored in gateway
Type record determines that the antenna type of Bluetooth antenna equipment 1 is extended pattern antenna, and then according to default antenna in gateway
Type and parameter mapping relations determine that the corresponding difference parameter of extended pattern antenna is that link line loss value 1 and electricity, gateway are held
The link line loss 1 being about in the broadcast data packet of Bluetooth antenna equipment 1, electricity and MAC Address 1 send NM server.
In order to enable those skilled in the art can adequately understand above-mentioned technical proposal, antenna class, which is provided below, is
It is illustrated for spotlight antenna and Almightiness type antenna:
Embodiment one, the Bluetooth antenna equipment 2 that antenna type is spotlight antenna.
Bluetooth antenna equipment 2 periodically sends broadcast data packet to gateway by the bluetooth mould group in it, this is wide
Unicast packets are proprietary protocol data packet, include at least the MAC Address 2 for having Bluetooth antenna equipment 2 in broadcast data packet.
After gateway receives the broadcast data packet of Bluetooth antenna equipment 2, MAC Address 2 is obtained from broadcast data packet,
And according to the MAC Address 2, the corresponding Bluetooth antenna equipment of MAC Address 2 is inquired whether in the subsystem of room, if not being
In system, which is stored in program cache area (i.e. record MAC Address 2) by gateway, and its flag state is denoted as
" not reporting " state (illustrates that Bluetooth antenna equipment 2 is the new Bluetooth antenna equipment that room subsystem is added).Gateway is according to this
" not reporting " state of MAC Address 2 actively sends connection request to Bluetooth antenna equipment 2.
For Bluetooth antenna equipment 2 after receiving the connection request of gateway, Bluetooth antenna equipment 2 initiates the connection gateway
Operation.And when in connection, Bluetooth antenna equipment 2 sends the response message for carrying common parameters to gateway.If referring to
Interior gateway of fixing time does not receive the common parameters of Bluetooth antenna equipment 2, it is determined that does not connect Bluetooth antenna equipment 2, net
Closing equipment periodically " can not report " state according to the MAC Address 2, send connection request, Zhi Daolian to Bluetooth antenna equipment 2
Connect Bluetooth antenna equipment 2.
After the common parameters that gateway receives Bluetooth antenna equipment 2, the Bluetooth antenna equipment 2 program cache area is right
The MAC Address 2 answered is labeled as " having reported " state, and stops sending connection request to Bluetooth antenna equipment 2, while recording bluetooth
The common parameters of antenna equipment 2 are simultaneously reported to NM server.
When gateway is connected to the broadcast data packet containing MAC Address 2 next time, correspondence is found out according to the MAC Address 2
The antenna type of Bluetooth antenna equipment 2 be spotlight antenna, then according to spotlight antenna by the difference of Bluetooth antenna equipment 2
Parameter is reported to NM server by 4G network.
Embodiment two, the Bluetooth antenna equipment 3 that antenna type is Almightiness type antenna.
Bluetooth antenna equipment 3 periodically sends broadcast data packet to gateway by the bluetooth mould group in it, this is wide
Unicast packets are proprietary protocol data packet, include at least the MAC Address 3 for having Bluetooth antenna equipment 3 in broadcast data packet.
After gateway receives the broadcast data packet of Bluetooth antenna equipment 3, MAC Address 3 is obtained from broadcast data packet,
And according to the MAC Address 3, the corresponding Bluetooth antenna equipment of MAC Address 3 is inquired whether in the subsystem of room, if in system
In, then it is corresponding to find out MAC Address 3 according to the MAC Address 3 from MAC Address and the antenna type record prestored for gateway
Antenna type be Almightiness type antenna, gateway is found out in the common parameters of Almightiness type antenna according to the MAC Address 3 at this time
EPC Code, obtaining the corresponding RFID line loss value of the EPC Code from RFID mould group further according to the EPC Code, (i.e. difference is joined
Number).The RFID line loss value that gateway will acquire is reported to NM server by 4G network.
It should be noted that when newly wisdom room subsystem is added in Bluetooth antenna equipment 3, treatment process and Bluetooth antenna
The process being newly added in equipment 2 is similar, and details are not described herein.
Based on the same inventive concept, a kind of gateway is provided in one embodiment of the invention, gateway management is a variety of
The specific embodiment of the method for bluetooth equipment can be found in the description of embodiment of the method part, and overlaps will not be repeated, please join
See Fig. 3, which includes:
Receiving unit 301, for receiving the broadcast data packet of Bluetooth antenna equipment transmission;Wherein in the broadcast data packet
Including at least the MAC Address of the Bluetooth antenna equipment;
Judging unit 302 judges whether the Bluetooth antenna equipment is that wisdom room point is for being based on the MAC Address
Existing Bluetooth antenna equipment in system;
Processing unit 303, for if it has, then being recorded based on the MAC Address from the MAC Address and antenna type prestored
In, determine the antenna type of the Bluetooth antenna equipment;Antenna type and default antenna class based on the Bluetooth antenna equipment
Type and parameter mapping relations, determine the difference parameter of the Bluetooth antenna equipment, and by the broadcast data packet with the difference
The corresponding real time data of different parameter is sent to NM server;Wherein, a kind of corresponding parameter of antenna type includes common parameters
And difference parameter, the common parameters are the parameter that all antenna types all have, the difference parameter is respective antenna type
Specific parameter.
Optionally, the processing unit 303, is also used to:
If the Bluetooth antenna equipment is not existing Bluetooth antenna equipment in the subsystem of the wisdom room, described in record
MAC Address, and be non-uploaded state by the status indication of the Bluetooth antenna equipment;
Connection request is sent to the Bluetooth antenna equipment according to the MAC Address;Wherein, the connection request is for obtaining
Take the common parameters of the Bluetooth antenna equipment.
Optionally, the processing unit 303, is also used to:
If being within a specified time not connected with the upper Bluetooth antenna equipment, periodically sent out to the Bluetooth antenna equipment
The connection request is sent, until connecting upper.
Optionally, the processing unit 303, is also used to:
The common parameters of the Bluetooth antenna equipment are received, and are to have reported by the status indication of the Bluetooth antenna equipment
State;
The common parameters and the MAC Address are sent to the NM server, make the Bluetooth antenna equipment
MAC Address and the common parameters are recorded in the NM server.
Optionally, the antenna type, comprising:
Spotlight antenna, dual polarization type antenna, extended pattern antenna, Almightiness type antenna.
Optionally, the common parameters, comprising:
Product ID SN, MAC Address, antenna model, antenna software version number, UUID, MINOR, MAJOR, EPC
Any one of Code, broadcast cycle or at least two combination.
Optionally, the difference parameter, comprising:
When the antenna type is spotlight antenna, the difference parameter is link line loss value 1~3, the torch-type
The electricity and angle of declination of antenna;
When the antenna type is extended pattern antenna, the difference parameter is link line loss value 1, the extended pattern antenna
Electricity;
When the antenna type is dual polarization type antenna, the difference parameter is link line loss value 1~2;
When the antenna type is Almightiness type antenna, the difference parameter is RFID line loss value;Wherein, the RFID line loss
Value is obtained from the RFID mould group of the gateway.
Based on the same inventive concept, a kind of wisdom room subsystem is provided in one embodiment of the invention, the wisdom room point is
System includes a variety of different types of multiple Bluetooth antenna equipment, gateway and NM server, wherein the gateway
The specific embodiment for managing the method for multiple bluetooth equipments can be found in the description of embodiment of the method part, and it is no longer superfluous to repeat place
It states.
Based on the same inventive concept, a kind of gateway is provided in the embodiment of the present invention, comprising: at least one processing
Device, and the memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least one
The instruction that device is stored by executing the memory is managed, the method for managing multiple bluetooth equipments as described above is executed.
Based on the same inventive concept, the embodiment of the present invention also mentions a kind of computer readable storage medium, comprising:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers
When, so that computer executes the method for managing multiple bluetooth equipments as described above.
In embodiment provided by the invention, include in the broadcast data packet by the Bluetooth antenna equipment transmission received
MAC Address, to judge whether Bluetooth antenna equipment is existing Bluetooth antenna equipment in the subsystem of wisdom room, if it has, then
Based on MAC Address from MAC Address and the antenna type record prestored, the antenna type of Bluetooth antenna equipment is determined;Later, base
In the antenna type and default antenna type and parameter mapping relations of Bluetooth antenna equipment, the difference of Bluetooth antenna equipment is determined
Parameter, and real time data corresponding with difference parameter in broadcast data packet is sent to NM server;Wherein, a kind of antenna class
The corresponding parameter of type includes common parameters and difference parameter, and common parameters are the parameter that all antenna types all have, difference ginseng
Number is parameter specific to respective antenna type.A variety of Bluetooth antenna equipment are managed with same gateway to realize
Technical effect.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as the production of method, system or computer program
Product.Therefore, in terms of the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present invention, which can be used in one or more,
The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code
The form of calculation machine program product.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, equipment (system) and computer program product
Flowchart and/or the block diagram describe.It should be understood that can be realized by computer program instructions in flowchart and/or the block diagram
The combination of process and/or box in each flow and/or block and flowchart and/or the block diagram.It can provide these calculating
Processing of the machine program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
Device is to generate a machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute
For realizing the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram
Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.