BLE Mesh device based on voice terminalTechnical Field
The invention relates to a BLE Mesh device based on a voice terminal.
Background
The digital interphone is one of the voice terminals commonly used in communication cells, and digitalizes voice signals and transmits the voice signals in a digital coding mode, that is, all modulation on the transmission frequency of the interphone is digital. Digital walkie-talkies have many advantages, above all being better able to use the spectrum resources: similar to cellular digital technology, a digital interphone can load more users on a designated channel, such as 25KHZ, so that the spectrum utilization rate is improved, and the digital interphone is a solution for solving frequency congestion and has long-term significance. Secondly, the voice quality is improved: because the digital communication technology has the function of correcting errors in the system, compared with an analog interphone, the digital interphone can realize better voice audio quality in a signal environment with a wider range, and the received audio noise can be less, so that the sound is clearer. The following points are also included: compared with similar integrated analog voice and data systems, the digital interphone can provide better data processing and interface functions, so that more data applications can be integrated into the same two-way wireless communication base station structure to achieve more perfect and more convenient voice and data service integration.
However, the traditional voice terminals such as digital walkie-talkies are based on CDMA or GPRS networks, which not only has higher cost, but also has certain risks in security and confidentiality because multiple users share the same channel resource. The smart home field belongs to a private space, has strong privacy and higher safety requirement, and needs a data transmission mode with short transmission distance, higher confidentiality and safety and lower cost.
Disclosure of Invention
The BLE Mesh device based on the voice terminal can be used for voice communication, can control household electrical appliances by using the voice terminal, is rich in functions and better in anti-interference performance, and is particularly suitable for the field of smart homes.
In order to achieve the purpose, the invention adopts the technical scheme that:
a BLE Mesh device based on voice terminals comprises at least one voice terminal (30), at least one first household appliance terminal (10) and at least one second household appliance terminal (20), wherein:
the first household appliance terminal (10) is provided with a first BLE Mesh module (11) and a first execution device (12), wherein the first execution device (12) is in communication connection with the first BLE Mesh module (11) and receives and executes a control instruction of the first BLE Mesh module (11);
the second household appliance terminal (20) is provided with a second BLE Mesh module (21) and a second execution device (22), and the second execution device (22) is in communication connection with the second BLE Mesh module (21) and receives and executes a control instruction of the second BLE Mesh module (21);
the voice terminal (30) is provided with a third BLE Mesh module (31), the third BLE Mesh module (31) is in communication connection with the first BLE Mesh module (11) and/or the second BLE Mesh module (21) to transmit control instructions, and the first BLE Mesh module (11) and the second BLE Mesh module (21) are also in communication connection to transmit control instructions;
the voice terminal (30) is further provided with a voice acquisition module (32) and a microcontroller (33), the voice acquisition module (32) acquires voice signals and transmits the voice signals to the microcontroller (33), the microcontroller (33) analyzes the voice signals and converts the voice signals into control instructions, the control instructions are transmitted to the third BLE Mesh module (31), and the control instructions are transmitted to the first BLE Mesh module (11) and/or the second BLE Mesh module (21) through the third BLE Mesh module (31).
Preferably, the voice terminals (30) include more than two, each voice terminal (30) further includes a voice communication module (34) and a voice playing module (35), and the voice communication module (34) receives and transmits voice signals and the voice playing module (35) plays the voice signals.
Preferably, the microcontroller (33) analyzes the voice signal and converts the voice signal into a control instruction, and the control instruction is obtained by converting the voice signal into a text signal and mapping the text signal through a preset mapping table.
Preferably, the third BLE Mesh module (31) is communicatively connected to the first BLE Mesh module (11) and/or the second BLE Mesh module (21) for transmitting the control command, and further includes:
the third BLE Mesh module (31) transmits a control instruction to the first BLE Mesh module (11), and the first BLE Mesh module (11) further transmits a control instruction to the second BLE Mesh module (21); or,
the third BLE Mesh module (31) transmits a control instruction to the first BLE Mesh module (11), and simultaneously, the third BLE Mesh module (31) transmits a control instruction to the second BLE Mesh module (21).
Preferably, the controller further comprises a server (40), wherein the third BLE Mesh module (31) sends a control command to the server (40), and the server (40) is further in communication connection with the first BLE Mesh module (11) and/or the second BLE Mesh module (21) to transmit the control command.
Preferably, the voice terminal includes one or more of: digital interphone, mobile phone, remote controller.
Preferably, the first home appliance terminal or the second home appliance terminal includes one or more of: lighting electric appliance, refrigerating electric appliance, air conditioner, cleaning electric appliance, kitchen electric appliance, electric heating appliance, health-care electric appliance and audio-video electric appliance.
The invention has the beneficial effects that:
the invention utilizes the voice terminal to collect, analyze and map the voice signal into the control instruction, and adopts the Ble Mesh as a control data transmission platform, thereby improving the communication range and the anti-interference performance of data, and improving the experience degree of users.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
figure 1 is a schematic diagram of a frame structure of a BLE Mesh device based on a voice terminal according to the present invention;
in the figure:
10-a first home appliance terminal; 11-a first BLE Mesh module; 12-a first execution device;
20-a second appliance terminal; 21-a second BLE Mesh module; 22-a second execution means;
30-a voice terminal; 31-a third BLE Mesh module; 32-a voice acquisition module, 33-a microcontroller;
34-a voice communication module; 35-a voice playing module;
40-cloud server.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, a BLE Mesh device based on a voice terminal of the present invention includes at least one voice terminal 30, at least one first household appliance terminal 10, and at least one second household appliance terminal 20, wherein:
the first household appliance terminal 10 is provided with a first BLE Mesh module 11 and a first execution device 12, and the first execution device 12 is in communication connection with the first BLE Mesh module 11 and receives and executes a control instruction of the first BLE Mesh module 11;
the second household appliance terminal 20 is provided with a second BLE Mesh module 21 and a second execution device 22, and the second execution device 22 is in communication connection with the second BLE Mesh module 21 and receives and executes a control instruction of the second BLE Mesh module 21;
the voice terminal 30 is provided with a third BLE Mesh module 31, the third BLE Mesh module 31 is in communication connection with the first BLE Mesh module 11 and/or the second BLE Mesh module 21 to transmit a control instruction, and the first BLE Mesh module 11 is also in communication connection with the second BLE Mesh module 21 to transmit a control instruction;
voice terminal 30 still is equipped with voice acquisition module 32 and microcontroller 33, voice acquisition module 32 gather speech signal and transmit to microcontroller 33, microcontroller 33 is right speech signal analyzes and converts control command into, and transmits this control command to third BLE Mesh module 31, and will through this third BLE Mesh module 31 control command transmits to first BLE Mesh module 11 and/or second BLE Mesh module 21.
In this embodiment, the voice terminals 30 include more than two voice terminals, each voice terminal 30 further includes a voice communication module 34 and a voice playing module 35, and the voice communication module 34 receives and transmits voice signals and the voice playing module 35 plays the voice signals. The microcontroller 33 analyzes the voice signal and converts the voice signal into a control instruction, and the control instruction is obtained by converting the voice signal into a text signal and mapping the text signal through a preset mapping table.
The third BLE Mesh module 31 is communicatively connected to the first BLE Mesh module 11 and/or the second BLE Mesh module 21 for transmitting the control command, and further includes: the third BLE Mesh module 31 transmits a control instruction to the first BLEMesh module 11, and the first LE Mesh module 11 further transmits a control instruction to the second BLE Mesh module 21; alternatively, the third BLE Mesh module 31 transmits a control command to the first BLE Mesh module 11, and simultaneously, the third BLE Mesh module 31 transmits a control command to the second BLE Mesh module 21.
In this embodiment, the BLE Mesh module further includes a server 40, where the third BLE Mesh module 31 sends a control instruction to the server 40, and the server 40 further performs communication connection with the first BLE Mesh module 11 and/or the second BLE Mesh module 21 to transmit the control instruction.
The voice terminal comprises more than one of the following components: digital interphone, mobile phone, remote controller. For example, a voice signal can be directly transmitted to another digital interphone through one digital interphone; or, the voice signal can be transmitted to the digital interphone through the mobile phone or the remote controller; then, the microcontroller analyzes and maps the voice signal to form a control command.
The first household appliance terminal or the second household appliance terminal comprises more than one of the following components: lighting appliances, refrigeration appliances, air conditioners, cleaning appliances, kitchen appliances, electric heating appliances, health care appliances, audio and video appliances, or other household appliances. For example, the lighting appliance is a light bulb, the audio/video appliance is a sound box and a display screen, and so on.
In this embodiment, microcontroller 33 adopts STM32 main control chip, the collection of voice data is realized to the pronunciation collection module adoption ADC, the voice communication module adopts Dialog bluetooth chip to realize, first BLE Mesh module 11, second BLE Mesh module 21, third Mesh module 31 adopts CSR BLE chip transmission control instruction.
While the foregoing description shows and describes the preferred embodiments of the present invention, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as excluding other embodiments and is capable of use in various other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as described herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.