Disclosure of Invention
The invention provides a method, equipment, a system and a storage medium for managing various Bluetooth antenna equipment, which are used for solving the technical problem that one gateway equipment in the prior art cannot support various Bluetooth antenna equipment.
In a first aspect, to solve the above technical problem, an embodiment of the present invention provides a method for managing multiple types of bluetooth antenna devices, which is applied to a gateway device, and has a technical solution as follows:
receiving a broadcast data packet sent by Bluetooth antenna equipment; wherein the broadcast data packet includes at least the MAC address of the Bluetooth antenna device;
judging whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent room subsystem or not based on the MAC address;
if so, determining the antenna type of the Bluetooth antenna equipment from a prestored MAC address and antenna type record based on the MAC address;
determining a difference parameter of the Bluetooth antenna equipment based on the antenna type of the Bluetooth antenna equipment and a preset antenna type and parameter mapping relation, and sending real-time data corresponding to the difference parameter in the broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type.
Judging whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent room subsystem or not through the MAC address contained in the received broadcast data packet sent by the Bluetooth antenna equipment, and if so, determining the antenna type of the Bluetooth antenna equipment from the prestored MAC address and antenna type record based on the MAC address; then, based on the antenna type of the Bluetooth antenna equipment and the preset mapping relation between the antenna type and the parameters, determining the difference parameters of the Bluetooth antenna equipment, and sending real-time data corresponding to the difference parameters in the broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type. Therefore, the technical effect of managing various Bluetooth antenna devices by using the same gateway device is achieved.
Optionally, after judging whether the bluetooth antenna device is an existing bluetooth antenna device in the smart room subsystem, the method further includes:
if the Bluetooth antenna equipment is not the existing Bluetooth antenna equipment in the intelligent room subsystem, recording the MAC address, and marking the state of the Bluetooth antenna equipment as an unreported state;
sending a connection request to the Bluetooth antenna equipment according to the MAC address; wherein the connection request is used for acquiring the common parameters of the Bluetooth antenna equipment.
Optionally, sending a connection request to the bluetooth antenna device according to the MAC address includes:
and if the Bluetooth antenna equipment is not connected within the specified time, periodically sending the connection request to the Bluetooth antenna equipment until the Bluetooth antenna equipment is connected.
Optionally, after sending the connection request to the bluetooth antenna device according to the MAC address, the method further includes:
receiving the common parameters of the Bluetooth antenna equipment, and marking the state of the Bluetooth antenna equipment as a reported state;
and sending the common parameter and the MAC address to the network management server, so that the MAC address of the Bluetooth antenna equipment and the common parameter are recorded in the network management server.
Optionally, the antenna type includes:
spot light type antenna, dual polarization type antenna, extended antenna, and all-round antenna.
Optionally, the common parameters include:
any one of a product serial number SN, a MAC address, an antenna model number, an antenna software version number, a UUID, a MINOR, a MAJOR, an EPC Code, a broadcast cycle, or a combination of at least two.
Optionally, the difference parameter includes:
when the antenna type is a spotlight type antenna, the difference parameters are a link line loss value of 1-3, the electric quantity of the spotlight type antenna and a downward inclination angle;
when the antenna type is an extended antenna, the difference parameter is a link line loss value 1 and the electric quantity of the extended antenna;
when the antenna type is a dual-polarized antenna, the difference parameter is a link line loss value of 1-2;
when the antenna type is an all-round antenna, the difference parameter is an RFID line loss value; and the RFID line loss value is obtained from an RFID module of the gateway equipment.
In a second aspect, an embodiment of the present invention provides a gateway device, including:
the receiving unit is used for receiving the broadcast data packet sent by the Bluetooth antenna equipment; wherein the broadcast data packet includes at least the MAC address of the Bluetooth antenna device;
the judging unit is used for judging whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent room subsystem or not based on the MAC address;
the processing unit is used for determining the antenna type of the Bluetooth antenna equipment from a prestored MAC address and antenna type record based on the MAC address if the Bluetooth antenna equipment is in the Bluetooth state; determining a difference parameter of the Bluetooth antenna equipment based on the antenna type of the Bluetooth antenna equipment and a preset antenna type and parameter mapping relation, and sending real-time data corresponding to the difference parameter in the broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type.
Optionally, the processing unit is further configured to:
if the Bluetooth antenna equipment is not the existing Bluetooth antenna equipment in the intelligent room subsystem, recording the MAC address, and marking the state of the Bluetooth antenna equipment as an unreported state;
sending a connection request to the Bluetooth antenna equipment according to the MAC address; wherein the connection request is used for acquiring the common parameters of the Bluetooth antenna equipment.
Optionally, the processing unit is further configured to:
and if the Bluetooth antenna equipment is not connected within the specified time, periodically sending the connection request to the Bluetooth antenna equipment until the Bluetooth antenna equipment is connected.
Optionally, the processing unit is further configured to:
receiving the common parameters of the Bluetooth antenna equipment, and marking the state of the Bluetooth antenna equipment as a reported state;
and sending the common parameter and the MAC address to the network management server, so that the MAC address of the Bluetooth antenna equipment and the common parameter are recorded in the network management server.
Optionally, the antenna type includes:
spot light type antenna, dual polarization type antenna, extended antenna, and all-round antenna.
Optionally, the common parameters include:
any one of a product serial number SN, a MAC address, an antenna model number, an antenna software version number, a UUID, a MINOR, a MAJOR, an EPC Code, a broadcast cycle, or a combination of at least two.
Optionally, the difference parameter includes:
when the antenna type is a spotlight type antenna, the difference parameters are a link line loss value of 1-3, the electric quantity of the spotlight type antenna and a downward inclination angle;
when the antenna type is an extended antenna, the difference parameter is a link line loss value 1 and the electric quantity of the extended antenna;
when the antenna type is a dual-polarized antenna, the difference parameter is a link line loss value of 1-2;
when the antenna type is an all-round antenna, the difference parameter is an RFID line loss value; and the RFID line loss value is obtained from an RFID module of the gateway equipment.
In a third aspect, an embodiment of the present invention provides an intelligent room subsystem, where the intelligent room subsystem includes multiple bluetooth antenna devices of different types, a gateway device, and a network management server, and the gateway device manages the multiple bluetooth antenna devices by using the method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a gateway device, including:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor performs the method according to the first aspect by executing the instructions stored by the memory.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, including:
the computer readable storage medium stores computer instructions which, when executed on a computer, cause the computer to perform the method of the first aspect as described above.
Through the technical solutions in one or more of the above embodiments of the present invention, the embodiments of the present invention have at least the following technical effects:
in the embodiment provided by the invention, whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent room subsystem is judged through the MAC address contained in the received broadcast data packet sent by the Bluetooth antenna equipment, if so, the antenna type of the Bluetooth antenna equipment is determined from the prestored MAC address and antenna type record based on the MAC address; then, based on the antenna type of the Bluetooth antenna equipment and the preset mapping relation between the antenna type and the parameters, determining the difference parameters of the Bluetooth antenna equipment, and sending real-time data corresponding to the difference parameters in the broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type. Therefore, the technical effect of managing various Bluetooth antenna devices by using the same gateway device is achieved.
Detailed Description
Embodiments of the present invention provide a method, an apparatus, a system, and a storage medium for managing multiple bluetooth antenna apparatuses, so as to solve the technical problem in the prior art that the same gateway apparatus cannot support multiple bluetooth antenna apparatuses.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
a method for managing a plurality of Bluetooth antenna devices is provided, which is applied to a gateway device and comprises the following steps: receiving a broadcast data packet sent by Bluetooth antenna equipment; the broadcast data packet at least comprises an MAC address of the Bluetooth antenna equipment; judging whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent room subsystem or not based on the MAC address; if so, determining the antenna type of the Bluetooth antenna equipment from the prestored MAC address and antenna type record based on the MAC address; then, based on the antenna type of the Bluetooth antenna equipment and the preset mapping relation between the antenna type and the parameters, determining the difference parameters of the Bluetooth antenna equipment, and sending real-time data corresponding to the difference parameters in the broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type. Therefore, the technical effect of managing various Bluetooth antenna devices by using the same gateway device is achieved.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
Referring to fig. 1, an embodiment of the present invention provides a method for managing multiple bluetooth antenna devices, which is applied to a gateway device.
Step 101: receiving a broadcast data packet sent by Bluetooth antenna equipment; wherein, the broadcast data packet at least comprises the MAC address of the Bluetooth antenna equipment.
Please refer to fig. 2, which is a schematic structural diagram of a smart room subsystem, and the smart room subsystem is composed of bluetooth antenna devices 1 to N (where N is a natural number not less than 1), a gateway device, and a network management server, in the system, the bluetooth antenna devices and the gateway device transmit data through bluetooth signals, the bluetooth signals adopt a private bluetooth protocol, and the gateway device and the network management server transmit data through a 4G network, and adopt a TCP protocol. The gateway device is provided with a Bluetooth module for transmitting Bluetooth signals, a Radio Frequency Identification (RFID) module for supporting the Bluetooth antenna device with an antenna type of all-round antenna device, and a 4G full-network communication module for transmitting data through a 4G network.
Generally, bluetooth antenna devices are arranged in rooms, for example, an office building has 3 floors, each floor has 10 rooms, and 14 bluetooth antenna devices are arranged in each room, so that each floor has 140 bluetooth antenna devices, these bluetooth antenna devices are assumed to be managed by one gateway device (according to the actual distance of bluetooth signal transmission, there may be more than one gateway device actually, and this is only an assumption made for convenience of illustration and does not represent the number of gateway devices used in actual application), some of these bluetooth antenna devices are already added to the gateway device, and some of these bluetooth antenna devices are not yet added. These bluetooth antenna devices will periodically send broadcast data packets to the gateway device through the bluetooth modules therein, and the broadcast data packets at least carry respective Media Access Control addresses (MAC addresses).
The antenna types of the Bluetooth antenna equipment comprise a spotlight antenna, a dual-polarized antenna, an extended antenna and an all-round antenna.
After receiving the broadcast data of the bluetooth antenna device, the gateway device may perform step 102.
Step 102: and judging whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent room subsystem or not based on the MAC address.
After judging whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent indoor subsystem or not, if the Bluetooth antenna equipment is not the existing Bluetooth antenna equipment in the intelligent indoor subsystem, recording the MAC address, and marking the state of the Bluetooth antenna equipment as a non-reported state; and sending a connection request to the Bluetooth antenna equipment according to the MAC address; wherein the connection request is used for acquiring the common parameters of the Bluetooth antenna equipment.
Specifically, a connection request is sent to the bluetooth antenna device according to the MAC address, and if the bluetooth antenna device is not connected within a specified time, the connection request is periodically sent to the bluetooth antenna device until the connection is made.
For example, when the bluetooth antenna apparatus 1 that sends a broadcast packet to the gateway apparatus is a bluetooth antenna apparatus that newly joins in the gateway apparatus, there is no record of the MAC address 1 of the bluetooth antenna apparatus 1 in the gateway apparatus, after the gateway apparatus receives the broadcast packet sent by the bluetooth antenna apparatus 1, the MAC address 1 of the bluetooth antenna apparatus 1 is obtained from the broadcast packet, and the MAC address 1 is compared with the MAC address record in the gateway apparatus, it is determined that the MAC address 1 does not exist in the MAC address record in the gateway apparatus, and it is determined that the bluetooth antenna apparatus 1 is not an existing bluetooth antenna apparatus in the smart room subsystem but a newly joined bluetooth antenna apparatus.
At this time, the gateway device needs to record the MAC address 1 of the bluetooth antenna device 1, and mark the state of the bluetooth antenna device 1 as an unreported state, and then send a connection request for acquiring the common parameters of the bluetooth antenna device 1 to the bluetooth antenna device 1 according to the MAC address 1, so that the bluetooth antenna device 1 sends the common parameters to the gateway device.
If the gateway device does not receive the response message of the bluetooth antenna device 1 within the specified time after sending the connection request to the bluetooth antenna device 1, it is determined that the bluetooth antenna device 1 is not connected to the gateway device, and the gateway device may send the connection request to the bluetooth antenna device 1 periodically at a time interval of 10s according to the unmarked state of the bluetooth antenna device 1 until the bluetooth antenna device 1 is connected to the gateway device.
The common parameters may include: the antenna may be any one of a Product serial number SN, a MAC address, an antenna model number, an antenna software version number, a Universal Unique Identifier (UUID), a MINOR equipment number (MINOR), a MAJOR equipment number (MAJOR), an Electronic Product Code (EPC Code), a broadcast cycle, or a combination of at least two of them.
After the gateway equipment sends a connection request to the Bluetooth antenna equipment according to the MAC address, if the Bluetooth antenna equipment returns a corresponding response message, the gateway equipment is determined to be connected with the Bluetooth antenna equipment, and at the moment, the gateway equipment receives the common parameters of the Bluetooth antenna equipment and marks the state of the Bluetooth antenna equipment as a reported state; and the common parameter and the MAC address are also sent to a network management server, so that the MAC address and the common parameter of the Bluetooth antenna equipment are recorded in the network management server.
For example, still taking the bluetooth antenna apparatus 1 as an example, after the bluetooth antenna apparatus 1 receives the connection request sent by the gateway apparatus, according to the content of the connection request, a response message carrying the common parameters of the bluetooth antenna apparatus 1 is sent to the gateway apparatus.
The gateway device receives the response message of the Bluetooth antenna device 1, acquires the common parameters of the Bluetooth antenna device 1, marks the state of the Bluetooth antenna device 1 as a marked state (namely, the state indicates that the Bluetooth antenna device 1 is added to the intelligent room subsystem), records the common parameters of the Bluetooth antenna device 1, sends the common parameters of the Bluetooth antenna device 1 to the network management server, and allows the network management server to retain the common parameters of the Bluetooth antenna device 1. Therefore, only the MAC address 1 and the difference parameter of the broadcast data packet sent by the Bluetooth device 1 need to be carried in the broadcast data packet, and the common parameter does not need to be sent repeatedly, so that the data volume of the data in the intelligent room subsystem can be effectively reduced, the transmission efficiency is improved, and the communication cost is reduced.
If the bluetooth antenna device is determined to be a bluetooth antenna device already existing in the smart room subsystem in step 102, step 103-step 104 are executed.
Step 103: if so, determining the antenna type of the Bluetooth antenna equipment from the prestored MAC address and antenna type record based on the MAC address.
Step 104: determining a difference parameter of the Bluetooth antenna equipment based on the antenna type of the Bluetooth antenna equipment and a preset antenna type and parameter mapping relation, and sending real-time data corresponding to the difference parameter in a broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type.
Wherein, the difference parameter, according to the different grade type of bluetooth antenna equipment, the parameter that corresponds is:
when the antenna type is a spotlight type antenna, the difference parameters are a link line loss value of 1-3, the electric quantity of the spotlight type antenna and a downward inclination angle;
when the antenna type is an extended antenna, the difference parameter is a link line loss value 1 and the electric quantity of the extended antenna;
when the antenna type is a dual-polarized antenna, the difference parameter is a link line loss value of 1-2;
when the antenna type is an all-round antenna, the difference parameter is an RFID line loss value; and the RFID line loss value is obtained from an RFID module of the gateway equipment.
The link loss value refers to the power loss of the signal in a specified transmission line, namely the difference between the received power and the generated power of the bluetooth signal.
For example, according to the MAC address 1 obtained from the broadcast data packet and the MAC address and antenna type record prestored in the gateway device, it is determined that the antenna type of the bluetooth antenna device 1 is an extended antenna, and then, it is determined according to the preset antenna type and parameter mapping relationship in the gateway device, the difference parameters corresponding to the extended antenna are the link loss value 1 and the electric quantity, and the gateway device executes the transmission of the link loss value 1, the electric quantity and the MAC address 1 in the broadcast data packet of the bluetooth antenna device 1 to the network management server.
In order to enable those skilled in the art to fully understand the above technical solution, the following examples will be provided to illustrate the antenna types as a spot light type antenna and a full-function type antenna:
embodiment one, the antenna type is bluetooth antenna equipment 2 of shot-light type antenna.
The bluetooth antenna device 2 periodically sends a broadcast data packet to the gateway device through a bluetooth module therein, the broadcast data packet is a private protocol data packet, and the broadcast data packet at least includes the MAC address 2 of the bluetooth antenna device 2.
After receiving the broadcast data packet of the bluetooth antenna device 2, the gateway device obtains the MAC address 2 from the broadcast data packet, and according to the MAC address 2, queries whether the bluetooth antenna device corresponding to the MAC address 2 is already in the indoor subsystem, if not, the gateway device stores the MAC address 2 in a program buffer area (i.e., records the MAC address 2), and records the tag state as an "unreported" state (which indicates that the bluetooth antenna device 2 is a bluetooth antenna device newly added to the indoor subsystem). And the gateway equipment actively sends a connection request to the Bluetooth antenna equipment 2 according to the 'unreported' state of the MAC address 2.
After the bluetooth antenna apparatus 2 receives the connection request of the gateway apparatus, the bluetooth antenna apparatus 2 initiates an operation of connecting the gateway apparatus. And when connecting, the bluetooth antenna apparatus 2 sends a response message carrying the commonality parameter to the gateway apparatus. If the gateway device does not receive the common parameters of the bluetooth antenna device 2 within the specified time, it is determined that the bluetooth antenna device 2 cannot be connected, and the gateway device periodically sends a connection request to the bluetooth antenna device 2 according to the status of 'not reported' of the MAC address 2 until the bluetooth antenna device 2 is connected.
After the gateway device receives the common parameters of the bluetooth antenna device 2, the MAC address 2 corresponding to the bluetooth antenna device 2 in the program buffer area is marked as a "reported" state, and stops sending a connection request to the bluetooth antenna device 2, and simultaneously records and reports the common parameters of the bluetooth antenna device 2 to the network management server.
When the gateway device receives the broadcast data packet containing the MAC address 2 next time, the antenna type of the corresponding Bluetooth antenna device 2 is found out to be a spotlight type antenna according to the MAC address 2, and then the difference parameters of the Bluetooth antenna device 2 are reported to the network management server through the 4G network according to the spotlight type antenna.
In the second embodiment, the antenna type is the bluetooth antenna device 3 of the all-round antenna.
The bluetooth antenna device 3 periodically sends a broadcast data packet to the gateway device through the bluetooth module therein, where the broadcast data packet is a private protocol data packet, and the broadcast data packet at least includes the MAC address 3 of the bluetooth antenna device 3.
After receiving the broadcast data packet of the bluetooth antenna device 3, the gateway device obtains the MAC address 3 from the broadcast data packet, and queries whether the bluetooth antenna device corresponding to the MAC address 3 is already in the indoor distribution system according to the MAC address 3, if so, the gateway device finds out that the antenna type corresponding to the MAC address 3 is an all-purpose antenna from the pre-stored records of the MAC address and the antenna type according to the MAC address 3, and then the gateway device finds out the EPC Code in the common parameters of the all-purpose antenna according to the MAC address 3, and then obtains the RFID line loss value (i.e., the difference parameter) corresponding to the EPC Code from the RFID module according to the EPC Code. And the gateway equipment reports the acquired RFID line loss value to a network management server through a 4G network.
It should be noted that, when the bluetooth antenna apparatus 3 is newly added to the smart room subsystem, the processing procedure is similar to that of the bluetooth antenna apparatus 2, and is not described herein again.
Based on the same inventive concept, an embodiment of the present invention provides a gateway device, where a specific implementation of a method for managing multiple bluetooth devices by the gateway device may refer to the description of the method embodiment, and repeated parts are not repeated, please refer to fig. 3, where the gateway includes:
a receiving unit 301, configured to receive a broadcast data packet sent by a bluetooth antenna apparatus; wherein the broadcast data packet includes at least the MAC address of the Bluetooth antenna device;
a determining unit 302, configured to determine whether the bluetooth antenna device is an existing bluetooth antenna device in the smart room subsystem based on the MAC address;
a processing unit 303, configured to determine, if the bluetooth antenna device is a bluetooth antenna device, an antenna type of the bluetooth antenna device from a pre-stored MAC address and antenna type record based on the MAC address; determining a difference parameter of the Bluetooth antenna equipment based on the antenna type of the Bluetooth antenna equipment and a preset antenna type and parameter mapping relation, and sending real-time data corresponding to the difference parameter in the broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type.
Optionally, the processing unit 303 is further configured to:
if the Bluetooth antenna equipment is not the existing Bluetooth antenna equipment in the intelligent room subsystem, recording the MAC address, and marking the state of the Bluetooth antenna equipment as an unreported state;
sending a connection request to the Bluetooth antenna equipment according to the MAC address; wherein the connection request is used for acquiring the common parameters of the Bluetooth antenna equipment.
Optionally, the processing unit 303 is further configured to:
and if the Bluetooth antenna equipment is not connected within the specified time, periodically sending the connection request to the Bluetooth antenna equipment until the Bluetooth antenna equipment is connected.
Optionally, the processing unit 303 is further configured to:
receiving the common parameters of the Bluetooth antenna equipment, and marking the state of the Bluetooth antenna equipment as a reported state;
and sending the common parameter and the MAC address to the network management server, so that the MAC address of the Bluetooth antenna equipment and the common parameter are recorded in the network management server.
Optionally, the antenna type includes:
spot light type antenna, dual polarization type antenna, extended antenna, and all-round antenna.
Optionally, the common parameters include:
any one of a product serial number SN, a MAC address, an antenna model number, an antenna software version number, a UUID, a MINOR, a MAJOR, an EPC Code, a broadcast cycle, or a combination of at least two.
Optionally, the difference parameter includes:
when the antenna type is a spotlight type antenna, the difference parameters are a link line loss value of 1-3, the electric quantity of the spotlight type antenna and a downward inclination angle;
when the antenna type is an extended antenna, the difference parameter is a link line loss value 1 and the electric quantity of the extended antenna;
when the antenna type is a dual-polarized antenna, the difference parameter is a link line loss value of 1-2;
when the antenna type is an all-round antenna, the difference parameter is an RFID line loss value; and the RFID line loss value is obtained from an RFID module of the gateway equipment.
Based on the same inventive concept, an embodiment of the present invention provides an intelligent room distribution system, where the intelligent room distribution system includes multiple different types of bluetooth antenna devices, a gateway device, and a network management server, and a specific implementation manner of a method for managing multiple bluetooth devices by the gateway device may be referred to in the description of the method embodiment, and repeated details are not repeated.
Based on the same inventive concept, an embodiment of the present invention provides a gateway device, including: at least one processor, and a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor performs the method of managing a plurality of bluetooth devices as described above by executing the instructions stored by the memory.
Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, including:
the computer readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform a method of managing a plurality of bluetooth devices as described above.
In the embodiment provided by the invention, whether the Bluetooth antenna equipment is the existing Bluetooth antenna equipment in the intelligent room subsystem is judged through the MAC address contained in the received broadcast data packet sent by the Bluetooth antenna equipment, if so, the antenna type of the Bluetooth antenna equipment is determined from the prestored MAC address and antenna type record based on the MAC address; then, based on the antenna type of the Bluetooth antenna equipment and the preset mapping relation between the antenna type and the parameters, determining the difference parameters of the Bluetooth antenna equipment, and sending real-time data corresponding to the difference parameters in the broadcast data packet to a network management server; the parameters corresponding to one antenna type comprise a common parameter and a difference parameter, wherein the common parameter is a parameter which all the antenna types have, and the difference parameter is a parameter which is specific to the corresponding antenna type. Therefore, the technical effect of managing various Bluetooth antenna devices by using the same gateway device is achieved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.