CN114170781A - Intelligent socket control system, method and device and storage medium - Google Patents

Intelligent socket control system, method and device and storage medium Download PDF

Info

Publication number
CN114170781A
CN114170781A CN202111375126.3A CN202111375126A CN114170781A CN 114170781 A CN114170781 A CN 114170781A CN 202111375126 A CN202111375126 A CN 202111375126A CN 114170781 A CN114170781 A CN 114170781A
Authority
CN
China
Prior art keywords
signal
bluetooth
module
control
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111375126.3A
Other languages
Chinese (zh)
Inventor
张天乐
田志宏
吕思雨
黄育锟
郭云飞
姚思安
夏代玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou University
Original Assignee
Guangzhou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou University filed Critical Guangzhou University
Priority to CN202111375126.3A priority Critical patent/CN114170781A/en
Publication of CN114170781A publication Critical patent/CN114170781A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a system, a method and a medium for controlling an intelligent socket, wherein the system comprises: the Bluetooth receiving module is used for receiving Bluetooth audio data sent by a user side and performing digital-to-analog conversion on the Bluetooth audio data to obtain a first analog audio signal; the audio amplifier module is used for amplifying the first analog audio signal to obtain a second analog audio signal; the comparator module is used for detecting whether the signal intensity of the second analog audio signal exceeds a preset intensity threshold value or not and generating a corresponding trigger signal according to a detection result; and the relay module is used for controlling the relay to be switched on or switched off according to the trigger signal so as to control the on-off state of the intelligent socket. The invention not only avoids the problems of no response, misoperation and the like caused by the recognition failure possibly occurring in the voice recognition, but also ensures that the voice command can not be intercepted manually, and improves the safety and the convenience of the intelligent socket control. The invention can be widely applied to the technical field of intelligent equipment control.

Description

Intelligent socket control system, method and device and storage medium
Technical Field
The invention relates to the technical field of intelligent equipment control, in particular to an intelligent socket control system, an intelligent socket control method, an intelligent socket control system and a storage medium.
Background
Technologies such as smart home, smart power, smart grid and the like realize wireless interconnection with household and civil appliances through a power system, complete intelligent management and control of household appliances, and try to provide a user with a careful service like a virtual manager. Smart sockets, as a common and universal entrance to household power supplies, are the most direct and convenient way to implement power supply and demand control. At present, various automatic and manual control sockets exist, such as light sensation, infrared induction, sound sensation, temperature sensation and other sensor control sockets, the technical schemes can realize that the household can construct various intelligent power control applications along with the change of the external environment and the scene requirements, but the control mode and the combination mechanical fixation, the global property and the real-time cooperativity are poor, the intelligent degree is lower, the user interactivity and the participation are weaker, and the defects of humanization, individuation and the like also exist.
Along with the popularization of intelligent terminals such as mobile phones, the intelligent socket and the mobile phone APP thereof are taken as hot solutions of the intelligent home, and the intelligent socket and the mobile phone APP thereof have important significance for meeting the increasing consumption demands of users. The wireless communication module of the intelligent socket can enable household appliances such as televisions, tablet computers and electric water heaters to be connected into a home network like WIFI. The smart socket APP is an interaction platform for a user to use a mobile phone and a socket. According to the different degree of participation of the user, the intelligent home solution based on the intelligent socket mainly comprises two types: the system comprises a shallow intelligent home solution depending on user decision and a deep intelligent home solution depending on data acquisition and analysis.
These solutions have the following drawbacks:
1) special APPs must be relied upon. Most smart sockets need to complete functions by means of special APPs provided by manufacturers, users need to use such APPs for initial configuration when using the sockets of this type for the first time, and in later use, the applications need to be frequently used for opening and closing operations of switches. Therefore, the method has the disadvantages of complicated configuration and dependence on special APP.
2) Depending on the network environment. Most of intelligent sockets need network environment support, and cannot work normally when 3/4G or WIFI are limited.
3) Depending on the accuracy of the keyword wake-up and speech recognition. Some smart sockets support user voice operation, but require keyword wake-up and rely on accuracy of voice recognition. In order to realize the voice operation function, the socket also generally needs the support of a mobile phone and special equipment, and the cost is high. In actual use, the problem of collected voice distortion caused by environmental noise and the distance between a user and a socket radio can cause the problem that a voice recognition function cannot normally function, and the problem that the user does not respond or operates mistakenly when sending a voice command occurs.
4) The voice recognition security is low. In the use process of the intelligent socket supporting the voice operation of the user, as long as the user can correctly speak the awakening word, the user can continue to send out the control command through the voice. Although such smart jacks support user-defined wake-up words, there is still a possibility that the wake-up words can be eavesdropped and leaked, and thus the method of controlling the jack using the user's voice is not highly secure.
Disclosure of Invention
The present invention aims to solve at least to some extent one of the technical problems existing in the prior art.
Therefore, an object of the embodiments of the present invention is to provide a safe and convenient smart socket control system.
Another object of the embodiments of the present invention is to provide a method for controlling a smart socket.
In order to achieve the technical purpose, the technical scheme adopted by the embodiment of the invention comprises the following steps:
in a first aspect, an embodiment of the present invention provides an intelligent socket control system, including:
the Bluetooth receiving module is used for receiving Bluetooth audio data sent by a user side and carrying out digital-to-analog conversion on the Bluetooth audio data to obtain a first analog audio signal;
the audio amplifier module is used for amplifying the first analog audio signal to obtain a second analog audio signal;
the comparator module is used for detecting whether the signal intensity of the second analog audio signal exceeds a preset intensity threshold value or not and generating a corresponding trigger signal according to a detection result;
and the relay module is used for controlling the relay to be switched on or switched off according to the trigger signal so as to control the on-off state of the intelligent socket.
Further, in an embodiment of the present invention, the bluetooth receiving module includes:
the identity authentication unit is used for performing identity authentication on a user side and performing Bluetooth connection with the user side passing the identity authentication;
the data receiving unit is used for receiving Bluetooth audio data sent by the user terminal, wherein the Bluetooth audio data comprise a preset audio file and a real-time voice fragment acquired by a microphone of the user terminal;
and the decoding unit is used for performing digital-to-analog conversion on the Bluetooth audio data and decoding to obtain the first analog audio signal.
Further, in one embodiment of the present invention, the comparator module includes:
the detection unit is used for detecting the signal intensity of the second analog audio signal at each moment;
the comparison unit is used for comparing the signal intensity at each moment with a preset intensity threshold value;
and the trigger unit is used for generating jump from a low level to a high level when the signal strength at a certain moment is greater than the strength threshold value, and transmitting the jump to the relay module as a trigger signal.
Further, in an embodiment of the present invention, there are a plurality of comparator modules, the strength thresholds of the plurality of comparator modules are different, and the plurality of comparator modules are configured to generate different trigger signals according to the signal strength of the second analog audio signal.
Further, in one embodiment of the present invention, the relay module includes:
the control unit is used for generating a state reversal operation instruction according to the trigger signal;
and the relay unit is used for executing the closing or opening of the relay according to the state reversal operation instruction.
Further, in one embodiment of the present invention, the control unit responds only to the first generated trigger signal when multiple trigger signals are generated from the same bluetooth audio data.
Furthermore, the bluetooth receiving module is further configured to receive a bluetooth control signal sent by the user side, where the bluetooth control signal is used to adjust the intensity threshold of the comparator module or the control logic of the relay module.
In a second aspect, an embodiment of the present invention provides a smart socket control method, including the following steps:
receiving Bluetooth audio data sent by a user side, and performing digital-to-analog conversion on the Bluetooth audio data to obtain a first analog audio signal;
performing signal amplification on the first analog audio signal to obtain a second analog audio signal;
detecting whether the signal intensity of the second analog audio signal exceeds a preset intensity threshold value or not, and generating a corresponding trigger signal according to a detection result;
and controlling the relay to be switched on or switched off according to the trigger signal so as to control the on-off state of the intelligent socket.
In a third aspect, an embodiment of the present invention provides an intelligent socket control device, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one program causes the at least one processor to implement a smart socket control method as described above.
In a fourth aspect, the present invention also provides a computer-readable storage medium, in which a processor-executable program is stored, and the processor-executable program is used to execute the above-mentioned smart socket control method when executed by a processor.
Advantages and benefits of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention:
the embodiment of the invention sends the Bluetooth audio data to the Bluetooth receiving module in the intelligent socket through the user side, performs digital-to-analog conversion on the received Bluetooth audio data through the Bluetooth receiving module to obtain the analog audio signal, amplifies the intensity of the analog audio signal through the audio amplifier module, detects whether the signal intensity of the analog audio signal exceeds a preset intensity threshold value through the comparator module, and finally controls the on-off state of the intelligent socket through the relay module according to the detection result of the comparator module. Compared with the intelligent socket using voice recognition, the intelligent socket is controlled by transmitting audio data through Bluetooth, and a user can complete control without actually making a sound, so that the problems of no response, misoperation and the like caused by recognition failure possibly occurring in voice recognition are avoided, the voice command is ensured not to be intercepted manually, and the control safety of the intelligent socket is improved; in addition, the embodiment of the invention can realize low-cost and quick intelligent socket control without network connection or installation of a special APP, thereby improving the convenience of intelligent socket control.
Drawings
In order to more clearly illustrate the technical solution in the embodiment of the present invention, the following description is made on the drawings required to be used in the embodiment of the present invention, and it should be understood that the drawings in the following description are only for convenience and clarity of describing some embodiments in the technical solution of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a block diagram of an intelligent socket control system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a generation principle of a trigger signal according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a method for controlling a smart socket according to an embodiment of the present invention;
fig. 4 is a block diagram of an intelligent socket control device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
In the description of the present invention, the meaning of a plurality is two or more, if there is a description to the first and the second for the purpose of distinguishing technical features, it is not understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the precedence of the indicated technical features. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art.
Referring to fig. 1, an embodiment of the present invention provides an intelligent socket control system, including:
the Bluetooth receiving module is used for receiving Bluetooth audio data sent by a user side and performing digital-to-analog conversion on the Bluetooth audio data to obtain a first analog audio signal;
the audio amplifier module is used for amplifying the first analog audio signal to obtain a second analog audio signal;
the comparator module is used for detecting whether the signal intensity of the second analog audio signal exceeds a preset intensity threshold value or not and generating a corresponding trigger signal according to a detection result;
and the relay module is used for controlling the relay to be switched on or switched off according to the trigger signal so as to control the on-off state of the intelligent socket.
Specifically, in the embodiment of the present invention, the bluetooth audio data is sent to the bluetooth receiving module inside the smart jack through the user side, the bluetooth receiving module performs digital-to-analog conversion on the received bluetooth audio data to obtain the analog audio signal, the audio amplifier module amplifies the intensity of the analog audio signal, the comparator module detects whether the signal intensity of the analog audio signal exceeds a preset intensity threshold, and finally the relay module controls the on-off state of the smart jack according to the detection result of the comparator module. Compared with the intelligent socket using voice recognition, the intelligent socket is controlled by transmitting audio data through Bluetooth, and a user can complete control without actually making a sound, so that the problems of no response, misoperation and the like caused by recognition failure possibly occurring in voice recognition are avoided, the voice command is ensured not to be intercepted manually, and the control safety of the intelligent socket is improved; in addition, the embodiment of the invention can realize low-cost and quick intelligent socket control without network connection or installation of a special APP, thereby improving the convenience of intelligent socket control.
As a further optional implementation, the bluetooth receiving module includes:
the identity authentication unit is used for performing identity authentication on the user side and performing Bluetooth connection with the user side passing the identity authentication;
the data receiving unit is used for receiving Bluetooth audio data sent by the user terminal, and the Bluetooth audio data comprises a preset audio file and a real-time voice fragment acquired by a microphone of the user terminal;
and the decoding unit is used for performing digital-to-analog conversion on the Bluetooth audio data and decoding to obtain a first analog audio signal.
Specifically, the bluetooth receiving module is used for receiving bluetooth audio data sent by the user side and performing digital-to-analog conversion on the audio data, and the user side stores the control command in the form of the audio data and sends the control command to the intelligent socket side in a bluetooth communication mode. Before receiving audio data of a user side, a Bluetooth receiving module firstly informs surrounding equipment of the existence of the Bluetooth receiving module through broadcasting, the user side requests to establish Bluetooth connection through broadcasting information of the Bluetooth receiving module, and after handshaking of a protocol layer is carried out, the Bluetooth connection between the user side and an intelligent socket end is successfully established, and then the Bluetooth audio data of the user side can be transmitted.
Optionally, the connection with the bluetooth receiving module needs to be authenticated for the user identity to improve security. Specifically, the connection request can be verified through a preset PIN code, or the connection request can be allowed through an active triggering action performed by the bluetooth receiving module, for example, whether to open the connection is determined by whether a connection allowing key on the smart socket is pressed down. The identity authentication only needs identity authentication when the user side is connected for the first time, after the authentication is passed, the identity information of the user side can be stored in a default trusty list of the Bluetooth receiving module, and then the user side can be automatically connected to the Bluetooth receiving module without authentication.
After the user side establishes transmission connection with the Bluetooth receiving module, the user side can transmit one section of Bluetooth audio data to the intelligent socket end in two modes: firstly, a section of audio data which can be decoded by a Bluetooth receiving module is transmitted to the Bluetooth audio receiving module through a Bluetooth file transmission protocol, for example, a section of audio file is transmitted to an intelligent socket for triggering through Bluetooth sharing in a file browser, and the section of audio file can be well preset and corresponds to a corresponding control instruction; secondly, audio data collected by a microphone of the user terminal is transmitted to the intelligent socket in real time through an audio transmission protocol, for example, after Bluetooth connection is matched, the microphone is called by using functions of 'WeChat voice' and the like, and then the audio data can be sent for controlling the intelligent socket by speaking on the microphone of the user terminal.
After the bluetooth receiving module successfully receives the bluetooth audio data of the user side, the bluetooth receiving module needs to decode and convert the digital signal of the section of audio data into an analog signal, and since the received audio data is a digital signal which is subjected to coding and compression, the instruction information of the user is received through the analog signal which can be used for describing sound wave information. Therefore, the bluetooth receiving module also needs to perform digital-to-analog conversion on the received audio data sent by the user side, and decode the audio data to obtain an analog signal acquired by the original user side for the function execution of the subsequent module.
The audio amplifier module is used for amplifying the analog audio signal decoded and converted by the Bluetooth receiving module. Specifically, the voltage value range of the analog signal at the output end of the bluetooth receiving module is limited by the chip process and the circuit design, and the analog signal obtained by analysis and conversion is often distorted due to uncontrollable factors such as electromagnetic interference and mutual interference between circuit layers which may exist in the surrounding environment. If the distortion phenomenon generates a signal oscillation whose amplitude is greater than the threshold signal strength preset by the comparator module, the subsequent analysis of the comparator module on the correct instruction information of the user is affected, so that the audio amplifier module is not only used for amplifying the signal, but also used for filtering interference and restoring the original analog signal characteristics of the user side.
As a further optional embodiment, the comparator module comprises:
the detection unit is used for detecting the signal intensity of the second analog audio signal at each moment;
the comparison unit is used for comparing the signal intensity at each moment with a preset intensity threshold value;
and the trigger unit is used for generating jump from a low level to a high level when the signal strength at a certain moment is greater than the strength threshold value, and transmitting the jump to the relay module as a trigger signal.
Specifically, after being processed by the bluetooth receiving module and the audio amplifier module, the obtained second analog audio signal is a continuously fluctuating audio signal. The comparator module is used for detecting whether the strength of the second analog audio signal exceeds a preset strength threshold value, if the signal strength of the analog signal exceeds the preset strength threshold value at a certain moment, a trigger unit of the comparator module generates a jump from low voltage to high voltage, and the jump is used as a trigger signal to be sent to the relay module for subsequent logic processing; and if the signal intensity of the whole second analog audio signal does not exceed the preset threshold value, the trigger unit does not generate voltage jump, the relay module is also kept unchanged, the workflow returns to the Bluetooth receiving module to wait for receiving new user side to send audio data, and a new workflow is executed.
The comparison unit comprises an adjustable resistor and a comparator, the positive pole of the power supply end of the comparator inputs power supply voltage, and the negative pole of the power supply end of the comparator is grounded. The comparator is provided with two input ends, namely a non-inverting input end and an inverting input end, the inverting input end of the comparator is connected with the adjustable resistor, and the non-inverting input end of the comparator is connected with the output end of the audio amplifier module.
The strength threshold of the comparison unit allows customization. Specifically, the voltage of the inverting input terminal of the comparator can be adjusted by adjusting a potentiometer knob of the comparator module or changing the resistance value of the adjustable resistor by using a programmable resistor module. The adjustable resistor can be a manual adjustable rheostat or a programmable adjustable resistor module. Optionally, the programmable resistance adjusting module may further perform resistance configuration by using the GAP to perform transmission parameters through a daemon running on the MCU of the bluetooth receiving module.
Fig. 2 is a schematic diagram illustrating the generation principle of the trigger signal, and it is assumed that the voltage value at the inverting input terminal of the comparator adjusted by the adjustable resistor is v, that is, the intensity threshold is v. A section of analog signal shown in fig. 2 is input to the non-inverting input end of the comparator, before the time t, the voltage value of the section of analog signal is smaller than V, the voltage value of the non-inverting input end of the comparator is smaller than the voltage value of the inverting input end, and the comparator outputs 0V; and in a period of time after the time t, the voltage value of the analog signal is greater than v, the voltage value of the non-inverting input end of the comparator is greater than the voltage value of the inverting input end, and the output end of the comparator generates a jump from low voltage to high voltage as a trigger signal and sends the jump to the relay module.
Further as an optional implementation manner, there are a plurality of comparator modules, the intensity thresholds of the plurality of comparator modules are different, and the plurality of comparator modules are configured to generate different trigger signals according to the signal intensity of the second analog audio signal.
In particular, multiple comparator modules may be used in parallel for multi-level command control purposes. When a plurality of comparator modules are connected in parallel, after the analog signals output by the audio amplifier module are received, the trigger threshold of each comparator module is adjustable, and the programmable logic controller of the subsequent relay module is matched, so that more precise control on the intelligent socket can be realized.
As a further optional embodiment, the relay module comprises:
the control unit is used for generating a state reversal operation instruction according to the trigger signal;
and the relay unit is used for executing the closing or opening of the relay according to the state reversal operation instruction.
Specifically, the relay module is used for receiving and processing a trigger signal sent by the comparator module and controlling the relay to be closed or opened. The relay module comprises a control unit and a relay unit, and specifically, when the comparator module detects that the peak intensity of an analog signal analyzed from the received audio signal is greater than the preset threshold intensity, the comparator module generates a jump from a low voltage to a high voltage as a trigger signal for controlling the state reversal of the relay. And after receiving the trigger signal of the state reversal, the control unit of the relay module executes the state reversal operation according to the internal logic.
If before the execution state reversal operation, the relay electromagnetic module is electrified, the internal electromagnet has a magnetic attraction switch because the relay module is electrified, the controlled power supply is electrified, and after the relay module receives the execution state reversal operation, the internal electromagnetic power is cut off, the magnetic attraction switch is disconnected, and the controlled power supply is cut off. Similarly, if the relay electromagnetic module is powered off before the reverse operation of the execution state, the internal electromagnet is powered off because the relay module is powered off and the magnetic attraction is disconnected, the controlled power supply is powered off, and after the relay module receives the reverse operation of the execution state, the internal electromagnetic electricity is powered on, the magnetic attraction switch is switched on, and the controlled power supply is powered on.
Specifically. When the control unit detects that the output end of the comparator module has low-to-high level modulation once, the controller records the jump and stores the jump into the corresponding trigger register, for example, the jump is stored as 1 on the corresponding trigger register, and finally, the relay controller outputs the control voltage to the relay according to the content on the trigger register, so as to control the on-off and the on-off of the relay.
Optionally, when the comparator module adopts a multi-stage parallel connection mode, if there are N stages of comparators, the trigger threshold of each stage of comparator is v1、v2、v3...vNThe result of whether each comparator generates a jump is stored in the trigger register. For example, after an 8-stage comparator processes a section of audio, the content of the trigger register of the controller of the relay module is 01011010, and the controller executes a corresponding control command according to the content of the trigger.
Further as an alternative embodiment, the control unit is only responsive to the first generated trigger signal when multiple trigger signals are generated for the same bluetooth audio data.
In particular, the control unit of the relay module may be configured in a single-workflow, single-trigger mode. When the bluetooth audio data is the user voice collected by the user-side microphone, a section of bluetooth audio may generate multiple low-voltage to high-voltage jumps after being analyzed by the comparator due to environmental noise or human factors, and the control unit of the relay module may adversely affect the control operation if performing multiple state inversions. Therefore, the control unit of the relay module can be configured to be in a single-working-flow single-trigger mode, and the relay module can only perform opening or closing operation once at most for a section of audio data.
Optionally, if the comparator modules are connected in parallel in multiple stages, the control unit of the relay module may adopt a programmable controller, which supports multiple trigger sources, and a logic control program of the programmable controller may be reprogrammed through the bluetooth receiving module, which is more flexible.
As a further optional implementation manner, the bluetooth receiving module is further configured to receive a bluetooth control signal sent by the user side, where the bluetooth control signal is used to adjust an intensity threshold of the comparator module or a control logic of the relay module.
Specifically, the bluetooth receiving module may be configured to receive not only bluetooth audio data, but also a control signal for adjusting a resistance value of the adjustable resistor of the comparator module and a control signal for adjusting a logic control program of the programmable controller of the relay module.
The functional modules of the embodiment of the invention are described above, and it can be appreciated that the embodiment of the invention directly controls the smart socket in a bluetooth remote control mode, audio data is transmitted through bluetooth, and the smart socket terminal uses audio data audio characteristics as a control trigger signal, so that a user can directly control the smart socket quickly and conveniently without needing the user to speak a clear voice command to the smart socket and use a special APP and network facility conditions, and the traditional electrical appliance can be changed into an intelligent controllable electrical appliance quickly, conveniently and at low cost. Compared with an intelligent socket using voice recognition, a user can complete control without actually making a sound, so that the problems of no response, misoperation and the like caused by recognition failure possibly occurring in voice recognition are avoided, the voice command is ensured not to be intercepted manually, and the safety of intelligent socket control is improved; in addition, the embodiment of the invention can realize low-cost and quick intelligent socket control without network connection or installation of a special APP, thereby improving the convenience of intelligent socket control.
According to the sound control intelligent socket triggered by the Bluetooth audio frequency, when the Bluetooth transmits audio data, a section of audio data can be transmitted to the intelligent socket in a file transmission protocol or audio transmission protocol mode, through the cooperative work of all modules in the intelligent socket, a control command carried in the transmitted audio data is extracted, the control command is analyzed and extracted, and the purpose of controlling the intelligent socket to be switched on and off is achieved by sending the control command to control a relay module in the intelligent socket.
Meanwhile, the control is completed by adopting direct point-to-point direct near field communication, so that not only are various malicious attacks from the network avoided by bypassing the mobile phone, the network and other facilities, but also the user does not need to speak loudly when controlling the intelligent socket so that the microphone at the end of the intelligent socket collects the voice of the user, the leakage of an unauthorized user through voice control and control of voice keywords at will is avoided, and the intelligent household power system has better safety.
The embodiment of the invention directly controls the intelligent socket by using the mode of Bluetooth transmission of audio data, is quick, stable and reliable, does not need network environment, can completely break away from the conventional common methods of special APP sending control commands and the like in intelligent home, can realize the purpose of operating the intelligent socket by using the Bluetooth transmission file carried by a mobile phone system or calling the microphone to talk, and avoids the troubles and faults of network configuration, installation, operation, clicking and the like of special APP.
Referring to fig. 3, an embodiment of the present invention provides an intelligent socket control method, including the following steps:
s101, receiving Bluetooth audio data sent by a user side, and performing digital-to-analog conversion on the Bluetooth audio data to obtain a first analog audio signal;
s102, performing signal amplification on the first analog audio signal to obtain a second analog audio signal;
s103, detecting whether the signal intensity of the second analog audio signal exceeds a preset intensity threshold value or not, and generating a corresponding trigger signal according to a detection result;
and S104, controlling the relay to be closed or opened according to the trigger signal, so as to control the on-off state of the intelligent socket.
The contents in the system embodiments are all applicable to the method embodiments, the functions specifically realized by the method embodiments are the same as the system embodiments, and the beneficial effects achieved by the method embodiments are also the same as the beneficial effects achieved by the system embodiments.
Referring to fig. 4, an embodiment of the present invention provides an intelligent socket control device, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the smart socket control method.
The contents in the above system embodiments are all applicable to the present apparatus embodiment, the functions specifically implemented by the present apparatus embodiment are the same as those in the above system embodiment, and the advantageous effects achieved by the present apparatus embodiment are also the same as those achieved by the above system embodiment.
An embodiment of the present invention further provides a computer-readable storage medium, in which a processor-executable program is stored, and the processor-executable program is used for executing the above-mentioned smart socket control method when being executed by a processor.
The computer-readable storage medium of the embodiment of the invention can execute the intelligent socket control method provided by the embodiment of the method of the invention, can execute any combination implementation steps of the embodiment of the method, and has corresponding functions and beneficial effects of the method.
The embodiment of the invention also discloses a computer program product or a computer program, which comprises computer instructions, and the computer instructions are stored in a computer readable storage medium. The computer instructions may be read by a processor of a computer device from a computer-readable storage medium, and the computer instructions executed by the processor cause the computer device to perform the method illustrated in fig. 3.
In alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flow charts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of larger operations are performed independently.
Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the above-described functions and/or features may be integrated in a single physical device and/or software module, or one or more of the functions and/or features may be implemented in a separate physical device or software module. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary for an understanding of the present invention. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be understood within the ordinary skill of an engineer, given the nature, function, and internal relationship of the modules. Accordingly, those skilled in the art can, using ordinary skill, practice the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative of and not intended to limit the scope of the invention, which is defined by the appended claims and their full scope of equivalents.
The above functions, if implemented in the form of software functional units and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of 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 above method according to the embodiments of the present invention. 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 other various media capable of storing program codes.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Further, the computer readable medium could even be paper or another suitable medium upon which the above described program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the foregoing description of the specification, reference to the description of "one embodiment/example," "another embodiment/example," or "certain embodiments/examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A smart jack control system, comprising:
the Bluetooth receiving module is used for receiving Bluetooth audio data sent by a user side and carrying out digital-to-analog conversion on the Bluetooth audio data to obtain a first analog audio signal;
the audio amplifier module is used for amplifying the first analog audio signal to obtain a second analog audio signal;
the comparator module is used for detecting whether the signal intensity of the second analog audio signal exceeds a preset intensity threshold value or not and generating a corresponding trigger signal according to a detection result;
and the relay module is used for controlling the relay to be switched on or switched off according to the trigger signal so as to control the on-off state of the intelligent socket.
2. The smart socket control system as claimed in claim 1, wherein the bluetooth receiving module comprises:
the identity authentication unit is used for performing identity authentication on a user side and performing Bluetooth connection with the user side passing the identity authentication;
the data receiving unit is used for receiving Bluetooth audio data sent by the user terminal, wherein the Bluetooth audio data comprise a preset audio file and a real-time voice fragment acquired by a microphone of the user terminal;
and the decoding unit is used for performing digital-to-analog conversion on the Bluetooth audio data and decoding to obtain the first analog audio signal.
3. A smart jack control system as claimed in claim 1 wherein said comparator module comprises:
the detection unit is used for detecting the signal intensity of the second analog audio signal at each moment;
the comparison unit is used for comparing the signal intensity at each moment with a preset intensity threshold value;
and the trigger unit is used for generating jump from a low level to a high level when the signal strength at a certain moment is greater than the strength threshold value, and transmitting the jump to the relay module as a trigger signal.
4. A smart jack control system as claimed in claim 1 wherein: the plurality of comparator modules are used for generating different trigger signals according to the signal strength of the second analog audio signal.
5. A smart jack control system as claimed in claim 1 wherein said relay module comprises:
the control unit is used for generating a state reversal operation instruction according to the trigger signal;
and the relay unit is used for executing the closing or opening of the relay according to the state reversal operation instruction.
6. The smart jack control system of claim 5, wherein: when the same bluetooth audio data generates a plurality of trigger signals, the control unit responds only to the first generated trigger signal.
7. A smart jack control system as claimed in any one of claims 1 to 6 wherein: the Bluetooth receiving module is further used for receiving a Bluetooth control signal sent by the user side, and the Bluetooth control signal is used for adjusting the strength threshold value of the comparator module or the control logic of the relay module.
8. A smart jack control method is characterized by comprising the following steps:
receiving Bluetooth audio data sent by a user side, and performing digital-to-analog conversion on the Bluetooth audio data to obtain a first analog audio signal;
performing signal amplification on the first analog audio signal to obtain a second analog audio signal;
detecting whether the signal intensity of the second analog audio signal exceeds a preset intensity threshold value or not, and generating a corresponding trigger signal according to a detection result;
and controlling the relay to be switched on or switched off according to the trigger signal so as to control the on-off state of the intelligent socket.
9. An intelligent socket control device, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, the at least one program causes the at least one processor to implement a smart socket control method as recited in claim 8.
10. A computer-readable storage medium in which a program executable by a processor is stored, wherein the program executable by the processor is configured to perform a smart socket controlling method according to claim 8 when executed by the processor.
CN202111375126.3A 2021-11-18 2021-11-18 Intelligent socket control system, method and device and storage medium Pending CN114170781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111375126.3A CN114170781A (en) 2021-11-18 2021-11-18 Intelligent socket control system, method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111375126.3A CN114170781A (en) 2021-11-18 2021-11-18 Intelligent socket control system, method and device and storage medium

Publications (1)

Publication Number Publication Date
CN114170781A true CN114170781A (en) 2022-03-11

Family

ID=80479749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111375126.3A Pending CN114170781A (en) 2021-11-18 2021-11-18 Intelligent socket control system, method and device and storage medium

Country Status (1)

Country Link
CN (1) CN114170781A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554384A (en) * 2022-04-11 2022-05-27 深圳市得自在科技有限公司 Anti-interference performance test system for Bluetooth headset
CN114912156A (en) * 2022-06-02 2022-08-16 汇钜电科(东莞)实业有限公司 Intelligent management method, system and equipment for U disk use condition and information security

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192296A1 (en) * 2009-01-30 2010-08-05 Altorr Corporation Patient-lifting-device controls
US20140362713A1 (en) * 2013-06-11 2014-12-11 Seven Networks, Inc. Quality of experience enhancement for wireless networks based on received signal strength at a mobile device
KR20150032731A (en) * 2012-08-15 2015-03-27 고어텍 인크 Voice Recognition System and Method
CN104659469A (en) * 2015-02-28 2015-05-27 深圳市中兴移动通信有限公司 Antenna assembly and control method thereof
CN105068433A (en) * 2015-07-07 2015-11-18 江苏惠通集团有限责任公司 Network connection method and apparatus of intelligent socket, and intelligent socket system
CN106025727A (en) * 2016-07-27 2016-10-12 南通加二智能科技有限公司 Smart socket with voice recognition function
CN106532364A (en) * 2016-11-22 2017-03-22 广东小天才科技有限公司 Power control method and apparatus of socket, and socket
CN206250518U (en) * 2016-12-16 2017-06-13 华北电力大学 A kind of smart jack
CN107959493A (en) * 2017-11-28 2018-04-24 杭州阔联科技有限公司 Inductive switch and its control method
CN108134622A (en) * 2017-12-29 2018-06-08 爱图智能(深圳)有限公司 A kind of method and smart machine that control instruction is sent using Bluetooth audio frequency
CN109270869A (en) * 2018-10-26 2019-01-25 四川爱联科技有限公司 Household electrical appliances automatic closing system and method based on bluetooth signal intensity
CN109495805A (en) * 2018-12-07 2019-03-19 广州由我科技股份有限公司 A kind of bluetooth headset and its control method
CN109507933A (en) * 2018-12-19 2019-03-22 张绍轩 The intelligent socket and its control method of equipment access identification and overcurrent protection
CN209690731U (en) * 2019-05-21 2019-11-26 四川虹美智能科技有限公司 A kind of intelligent plug and smart home device control system
CN111193157A (en) * 2020-01-20 2020-05-22 广州大学 Intelligent multifunctional Internet of things socket and implementation method thereof
CN111464992A (en) * 2020-04-01 2020-07-28 蔚蓝计划(北京)科技有限公司 Power-saving control method, device and system based on intelligent garbage can
CN111833588A (en) * 2020-07-08 2020-10-27 广州大学 Customizable wireless remote control adapter, method and device
US20200402513A1 (en) * 2019-06-19 2020-12-24 Baidu Online Network Technology (Beijing) Co., Ltd. Bluetooth speaker base, method and system for controlling thereof
CN113314113A (en) * 2021-05-19 2021-08-27 广州大学 Intelligent socket control method, device, equipment and storage medium
US20220210740A1 (en) * 2019-09-19 2022-06-30 Samsung Electronics Co., Ltd. Appliance, appliance network system, and connection method thereof

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192296A1 (en) * 2009-01-30 2010-08-05 Altorr Corporation Patient-lifting-device controls
KR20150032731A (en) * 2012-08-15 2015-03-27 고어텍 인크 Voice Recognition System and Method
US20140362713A1 (en) * 2013-06-11 2014-12-11 Seven Networks, Inc. Quality of experience enhancement for wireless networks based on received signal strength at a mobile device
CN104659469A (en) * 2015-02-28 2015-05-27 深圳市中兴移动通信有限公司 Antenna assembly and control method thereof
CN105068433A (en) * 2015-07-07 2015-11-18 江苏惠通集团有限责任公司 Network connection method and apparatus of intelligent socket, and intelligent socket system
CN106025727A (en) * 2016-07-27 2016-10-12 南通加二智能科技有限公司 Smart socket with voice recognition function
CN106532364A (en) * 2016-11-22 2017-03-22 广东小天才科技有限公司 Power control method and apparatus of socket, and socket
CN206250518U (en) * 2016-12-16 2017-06-13 华北电力大学 A kind of smart jack
CN107959493A (en) * 2017-11-28 2018-04-24 杭州阔联科技有限公司 Inductive switch and its control method
CN108134622A (en) * 2017-12-29 2018-06-08 爱图智能(深圳)有限公司 A kind of method and smart machine that control instruction is sent using Bluetooth audio frequency
CN109270869A (en) * 2018-10-26 2019-01-25 四川爱联科技有限公司 Household electrical appliances automatic closing system and method based on bluetooth signal intensity
CN109495805A (en) * 2018-12-07 2019-03-19 广州由我科技股份有限公司 A kind of bluetooth headset and its control method
CN109507933A (en) * 2018-12-19 2019-03-22 张绍轩 The intelligent socket and its control method of equipment access identification and overcurrent protection
CN209690731U (en) * 2019-05-21 2019-11-26 四川虹美智能科技有限公司 A kind of intelligent plug and smart home device control system
US20200402513A1 (en) * 2019-06-19 2020-12-24 Baidu Online Network Technology (Beijing) Co., Ltd. Bluetooth speaker base, method and system for controlling thereof
US20220210740A1 (en) * 2019-09-19 2022-06-30 Samsung Electronics Co., Ltd. Appliance, appliance network system, and connection method thereof
CN111193157A (en) * 2020-01-20 2020-05-22 广州大学 Intelligent multifunctional Internet of things socket and implementation method thereof
CN111464992A (en) * 2020-04-01 2020-07-28 蔚蓝计划(北京)科技有限公司 Power-saving control method, device and system based on intelligent garbage can
CN111833588A (en) * 2020-07-08 2020-10-27 广州大学 Customizable wireless remote control adapter, method and device
CN113314113A (en) * 2021-05-19 2021-08-27 广州大学 Intelligent socket control method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任丽莉 等: "基于ZigBee和Android的智能家居系统设计", 《长春师范学院学报(自然科学版)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554384A (en) * 2022-04-11 2022-05-27 深圳市得自在科技有限公司 Anti-interference performance test system for Bluetooth headset
CN114554384B (en) * 2022-04-11 2024-03-12 深圳市得自在科技有限公司 Bluetooth headset anti-interference performance test system
CN114912156A (en) * 2022-06-02 2022-08-16 汇钜电科(东莞)实业有限公司 Intelligent management method, system and equipment for U disk use condition and information security
CN114912156B (en) * 2022-06-02 2023-06-23 汇钜电科(东莞)实业有限公司 Intelligent management equipment for USB flash disk service condition and information security

Similar Documents

Publication Publication Date Title
CN114170781A (en) Intelligent socket control system, method and device and storage medium
CN108447480B (en) Intelligent household equipment control method, intelligent voice terminal and network equipment
CN103067340B (en) The method for authenticating of remote control network information household appliances and system, the Internet home gateway
CN105259771A (en) Authentication method and associated device
WO2015056099A1 (en) Systems and methods for configuring an electronic device
CN109523662B (en) Identity verification electricity taking method, electricity taking device, access control method and device
CN102739864A (en) Method for realizing wireless earphone function of television set and wireless communication equipment
CN104869568A (en) Audio-based monitoring system configuration method and system
CN105405188A (en) Ultrasonic unlocking device based on WiFi (Wireless Fidelity), ultrasonic unlocking system based on WiFi and control system thereof
CN207441234U (en) A kind of speech recognition system based on ZigBee gateways
CN105573127A (en) Remote control permission control method and device
CN205620724U (en) Intelligence pronunciation remote control system
CN102611759A (en) Internet of things (IOT) household appliance management system and IOT household appliance management method
CN204667053U (en) A kind of intelligent home control system based on dual mode communication
CN205121675U (en) Sound wave unblank device and system based on wiFi
CN106328144A (en) Telephone-network-based remote voice control system
US20110122221A1 (en) Servo control device and method for remote surveillance and monitoring
CN104460327A (en) Control method for smart homes
CN112492599B (en) Terminal control method, system, electronic device and storage medium
US11956503B2 (en) Controlling a device based on an audio input
CN105450671A (en) Password setting method and system based on parameter setting, and identity authentication method and system
CN111586056B (en) Intelligent equipment control and management system based on multistage block chain architecture
CN108055180A (en) A kind of sound wave identification and the intelligent domestic system of control
CN105791982B (en) A kind of control method and television equipment
CN114089641A (en) Intelligent electric appliance based on point-to-point communication Internet-of-things controller and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220311

RJ01 Rejection of invention patent application after publication