[go: up one dir, main page]

WO2018209555A1 - Bluetooth device connection method and terminal device - Google Patents

Bluetooth device connection method and terminal device Download PDF

Info

Publication number
WO2018209555A1
WO2018209555A1 PCT/CN2017/084528 CN2017084528W WO2018209555A1 WO 2018209555 A1 WO2018209555 A1 WO 2018209555A1 CN 2017084528 W CN2017084528 W CN 2017084528W WO 2018209555 A1 WO2018209555 A1 WO 2018209555A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
bluetooth
preset threshold
bluetooth device
rssi value
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.)
Ceased
Application number
PCT/CN2017/084528
Other languages
French (fr)
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.)
Makeblock Co Ltd
Original Assignee
Makeblock 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 Makeblock Co Ltd filed Critical Makeblock Co Ltd
Priority to PCT/CN2017/084528 priority Critical patent/WO2018209555A1/en
Priority to CN201780000346.3A priority patent/CN107278380A/en
Publication of WO2018209555A1 publication Critical patent/WO2018209555A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength

Definitions

  • the present invention belongs to the field of communications technologies, and in particular, to a method and a terminal device for connecting a Bluetooth device.
  • Bluetooth devices such as robots, electronic module main control boards, household appliances, etc.
  • central devices such as mobile phones, tablet computers, etc.
  • the embodiments of the present invention provide a method for connecting a Bluetooth device and a terminal device, so as to solve the problem that the existing method for connecting the Bluetooth device is cumbersome and low in efficiency.
  • a first aspect of the embodiments of the present invention provides a method for connecting a Bluetooth device, which is applied to a terminal device, where the method includes:
  • the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;
  • the terminal device and the RSSI value are greater than Or a communication connection of the Bluetooth device equal to the second preset threshold.
  • a second aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes: [0010] a scanning module, configured to scan a Bluetooth device within a predetermined range of the terminal device;
  • an obtaining module configured to acquire an intensity indication RS SI value of a received signal of the Bluetooth device scanned by the terminal device
  • a prompting module configured to prompt the user to move the terminal device if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, where The second preset threshold is greater than the first preset threshold;
  • an establishing module configured to: if the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establish the terminal device A communication connection with a Bluetooth device having an R SSI value greater than or equal to the second predetermined threshold.
  • a third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processing Executing the computer program implements the following steps:
  • the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;
  • the terminal device and the RSSI value are greater than Or a communication connection of the Bluetooth device equal to the second preset threshold.
  • a fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program, the computer program being executed by a processor, to implement the following steps:
  • the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;
  • the present invention first scans a Bluetooth device within a predetermined range of the terminal device, and acquires the RSSI value of the scanned Bluetooth device, in the scanned
  • the RSSI value of the Bluetooth device is greater than the first preset threshold, and is less than the second preset threshold ⁇ , prompting the user to move the terminal device, and if the terminal device moves, detecting that the scanned RSSI value of the Bluetooth device is greater than or equal to the first
  • the second preset threshold establishes a communication connection between the terminal device and the Bluetooth device.
  • the terminal device may be moved according to the RSSI value of the Bluetooth device scanned by the terminal device, and after the RSSI value of the Bluetooth device is greater than or equal to the second preset threshold, the terminal device is connected to the Bluetooth device, thereby implementing
  • the terminal device quickly connects to the Bluetooth device, which is simple in operation and improves the efficiency of connecting the Bluetooth device.
  • FIG. 1 is a flowchart of an implementation of a method for connecting a Bluetooth device according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an implementation of a method for connecting a Bluetooth device according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a terminal device according to an embodiment of the present invention.
  • the term “if” may be interpreted as “when" or “once” or “in response to determining” or “in response to detecting” depending on the context. ". Similarly, the phrase “if determined” or “if detected [condition or event described]” may be interpreted in context to mean “once determined” or “in response to determining” or “once detected [condition or event described] ] “OR” in response to detecting [described condition or event].
  • the terminal device described in the embodiments of the present invention includes, but is not limited to, a mobile phone, a laptop computer or a tablet computer such as a touch sensitive surface (eg, a touch screen display and/or a touch pad).
  • a touch sensitive surface eg, a touch screen display and/or a touch pad
  • Other portable devices e.g., the device is not a portable communication device, but a desktop computer having a touch sensitive surface (e.g., a touch screen display and/or a touch pad).
  • terminal device including a display and a touch sensitive surface is described.
  • the terminal device can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
  • the terminal device supports various applications, such as one or more of the following: a drawing application, a presentation Apps, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications, video conferencing applications, email applications, instant messaging applications, workout support Apps, photo management apps, digital camera apps, digital camera apps, web browsing apps, digital music player apps and/or digital video player apps.
  • applications such as one or more of the following: a drawing application, a presentation Apps, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications, video conferencing applications, email applications, instant messaging applications, workout support Apps, photo management apps, digital camera apps, digital camera apps, web browsing apps, digital music player apps and/or digital video player apps.
  • the various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch sensitive surface.
  • One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal device can be adjusted and/or changed within the application and/or within the respective application.
  • the common physical architecture of the terminal device e. g., a touch-sensitive surface
  • FIG. 1 is a flowchart of an implementation of a method for connecting a Bluetooth device according to Embodiment 1 of the present invention.
  • the method for connecting a Bluetooth device may include the following steps:
  • Step S101 Scan a Bluetooth device within a predetermined range of the terminal device.
  • the terminal device receives an instruction issued by a user to activate a function of connecting the Bluetooth device of the terminal device (for example, by clicking an option of a function of connecting the Bluetooth device in the terminal device) And triggering the instruction), or triggering the function of connecting the Bluetooth device of the terminal device triggered by the preset inter-turn interval, starting the function of connecting the Bluetooth device of the terminal device, and entering an interface for connecting the Bluetooth device.
  • the terminal device may scan the Bluetooth device within the predetermined range in a real time or at a preset interval.
  • the Bluetooth device may be a Bluetooth peripheral device based on a Bluetooth technology (for example, Bluetooth 4.0 technology), such as a robot, an electronic module main control board, and a home appliance, which are not limited herein.
  • the predetermined range may mean that the user presets the range in which the terminal device scans the Bluetooth device.
  • the terminal device may be displayed in a text or graphic manner in the interface of the terminal device connected to the Bluetooth device.
  • Bluetooth device The option to connect Bluetooth devices in a traditional list can also be provided in the interface to which the Bluetooth device is connected.
  • the user usually knows the specific location of the Bluetooth device to which the terminal device is to be connected, and after starting the function of connecting the Bluetooth device, the terminal The device may prompt the user to move in the direction of the Bluetooth device to be connected (ie, the terminal device is close to the Bluetooth device to be connected) in a text or graphic manner in the interface connecting the Bluetooth device, so that the terminal device can connect with the desired device.
  • the Bluetooth device quickly establishes a communication connection. For example, in a classroom, a child's hand-held machine, in the process of establishing a communication connection between the mobile phone and the robot A having a certain distance from the mobile phone, can display "Please approach the robot A" in the form of text in the interface connecting the Bluetooth device. .
  • the manner in which the terminal device sends the prompting information to the user includes, but is not limited to, a text, a graphic, a voice, and the like, which are not limited herein.
  • Step S102 Obtain an intensity indication RSSI value of a received signal of the Bluetooth device scanned by the terminal device.
  • the terminal device after the function of connecting the Bluetooth device is started, the terminal device enters an interface for connecting to the Bluetooth device, and prompts the user in the form of user text or graphics on the interface of the connected Bluetooth device.
  • the terminal device moves in the direction of the designated Bluetooth device, and the terminal device can determine or obtain the received signal strength indication (RSI) of the Bluetooth device scanned by the terminal device during the moving process. value. For example, after receiving an instruction sent by a user to obtain an RSSI value of a Bluetooth device scanned by the terminal device, or acquiring an RSSI value of a Bluetooth device scanned by the terminal device, according to a preset inter-time interval, And acquiring an RSSI value of a received signal of the Bluetooth device scanned by the terminal device.
  • RSSI received signal strength indication
  • the number of Bluetooth devices scanned by the terminal device may be one or more.
  • the Bluetooth device When the terminal device scans a Bluetooth device, the Bluetooth device is largely a Bluetooth device to which the terminal device is to be connected, that is, a Bluetooth device is specified, and an RSSI value of the Bluetooth device is obtained. Because the user wants to establish a communication connection between the terminal device and the designated Bluetooth device, the terminal device needs to be able to scan to the designated Bluetooth device, that is, the distance between the terminal device and the designated Bluetooth device must be a communication connection. In the range.
  • the terminal device scans a plurality of Bluetooth devices (ie, at least two Bluetooth devices)
  • the plurality of Bluetooth devices include the designated Bluetooth devices, and respectively obtain the RSSI values of the plurality of Bluetooth devices.
  • Step S103 if the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second pre- The threshold is set to be greater than the first predetermined threshold.
  • the terminal device when the terminal device scans a Bluetooth device, it is determined that the Bluetooth device scanned by the terminal device is a designated Bluetooth device, and if the RSSI value of the designated Bluetooth device is greater than the first pre- Setting a threshold, and less than the second preset threshold, prompting the user to move the terminal device, because the user knows the location information of the Bluetooth device to be connected (ie, the designated Bluetooth device), in order to establish a communication connection with the designated Bluetooth device more quickly, The user can continue to move the terminal device in the direction of the designated Bluetooth device.
  • the terminal device scans a plurality of Bluetooth devices, if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, Then prompting the user to move the terminal device includes:
  • the terminal device when the terminal device scans a plurality of Bluetooth devices, respectively, acquiring RSSI values of the plurality of Bluetooth devices, and comparing RSSI values of the plurality of Bluetooth devices, from the The maximum RSSI value is selected from the RSSI values of the plurality of Bluetooth devices. If the maximum RSSI value is greater than the first preset threshold and less than the second preset threshold, the user is prompted to use the terminal device to the designated Bluetooth device. If the maximum RSSI value is less than or equal to the first preset threshold, the terminal device continues to acquire the RSSI value of the plurality of Bluetooth devices to which the terminal device is located, and does not send any prompt information to the user.
  • Step S104 If the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, the terminal device and the RSSI are established. A communication connection of a Bluetooth device having a value greater than or equal to the second predetermined threshold.
  • the terminal is established.
  • the communication connection between the device and the Bluetooth device whose RSS I value is greater than or equal to the second preset threshold includes:
  • the RSSI The Bluetooth device with the largest value is usually a Bluetooth device, and the communication connection of the Bluetooth device corresponding to the maximum RSSI value is established.
  • the terminal device detects that the maximum value of the RSSI values of the plurality of Bluetooth devices scanned by the terminal device is greater than or equal to the second preset threshold, The terminal device may send the identifier request information to the Bluetooth device corresponding to the maximum RSSI value, respectively, so that the Bluetooth device corresponding to the maximum RSSI value receives the identifier request information, and the terminal device After the identifier information of the Bluetooth device is received, the terminal device may display the identifier information of the Bluetooth device corresponding to the largest RSS I value on the interface of the connected Bluetooth device after receiving the identifier information of the Bluetooth device corresponding to the maximum RSSI value.
  • the identification information of the Bluetooth device refers to information capable of uniquely characterizing the Bluetooth device. For example, if there are multiple robots in a classroom, and multiple robots are numbered separately, and the numbers of different robots are different, the number can be used as the identification information of the robot.
  • the method further includes:
  • the user is prompted to send a successful connection.
  • the terminal device may be moved according to the RSSI value of the Bluetooth device scanned by the terminal device, and the terminal device is connected to the Bluetooth device after the RSSI value of the Bluetooth device is greater than or equal to a second preset threshold. Therefore, the terminal device can be quickly connected to the Bluetooth device, and the process is simple and the efficiency of connecting the Bluetooth device is improved.
  • FIG. 2 it is a flowchart of an implementation of a method for connecting a Bluetooth device according to Embodiment 2 of the present invention.
  • the method for connecting a Bluetooth device may include the following steps:
  • Step S201 The identifier information of the specified Bluetooth device is stored in the terminal device, where the designated Bluetooth device refers to a Bluetooth device that needs to establish a communication connection with the terminal device.
  • the identifier information of the Bluetooth device refers to information that can uniquely represent the Bluetooth device. For example, if there are multiple robots in one classroom, and multiple robots are numbered separately, and the numbers of different robots are different, the number can be used as the identification information of the robot.
  • Step S202 Scan a Bluetooth device within a predetermined range of the terminal device.
  • the terminal device receives an instruction by the user to activate a function of connecting the Bluetooth device of the terminal device (for example, by clicking an option of a function of connecting the Bluetooth device in the terminal device) And triggering the instruction), or triggering the function of connecting the Bluetooth device of the terminal device triggered by the preset inter-turn interval, starting the function of connecting the Bluetooth device of the terminal device, and entering an interface for connecting the Bluetooth device.
  • the terminal device may scan the Bluetooth device within the predetermined range in a real time or at a preset interval.
  • the Bluetooth device may be a Bluetooth peripheral device based on a Bluetooth technology (for example, Bluetooth 4.0 technology), such as a robot, an electronic module main control board, and a home appliance, which are not limited herein.
  • Step S203 If the Bluetooth device scanned by the terminal device has a Bluetooth device that matches the identification information of the specified Bluetooth device, the Bluetooth device is determined to be the designated Bluetooth device.
  • Step S204 Acquire an RSSI value of the specified Bluetooth device.
  • the terminal device in order to reduce the number of RSSI values acquired by the terminal, save power consumption of the terminal device, and extend the endurance capability of the terminal device, the terminal device may only obtain the specified The RSSI value of the Bluetooth device.
  • Step S205 if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and less than the second preset threshold, prompting the user to send the terminal device to the designated Bluetooth device. The direction of movement.
  • Step S206 if the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold during the moving of the terminal device, establishing the terminal device and the designated Bluetooth device Communication connection.
  • the terminal device In order to connect to the designated Bluetooth device more accurately, if the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold during the moving of the terminal device, the terminal device And sending the identifier request information to the Bluetooth device corresponding to the maximum RSSI value, so that the specified Bluetooth device feeds back the identifier information of the specified Bluetooth device to the terminal device after receiving the identifier request information, After receiving the identifier information, the terminal device may display the identifier information in an interface of the terminal device connected to the Bluetooth device, and after receiving the determining instruction of the identifier information by the user, A communication connection of the terminal device to the designated Bluetooth device. [0073] Optionally, after establishing the communication connection between the terminal device and the designated Bluetooth device, the method further includes: sending a message to the user if the terminal device successfully connects to the specified Bluetooth device A prompt to connect successfully.
  • the embodiment of the present invention adds the "identification information of the designated Bluetooth device" on the basis of the first embodiment, so as to obtain only the RSSI value of the specified Bluetooth device, and the RSSI value of the designated Bluetooth device is greater than the second preset threshold.
  • the communication connection between the terminal device and the designated Bluetooth device is established, thereby reducing the operation of the terminal device, improving the efficiency of connecting the designated Bluetooth device, saving the power consumption of the terminal device, and prolonging the endurance capability of the terminal device.
  • FIG. 3 it is a structural block diagram of a terminal device according to Embodiment 3 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • the terminal device includes:
  • the scanning module 31 is configured to scan a Bluetooth device within a predetermined range of the terminal device
  • the obtaining module 32 is configured to obtain an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device;
  • the prompting module 33 is configured to prompt the user to move the terminal device if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, where The second preset threshold is greater than the first preset threshold;
  • the establishing module 34 is configured to: if the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establish the terminal The device is in communication with a Bluetooth device whose RSSI value is greater than or equal to the second predetermined threshold.
  • the prompting module 33 is configured to prompt, if the maximum value of the RSSI values of the plurality of Bluetooth devices scanned by the terminal device is greater than the first preset threshold, and less than the second preset threshold. The user moves the terminal device;
  • the establishing module 34 is configured to detect the terminal device in the process of moving the terminal device And establishing, by the terminal device, a communication connection of the Bluetooth device corresponding to the maximum RSSI value, if the maximum value of the RSSI value of the scanned plurality of Bluetooth devices is greater than or equal to the second preset threshold.
  • the terminal device further includes:
  • a storage module 35 configured to store, in the terminal device, identification information of the specified Bluetooth device, where the designated Bluetooth device is required to be associated with the terminal device, before scanning the Bluetooth device within the predetermined range of the terminal device The device establishes a Bluetooth device for communication connection;
  • a determining module 36 configured to: after the scanning of the Bluetooth device within the predetermined range of the terminal device, if the presence information of the Bluetooth device scanned by the terminal device is related to the identification information of the designated Bluetooth device Matching the Bluetooth device, determining that the Bluetooth device is the designated Bluetooth device;
  • the obtaining module 32 is configured to acquire an RSSI value of the specified Bluetooth device.
  • the prompting module 33 is configured to: if the RSSI value of the specified Bluetooth device is greater than the first preset threshold, and less than the second preset threshold, prompting the user to move the terminal device to The direction of the specified Bluetooth device is moved;
  • the establishing module 34 is configured to: if the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establish the terminal device and The communication connection of the designated Bluetooth device;
  • the prompting module 34 includes:
  • the obtaining unit 341 is configured to acquire the location information of the designated Bluetooth device if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and is less than the second preset threshold.
  • the prompting unit 342 is configured to prompt the user to move the terminal device to the specified Bluetooth device according to the location information of the specified Bluetooth device.
  • the terminal device further includes:
  • the information issuance module 37 is configured to: if the terminal device is successfully connected to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold, send a prompt message to the user that the connection is successful.
  • FIG. 4 is a structural block diagram of a terminal device according to Embodiment 4 of the present invention.
  • the terminal device as shown may include: one or more processors 401 (only one shown); one or more input devices 402 (only one shown), one or more output devices 403 (only one is shown in the figure) and memory 404.
  • the above processor 401, input device 402, output device 403, and memory 404 are connected by a bus 405.
  • the memory 404 is for storing instructions, and the processor 401 is for executing instructions stored by the memory 404. among them:
  • the processor 401 is configured to scan a Bluetooth device within a predetermined range of the terminal device, and acquire, by the input device 402, an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device; If the RSSI value of the Bluetooth device that is scanned by the device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device by using the output device 403, where the second preset threshold is greater than Determining a first preset threshold; if, in the process of moving the terminal device, detecting that the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, establishing the terminal device A communication connection of a Bluetooth device whose RSSI value is greater than or equal to the second predetermined threshold.
  • the processor 401 is configured to: if a maximum value of RSSI values of the plurality of Bluetooth devices scanned by the terminal device is greater than the first a preset threshold, and less than the second preset threshold, prompting the user to move the terminal device by using the output device 403; if the terminal device is in the process of moving, detecting the terminal device scanning And establishing, by the terminal device, a communication connection of the Bluetooth device corresponding to the largest RSSI value.
  • the processor 401 is further configured to store, in the terminal device, identifier information of the specified Bluetooth device, where the designated Bluetooth device Means a Bluetooth device that needs to establish a communication connection with the terminal device; [0101] After scanning the Bluetooth device in the predetermined range of the terminal device, the processor 401 is further configured to: if the presence information of the Bluetooth device scanned by the terminal device matches the identification information of the specified Bluetooth device, The Bluetooth device is determined to be the designated Bluetooth device; the RSSI value of the designated Bluetooth device is obtained by the input device 402; if the RSSI value of the specified Bluetooth device is greater than the first preset threshold, And being smaller than the second preset threshold, the user is prompted by the output device 403 to move the terminal device to the specified Bluetooth device; if the terminal device moves, the device is detected. And establishing a communication connection between the terminal device and the designated Bluetooth device, where the RSSI value of the specified Bluetooth device is greater than or equal to the second
  • the processor 401 is specifically configured to: if the RSSI value of the specified Bluetooth device is greater than the first preset threshold, and is less than the second preset threshold, pass the input device 402. Obtaining location information of the specified Bluetooth device; according to the location information of the specified Bluetooth device, prompting the user to move the terminal device to the direction of the designated Bluetooth device by using the output device 403.
  • the memory 404 is configured to store a software program and a module.
  • the processor 401 executes various functional applications and data processing by running software programs and modules stored in the memory 404 to establish a communication connection between the terminal device and the designated Bluetooth device.
  • the processor 401 may be a central processing unit (CPU), and the processor may be another general-purpose processor or a digital signal processor (Digital Signal Processor). , DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the input device 402 may include a touch panel, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, a data receiving interface, and the like.
  • Output device 403 can include a display (LC D, etc.), a speaker, a data transmission interface, and the like.
  • the memory 404 can include read only memory and random access memory and provides instructions and data to the processor 401.
  • a portion of memory 404 may also include non-volatile random access memory.
  • the memory 404 can also store information of the device type.
  • the processor 401, the input device 402, and the output device 40 are described in the embodiment of the present invention.
  • 3 and the memory 404 may be implemented in the implementation manner described in the embodiment of the method for connecting the Bluetooth device provided by the embodiment of the present invention.
  • the implementation manner described in the terminal device in the third embodiment may also be implemented, and details are not described herein again.
  • FIG. 5 is a structural block diagram of a terminal device according to Embodiment 5 of the present invention.
  • the terminal device may be used to implement the implementation manner described in the embodiment of the method for connecting a Bluetooth device according to the embodiment of the present invention.
  • the implementation described in the terminal device described in Embodiment 3 can be performed.
  • the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer readable storage medium, and an input unit 130.
  • the terminal device structure shown in Fig. 5 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • the RF circuit 110 is configured to receive and transmit electromagnetic waves, and convert electromagnetic waves and electrical signals to communicate with a communication network or other devices.
  • the RF circuit 110 can include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and the like.
  • the RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network.
  • the wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), and wideband code.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Data GSM Environment
  • W-CDMA Wideband code division multiple access
  • CDMA Code division access
  • TDMA time division multiple access
  • wireless fidelity Wireless, Fidelity, WiFi
  • VoIP Voice over internet protocal
  • VoIP Voice over internet protocal
  • Wi-Max Wi-Max
  • other protocols for mail instant messaging and short messages, and any other suitable pass Protocols, even those that are not currently being issued.
  • the memory 120 can be used to store software programs and modules, such as the program instructions/modules corresponding to the terminal devices in the data migration method/the third embodiment in the above embodiments, and the processor 180 runs the software program stored in the memory 120. And a module, thereby performing various function applications and data processing, that is, implementing a function of acquiring resources corresponding to preset events.
  • Memory 120 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 120 can further include memory remotely located relative to processor 180, which can be connected to terminal device 1200 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.
  • the input unit 130 can be configured to receive input numeric or character information, and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, key presses, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 1 200, which can be composed of graphics, text, icons, videos, and any combination thereof. Composition.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch sensitive surface 131 can cover the display panel 1 41.
  • touch-sensitive surface 131 When the touch sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • the terminal device 1200 may also include at least one type of sensor 150, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may move to the ear ⁇ at the terminal device 1200 to close the display panel 141. And / or backlight.
  • the gravity acceleration sensor can detect the acceleration in all directions (usually three axes), and the static ⁇ can detect the magnitude and direction of gravity, which can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal device 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1200.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, by the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 1200.
  • the terminal device 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (for example, a WiFi module), which provides wireless broadband Internet access for the user.
  • the transmission module 170 for example, a WiFi module
  • FIG. 5 shows the transmission module 170, it will be understood that it does not belong to the essential configuration of the terminal device 1200, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the terminal device 1200, which connects various parts of the entire mobile phone using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and calling stored in the memory 120. Internal data, performing various functions and processing data of the terminal device 1200, thereby The phone is monitored overall.
  • the processor 180 may include one or more processing cores.
  • the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal device 1200 further includes a power source 190 (such as a battery) for supplying power to various components.
  • a power source 190 such as a battery
  • the power source can be logically connected to the processor 180 through the power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal device 1200 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal device is a touch screen display
  • the terminal device further includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and configured to be one or one
  • the above processor executes one or more programs that include instructions for performing the following operations:
  • the RSSI value of the Bluetooth device that is scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;
  • the SI value is greater than or equal to the second preset threshold, and the communication connection between the terminal device and the Bluetooth device whose RSSI value is greater than or equal to the second preset threshold is established.
  • the memory of the terminal device further includes Instructions for the following operations:
  • the memory of the terminal device further includes an instruction for performing the following operations:
  • Bluetooth device storing the identification information of the specified Bluetooth device in the terminal device before scanning the Bluetooth device within the predetermined range of the terminal device, where the designated Bluetooth device refers to establishing a communication connection with the terminal device.
  • the Bluetooth device scanned by the terminal device has a Bluetooth device whose identification information matches the identification information of the specified Bluetooth device, determining the Bluetooth The device is the designated Bluetooth device;
  • the memory of the terminal device further includes Instructions for the following operations:
  • the memory of the terminal device also includes instructions for performing the following operations:
  • the terminal device is successfully connected to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold, the prompt information for successful connection is sent to the user.
  • the descriptions of the various embodiments are different, and the parts that are not detailed or described in the specific embodiments may be referred to the related descriptions of other embodiments.
  • the disclosed apparatus and method may be implemented in other ways.
  • the system embodiment described above is merely illustrative.
  • the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the medium includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute the method according to various embodiments of the present invention. All or part of the steps.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a Read-Only Memory (R OM), and a random access memory (RAM).
  • a variety of media that can store program code such as a disk or a disc.
  • another embodiment of the present invention further provides a computer readable storage medium, which may be a computer readable storage medium included in the memory in the foregoing embodiment, or may be separate There is a computer readable storage medium that is not assembled into the terminal device.
  • the computer readable storage medium stores one or more programs, the one or more programs being used by one or more processors to perform a method of connecting a Bluetooth device, the method comprising:
  • the RSSI value of the Bluetooth device that is scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;
  • the SI value is greater than or equal to the second preset threshold, and the communication connection between the terminal device and the Bluetooth device whose RSSI value is greater than or equal to the second preset threshold is established.
  • the memory of the terminal device further includes Instructions for the following operations:
  • the memory of the terminal device further includes an instruction for performing the following operations:
  • the Bluetooth device scanned by the terminal device has a Bluetooth device whose identification information matches the identification information of the specified Bluetooth device, determining the Bluetooth The device is the designated Bluetooth device;
  • the memory of the terminal device further includes Instructions for the following operations:
  • the memory of the terminal device also includes instructions for performing the following operations:
  • the terminal device successfully connects to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold, the prompt information for successful connection is sent to the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A Bluetooth device connection method and a terminal device, the method comprising: scanning for Bluetooth devices in a predetermined range of a terminal device; acquiring a received signal strength indicator RSSI value of a Bluetooth device scanned by the terminal device; if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold and less than a second preset threshold, then prompting the user to move the terminal device, the second preset threshold being greater than the second preset threshold; and, during the process of moving the terminal device, if detecting that the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, then establishing a communication connection between the terminal device and the Bluetooth device having an RSSI value greater than or equal to the second preset threshold. The problems of low efficiency and complicated operations in existing Bluetooth device connection methods are thus solved.

Description

连接蓝牙设备的方法及终端设备 技术领域  Method and terminal device for connecting bluetooth device

[0001] 本发明属于通信技术领域, 尤其涉及连接蓝牙设备的方法及终端设备。  [0001] The present invention belongs to the field of communications technologies, and in particular, to a method and a terminal device for connecting a Bluetooth device.

背景技术  Background technique

[0002] 随着通信技术的快速发展, 为了便于蓝牙设备 (例如机器人、 电子模块主控板 、 家用电器等) 的控制, 越来越多的用户使用中心设备 (例如手机、 平板电脑 等终端设备) 来控制蓝牙设备。 在现有技术中, 通常需要用户多次点击中心设 备的屏幕才能连接到蓝牙设备。 例如, 先通过点击幵启手机的蓝牙功能, 然后 再点击搜索功能进行蓝牙设备的搜索, 之后再选择对搜索到的蓝牙设备中的某 一个蓝牙设备进行配对连接, 该过程操作繁琐, 效率低。  [0002] With the rapid development of communication technologies, in order to facilitate the control of Bluetooth devices (such as robots, electronic module main control boards, household appliances, etc.), more and more users use central devices (such as mobile phones, tablet computers, etc.) ) to control the Bluetooth device. In the prior art, it is usually required that the user clicks on the screen of the center device multiple times to connect to the Bluetooth device. For example, first click on the Bluetooth function of the mobile phone, then click the search function to search for the Bluetooth device, and then select to pair the Bluetooth device in the searched Bluetooth device. This process is cumbersome and inefficient.

技术问题  technical problem

[0003] 有鉴于此, 本发明实施例提供一种连接蓝牙设备的方法及终端设备, 以解决现 有连接蓝牙设备的方法操作繁琐, 效率低的问题。  In view of this, the embodiments of the present invention provide a method for connecting a Bluetooth device and a terminal device, so as to solve the problem that the existing method for connecting the Bluetooth device is cumbersome and low in efficiency.

问题的解决方案  Problem solution

技术解决方案  Technical solution

[0004] 本发明实施例的第一方面提供了一种连接蓝牙设备的方法, 应用于终端设备, 所述方法包括:  A first aspect of the embodiments of the present invention provides a method for connecting a Bluetooth device, which is applied to a terminal device, where the method includes:

[0005] 扫描终端设备预定范围内的蓝牙设备; [0005] scanning a Bluetooth device within a predetermined range of the terminal device;

[0006] 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值;  [0006] acquiring an intensity indication RSSI value of a received signal of the Bluetooth device scanned by the terminal device;

[0007] 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预 设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设阈值大于所述第 一预设阈值;  [0007] If the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;

[0008] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝牙设备的 RS SI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 RSSI值大于或者 等于所述第二预设阈值的蓝牙设备的通信连接。  [0008] If the RS SI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, the terminal device and the RSSI value are greater than Or a communication connection of the Bluetooth device equal to the second preset threshold.

[0009] 本发明实施例的第二方面提供了一种终端设备, 所述终端设备包括: [0010] 扫描模块, 用于扫描所述终端设备预定范围内的蓝牙设备; A second aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes: [0010] a scanning module, configured to scan a Bluetooth device within a predetermined range of the terminal device;

[0011] 获取模块, 用于获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RS SI值; [0011] an obtaining module, configured to acquire an intensity indication RS SI value of a received signal of the Bluetooth device scanned by the terminal device;

[0012] 提示模块, 用于若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值 , 且小于第二预设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设 阈值大于所述第一预设阈值;  [0012] a prompting module, configured to prompt the user to move the terminal device if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, where The second preset threshold is greater than the first preset threshold;

[0013] 建立模块, 用于若在所述终端设备移动的过程中, 检测到所述终端设备扫描到 的蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 R SSI值大于或者等于所述第二预设阈值的蓝牙设备的通信连接。  [0013] an establishing module, configured to: if the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establish the terminal device A communication connection with a Bluetooth device having an R SSI value greater than or equal to the second predetermined threshold.

[0014] 本发明实施例的第三方面提供了一种终端设备, 包括存储器、 处理器以及存储 在所述存储器中并可在所述处理器上运行的计算机程序, 其特征在于, 所述处 理器执行所述计算机程序吋实现以下步骤:  A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processing Executing the computer program implements the following steps:

[0015] 扫描终端设备预定范围内的蓝牙设备;  [0015] scanning a Bluetooth device within a predetermined range of the terminal device;

[0016] 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值;  [0016] acquiring an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device;

[0017] 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预 设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设阈值大于所述第 一预设阈值;  [0017] if the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;

[0018] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝牙设备的 RS SI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 RSSI值大于或者 等于所述第二预设阈值的蓝牙设备的通信连接。  [0018] If the RS SI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, the terminal device and the RSSI value are greater than Or a communication connection of the Bluetooth device equal to the second preset threshold.

[0019] 本发明实施例的第四方面提供了一种计算机可读存储介质, 所述计算机可读存 储介质存储有计算机程序, 所述计算机程序被处理器执行吋实现以下步骤: A fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program, the computer program being executed by a processor, to implement the following steps:

[0020] 扫描终端设备预定范围内的蓝牙设备; [0020] scanning a Bluetooth device within a predetermined range of the terminal device;

[0021] 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值;  [0021] acquiring an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device;

[0022] 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预 设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设阈值大于所述第 一预设阈值;  [0022] If the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;

[0023] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝牙设备的 RS SI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 RSSI值大于或者 等于所述第二预设阈值的蓝牙设备的通信连接。 [0023] detecting, in the process of moving the terminal device, the RS of the Bluetooth device scanned by the terminal device The SI value is greater than or equal to the second preset threshold, and the communication connection between the terminal device and the Bluetooth device whose RSSI value is greater than or equal to the second preset threshold is established.

发明的有益效果  Advantageous effects of the invention

有益效果  Beneficial effect

[0024] 本发明实施例与现有技术相比存在的有益效果是: 本发明实施先扫描终端设备 预定范围内的蓝牙设备, 并获取所扫描到的蓝牙设备的 RSSI值, 在所扫描到的 蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预设阈值吋, 提示用户移动 终端设备, 若在终端设备移动的过程中, 检测到所扫描的蓝牙设备的 RSSI值大 于或者等于第二预设阈值, 则建立终端设备与该蓝牙设备的通信连接。 通过本 发明实施例, 可以根据终端设备扫描到的蓝牙设备的 RSSI值移动终端设备, 并 在蓝牙设备的 RSSI值大于或者等于第二预设阈值吋, 控制终端设备连接该蓝牙 设备, 从而可实现终端设备快速地连接蓝牙设备, 该过程操作简单, 提高了连 接蓝牙设备的效率。  [0024] The beneficial effects of the embodiment of the present invention compared with the prior art are: the present invention first scans a Bluetooth device within a predetermined range of the terminal device, and acquires the RSSI value of the scanned Bluetooth device, in the scanned The RSSI value of the Bluetooth device is greater than the first preset threshold, and is less than the second preset threshold 吋, prompting the user to move the terminal device, and if the terminal device moves, detecting that the scanned RSSI value of the Bluetooth device is greater than or equal to the first The second preset threshold establishes a communication connection between the terminal device and the Bluetooth device. According to the embodiment of the present invention, the terminal device may be moved according to the RSSI value of the Bluetooth device scanned by the terminal device, and after the RSSI value of the Bluetooth device is greater than or equal to the second preset threshold, the terminal device is connected to the Bluetooth device, thereby implementing The terminal device quickly connects to the Bluetooth device, which is simple in operation and improves the efficiency of connecting the Bluetooth device.

对附图的简要说明  Brief description of the drawing

附图说明  DRAWINGS

[0025] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。  [0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the skilled artisan.

[0026] 图 1是本发明实施例提供的连接蓝牙设备的方法的实现流程图;  1 is a flowchart of an implementation of a method for connecting a Bluetooth device according to an embodiment of the present invention;

[0027] 图 2是本发明实施例提供的连接蓝牙设备的方法的实现流程图;  [0027] FIG. 2 is a flowchart of an implementation of a method for connecting a Bluetooth device according to an embodiment of the present invention;

[0028] 图 3是本发明实施例提供的终端设备的结构框图;  3 is a structural block diagram of a terminal device according to an embodiment of the present invention;

[0029] 图 4是本发明实施例提供的终端设备的结构框图;  4 is a structural block diagram of a terminal device according to an embodiment of the present invention;

[0030] 图 5是本发明实施例提供的终端设备的结构框图。  FIG. 5 is a structural block diagram of a terminal device according to an embodiment of the present invention.

本发明的实施方式 Embodiments of the invention

[0031] 以下描述中, 为了说明而不是为了限定, 提出了诸如特定系统结构、 技术之类 的具体细节, 以便透彻理解本发明实施例。 然而, 本领域的技术人员应当清楚 , 在没有这些具体细节的其它实施例中也可以实现本发明。 在其它情况中, 省 略对众所周知的系统、 装置、 电路以及方法的详细说明, 以免不必要的细节妨 碍本发明的描述。 [0031] In the following description, for purposes of illustration and not limitation, specific system structures, techniques, and the like are proposed. Specific details are provided to provide a thorough understanding of embodiments of the invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.

[0032] 应当理解, 当在本说明书和所附权利要求书中使用吋, 术语"包括"指示所描述 特征、 整体、 步骤、 操作、 元素和 /或组件的存在, 但并不排除一个或多个其它 特征、 整体、 步骤、 操作、 元素、 组件和 /或其集合的存在或添加。  [0032] It will be understood that the term "comprising", when used in the specification and the appended claims, the <RTI ID=0.0> </ RTI> </ RTI> indicates the presence of the described features, integers, steps, operations, elements and/or components, but does not exclude one or more The presence or addition of other features, integers, steps, operations, elements, components, and/or their collections.

[0033] 还应当理解, 在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的 目的而并不意在限制本发明。 如在本发明说明书和所附权利要求书中所使用的 那样, 除非上下文清楚地指明其它情况, 否则单数形式的"一"、 "一个 "及"该"意 在包括复数形式。  The terminology used herein is for the purpose of describing particular embodiments and is not intended to limit the invention. The singular forms "a", "the", and "the"

[0034] 还应当进一步理解, 在本发明说明书和所附权利要求书中使用的术语 "和 /或"是 指相关联列出的项中的一个或多个的任何组合以及所有可能组合, 并且包括这 些组合。  [0034] It should also be further understood that the term "and/or" used in the description of the invention and the appended claims means any combination and all possible combinations of one or more of the associated listed items, and These combinations are included.

[0035] 如在本说明书和所附权利要求书中所使用的那样, 术语"如果"可以依据上下文 被解释为 "当…吋 "或"一旦"或"响应于确定"或"响应于检测到"。 类似地, 短语"如 果确定 "或"如果检测到 [所描述条件或事件]"可以依据上下文被解释为意指"一旦 确定"或"响应于确定"或"一旦检测到 [所描述条件或事件]"或"响应于检测到 [所描 述条件或事件]"。  [0035] As used in this specification and the appended claims, the term "if" may be interpreted as "when..." or "once" or "in response to determining" or "in response to detecting" depending on the context. ". Similarly, the phrase "if determined" or "if detected [condition or event described]" may be interpreted in context to mean "once determined" or "in response to determining" or "once detected [condition or event described] ] "OR" in response to detecting [described condition or event].

[0036] 具体实现中, 本发明实施例中描述的终端设备包括但不限于诸如具有触摸敏感 表面 (例如, 触摸屏显示器和 /或触摸板)的移动电话、 膝上型计算机或平板计算机 之类的其它便携式设备。 还应当理解的是, 在某些实施例中, 所述设备并非便 携式通信设备, 而是具有触摸敏感表面 (例如, 触摸屏显示器和 /或触摸板)的台式 计算机。  [0036] In a specific implementation, the terminal device described in the embodiments of the present invention includes, but is not limited to, a mobile phone, a laptop computer or a tablet computer such as a touch sensitive surface (eg, a touch screen display and/or a touch pad). Other portable devices. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch sensitive surface (e.g., a touch screen display and/or a touch pad).

[0037] 在接下来的讨论中, 描述了包括显示器和触摸敏感表面的终端设备。 然而, 应 当理解的是, 终端设备可以包括诸如物理键盘、 鼠标和 /或控制杆的一个或多个 其它物理用户接口设备。  [0037] In the ensuing discussion, a terminal device including a display and a touch sensitive surface is described. However, it should be understood that the terminal device can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.

[0038] 终端设备支持各种应用程序, 例如以下中的一个或多个: 绘图应用程序、 演示 应用程序、 文字处理应用程序、 网站创建应用程序、 盘刻录应用程序、 电子表 格应用程序、 游戏应用程序、 电话应用程序、 视频会议应用程序、 电子邮件应 用程序、 即吋消息收发应用程序、 锻炼支持应用程序、 照片管理应用程序、 数 码相机应用程序、 数字摄影机应用程序、 web浏览应用程序、 数字音乐播放器应 用程序和 /或数字视频播放器应用程序。 [0038] The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation Apps, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications, video conferencing applications, email applications, instant messaging applications, workout support Apps, photo management apps, digital camera apps, digital camera apps, web browsing apps, digital music player apps and/or digital video player apps.

[0039] 可以在终端设备上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个 公共物理用户接口设备。 可以在应用程序之间和 /或相应应用程序内调整和 /或改 变触摸敏感表面的一个或多个功能以及终端设备上显示的相应信息。 这样, 终 端设备的公共物理架构 (例如, 触摸敏感表面)可以支持具有对用户而言直观且透 明的用户界面的各种应用程序。  [0039] The various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal device can be adjusted and/or changed within the application and/or within the respective application. In this way, the common physical architecture of the terminal device (e. g., a touch-sensitive surface) can support a variety of applications with a user interface that is intuitive and transparent to the user.

[0040] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。  [0040] In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.

[0041] 参见图 1, 是本发明实施例一提供的连接蓝牙设备的方法的实现流程图, 如图 所示该连接蓝牙设备的方法可以包括以下步骤:  FIG. 1 is a flowchart of an implementation of a method for connecting a Bluetooth device according to Embodiment 1 of the present invention. The method for connecting a Bluetooth device may include the following steps:

[0042] 步骤 S101, 扫描终端设备预定范围内的蓝牙设备。  [0042] Step S101: Scan a Bluetooth device within a predetermined range of the terminal device.

[0043] 在本发明实施例中, 所述终端设备在接收到用户发出的启动所述终端设备的连 接蓝牙设备的功能的指令 (例如通过点击所述终端设备中的连接蓝牙设备的功 能的选项而触发的指令) , 或者根据预设吋间间隔触发的启动所述终端设备的 连接蓝牙设备的功能的指令后, 启动所述终端设备的连接蓝牙设备的功能, 并 进入连接蓝牙设备的界面。 在幵启所述终端设备的连接蓝牙设备的功能之后, 所述终端设备可以实吋或者以预设吋间间隔扫描预定范围内的蓝牙设备。 其中 , 所述蓝牙设备可以是指基于蓝牙技术 (例如蓝牙 4.0技术) 的蓝牙外围设备, 例如机器人, 电子模块主控板和家用电器等, 在此不作限定。 所述预定范围可 以是指用户预先设定所述终端设备扫描蓝牙设备的范围。  [0043] In the embodiment of the present invention, the terminal device receives an instruction issued by a user to activate a function of connecting the Bluetooth device of the terminal device (for example, by clicking an option of a function of connecting the Bluetooth device in the terminal device) And triggering the instruction), or triggering the function of connecting the Bluetooth device of the terminal device triggered by the preset inter-turn interval, starting the function of connecting the Bluetooth device of the terminal device, and entering an interface for connecting the Bluetooth device. After the function of connecting the Bluetooth device of the terminal device is started, the terminal device may scan the Bluetooth device within the predetermined range in a real time or at a preset interval. The Bluetooth device may be a Bluetooth peripheral device based on a Bluetooth technology (for example, Bluetooth 4.0 technology), such as a robot, an electronic module main control board, and a home appliance, which are not limited herein. The predetermined range may mean that the user presets the range in which the terminal device scans the Bluetooth device.

[0044] 为了便于用户知晓所述终端设备正在扫描预定范围内的蓝牙设备, 可以在所述 终端设备的连接蓝牙设备的界面中以文字或者图形的方式显示所述终端设备正 在扫描预定范围内的蓝牙设备。 在连接蓝牙设备的界面中也可以提供以传统列 表的方式来连接蓝牙设备的选项。 在实际的使用场景中, 用户通常知晓终端设 备所要连接的蓝牙设备的具体位置, 在启动连接蓝牙设备的功能后, 所述终端 设备可以在连接蓝牙设备的界面中以文字或者图形的方式提示用户向所要连接 的蓝牙设备的方向移动 (即将所述终端设备靠近所要连接的蓝牙设备) , 以使 所述终端设备能够与所要连接的蓝牙设备快速建立通信连接。 例如在一个教室 中, 小孩子手握手机, 在建立手机与距离手机有一定距离的机器人 A的通信连接 的过程中, 可以在连接蓝牙设备的界面中以文字的形式显示"请靠近机器人 A"。 其中, 所述终端设备向用户发出提示信息的方式包括但不限于文字、 图形、 语 音等, 在此不作限定。 [0044] In order to facilitate the user to know that the terminal device is scanning a Bluetooth device within a predetermined range, the terminal device may be displayed in a text or graphic manner in the interface of the terminal device connected to the Bluetooth device. Bluetooth device. The option to connect Bluetooth devices in a traditional list can also be provided in the interface to which the Bluetooth device is connected. In an actual usage scenario, the user usually knows the specific location of the Bluetooth device to which the terminal device is to be connected, and after starting the function of connecting the Bluetooth device, the terminal The device may prompt the user to move in the direction of the Bluetooth device to be connected (ie, the terminal device is close to the Bluetooth device to be connected) in a text or graphic manner in the interface connecting the Bluetooth device, so that the terminal device can connect with the desired device. The Bluetooth device quickly establishes a communication connection. For example, in a classroom, a child's hand-held machine, in the process of establishing a communication connection between the mobile phone and the robot A having a certain distance from the mobile phone, can display "Please approach the robot A" in the form of text in the interface connecting the Bluetooth device. . The manner in which the terminal device sends the prompting information to the user includes, but is not limited to, a text, a graphic, a voice, and the like, which are not limited herein.

[0045] 步骤 S102, 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值  [0045] Step S102: Obtain an intensity indication RSSI value of a received signal of the Bluetooth device scanned by the terminal device.

[0046] 在本发明实施例中, 步骤 S101在启动连接蓝牙设备的功能后, 所述终端设备进 入连接蓝牙设备的界面, 并在所述连接蓝牙设备的界面用户文字或者图形的形 式提示用户将所述终端设备向指定蓝牙设备的方向移动, 所述终端设备在移动 过程中可以定吋或者实吋获取所述终端设备扫描到的蓝牙设备的接收信号的强 度指示 (Received Signal Strength Indication, RSSI) 值。 例如, 可以在接收到用 户发送的获取所述终端设备扫描的蓝牙设备的 RSSI值的指令, 或者根据预先设 定的吋间间隔触发的获取所述终端设备扫描到的蓝牙设备的 RSSI值后, 幵始获 取所述终端设备扫描到的蓝牙设备的接收信号的 RSSI值。 [0046] In the embodiment of the present invention, after the function of connecting the Bluetooth device is started, the terminal device enters an interface for connecting to the Bluetooth device, and prompts the user in the form of user text or graphics on the interface of the connected Bluetooth device. The terminal device moves in the direction of the designated Bluetooth device, and the terminal device can determine or obtain the received signal strength indication (RSI) of the Bluetooth device scanned by the terminal device during the moving process. value. For example, after receiving an instruction sent by a user to obtain an RSSI value of a Bluetooth device scanned by the terminal device, or acquiring an RSSI value of a Bluetooth device scanned by the terminal device, according to a preset inter-time interval, And acquiring an RSSI value of a received signal of the Bluetooth device scanned by the terminal device.

[0047] 需要说明的是, 所述终端设备扫描到的蓝牙设备的数量可能为一个或者多个。  [0047] It should be noted that the number of Bluetooth devices scanned by the terminal device may be one or more.

当所述终端设备扫描到一个蓝牙设备吋, 该蓝牙设备很大程度上就是所述终端 设备所要连接的蓝牙设备, 即指定蓝牙设备, 获取该蓝牙设备的 RSSI值。 因为 用户想将所述终端设备与指定蓝牙设备建立通信连接吋, 就需要所述终端设备 能够扫描到指定蓝牙设备, 即所述终端设备与所述指定蓝牙设备的距离必定是 在可建立通信连接的范围内。 当所述终端设备扫描到多个蓝牙设备 (即至少两 个蓝牙设备) 吋, 所述多个蓝牙设备中包括指定蓝牙设备, 分别获取所述多个 蓝牙设备的 RSSI值。  When the terminal device scans a Bluetooth device, the Bluetooth device is largely a Bluetooth device to which the terminal device is to be connected, that is, a Bluetooth device is specified, and an RSSI value of the Bluetooth device is obtained. Because the user wants to establish a communication connection between the terminal device and the designated Bluetooth device, the terminal device needs to be able to scan to the designated Bluetooth device, that is, the distance between the terminal device and the designated Bluetooth device must be a communication connection. In the range. When the terminal device scans a plurality of Bluetooth devices (ie, at least two Bluetooth devices), the plurality of Bluetooth devices include the designated Bluetooth devices, and respectively obtain the RSSI values of the plurality of Bluetooth devices.

[0048] 步骤 S103, 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且 小于第二预设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设阈值 大于所述第一预设阈值。 [0049] 在本发明实施例中, 当所述终端设备扫描到一个蓝牙设备吋, 则确定所述终端 设备扫描到的蓝牙设备为指定蓝牙设备, 若该指定蓝牙设备的 RSSI值大于第一 预设阈值, 且小于第二预设阈值, 则提示用户移动所述终端设备, 由于用户知 晓所要连接的蓝牙设备 (即指定蓝牙设备) 的位置信息, 为了更快的与指定蓝 牙设备建立通信连接, 用户可以将所述终端设备继续向指定蓝牙设备的方向移 动。 [0048] Step S103, if the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second pre- The threshold is set to be greater than the first predetermined threshold. [0049] In the embodiment of the present invention, when the terminal device scans a Bluetooth device, it is determined that the Bluetooth device scanned by the terminal device is a designated Bluetooth device, and if the RSSI value of the designated Bluetooth device is greater than the first pre- Setting a threshold, and less than the second preset threshold, prompting the user to move the terminal device, because the user knows the location information of the Bluetooth device to be connected (ie, the designated Bluetooth device), in order to establish a communication connection with the designated Bluetooth device more quickly, The user can continue to move the terminal device in the direction of the designated Bluetooth device.

[0050] 可选的, 当所述终端设备扫描到多个蓝牙设备吋; 所述若所述终端设备扫描到 的蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预设阈值, 则提示用户移 动所述终端设备包括:  [0050] Optionally, when the terminal device scans a plurality of Bluetooth devices, if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, Then prompting the user to move the terminal device includes:

[0051] 若所述终端设备扫描到的多个蓝牙设备的 RSSI值的最大值大于所述第一预设阈 值, 且小于所述第二预设阈值, 则提示所述用户移动所述终端设备。  [0051] if the maximum value of the RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than the first preset threshold and less than the second preset threshold, prompting the user to move the terminal device .

[0052] 在本发明实施例中, 当所述终端设备扫描到多个蓝牙设备吋, 分别获取所述多 个蓝牙设备的 RSSI值, 并比较所述多个蓝牙设备的 RSSI值, 从所述多个蓝牙设 备的 RSSI值中, 选出最大的 RSSI值, 若所述最大的 RSSI值大于第一预设阈值, 且小于第二预设阈值, 则提示用户将所述终端设备向指定蓝牙设备的方向移动 , 若所述最大的 RSSI值小于或者等于第一预设阈值, 则所述终端设备继续获取 所述终端设备到的多个蓝牙设备的 RSSI值, 并不向用户发出任何提示信息。  [0052] In the embodiment of the present invention, when the terminal device scans a plurality of Bluetooth devices, respectively, acquiring RSSI values of the plurality of Bluetooth devices, and comparing RSSI values of the plurality of Bluetooth devices, from the The maximum RSSI value is selected from the RSSI values of the plurality of Bluetooth devices. If the maximum RSSI value is greater than the first preset threshold and less than the second preset threshold, the user is prompted to use the terminal device to the designated Bluetooth device. If the maximum RSSI value is less than or equal to the first preset threshold, the terminal device continues to acquire the RSSI value of the plurality of Bluetooth devices to which the terminal device is located, and does not send any prompt information to the user.

[0053] 步骤 S104, 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝 牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 RSSI 值大于或者等于所述第二预设阈值的蓝牙设备的通信连接。  [0053] Step S104: If the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, the terminal device and the RSSI are established. A communication connection of a Bluetooth device having a value greater than or equal to the second predetermined threshold.

[0054] 可选的, 所述若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的 蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 RSS I值大于或者等于所述第二预设阈值的蓝牙设备的通信连接包括:  [0054] Optionally, if the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, in the process of moving the terminal device, the terminal is established. The communication connection between the device and the Bluetooth device whose RSS I value is greater than or equal to the second preset threshold includes:

[0055] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的多个蓝牙设备 的 RSSI值的最大值大于或者等于所述第二预设阈值, 则建立所述终端设备与最 大的 RSSI值所对应的蓝牙设备的通信连接。  [0055] if the maximum value of the RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than or equal to the second preset threshold during the process of moving the terminal device, establishing the terminal device The communication connection of the Bluetooth device corresponding to the largest RSSI value.

[0056] 在本发明实施例中, 当所述终端设备扫描到多个蓝牙设备吋, 由于所述终端设 备始终是向指定蓝牙设备的方向移动, 则在所述终端设备移动的过程中, RSSI 值最大的蓝牙设备通常就是指定蓝牙设备, 则建立所述终端设备与最大的 RSSI 值所对应的蓝牙设备的通信连接。 [0056] In the embodiment of the present invention, when the terminal device scans a plurality of Bluetooth devices, since the terminal device always moves in the direction of the designated Bluetooth device, in the process of moving the terminal device, the RSSI The Bluetooth device with the largest value is usually a Bluetooth device, and the communication connection of the Bluetooth device corresponding to the maximum RSSI value is established.

[0057] 为了更加准确地连接到指定蓝牙设备, 所述终端设备在检测到所述终端设备扫 描到的多个蓝牙设备的 RSSI值的最大值大于或者等于所述第二预设阈值吋, 所 述终端设备可以分别向所述最大的 RSSI值所对应的蓝牙设备发送标识请求信息 , 以使得所述最大的 RSSI值所对应的蓝牙设备在接收到所述标识请求信息吋, 向所述终端设备反馈自身的标识信息, 所述终端设备在接收到最大的 RSSI值所 对应的蓝牙设备的标识信息后, 可以在所述连接蓝牙设备的界面显示最大的 RSS I值所对应的蓝牙设备的标识信息, 在接收到用户对该标识信息的确定指令后, 再建立所述终端设备与该蓝牙设备的通信连接。 其中, 所述蓝牙设备的标识信 息是指能够唯一表征所述蓝牙设备的信息。 例如在一个教室中有多个机器人, 为多个机器人分别进行编号, 且不同的机器人的编号不同, 该编号就可以作为 机器人的标识信息。 [0057] In order to connect to the specified Bluetooth device more accurately, the terminal device detects that the maximum value of the RSSI values of the plurality of Bluetooth devices scanned by the terminal device is greater than or equal to the second preset threshold, The terminal device may send the identifier request information to the Bluetooth device corresponding to the maximum RSSI value, respectively, so that the Bluetooth device corresponding to the maximum RSSI value receives the identifier request information, and the terminal device After the identifier information of the Bluetooth device is received, the terminal device may display the identifier information of the Bluetooth device corresponding to the largest RSS I value on the interface of the connected Bluetooth device after receiving the identifier information of the Bluetooth device corresponding to the maximum RSSI value. After receiving the determining instruction of the identifier information by the user, establishing a communication connection between the terminal device and the Bluetooth device. The identification information of the Bluetooth device refers to information capable of uniquely characterizing the Bluetooth device. For example, if there are multiple robots in a classroom, and multiple robots are numbered separately, and the numbers of different robots are different, the number can be used as the identification information of the robot.

[0058] 可选的, 在建立所述终端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙 设备的通信连接之后, 还包括:  [0058] Optionally, after establishing a communication connection between the terminal device and a Bluetooth device whose RSSI value is greater than or equal to the second preset threshold, the method further includes:

[0059] 若所述终端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙终端连接成功[0059] if the terminal device is successfully connected to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold

, 则向所述用户发出连接成功的提示信息。 , the user is prompted to send a successful connection.

[0060] 通过本发明实施例, 可以根据终端设备扫描到的蓝牙设备的 RSSI值移动终端设 备, 并在蓝牙设备的 RSSI值大于或者等于第二预设阈值吋, 控制终端设备连接 该蓝牙设备, 从而可实现终端设备快速地连接蓝牙设备, 该过程操作简单, 提 高了连接蓝牙设备的效率。 [0060] According to the embodiment of the present invention, the terminal device may be moved according to the RSSI value of the Bluetooth device scanned by the terminal device, and the terminal device is connected to the Bluetooth device after the RSSI value of the Bluetooth device is greater than or equal to a second preset threshold. Therefore, the terminal device can be quickly connected to the Bluetooth device, and the process is simple and the efficiency of connecting the Bluetooth device is improved.

[0061] 参见图 2, 是本发明实施例二提供的连接蓝牙设备的方法的实现流程图, 如图 所示该连接蓝牙设备的方法可以包括以下步骤: [0061] Referring to FIG. 2, it is a flowchart of an implementation of a method for connecting a Bluetooth device according to Embodiment 2 of the present invention. The method for connecting a Bluetooth device may include the following steps:

[0062] 步骤 S201 , 在终端设备中存储指定蓝牙设备的标识信息, 其中, 所述指定蓝牙 设备是指需与所述终端设备建立通信连接的蓝牙设备。 [0062] Step S201: The identifier information of the specified Bluetooth device is stored in the terminal device, where the designated Bluetooth device refers to a Bluetooth device that needs to establish a communication connection with the terminal device.

[0063] 在本发明实施例中, 所述蓝牙设备的标识信息是指能够唯一表征所述蓝牙设备 的信息。 例如在一个教室中有多个机器人, 为多个机器人分别进行编号, 且不 同的机器人的编号不同, 该编号就可以作为机器人的标识信息。 [0064] 步骤 S202, 扫描所述终端设备预定范围内的蓝牙设备。 [0063] In the embodiment of the present invention, the identifier information of the Bluetooth device refers to information that can uniquely represent the Bluetooth device. For example, if there are multiple robots in one classroom, and multiple robots are numbered separately, and the numbers of different robots are different, the number can be used as the identification information of the robot. [0064] Step S202: Scan a Bluetooth device within a predetermined range of the terminal device.

[0065] 在本发明实施例中, 所述终端设备在接收到用户发出的启动所述终端设备的连 接蓝牙设备的功能的指令 (例如通过点击所述终端设备中的连接蓝牙设备的功 能的选项而触发的指令) , 或者根据预设吋间间隔触发的启动所述终端设备的 连接蓝牙设备的功能的指令后, 启动所述终端设备的连接蓝牙设备的功能, 并 进入连接蓝牙设备的界面。 在幵启所述终端设备的连接蓝牙设备的功能之后, 所述终端设备可以实吋或者以预设吋间间隔扫描预定范围内的蓝牙设备。 其中 , 所述蓝牙设备可以是指基于蓝牙技术 (例如蓝牙 4.0技术) 的蓝牙外围设备, 例如机器人, 电子模块主控板和家用电器等, 在此不作限定。  [0065] In the embodiment of the present invention, the terminal device receives an instruction by the user to activate a function of connecting the Bluetooth device of the terminal device (for example, by clicking an option of a function of connecting the Bluetooth device in the terminal device) And triggering the instruction), or triggering the function of connecting the Bluetooth device of the terminal device triggered by the preset inter-turn interval, starting the function of connecting the Bluetooth device of the terminal device, and entering an interface for connecting the Bluetooth device. After the function of connecting the Bluetooth device of the terminal device is started, the terminal device may scan the Bluetooth device within the predetermined range in a real time or at a preset interval. The Bluetooth device may be a Bluetooth peripheral device based on a Bluetooth technology (for example, Bluetooth 4.0 technology), such as a robot, an electronic module main control board, and a home appliance, which are not limited herein.

[0066] 步骤 S203 , 若所述终端设备扫描到的蓝牙设备中存在标识信息与所述指定蓝牙 设备的标识信息相匹配的蓝牙设备, 则确定该蓝牙设备为所述指定蓝牙设备。  [0066] Step S203: If the Bluetooth device scanned by the terminal device has a Bluetooth device that matches the identification information of the specified Bluetooth device, the Bluetooth device is determined to be the designated Bluetooth device.

[0067] 步骤 S204, 获取所述指定蓝牙设备的 RSSI值。  [0067] Step S204: Acquire an RSSI value of the specified Bluetooth device.

[0068] 在本发明实施例中, 为了减少所述终端获取的 RSSI值的数量, 节省所述终端设 备的功耗, 延长所述终端设备的续航能力, 所述终端设备可以只获取所述指定 蓝牙设备的 RSSI值。  [0068] In the embodiment of the present invention, in order to reduce the number of RSSI values acquired by the terminal, save power consumption of the terminal device, and extend the endurance capability of the terminal device, the terminal device may only obtain the specified The RSSI value of the Bluetooth device.

[0069] 步骤 S205 , 若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述 第二预设阈值, 则提示所述用户将所述终端设备向所述指定蓝牙设备的方向移 动。  [0069] Step S205, if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and less than the second preset threshold, prompting the user to send the terminal device to the designated Bluetooth device. The direction of movement.

[0070] 步骤 S206, 若在所述终端设备移动的过程中, 检测到所述指定蓝牙设备的 RSSI 值大于或者等于所述第二预设阈值, 则建立所述终端设备与所述指定蓝牙设备 的通信连接。  [0070] Step S206, if the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold during the moving of the terminal device, establishing the terminal device and the designated Bluetooth device Communication connection.

[0071] 为了更加准确地连接到指定蓝牙设备, 若在所述终端设备移动的过程中, 检测 到所述指定蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则所述终端设 备可以向所述最大的 RSSI值所对应的蓝牙设备发送标识请求信息, 以使得所述 指定蓝牙设备在接收到所述标识请求信息后, 向所述终端设备反馈所述指定蓝 牙设备的标识信息, 所述终端设备在接收到所述标识信息后, 可以在所述终端 设备的连接蓝牙设备的界面中显示所述标识信息, 在接收到用户对所述标识信 息的确定指令后, 再建立所述终端设备与所述指定蓝牙设备的通信连接。 [0072] 可选的, 在建立所述终端设备与所述指定蓝牙设备的通信连接之后, 还包括: [0073] 若所述终端设备与所述指定蓝牙设备连接成功, 则向所述用户发出连接成功的 提示信息。 [0071] In order to connect to the designated Bluetooth device more accurately, if the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold during the moving of the terminal device, the terminal device And sending the identifier request information to the Bluetooth device corresponding to the maximum RSSI value, so that the specified Bluetooth device feeds back the identifier information of the specified Bluetooth device to the terminal device after receiving the identifier request information, After receiving the identifier information, the terminal device may display the identifier information in an interface of the terminal device connected to the Bluetooth device, and after receiving the determining instruction of the identifier information by the user, A communication connection of the terminal device to the designated Bluetooth device. [0073] Optionally, after establishing the communication connection between the terminal device and the designated Bluetooth device, the method further includes: sending a message to the user if the terminal device successfully connects to the specified Bluetooth device A prompt to connect successfully.

[0074] 本发明实施例在实施例一的基础上增加了 "指定蓝牙设备的标识信息", 从而只 获取指定蓝牙设备的 RSSI值, 并在指定蓝牙设备的 RSSI值大于第二预设阈值吋 [0074] The embodiment of the present invention adds the "identification information of the designated Bluetooth device" on the basis of the first embodiment, so as to obtain only the RSSI value of the specified Bluetooth device, and the RSSI value of the designated Bluetooth device is greater than the second preset threshold.

, 建立终端设备与指定蓝牙设备的通信连接, 从而减少了终端设备的操作, 提 高了连接指定蓝牙设备的效率, 并节省了终端设备的功耗, 延长了终端设备的 续航能力。 The communication connection between the terminal device and the designated Bluetooth device is established, thereby reducing the operation of the terminal device, improving the efficiency of connecting the designated Bluetooth device, saving the power consumption of the terminal device, and prolonging the endurance capability of the terminal device.

[0075] 应理解, 上述实施例中各步骤的序号的大小并不意味着执行顺序的先后, 各过 程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例的实施过程 构成任何限定。  It should be understood that the size of the serial number of each step in the foregoing embodiment does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be constituted by the implementation process of the embodiment of the present invention. Any restrictions.

[0076] 参见图 3, 是本发明实施例三提供的终端设备的结构框图, 为了便于说明, 仅 示出了与本发明实施例相关的部分。  Referring to FIG. 3, it is a structural block diagram of a terminal device according to Embodiment 3 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.

[0077] 所述终端设备包括:  [0077] the terminal device includes:

[0078] 扫描模块 31, 用于扫描所述终端设备预定范围内的蓝牙设备;  [0078] The scanning module 31 is configured to scan a Bluetooth device within a predetermined range of the terminal device;

[0079] 获取模块 32, 用于获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值; [0079] The obtaining module 32 is configured to obtain an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device;

[0080] 提示模块 33, 用于若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈 值, 且小于第二预设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预 设阈值大于所述第一预设阈值;  [0080] The prompting module 33 is configured to prompt the user to move the terminal device if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, where The second preset threshold is greater than the first preset threshold;

[0081] 建立模块 34, 用于若在所述终端设备移动的过程中, 检测到所述终端设备扫描 到的蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设备 与 RSSI值大于或者等于所述第二预设阈值的蓝牙设备的通信连接。  [0081] The establishing module 34 is configured to: if the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establish the terminal The device is in communication with a Bluetooth device whose RSSI value is greater than or equal to the second predetermined threshold.

[0082] 可选的, 当所述终端设备扫描到多个蓝牙设备吋;  [0082] Optionally, when the terminal device scans multiple Bluetooth devices,

[0083] 所述提示模块 33, 用于若所述终端设备扫描到的多个蓝牙设备的 RSSI值的最大 值大于所述第一预设阈值, 且小于所述第二预设阈值, 则提示所述用户移动所 述终端设备;  The prompting module 33 is configured to prompt, if the maximum value of the RSSI values of the plurality of Bluetooth devices scanned by the terminal device is greater than the first preset threshold, and less than the second preset threshold. The user moves the terminal device;

[0084] 所述建立模块 34, 用于若在所述终端设备移动的过程中, 检测到所述终端设备 扫描到的多个蓝牙设备的 RSSI值的最大值大于或者等于所述第二预设阈值, 则 建立所述终端设备与最大的 RSSI值所对应的蓝牙设备的通信连接。 [0084] The establishing module 34 is configured to detect the terminal device in the process of moving the terminal device And establishing, by the terminal device, a communication connection of the Bluetooth device corresponding to the maximum RSSI value, if the maximum value of the RSSI value of the scanned plurality of Bluetooth devices is greater than or equal to the second preset threshold.

[0085] 可选的, 所述终端设备还包括: [0085] Optionally, the terminal device further includes:

[0086] 存储模块 35, 用于在扫描所述终端设备预定范围内的蓝牙设备之前, 在所述终 端设备中存储指定蓝牙设备的标识信息, 其中, 所述指定蓝牙设备是需与所述 终端设备建立通信连接的蓝牙设备;  [0086] a storage module 35, configured to store, in the terminal device, identification information of the specified Bluetooth device, where the designated Bluetooth device is required to be associated with the terminal device, before scanning the Bluetooth device within the predetermined range of the terminal device The device establishes a Bluetooth device for communication connection;

[0087] 确定模块 36, 用于在所述在扫描所述终端设备预定范围内的蓝牙设备之后, 若 所述终端设备扫描到的蓝牙设备中存在标识信息与所述指定蓝牙设备的标识信 息相匹配的蓝牙设备, 则确定该蓝牙设备为所述指定蓝牙设备;  [0087] a determining module 36, configured to: after the scanning of the Bluetooth device within the predetermined range of the terminal device, if the presence information of the Bluetooth device scanned by the terminal device is related to the identification information of the designated Bluetooth device Matching the Bluetooth device, determining that the Bluetooth device is the designated Bluetooth device;

[0088] 所述获取模块 32, 用于获取所述指定蓝牙设备的 RSSI值;  [0088] the obtaining module 32 is configured to acquire an RSSI value of the specified Bluetooth device.

[0089] 所述提示模块 33, 用于若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述第二预设阈值, 则提示所述用户将所述终端设备向所述指定蓝牙设 备的方向移动;  The prompting module 33 is configured to: if the RSSI value of the specified Bluetooth device is greater than the first preset threshold, and less than the second preset threshold, prompting the user to move the terminal device to The direction of the specified Bluetooth device is moved;

[0090] 所述建立模块 34, 用于若在所述终端设备移动的过程中, 检测到所述指定蓝牙 设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设备与所述指 定蓝牙设备的通信连接;  [0090] The establishing module 34 is configured to: if the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establish the terminal device and The communication connection of the designated Bluetooth device;

[0091] 所述提示模块 34包括:  [0091] The prompting module 34 includes:

[0092] 获取单元 341, 用于若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且 小于所述第二预设阈值, 则获取所述指定蓝牙设备的位置信息;  [0092] The obtaining unit 341 is configured to acquire the location information of the designated Bluetooth device if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and is less than the second preset threshold.

[0093] 提示单元 342, 用于根据所述指定蓝牙设备的位置信息, 提示用户将所述终端 设备向所述指定蓝牙设备的方向移动。  [0093] The prompting unit 342 is configured to prompt the user to move the terminal device to the specified Bluetooth device according to the location information of the specified Bluetooth device.

[0094] 可选的, 所述终端设备还包括:  [0094] Optionally, the terminal device further includes:

[0095] 信息发出模块 37, 用于若所述终端设备与 RSSI值大于或者等于所述第二预设阈 值的蓝牙终端连接成功, 则向所述用户发出连接成功的提示信息。  [0095] The information issuance module 37 is configured to: if the terminal device is successfully connected to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold, send a prompt message to the user that the connection is successful.

[0096] 所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 仅以上述各 功能单元、 模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能单元、 模块完成, 即将所述装置的内部结构划分成不同的 功能单元或模块, 以完成以上描述的全部或者部分功能。 实施例中的各功能单 元、 模块可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可 以两个或两个以上单元集成在一个单元中, 上述集成的单元既可以采用硬件的 形式实现, 也可以采用软件功能单元的形式实现。 另外, 各功能单元、 模块的 具体名称也只是为了便于相互区分, 并不用于限制本申请的保护范围。 上述系 统中单元、 模块的具体工作过程, 可以参考前述方法实施例中的对应过程, 在 此不再赘述。 [0096] It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned differently according to needs. The functional unit and the module are completed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each function list in the embodiment The module and the module may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or may be used. The form realization of the software functional unit. In addition, the specific names of the functional units and modules are only for the purpose of distinguishing from each other, and are not intended to limit the scope of protection of the present application. For the specific working process of the unit and the module in the foregoing system, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

[0097] 参见图 4, 是本发明实施例四提供的终端设备的结构框图。 如图所示的该终端 设备可以包括: 一个或多个处理器 401 (图中仅示出一个) ; 一个或多个输入设 备 402 (图中仅示出一个) , 一个或多个输出设备 403 (图中仅示出一个) 和存 储器 404。 上述处理器 401、 输入设备 402、 输出设备 403和存储器 404通过总线 40 5连接。 存储器 404用于存储指令, 处理器 401用于执行存储器 404存储的指令。 其中:  [0097] FIG. 4 is a structural block diagram of a terminal device according to Embodiment 4 of the present invention. The terminal device as shown may include: one or more processors 401 (only one shown); one or more input devices 402 (only one shown), one or more output devices 403 (only one is shown in the figure) and memory 404. The above processor 401, input device 402, output device 403, and memory 404 are connected by a bus 405. The memory 404 is for storing instructions, and the processor 401 is for executing instructions stored by the memory 404. among them:

[0098] 所述处理器 401, 用于扫描终端设备预定范围内的蓝牙设备; 通过所述输入设 备 402获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值; 若所 述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预设阈 值, 则通过所述输出设备 403提示用户移动所述终端设备, 其中, 所述第二预设 阈值大于所述第一预设阈值; 若在所述终端设备移动的过程中, 检测到所述终 端设备扫描到的蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所 述终端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙设备的通信连接。  The processor 401 is configured to scan a Bluetooth device within a predetermined range of the terminal device, and acquire, by the input device 402, an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device; If the RSSI value of the Bluetooth device that is scanned by the device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device by using the output device 403, where the second preset threshold is greater than Determining a first preset threshold; if, in the process of moving the terminal device, detecting that the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, establishing the terminal device A communication connection of a Bluetooth device whose RSSI value is greater than or equal to the second predetermined threshold.

[0099] 可选的, 当所述终端设备扫描到多个蓝牙设备吋; 所述处理器 401, 用于若所 述终端设备扫描到的多个蓝牙设备的 RSSI值的最大值大于所述第一预设阈值, 且小于所述第二预设阈值, 则通过所述输出设备 403提示所述用户移动所述终端 设备; 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的多个蓝 牙设备的 RSSI值的最大值大于或者等于所述第二预设阈值, 则建立所述终端设 备与最大的 RSSI值所对应的蓝牙设备的通信连接。  [0099] Optionally, when the terminal device scans a plurality of Bluetooth devices, the processor 401 is configured to: if a maximum value of RSSI values of the plurality of Bluetooth devices scanned by the terminal device is greater than the first a preset threshold, and less than the second preset threshold, prompting the user to move the terminal device by using the output device 403; if the terminal device is in the process of moving, detecting the terminal device scanning And establishing, by the terminal device, a communication connection of the Bluetooth device corresponding to the largest RSSI value.

[0100] 可选的, 在扫描所述终端设备预定范围内的蓝牙设备之前, 所述处理器 401还 用于在所述终端设备中存储指定蓝牙设备的标识信息, 其中, 所述指定蓝牙设 备是指需与所述终端设备建立通信连接的蓝牙设备; [0101] 在扫描所述终端设备预定范围内的蓝牙设备之后, 所述处理器 401还用于若所 述终端设备扫描到的蓝牙设备中存在标识信息与所述指定蓝牙设备的标识信息 相匹配的蓝牙设备, 则确定该蓝牙设备为所述指定蓝牙设备; 通过所述输入设 备 402获取所述指定蓝牙设备的 RSSI值; 若所述指定蓝牙设备的 RSSI值大于所述 第一预设阈值, 且小于所述第二预设阈值, 则通过所述输出设备 403提示所述用 户将所述终端设备向所述指定蓝牙设备的方向移动; 若在所述终端设备移动的 过程中, 检测到所述指定蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设备与所述指定蓝牙设备的通信连接。 [0100] Optionally, before the scanning of the Bluetooth device in the predetermined range of the terminal device, the processor 401 is further configured to store, in the terminal device, identifier information of the specified Bluetooth device, where the designated Bluetooth device Means a Bluetooth device that needs to establish a communication connection with the terminal device; [0101] After scanning the Bluetooth device in the predetermined range of the terminal device, the processor 401 is further configured to: if the presence information of the Bluetooth device scanned by the terminal device matches the identification information of the specified Bluetooth device, The Bluetooth device is determined to be the designated Bluetooth device; the RSSI value of the designated Bluetooth device is obtained by the input device 402; if the RSSI value of the specified Bluetooth device is greater than the first preset threshold, And being smaller than the second preset threshold, the user is prompted by the output device 403 to move the terminal device to the specified Bluetooth device; if the terminal device moves, the device is detected. And establishing a communication connection between the terminal device and the designated Bluetooth device, where the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold.

[0102] 可选的, 所述处理器 401具体用于若所述指定蓝牙设备的 RSSI值大于所述第一 预设阈值, 且小于所述第二预设阈值, 则通过所述输入设备 402获取所述指定蓝 牙设备的位置信息; 根据所述指定蓝牙设备的位置信息, 通过所述输出设备 403 提示用户将所述终端设备向所述指定蓝牙设备的方向移动。  [0102] Optionally, the processor 401 is specifically configured to: if the RSSI value of the specified Bluetooth device is greater than the first preset threshold, and is less than the second preset threshold, pass the input device 402. Obtaining location information of the specified Bluetooth device; according to the location information of the specified Bluetooth device, prompting the user to move the terminal device to the direction of the designated Bluetooth device by using the output device 403.

[0103] 所述存储器 404, 用于存储软件程序以及模块。 所述处理器 401通过运行存储在 所述存储器 404的软件程序以及模块, 从而执行各种功能应用以及数据处理, 以 建立终端设备与指定蓝牙设备的通信连接。  [0103] The memory 404 is configured to store a software program and a module. The processor 401 executes various functional applications and data processing by running software programs and modules stored in the memory 404 to establish a communication connection between the terminal device and the designated Bluetooth device.

[0104] 应当理解, 在本发明实施例中, 所述处理器 401可以是中央处理单元 (Central Processing Unit, CPU) , 该处理器还可以是其他通用处理器、 数字信号处理器 (Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列(Field-Programmable Gate Array, FPGA)或 者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用 处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。  [0104] It should be understood that, in the embodiment of the present invention, the processor 401 may be a central processing unit (CPU), and the processor may be another general-purpose processor or a digital signal processor (Digital Signal Processor). , DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.

[0105] 输入设备 402可以包括触控板、 指纹采传感器 (用于采集用户的指纹信息和指 纹的方向信息) 、 麦克风、 数据接收接口等。 输出设备 403可以包括显示器 (LC D等) 、 扬声器、 数据发送接口等。  [0105] The input device 402 may include a touch panel, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. Output device 403 can include a display (LC D, etc.), a speaker, a data transmission interface, and the like.

[0106] 该存储器 404可以包括只读存储器和随机存取存储器, 并向处理器 401提供指令 和数据。 存储器 404的一部分还可以包括非易失性随机存取存储器。 例如, 存储 器 404还可以存储设备类型的信息。  [0106] The memory 404 can include read only memory and random access memory and provides instructions and data to the processor 401. A portion of memory 404 may also include non-volatile random access memory. For example, the memory 404 can also store information of the device type.

[0107] 具体实现中, 本发明实施例中所描述的处理器 401、 输入设备 402、 输出设备 40 3和存储器 404可执行本发明实施例提供的连接蓝牙设备的方法的实施例中所描 述的实现方式, 也可执行实施例三所述终端设备中所描述的实现方式, 在此不 再赘述。 [0107] In a specific implementation, the processor 401, the input device 402, and the output device 40 are described in the embodiment of the present invention. 3 and the memory 404 may be implemented in the implementation manner described in the embodiment of the method for connecting the Bluetooth device provided by the embodiment of the present invention. The implementation manner described in the terminal device in the third embodiment may also be implemented, and details are not described herein again.

[0108] 参见图 5, 是本发明实施例五提供的终端设备的结构框图, 该终端设备可以用 于实施本发明实施例提供的连接蓝牙设备的方法的实施例中所描述的实现方式 , 也可执行实施例三所述终端设备中所描述的实现方式。  [0108] FIG. 5 is a structural block diagram of a terminal device according to Embodiment 5 of the present invention. The terminal device may be used to implement the implementation manner described in the embodiment of the method for connecting a Bluetooth device according to the embodiment of the present invention. The implementation described in the terminal device described in Embodiment 3 can be performed.

[0109] 如图 5所示, 终端设备 1200可以包括 RF (Radio Frequency , 射频) 电路 110、 包 括有一个或一个以上 (图中仅示出一个) 计算机可读存储介质的存储器 120、 输 入单元 130、 显示单元 140、 传感器 150、 音频电路 160、 传输模块 170、 包括有一 个或者一个以上 (图中仅示出一个) 处理核心的处理器 180以及电源 190等部件 。 本领域技术人员可以理解, 图 5中示出的终端设备结构并不构成对终端设备的 限定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部 件布置。 其中:  [0109] As shown in FIG. 5, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer readable storage medium, and an input unit 130. The display unit 140, the sensor 150, the audio circuit 160, the transmission module 170, and the processor 180 including the processing core of one or more (only one shown in the figure) and the power supply 190 and the like. It will be understood by those skilled in the art that the terminal device structure shown in Fig. 5 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:

[0110] RF电路 110用于接收以及发送电磁波, 实现电磁波与电信号的相互转换, 从而 与通讯网络或者其他设备进行通讯。 RF电路 110可包括各种现有的用于执行这些 功能的电路元件, 例如, 天线、 射频收发器、 数字信号处理器、 加密 /解密芯片 、 用户身份模块 (SIM) 卡、 存储器等等。 RF电路 110可与各种网络如互联网、 企业内部网、 无线网络进行通讯或者通过无线网络与其他设备进行通讯。 上述 的无线网络可包括蜂窝式电话网、 无线局域网或者城域网。 上述的无线网络可 以使用各种通信标准、 协议及技术, 包括但并不限于全球移动通信系统 (Global System for Mobile Communication, GSM) 、 增强型移动通信技术 (Enhanced Data GSM Environment, EDGE), 宽带码分多址技术 (wideband code division multiple access, W-CDMA) , 码分多址技术 (Code division access, CDMA) 、 吋分多址 技术 (time division multiple access, TDMA) , 无线保真技术 (Wireless, Fidelity , WiFi) (如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, 正££802.1 ^和/或正££ 802.1 ) 、 网络电话 (Voice over internet protocal, VoIP ) 、 全球微波互耳关接入 (Worldwide Interoperability for Microwave Access,  [0110] The RF circuit 110 is configured to receive and transmit electromagnetic waves, and convert electromagnetic waves and electrical signals to communicate with a communication network or other devices. The RF circuit 110 can include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and the like. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network. The wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), and wideband code. Wideband code division multiple access (W-CDMA), Code division access (CDMA), time division multiple access (TDMA), wireless fidelity (Wireless, Fidelity, WiFi) (such as the Institute of Electrical and Electronics Engineers Standard IEEE 802.11a, IEEE 802.11b, ££802.1 ^ and / or positive £ £ 802.1), Voice over internet protocal (VoIP), global microwave ears Worldwide Interoperability for Microwave Access,

Wi-Max) 、 其他用于邮件、 即吋通讯及短消息的协议, 以及任何其他合适的通 讯协议, 甚至可包括那些当前仍未被幵发出来的协议。 Wi-Max), other protocols for mail, instant messaging and short messages, and any other suitable pass Protocols, even those that are not currently being issued.

[0111] 存储器 120可用于存储软件程序以及模块, 如上述实施例一至二中数据迁移方 法 /实施例三中终端设备对应的程序指令 /模块, 处理器 180通过运行存储在存储 器 120内的软件程序以及模块, 从而执行各种功能应用以及数据处理, 即实现获 取预设事件对应的资源的功能。 存储器 120可包括高速随机存储器, 还可包括非 易失性存储器, 如一个或者多个磁性存储装置、 闪存、 或者其他非易失性固态 存储器。 在一些实例中, 存储器 120可进一步包括相对于处理器 180远程设置的 存储器, 这些远程存储器可以通过网络连接至终端设备 1200。 上述网络的实例 包括但不限于互联网、 企业内部网、 局域网、 移动通信网及其组合。  [0111] The memory 120 can be used to store software programs and modules, such as the program instructions/modules corresponding to the terminal devices in the data migration method/the third embodiment in the above embodiments, and the processor 180 runs the software program stored in the memory 120. And a module, thereby performing various function applications and data processing, that is, implementing a function of acquiring resources corresponding to preset events. Memory 120 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 120 can further include memory remotely located relative to processor 180, which can be connected to terminal device 1200 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.

[0112] 输入单元 130可用于接收输入的数字或字符信息, 以及产生与用户设置以及功 能控制有关的键盘、 鼠标、 操作杆、 光学或者轨迹球信号输入。 具体地, 输入 单元 130可包括触敏表面 131以及其他输入设备 132。 触敏表面 131, 也称为触摸 显示屏或者触控板, 可收集用户在其上或附近的触摸操作 (比如用户使用手指 、 触笔等任何适合的物体或附件在触敏表面 131上或在触敏表面 131附近的操作 ) , 并根据预先设定的程式驱动相应的连接装置。 可选的, 触敏表面 131可包括 触摸检测装置和触摸控制器两个部分。 其中, 触摸检测装置检测用户的触摸方 位, 并检测触摸操作带来的信号, 将信号传送给触摸控制器; 触摸控制器从触 摸检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处理器 180, 并能 接收处理器 180发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外 线以及表面声波等多种类型实现触敏表面 131。 除了触敏表面 131, 输入单元 130 还可以包括其他输入设备 132。 具体地, 其他输入设备 132可以包括但不限于物 理键盘、 功能键 (比如音量控制按键、 幵关按键等) 、 轨迹球、 鼠标、 操作杆 等中的一种或多种。  [0112] The input unit 130 can be configured to receive input numeric or character information, and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, key presses, etc.), trackballs, mice, joysticks, and the like.

[0113] 显示单元 140可用于显示由用户输入的信息或提供给用户的信息以及终端设备 1 200的各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和 其任意组合来构成。 显示单元 140可包括显示面板 141, 可选的, 可以采用 LCD(L iquid Crystal Display , 液晶显示器)、 OLED(Organic Light-Emitting Diode,有机发 光二极管)等形式来配置显示面板 141。 进一步的, 触敏表面 131可覆盖显示面板 1 41, 当触敏表面 131检测到在其上或附近的触摸操作后, 传送给处理器 180以确 定触摸事件的类型, 随后处理器 180根据触摸事件的类型在显示面板 141上提供 相应的视觉输出。 虽然在图 7中, 触敏表面 131与显示面板 141是作为两个独立的 部件来实现输入和输入功能, 但是在某些实施例中, 可以将触敏表面 131与显示 面板 141集成而实现输入和输出功能。 [0113] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 1 200, which can be composed of graphics, text, icons, videos, and any combination thereof. Composition. The display unit 140 may include a display panel 141. Alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch sensitive surface 131 can cover the display panel 1 41. When the touch sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. . Although in FIG. 7, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.

[0114] 终端设备 1200还可包括至少一种传感器 150, 比如光传感器、 运动传感器以及 其他传感器。 具体地, 光传感器可包括环境光传感器及接近传感器, 其中, 环 境光传感器可根据环境光线的明暗来调节显示面板 141的亮度, 接近传感器可在 终端设备 1200移动到耳边吋, 关闭显示面板 141和 /或背光。 作为运动传感器的一 种, 重力加速度传感器可检测各个方向上 (一般为三轴) 加速度的大小, 静止 吋可检测出重力的大小及方向, 可用于识别手机姿态的应用 (比如横竖屏切换 、 相关游戏、 磁力计姿态校准) 、 振动识别相关功能 (比如计步器、 敲击) 等; 至于终端设备 1200还可配置的陀螺仪、 气压计、 湿度计、 温度计、 红外线传感 器等其他传感器, 在此不再赘述。  [0114] The terminal device 1200 may also include at least one type of sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may move to the ear 吋 at the terminal device 1200 to close the display panel 141. And / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the acceleration in all directions (usually three axes), and the static 吋 can detect the magnitude and direction of gravity, which can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal device 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.

[0115] 音频电路 160、 扬声器 161, 传声器 162可提供用户与终端设备 1200之间的音频 接口。 音频电路 160可将接收到的音频数据转换后的电信号, 传输到扬声器 161 , 由扬声器 161转换为声音信号输出; 另一方面, 传声器 162将收集的声音信号 转换为电信号, 由音频电路 160接收后转换为音频数据, 再将音频数据输出处理 器 180处理后, 经 RF电路 110以发送给比如另一终端, 或者将音频数据输出至存 储器 120以便进一步处理。 音频电路 160还可能包括耳塞插孔, 以提供外设耳机 与终端设备 1200的通信。  [0115] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1200. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, by the RF circuit 110, or outputted to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 1200.

[0116] 终端设备 1200通过传输模块 170 (例如 WiFi模块) 可以帮助用户收发电子邮件 、 浏览网页和访问流式媒体等, 它为用户提供了无线的宽带互联网访问。 虽然 图 5示出了传输模块 170, 但是可以理解的是, 其并不属于终端设备 1200的必须 构成, 完全可以根据需要在不改变发明的本质的范围内而省略。  [0116] The terminal device 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (for example, a WiFi module), which provides wireless broadband Internet access for the user. Although FIG. 5 shows the transmission module 170, it will be understood that it does not belong to the essential configuration of the terminal device 1200, and may be omitted as needed within the scope of not changing the essence of the invention.

[0117] 处理器 180是终端设备 1200的控制中心, 利用各种接口和线路连接整个手机的 各个部分, 通过运行或执行存储在存储器 120内的软件程序和 /或模块, 以及调用 存储在存储器 120内的数据, 执行终端设备 1200的各种功能和处理数据, 从而对 手机进行整体监控。 可选的, 处理器 180可包括一个或多个处理核心; 优选的, 处理器 180可集成应用处理器和调制解调处理器, 其中, 应用处理器主要处理操 作系统、 用户界面和应用程序等, 调制解调处理器主要处理无线通信。 可以理 解的是, 上述调制解调处理器也可以不集成到处理器 180中。 [0117] The processor 180 is a control center of the terminal device 1200, which connects various parts of the entire mobile phone using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and calling stored in the memory 120. Internal data, performing various functions and processing data of the terminal device 1200, thereby The phone is monitored overall. Optionally, the processor 180 may include one or more processing cores. Preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.

[0118] 终端设备 1200还包括给各个部件供电的电源 190 (比如电池) , 优选的, 电源 可以通过电源管理系统与处理器 180逻辑相连, 从而通过电源管理系统实现管理 充电、 放电、 以及功耗管理等功能。 电源 190还可以包括一个或一个以上的直流 或交流电源、 再充电系统、 电源故障检测电路、 电源转换器或者逆变器、 电源 状态指示器等任意组件。  [0118] The terminal device 1200 further includes a power source 190 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 180 through the power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions. Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

[0119] 尽管未示出, 终端设备 1200还可以包括摄像头、 蓝牙模块等, 在此不再赘述。  [0119] Although not shown, the terminal device 1200 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.

具体在本实施例中, 终端设备的显示单元是触摸屏显示器, 终端设备还包括有 存储器, 以及一个或者一个以上的程序, 其中一个或者一个以上程序存储于存 储器中, 且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序 包含用于进行以下操作的指令:  Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and configured to be one or one The above processor executes one or more programs that include instructions for performing the following operations:

[0120] 扫描终端设备预定范围内的蓝牙设备;  [0120] scanning a Bluetooth device within a predetermined range of the terminal device;

[0121] 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值;  [0121] acquiring an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device;

[0122] 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预 设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设阈值大于所述第 一预设阈值;  [0122] If the RSSI value of the Bluetooth device that is scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;

[0123] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝牙设备的 RS [0123] detecting, in the process of moving the terminal device, the RS of the Bluetooth device scanned by the terminal device

SI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 RSSI值大于或者 等于所述第二预设阈值的蓝牙设备的通信连接。 The SI value is greater than or equal to the second preset threshold, and the communication connection between the terminal device and the Bluetooth device whose RSSI value is greater than or equal to the second preset threshold is established.

[0124] 假设上述为第一种可能的实施方式, 则在第一种可能的实施方式作为基础而提 供的第二种可能的实施方式中, 所述终端设备的存储器中, 还包括用于执行以 下操作的指令: [0124] Assume that the foregoing is a first possible implementation manner, in a second possible implementation manner provided by the first possible implementation manner, the memory of the terminal device further includes Instructions for the following operations:

[0125] 若所述终端设备扫描到的多个蓝牙设备的 RSSI值的最大值大于所述第一预设阈 值, 且小于所述第二预设阈值, 则提示所述用户移动所述终端设备;  [0125] if the maximum value of the RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than the first preset threshold and less than the second preset threshold, prompting the user to move the terminal device ;

[0126] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的多个蓝牙设备 的 RSSI值的最大值大于或者等于所述第二预设阈值, 则建立所述终端设备与最 大的 RSSI值所对应的蓝牙设备的通信连接。 [0126] detecting, during the moving of the terminal device, multiple Bluetooth devices scanned by the terminal device The maximum value of the RSSI value is greater than or equal to the second preset threshold, and the communication connection of the Bluetooth device corresponding to the maximum RSSI value of the terminal device is established.

[0127] 在第一种可能的实施方式作为基础而提供的第三种可能的实施方式中, 所述终 端设备的存储器中, 还包括用于执行以下操作的指令: [0127] In a third possible implementation manner provided by the first possible implementation manner, the memory of the terminal device further includes an instruction for performing the following operations:

[0128] 在扫描所述终端设备预定范围内的蓝牙设备之前, 在所述终端设备中存储指定 蓝牙设备的标识信息, 其中, 所述指定蓝牙设备是指需与所述终端设备建立通 信连接的蓝牙设备; [0128] storing the identification information of the specified Bluetooth device in the terminal device before scanning the Bluetooth device within the predetermined range of the terminal device, where the designated Bluetooth device refers to establishing a communication connection with the terminal device. Bluetooth device;

[0129] 在扫描所述终端设备预定范围内的蓝牙设备之后, 若所述终端设备扫描到的蓝 牙设备中存在标识信息与所述指定蓝牙设备的标识信息相匹配的蓝牙设备, 则 确定该蓝牙设备为所述指定蓝牙设备;  [0129] after scanning the Bluetooth device within the predetermined range of the terminal device, if the Bluetooth device scanned by the terminal device has a Bluetooth device whose identification information matches the identification information of the specified Bluetooth device, determining the Bluetooth The device is the designated Bluetooth device;

[0130] 获取所述指定蓝牙设备的 RSSI值;  [0130] acquiring an RSSI value of the specified Bluetooth device;

[0131] 若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述第二预设阈 值, 则提示所述用户将所述终端设备向所述指定蓝牙设备的方向移动;  [0131] if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and less than the second preset threshold, prompting the user to move the terminal device to the specified Bluetooth device ;

[0132] 若在所述终端设备移动的过程中, 检测到所述指定蓝牙设备的 RSSI值大于或者 等于所述第二预设阈值, 则建立所述终端设备与所述指定蓝牙设备的通信连接  [0132] if, in the process of moving the terminal device, detecting that the RSSI value of the designated Bluetooth device is greater than or equal to the second preset threshold, establishing a communication connection between the terminal device and the designated Bluetooth device

[0133] 假设上述为第三种可能的实施方式, 则在第三种可能的实施方式作为基础而提 供的第四种可能的实施方式中, 所述终端设备的存储器中, 还包含用于执行以 下操作的指令: [0133] Assuming that the foregoing is a third possible implementation manner, in a fourth possible implementation manner provided by the third possible implementation manner, the memory of the terminal device further includes Instructions for the following operations:

[0134] 若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述第二预设阈 值, 则获取所述指定蓝牙设备的位置信息;  [0134] if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and is less than the second preset threshold, acquiring location information of the designated Bluetooth device;

[0135] 根据所述指定蓝牙设备的位置信息, 提示用户将所述终端设备向所述指定蓝牙 设备的方向移动。 [0135] prompting the user to move the terminal device in a direction of the designated Bluetooth device according to the location information of the specified Bluetooth device.

[0136] 在第一种可能的实施方式或第二种可能的实施方式或第三种可能的实施方式或 第四种可能的实施方式作为基础而提供的第五种可能的实施方式中, 所述终端 设备的存储器中, 还包含用于执行以下操作的指令:  [0136] In a fifth possible implementation manner provided by the first possible embodiment or the second possible implementation manner or the third possible implementation manner or the fourth possible implementation manner, The memory of the terminal device also includes instructions for performing the following operations:

[0137] 若所述终端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙终端连接成功 , 则向所述用户发出连接成功的提示信息。 [0138] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述或 记载的部分, 可以参见其它实施例的相关描述。 [0137] If the terminal device is successfully connected to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold, the prompt information for successful connection is sent to the user. [0138] In the foregoing embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in the specific embodiments may be referred to the related descriptions of other embodiments.

[0139] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。  [0139] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.

[0140] 在本发明所提供的实施例中, 应该理解到, 所揭露的装置和方法, 可以通过其 它的方式实现。 例如, 以上所描述的系统实施例仅仅是示意性的, 例如, 所述 模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的划分 方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征 可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或 通讯连接可以是通过一些接口, 装置或单元的间接耦合或通讯连接, 可以是电 性, 机械或其它的形式。  [0140] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the system embodiment described above is merely illustrative. For example, the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.

[0141] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。  [0141] The unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

[0142] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式 实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0143] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用 吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明实施 例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部 或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介 质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor) 执行本发明实施例各个实施例所述方法 的全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (R OM, Read-Only Memory) 、 随机存取存储器 (RAM, Random Access Memory[0143] The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage. The medium includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute the method according to various embodiments of the present invention. All or part of the steps. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a Read-Only Memory (R OM), and a random access memory (RAM).

) 、 磁碟或者光盘等各种可以存储程序代码的介质。 ) A variety of media that can store program code, such as a disk or a disc.

[0144] 具体如下, 本发明再一实施例还提供一种计算机可读存储介质, 该计算机可读 存储介质可以是上述实施例中的存储器中所包含的计算机可读存储介质; 也可 以是单独存在, 未装配入终端设备中的计算机可读存储介质。 所述计算机可读 存储介质存储有一个或者一个以上程序, 所述一个或者一个以上程序被一个或 者一个以上的处理器用来执行一个连接蓝牙设备的方法, 所述方法包括:  [0144] Specifically, another embodiment of the present invention further provides a computer readable storage medium, which may be a computer readable storage medium included in the memory in the foregoing embodiment, or may be separate There is a computer readable storage medium that is not assembled into the terminal device. The computer readable storage medium stores one or more programs, the one or more programs being used by one or more processors to perform a method of connecting a Bluetooth device, the method comprising:

[0145] 扫描终端设备预定范围内的蓝牙设备;  [0145] scanning a Bluetooth device within a predetermined range of the terminal device;

[0146] 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值;  [0146] acquiring an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device;

[0147] 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且小于第二预 设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设阈值大于所述第 一预设阈值;  [0147] If the RSSI value of the Bluetooth device that is scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, the user is prompted to move the terminal device, where the second preset threshold is greater than The first preset threshold;

[0148] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝牙设备的 RS [0148] detecting, in the process of moving the terminal device, the RS of the Bluetooth device scanned by the terminal device

SI值大于或者等于所述第二预设阈值, 则建立所述终端设备与 RSSI值大于或者 等于所述第二预设阈值的蓝牙设备的通信连接。 The SI value is greater than or equal to the second preset threshold, and the communication connection between the terminal device and the Bluetooth device whose RSSI value is greater than or equal to the second preset threshold is established.

[0149] 假设上述为第一种可能的实施方式, 则在第一种可能的实施方式作为基础而提 供的第二种可能的实施方式中, 所述终端设备的存储器中, 还包括用于执行以 下操作的指令: [0149] Assume that the foregoing is a first possible implementation manner, in a second possible implementation manner provided by the first possible implementation manner, the memory of the terminal device further includes Instructions for the following operations:

[0150] 若所述终端设备扫描到的多个蓝牙设备的 RSSI值的最大值大于所述第一预设阈 值, 且小于所述第二预设阈值, 则提示所述用户移动所述终端设备;  [0150] if the maximum value of the RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than the first preset threshold and less than the second preset threshold, prompting the user to move the terminal device ;

[0151] 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的多个蓝牙设备 的 RSSI值的最大值大于或者等于所述第二预设阈值, 则建立所述终端设备与最 大的 RSSI值所对应的蓝牙设备的通信连接。 [0151] if the maximum value of the RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than or equal to the second preset threshold during the process of moving the terminal device, establishing the terminal device The communication connection of the Bluetooth device corresponding to the largest RSSI value.

[0152] 在第一种可能的实施方式作为基础而提供的第三种可能的实施方式中, 所述终 端设备的存储器中, 还包括用于执行以下操作的指令: [0152] In a third possible implementation manner provided by the first possible implementation manner, the memory of the terminal device further includes an instruction for performing the following operations:

[0153] 在扫描所述终端设备预定范围内的蓝牙设备之前, 在所述终端设备中存储指定 蓝牙设备的标识信息, 其中, 所述指定蓝牙设备是指需与所述终端设备建立通 信连接的蓝牙设备; [0153] storing the identification information of the specified Bluetooth device in the terminal device before scanning the Bluetooth device within the predetermined range of the terminal device, where the designated Bluetooth device refers to establishing a connection with the terminal device a Bluetooth device connected to the letter;

[0154] 在扫描所述终端设备预定范围内的蓝牙设备之后, 若所述终端设备扫描到的蓝 牙设备中存在标识信息与所述指定蓝牙设备的标识信息相匹配的蓝牙设备, 则 确定该蓝牙设备为所述指定蓝牙设备;  [0154] after scanning the Bluetooth device within the predetermined range of the terminal device, if the Bluetooth device scanned by the terminal device has a Bluetooth device whose identification information matches the identification information of the specified Bluetooth device, determining the Bluetooth The device is the designated Bluetooth device;

[0155] 获取所述指定蓝牙设备的 RSSI值;  [0155] acquiring an RSSI value of the specified Bluetooth device;

[0156] 若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述第二预设阈 值, 则提示所述用户将所述终端设备向所述指定蓝牙设备的方向移动;  [0156] if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and less than the second preset threshold, prompting the user to move the terminal device to the specified Bluetooth device ;

[0157] 若在所述终端设备移动的过程中, 检测到所述指定蓝牙设备的 RSSI值大于或者 等于所述第二预设阈值, 则建立所述终端设备与所述指定蓝牙设备的通信连接  [0157] establishing, when the terminal device moves, detecting that the RSSI value of the designated Bluetooth device is greater than or equal to the second preset threshold, establishing a communication connection between the terminal device and the designated Bluetooth device

[0158] 假设上述为第三种可能的实施方式, 则在第三种可能的实施方式作为基础而提 供的第四种可能的实施方式中, 所述终端设备的存储器中, 还包含用于执行以 下操作的指令: [0158] Assuming that the foregoing is a third possible implementation manner, in a fourth possible implementation manner provided by the third possible implementation manner, the memory of the terminal device further includes Instructions for the following operations:

[0159] 若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述第二预设阈 值, 则获取所述指定蓝牙设备的位置信息;  [0159] if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and is less than the second preset threshold, acquiring location information of the designated Bluetooth device;

[0160] 根据所述指定蓝牙设备的位置信息, 提示用户将所述终端设备向所述指定蓝牙 设备的方向移动。 [0160] prompting the user to move the terminal device in a direction of the designated Bluetooth device according to the location information of the specified Bluetooth device.

[0161] 在第一种可能的实施方式或第二种可能的实施方式或第三种可能的实施方式或 第四种可能的实施方式作为基础而提供的第五种可能的实施方式中, 所述终端 设备的存储器中, 还包含用于执行以下操作的指令:  [0161] In a fifth possible implementation manner provided by the first possible embodiment or the second possible implementation manner or the third possible implementation manner or the fourth possible implementation manner, The memory of the terminal device also includes instructions for performing the following operations:

[0162] 若所述终端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙终端连接成功 , 则向所述用户发出连接成功的提示信息。  [0162] If the terminal device successfully connects to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold, the prompt information for successful connection is sent to the user.

[0163] 以上所述实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述 实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进 行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明各 实施例技术方案的精神和范围, 均应包含在本发明的保护范围之内。  The above-described embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. It should be included in the scope of protection of the present invention.

Claims

权利要求书 Claim [权利要求 1] 一种连接蓝牙设备的方法, 应用于终端设备, 其特征在于, 所述方法 包括:  [Claim 1] A method for connecting a Bluetooth device, which is applied to a terminal device, wherein the method includes: 扫描终端设备预定范围内的蓝牙设备;  Scanning a Bluetooth device within a predetermined range of the terminal device; 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且 小于第二预设阈值, 则提示用户移动所述终端设备, 其中, 所述第二 预设阈值大于所述第一预设阈值;  Obtaining an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device, if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, prompting the user to move The terminal device, where the second preset threshold is greater than the first preset threshold; 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝牙 设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设 备与 RSSI值大于或者等于所述第二预设阈值的蓝牙设备的通信连接  If the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold during the moving of the terminal device, establishing the terminal device and the RSSI value is greater than or equal to the Communication connection of the Bluetooth device of the second preset threshold [权利要求 2] 如权利要求 1所述的方法, 其特征在于, 当所述终端设备扫描到多个 蓝牙设备吋; 所述若所述终端设备扫描到的蓝牙设备的 RSSI值大于 第一预设阈值, 且小于第二预设阈值, 则提示用户移动所述终端设备 包括: [Claim 2] The method according to claim 1, wherein when the terminal device scans a plurality of Bluetooth devices, the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first pre- When the threshold is set and is less than the second preset threshold, prompting the user to move the terminal device includes: 若所述终端设备扫描到的多个蓝牙设备的 RSSI值的最大值大于所述 第一预设阈值, 且小于所述第二预设阈值, 则提示所述用户移动所述 终端设备;  And if the maximum value of the RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, prompting the user to move the terminal device; 所述若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的 蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终 端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙设备的通信 连接包括:  If the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, the terminal device and the RSSI value are greater than or equal to The communication connection of the Bluetooth device of the second preset threshold includes: 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的多个 蓝牙设备的 RSSI值的最大值大于或者等于所述第二预设阈值, 则建 立所述终端设备与最大的 RSSI值所对应的蓝牙设备的通信连接。  If the maximum value of the RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than or equal to the second preset threshold during the process of moving the terminal device, establishing the terminal device and the largest The communication connection of the Bluetooth device corresponding to the RSSI value. [权利要求 3] 如权利要求 1所述的方法, 其特征在于, 在扫描所述终端设备预定范 围内的蓝牙设备之前, 还包括: [Claim 3] The method according to claim 1, wherein the terminal device is scanned for a predetermined range Before the Bluetooth device in the area, it also includes: 在所述终端设备中存储指定蓝牙设备的标识信息, 其中, 所述指定蓝 牙设备是指需与所述终端设备建立通信连接的蓝牙设备;  And storing the identification information of the specified Bluetooth device in the terminal device, where the designated Bluetooth device refers to a Bluetooth device that needs to establish a communication connection with the terminal device; 在扫描所述终端设备预定范围内的蓝牙设备之后, 还包括: 若所述终端设备扫描到的蓝牙设备中存在标识信息与所述指定蓝牙设 备的标识信息相匹配的蓝牙设备, 则确定该蓝牙设备为所述指定蓝牙 设备;  After scanning the Bluetooth device in the predetermined range of the terminal device, the method further includes: if the Bluetooth device scanned by the terminal device has a Bluetooth device that matches the identification information of the specified Bluetooth device, determining the Bluetooth The device is the designated Bluetooth device; 所述获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSS I值包括:  The obtaining the strength indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device includes: 获取所述指定蓝牙设备的 RSSI值;  Obtaining an RSSI value of the specified Bluetooth device; 所述若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值 , 且小于第二预设阈值, 则提示用户移动所述终端设备包括: 若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述 第二预设阈值, 则提示所述用户将所述终端设备向所述指定蓝牙设备 的方向移动;  If the RSSI value of the Bluetooth device scanned by the terminal device is greater than the first preset threshold, and is less than the second preset threshold, prompting the user to move the terminal device includes: if the RSSI value of the specified Bluetooth device is greater than The first preset threshold is smaller than the second preset threshold, and the user is prompted to move the terminal device to the specified Bluetooth device. 所述若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的 蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终 端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙设备的通信 连接包括:  If the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold, the terminal device and the RSSI value are greater than or equal to The communication connection of the Bluetooth device of the second preset threshold includes: 若在所述终端设备移动的过程中, 检测到所述指定蓝牙设备的 RSSI 值大于或者等于所述第二预设阈值, 则建立所述终端设备与所述指定 蓝牙设备的通信连接。  And establishing, during the moving of the terminal device, that the RSSI value of the designated Bluetooth device is greater than or equal to the second preset threshold, establishing a communication connection between the terminal device and the designated Bluetooth device. [权利要求 4] 如权利要求 3所述的方法, 其特征在于, 所述若所述指定蓝牙设备的  [Claim 4] The method according to claim 3, wherein: if the designated Bluetooth device is RSSI值大于所述第一预设阈值, 且小于所述第二预设阈值, 则提示 用户将所述终端设备向所述指定蓝牙设备的方向移动包括: 若所述指定蓝牙设备的 RSSI值大于所述第一预设阈值, 且小于所述 第二预设阈值, 则获取所述指定蓝牙设备的位置信息;  If the RSSI value is greater than the first preset threshold, and is smaller than the second preset threshold, prompting the user to move the terminal device to the specified Bluetooth device includes: if the RSSI value of the specified Bluetooth device is greater than Obtaining the location information of the designated Bluetooth device, where the first preset threshold is smaller than the second preset threshold; 根据所述指定蓝牙设备的位置信息, 提示用户将所述终端设备向所述 指定蓝牙设备的方向移动。 Prompting the user to the terminal device according to the location information of the specified Bluetooth device Specifies the direction of movement of the Bluetooth device. [权利要求 5] 如权利要求 1至 4任一项所述的方法, 其特征在于, 在建立所述终端设 备与 RSSI值大于或者等于所述第二预设阈值的蓝牙设备的通信连接 之后, 还包括: [Claim 5] The method according to any one of claims 1 to 4, wherein after establishing a communication connection between the terminal device and a Bluetooth device whose RSSI value is greater than or equal to the second preset threshold, Also includes: 若所述终端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙终 端连接成功, 则向所述用户发出连接成功的提示信息。  And if the terminal device successfully connects to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold, sending a prompt message to the user that the connection is successful. [权利要求 6] —种终端设备, 其特征在于, 所述终端设备包括: [Claim 6] The terminal device, wherein the terminal device includes: 扫描模块, 用于扫描所述终端设备预定范围内的蓝牙设备; 获取模块, 用于获取所述终端设备扫描到的蓝牙设备的接收信号的强 度指示 RSSI值;  a scanning module, configured to scan a Bluetooth device in a predetermined range of the terminal device; and an acquiring module, configured to acquire a strength indicator RSSI value of the received signal of the Bluetooth device scanned by the terminal device; 提示模块, 用于若所述终端设备扫描到的蓝牙设备的 RSSI值大于第 一预设阈值, 且小于第二预设阈值, 则提示用户移动所述终端设备, 其中, 所述第二预设阈值大于所述第一预设阈值; 建立模块, 用于若在所述终端设备移动的过程中, 检测到所述终端设 备扫描到的蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则 建立所述终端设备与 RSSI值大于或者等于所述第二预设阈值的蓝牙 设备的通信连接。  a prompting module, configured to: if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and less than a second preset threshold, prompting the user to move the terminal device, where the second preset The threshold is greater than the first preset threshold; the establishing module is configured to: when the terminal device moves, detecting that the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold And establishing a communication connection between the terminal device and a Bluetooth device whose RSSI value is greater than or equal to the second preset threshold. [权利要求 7] 如权利要求 6所述的终端设备, 其特征在于, 当所述终端设备扫描到 多个蓝牙设备吋;  [Claim 7] The terminal device according to claim 6, wherein when the terminal device scans a plurality of Bluetooth devices, 所述提示模块, 用于若所述终端设备扫描到的多个蓝牙设备的 RSSI 值的最大值大于所述第一预设阈值, 且小于所述第二预设阈值, 则提 示所述用户移动所述终端设备;  The prompting module is configured to prompt the user to move if a maximum value of an RSSI value of the plurality of Bluetooth devices scanned by the terminal device is greater than the first preset threshold and less than the second preset threshold The terminal device; 所述建立模块, 用于若在所述终端设备移动的过程中, 检测到所述终 端设备扫描到的多个蓝牙设备的 RSSI值的最大值大于或者等于所述 第二预设阈值, 则建立所述终端设备与最大的 RSSI值所对应的蓝牙 设备的通信连接。  The establishing module is configured to: if the maximum value of the RSSI value of the multiple Bluetooth devices scanned by the terminal device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establish The communication connection between the terminal device and the Bluetooth device corresponding to the largest RSSI value. [权利要求 8] 如权利要求 6所述的终端设备, 其特征在于, 所述终端设备还包括: 存储模块, 用于在扫描所述终端设备预定范围内的蓝牙设备之前, 在 所述终端设备中存储指定蓝牙设备的标识信息, 其中, 所述指定蓝牙 设备是需与所述终端设备建立通信连接的蓝牙设备; [Claim 8] The terminal device according to claim 6, wherein the terminal device further includes: a storage module, configured to: before scanning a Bluetooth device within a predetermined range of the terminal device, The terminal device stores the identification information of the specified Bluetooth device, where the designated Bluetooth device is a Bluetooth device that needs to establish a communication connection with the terminal device; 确定模块, 用于在所述在扫描所述终端设备预定范围内的蓝牙设备之 后, 若所述终端设备扫描到的蓝牙设备中存在标识信息与所述指定 蓝牙设备的标识信息相匹配的蓝牙设备, 则确定该蓝牙设备为所述指 定蓝牙设备;  a determining module, configured to: after the scanning of the Bluetooth device in the predetermined range of the terminal device, if there is a Bluetooth device in the Bluetooth device scanned by the terminal device that matches the identification information of the specified Bluetooth device Determining that the Bluetooth device is the designated Bluetooth device; 所述获取模块, 用于获取所述指定蓝牙设备的 RSSI值;  The obtaining module is configured to acquire an RSSI value of the specified Bluetooth device; 所述提示模块, 用于若所述指定蓝牙设备的 RSSI值大于所述第一预 设阈值, 且小于所述第二预设阈值, 则提示所述用户将所述终端设备 向所述指定蓝牙设备的方向移动;  The prompting module is configured to prompt the user to send the terminal device to the designated Bluetooth if the RSSI value of the specified Bluetooth device is greater than the first preset threshold and less than the second preset threshold. The direction of the device moves; 所述建立模块, 用于若在所述终端设备移动的过程中, 检测到所述指 定蓝牙设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述 终端设备与所述指定蓝牙设备的通信连接;  The establishing module is configured to: if the RSSI value of the specified Bluetooth device is greater than or equal to the second preset threshold, in the process of moving the terminal device, establishing the terminal device and the designated Bluetooth Communication connection of the device; 所述提示模块包括:  The prompt module includes: 获取单元, 用于若所述指定蓝牙设备的 RSSI值大于所述第一预设阈 值, 且小于所述第二预设阈值, 则获取所述指定蓝牙设备的位置信息 提示单元, 用于根据所述指定蓝牙设备的位置信息, 提示用户将所述 终端设备向所述指定蓝牙设备的方向移动。  An acquiring unit, configured to acquire a location information prompting unit of the specified Bluetooth device, if the RSSI value of the specified Bluetooth device is greater than the first preset threshold, and is smaller than the second preset threshold, Describe the location information of the Bluetooth device, prompting the user to move the terminal device in the direction of the designated Bluetooth device. [权利要求 9] 如权利要求 6至 8任一项所述的终端设备, 其特征在于, 所述终端设备 还包括: [Claim 9] The terminal device according to any one of claims 6 to 8, wherein the terminal device further includes: 信息发出模块, 用于若所述终端设备与 RSSI值大于或者等于所述第 二预设阈值的蓝牙终端连接成功, 则向所述用户发出连接成功的提示 f π息。  And an information sending module, configured to send a prompt to the user that the connection is successful if the terminal device successfully connects to the Bluetooth terminal whose RSSI value is greater than or equal to the second preset threshold. [权利要求 10] —种终端设备, 包括存储器、 处理器以及存储在所述存储器中并可在 所述处理器上运行的计算机程序, 其特征在于, 所述处理器执行所述 计算机程序吋实现以下步骤:  [Claim 10] A terminal device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the computer program The following steps: 扫描终端设备预定范围内的蓝牙设备; 获取所述终端设备扫描到的蓝牙设备的接收信号的强度指示 RSSI值 若所述终端设备扫描到的蓝牙设备的 RSSI值大于第一预设阈值, 且 小于第二预设阈值, 则提示用户移动所述终端设备, 其中, 所述第二 预设阈值大于所述第一预设阈值; Scanning a Bluetooth device within a predetermined range of the terminal device; Obtaining an intensity indication RSSI value of the received signal of the Bluetooth device scanned by the terminal device, if the RSSI value of the Bluetooth device scanned by the terminal device is greater than a first preset threshold, and is less than a second preset threshold, prompting the user to move The terminal device, where the second preset threshold is greater than the first preset threshold; 若在所述终端设备移动的过程中, 检测到所述终端设备扫描到的蓝牙 设备的 RSSI值大于或者等于所述第二预设阈值, 则建立所述终端设 备与 RSSI值大于或者等于所述第二预设阈值的蓝牙设备的通信连接 If the RSSI value of the Bluetooth device scanned by the terminal device is greater than or equal to the second preset threshold during the moving of the terminal device, establishing the terminal device and the RSSI value is greater than or equal to the Communication connection of the Bluetooth device of the second preset threshold
PCT/CN2017/084528 2017-05-16 2017-05-16 Bluetooth device connection method and terminal device Ceased WO2018209555A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/084528 WO2018209555A1 (en) 2017-05-16 2017-05-16 Bluetooth device connection method and terminal device
CN201780000346.3A CN107278380A (en) 2017-05-16 2017-05-16 Method for connecting bluetooth device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/084528 WO2018209555A1 (en) 2017-05-16 2017-05-16 Bluetooth device connection method and terminal device

Publications (1)

Publication Number Publication Date
WO2018209555A1 true WO2018209555A1 (en) 2018-11-22

Family

ID=60076508

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084528 Ceased WO2018209555A1 (en) 2017-05-16 2017-05-16 Bluetooth device connection method and terminal device

Country Status (2)

Country Link
CN (1) CN107278380A (en)
WO (1) WO2018209555A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115291A (en) * 2021-04-13 2021-07-13 深圳市康凯铭科技有限公司 Bluetooth automatic reconnection method and system based on low-power-consumption Bluetooth
CN116528201A (en) * 2023-03-29 2023-08-01 芯海科技(深圳)股份有限公司 Equipment networking method and device, electronic equipment and storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977175B (en) * 2017-11-06 2021-09-21 厦门盈趣科技股份有限公司 Wireless printer with information protection mechanism and control method thereof
CN109788441A (en) * 2017-11-13 2019-05-21 北京小鸟听听科技有限公司 A kind of information processing method, terminal and computer storage medium
CN112040461B (en) * 2019-06-03 2022-05-24 华为技术有限公司 Approach discovery method and device
CN110572805A (en) * 2019-09-10 2019-12-13 中化信息技术有限公司 Data transmission method, device, electronic device and computer readable medium
CN113068160B (en) * 2019-12-13 2022-05-20 纳恩博(北京)科技有限公司 Vehicle unlocking method, terminal and storage medium
CN112586006A (en) * 2019-12-31 2021-03-30 深圳市大疆创新科技有限公司 Communication system and method, movable platform and terminal equipment
CN112929860B (en) * 2021-01-21 2023-09-19 维沃移动通信有限公司 Bluetooth connection method, device and electronic device
CN116367094A (en) * 2021-12-27 2023-06-30 美的集团股份有限公司 A device management method and device
CN118138988A (en) * 2022-11-28 2024-06-04 中兴通讯股份有限公司 Bluetooth connection method, mobile terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149167A (en) * 2010-02-10 2011-08-10 正崴精密工业股份有限公司 Automatic pairing method for wireless network
CN105450268A (en) * 2015-12-02 2016-03-30 惠州Tcl移动通信有限公司 Bluetooth-based method and system for automatically connecting wearable device with mobile terminal
CN106535323A (en) * 2016-10-25 2017-03-22 广州创想科技股份有限公司 Method and device for selecting Bluetooth BLE communication device where Bluetooth bracelet is located

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1596538A1 (en) * 2004-05-10 2005-11-16 Sony Ericsson Mobile Communications AB Method and device for bluetooth pairing
JP5714985B2 (en) * 2011-06-06 2015-05-07 株式会社デンソー Near field communication device
CN103840857A (en) * 2014-03-12 2014-06-04 上海天奕达电子科技有限公司 Method and equipment for searching for Bluetooth equipment rapidly
CN104811896A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Method and device for confirming low-power-consumption Bluetooth connection
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN105828281B (en) * 2016-05-19 2020-06-02 北京小米移动软件有限公司 Equipment connection method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149167A (en) * 2010-02-10 2011-08-10 正崴精密工业股份有限公司 Automatic pairing method for wireless network
CN105450268A (en) * 2015-12-02 2016-03-30 惠州Tcl移动通信有限公司 Bluetooth-based method and system for automatically connecting wearable device with mobile terminal
CN106535323A (en) * 2016-10-25 2017-03-22 广州创想科技股份有限公司 Method and device for selecting Bluetooth BLE communication device where Bluetooth bracelet is located

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115291A (en) * 2021-04-13 2021-07-13 深圳市康凯铭科技有限公司 Bluetooth automatic reconnection method and system based on low-power-consumption Bluetooth
CN116528201A (en) * 2023-03-29 2023-08-01 芯海科技(深圳)股份有限公司 Equipment networking method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107278380A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
WO2018209555A1 (en) Bluetooth device connection method and terminal device
WO2019015404A1 (en) Method and apparatus for switching applications in split screen mode, and related device thereof
CN107241784B (en) Internet of things access method and device
WO2015043361A1 (en) Methods, devices, and systems for completing communication between terminals
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
TWI520043B (en) Method, device and moving terminal for examining messages
WO2015043194A1 (en) Virtual keyboard display method and apparatus, and terminal
WO2015090248A1 (en) Server overload protection method and device
WO2014026612A1 (en) Data transmission method, data transmission device and terminal provided with touch screen
WO2015032249A1 (en) Method, system, device and terminal for network initialization of multimedia playing device
CN106203035A (en) A data access control method and mobile terminal
AU2016422505A1 (en) Data sharing method and terminal
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
CN106327166A (en) Information processing method and mobile terminal
CN106658354B (en) Data transmission method and equipment
CN103389863A (en) Display control method and device
WO2017193496A1 (en) Application data processing method and apparatus, and terminal device
WO2015027856A1 (en) Information feedback method, apparatus, and terminal
CN108834132B (en) Data transmission method and equipment and related medium product
WO2019007371A1 (en) Method for preventing information from being stolen, storage device, and mobile terminal
WO2019011335A1 (en) Mobile terminal and control method therefor, and readable storage medium
CN106326073B (en) The method and mobile terminal of information processing
CN106951850A (en) Method and mobile terminal for controlling fingerprint identification module
WO2017206853A1 (en) Swiping response acceleration method and related products
CN107145386B (en) Data migration method, terminal device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17909939

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17909939

Country of ref document: EP

Kind code of ref document: A1