CN112492569A - Intelligent device control method and terminal - Google Patents

Intelligent device control method and terminal Download PDF

Info

Publication number
CN112492569A
CN112492569A CN202011237362.4A CN202011237362A CN112492569A CN 112492569 A CN112492569 A CN 112492569A CN 202011237362 A CN202011237362 A CN 202011237362A CN 112492569 A CN112492569 A CN 112492569A
Authority
CN
China
Prior art keywords
terminal
bluetooth
private key
intelligent equipment
intelligent
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
CN202011237362.4A
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011237362.4A priority Critical patent/CN112492569A/en
Publication of CN112492569A publication Critical patent/CN112492569A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to an intelligent device control method and a terminal, relating to the technical field of communication, wherein the method comprises the following steps: after receiving a Bluetooth broadcast signal transmitted by the intelligent device through Bluetooth, judging whether the intensity of the Bluetooth broadcast signal is within a preset intensity range; if the intensity of the Bluetooth broadcast signal is within the preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal; and sending a control instruction to the intelligent device through Bluetooth. According to the embodiment of the invention, the complex distribution process is not needed, and the connection can be carried out only by judging the signal intensity, so that the distribution process is simplified.

Description

Intelligent device control method and terminal
Technical Field
The invention relates to the technical field of Internet of things, in particular to an intelligent device control method and a terminal.
Background
With the continuous development of communication technologies, communication technologies such as the internet of things have gradually gained more applications. Especially in the smart home field. In the large quantity of internet-of-things equipment, the following mode is generally adopted for remote control, namely infrared remote control, however, the infrared remote control is easily interfered by the environment, and once an object blocks the infrared remote control, the control is disabled.
In addition, the WIFI automatic distribution network is adopted, for the WIFI automatic distribution network process, the distribution network is limited by a WIFI security policy, and a user is required to input a WIFI password and other information required by the distribution network, so that the operation process of the user is complicated.
Disclosure of Invention
The invention provides an intelligent device control method and a terminal, and solves the problem that in the prior art, the process of connecting the terminal and the intelligent device is complicated or easily interfered by the environment in the intelligent device control process.
In a first aspect, an intelligent device control method provided in an embodiment of the present invention is applied to a terminal, and the method includes:
after receiving a Bluetooth broadcast signal transmitted by intelligent equipment through Bluetooth, judging whether the intensity of the Bluetooth broadcast signal is within a preset intensity range;
if the intensity of the Bluetooth broadcast signal is within a preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal;
and sending a control instruction to the intelligent equipment through Bluetooth.
According to the method, after the terminal receives the Bluetooth broadcast signal transmitted by the intelligent device, the terminal can establish Bluetooth connection with the intelligent device through the mac address of the intelligent device carried in the Bluetooth broadcast signal by judging that the intensity of the Bluetooth broadcast signal is within the preset intensity range, so that the intelligent device is controlled, a complex network distribution process is not needed, the connection can be performed only by judging the signal intensity, the network distribution process is simplified, meanwhile, because the Bluetooth is adopted for communication, the Bluetooth signal intensity is only needed, and the method is independent of whether an obstacle exists between the terminal and the intelligent device, so that the problem that the control signal is greatly influenced by the environment is avoided.
In one possible implementation, after establishing a bluetooth connection with the smart device, the method further includes:
if the intelligent device and the terminal establish Bluetooth connection for the first time, generating private key request information according to a preset format, and sending the private key request information to the intelligent device through Bluetooth; the private key request information comprises the mac address, so that the intelligent equipment returns a private key after the received mac address is the same as the stored mac address;
receiving a private key returned by the intelligent equipment through Bluetooth;
before sending a control instruction to the smart device through bluetooth, the method further includes:
and encrypting the control instruction by adopting the private key of the intelligent equipment.
According to the method, the private key of the intelligent terminal can be obtained after the Bluetooth connection is established between the terminal and the intelligent device for the first time, and therefore the private key is used for encryption when the control command is transmitted, and the safety when information is transmitted is improved.
In one possible implementation, the method for generating the control instruction includes:
displaying a control page corresponding to the equipment type of the intelligent equipment; the equipment type of the intelligent equipment is reported to the terminal by the intelligent equipment;
responding to the operation of a user on a control page corresponding to the equipment type of the intelligent equipment, and generating a control instruction corresponding to the operation.
According to the method, the corresponding control instruction can be generated through the operation of the control page corresponding to the equipment type of the intelligent equipment reported to the terminal by the intelligent equipment by the user, so that the control interface of the equipment type can be obtained, and the method is more personalized.
In a second aspect, an intelligent device control method provided in an embodiment of the present invention is applied to an intelligent device, and the method includes:
transmitting a Bluetooth broadcast signal so that the terminal initiates a request for establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal after judging that the intensity of the Bluetooth broadcast signal is within a preset intensity range;
establishing Bluetooth connection with the terminal according to a request initiated by the terminal;
and receiving a control instruction sent by the terminal through Bluetooth, and executing an operation corresponding to the control instruction.
According to the method, the intelligent device transmits the Bluetooth broadcast signal of the intelligent device, so that the terminal can initiate a request for establishing Bluetooth connection with the intelligent device according to the mac address of the intelligent device carried in the Bluetooth broadcast signal when the intensity of the Bluetooth broadcast signal is within the preset intensity range, the intelligent device is connected with the terminal through Bluetooth, and the intelligent device can be controlled by the terminal.
In one possible implementation manner, after the bluetooth connection is established with the terminal, the method further includes:
receiving private key request information sent by the terminal through Bluetooth; the private key request information is generated by the terminal according to a preset format; the private key request information comprises the mac address received by the terminal;
if the preset format in the terminal is the same as the preset format in the intelligent equipment, extracting the mac address from the private key request information according to the structural characteristics of the preset format;
and if the extracted mac address is the same as the stored mac address, returning the private key of the terminal to the terminal through Bluetooth.
According to the method, the private key request information sent by the terminal can be verified, firstly, the preset format in the intelligent equipment is verified, then, the mac address carried in the private key request information is verified, and through the verification in the two aspects, the safety of information interaction is improved.
In a third aspect, a terminal provided in an embodiment of the present invention includes: a processor and a memory;
the memory is used for storing program codes used when the terminal runs;
the processor is configured to execute the program code to implement the following processes:
after receiving a Bluetooth broadcast signal transmitted by intelligent equipment through Bluetooth, judging whether the intensity of the Bluetooth broadcast signal is within a preset intensity range;
if the intensity of the Bluetooth broadcast signal is within a preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal;
and sending a control instruction to the intelligent equipment through Bluetooth.
In one possible implementation, the processor is further configured to:
if the intelligent device and the terminal establish Bluetooth connection for the first time, generating private key request information according to a preset format, and sending the private key request information to the intelligent device through Bluetooth; the private key request information comprises the mac address, so that the intelligent equipment returns a private key after the received mac address is the same as the stored mac address;
receiving a private key returned by the intelligent equipment through Bluetooth;
and encrypting the control instruction by adopting the private key of the intelligent equipment.
In one possible implementation, the processor is specifically configured to:
displaying a control page corresponding to the equipment type of the intelligent equipment; the equipment type of the intelligent equipment is reported to the terminal by the intelligent equipment;
responding to the operation of a user on a control page corresponding to the equipment type of the intelligent equipment, and generating a control instruction corresponding to the operation.
In a fourth aspect, an embodiment of the present invention provides an intelligent device, including: a processor and a memory;
the memory is used for storing program codes used when the intelligent device runs;
the processor is configured to execute the program code to implement the following processes:
transmitting a Bluetooth broadcast signal so that the terminal initiates a request for establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal after judging that the intensity of the Bluetooth broadcast signal is within a preset intensity range;
establishing Bluetooth connection with the terminal according to a request initiated by the terminal;
and receiving a control instruction sent by the terminal through Bluetooth, and executing an operation corresponding to the control instruction.
In one possible implementation, the processor is further configured to:
receiving private key request information sent by the terminal through Bluetooth; the private key request information is generated by the terminal according to a preset format; the private key request information comprises the mac address received by the terminal;
if the preset format in the terminal is the same as the preset format in the intelligent equipment, extracting the mac address from the private key request information according to the structural characteristics of the preset format;
and if the extracted mac address is the same as the stored mac address, returning the private key of the terminal to the terminal through Bluetooth.
In a fifth aspect, the present application further provides a computer storage medium having a computer program stored thereon, where the computer program is executed by a processing unit to implement the steps of the intelligent device control method according to the first or second aspect.
In addition, for technical effects brought by any one implementation manner of the steps of the intelligent device control method according to the first aspect when executed by the processing unit in the third aspect and the fifth aspect, reference may be made to technical effects brought by different implementation manners in the first aspect, and details are not described here again.
For technical effects brought by any one implementation manner of the steps of the intelligent device control method according to the second aspect when executed by the processing unit in the fourth aspect and the fifth aspect, reference may be made to technical effects brought by different implementation manners in the second aspect, and details are not described here.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention and are not to be construed as limiting the invention.
Fig. 1 is a schematic diagram of a structure of an intelligent device control system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
FIG. 3 is a diagram illustrating user interaction with a terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of interaction between a mobile phone and an air conditioner during a bluetooth connection process according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a control method for an intelligent device according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of another intelligent device control method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
Some of the words that appear in the text are explained below:
1. the term "terminal" in the embodiments of the present invention refers to any intelligent terminal capable of operating according to a program and automatically processing a large amount of data at a high speed, and includes a mobile phone, a mobile robot, a computer, a tablet, an intelligent terminal, a multimedia device, a streaming media device, and the like.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems.
Referring to fig. 1, an embodiment of the present invention provides an intelligent device control system, which includes an intelligent device and a terminal, where the intelligent device 100 and the terminal 200 both have a bluetooth function;
specifically, the terminal 200 is configured to determine whether an intensity of a bluetooth broadcast signal transmitted by an intelligent device is within a preset intensity range after the bluetooth broadcast signal is received through bluetooth; if the intensity of the Bluetooth broadcast signal is within the preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal; and sending a control instruction to the intelligent device through Bluetooth.
A smart device 100 for transmitting a bluetooth broadcast signal; establishing Bluetooth connection with a terminal according to a request initiated by the terminal; and receiving the control instruction sent by the terminal through the Bluetooth, and executing the operation corresponding to the control instruction.
Through the above-mentioned interactive mode, smart machine 100 sends the bluetooth broadcast signal, terminal 200 is after receiving the bluetooth broadcast signal through the bluetooth, judge the size of the intensity of received signal, then when the intensity of received signal is in predetermineeing the intensity within range, establish the bluetooth with smart machine 100 according to the mac address of the smart machine that carries in the signal and be connected, terminal 200 can send control command to smart machine 100 through the bluetooth like this, thereby control smart machine and carry out the operation that control command corresponds, need not to carry out complicated distribution network process like this, only need the terminal to be close to smart machine, thereby can realize terminal control smart machine, user operation has been simplified.
In order to improve the security of communication between the intelligent device and the terminal, the terminal provided in the embodiment of the present invention is further configured to:
if the intelligent device and the terminal establish Bluetooth connection for the first time, generating private key request information according to a preset format, and sending the private key request information to the intelligent device through Bluetooth; wherein, the private key request information comprises the mac address; receiving a private key returned by the intelligent equipment through Bluetooth; and the control instruction is encrypted by adopting a private key of the intelligent equipment.
The smart device 100 is further configured to: receiving private key request information sent by a terminal through Bluetooth; if the preset format in the terminal is the same as the preset format in the intelligent equipment, extracting the mac address from the private key request information according to the structural characteristics of the preset format; if the extracted mac address is the same as the stored mac address, returning the private key of the user to the terminal through the Bluetooth, and decrypting the control instruction by adopting the private key of the user so as to execute the operation corresponding to the decrypted control instruction.
Specifically, when the smart device 100 and the terminal 200 are configured with bluetooth, a preset format may be configured in the smart device 100 and the terminal 200, so that communication may be performed between devices having the same preset format, for example, the smart device a is a brand a product, the smart device B is a brand B product, the terminal c is a brand a product, and since the smart device a and the terminal c are both a brand a products, both preset formats are the same, so that the terminal c and the smart device a can be controlled by bluetooth, and the terminal c and the smart device B are products of different brands, generally speaking, the preset formats are also different, so that the terminal c cannot control the smart device B by bluetooth.
The preset format can be self-defined and can be json style, the preset format contains information such as mac and the like of equipment to be connected, the sent private key request information is a data packet, the content of the data packet is self-defined, and a PACK packet encrypted by a public key can be adopted.
The public key is pre-stored in the terminal 200 and the smart device 100, and certainly, the public keys of the same brand are the same.
In order to improve the user experience, different types of control pages can be stored in the terminal for each type of equipment, so that the corresponding control pages can be called after the equipment type of the intelligent equipment is reached, and the user operates in the control pages, thereby achieving the purpose of controlling the intelligent equipment.
Based on this, the terminal 200 provided in the embodiment of the present invention is further configured to: displaying a control page corresponding to the equipment type of the intelligent equipment; the equipment type of the intelligent equipment is reported to the terminal by the intelligent equipment;
and responding to the operation of the user on the control page corresponding to the equipment type of the intelligent equipment, and generating a control instruction corresponding to the operation.
In view of the above, an application scenario is provided, as shown in fig. 2, when a user enters a room with a mobile phone 201, the room includes two intelligent devices, an air conditioner 101 and a purifier 102, both of which automatically start a bluetooth radio frequency after the air conditioner 101 and the purifier 102 are powered on, both the air conditioner 101 and the purifier 102 transmit bluetooth broadcast signals, as shown in fig. 3, after the user controls the mobile phone to turn on the bluetooth of the mobile phone 201, software of an intelligent remote control is started, the mobile phone 201 receives the bluetooth broadcast signals transmitted by the air conditioner 101 and the purifier 102, and then determines that the strength of the bluetooth broadcast signals of the air conditioner 101 and the purifier 102 are both within a preset strength range, then simultaneously establishes a bluetooth connection with the air conditioner 101 and the purifier 102, and after establishing the bluetooth connection, displays a control page corresponding to the air conditioner 101, a control page corresponding to the purifier 102, and the user can select to specifically control the air conditioner 101 or the purifier 102, if the air conditioner 101 is controlled, a control page corresponding to the air conditioner is clicked, then a button on the control page is clicked, for example, the air conditioner is started, the mobile phone 201 sends a control instruction to the air conditioner 101 through the Bluetooth, the air conditioner 101 receives the control instruction through the Bluetooth, and then starting operation corresponding to the control instruction is executed.
Referring to fig. 4, taking the mobile phone 201 and the air conditioner 101 as an example, the air conditioner 101 transmits a bluetooth broadcast signal, after receiving the bluetooth broadcast signal, the mobile phone 201 establishes a bluetooth connection with the smart device according to the mac address when determining that the intensity of the bluetooth broadcast signal is within the preset intensity range, the mobile phone 201 transmits a key request through bluetooth, after the air conditioner 101 passes the verification described above, the air conditioner 101 transmits its key to the mobile phone 201, wherein the key can be encrypted by using a public key when being transmitted, after receiving the key transmitted by the air conditioner 101, the terminal 201 transmits binding information, after receiving the binding information, the air conditioner 101 stops transmitting the bluetooth broadcast signal, and transmits a binding success message that the air conditioner stops transmitting the bluetooth broadcast signal to the mobile phone 201.
The reporting of the device type of the intelligent device to the terminal by the intelligent device is performed after the terminal receives the Bluetooth broadcast signal transmitted by the intelligent device.
The process of the smart device 100 sending out the bluetooth broadcast signal is defined in the gap (generic Access profile) layer. GAPs are in use to control device connections and broadcasts. The GAP makes the device visible to other devices, and in embodiments of the invention, the signal broadcast by the smart device is visible to the terminal 200 and determines whether or how the device can interact with the peripheral device. For example, Beacon devices simply broadcast out and do not support connections. This information may be the type code of the device, such as air conditioner, air purifier, etc. and the device MAC, signal strength, etc.
Peripheral devices in the GAP broadcast data outwards in two ways: advertising Data Payload and Scan Response Data Payload, each of which may contain up to 31 bytes. Here, broadcasting data is necessary because the peripheral device must constantly broadcast outward to let the terminal know its existence. The scan reply is optional and the terminal may request the scan reply from the peripheral, where it contains some additional information about the device, such as the name of the device.
For example, when the terminal 200 receives a bluetooth broadcast signal transmitted by the smart device 100, that is, the terminal 200 scans the smart device 100, the terminal 200 sends a scan to the smart device 100 to scan information about the smart device 100, such as the device type and name of the smart device, and status information about whether to perform bluetooth connection with the terminal 200 for the first time.
After receiving the information replied by the intelligent device 100 for scanning, the terminal 200 establishes a bluetooth connection with the intelligent device according to the mac address of the intelligent device.
The scanning information replied by the intelligent device may be a preset agreed identifier corresponding to the device type, an identifier corresponding to the device name, and an identifier corresponding to the status information.
Based on the two devices mentioned in the above system, the method performed in each of the two devices will be described below with reference to the accompanying drawings.
Referring to fig. 5, an embodiment of the present invention provides an intelligent device control method, which is applied to a terminal 100, and the method includes:
s500: after receiving a Bluetooth broadcast signal transmitted by the intelligent device through Bluetooth, judging whether the intensity of the Bluetooth broadcast signal is within a preset intensity range;
s501: if the intensity of the Bluetooth broadcast signal is within the preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal;
s502: and sending a control instruction to the intelligent device through Bluetooth.
Optionally, after establishing a bluetooth connection with the smart device, the method further includes:
if the intelligent device and the terminal establish Bluetooth connection for the first time, generating private key request information according to a preset format, and sending the private key request information to the intelligent device through Bluetooth; the private key request information comprises the mac address, so that the intelligent equipment returns a private key after the received mac address is the same as the stored mac address;
receiving a private key returned by the intelligent equipment through Bluetooth;
before sending a control instruction to the smart device through bluetooth, the method further includes:
and encrypting the control instruction by adopting the private key of the intelligent equipment.
Optionally, the manner of generating the control instruction includes:
displaying a control page corresponding to the equipment type of the intelligent equipment; the equipment type of the intelligent equipment is reported to the terminal by the intelligent equipment;
responding to the operation of a user on a control page corresponding to the equipment type of the intelligent equipment, and generating a control instruction corresponding to the operation.
Referring to fig. 6, an embodiment of the present invention provides a method for controlling an intelligent device, which is applied to an intelligent device 100, where the method includes:
s600: transmitting a Bluetooth broadcast signal so that a terminal initiates a request for establishing Bluetooth connection with an intelligent device according to a mac address of the intelligent device carried in the Bluetooth broadcast signal after judging that the intensity of the Bluetooth broadcast signal is within a preset intensity range;
s601: establishing Bluetooth connection with a terminal according to a request initiated by the terminal;
s602: and sending a control instruction sent by the Bluetooth receiving terminal, and executing the operation corresponding to the control instruction.
Optionally, after establishing the bluetooth connection with the terminal, the method further includes:
receiving private key request information sent by the terminal through Bluetooth; the private key request information is generated by the terminal according to a preset format; the private key request information comprises the mac address received by the terminal;
if the preset format in the terminal is the same as the preset format in the intelligent equipment, extracting the mac address from the private key request information according to the structural characteristics of the preset format;
and if the extracted mac address is the same as the stored mac address, returning the private key of the terminal to the terminal through Bluetooth.
Referring to fig. 7, an embodiment of the present invention provides a terminal, including: a processor 700 and a memory 701;
the memory 701 is used for storing program codes used when the terminal runs;
the processor 700 is configured to execute the program code to implement the following processes:
after receiving a Bluetooth broadcast signal transmitted by intelligent equipment through Bluetooth, judging whether the intensity of the Bluetooth broadcast signal is within a preset intensity range;
if the intensity of the Bluetooth broadcast signal is within a preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal;
and sending a control instruction to the intelligent equipment through Bluetooth.
Optionally, the processor 700 is further configured to:
if the intelligent device and the terminal establish Bluetooth connection for the first time, generating private key request information according to a preset format, and sending the private key request information to the intelligent device through Bluetooth; the private key request information comprises the mac address, so that the intelligent equipment returns a private key after the received mac address is the same as the stored mac address;
receiving a private key returned by the intelligent equipment through Bluetooth;
and encrypting the control instruction by adopting the private key of the intelligent equipment.
Optionally, the processor 700 is specifically configured to:
displaying a control page corresponding to the equipment type of the intelligent equipment; the equipment type of the intelligent equipment is reported to the terminal by the intelligent equipment;
responding to the operation of a user on a control page corresponding to the equipment type of the intelligent equipment, and generating a control instruction corresponding to the operation.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as a memory comprising instructions, executable by the processor 700 of the terminal to perform the above-described mapping method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In this embodiment of the present invention, when the client is a terminal device, a structure of the client is shown in fig. 8, and an embodiment of the present invention provides a terminal 200, including: a Radio Frequency (RF) circuit 810, a power supply 820, a processor 830, a memory 840, an input unit 850, a display unit 860, a camera 870, a communication interface 880, and a Wireless Fidelity (Wi-Fi) module 890. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 8 is not intended to be limiting, and that the terminal provided by the embodiments of the present application may include more or less components than those shown, or some components may be combined, or a different arrangement of components may be provided.
The following describes the various components of the terminal 200 in detail with reference to fig. 8:
the RF circuitry 810 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 810 sends downlink data of the base station to the processor 830 for processing; and in addition, sending the uplink data to be sent to the base station. Generally, the RF circuit 810 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, the RF circuit 810 may also communicate with networks and other terminals via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The Wi-Fi technology belongs to a short-distance wireless transmission technology, and the terminal 200 can be connected to an Access Point (AP) through a Wi-Fi module 890, thereby implementing Access to a data network. The Wi-Fi module 890 may be used for receiving and transmitting data during communication.
The terminal 200 may be physically connected to other terminals through the communication interface 880. Optionally, the communication interface 880 is connected to the communication interface of the other terminal through a cable, so as to implement data transmission between the terminal 200 and the other terminal.
In the embodiment of the present application, the terminal 200 can implement a communication service to send information to other contacts, so the terminal 200 needs to have a data transmission function, that is, the terminal 200 needs to include a communication module inside. Although fig. 8 shows communication modules such as the RF circuit 810, the Wi-Fi module 890 and the communication interface 880, it is understood that at least one of the above-described components or other communication modules (e.g., a bluetooth module) for implementing communication exists in the terminal 200 for data transmission.
The memory 840 may be used to store software programs and modules. The processor 830 executes various functional applications and data processing of the terminal 200 by executing the software programs and modules stored in the memory 840, and after the processor 830 executes the program codes in the memory 840, part or all of the processes in fig. 2 according to the embodiment of the present invention can be implemented.
Alternatively, the memory 840 may mainly include a program storage area and a data storage area. The storage program area can store an operating system, various application programs (such as communication application), a face recognition module and the like; the storage data area may store data (such as various multimedia files like pictures, video files, etc., and face information templates) created according to the use of the terminal, etc.
Further, the memory 840 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 volatile solid state storage device.
The input unit 850 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the terminal 200.
Alternatively, the input unit 850 may include a touch panel 851 and other input terminals 852.
The touch panel 851, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 851 (for example, operations of the user on or near the touch panel 851 using any suitable object or accessory such as a finger or a stylus), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 851 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 830, and can receive and execute commands sent by the processor 830. In addition, the touch panel 851 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
Optionally, the other input terminals 852 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 860 may be used to display information input by a user or information provided to a user and various menus of the terminal 200. The display unit 860 is a display system of the terminal 200, and is used for presenting an interface and implementing human-computer interaction.
The display unit 860 may include a display panel 861. Alternatively, the Display panel 861 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 851 may cover the display panel 861, and when the touch panel 851 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 830 to determine the type of touch event, and then the processor 830 provides a corresponding visual output on the display panel 861 according to the type of touch event.
Although in fig. 8, the touch panel 851 and the display panel 861 are two separate components to implement the input and output functions of the terminal 200, in some embodiments, the touch panel 851 and the display panel 861 may be integrated to implement the input and output functions of the terminal 200.
The processor 830 is a control center of the terminal 200, connects various components using various interfaces and lines, and performs various functions of the terminal 200 and processes data by operating or executing software programs and/or modules stored in the memory 840 and calling data stored in the memory 840, thereby implementing various services based on the terminal.
Optionally, the processor 830 may include one or more processing units. Optionally, the processor 830 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 830.
The camera 870 is configured to implement a shooting function of the terminal 200, and shoot pictures or videos. The camera 870 may also be used to implement a scanning function of the terminal 200 to scan a scanned object (two-dimensional code/barcode).
The terminal 200 also includes a power supply 820 (e.g., a battery) for powering the various components. Optionally, the power supply 820 may be logically connected to the processor 830 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
It is noted that, in the embodiment of the present invention, the processor 830 may perform the functions of the processor 810 in fig. 8, and the memory 840 stores the contents of the processor 810 or the contents of the processor 830.
An embodiment of the present invention provides an intelligent device, including: a processor and a memory;
the memory is used for storing program codes used when the intelligent device runs;
the processor is configured to execute the program code to implement the following processes:
transmitting a Bluetooth broadcast signal so that the terminal initiates a request for establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal after judging that the intensity of the Bluetooth broadcast signal is within a preset intensity range;
establishing Bluetooth connection with the terminal according to a request initiated by the terminal;
and receiving a control instruction sent by the terminal through Bluetooth, and executing an operation corresponding to the control instruction.
Optionally, the processor is further configured to:
receiving private key request information sent by the terminal through Bluetooth; the private key request information is generated by the terminal according to a preset format; the private key request information comprises the mac address received by the terminal;
if the preset format in the terminal is the same as the preset format in the intelligent equipment, extracting the mac address from the private key request information according to the structural characteristics of the preset format;
and if the extracted mac address is the same as the stored mac address, returning the private key of the terminal to the terminal through Bluetooth.
In an exemplary embodiment, there is also provided a storage medium including instructions, such as a memory including instructions, executable by a processor of a terminal to perform the above-described smart device control method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiment of the present invention further provides a computer program product, which, when running on a terminal, enables the terminal to execute a method for controlling an intelligent device according to any one of the above embodiments of the present invention.
The embodiment of the present invention further provides another computer program product, which, when running on an intelligent device, enables the intelligent device to execute a method for controlling the intelligent device according to any one of the foregoing embodiments of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. An intelligent device control method is applied to a terminal, and comprises the following steps:
after receiving a Bluetooth broadcast signal transmitted by intelligent equipment through Bluetooth, judging whether the intensity of the Bluetooth broadcast signal is within a preset intensity range;
if the intensity of the Bluetooth broadcast signal is within a preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal;
and sending a control instruction to the intelligent equipment through Bluetooth.
2. The smart device control method of claim 1, wherein after establishing a bluetooth connection with the smart device, the method further comprises:
if the intelligent device and the terminal establish Bluetooth connection for the first time, generating private key request information according to a preset format, and sending the private key request information to the intelligent device through Bluetooth; the private key request information comprises the mac address, so that the intelligent equipment returns a private key after the received mac address is the same as the stored mac address;
receiving a private key returned by the intelligent equipment through Bluetooth;
before sending a control instruction to the smart device through bluetooth, the method further includes:
and encrypting the control instruction by adopting the private key of the intelligent equipment.
3. The intelligent device control method according to claim 1 or 2, wherein the manner of generating the control command includes:
displaying a control page corresponding to the equipment type of the intelligent equipment; the equipment type of the intelligent equipment is reported to the terminal by the intelligent equipment;
responding to the operation of a user on a control page corresponding to the equipment type of the intelligent equipment, and generating a control instruction corresponding to the operation.
4. A control method of an intelligent device is applied to the intelligent device, and the method comprises the following steps:
transmitting a Bluetooth broadcast signal so that the terminal initiates a request for establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal after judging that the intensity of the Bluetooth broadcast signal is within a preset intensity range;
establishing Bluetooth connection with the terminal according to a request initiated by the terminal;
and receiving a control instruction sent by the terminal through Bluetooth, and executing an operation corresponding to the control instruction.
5. The intelligent device control method according to claim 4, wherein after establishing the Bluetooth connection with the terminal, the method further comprises:
receiving private key request information sent by the terminal through Bluetooth; the private key request information is generated by the terminal according to a preset format; the private key request information comprises the mac address received by the terminal;
if the preset format in the terminal is the same as the preset format in the intelligent equipment, extracting the mac address from the private key request information according to the structural characteristics of the preset format;
and if the extracted mac address is the same as the stored mac address, returning the private key of the terminal to the terminal through Bluetooth.
6. A terminal, comprising: a processor and a memory;
the memory is used for storing program codes used when the terminal runs;
the processor is configured to execute the program code to implement the following processes:
after receiving a Bluetooth broadcast signal transmitted by intelligent equipment through Bluetooth, judging whether the intensity of the Bluetooth broadcast signal is within a preset intensity range;
if the intensity of the Bluetooth broadcast signal is within a preset intensity range, establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal;
and sending a control instruction to the intelligent equipment through Bluetooth.
7. The terminal of claim 6, wherein the processor is further configured to:
if the intelligent device and the terminal establish Bluetooth connection for the first time, generating private key request information according to a preset format, and sending the private key request information to the intelligent device through Bluetooth; the private key request information comprises the mac address, so that the intelligent equipment returns a private key after the received mac address is the same as the stored mac address;
receiving a private key returned by the intelligent equipment through Bluetooth;
and encrypting the control instruction by adopting the private key of the intelligent equipment.
8. The terminal of claim 6 or 7, wherein the processor is specifically configured to:
displaying a control page corresponding to the equipment type of the intelligent equipment; the equipment type of the intelligent equipment is reported to the terminal by the intelligent equipment;
responding to the operation of a user on a control page corresponding to the equipment type of the intelligent equipment, and generating a control instruction corresponding to the operation.
9. A smart device, comprising: a processor and a memory;
the memory is used for storing program codes used when the intelligent device runs;
the processor is configured to execute the program code to implement the following processes:
transmitting a Bluetooth broadcast signal so that the terminal initiates a request for establishing Bluetooth connection with the intelligent equipment according to the mac address of the intelligent equipment carried in the Bluetooth broadcast signal after judging that the intensity of the Bluetooth broadcast signal is within a preset intensity range;
establishing Bluetooth connection with the terminal according to a request initiated by the terminal;
and receiving a control instruction sent by the terminal through Bluetooth, and executing an operation corresponding to the control instruction.
10. The smart device of claim 9, wherein the processor is further configured to:
receiving private key request information sent by the terminal through Bluetooth; the private key request information is generated by the terminal according to a preset format; the private key request information comprises the mac address received by the terminal;
if the preset format in the terminal is the same as the preset format in the intelligent equipment, extracting the mac address from the private key request information according to the structural characteristics of the preset format;
and if the extracted mac address is the same as the stored mac address, returning the private key of the terminal to the terminal through Bluetooth.
CN202011237362.4A 2020-11-09 2020-11-09 Intelligent device control method and terminal Pending CN112492569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011237362.4A CN112492569A (en) 2020-11-09 2020-11-09 Intelligent device control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011237362.4A CN112492569A (en) 2020-11-09 2020-11-09 Intelligent device control method and terminal

Publications (1)

Publication Number Publication Date
CN112492569A true CN112492569A (en) 2021-03-12

Family

ID=74929165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011237362.4A Pending CN112492569A (en) 2020-11-09 2020-11-09 Intelligent device control method and terminal

Country Status (1)

Country Link
CN (1) CN112492569A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679687A (en) * 2022-03-07 2022-06-28 Oppo广东移动通信有限公司 Connection method of Bluetooth headset and terminal equipment, Bluetooth headset and terminal equipment
CN115250427A (en) * 2021-04-28 2022-10-28 海信集团控股股份有限公司 Bluetooth connection establishment method, mobile terminal and electronic household equipment
CN115278551A (en) * 2022-06-14 2022-11-01 广东逸动科技有限公司 Control method, remote control terminal, intelligent terminal, communication system and storage medium
CN115643122A (en) * 2022-09-09 2023-01-24 杭州九阳小家电有限公司 Equipment control method
CN115134764B (en) * 2022-05-27 2024-06-04 阿里云计算有限公司 Bluetooth-based communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385352A (en) * 2016-10-20 2017-02-08 北京小米移动软件有限公司 Device binding method and device
CN107071709A (en) * 2017-04-06 2017-08-18 飞天诚信科技股份有限公司 A kind of matching method and device with bluetooth equipment
CN107609739A (en) * 2017-08-11 2018-01-19 珠海金山网络游戏科技有限公司 A kind of method and system of mobile device distribution and management based on outer logo
CN109361640A (en) * 2017-12-28 2019-02-19 广州Tcl智能家居科技有限公司 A kind of method and system that washing machine electric-controlled plate quickly produces
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connection method and device, readable storage medium and mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385352A (en) * 2016-10-20 2017-02-08 北京小米移动软件有限公司 Device binding method and device
CN107071709A (en) * 2017-04-06 2017-08-18 飞天诚信科技股份有限公司 A kind of matching method and device with bluetooth equipment
CN107609739A (en) * 2017-08-11 2018-01-19 珠海金山网络游戏科技有限公司 A kind of method and system of mobile device distribution and management based on outer logo
CN109361640A (en) * 2017-12-28 2019-02-19 广州Tcl智能家居科技有限公司 A kind of method and system that washing machine electric-controlled plate quickly produces
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connection method and device, readable storage medium and mobile device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115250427A (en) * 2021-04-28 2022-10-28 海信集团控股股份有限公司 Bluetooth connection establishment method, mobile terminal and electronic household equipment
CN114679687A (en) * 2022-03-07 2022-06-28 Oppo广东移动通信有限公司 Connection method of Bluetooth headset and terminal equipment, Bluetooth headset and terminal equipment
CN115134764B (en) * 2022-05-27 2024-06-04 阿里云计算有限公司 Bluetooth-based communication method and device
CN115278551A (en) * 2022-06-14 2022-11-01 广东逸动科技有限公司 Control method, remote control terminal, intelligent terminal, communication system and storage medium
CN115278551B (en) * 2022-06-14 2023-10-13 广东逸动科技有限公司 Control method, remote control end, intelligent terminal, communication system and storage medium
CN115643122A (en) * 2022-09-09 2023-01-24 杭州九阳小家电有限公司 Equipment control method

Similar Documents

Publication Publication Date Title
CN112492569A (en) Intelligent device control method and terminal
US20180368058A1 (en) Method for controlling device access, and related device and system
KR101849925B1 (en) Method and apparatus for discovering device in wireless communication network
CN110933653B (en) Message transmission method, device, terminal and storage medium
KR102377724B1 (en) Device network configuration method and apparatus, and medium
US11895505B2 (en) Method and device for performing communication by using virtual subscriber identity module
CN112118539B (en) Method and device for device information interaction between terminals
CN105450268A (en) Bluetooth-based method and system for automatically connecting wearable device with mobile terminal
CN112312586B (en) WiFi direct connection establishing method, device, equipment and storage medium
EP3893595B1 (en) Establishment by a second terminal device of a wlan hotspot connection to a first terminal device for connecting to the internet
KR101613170B1 (en) Apparatus and method for providing access point function in portable communication system
US20200187008A1 (en) Wi-fi hotspot connection method and terminal
CN106713799B (en) Projection equipment control method, projection equipment and intelligent terminal
CN111866824A (en) Method and equipment for establishing communication connection and data transmission
CN110393021B (en) Connection method based on wireless communication and terminal
CN106028266B (en) Information transmission method, device and system
CN111867148A (en) Method and equipment for establishing equipment connection and data transmission
CN112118538A (en) Method and device for device information interaction between terminals
CN112691363A (en) Cross-terminal switching method and related device for cloud games
CN108012270B (en) Information processing method, equipment and computer readable storage medium
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN112543493A (en) Wifi connection method, terminal and computer storage medium
CN112583920B (en) Push method, push device, electronic equipment and storage medium
US20190037612A1 (en) Connecting method to an information capture device
CN110928463B (en) Method, device and system for controlling remote equipment, service server and storage medium

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: 20210312