CN110769406A - Communication control method, communication control device, storage medium and electronic equipment - Google Patents

Communication control method, communication control device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110769406A
CN110769406A CN201911051042.7A CN201911051042A CN110769406A CN 110769406 A CN110769406 A CN 110769406A CN 201911051042 A CN201911051042 A CN 201911051042A CN 110769406 A CN110769406 A CN 110769406A
Authority
CN
China
Prior art keywords
connection mode
wireless communication
signal
connection
bluetooth
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
CN201911051042.7A
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.)
Rajax Network Technology Co Ltd
Original Assignee
Rajax Network Technology Co Ltd
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 Rajax Network Technology Co Ltd filed Critical Rajax Network Technology Co Ltd
Priority to CN201911051042.7A priority Critical patent/CN110769406A/en
Publication of CN110769406A publication Critical patent/CN110769406A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

The embodiment of the invention discloses a communication control method, a communication control device, a storage medium and electronic equipment. The method includes continuously detecting a trigger signal through a sensor, controlling a communication connection mode of the wireless communication apparatus to be switched from a slave connection mode to a master connection mode after the trigger signal is detected, and transmitting a matching connection request signal to perform a predetermined control operation in response to establishment of a connection with a second device. Therefore, the first device and the second device can be connected quickly, user experience is improved, and communication reliability and real-time performance are improved.

Description

Communication control method, communication control device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication control method and apparatus, a storage medium, and an electronic device.
Background
Along with the gradual maturity of bluetooth, the system that utilizes cell-phone bluetooth communication to realize intelligence unblanking or intelligent start is also more and more, for example bluetooth meal case, bluetooth entrance guard, the automatic system of opening in bluetooth garage etc..
The intelligent unlocking and intelligent opening system based on Bluetooth communication generally comprises a mobile terminal and a control terminal. The mobile terminal is generally a mobile phone, and the control terminal comprises a Bluetooth meal box control device, a Bluetooth entrance guard control device, a Bluetooth garage control device and the like. In order to meet the requirements of low power consumption design, free 2.4GHz band and the like, the mobile terminal is usually set to a main connection mode for detecting connectable signals. The control terminal is set to a slave connection mode for continuously transmitting a connectable signal. When the mobile terminal approaches the control terminal within a certain range, the connectable signal is detected, and a pairing connection request is sent to the control terminal. And after the connection is established, the control terminal identifies the identity of the mobile terminal and executes control operation.
However, the control terminal is simply set to the slave connection mode, and situations such as the mobile terminal and the control terminal cannot establish a connection quickly in real time often occur, so that communication reliability and real-time performance are difficult to be ensured. Meanwhile, operations such as unlocking the mobile phone, awakening the screen, restarting the App, restarting the mobile phone and the like are manually performed to reestablish the connection, so that the user experience is reduced, and a large burden is caused to the user in a frequently-used scene.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a communication control method, a communication control apparatus, a storage medium, and an electronic device, which can improve communication reliability and real-time performance.
In a first aspect, an embodiment of the present invention provides a communication control method, which is applied to a first device, and the method includes:
controlling the wireless communication device to work in a slave connection mode, and continuously detecting a trigger signal through a sensor;
in response to detecting a trigger signal, controlling a communication connection mode of the wireless communication device to switch to a main connection mode;
controlling the wireless communication device to transmit a matching connection request signal in the primary connection mode; and
in response to establishing a connection with the second device, a predetermined control operation is performed.
Preferably, the first device switches operation between a slave connection mode and a master connection mode.
Preferably, the second device operates in a slave connection mode and a master connection mode simultaneously.
Preferably, the first device is a bluetooth food box control device.
Preferably, the first device is a bluetooth garage control device.
Preferably, the second device is a mobile phone, a tablet computer or a notebook computer.
Preferably, the wireless communication device is a bluetooth communication device.
Preferably, the trigger signal is an acceleration signal.
Preferably, the trigger signal is a sound signal and/or a light signal.
Preferably, the executing of the predetermined control operation is unlocking of a bluetooth meal box lock.
Preferably, the predetermined control operation is to unlock a bluetooth garage lock.
In a second aspect, an embodiment of the present invention provides a communication control method, where the method includes:
the first equipment controls the wireless communication device to work in a slave connection mode and continuously detects a trigger signal through the sensor;
the first equipment controls the communication connection mode of the wireless communication device to be switched into a main connection mode in response to the detection of the trigger signal;
the first device controls the wireless communication apparatus to transmit a matching connection request signal in the main connection mode; and
the second device continuously detects the matching connection request signal;
the second equipment responds to the detection of the matching connection request signal and establishes connection with the first equipment; and
the first device performs a predetermined control operation in response to establishing a connection with the second device.
Preferably, the first device switches operation between a slave connection mode and a master connection mode.
Preferably, the second device operates in a slave connection mode and a master connection mode simultaneously.
Preferably, the first device is a bluetooth food box control device.
Preferably, the first device is a bluetooth garage control device.
Preferably, the second device is a mobile phone, a tablet computer or a notebook computer.
Preferably, the wireless communication device is a bluetooth communication device.
Preferably, the trigger signal is an acceleration signal.
Preferably, the trigger signal is a sound signal and/or a light signal.
Preferably, the executing of the predetermined control operation is unlocking of a bluetooth meal box lock.
Preferably, the predetermined control operation is to unlock a bluetooth garage lock.
In a third aspect, an embodiment of the present invention provides a communication control apparatus, which is applied to a first device, and includes:
the signal detection unit is used for controlling the wireless communication device to work in a slave connection mode and continuously detecting a trigger signal through the sensor;
the mode switching unit is used for controlling the communication connection mode of the wireless communication device to be switched into a main connection mode in response to the detection of the trigger signal;
a signal transmission unit for controlling the wireless communication apparatus to transmit a matching connection request signal in the main connection mode; and
and an execution control unit for executing a predetermined control operation in response to establishment of a connection with the second device.
Preferably, the first device switches operation between a slave connection mode and a master connection mode.
Preferably, the second device operates in a slave connection mode and a master connection mode simultaneously.
Preferably, the first device is a bluetooth food box control device.
Preferably, the first device is a bluetooth garage control device.
Preferably, the second device is a mobile phone, a tablet computer or a notebook computer.
Preferably, the wireless communication device is a bluetooth communication device.
Preferably, the trigger signal is an acceleration signal.
Preferably, the trigger signal is a sound signal and/or a light signal.
Preferably, the executing of the predetermined control operation is unlocking of a bluetooth meal box lock.
Preferably, the predetermined control operation is to unlock a bluetooth garage lock.
In a fourth aspect, an embodiment of the present invention provides a communication control system, where the system includes:
the wireless communication device comprises a first device, a second device and a third device, wherein the first device is configured to control the wireless communication device to work in a slave connection mode, continuously detect a trigger signal through a sensor, control the communication connection mode of the wireless communication device to be switched into a master connection mode in response to the detection of the trigger signal, and control the wireless communication device to transmit a matching connection request signal in the master connection mode; and
a second device configured to continuously detect a matching connection request signal, and to establish a connection with the first device in response to detecting the matching connection request signal;
wherein the first device performs a predetermined control operation in response to establishing a connection with a second device.
Preferably, the first device switches operation between a slave connection mode and a master connection mode.
Preferably, the second device operates in a slave connection mode and a master connection mode simultaneously.
Preferably, the first device is a bluetooth food box control device.
Preferably, the first device is a bluetooth garage control device.
Preferably, the second device is a mobile phone, a tablet computer or a notebook computer.
Preferably, the wireless communication device is a bluetooth communication device.
Preferably, the trigger signal is an acceleration signal.
Preferably, the trigger signal is a sound signal and/or a light signal.
Preferably, the executing of the predetermined control operation is unlocking of a bluetooth meal box lock.
Preferably, the predetermined control operation is to unlock a bluetooth garage lock.
In a fifth aspect, embodiments of the present invention provide a computer-readable storage medium on which computer program instructions are stored, which when executed by a processor implement the method according to the first and second aspects.
In a sixth aspect, embodiments of the present invention provide an electronic device, comprising a wireless communication apparatus, a sensor, a memory for storing one or more computer program instructions, and a processor, wherein the one or more computer program instructions are executed by the processor to implement the method according to the first and second aspects.
The technical scheme of the embodiment of the invention continuously detects the trigger signal through the sensor, controls the communication connection mode of the wireless communication device to be switched from the slave connection mode to the master connection mode after detecting the trigger signal, sends the matching connection request signal, responds to the connection establishment with the second equipment, and executes the preset control operation. Therefore, the first device and the second device can be connected quickly, user experience is improved, and communication reliability and real-time performance are improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a communication control system of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a communication control system of an embodiment of the present invention;
FIG. 3 is a schematic diagram of a first apparatus of a first embodiment of the invention;
fig. 4 is a flowchart of a communication control method of the first embodiment of the present invention;
FIG. 5 is a schematic diagram of a first apparatus of a second embodiment of the invention;
fig. 6 is a flowchart of a communication control method of a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a communication control apparatus according to an embodiment of the present invention.
Detailed Description
The present disclosure is described below based on examples, but the present disclosure is not limited to only these examples. In the following detailed description of the present disclosure, certain specific details are set forth. It will be apparent to those skilled in the art that the present disclosure may be practiced without these specific details. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present disclosure.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout this specification, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present disclosure, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present disclosure, "a plurality" means two or more unless otherwise specified.
Bluetooth technology specifies that when bluetooth communication is performed between each pair of devices, one device must be a master device and the other device must be a slave device to perform the communication. In communication, the slave device is a broadcasting device, and transmits a connectable signal in a broadcast manner. The master device is a scanning device and an initiating device, and is configured to scan a connectable signal broadcast by the slave device, and when detecting the connectable signal, may initiate a pairing connection request to the corresponding slave device. It should be understood that only the master device can actively initiate the pairing connection request, and the slave device cannot actively initiate the connection request and can only receive the connection request initiated by other devices.
In this embodiment, the communication control system includes a first device that switches between a master connection mode and a slave connection mode, and a second device that operates in the master connection mode and the slave connection mode at the same time. That is, when the first device operates in the master connection mode, it may scan other devices and initiate pairing requests, and when the first device operates in the slave connection mode, it may receive pairing requests initiated by other devices. The second device operates in the master connection mode and the slave connection mode simultaneously, and can scan other devices or be scanned by other devices at the same time.
Fig. 1 is a schematic diagram of a communication control system of an embodiment of the present invention. As shown in fig. 1, the communication control system of the embodiment of the present invention includes a first device 1 and a second device 2. In this embodiment, the first device 1 and the second device 2 may both be bluetooth devices. Wherein the communication connection mode of the first device 1 is a slave connection mode for transmitting a connectable signal in a broadcast manner. The communication connection mode of the second device 2 is a main connection mode for scanning connectable signals and initiating a pairing request.
In the present embodiment, the first device 1 includes at least one wireless communication means.
Preferably, the wireless communication device is a bluetooth low energy module.
Further, when the second device 2 approaches the first device 1 within a certain range, the second device 2 may scan for a connectable signal broadcast by the first device 1. Upon detecting the connectable signal, the second device 2 transmits a pairing connection request signal to the first device 1. The first device 1 determines whether to establish connection or not upon receiving the pairing-connection request signal. After the connection is successful, the first device 1 generates an opening control signal to control the execution of a predetermined operation.
Further, the first device 1 is an unlocking means, and the predetermined operation is performed to open the lock.
Fig. 2 is a schematic diagram of a communication control system of an embodiment of the present invention. As shown in fig. 2, the communication control system of the embodiment of the present invention includes a first device 1 and a second device 2. In this embodiment, the first device 1 and the second device 2 may both be bluetooth devices. Wherein the communication connection mode of the second device 2 is a slave connection mode for transmitting the connectable signal in a broadcast manner. The communication connection mode of the first device 1 is a main connection mode for scanning connectable signals and initiating a pairing request.
In the present embodiment, the first device 1 includes at least one wireless communication means.
Preferably, the wireless communication device is a bluetooth low energy module.
Further, the first device 1 may scan for a connectable signal broadcast by the second device 2 when the second device 2 is within a certain range of the first device 1. Upon detecting the connectable signal, the first device 1 transmits a pairing connection request signal to the second device 2. The second device 2 determines whether to establish connection or not upon receiving the pairing-connection request signal. After the connection is successful, the first device 1 generates an opening control signal to control the execution of a predetermined operation.
Further, the first device 1 is an unlocking means, and the predetermined operation is performed to open the lock.
Specifically, fig. 3 is a schematic diagram of a first apparatus of the first embodiment of the present invention. As shown in fig. 3, the first device of the embodiment of the present invention includes at least one processor 31, a memory 32, a wireless communication means 33, an acceleration sensor 34 and a bluetooth meal box lock 35. Wherein the wireless communication device 33 switches between a master connection mode and a slave connection mode under the control of the processor 31. The acceleration sensor 34 is controlled by the processor 31 to detect a trigger signal. Further, the memory 32 stores instructions executable by the at least one processor 31, and the instructions are executed by the at least one processor 31 to implement the communication control method shown in fig. 4.
In this embodiment, the first device is a bluetooth food box control device, and is configured to control the bluetooth food box to be opened or closed.
In this embodiment, the second device is a terminal device having a bluetooth communication function, such as a mobile phone, a tablet computer, a notebook computer, or a desktop computer, and may also be a dedicated bluetooth device.
Specifically, the present embodiment takes the second device as a mobile phone as an example for explanation. After the user takes the bluetooth meal case, can bind bluetooth meal controlling means through the cell-phone bluetooth, when the user was close to the bluetooth meal case, cell-phone and bluetooth meal case controlling means pass through bluetooth automatic connection. When the mobile phone is connected with the Bluetooth meal box control device, the Bluetooth meal box lock is always kept in an open state. When a user leaves the Bluetooth meal box within a certain range, the connection between the mobile phone and the Bluetooth meal box control device is interrupted, and when the mobile phone and the Bluetooth meal box control device are in a disconnected state, the Bluetooth meal box lock is automatically switched to a locked state, so that the user does not need to manually unlock and lock, and the meal is effectively prevented from being stolen.
Specifically, fig. 4 is a flowchart of a communication control method of the first embodiment of the present invention. As shown in fig. 4, the communication control method according to the embodiment of the present invention includes the following steps:
and step S410, controlling the wireless communication device to work in the slave connection mode, and continuously detecting the trigger signal through the sensor.
In the present embodiment, the processor 31 controls the wireless communication device 33 to operate in the slave connection mode, and in the slave connection mode, the connectable signal is transmitted in a broadcast manner. Because the slave connection mode is generally operated in a low power consumption state, the Bluetooth meal box control device is normally operated in the low power consumption state, and the power consumption can be obviously reduced.
In the present embodiment, the processor 31 controls the acceleration sensor 34 to continuously detect the trigger signal. Further, the trigger signal is an acceleration signal. The trigger signal is used for representing the connection failure of the Bluetooth food box control device and the mobile phone.
Specifically, the acceleration sensor is a sensor capable of measuring acceleration. The damper is generally composed of a mass block, a damper, an elastic element, a sensitive element, an adjusting circuit and the like. In the acceleration process, the sensor obtains an acceleration value by measuring the inertial force borne by the mass block and utilizing Newton's second law. Acceleration sensor sets up in the meal case, if cell-phone and bluetooth meal case controlling means connection failure, bluetooth meal case lock is in the lock-out state, and when the action of meal case was opened in the user execution, the meal case can the atress produce great vibrations, and then produces acceleration signal. Therefore, the failure of connection between the mobile phone and the Bluetooth meal box control device can be determined by detecting the trigger signal through the acceleration sensor.
And step S420, in response to the detection of the trigger signal, controlling the communication connection mode of the wireless communication device to be switched to a main connection mode.
In the present embodiment, in response to the acceleration sensor 34 detecting the trigger signal, the processor 31 determines that the connection between the mobile phone and the bluetooth food box control device fails, and controls the communication connection mode of the wireless communication device 33 to switch from the slave connection mode to the master connection mode, in which the bluetooth food box control device scans for a connectable signal.
Step S430, controlling the wireless communication apparatus to transmit a matching connection request signal in the main connection mode.
In the present embodiment, the processor 31 controls the wireless communication device 33 to scan the connectable signal in the main connection mode. And when the connectable signal is scanned, sending a matched connection request signal to the corresponding mobile phone.
Further, the user needs to set the mobile phone to the slave connection mode and the master connection mode, and the mobile phone can scan other devices and can be scanned by other devices. Thus, the processor 31 controls the wireless communication device 33 to scan the user's handset in the main connection mode.
Step S440, in response to establishing a connection with the second device, performs a predetermined control operation.
In this embodiment, the mobile phone establishes a connection with the bluetooth food box control device in response to detecting the matching connection request signal. After the connection is successful, the processor 31 generates an opening control signal to control the Bluetooth meal box lock to be opened.
According to the embodiment of the invention, the acceleration sensor is arranged in the Bluetooth meal box control device to continuously detect the trigger signal, and after the trigger signal is detected, the communication connection mode of the wireless communication device is controlled to be switched from the slave connection mode to the master connection mode, so that the mobile phone of the user is scanned and connected with the mobile phone of the user. From this, can be so that bluetooth meal case controlling means and cell-phone can establish the connection fast, promote user experience, improve communication reliability and real-time, the user does not need manually to unblank and close the lock simultaneously, improves the efficiency of food delivery, can also very effectually prevent that the meal from being stolen.
Fig. 5 is a schematic diagram of a first apparatus of a second embodiment of the invention. As shown in fig. 5, the first device of an embodiment of the present invention includes at least one processor 51, a memory 52, a wireless communication device 53, a light sensor 54, a sound sensor 55, and a bluetooth garage lock 55. Wherein the wireless communication device 53 switches between a master connection mode and a slave connection mode under the control of the processor 31. At least one of the light sensor 54 and the sound sensor 55 is controlled by the processor 51 to detect a trigger signal. The memory 52 stores instructions executable by the at least one processor 51, and the instructions are executed by the at least one processor 51 to implement the communication control method shown in fig. 6.
In this embodiment, the first device is a bluetooth garage control device, and is used for controlling the opening or closing of a bluetooth garage.
In this embodiment, the second device is a terminal device having a bluetooth communication function, such as a mobile phone, a tablet computer, a notebook computer, or a desktop computer, and may also be a dedicated bluetooth device.
Specifically, the present embodiment takes the second device as a mobile phone as an example for explanation. The user binds the Bluetooth garage control device through mobile phone Bluetooth, and when the user drives to be close to the garage, the mobile phone is automatically connected with the Bluetooth garage control device through Bluetooth. When the mobile phone is connected with the Bluetooth garage control device, the Bluetooth garage lock is always kept in an open state. When the user leaves the garage within a certain range, the connection between the mobile phone and the Bluetooth garage control device is interrupted, and when the mobile phone and the Bluetooth garage control device are in a disconnection state, the Bluetooth garage lock is automatically switched to a locking state, so that the user does not need to manually unlock and close the lock, and the user experience is improved.
Specifically, fig. 6 is a flowchart of a communication control method of the second embodiment of the present invention. As shown in fig. 6, the communication control method according to the embodiment of the present invention includes the following steps:
and step S610, controlling the wireless communication device to work in the slave connection mode, and continuously detecting the trigger signal through the sensor.
In the present embodiment, the processor 51 controls the wireless communication device 53 to operate in the slave connection mode in which the connectable signal is transmitted in a broadcast manner. Because the slave connection mode is generally operated in the low power consumption state, the Bluetooth garage control device is normally operated in the low power consumption state, and the power consumption can be obviously reduced.
In the present embodiment, the processor 51 controls at least one of the light sensor 54 and the sound sensor 55 to continuously detect the trigger signal. Further, the trigger signal is an optical signal or an acoustic signal. The trigger signal is used for representing the connection failure of the Bluetooth garage control device and the mobile phone.
Specifically, a capacitor electret microphone sensitive to sound is arranged in the sound sensor, sound waves enable an electret film in the microphone to vibrate, capacitance changes are caused, tiny voltage changing correspondingly to the capacitance changes is generated, and sound signals are generated after analog-to-digital conversion. The light sensor is composed of a photosensitive element and can detect light signals. Specifically, when the user drives the vehicle close to the garage door, the garage door is not opened, and the generation of a sound signal by a horn action or the generation of a light signal by the actions of turning on the lamps, switching between high and low light, and the like can be performed. Therefore, the Bluetooth garage control device can determine that the connection between the Bluetooth garage control device and the mobile phone fails by detecting the sound signal and/or the light signal.
And S620, in response to the detection of the trigger signal, controlling the communication connection mode of the wireless communication device to be switched to a main connection mode.
In the present embodiment, in response to the light sensor 54 or the sound sensor 55 detecting the trigger signal, the processor 51 determines that the connection between the mobile phone and the bluetooth garage control apparatus has failed, and controls the communication connection mode of the wireless communication apparatus 53 to switch from the slave connection mode to the master connection mode, in which the bluetooth garage control apparatus scans for a connectable signal.
Step S630, controlling the wireless communication apparatus to transmit a matching connection request signal in the main connection mode.
In the present embodiment, the processor 51 controls the wireless communication device 53 to scan the connectable signal in the main connection mode. And when the connectable signal is scanned, sending a matched connection request signal to the corresponding mobile phone.
Further, the user needs to set the mobile phone to the slave connection mode and the master connection mode, and the mobile phone can scan other devices and can be scanned by other devices. Thus, the processor 51 controls the wireless communication device 53 to scan the user's handset in the main connection mode.
Step S640, in response to establishing a connection with the second device, performs a predetermined control operation.
In this embodiment, the mobile phone establishes a connection with the bluetooth garage control device in response to detecting the match connection request signal. After the connection is successful, the processor 51 generates an opening control signal to control the opening of the bluetooth garage lock.
According to the embodiment of the invention, the sound sensor or the acceleration sensor is arranged in the Bluetooth garage control device to continuously detect the trigger signal, and after the trigger signal is detected, the communication connection mode of the wireless communication device is controlled to be switched from the slave connection mode to the master connection mode, so that the mobile phone of the user is scanned and connected with the mobile phone of the user. From this, can be so that bluetooth garage controlling means and cell-phone can establish the connection fast, the user need not manually unblank and close the lock, promotes user experience, improves communication reliability and real-time.
It should be understood that the communication control system according to the embodiment of the present invention is not limited to the above-mentioned exemplary system, and may be other intelligent control systems, such as a bluetooth access control system, in which the sensor may be an infrared sensor or a proximity sensor, and the like, and performs a predetermined operation to open the access.
The embodiment of the invention continuously detects the trigger signal through the sensor, controls the communication connection mode of the wireless communication device to be switched from the slave connection mode to the master connection mode after detecting the trigger signal, sends the matching connection request signal, and executes the preset control operation in response to the connection establishment with the second equipment. Therefore, the first device and the second device can be connected quickly, user experience is improved, and communication reliability and real-time performance are improved.
Fig. 7 is a schematic structural diagram of a communication control apparatus according to an embodiment of the present invention. As shown in fig. 7, the communication control apparatus of the embodiment of the present invention is applied to a first device, and includes a signal detection unit 71, a mode switching unit 72, a signal transmission unit 73, and an execution control unit 74. The signal detecting unit 71 controls the wireless communication device to operate in the slave connection mode, and continuously detects the trigger signal through the sensor. The mode switching unit 72 controls the wireless communication apparatus communication connection mode to be switched to the main connection mode in response to detection of the trigger signal. The signal transmitting unit 73 is configured to control the wireless communication apparatus to transmit a connection request signal in the main connection mode. The execution control unit 74 is responsive to establishment of a connection with the second device for executing a predetermined control operation.
In this embodiment, the signal detecting unit 71 controls the wireless communication device to operate in the slave connection mode, continuously transmits the connectable signal in a broadcast manner, and continuously detects the trigger signal through the sensor. The mode switching unit 12 is used for responding to the detection of the trigger signal, representing the connection failure of the first device 1 and the second device 2, and controlling the communication connection mode of the wireless communication device to be switched to the main connection mode. The signal transmission unit 13 controls the wireless communication apparatus to detect a connectable signal in the main connection mode, and transmits a matching connection request signal to the second device 2 when the connectable signal of the second device 2 is detected. The second device 2 determines whether to establish connection upon receiving the connection request signal. The execution control unit 14 generates a turn-on control signal, controlling execution of a predetermined control operation, in response to establishment of a connection with the second device.
Further, the first device switches between the slave connection mode and the master connection mode.
Further, the second device operates in a slave connection mode and a master connection mode simultaneously.
Further, the first device is a Bluetooth meal box control device.
Further, the first equipment is a Bluetooth garage control device.
Further, the second device is a mobile phone, a tablet computer or a notebook computer.
Further, the wireless communication device is a bluetooth communication device.
Further, the trigger signal is an acceleration signal.
Further, the trigger signal is a sound signal and/or a light signal.
Further, the executing of the predetermined control operation is unlocking of a Bluetooth meal box lock.
Further, the executing of the predetermined control operation is unlocking of a Bluetooth garage lock.
The embodiment of the invention continuously detects the trigger signal through the sensor, controls the communication connection mode of the wireless communication device to be switched from the slave connection mode to the master connection mode after detecting the trigger signal, sends the matching connection request signal, and executes the preset control operation in response to the connection establishment with the second equipment. Therefore, the first device and the second device can be connected quickly, user experience is improved, and communication reliability and real-time performance are improved.
It should be understood that the communication control apparatus according to the embodiment of the present invention is not limited to the above-mentioned exemplary system, and may be other intelligent control systems, such as a bluetooth access control system, in which predetermined operations are performed to open the access.
It should be understood that the first device of the embodiments of the present invention includes one or more processors and a memory, and one processor is taken as an example in fig. 3 and 5. The processor and the memory may be connected by a bus or other means, and fig. 3 and 5 illustrate the connection by a bus. The memory, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor executes various functional applications and data processing of the device by executing nonvolatile software programs, instructions, and modules stored in the memory, that is, implements the communication control method described above.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be connected to the external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory and, when executed by the one or more processors, perform the communication control method in any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
Another embodiment of the invention is directed to a non-transitory storage medium storing a computer-readable program for causing a computer to perform some or all of the above-described method embodiments.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in 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 other various media capable of storing program codes.
The embodiment of the invention discloses A1 and a communication control method, which is applied to first equipment, and comprises the following steps:
controlling the wireless communication device to work in a slave connection mode, and continuously detecting a trigger signal through a sensor;
in response to detecting a trigger signal, controlling a communication connection mode of the wireless communication device to switch to a main connection mode;
controlling the wireless communication device to transmit a matching connection request signal in the primary connection mode; and
in response to establishing a connection with the second device, a predetermined control operation is performed.
A2, the method as in A1, wherein the first device switches operation between a slave connection mode and a master connection mode.
A3, the method as in A1, wherein the second device is simultaneously operating in a slave connection mode and a master connection mode.
A4, the method of A1, wherein the first device is a Bluetooth dinner box controller.
The method of a5, as in a1, wherein the first device is a bluetooth garage control unit.
A6, the method of A1, wherein the second device is a mobile phone, a tablet computer or a notebook computer.
A7, the method of A1, wherein the wireless communication device is a Bluetooth communication device.
A8, the method of A4, wherein the trigger signal is an acceleration signal.
A9, the method according to A5, wherein the triggering signal is a sound signal and/or a light signal.
A10, the method as in A8, wherein the executing predetermined control operation is unlocking a Bluetooth dinner box lock.
A11, the method as in A9, wherein the performing the predetermined control operation is unlocking a Bluetooth garage lock.
The embodiment of the invention also discloses B1 and a communication control method, wherein the method comprises the following steps:
the first equipment controls the wireless communication device to work in a slave connection mode and continuously detects a trigger signal through the sensor;
the first equipment controls the communication connection mode of the wireless communication device to be switched into a main connection mode in response to the detection of the trigger signal;
the first device controls the wireless communication apparatus to transmit a matching connection request signal in the main connection mode; and
the second device continuously detects the matching connection request signal;
the second equipment responds to the detection of the matching connection request signal and establishes connection with the first equipment; and
the first device performs a predetermined control operation in response to establishing a connection with the second device.
B2, the method as B1, wherein the first device switches operation between a slave connection mode and a master connection mode.
B3, the method according to B1, wherein the second device is simultaneously operated in a slave connection mode and a master connection mode.
B4, the method according to B1, wherein the first device is a Bluetooth dinner box control device.
B5 the method of B1, wherein the first device is a bluetooth garage control apparatus.
B6, the method according to B1, wherein the second device is a mobile phone, a tablet computer or a notebook computer.
B7, the method as in B1, wherein the wireless communication device is a Bluetooth communication device.
B8, the method according to B4, wherein the trigger signal is an acceleration signal.
B9, the method according to B5, wherein the trigger signal is a sound signal and/or a light signal.
B10, the method according to B8, wherein the executing the predetermined control operation is unlocking the Bluetooth meal box lock.
B11, the method according to B9, wherein the executing the predetermined control operation is unlocking a Bluetooth garage lock.
The embodiment of the invention also discloses C1 and a communication control device, which is applied to the first equipment, wherein the communication control device comprises:
the signal detection unit is used for controlling the wireless communication device to work in a slave connection mode and continuously detecting a trigger signal through the sensor;
the mode switching unit is used for controlling the communication connection mode of the wireless communication device to be switched into a main connection mode in response to the detection of the trigger signal;
a signal transmission unit for controlling the wireless communication apparatus to transmit a matching connection request signal in the main connection mode; and
and an execution control unit for executing a predetermined control operation in response to establishment of a connection with the second device.
C2 the communication control apparatus of C1, wherein the first device switches operation between a slave connection mode and a master connection mode.
C3, the communication control apparatus of C1, wherein the second device operates in a slave connection mode and a master connection mode at the same time.
C4, the control device of C1, wherein the first device is a bluetooth control device for a meal box.
C5, the control device of C1, wherein the first device is a bluetooth garage control device.
C6, the control apparatus of C1, wherein the second device is a mobile phone, a tablet computer or a notebook computer.
C7, the communication control device of C1, wherein the wireless communication device is a bluetooth communication device.
C8, the communication control device according to C4, wherein the trigger signal is an acceleration signal.
C9, the communication control device of C5, wherein the trigger signal is a sound signal and/or a light signal.
C10, the communication control device of C8, wherein the executing of the predetermined control operation is unlocking a bluetooth dining box lock.
C11, the communication control apparatus of C9, wherein the executing of the predetermined control operation is unlocking a bluetooth garage lock.
The embodiment of the invention also discloses D1 and a communication control system, wherein the system comprises:
the wireless communication device comprises a first device, a second device and a third device, wherein the first device is configured to control the wireless communication device to work in a slave connection mode, continuously detect a trigger signal through a sensor, control the communication connection mode of the wireless communication device to be switched into a master connection mode in response to the detection of the trigger signal, and control the wireless communication device to transmit a matching connection request signal in the master connection mode; and
a second device configured to continuously detect a matching connection request signal, and to establish a connection with the first device in response to detecting the matching connection request signal;
wherein the first device performs a predetermined control operation in response to establishing a connection with a second device.
D2, the system as D1, wherein the first device switches between the slave connection mode and the master connection mode.
D3, the system as recited in D1, wherein the second device operates in a slave connection mode and a master connection mode simultaneously.
D4, the system as recited in D1, wherein the first device is a Bluetooth control device.
D5, the system of D1, wherein the first device is a bluetooth garage control.
D6, the system according to D1, wherein the second device is a mobile phone, a tablet computer or a notebook computer.
D7, the system as in D1, wherein the wireless communicator is a bluetooth communicator.
D8, the system as recited in D4, wherein the trigger signal is an acceleration signal.
D9, the system as recited in D5, wherein the triggering signal is a sound signal and/or a light signal.
D10, the system as recited in D8, wherein the executing of the predetermined control operation is unlocking a Bluetooth lunch box lock.
D11, the system as in D9, wherein the performing the predetermined control operation is unlocking a bluetooth garage lock.
The embodiment of the invention also discloses E1, a computer readable storage medium, and computer program instructions stored thereon, wherein the computer program instructions realize the method according to any one of A1-A11 and B1-B11 when being executed by a processor.
Also disclosed is F1, an electronic device comprising a wireless communication apparatus, a sensor, a memory for storing one or more computer program instructions, and a processor, wherein the one or more computer program instructions are executed by the processor to implement the method of any one of a1-a11, B1-B11.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A communication control method applied to a first device, the method comprising:
controlling the wireless communication device to work in a slave connection mode, and continuously detecting a trigger signal through a sensor;
in response to detecting a trigger signal, controlling a communication connection mode of the wireless communication device to switch to a main connection mode;
controlling the wireless communication device to transmit a matching connection request signal in the primary connection mode; and
in response to establishing a connection with the second device, a predetermined control operation is performed.
2. The method of claim 1, wherein the first device switches operation between a slave connection mode and a master connection mode.
3. The method of claim 1, wherein the second device operates in a slave connection mode and a master connection mode simultaneously.
4. The method of claim 1, wherein the first device is a bluetooth dinner box control device.
5. The method of claim 1, wherein the first device is a bluetooth garage control.
6. A method of communication control, the method comprising:
the first equipment controls the wireless communication device to work in a slave connection mode and continuously detects a trigger signal through the sensor;
the first equipment controls the communication connection mode of the wireless communication device to be switched into a main connection mode in response to the detection of the trigger signal;
the first device controls the wireless communication apparatus to transmit a matching connection request signal in the main connection mode; and
the second device continuously detects the matching connection request signal;
the second equipment responds to the detection of the matching connection request signal and establishes connection with the first equipment; and
the first device performs a predetermined control operation in response to establishing a connection with the second device.
7. A communication control apparatus applied to a first device, the communication control apparatus comprising:
the signal detection unit is used for controlling the wireless communication device to work in a slave connection mode and continuously detecting a trigger signal through the sensor;
the mode switching unit is used for controlling the communication connection mode of the wireless communication device to be switched into a main connection mode in response to the detection of the trigger signal;
a signal transmission unit for controlling the wireless communication apparatus to transmit a matching connection request signal in the main connection mode; and
and an execution control unit for executing a predetermined control operation in response to establishment of a connection with the second device.
8. A communication control system, the system comprising:
the wireless communication device comprises a first device, a second device and a third device, wherein the first device is configured to control the wireless communication device to work in a slave connection mode, continuously detect a trigger signal through a sensor, control the communication connection mode of the wireless communication device to be switched into a master connection mode in response to the detection of the trigger signal, and control the wireless communication device to transmit a matching connection request signal in the master connection mode; and
a second device configured to continuously detect a matching connection request signal, and to establish a connection with the first device in response to detecting the matching connection request signal;
wherein the first device performs a predetermined control operation in response to establishing a connection with a second device.
9. A computer-readable storage medium on which computer program instructions are stored, which, when executed by a processor, implement the method of any one of claims 1-5.
10. An electronic device comprising a wireless communication apparatus, a sensor, a memory, and a processor, wherein the memory is to store one or more computer program instructions, wherein the one or more computer program instructions are to be executed by the processor to implement the method of any one of claims 1-5.
CN201911051042.7A 2019-10-31 2019-10-31 Communication control method, communication control device, storage medium and electronic equipment Pending CN110769406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911051042.7A CN110769406A (en) 2019-10-31 2019-10-31 Communication control method, communication control device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911051042.7A CN110769406A (en) 2019-10-31 2019-10-31 Communication control method, communication control device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN110769406A true CN110769406A (en) 2020-02-07

Family

ID=69334908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911051042.7A Pending CN110769406A (en) 2019-10-31 2019-10-31 Communication control method, communication control device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110769406A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499815A (en) * 2022-09-15 2022-12-20 中山亿联智能科技有限公司 Intelligent quick connection method of low-power-consumption Bluetooth equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390300A (en) * 2006-02-23 2009-03-18 摩托罗拉公司 Method and device for automatic bluetooth pairing
CN102684753A (en) * 2011-03-07 2012-09-19 中兴通讯股份有限公司 Wireless terminal, short-range SNS (social networking services) system and implementation method based on Bluetooth technology
CN203849824U (en) * 2014-05-16 2014-09-24 金陵科技学院 Bluetooth anti-theft device
CN104811895A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Low-power Bluetooth connecting method and device
CN106375808A (en) * 2016-08-29 2017-02-01 深圳创维数字技术有限公司 Bluetooth remote control optimization method and system, and set-top box
CN106537464A (en) * 2014-06-23 2017-03-22 励智识别技术有限公司 Electronic access control device and access control method
CN106792436A (en) * 2016-11-21 2017-05-31 深圳市金立通信设备有限公司 A kind of method of switch mode, first terminal and second terminal
JP6298514B1 (en) * 2016-11-01 2018-03-20 ジーエルソリューションズ株式会社 Bluetooth communication system
CN108549804A (en) * 2018-04-10 2018-09-18 Oppo广东移动通信有限公司 Mode switching method and device, computer readable storage medium, terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390300A (en) * 2006-02-23 2009-03-18 摩托罗拉公司 Method and device for automatic bluetooth pairing
CN102684753A (en) * 2011-03-07 2012-09-19 中兴通讯股份有限公司 Wireless terminal, short-range SNS (social networking services) system and implementation method based on Bluetooth technology
CN203849824U (en) * 2014-05-16 2014-09-24 金陵科技学院 Bluetooth anti-theft device
CN106537464A (en) * 2014-06-23 2017-03-22 励智识别技术有限公司 Electronic access control device and access control method
CN106537465A (en) * 2014-06-23 2017-03-22 励智识别技术有限公司 Electronic access control device and access control method
CN104811895A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Low-power Bluetooth connecting method and device
CN106375808A (en) * 2016-08-29 2017-02-01 深圳创维数字技术有限公司 Bluetooth remote control optimization method and system, and set-top box
JP6298514B1 (en) * 2016-11-01 2018-03-20 ジーエルソリューションズ株式会社 Bluetooth communication system
CN106792436A (en) * 2016-11-21 2017-05-31 深圳市金立通信设备有限公司 A kind of method of switch mode, first terminal and second terminal
CN108549804A (en) * 2018-04-10 2018-09-18 Oppo广东移动通信有限公司 Mode switching method and device, computer readable storage medium, terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499815A (en) * 2022-09-15 2022-12-20 中山亿联智能科技有限公司 Intelligent quick connection method of low-power-consumption Bluetooth equipment

Similar Documents

Publication Publication Date Title
US11470058B2 (en) Network connection method, mobile terminal, electronic device, and graphical user interface
RU2646354C2 (en) Method, device and system for installation of transmission connection
CN110113739B (en) Information processing method and electronic equipment
EP3876664A1 (en) Sidelink release method, terminal and network side device
RU2637470C2 (en) Method and device for detecting intelligent device
US20120272062A1 (en) Apparatus and method for controlling devices using portable terminal in device automation system
CN104780429A (en) Anti-interfering Bluetooth pairing method, main device with anti-interfering Bluetooth pairing function, anti-interfering Bluetooth pairing system, and Bluetooth pairing method thereof
CN111447602B (en) Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
US9258672B2 (en) Short-range wireless communication device
CN111149136B (en) Electronic device and method for controlling electronic device
JP2022539902A (en) Random access process backoff method, device and system
EP3389332B1 (en) Commissioning of a plurality of devices
KR102545375B1 (en) Electronic device for performing authorization using accessory and method for the same
WO2020057361A1 (en) Information reporting method, information receiving method, terminal, and network device
CN105302673A (en) Information backup method and device and terminal
US20230073017A1 (en) Screen Locking Method and Apparatus
CN103345828A (en) Method and system for controlling computer through intelligent terminal
CN111741539A (en) Device connection method, device, system and readable storage medium
CN110769406A (en) Communication control method, communication control device, storage medium and electronic equipment
US20160021193A1 (en) Method of automatically closing an application on transport disconnect
CN105787342A (en) Method and device for executing target function
CN106878976B (en) Mobile terminal and data sharing method of dual systems
CN105577635A (en) File transmission method and mobile terminals
CN110533800B (en) Intelligent door lock control method and device, electronic equipment and storage medium
CN110891262A (en) Bluetooth pairing method, system and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207