Disclosure of Invention
It is an object of the present invention to provide a new solution that enables the location of a target bluetooth device.
According to a first aspect of the present invention, there is provided a method of locating a target bluetooth device, comprising:
performing Bluetooth scanning by a target Bluetooth device to obtain Bluetooth information broadcasted by at least one relay Bluetooth device, and transmitting the Bluetooth information so as to enable a mobile terminal to receive all or part of the Bluetooth information of the relay Bluetooth device, wherein the Bluetooth information comprises an identification code of the relay Bluetooth device and a Bluetooth signal intensity value between the relay Bluetooth device and the target Bluetooth device;
acquiring the identification code of the target Bluetooth device by the mobile terminal;
receiving, by the mobile terminal, the bluetooth information of all or part of the relay bluetooth devices;
broadcasting, by the target Bluetooth device, an identification code of the target Bluetooth device via Bluetooth;
continuously scanning current Bluetooth broadcast data through Bluetooth by the mobile terminal to acquire a Bluetooth device list;
the mobile terminal judges whether the identification code of at least one Bluetooth device in the Bluetooth device list is matched with the identification code of at least one relay Bluetooth device contained in the Bluetooth information of all or part of relay Bluetooth devices, if so, the mobile terminal:
displaying, by the mobile terminal, the matched identification code and the real-time signal strength between the matched relay Bluetooth device and the mobile terminal, so as to guide a user to approach the matched relay Bluetooth device; and the number of the first and second groups,
judging whether the Bluetooth device list comprises the identification code of the target Bluetooth device or not by the mobile terminal, if so, then:
and displaying the identification code of the target Bluetooth device and the real-time signal strength between the target Bluetooth device and the mobile terminal by the mobile terminal so as to guide a user to locate the target Bluetooth device.
Optionally, the method further includes:
the target Bluetooth device acquires the position information of the target Bluetooth device and sends the position information so that the mobile terminal receives the position information of the target Bluetooth device;
acquiring the position information of the target Bluetooth equipment by the mobile terminal;
and displaying the position information of the target Bluetooth equipment by the mobile terminal so as to be used for positioning the target Bluetooth equipment by a user.
Optionally, the obtaining, by the mobile terminal, the identification code of the target bluetooth device includes:
and the mobile terminal acquires the position information of the target Bluetooth device selected by the user, and acquires the identification code of the target Bluetooth device from the server according to the position information of the target Bluetooth device, wherein the identification code of the target device is determined by the server according to the position information of the target Bluetooth device.
Optionally, the displaying, by the mobile terminal, the matched identification code and the real-time signal strength between the matched relay bluetooth device and the mobile terminal include:
and the mobile terminal displays the matched identification code and the real-time signal strength between the matched relay Bluetooth device and the mobile terminal according to the sequence of the Bluetooth signal strength values between the matched relay Bluetooth device and the target Bluetooth device.
Optionally, the target bluetooth device is a shared article, and the method further includes:
under the condition that the shared object comprises the identification code of the target Bluetooth device in the Bluetooth device list, judging whether the real-time signal intensity between the target Bluetooth device and the mobile terminal is greater than a preset threshold value, if so, then:
sending an unlocking instruction by the mobile terminal so that the shared article receives the unlocking instruction;
and receiving the unlocking instruction by the shared object, and unlocking according to the unlocking instruction.
Optionally, the mobile terminal receives part of the bluetooth information of the relay bluetooth device, and the method further includes:
the target Bluetooth device sends the Bluetooth information broadcast by the relay Bluetooth device to a server;
and the server screens out part of the Bluetooth information of the relay Bluetooth equipment from the Bluetooth information broadcast by the relay Bluetooth equipment according to the Bluetooth signal intensity value between each relay Bluetooth equipment and the target Bluetooth equipment, and sends the part of the Bluetooth information to the mobile terminal.
Optionally, the method further includes:
and updating the Bluetooth equipment list according to the scanning frequency of the mobile terminal.
According to a second aspect of the present invention, there is provided a mobile terminal comprising:
the identification code acquisition module is used for acquiring an identification code of the target Bluetooth device;
the receiving module is used for receiving the Bluetooth information of all or part of the relay Bluetooth devices scanned by the target Bluetooth device, wherein the Bluetooth information comprises an identification code corresponding to the relay Bluetooth device and a Bluetooth signal intensity value between the corresponding relay Bluetooth device and the target Bluetooth device, and the Bluetooth information of each relay Bluetooth device is obtained by scanning the target Bluetooth device and is sent;
the scanning module is used for continuously scanning the current Bluetooth broadcast data through Bluetooth to acquire a Bluetooth device list;
the first judgment module is used for judging whether the identification code of at least one Bluetooth device in the Bluetooth device list is matched with the identification code of at least one relay Bluetooth device contained in the Bluetooth information of all or part of relay Bluetooth devices;
the first display module is used for displaying the matched identification code and the real-time signal strength between the matched relay Bluetooth equipment and the mobile terminal under the condition that the judgment result of the first judgment module is yes, so as to guide a user to approach the matched relay Bluetooth equipment;
the second judging module is used for judging whether the Bluetooth device list comprises the identification code of the target Bluetooth device;
and the second display module is used for displaying the identification code of the target Bluetooth device and the real-time signal strength between the target Bluetooth device and the mobile terminal under the condition that the judgment result of the second judgment module is yes, so as to guide a user to position the target Bluetooth device.
Optionally, the mobile terminal further includes:
the position acquisition module is used for acquiring the position information of the target Bluetooth equipment, wherein the position information of the target Bluetooth equipment is acquired and sent by the target Bluetooth equipment;
and the position display module is used for displaying the position information of the target Bluetooth equipment so as to be used for positioning the target Bluetooth equipment by a user.
Optionally, the identification code obtaining module is further configured to:
the method comprises the steps of obtaining position information of the target Bluetooth device selected by a user, and obtaining an identification code of the target Bluetooth device from a server according to the position information of the target Bluetooth device, wherein the identification code of the target device is determined by the server according to the position information of the target Bluetooth device.
Optionally, the first display module is further configured to:
and displaying the matched identification code and the real-time signal strength between the matched relay Bluetooth device and the mobile terminal according to the sequence of the Bluetooth signal strength values between the matched relay Bluetooth device and the target Bluetooth device.
Optionally, the mobile terminal further includes:
the intensity judging module is used for judging whether the intensity of a real-time signal between the target Bluetooth device and the mobile terminal is greater than a preset threshold value or not under the condition that the Bluetooth device list comprises the identification code of the target Bluetooth device;
and the instruction sending module is used for sending an unlocking instruction under the condition that the judgment result of the strength judgment module is yes, so that the shared article receives the unlocking instruction and unlocks according to the unlocking instruction.
Optionally, the mobile terminal further includes:
and the updating module is used for updating the Bluetooth equipment list according to the scanning frequency of the mobile terminal.
According to a third aspect of the present invention, there is provided a system for locating a target bluetooth device, comprising a target bluetooth device and a mobile terminal according to the second aspect of the present invention, wherein the target bluetooth device and the mobile terminal are configured to perform the method according to the first aspect of the present invention.
The method has the advantages that when the mobile terminal is not in the broadcasting range of the target Bluetooth device, the relay Bluetooth device can locate the target Bluetooth device, so that the searching range of the target Bluetooth device can be expanded, and a user can more easily locate the target Bluetooth device.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< Overall architecture of System for locating target Bluetooth device >
Fig. 3 is a diagram showing the overall architecture of a system for locating a target bluetooth device according to an embodiment of the present invention.
As shown in fig. 3, the system for locating a target bluetooth device may include a mobile terminal 4000, a server 2000 and a target bluetooth device 1000, which may establish communication connections with each other through a wireless network 3000.
The target bluetooth device 1000 has an identification code for uniquely identifying the corresponding shared item, which may be a two-dimensional code and/or a number, which may be composed of numbers and/or characters.
The user may scan the two-dimensional code on the target bluetooth device 1000 through the mobile terminal 4000, and then send the two-dimensional code information to the server 2000 to perform an unlocking operation.
The user may also input or recognize the identification code on the target bluetooth device 1000 through the mobile terminal 4000, and then transmit the identification code information to the server 2000 to perform the unlocking operation.
When a user scans a two-dimensional code on the target bluetooth device 1000 or inputs an identification code through the mobile terminal 4000, it is necessary to use functions of the mobile terminal 4000, such as a flashlight function, a pointing function, a camera function, etc., of the mobile terminal 4000.
In the present invention, the mobile terminal 4000 may transmit or receive a signal through a manner such as wired or wireless network, or may process or store the signal in a physical storage state such as a memory. Each mobile terminal may be an electronic device including hardware, software, or embedded logic components, or a combination of two or more such components, and capable of performing appropriate functions implemented or supported by the mobile terminal. For example, the mobile terminal may be a smartphone, a tablet, a portable email device, an electronic book, a handheld game console and/or game controller, a laptop computer, a netbook, a handheld electronic device, a smart wearable device, and so forth. The present invention encompasses any suitable mobile terminal. The mobile terminal may enable a user using the mobile terminal to access the network.
The mobile terminal 4000 may include: a processing device including an application processing section and a radio frequency/digital signal processor; but may also include ROM, RAM, flash memory, or any combination thereof.
In addition, various client applications may be installed on mobile terminal 4000 that may be used to allow commands appropriate for operation with other devices to be transmitted using mobile terminal 4000. Such applications may be downloaded from a server and installed into the memory of mobile terminal 4000 or may have been previously installed on mobile terminal 4000. In the present invention, the mobile terminal 4000 is installed with a vehicle user terminal application, which can help a user to implement a function of using the target bluetooth device 1000.
The server 2000 as referred to herein should be understood to provide a service point for processes, databases, and communications facilities. By way of example, a server may refer to a single physical processor with associated communications and data storage and database facilities, or it may refer to an aggregation of networked or clustered processors, associated networks and storage devices, and operating on software and one or more database systems and application software supporting the services provided by the server. Servers may vary widely in configuration or performance, but typically may include one or more central processing units and memory. The Server also includes one or more mass storage devices, one or more power supplies, one or more wired or wireless network interfaces, one or more input/output interfaces, or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and so forth. In particular, the server 2000 may be a unitary server or a distributed server across multiple computers or computer data centers. The server may be of various types, such as, but not limited to, a web server, a news server, a mail server, a message server, an advertisement server, a file server, an application server, an interaction server, a database server, or a proxy server. In some embodiments, each server may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported or implemented by the server. In the present invention, the server 2000 serves to provide all functions necessary to support the use of the vehicle.
In the present invention, the target bluetooth device 1000 may be, for example, a shared object, and specifically may be a vehicle, a riding helmet, an umbrella, a riding navigator, a mobile power supply, or the like. The vehicle may be a bicycle, a tricycle, an electric scooter, a motorcycle, a four-wheeled passenger vehicle, or the like.
In the present invention, wireless network 3000 encompasses any suitable wireless network, such as, but not limited to, 4G networks, 3G networks, GPRS, Wi-Fi, and the like. In addition, the wireless network coupling the server 2000 and the mobile terminal 4000 and the wireless network coupling the server 2000 and the target bluetooth device 1000 may be the same wireless network or different wireless networks.
< method >
Fig. 1 is a flow chart of one embodiment of a method for locating a target bluetooth device in accordance with the present invention. In the figure, the solid line represents the implementation flow of the mobile terminal and the target bluetooth device, and the dotted line represents the implementation flow of the interaction between the mobile terminal and the target bluetooth device.
According to fig. 1, the method comprises the following steps:
step S1010, performing bluetooth scanning by the target bluetooth device to obtain bluetooth information broadcasted by at least one relay bluetooth device.
The Bluetooth information at least comprises an identification code of the relay Bluetooth device and a Bluetooth signal strength value between the relay Bluetooth device and the target Bluetooth device.
The relay bluetooth device is specifically a bluetooth device that is around the target bluetooth device and the target bluetooth device can scan its broadcast.
Bluetooth devices are typically only in a broadcast state or a scan state and cannot scan while broadcasting. Therefore, the target bluetooth device may stop broadcasting and start bluetooth scanning if it receives a specific command in the broadcasting state. The specific instruction may be, for example, but not limited to, an instruction to reserve use of the target bluetooth device, an instruction to locate the target bluetooth device, and the like. The specific instruction may be transmitted to the target bluetooth device by the mobile terminal according to the location information of the target bluetooth device.
Fig. 2 is a flow chart of another embodiment of a method for locating a target bluetooth device in accordance with the present invention.
Before performing step S1010, the method further includes steps S2010 to S2040 as shown in fig. 2. In the figure, the solid line represents the respective implementation flows of the mobile terminal, the target bluetooth device and the server, and the dotted line represents the implementation flows of the interaction between the mobile terminal and the target bluetooth device and between the mobile terminal and the server.
In step S2010, the target bluetooth device acquires its own location information.
In step S2020, the target bluetooth device transmits its own location information, so that the mobile terminal receives the location information of the target bluetooth device.
In step S2030, the mobile terminal receives the location information of the target bluetooth device.
Step S2040, the mobile terminal displays the location information of the target bluetooth device for the user to locate the target bluetooth device.
The position information of the target bluetooth device itself may be obtained through a positioning module arranged in the target bluetooth device, and the positioning module may be any one or any combination of a GPS positioning module, a beidou positioning module, a galileo positioning module, and a base station positioning module, for example. The position information acquired by the positioning module has certain error, but the user can position the target Bluetooth device in an approximate position range by referring to the position information and then accurately position the target Bluetooth device by the method. The location information of the target bluetooth device displayed by the mobile terminal may be, for example, an identification point displayed on a bluetooth device map.
Further, the target bluetooth device may directly send the position information of the target bluetooth device to the mobile terminal, or the target bluetooth device may send the position information of the target bluetooth device to the server, and the server sends the position information of the target bluetooth device to the mobile terminal.
On the basis, the mobile terminal can send a specific instruction aiming at the position information of the target Bluetooth device to the server, the server can send the specific instruction to the target Bluetooth device, and the server can process the specific instruction and then send the processed specific instruction to the target Bluetooth device.
In step S1020, the target bluetooth device transmits the bluetooth information broadcast by the relay bluetooth device.
Specifically, the target bluetooth device may directly send all or part of the bluetooth information of the relay bluetooth device to the mobile terminal; the target Bluetooth device can also send all or part of the Bluetooth information of the relay Bluetooth device to the server, and then the server sends the received all or part of the Bluetooth information of the relay Bluetooth device to the mobile terminal; the target Bluetooth device can also send all or part of the Bluetooth information of the relay Bluetooth devices to the server, and the server screens out part of the Bluetooth information of the relay Bluetooth devices meeting preset conditions and sends the part of the Bluetooth information of the relay Bluetooth devices meeting the preset conditions to the mobile terminal.
If the server selects the bluetooth information of part of the relay bluetooth devices meeting the preset condition from the received bluetooth information of all or part of the relay bluetooth devices, the bluetooth information may be specifically selected according to the bluetooth signal strength value between the relay bluetooth device and the target bluetooth device.
Step S1030, the mobile terminal acquires the identification code of the target bluetooth device.
The method for the mobile terminal to acquire the identification code of the target bluetooth device may be that the user inputs the identification code into the mobile terminal, and specifically, the identification code may be input through a keyboard application in the mobile terminal.
The mobile terminal may acquire the identification code of the target bluetooth device from the server. Then, the step S1030 may further include steps S1031 to S1036 as shown in fig. 2.
And step S1031, the mobile terminal acquires the position information of the target Bluetooth device selected by the user.
For example, a bluetooth device map displayed by the mobile terminal has a plurality of identification points representing the locations of bluetooth devices, and a user can obtain location information of a target bluetooth device corresponding to a certain identification point by selecting the identification point.
Step S1032, the mobile terminal sends the location information of the target bluetooth device to the server.
In step S1033, the server receives the location information of the target bluetooth device.
In step S1034, the server may determine the identification code of the target bluetooth device according to the location information of the target bluetooth device.
Specifically, the server may store in advance identification codes of the bluetooth devices and position information thereof, and a one-to-one mapping relationship is provided between the identification code of each bluetooth device and the position information thereof.
Further, the server may search a comparison table reflecting the location information of the bluetooth device and the identification code of the bluetooth device, and determine the identification code of the target bluetooth device corresponding to the location information of the target bluetooth device.
In step S1035, the server sends the identification code of the target bluetooth device to the mobile terminal.
In step S1036, the mobile terminal receives the identification code of the target bluetooth device.
Thus, the mobile terminal can acquire the identification code of the target Bluetooth device.
And step S1040, the mobile terminal receives all or part of the Bluetooth information of the relay Bluetooth device.
The bluetooth information of all or part of the relay bluetooth devices received by the mobile terminal may be sent by the target bluetooth device or sent by the server.
Step S1050, the target bluetooth device broadcasts its own identification code through bluetooth.
Specifically, the target bluetooth device may be automatically switched to a broadcast state after scanning for a set time, and the broadcast information includes its own identification code, so as to be conveniently found by a user using the mobile terminal.
In step S1060, the mobile terminal continuously scans the current broadcast data through bluetooth to obtain a bluetooth device list.
The mobile terminal may continuously scan for current broadcast data in response to a user request to turn on the bluetooth function. The current broadcast data is the Bluetooth broadcast data scanned by the mobile terminal at the current moment. The bluetooth device list at least includes an identification code of the bluetooth device broadcasting each current broadcast data, wherein each current broadcast data may include an identification code broadcasting the corresponding bluetooth device.
Further, the bluetooth device list is updated in real time according to the scanning frequency of the mobile terminal, and the updating frequency may be the same as the scanning frequency of the mobile terminal.
Step S1070, the mobile terminal judges whether the Bluetooth device list has the identification code of at least one Bluetooth device matched with the identification code of at least one relay Bluetooth device included in the received Bluetooth information of all or part of relay Bluetooth devices, if so, step S1080 is executed; if not, the process continues to step S1060.
And step S1080, displaying the matched identification code and the real-time signal strength between the matched relay Bluetooth device and the mobile terminal by the mobile terminal so as to guide the user to approach the matched relay Bluetooth device.
When the Bluetooth device list has the identification code of at least one Bluetooth device matched with the identification code of at least one relay Bluetooth device included in the received Bluetooth information of the relay Bluetooth device, the mobile terminal is closer to the matched relay Bluetooth device, and the mobile terminal can scan the broadcast of the matched relay Bluetooth device, so that the user can be guided to approach the matched relay Bluetooth device according to the signal intensity between the mobile terminal and the matched relay Bluetooth device. Specifically, the user is required to carry the mobile terminal to move in the direction in which the signal strength between the mobile terminal and the matched relay bluetooth device is increased, which indicates that the user is close to the matched relay bluetooth device.
Further, the mobile terminal displays the matched identification code and the real-time signal strength between the matched relay Bluetooth device and the mobile terminal according to the size sequence of the Bluetooth signal strength between the matched relay Bluetooth device and the target Bluetooth device.
For example, when there are at least two matched bluetooth relay devices, the identifier of the matched bluetooth relay device having a larger signal strength value with the target bluetooth device and the real-time signal strength between the mobile terminal and the bluetooth relay device are displayed at a position above the display interface of the mobile terminal, and the identifier of the matched bluetooth relay device having a smaller signal strength value with the target bluetooth device and the real-time signal strength between the mobile terminal and the bluetooth relay device are displayed at a position below the display interface of the mobile terminal. Since the larger the signal strength value between the matched relay bluetooth device and the target bluetooth device is, the closer the distance between the matched relay bluetooth device and the target bluetooth device is, the easier the target bluetooth device is located according to the matched relay bluetooth device, therefore, the user can find the target bluetooth device more quickly through the display mode of the embodiment.
Step S1090, the mobile terminal judges whether the Bluetooth device list comprises the identification code of the target Bluetooth device, if so, step S1100 is executed; if not, the process continues to step S1060.
Step S1100, the mobile terminal displays the identification code of the target Bluetooth device and the real-time signal intensity between the target Bluetooth device and the mobile terminal so as to guide the user to locate the target Bluetooth device.
Because the target Bluetooth device can scan the broadcast of the relay Bluetooth device, when the user is located at the position of the relay Bluetooth device, the mobile terminal can scan the broadcast of the target Bluetooth device, and then the user can be guided to approach the target Bluetooth device according to the signal intensity between the mobile terminal and the target Bluetooth device to locate the target Bluetooth device.
If the Bluetooth device list acquired by the mobile terminal comprises the identification code of the target Bluetooth device in the process that the user approaches the matched relay Bluetooth device, the fact that the distance between the mobile terminal and the target Bluetooth device is short is indicated, the mobile terminal can scan the broadcast of the target Bluetooth device, the relay Bluetooth device does not need to be located, and the user can be guided to approach the target Bluetooth device and the target Bluetooth device can be located directly according to the signal intensity between the mobile terminal and the target Bluetooth device.
By the method, when the mobile terminal is not in the broadcasting range of the target Bluetooth equipment, the target Bluetooth equipment can be positioned by the relay Bluetooth equipment, so that the searching range of the positioned target Bluetooth equipment can be expanded, and a user can more easily position the target Bluetooth equipment.
< example >
When the target bluetooth device is a target shared object, the relay bluetooth device may be a shared object or a bluetooth device such as a bluetooth spud.
When the target shared object receives a reservation request sent by a user through a mobile terminal, the target shared object starts Bluetooth scanning to obtain Bluetooth information broadcasted by at least one relay Bluetooth device and sends the Bluetooth information so that the mobile terminal reserving the target shared object receives all or part of the Bluetooth information of the relay Bluetooth device. The Bluetooth information at least comprises an identification code of the relay Bluetooth device and a Bluetooth signal strength value between the relay Bluetooth device and the target shared object.
The reservation request sent by the mobile terminal to the target shared article may be directly sent to the target shared article, may be directly sent to the target shared article after being transferred by the server, or may be a command generated according to the reservation request sent by the server to the target shared article.
The target shared object can be a Bluetooth broadcast function which is started after the set time is scanned, and the identification code of the target shared object is broadcasted.
When the mobile terminal sends out a reservation request, the identification code of the target shared object can be obtained from the server according to the address information of the target shared object, the identification code and the address information of the shared object are stored in the server, a one-to-one mapping relation exists between the identification code and the address information of each shared object, and the identification code of the target shared object can be uniquely determined according to the address information of the target shared object. The position information of the shared article stored in the server can be acquired by positioning modules such as a GPS positioning module, a Beidou positioning module, a Galileo positioning module and a base station positioning module which are arranged in the shared article and sent to the server.
The server can display the position information of each shared article on the shared article map and provide the position information to the mobile terminal for the user to view.
The mobile terminal may issue a reservation request to the target shared item according to the location information of the shared item on the shared item map.
Further, the server can also determine the comprehensive position information of the target shared object according to all or part of the Bluetooth information of the relay Bluetooth device and the position information of the target shared object sent by the target shared object, update the comprehensive position information of the target shared object to a shared object map, and provide the comprehensive position information to the mobile terminal. Specifically, under the condition that the relay bluetooth device is a shared object or a bluetooth spud, the server may pre-store the location information of each relay bluetooth device, and may determine the comprehensive location information of the target bluetooth device according to the location information of the relay bluetooth device, the location information of the target shared object, and the bluetooth signal strength value between each relay bluetooth device and the target bluetooth device. The step of determining the comprehensive position information can also be executed in the mobile terminal, and the preferable scheme is executed in the server, so that the algorithm can be updated and iterated more conveniently and quickly, the application version used by the user is not required, the user does not need to update, and the user experience can be improved.
The mobile terminal receives all or part of the Bluetooth information of the relay Bluetooth device through Bluetooth and continuously scans the current broadcast data to acquire a Bluetooth device list.
And if the identification code of at least one Bluetooth device is matched with the identification code of at least one relay Bluetooth device included in the received Bluetooth information of all or part of the relay Bluetooth devices in the Bluetooth device list, displaying the matched identification code and the real-time signal strength between the matched relay Bluetooth device and the mobile terminal so as to guide the user to approach the matched relay Bluetooth device.
And in the process that the user approaches the matched relay Bluetooth device until the matched Bluetooth device is found, if the Bluetooth device list comprises the identification code of the target shared object, displaying the identification code of the target shared object and the real-time signal strength between the target shared object and the mobile terminal so as to guide the user to locate the target shared object.
In the process that a user approaches a target shared article, if the mobile terminal detects that the real-time signal intensity between the target shared article and the mobile terminal exceeds a preset threshold value, an unlocking instruction can be sent to the shared article to control the target shared article to be unlocked. Therefore, the step that the user inputs the identification code of the target shared object to unlock the target shared object can be omitted, the time of the user can be saved, and the user experience is improved.
< apparatus >
The invention also provides a mobile terminal, and fig. 4 is a block schematic diagram of an implementation structure of a mobile terminal according to the invention.
As shown in fig. 4, the mobile terminal includes an identification code obtaining module 4010, a receiving module 4020, a scanning module 4030, a first determining module 4040, a first display module 4050, a second determining module 4060, and a second display module 4070.
The identification code obtaining module 4010 is configured to obtain an identification code of the target bluetooth device;
the receiving module 4020 is configured to receive bluetooth information of all or part of the relay bluetooth devices scanned by the target bluetooth device, where the bluetooth information includes an identifier of the corresponding relay bluetooth device and a bluetooth signal strength value between the corresponding relay bluetooth device and the target bluetooth device, and the bluetooth information of each relay bluetooth device is obtained by scanning the target bluetooth device and is sent;
the scanning module 4030 is configured to continuously scan current bluetooth broadcast data through bluetooth to obtain a bluetooth device list;
the first determining module 4040 is configured to determine whether the identifier of at least one bluetooth device in the bluetooth device list matches with an identifier of at least one relay bluetooth device included in the bluetooth information of all or part of relay bluetooth devices;
the first display module 4050 is configured to display the matched identification code and the real-time signal strength between the matched relay bluetooth device and the mobile terminal, so as to guide the user to approach the matched relay bluetooth device, if the determination result of the first determination module is yes;
the second determining module 4060 is configured to determine whether the bluetooth device list includes an identifier of a target bluetooth device;
the second display module 4070 is configured to display the identification code of the target bluetooth device and the real-time signal strength between the target bluetooth device and the mobile terminal when the determination result of the second determination module is yes, so as to guide the user to locate the target bluetooth device.
Fig. 5 is a block schematic diagram of another implementation structure of a mobile terminal according to the present invention.
As shown in fig. 5, the mobile terminal further includes a position acquisition module 5010 and a position display module 5020, wherein the position acquisition module 5010 is configured to acquire position information of a target bluetooth device, and the position information of the target bluetooth device is acquired and transmitted by the target bluetooth device; the position display module 5020 is used for displaying the position information of the target bluetooth device, so that the user can locate the target bluetooth device.
On this basis, the identification code obtaining module 4010 is further configured to: the method comprises the steps of obtaining position information of a target Bluetooth device selected by a user, and obtaining an identification code of the target Bluetooth device from a server according to the position information of the target Bluetooth device, wherein the identification code of the target device is determined by the server according to the position information of the target Bluetooth device.
In one embodiment of the present invention, the first display module 4050 is further configured to: and displaying the matched identification codes and the real-time signal strength between the matched relay Bluetooth equipment and the mobile terminal according to the sequence of the Bluetooth signal strength values between the matched relay Bluetooth equipment and the target Bluetooth equipment.
Further, the target bluetooth device is a shared article, and the mobile terminal may further include a strength determination module 5030 and an instruction sending module 5040. The intensity determining module 5030 is configured to determine whether the real-time signal intensity between the target bluetooth device and the mobile terminal is greater than a preset threshold value when the bluetooth device list includes the identification code of the target bluetooth device; the instruction sending module 5040 is configured to send an unlocking instruction if the determination result of the strength determination module 5030 is yes, so that the shared object receives the unlocking instruction and unlocks according to the unlocking instruction.
Still further, as shown in fig. 5, the mobile terminal further includes an updating module 5050 for updating the bluetooth device list according to the scanning frequency of the mobile terminal.
< System >
The invention also provides a system for positioning the target Bluetooth device, which comprises the target Bluetooth device and the mobile terminal. Wherein the target bluetooth device and the mobile terminal are configured to perform the aforementioned method of locating the target bluetooth device.
The above embodiments mainly focus on differences from other embodiments, but it should be clear to those skilled in the art that the above embodiments can be used alone or in combination with each other as needed.
The embodiments in the present disclosure are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments, but it should be clear to those skilled in the art that the embodiments described above can be used alone or in combination with each other as needed. In addition, for the device embodiment, since it corresponds to the method embodiment, the description is relatively simple, and for relevant points, refer to the description of the corresponding parts of the method embodiment. The system embodiments described above are merely illustrative, in that modules illustrated as separate components may or may not be physically separate.
The present invention may be an apparatus, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical identification code device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.