Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1A, a schematic structural diagram of an implementation environment according to an embodiment of the invention is shown. The implementation environment includes: a terminal 120 and a target device 140.
The terminal 120 may be a mobile phone, a tablet computer, an e-book reader, an MP3 player (Moving picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), an MP4 player (Moving picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), a laptop, a desktop computer, and the like. The terminal 120 is illustrated in fig. 1A as a bluetooth enabled smart phone.
The target device 140 may be a bluetooth dongle, a cell phone, a tablet, an e-book reader, an MP3 player, an MP4 player, or the like. The target device 140 is illustrated in fig. 1A as a bluetooth dongle. The Bluetooth anti-lost device is internally provided with a Bluetooth chip with low power consumption, and the Bluetooth anti-lost device is usually made into a small-sized label shape, so that the Bluetooth anti-lost device can be conveniently matched with personal articles such as keys, wallets and the like.
Optionally, the terminal 120 and the target device 140 are bound in advance, and a binding relationship exists between the two. The terminal 120 and the target device 140 communicate via a bluetooth connection.
Referring to fig. 1B, a schematic structural diagram of another implementation environment provided by the embodiment of the invention is shown. The implementation environment includes: a terminal 120, a server 160, a second terminal 160, and a target device 140.
The first terminal 120 may be a mobile phone, a tablet computer, an e-book reader, an MP3 player (Moving picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), an MP4 player (Moving picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), a laptop, a desktop computer, or the like. The terminal 120 is illustrated in fig. 1B as a bluetooth enabled smart phone.
The target device 140 may be a bluetooth dongle, a cell phone, a tablet, an e-book reader, an MP3 player, an MP4 player, or the like. The target device 140 is illustrated in fig. 1B as a bluetooth dongle. The Bluetooth anti-lost device is internally provided with a Bluetooth chip with low power consumption, and the Bluetooth anti-lost device is usually made into a small-sized label shape, so that the Bluetooth anti-lost device can be conveniently matched with personal articles such as keys, wallets and the like.
Optionally, the terminal 120 and the target device 140 are bound in advance, and a binding relationship exists between the two. The terminal 120 and the target device 140 communicate via a bluetooth connection.
The server 160 may be a server, a server cluster composed of a plurality of servers, or a cloud computing center. The server 146 is connected to the terminal 120 through a wireless network or a wired network, and is connected to a plurality of second terminals 160 through a wireless network or a wired network.
The second terminal 160 may be a cell phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, a desktop computer, and the like. The second terminal 160 is illustrated in fig. 1B as a bluetooth enabled smart phone.
If the method for positioning a device provided by the embodiment of the present invention is packaged as a functional module, when the functional module is integrated into a certain application, both the terminal 120 and the second terminal 160 install and run the application.
The target device 140 may be a bluetooth dongle, a cell phone, a tablet, an e-book reader, an MP3 player, an MP4 player, or the like. The target device 140 is illustrated in fig. 1B as a bluetooth dongle. The Bluetooth anti-lost device is internally provided with a Bluetooth chip with low power consumption, and the Bluetooth anti-lost device is usually made into a small-sized label shape, so that the Bluetooth anti-lost device can be conveniently matched with personal articles such as keys, wallets and the like.
Referring to fig. 2, a flowchart of a method for locating a device according to an embodiment of the present invention is shown. The present embodiment is exemplified by the method of locating a device being applied to the terminal 120 in the above implementation environment. The method comprises the following steps:
step 202, acquiring real-time geographic position and Bluetooth connection state of target equipment at regular time, wherein the Bluetooth connection state comprises a connection state and a disconnection state;
step 204, generating a connection record corresponding to the target equipment according to the geographic position and the Bluetooth connection state;
the following table one schematically shows the connection record:
| recording time | Bluetooth connection status | Real-time geographic location |
| 10:11:00 a day | Connected state | Site A |
| 10:11:05 a day | Connected state | Site B |
| 10:11:10 at a certain day | Connected state | Site C |
| 10:11:15 a day | Disconnected state | Site D |
Watch 1
Optionally, the terminal always generates connection records, and each connection record corresponds to: record time, bluetooth connection status, and real-time geographic location.
And step 206, carrying out Bluetooth positioning on the target equipment according to the connection record.
When the target equipment needs to be subjected to Bluetooth positioning, the terminal acquires the historical appearance position of the target equipment through the connection record of the historical record, and then performs Bluetooth positioning on the target equipment at the historical appearance position which may exist in the target equipment.
In summary, in the method for positioning a device provided in the embodiment of the present invention, the real-time geographic location and the bluetooth connection state of the target device are recorded to obtain the corresponding connection record, and the target device is bluetooth-positioned according to the connection record; the problem that the user cannot perform Bluetooth positioning when not knowing the approximate position of the Bluetooth anti-lost device is solved; the effect of acquiring the approximate position of the target equipment according to the connection records of the history records is achieved, and therefore the target equipment can be positioned in a Bluetooth mode.
Referring to fig. 3, a flowchart of a method for locating a device according to another embodiment of the present invention is shown. The embodiment is exemplified by applying the method of the positioning device to the terminal 120. The method comprises the following steps:
step 301, acquiring real-time geographic position and Bluetooth connection state of a target device at regular time, wherein the Bluetooth connection state comprises a connection state and a disconnection state;
due to the binding relationship between the terminal and the target device, the terminal and the target device can keep the Bluetooth connection state for a long time. However, when the target device is far away from the terminal, the bluetooth connection between the terminal and the target device is disconnected.
The terminal acquires the real-time geographic position of the terminal and the Bluetooth connection state of the target device at preset time intervals, such as once every 5 seconds or once every 30 seconds.
The predetermined time interval may be set by a user.
The bluetooth connection state includes an in-connection state and a disconnection state.
Step 302, generating a connection record corresponding to the target device according to the geographic position and the Bluetooth connection state;
and the terminal generates a connection record corresponding to the target equipment according to the geographical position and the Bluetooth connection state acquired each time.
Each connection record corresponds to: record time, bluetooth connection status, and real-time geographic location.
Step 303, displaying the historical track of the target device on a map according to the connection record;
when receiving a viewing instruction sent by a user, the terminal may display a history track of the target device on the map according to the connection record. Optionally, the historical track is represented using a number of indicator tags.
The terminal selects the latest n connection records, generates each connection record as an indication label on the map, and uses the number i to represent that the connection record corresponding to the indication label is the ith connection record from the latest to the latest, or the ith connection record from the latest to the latest.
As shown in fig. 4, the terminal selects the last 6 connection records, each of which generates anindication tag 40 located on the map. The number i on theindication label 40 is used for the connection record corresponding to the indication label, which is the latest to the i-th connection record.
The location on the map pointed to by eachindicator tag 40 is the geographic location in the connection record.
Eachindicator tab 40 may be selected by a user. When one of the indication labels 40 is selected, the terminal may further display the recording time and the geographical position in the text form in the connection record corresponding to theindication label 40 under the map so as to be in connection record corresponding to theindication label 40.
Indicator tag 40 may also use a different color to indicate the bluetooth connection status in the corresponding connection record. For example, when theindication tag 40 adopts the first tag, it indicates that the bluetooth connection state in the corresponding connection record is the connection-in state; when the second tag is used as theinstruction tag 40, it indicates that the bluetooth connection state in the corresponding connection record is a disconnected state.
For example, after the 6 th indicator tab in fig. 4 is selected, the "2015 year 6 month 30 day 10:11: 30 ' and ' Hangzhou city western lake area Jiang village xi Ling national wetland park north '.
Step 304, receiving a Bluetooth broadcast message in a current area when receiving a positioning instruction triggered according to a historical track;
the user can check each connection record in the history track, and when the user checks the latest connection record that the Bluetooth connection state is the connection state. The geographical location in the connection record is the geographical location where the target device last appeared.
Then, the user judges whether the current geographic position of the user belongs to the same area as the geographic position of the target device when the user appears for the last time, if the current geographic position of the user belongs to the same area, the Bluetooth positioning function is directly started, and the target device is positioned in a Bluetooth mode; if the terminal does not belong to the same area, the user can move the terminal to the geographical position of the last occurrence and then start the Bluetooth positioning function to perform Bluetooth positioning on the target equipment.
And 305, performing Bluetooth positioning on the target equipment according to the received Bluetooth broadcast message.
The target device sends a Bluetooth broadcast message to the outside periodically, wherein the Bluetooth broadcast message carries a first identifier of the target device. The first identification is an identification adopted by the device when identifying the identity of the device in the Bluetooth broadcast message. Optionally, the first identifier includes: a protocol name and a MAC (Media Access Control) address. Optionally, the protocol name is "QQ association".
Optionally, the terminal performs bluetooth positioning on the target device according to the received bluetooth broadcast message, including the following steps:
firstly, a terminal detects whether a first identifier carried by a received Bluetooth broadcast message is a first identifier of a target device;
secondly, if the first identification is the first identification of the target equipment, establishing Bluetooth connection with equipment for sending the Bluetooth broadcast message, and acquiring a second identification of the equipment through the Bluetooth connection;
since different devices may have the same first identifier, even if the first identifier in the bluetooth broadcast message is the first identifier of the target device, the device sending the bluetooth broadcast message is not represented as the target device.
Therefore, after the terminal establishes the bluetooth connection with the device sending the bluetooth broadcast message, the terminal acquires the second identifier from the device.
Thirdly, detecting whether the second identifier is the second identifier of the target device;
fourthly, if the second identification is the second identification of the target equipment, the current geographic position is determined to be the position of the target equipment.
Fifthly, if the second identifier is not the second identifier of the target device, the second identifier is discarded.
Optionally, after confirming that the first identifier is the first identifier of the target device, the terminal displays the bluetooth broadcast message or the signal strength of the bluetooth connection in real time. The signal strength may direct the user to move the terminal in a direction in which the signal strength becomes higher.
Optionally, after the bluetooth connection is successfully established, the terminal further displays a reminder button. When the reminding button is pressed, the terminal sends a reminding instruction to the target equipment through the Bluetooth connection, and the reminding instruction is used for indicating the target equipment to carry out at least one of vibration reminding, ring reminding and light reminding.
As shown in fig. 5, the terminal may display anumerical value 52 on the signal strength on theuser interface 50. When the user terminal is present, the value will change accordingly. The user can move the terminal toward a direction in which the signal strength becomes high, thereby finding the target device.
The terminal may also display avirtual reminder button 54 on theuser interface 50, thereminder button 54 being non-clickable when a bluetooth connection is not successfully established; thereminder button 54 becomes clickable upon successful establishment of a bluetooth connection. If the user clicks theprompt button 54, the terminal sends a prompt instruction to the target device through the bluetooth connection, and the target device sends out a buzzer sound after receiving the prompt instruction.
In summary, the method for positioning a device according to this embodiment obtains a corresponding connection record by recording a real-time geographic location and a bluetooth connection state of a target device, and performs bluetooth positioning on the target device according to the connection record; the problem that the user cannot perform Bluetooth positioning when not knowing the approximate position of the Bluetooth anti-lost device is solved; the effect of acquiring the approximate position of the target equipment according to the connection records of the history records is achieved, and therefore the target equipment can be positioned in a Bluetooth mode.
The embodiment also realizes the effect that the user can search the target device according to the signal intensity by displaying the Bluetooth broadcast message or the signal intensity of the Bluetooth connection in real time.
In this embodiment, by providing the reminding button, after the terminal is physically connected to the target device, the target device makes a sound, vibration or light reminding, so that the user can find the target device more easily.
Referring to fig. 6, a flowchart of a method for locating a device according to another embodiment of the invention is shown. The embodiment is exemplified by applying the method of the positioning device to the terminal 120. The method comprises the following steps:
step 601, acquiring real-time geographic position and Bluetooth connection state of target equipment at regular time, wherein the Bluetooth connection state comprises a connection state and a disconnection state;
due to the binding relationship between the terminal and the target device, the terminal and the target device can keep the Bluetooth connection state for a long time. However, when the target device is far away from the terminal, the bluetooth connection between the terminal and the target device is disconnected.
The terminal acquires the real-time geographic position of the terminal and the Bluetooth connection state of the target device at preset time intervals, such as once every 5 seconds or once every 30 seconds.
The predetermined time interval may be set by a user.
The bluetooth connection state includes an in-connection state and a disconnection state.
Step 602, generating a connection record corresponding to the target device according to the geographic position and the bluetooth connection state;
and the terminal generates a connection record corresponding to the target equipment according to the geographical position and the Bluetooth connection state acquired each time.
Each connection record corresponds to: record time, bluetooth connection status, and real-time geographic location.
Step 603, acquiring the latest connection record of which the Bluetooth connection state is the connection state;
when the target device needs to be positioned, the terminal acquires the latest connection record of which the Bluetooth connection state is the connection state from the plurality of connection records of the history records.
For example, the third connection record in table one is the last connection record of "the bluetooth connection state is the connection state".
Step 604, reading the geographical position in the last connection record;
and after the last connection record that the Bluetooth connection state is the connection state is acquired, the terminal reads the geographical position in the last connection record. The geographical location is the last occurrence of the target device recorded by the terminal.
Step 605, detecting whether the distance between the read geographical position and the current geographical position is smaller than a preset distance;
the preset threshold is usually set by the receiving distance of the bluetooth broadcast message, for example, 50 meters.
That is, if the value is smaller than the preset threshold, the terminal can perform short-range bluetooth positioning on the target device, and then the process goes to step 606.
If the current position is not less than the preset threshold value, the terminal may not be able to successfully perform short-range bluetooth positioning even if the target device is at the last-occurring position at the time. At this point, the terminal may enable remote bluetooth positioning, proceeding to step 608.
Step 606, receiving the bluetooth broadcast message in the current area if the distance is less than the receiving distance of the bluetooth broadcast message;
step 607, performing bluetooth positioning on the target device according to the received bluetooth broadcast message.
This step is the same as or similar to step 305, and is not described again in this embodiment.
Step 608, if the distance is greater than the preset distance, a positioning request carrying the read geographic location and the first identifier of the target device is generated.
The first identification is an identification adopted when the equipment identifies the identity of the equipment in the Bluetooth broadcast message;
if the distance is greater than the preset distance, the terminal is likely to be unable to perform bluetooth positioning on the target device smoothly. The terminal needs to start remote bluetooth positioning, and at this time, the terminal generates a positioning request.
The location request carries: a first identification of the target device, and a geographical location read by the terminal from the last connection record.
Optionally, the positioning request further carries: and searching for the distance. The search distance may be set manually by the user, such as 200 meters, 500 meters, or 1 kilometer.
Step 609, sending the positioning request to the server so that the server sends a positioning instruction to at least one other device located in the area where the geographic position is located, wherein the positioning instruction is used for instructing the other device to perform bluetooth positioning on the target device.
The terminal sends the positioning request to the server.
The server obtains the geographic position and the search distance in the positioning request, and determines the target area by taking the geographic position as the center and the search distance as the radius. And if the locating request does not carry the searching distance, the server uses the default searching distance.
Then, the server searches n other devices with the current geographic position in the target area, and sends a positioning instruction to the found n other devices, wherein the positioning instruction carries the first identifier of the target device. And other equipment carries out Bluetooth positioning on the target equipment according to the first identifier of the target equipment and sends respective Bluetooth positioning results to the server. Optionally, each bluetooth positioning result comprises: the geographic location of the target device at the time of discovery, or the target device is not discovered.
The server collects the received Bluetooth positioning results and determines the final positioning result to feed back to the terminal. And the terminal receives and displays the feedback result.
For example, the server receives only a bluetooth positioning result sent by another device, where the bluetooth positioning result carries a geographic location, and the server determines the geographic location as a final positioning result.
For another example, the server receives bluetooth positioning results sent by a plurality of other devices, and each bluetooth positioning result carries a plurality of geographic positions, and then the server determines the central positions of the plurality of geographic positions as final positioning results.
It should be noted thatstep 608 may also be triggered manually by the user.
In summary, the method for positioning a device according to this embodiment obtains a corresponding connection record by recording a real-time geographic location and a bluetooth connection state of a target device, and performs bluetooth positioning on the target device according to the connection record; the problem that the user cannot perform Bluetooth positioning when not knowing the approximate position of the Bluetooth anti-lost device is solved; the effect of acquiring the approximate position of the target equipment according to the connection records of the history records is achieved, and therefore the target equipment can be positioned in a Bluetooth mode.
The embodiment also realizes the effect that the user can search the target device according to the signal intensity by displaying the Bluetooth broadcast message or the signal intensity of the Bluetooth connection in real time.
In this embodiment, by providing the reminding button, after the terminal is physically connected to the target device, the target device makes a sound, vibration or light reminding, so that the user can find the target device more easily.
The embodiment also enables the remote positioning instruction when the distance between the current geographic position of the terminal and the latest occurrence position of the target device is greater than a preset threshold. The server and other equipment auxiliary terminals complete the Bluetooth positioning of the target equipment, and the remote positioning function of the target equipment can be realized.
Referring to fig. 7, a block diagram of an apparatus of a positioning device according to an embodiment of the present invention is shown. The means of the positioning device may be implemented as all or part of a terminal, in software, hardware or a combination of both. The device for positioning the equipment comprises:
atiming obtaining module 720, configured to obtain a real-time geographic location and a bluetooth connection status of a target device at a fixed time, where the bluetooth connection status includes a connection status and a disconnection status;
arecord generating module 740, configured to generate the connection record corresponding to the target device according to the geographic location and the bluetooth connection state;
and thebluetooth positioning module 760 is configured to perform bluetooth positioning on the target device according to the connection record.
In summary, the apparatus for positioning a device provided in this embodiment obtains a corresponding connection record by recording a real-time geographic location and a bluetooth connection state of a target device, and performs bluetooth positioning on the target device according to the connection record; the problem that the user cannot perform Bluetooth positioning when not knowing the approximate position of the Bluetooth anti-lost device is solved; the effect of acquiring the approximate position of the target equipment according to the connection records of the history records is achieved, and therefore the target equipment can be positioned in a Bluetooth mode.
Referring to fig. 8, a block diagram of an apparatus of a positioning device according to an embodiment of the present invention is shown. The means of the positioning device may be implemented as all or part of a terminal, in software, hardware or a combination of both. The device for positioning the equipment comprises:
atiming obtaining module 720, configured to obtain a real-time geographic location and a bluetooth connection status of a target device at a fixed time, where the bluetooth connection status includes a connection status and a disconnection status;
arecord generating module 740, configured to generate the connection record corresponding to the target device according to the geographic location and the bluetooth connection state;
and thebluetooth positioning module 760 is configured to perform bluetooth positioning on the target device according to the connection record.
Optionally, thebluetooth positioning module 760 includes:
atrajectory display unit 762 configured to display a history trajectory of the target device on a map according to the connection record;
amessage receiving unit 764, configured to receive a bluetooth broadcast message in a current area when receiving a positioning instruction triggered according to the historical track;
abluetooth positioning unit 768, configured to perform bluetooth positioning on the target device according to the received bluetooth broadcast message.
Optionally, thebluetooth positioning module 760 includes:
arecord acquiring unit 761, configured to acquire a last connection record that the bluetooth connection status is a connection status;
alocation reading unit 763, configured to read a geographic location in the last connection record;
adistance detection unit 765, configured to detect whether a distance between the read geographical location and the current geographical location is smaller than a preset distance;
amessage receiving unit 767, configured to receive a bluetooth broadcast message in a current area if the distance is smaller than the preset distance;
abluetooth positioning unit 768, configured to perform bluetooth positioning on the target device according to the received bluetooth broadcast message.
Optionally, thebluetooth positioning unit 768 is configured to:
detecting whether a first identifier carried by the received Bluetooth broadcast message is a first identifier of the target device; the first identification is an identification adopted when the equipment identifies the identity of the equipment in the Bluetooth broadcast message;
if the first identification is the first identification of the target equipment, establishing Bluetooth connection with equipment sending the Bluetooth broadcast message, and acquiring a second identification of the equipment through the Bluetooth connection;
detecting whether the second identifier is a second identifier of the target device;
and if the second identifier is the second identifier of the target device, determining that the current geographic position is the position of the target device.
Optionally, the apparatus further comprises:
anintensity display unit 766, configured to display, in real time, the bluetooth broadcast message or the signal intensity of the bluetooth connection if the first identifier is the first identifier of the target device.
Optionally, the apparatus further comprises:
and theinstruction sending unit 769 is configured to send a reminding instruction to the target device through the bluetooth connection, where the reminding instruction is used to instruct the target device to perform at least one of vibration reminding, ring reminding, and light reminding.
Optionally, the apparatus further comprises: (not shown in the figure)
A request generating unit, configured to generate a positioning request carrying the read geographic location and a first identifier of the target device if the distance is greater than the preset distance, where the first identifier is an identifier used by the device to identify its own identity in a bluetooth broadcast message;
a request sending unit, configured to send the location request to a server, so that the server sends a location instruction to at least one other device located in an area where the geographic location is located, where the location instruction is used to instruct the other device to perform bluetooth location on the target device;
and the result receiving unit is used for receiving the positioning result fed back by the server, and the positioning result is obtained by the server according to the Bluetooth positioning result of the other equipment for carrying out Bluetooth positioning on the target equipment.
In summary, the apparatus for positioning a device provided in this embodiment obtains a corresponding connection record by recording a real-time geographic location and a bluetooth connection state of a target device, and performs bluetooth positioning on the target device according to the connection record; the problem that the user cannot perform Bluetooth positioning when not knowing the approximate position of the Bluetooth anti-lost device is solved; the effect of acquiring the approximate position of the target equipment according to the connection records of the history records is achieved, and therefore the target equipment can be positioned in a Bluetooth mode.
The embodiment also realizes the effect that the user can search the target device according to the signal intensity by displaying the Bluetooth broadcast message or the signal intensity of the Bluetooth connection in real time.
In this embodiment, by providing the reminding button, after the terminal is physically connected to the target device, the target device makes a sound, vibration or light reminding, so that the user can find the target device more easily.
The embodiment also enables the remote positioning instruction when the distance between the current geographic position of the terminal and the latest occurrence position of the target device is greater than a preset threshold. The server and other equipment auxiliary terminals complete the Bluetooth positioning of the target equipment, and the remote positioning function of the target equipment can be realized.
Referring to fig. 9, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown. The terminal 900 is adapted to implement the method of positioning the device provided in the above embodiments, in particular:
the terminal 900 may include RF (Radio Frequency)circuitry 910, memory 920 including one or more computer-readable storage media, aninput unit 930, adisplay unit 940, asensor 950,audio circuitry 960, a short-rangewireless transmission module 970, aprocessor 980 including one or more processing cores, and apower supply 990. Those skilled in the art will appreciate that the terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
theRF circuit 910 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one ormore processors 980; in addition, data relating to uplink is transmitted to the base station. In general,RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, theRF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (short messaging Service), etc. The memory 920 may be used to store software programs and modules, for example, the memory 920 may be used to store a preset time list, a software program for collecting voice signals, a software program for implementing keyword recognition, a software program for implementing continuous voice recognition, a software program for implementing setting reminders, a binding relationship between the wireless access point and the user account, and the like. Theprocessor 980 executes various functional applications and data processing such as a function of "receiving a search line graphically input", a function of "detecting whether there is an information model matching the search line" in the embodiment of the present invention, and the like, by executing software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 900, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 920 may also include a memory controller to provide theprocessor 980 and theinput unit 930 with access to the memory 920.
Theinput unit 930 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, theinput unit 930 may include a touch-sensitive surface 931 as well asother input devices 932. The touch-sensitive surface 931, also referred to as a touch screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 931 (e.g., operations by a user on or near the touch-sensitive surface 931 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connecting device according to a predetermined program. Alternatively, the touchsensitive surface 931 may include both a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 980, and can receive and execute commands sent by theprocessor 980. In addition, the touchsensitive surface 931 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. Theinput unit 930 may also includeother input devices 932 in addition to the touch-sensitive surface 931. In particular,other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Thedisplay unit 940 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal 900, which may be made up of graphics, text, icons, video, and any combination thereof. TheDisplay unit 940 may include aDisplay panel 941, and optionally, theDisplay panel 941 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 931 may overlay thedisplay panel 941, and when a touch operation is detected on or near the touch-sensitive surface 931, the touch operation is transmitted to theprocessor 980 to determine the type of touch event, and theprocessor 980 then provides a corresponding visual output on thedisplay panel 941 according to the type of touch event. Although in FIG. 9 the touch-sensitive surface 931 and thedisplay panel 941 are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface 931 and thedisplay panel 941 may be integrated to implement input and output functions.
The terminal 900 can also include at least onesensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of thedisplay panel 941 according to the brightness of ambient light, and a proximity sensor that may turn off thedisplay panel 941 and/or a backlight when the terminal 900 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 900, detailed descriptions thereof are omitted.
Audio circuitry 960 includes aspeaker 961 and amicrophone 962, andmicrophone 962 may provide an audio interface between a user andterminal 900. Theaudio circuit 960 may transmit the electrical signal converted from the received audio data to thespeaker 961, and convert the electrical signal into a sound signal for output by thespeaker 961; on the other hand, the microphone 992 converts collected sound signals into electrical signals, converts the electrical signals into audio data after being received by theaudio circuit 960, and then outputs the audio data to theprocessor 980 for processing, and then transmits the audio data to another terminal via theRF circuit 910, or outputs the audio data to the memory 920 for further processing. Theaudio circuit 960 may also include an earbud jack to provide communication of peripheral headphones with the terminal 900.
The short-distancewireless transmission module 970 may be a WIFI (wireless fidelity) module or a bluetooth module. The terminal 900, which can facilitate a user to send and receive e-mails, browse web pages, access streaming media, etc., provides a wireless broadband internet access to the user through the short-rangewireless transmission module 970. Although fig. 9 shows the short-rangewireless transmission module 970, it is understood that it does not belong to the essential constitution of the terminal 900 and can be omitted entirely within the scope not changing the essence of the invention as needed.
Theprocessor 980 is a control center of the terminal 900, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal 900 and processes data by running or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the terminal. Optionally,processor 980 may include one or more processing cores; alternatively,processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, and applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into theprocessor 980.
The terminal 900 also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may be logically connected to theprocessor 980 via a power management system, for managing charging, discharging, and power consumption via the power management system.Power supply 990 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 900 may further include a camera, a bluetooth module, etc., which will not be described herein.
Terminal 900 also includes memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors to perform the method of locating a device as described in the various method embodiments above.
It should be noted that: when the apparatus for positioning a device according to the foregoing embodiment positions a bluetooth device, only the division of the functional modules is described as an example, in practical application, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for positioning device and the method embodiment for positioning device provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.