Bluetooth mesh-based illumination control method and related system

文档序号:1300860 发布日期:2020-08-07 浏览:16次 中文

阅读说明:本技术 一种基于蓝牙mesh的照明控制方法及相关系统 (Bluetooth mesh-based illumination control method and related system ) 是由 娄旭 李涛 于 2020-04-30 设计创作,主要内容包括:本申请实施例公开了一种基于蓝牙mesh的照明方法及其系统,用于解决现有技术中当需要控制的照明设备越多,其需要布置的线路就越多,花费在布置控制线路的成本越高的问题。本申请实施例方法包括:照明设备捕获蓝牙定位标签发射的广播包,照明设备根据广播包的信号强度,计算得知蓝牙定位标签距离照明设备的距离,照明设备将距离信息经过无线网关向云端服务器发送,以使得云端服务器根据多个距离信息计算得出蓝牙定位标签的具体位置,并根据蓝牙定位标签的最新具体位置形成照明指令,并将明指令经过无线网关传回所述对应的照明设备,照明设备接收经过无线网关传回的照明指令,照明设备根据照明指令调节灯光效果。(The embodiment of the application discloses a lighting method based on Bluetooth mesh and a system thereof, which are used for solving the problems that in the prior art, when more lighting devices need to be controlled, more lines need to be arranged, and the cost of arranging control lines is higher. The method in the embodiment of the application comprises the following steps: the lighting device captures a broadcast packet transmitted by the Bluetooth positioning tag, the lighting device calculates the distance between the Bluetooth positioning tag and the lighting device according to the signal intensity of the broadcast packet, the lighting device sends distance information to the cloud server through the wireless gateway, so that the cloud server calculates the specific position of the Bluetooth positioning tag according to the distance information, forms a lighting instruction according to the latest specific position of the Bluetooth positioning tag, sends a lighting instruction back to the corresponding lighting device through the wireless gateway, the lighting device receives the lighting instruction sent back through the wireless gateway, and the lighting device adjusts the light effect according to the lighting instruction.)

1. A lighting control method based on Bluetooth mesh is applied to lighting equipment provided with a Bluetooth mesh control module, and is characterized by comprising the following steps:

the lighting equipment captures a broadcast packet transmitted by the Bluetooth positioning tag;

the lighting equipment calculates the distance between the Bluetooth positioning tag and the lighting equipment according to the signal intensity of the broadcast packet;

the lighting device sends the distance to a cloud server through a wireless gateway, so that the cloud server calculates specific positions of the Bluetooth positioning tags according to the distances, forms a lighting instruction according to the latest specific positions of the Bluetooth positioning tags, and sends the lighting instruction back to the corresponding lighting device through the wireless gateway;

the lighting equipment receives a lighting instruction transmitted back by the wireless gateway;

and the lighting equipment adjusts the light effect according to the lighting instruction.

2. The lighting control method based on bluetooth mesh according to claim 1, applied to lighting equipment equipped with a bluetooth mesh control module, wherein the broadcast packet includes tag identity status information of the bluetooth positioning tag; after the lighting device captures the broadcast packets transmitted by the bluetooth positioning tag, the method further comprises:

the lighting equipment uploads the self lighting equipment identity state information and the label identity state information of the Bluetooth positioning label to the cloud server through the wireless gateway, so that the cloud server updates the lighting equipment identity state information and the label identity state information to an appointed intelligent terminal in real time.

3. The bluetooth mesh-based lighting control method according to claim 2, applied to a lighting device equipped with a bluetooth mesh control module, wherein after the lighting device uploads the own lighting device identity status information and the tag identity status information of the bluetooth positioning tag to the cloud server via the wireless gateway, the method further comprises:

the lighting equipment receives a control command of the lighting equipment, which is forwarded by the cloud server, through the wireless gateway;

and the lighting equipment adjusts the light effect according to the control command.

4. A lighting control method based on Bluetooth mesh is applied to a cloud server and is characterized by comprising the following steps:

the cloud server receives the distance forwarded by the wireless gateway, wherein the distance is the distance calculated according to the signal intensity of the broadcast packet transmitted by the Bluetooth positioning tag and sent by the specific lighting equipment;

the cloud server records the distances of the Bluetooth positioning tags sent by a plurality of lighting devices;

the cloud server calculates the specific position of the Bluetooth positioning tag according to the distances sent by different lighting devices of the Bluetooth positioning tag at the same moment;

the cloud server determines surrounding lighting equipment at the specific position to form a lighting instruction for the surrounding lighting equipment;

and the cloud server sends the illumination instruction to the surrounding illumination equipment through a wireless gateway, so that the surrounding illumination equipment adjusts the light effect according to the illumination instruction.

5. The bluetooth mesh-based lighting control method according to claim 4, applied to a cloud server, wherein after the cloud server calculates a specific location of the bluetooth positioning tag according to the distances sent by different lighting devices of the bluetooth positioning tag at the same time, the method further comprises:

the cloud server records the specific position of the Bluetooth positioning tag to form a position track of the Bluetooth positioning tag;

and the cloud server updates the position track data to a designated intelligent terminal in real time so that the designated intelligent terminal displays the position track of the positioning label in real time.

6. The lighting control method based on bluetooth mesh according to claim 4 or 5, applied to a cloud server, wherein the method further comprises:

the cloud server receives the lighting equipment identity state information forwarded by the wireless gateway and the label identity state information of the Bluetooth positioning label;

and the cloud server updates the identity state information of the lighting equipment and the identity state information of the label to a specified intelligent terminal in real time.

7. The bluetooth mesh-based lighting control method according to claim 6, applied to a cloud server, wherein after the cloud server updates the lighting device identity status information and the tag identity status information to a specific smart terminal in real time, the method further comprises:

the cloud server receives a control command of the specified intelligent terminal to the lighting equipment;

the cloud server forwards the control command to the lighting device through the wireless gateway, so that the lighting device adjusts the light effect according to the control command.

8. The utility model provides a lighting control system based on bluetooth mesh, is applied to the lighting apparatus who is equipped with bluetooth mesh control module, its characterized in that includes:

the capturing unit is used for capturing the broadcast packet transmitted by the Bluetooth positioning tag;

the calculating unit is used for calculating the distance between the Bluetooth positioning tag and the lighting equipment according to the signal intensity of the broadcast packet;

the sending unit is used for sending the distance information to a cloud server through a wireless gateway, so that the cloud server calculates specific positions of the Bluetooth positioning tags according to the distances, forms lighting instructions according to the latest specific positions of the Bluetooth positioning tags, and sends the lighting instructions back to the corresponding lighting equipment through the wireless gateway;

the receiving unit is used for receiving the illumination instruction transmitted back by the wireless gateway;

and the adjusting unit is used for adjusting the light effect according to the lighting instruction.

9. The utility model provides a lighting control system based on bluetooth mesh, is applied to high in the clouds server, its characterized in that includes:

the receiving unit is used for receiving distance information forwarded by the wireless gateway, wherein the distance information is a distance which is calculated according to the signal intensity of a broadcast packet transmitted by the Bluetooth positioning tag and sent by a specific lighting device;

the recording unit is used for recording the distances of the Bluetooth positioning tags sent by a plurality of lighting devices;

the calculating unit is used for calculating the specific position of the Bluetooth positioning tag according to the distances sent by different lighting devices of the Bluetooth positioning tag at the same moment;

a determination forming unit, which is used for determining the peripheral lighting equipment at the specific position and forming a lighting instruction for the peripheral lighting equipment;

and the sending unit is used for sending the illumination instruction to the surrounding illumination equipment through a wireless gateway so that the surrounding illumination equipment adjusts the light effect according to the illumination instruction.

10. An illumination device, comprising:

a processor, a memory, a bus, an input-output device, a lighting assembly;

the processor is connected with the memory and the input and output equipment;

the bus is respectively connected with the processor, the memory, the input and output equipment and the lighting assembly;

the processor performs the method of any of claims 1 to 3.

11. A cloud server, comprising:

the system comprises a processor, a memory, a bus and input and output equipment;

the processor is connected with the memory and the input and output equipment;

the bus is respectively connected with the processor, the memory and the input and output equipment;

the processor performs the method of any of claims 4 to 7.

12. A computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 7.

13. A computer program product, characterized in that the computer program product, when executed on a computer, causes the computer to perform the method according to any of claims 1 to 7.

Technical Field

The embodiment of the application relates to the technical field of illumination, in particular to an illumination control method based on Bluetooth mesh and a related system.

Background

At present, large-scale lighting control is mostly controlled through a wired network, the technical scheme of controlling lighting through the wired network is high in cost and large in construction difficulty, when lighting equipment needing to be controlled is more, the more lines need to be arranged, and the higher the cost of arranging control lines is.

Disclosure of Invention

The embodiment of the application provides a lighting control method based on Bluetooth mesh and a related system, and is used for solving the problems that in the prior art, when more lighting devices need to be controlled, more lines need to be arranged, and the cost of arranging control lines is higher.

A first aspect of the embodiments of the present application provides a lighting control method based on bluetooth mesh, which is applied to a lighting device equipped with a bluetooth mesh control module, and includes:

the lighting equipment captures a broadcast packet transmitted by the Bluetooth positioning tag;

the lighting equipment calculates the distance between the Bluetooth positioning tag and the lighting equipment according to the signal intensity of the broadcast packet;

the lighting device sends the distance to a cloud server through a wireless gateway, so that the cloud server calculates specific positions of the Bluetooth positioning tags according to the distances, forms a lighting instruction according to the latest specific positions of the Bluetooth positioning tags, and sends the lighting instruction back to the corresponding lighting device through the wireless gateway;

the lighting equipment receives a lighting instruction transmitted back by the wireless gateway;

and the lighting equipment adjusts the light effect according to the lighting instruction.

Optionally, the broadcast packet includes tag identity status information of the bluetooth positioning tag; after the lighting device captures the broadcast packets transmitted by the bluetooth positioning tag, the method further comprises:

the lighting equipment uploads the self lighting equipment identity state information and the label identity state information of the Bluetooth positioning label to the cloud server through the wireless gateway, so that the cloud server updates the lighting equipment identity state information and the label identity state information to an appointed intelligent terminal in real time.

Optionally, after the lighting device uploads the lighting device identity state information of the lighting device itself and the tag identity state information of the bluetooth positioning tag to the cloud server through the wireless gateway, the method further includes:

the lighting equipment receives a control command of the lighting equipment, which is forwarded by the cloud server, through the wireless gateway;

and the lighting equipment adjusts the light effect according to the control command.

The second aspect of the present application provides a lighting control method based on bluetooth mesh, applied to a cloud server, including:

the cloud server receives the distance forwarded by the wireless gateway, wherein the distance is the distance calculated according to the signal intensity of the broadcast packet transmitted by the Bluetooth positioning tag and sent by the specific lighting equipment;

the cloud server records the distances of the Bluetooth positioning tags sent by a plurality of lighting devices;

the cloud server calculates the specific position of the Bluetooth positioning tag according to the distances sent by different lighting devices of the Bluetooth positioning tag at the same moment;

the cloud server determines surrounding lighting equipment at the specific position to form a lighting instruction for the surrounding lighting equipment;

and the cloud server sends the illumination instruction to the surrounding illumination equipment through a wireless gateway, so that the surrounding illumination equipment adjusts the light effect according to the illumination instruction.

Optionally, after the cloud server calculates the specific position of the bluetooth positioning tag according to the distances sent by different lighting devices of the bluetooth positioning tag at the same time, the method further includes:

the cloud server records the specific position of the Bluetooth positioning tag to form a position track of the Bluetooth positioning tag;

and the cloud server updates the position track data to a designated intelligent terminal in real time so that the designated intelligent terminal displays the position track of the positioning label in real time.

Optionally, the method further comprises:

the cloud server receives the lighting equipment identity state information forwarded by the wireless gateway and the label identity state information of the Bluetooth positioning label;

and the cloud server updates the identity state information of the lighting equipment and the identity state information of the label to a specified intelligent terminal in real time.

Optionally, after the cloud server updates the lighting device identity status information and the tag identity status information to a specified smart terminal in real time, the method further includes:

the cloud server receives a control command of the specified intelligent terminal to the lighting equipment;

the cloud server forwards the control command to the lighting device through the wireless gateway, so that the lighting device adjusts the light effect according to the control command.

The third aspect of the present application provides a lighting control system based on bluetooth mesh, which is applied to a lighting device equipped with a bluetooth mesh control module, and includes:

the capturing unit is used for capturing the broadcast packet transmitted by the Bluetooth positioning tag;

the calculating unit is used for calculating the distance between the Bluetooth positioning tag and the lighting equipment according to the signal intensity of the broadcast packet;

the sending unit is used for sending the distance information to a cloud server through a wireless gateway, so that the cloud server calculates specific positions of the Bluetooth positioning tags according to the distances, forms lighting instructions according to the latest specific positions of the Bluetooth positioning tags, and sends the lighting instructions back to the corresponding lighting equipment through the wireless gateway;

the receiving unit is used for receiving the illumination instruction transmitted back by the wireless gateway;

and the adjusting unit is used for adjusting the light effect according to the lighting instruction.

Optionally, the broadcast packet includes tag identity status information of the bluetooth positioning tag; the system further comprises:

the sending unit is further used for uploading the lighting equipment identity state information of the lighting equipment and the label identity state information of the Bluetooth positioning label to the cloud server through the wireless gateway, so that the cloud server can update the lighting equipment identity state information and the label identity state information to an appointed intelligent terminal in real time.

Optionally, the system further comprises:

the receiving unit is used for receiving a control command of the lighting equipment, which is forwarded by the cloud server, through the wireless gateway;

and the adjusting unit is also used for adjusting the light effect according to the control command.

The fourth aspect of the present application provides a lighting control system based on bluetooth mesh, is applied to high in the clouds server, includes:

the receiving unit is used for receiving the distance forwarded by the wireless gateway, wherein the distance is the distance between a specific lighting device and the specific lighting device, and the distance is calculated according to the signal intensity of a broadcast packet transmitted by the Bluetooth positioning tag;

the recording unit is used for recording the distances of the Bluetooth positioning tags sent by a plurality of lighting devices;

the calculating unit is used for calculating the specific position of the Bluetooth positioning tag according to the distance information sent by different lighting devices of the Bluetooth positioning tag at the same moment;

a determination forming unit, configured to determine the peripheral lighting device at the specific location, and form an illumination instruction for the peripheral lighting device;

and the sending unit is used for sending the illumination instruction to the surrounding illumination equipment through a wireless gateway so that the surrounding illumination equipment adjusts the light effect according to the illumination instruction.

Optionally, the system further comprises:

the track forming unit is also used for recording the specific position of the Bluetooth positioning tag and forming the position track of the Bluetooth positioning tag;

and the updating unit is used for updating the position track data to a specified intelligent terminal in real time so that the specified intelligent terminal displays the position track of the positioning label in real time.

Optionally, the system further comprises:

the receiving unit is also used for receiving the lighting equipment identity state information forwarded by the wireless gateway and the label identity state information of the Bluetooth positioning label;

and the updating unit is also used for updating the identity state information of the lighting equipment and the identity state information of the label to the appointed intelligent terminal in real time.

Optionally, the system further comprises:

the receiving unit is further used for receiving a control command of the specified intelligent terminal to the lighting equipment;

and the sending unit is further used for forwarding the control command to the lighting equipment through the wireless gateway, so that the lighting equipment adjusts the light effect according to the control command.

A fifth aspect of the present application provides a lighting device comprising:

a processor, a memory, a bus, an input-output device, a lighting assembly;

the processor is connected with the memory and the input and output equipment;

the bus is respectively connected with the processor, the memory, the input and output equipment and the lighting assembly;

the processor performs the method of any of the preceding first aspects.

The sixth aspect of the present application provides a cloud server, including:

the system comprises a processor, a memory, a bus and input and output equipment;

the processor is connected with the memory and the input and output equipment;

the bus is respectively connected with the processor, the memory and the input and output equipment;

the processor performs the method of any of the preceding second aspects.

A seventh aspect of the present application provides a computer storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform a method as set forth in any one of the preceding first or second aspects

An eighth aspect of the present application provides a computer program product which, when executed on a computer, causes the computer to perform the method of any one of the preceding first or second aspects.

According to the technical scheme, the embodiment of the application has the following advantages:

through using the lighting apparatus who is equipped with bluetooth mesh control module to replace traditional wired network to lighting apparatus's control in this application, and then can reduce the arrangement to control scheme, the lighting apparatus who is equipped with bluetooth mesh control module can constitute bluetooth networking technology, and bluetooth mesh is exactly a many to many networks (many to many) promptly. In the topological structure of the Bluetooth networking technology, the Message (Message) received by the Bluetooth device node can be utilized to transmit the communication information of any Bluetooth device node to any Bluetooth device node in a communication network, so that the control of each lighting device provided with the Bluetooth mesh control module is realized, and the problems that in the prior art, the number of lighting devices needing to be controlled is more, the number of lines needing to be arranged is more, and the cost for arranging control lines is higher are solved.

Drawings

Fig. 1 is a schematic flowchart of the lighting control method based on bluetooth mesh according to the present application;

fig. 2 is another schematic flow chart of the lighting control method based on bluetooth mesh according to the present application;

fig. 3 is a schematic structural diagram of the lighting control system based on bluetooth mesh applied to a lighting device according to the present application;

fig. 4 is a schematic structural diagram of the lighting control system based on bluetooth mesh applied to the cloud server according to the present application;

fig. 5 is another schematic structural diagram of the lighting control system based on bluetooth mesh applied to a lighting device;

fig. 6 is another schematic structural diagram of the lighting control system based on bluetooth mesh applied to the cloud server.

Detailed Description

The embodiment of the application provides a lighting control method based on Bluetooth mesh and a related system, and is used for solving the problems that in the prior art, when more lighting devices need to be controlled, more lines need to be arranged, and the cost of arranging control lines is higher.

It should be noted that a wireless mesh network, i.e., a wireless mesh network, is a new wireless network technology completely different from a conventional wireless network. In a wireless Mesh network, any wireless device node can simultaneously serve as an Access Point (AP) and a router, each wireless device node in the network can send and receive signals, and each wireless device node can directly communicate with one or more peer nodes. The wireless Bluetooth mesh network is built by the lighting devices provided with the Bluetooth mesh control modules, so that each lighting device is used as a wireless device node with an access function and a router function, the lighting devices provided with the Bluetooth mesh control modules are managed in a unified mode by the wireless gateway, the wireless gateway is connected with the corresponding cloud server, and the lighting devices corresponding to the wireless gateway can be controlled through relevant instructions of the cloud server.

Referring to fig. 1, an embodiment of the lighting method based on bluetooth mesh according to the present application includes:

101. the lighting device captures the broadcast packets transmitted by the bluetooth positioning tags.

The lighting equipment is provided with the Bluetooth mesh control module, each lighting equipment is used as a wireless equipment node of the wireless Bluetooth mesh network, wireless Bluetooth signals in the surrounding space of the lighting equipment can be continuously searched, and when a corresponding Bluetooth positioning tag enters the searching range of the wireless Bluetooth mesh network, the lighting equipment can capture a broadcast packet transmitted by the Bluetooth positioning tag. It should be noted that the bluetooth positioning tag needs to be in an on state and broadcasts its own broadcast packet. 102. And the lighting equipment calculates the distance between the Bluetooth positioning tag and the lighting equipment according to the signal intensity of the broadcast packet.

The lighting equipment can calculate the distance between the Bluetooth positioning tag and the lighting equipment through a preset algorithm according to the signal intensity of the broadcast packet sent by the Bluetooth positioning tag outwards. It can be understood that the broadcast packet transmitted by the bluetooth positioning tag is radiated outward in the form of electromagnetic waves, the intensity of the electromagnetic wave radiation transmitted by the bluetooth positioning tag received by the lighting device closer to the bluetooth positioning tag is greater, otherwise, the intensity of the electromagnetic wave radiation transmitted by the bluetooth positioning tag received by the lighting device farther from the bluetooth positioning tag is smaller, and according to the formula of the intensity and the distance of the wireless signal propagated in space by the electromagnetic band, each lighting device receiving the broadcast packet transmitted by the bluetooth positioning tag can calculate the distance between itself and the bluetooth positioning tag, which is not described in detail herein.

103. The lighting device sends the distance information to the cloud server through the wireless gateway, so that the cloud server calculates the specific position of the Bluetooth positioning tag according to the distances, forms a lighting instruction according to the latest position of the Bluetooth positioning tag, and sends the lighting instruction back to the corresponding lighting device through the wireless gateway.

It can be understood that, in step 102, the lighting device can only calculate the distance between itself and the bluetooth positioning tag according to the signal strength of the broadcast packet transmitted by the bluetooth positioning tag, it can be understood that the distance is a two-dimensional distance, and in a three-dimensional space, the specific position of the bluetooth positioning tag cannot be exactly known by the distance positioning of only one lighting device. Such as: the Bluetooth positioning tag can only be 5 meters away from a certain lighting device, and a spherical surface formed by taking the lighting device as a spherical center and taking 5 meters as a radius is likely to be the position of the Bluetooth positioning tag. Based on such understanding, a plurality of lighting apparatus that are equipped with bluetooth mesh control module calculate the distance to same bluetooth location label simultaneously, and each lighting apparatus can all gather the distance of oneself and bluetooth location label to the high in the clouds server through wireless gateway promptly to make the high in the clouds server can calculate the concrete position that obtains this bluetooth location label according to the same moment of a plurality of lighting apparatus and the distance of same bluetooth location label, can effectively improve the accurate location to bluetooth location label. After the cloud server knows the position of the Bluetooth positioning tag, the surrounding lighting equipment closest to the Bluetooth positioning tag in the wireless Bluetooth mesh network can be selectively controlled to serve the Bluetooth positioning tag, so that a lighting instruction for the surrounding lighting equipment is formed according to the latest position of the Bluetooth positioning tag, and the lighting instruction is transmitted back to the corresponding surrounding lighting equipment through the wireless gateway.

It can be understood that the specific position process of the bluetooth positioning tag calculated by the cloud server according to the plurality of distances is as follows: the cloud server stores the coordinate position of each lighting device in the wireless Bluetooth mesh network, receives the distance between the Bluetooth positioning tag and different lighting devices, and further establishes a spherical model by taking the distance as the center of sphere and the distance corresponding to the Bluetooth positioning tag as the radius for different lighting devices to form a plurality of spherical models, wherein the spherical intersection of the spherical models is the specific position where the Bluetooth positioning tag possibly locates. The more lighting devices participate in the calculation method, the higher the positioning accuracy is, the more detailed the correspondingly formed lighting instruction can be, that is, the lighting instruction is formed, and then the lighting device is controlled to only perform lighting service on the specific position of the calculated bluetooth positioning tag.

104. The lighting device receives the lighting instruction transmitted back through the wireless gateway.

The lighting device is not directly connected with the cloud server, and needs to receive a lighting instruction from the cloud server through the wireless gateway, the lighting instruction is formed by performing position calculation on the bluetooth positioning tag through the cloud server in step 103, the lighting instruction is a continuous dynamic instruction and has certain timeliness, so that when the bluetooth positioning tag leaves the service range of the lighting device, the lighting device still performs lighting service all the time, and electric energy waste is caused.

105. And the lighting equipment adjusts the light effect according to the lighting instruction.

After the lighting device receives the lighting instruction in step 104, the lighting instruction is executed to adjust its lighting component, such as adjusting the lighting brightness.

Through using the lighting apparatus who is equipped with bluetooth mesh control module to replace traditional wired network to lighting apparatus's control in this application, and then can reduce the arrangement to control scheme, the lighting apparatus who is equipped with bluetooth mesh control module can constitute bluetooth networking technology, and bluetooth mesh is exactly a many to many networks (many to many) promptly. Each bluetooth device node can freely communicate with other bluetooth device nodes, and in the topology of the bluetooth networking technology, the bluetooth device node can be used for relaying (relay) the received Message (Message), further, the communication information of any Bluetooth device node can be transmitted to any Bluetooth device node in a wireless communication network, thereby realizing the control of each lighting device provided with the Bluetooth mesh control module, finally, the wireless gateway uniformly manages the lighting devices provided with the Bluetooth mesh control module, the wireless gateway is also connected with a corresponding cloud server, the control method can control the corresponding lighting devices by receiving the relevant instructions of the cloud server, so as to solve the problem that in the prior art, the more lighting devices need to be controlled, the more lines it needs to be laid out, the higher the cost spent on laying out control lines.

Referring to fig. 2, another embodiment of the lighting method based on bluetooth mesh of the present application includes:

201. the bluetooth positioning tag transmits a broadcast packet outwards.

The Bluetooth positioning tag is an electronic tag, is provided with a battery, is integrated with a Bluetooth module, and can emit a broadcast packet outwards at regular time. The broadcast packet transmitted by the bluetooth positioning tag may contain tag identity status information of itself, such as: the label identity state information is used for indicating the name and model parameters of an article represented by the Bluetooth positioning label, and information such as the battery capacity and working time of the label. It is understood that the bluetooth positioning tag may also be a mobile terminal with bluetooth function, such as a mobile phone, a tablet computer, etc.

202. And the lighting equipment calculates the distance between the lighting equipment and the Bluetooth positioning tag according to the signal intensity of the broadcast packet.

The execution of this step is similar to the execution of step 102 in fig. 1, and is not described again here.

203. The lighting device sends its distance from the bluetooth location tag to the wireless gateway.

Because the power of the Bluetooth module of the lighting equipment is limited, the transmission distance is also limited, a wireless gateway is selected to manage all the lighting equipment, the wireless gateway is also a gateway with a Bluetooth mesh control module, and the wireless gateway can be connected with a cloud server through a wireless or wired network.

204. The wireless gateway forwards the distance between the lighting device and the Bluetooth positioning tag to the cloud server.

The plurality of lighting devices receive the broadcast packet of the same Bluetooth positioning tag and calculate the distance between the same Bluetooth positioning tag and the Bluetooth positioning tag, and the distance between the same Bluetooth positioning tag and each lighting device, which is calculated by each lighting device, can be forwarded to the cloud server through the forwarding of the wireless gateway.

205. And the cloud server calculates the specific position of the Bluetooth positioning tag.

The process of calculating the specific position of the bluetooth positioning tag by the cloud server in this step is similar to the process of calculating the specific position of the bluetooth positioning tag by the cloud server in step 103 in fig. 1, and is not repeated here.

206. The cloud server forms the motion trail of the Bluetooth positioning tag.

It can be understood that, after the cloud server obtains the specific positions of the bluetooth positioning tag at different times in step 205, the specific positions of the bluetooth positioning tag may be connected in a drawing manner to form a motion track of the bluetooth positioning tag. Such as: the lighting device is a lamp of the corridor, a plurality of lamps in the corridor carry out distance calculation on the Bluetooth positioning tags which enter the detection range, if the distance calculation is carried out once per second, 60 times are calculated every minute, the distance between each lighting device and the Bluetooth positioning tag is calculated every minute for 60 times, at the moment, the cloud server calculates and obtains 60 specific positions of the Bluetooth positioning tags in one minute, the 60 specific position points are connected according to the sequence of time front and back, the movement track of the Bluetooth positioning tag is obtained, the cloud server continuously uses a plurality of latest lighting devices to calculate the latest specific positions of the Bluetooth positioning tags according to the distance of the same Bluetooth positioning tag, the latest specific positions are connected with the previous specific positions, and the latest movement track of the Bluetooth positioning tag is formed.

207. The cloud server forms an illumination instruction for the Bluetooth positioning tag.

In step 206, the cloud server learns the latest specific position of the bluetooth positioning tag, and for the lighting device, only an illumination range with a certain radius around the latest specific position of the bluetooth positioning tag is needed, so that the loss of illumination power can be reduced.

208. And the cloud server sends the illumination instruction to the wireless gateway.

The cloud server cannot directly communicate with the lighting equipment and needs the wireless gateway to forward, so that the cloud server sends the lighting instruction to the wireless gateway.

209. The wireless gateway forwards the lighting instructions to the corresponding lighting devices.

Since the wireless gateway manages a plurality of lighting devices, and the lighting instruction sent by the cloud server is only for the lighting device with a specific address, the wireless gateway needs to identify the corresponding lighting device and forward the corresponding lighting instruction to the corresponding lighting device.

210. The lighting device executes the lighting instructions.

The lighting apparatus that receives the lighting instruction executes the lighting instruction.

211. The lighting equipment sends the self lighting equipment identity state information and the label identity state information of the Bluetooth positioning label to the wireless gateway.

It should be noted that, just as the broadcast packet transmitted by the bluetooth positioning tag in step 201 includes the tag identity status information of the bluetooth positioning tag. Similarly, each lighting device also has its own lighting device identity status information, such as: the lighting device identity status information is used to surface the coordinate position of the lighting device, etc. The lighting device can upload the lighting device identity state information and the label identity state information of the Bluetooth positioning label to the cloud server through the wireless gateway, so that the cloud server can master the real-time wireless Bluetooth mesh network state.

212. The wireless gateway forwards the lighting equipment identity state information and the label identity state information to the cloud server.

213. The cloud server updates the motion trail of the Bluetooth positioning tag, the identity state information of the lighting equipment and the tag state information to the appointed intelligent terminal.

The motion trajectory of the bluetooth positioning tag formed in step 206 may be updated to a designated intelligent terminal in real time, so as to implement remote monitoring of the bluetooth positioning tag, for example, the motion trajectory may be applied to monitoring of important assets.

After step 212, the cloud server may update the status information of each lighting device and/or the status information of the tag to a designated smart terminal in real time, where the designated smart terminal may be a smart phone installed with an APP that communicates with the cloud server, or may even be a smart terminal that can be directly connected to a wireless gateway or connected to a lighting device. The real-time state of part or all of the lighting equipment and the real-time state of the Bluetooth positioning tag can be known in real time through the designated intelligent terminal.

214. And the appointed intelligent terminal displays the motion trail of the Bluetooth positioning tag, the identity state information of the lighting equipment and the identity state information of the tag.

After step 213, the designated intelligent terminal receives the motion trajectory of the bluetooth positioning tag, the identity status information of the lighting device, and the tag status information, and updates and displays the information in real time, so that the user can remotely grasp the real-time status of part or all of the lighting devices and the real-time status of the bluetooth positioning tag in real time through the designated intelligent terminal.

215. And the appointed intelligent terminal receives the control instruction.

It is understood that the designated intelligent terminal may also be used for receiving a control instruction for a specific lighting device, and the control instruction may be to turn on or off a lighting component of the lighting device, or adjust brightness, or adjust light frequency, or light illumination time, etc. The control command can be sent to the cloud server through the designated intelligent terminal, and the cloud server forwards the control command to the wireless gateway through certain processing and then sends the control command to the corresponding lighting equipment. 216. And the designated intelligent terminal sends the control command to the cloud server.

In general, since the designated intelligent terminal is not directly connected to the wireless gateway or the lighting device, and is mainly connected to the cloud server, the control command of the designated intelligent terminal is first transmitted to the cloud server.

217. And the cloud server forwards the control instruction to the wireless gateway.

218. The wireless gateway identifies the lighting device corresponding to the control instruction.

It can be understood that the control command is directed to some or all of the lighting devices in the wireless bluetooth mesh network, and at this time, the control command includes an address of the corresponding lighting device, and the wireless gateway obviously distributes the corresponding control according to the address.

219. And the wireless gateway control instruction is sent to the corresponding lighting equipment.

220. The lighting device executes the control instructions.

The controlled lighting device executes the control instruction in step 219 to cause the corresponding lighting device to present the light effect corresponding to the control instruction.

Through using the lighting apparatus who is equipped with bluetooth mesh control module to replace traditional wired network to lighting apparatus's control in this application, and then can reduce the arrangement to control scheme, the lighting apparatus who is equipped with bluetooth mesh control module can constitute bluetooth networking technology, and bluetooth mesh is exactly a many to many networks (many to many) promptly. Each bluetooth device node can freely communicate with other bluetooth device nodes, and in the topology of the bluetooth networking technology, the bluetooth device node can be used for relaying (relay) the received Message (Message), further, the communication information of any Bluetooth device node can be transmitted to any Bluetooth device node in a wireless communication network, thereby realizing the control of each lighting device provided with the Bluetooth mesh control module, finally, the wireless gateway uniformly manages the lighting devices provided with the Bluetooth mesh control module, the wireless gateway is also connected with a corresponding cloud server, the control method can control the corresponding lighting devices by receiving the relevant instructions of the cloud server, so as to solve the problem that in the prior art, the more lighting devices need to be controlled, the more lines it needs to be laid out, the higher the cost spent on laying out control lines.

The above describes the lighting control method based on bluetooth mesh, and the following describes the lighting control system based on bluetooth mesh, please refer to fig. 3, where the lighting control system based on bluetooth mesh is applied to an embodiment of a lighting device equipped with a bluetooth mesh control module, and includes:

a capturing unit 301, configured to capture a broadcast packet transmitted by a bluetooth positioning tag;

a calculating unit 302, configured to calculate a distance from the bluetooth positioning tag to the lighting apparatus according to the signal strength of the broadcast packet;

a sending unit 303, configured to send the distance information to a cloud server through a wireless gateway, so that the cloud server calculates a specific position of the bluetooth positioning tag according to a plurality of distances, forms a lighting instruction according to the latest specific position of the bluetooth positioning tag, and sends the lighting instruction back to the corresponding lighting device through the wireless gateway;

a receiving unit 304, configured to receive the lighting instruction transmitted back through the wireless gateway;

an adjusting unit 305 for adjusting the light effect according to the lighting instruction.

Optionally, the broadcast packet includes tag identity status information of the bluetooth positioning tag; the system further comprises:

the sending unit 303 is further configured to upload the lighting device identity state information of the lighting device and the tag identity state information of the bluetooth positioning tag to the cloud server through the wireless gateway, so that the cloud server updates the lighting device identity state information and the tag identity state information to an appointed intelligent terminal in real time.

Optionally, the system further comprises:

a receiving unit 304, configured to receive, through the wireless gateway, a control command for the lighting apparatus forwarded by the cloud server;

the adjusting unit 305 is further configured to adjust the light effect according to the control command.

The operation performed by the embodiment of the lighting device with the bluetooth mesh control module, which is applied to the lighting control system based on the bluetooth mesh, is similar to the operation performed by the lighting device in fig. 1 and 2, and is not described again here.

Referring to fig. 4, the lighting control system based on bluetooth mesh of the present application is applied to an embodiment of a cloud server, and includes:

a receiving unit 401, configured to receive a distance forwarded by a wireless gateway, where the distance is a distance to a specific lighting device and calculated according to a signal strength of a broadcast packet transmitted by a bluetooth positioning tag from the specific lighting device;

a recording unit 402, configured to record distances of the bluetooth positioning tags sent by multiple lighting apparatuses;

a calculating unit 403, configured to calculate a specific position of the bluetooth positioning tag according to the distance information sent by different lighting devices of the bluetooth positioning tag at the same time;

a determination forming unit 404, configured to determine the ambient lighting device at the specific location, and form an illumination instruction for the ambient lighting device;

a sending unit 405, configured to send the lighting instruction to the ambient lighting device through a wireless gateway, so that the ambient lighting device adjusts a light effect according to the lighting instruction.

Optionally, the system further comprises:

the track forming unit 406 is further configured to record a specific position of the bluetooth positioning tag, and form a position track of the bluetooth positioning tag;

an updating unit 407, configured to update the position trajectory data to a specified intelligent terminal in real time, so that the specified intelligent terminal displays the position trajectory of the positioning tag in real time.

Optionally, the system further comprises:

the receiving unit 401 is further configured to receive lighting device identity state information forwarded by the wireless gateway and tag identity state information of the bluetooth positioning tag;

the updating unit 407 is further configured to update the lighting device identity state information and the tag identity state information to a specified intelligent terminal in real time.

Optionally, the system further comprises:

a receiving unit 401, configured to receive a control command of the specified smart terminal for the lighting device;

the sending unit 405 is further configured to forward the control command to the lighting device through the wireless gateway, so that the lighting device adjusts the light effect according to the control command.

The operation executed by the embodiment applied to the cloud server in the lighting control system based on the bluetooth mesh is similar to the operation executed by the cloud server in the aforementioned fig. 1 and fig. 2, and is not repeated here.

Through using the lighting apparatus who is equipped with bluetooth mesh control module to replace traditional wired network to lighting apparatus's control in this application, and then can reduce the arrangement to control scheme, the lighting apparatus who is equipped with bluetooth mesh control module can constitute bluetooth networking technology, and bluetooth mesh is exactly a many to many networks (many to many) promptly. In the topological structure of the Bluetooth networking technology, the Message (Message) received by the Bluetooth device node can be utilized to transmit the communication information of any Bluetooth device node to any Bluetooth device node in a communication network, so that the control of each lighting device provided with the Bluetooth mesh control module is realized, and the problems that in the prior art, the number of lighting devices needing to be controlled is more, the number of lines needing to be arranged is more, and the cost for arranging control lines is higher are solved.

Another embodiment of the lighting control system based on bluetooth mesh, which is applied to a lighting device, is described below with reference to fig. 5, which specifically includes:

the bluetooth mesh based lighting control system 500 may include one or more processors (CPUs) 501 and a memory 505, where the memory 505 stores one or more applications or data, where the memory 505 may be volatile storage or persistent storage, where the programs stored in the memory 505 may include one or more modules, each of which may include a series of instructions operating on the bluetooth mesh based lighting control system, the bluetooth mesh based lighting control system 500 may also include one or more bluetooth modules 503, one or more lighting assemblies 504, one or more power supplies 502, one or more operating systems, such as Andriod, Windows Server, Mac OS X, Unix, L inux, FreeBSD, etc. the bluetooth mesh based lighting control system 500 processor 501 may perform all or part of the operations performed by the lighting devices in the embodiments of fig. 1 or fig. 2, and will not be described herein.

Another embodiment of the lighting control system based on bluetooth mesh, which is applied to the cloud server, is described below with reference to fig. 6, which specifically includes:

the bluetooth mesh based lighting control system 600 may include one or more processors (CPUs) 601 and a memory 605, where the memory 605 stores one or more applications or data, where the memory 605 may be volatile storage or persistent storage, the programs stored in the memory 605 may include one or more modules, each of which may include a series of instructions operating on the bluetooth mesh based lighting control system, the bluetooth mesh based lighting control system 600 may further include one or more bluetooth modules 603, one or more other types of input and output interfaces 604, one or more power supplies 602, one or more operating systems, such as Andriod, Windows Server, OS X, Unix, L inux, FreeBSD, etc. the processor 501 of the bluetooth mesh based lighting control system 600 may perform all or part of the operations performed by the cloud Server shown in fig. 1 or fig. 2, and will not be described herein.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other media capable of storing program codes.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种车辆、车灯控制装置及其车灯控制电路与方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!