CN117351675A - Prompting method, device, equipment and medium - Google Patents
Prompting method, device, equipment and medium Download PDFInfo
- Publication number
- CN117351675A CN117351675A CN202311479496.0A CN202311479496A CN117351675A CN 117351675 A CN117351675 A CN 117351675A CN 202311479496 A CN202311479496 A CN 202311479496A CN 117351675 A CN117351675 A CN 117351675A
- Authority
- CN
- China
- Prior art keywords
- distance
- terminal
- electronic equipment
- signal strength
- signal intensity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000013507 mapping Methods 0.000 claims abstract description 68
- 230000004044 response Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/18—Status alarms
- G08B21/24—Reminder alarms, e.g. anti-loss alarms
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S11/00—Systems for determining distance or velocity not using reflection or reradiation
- G01S11/02—Systems for determining distance or velocity not using reflection or reradiation using radio waves
- G01S11/06—Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The application discloses a prompting method, a prompting device, prompting equipment and prompting media, and belongs to the technical field of electronic equipment. The prompting method comprises the following steps: acquiring a first signal intensity of a terminal which establishes a connection relationship with electronic equipment; determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance; and displaying prompt information under the condition that the distance between the terminal and the electronic equipment is larger than a distance threshold value, wherein the prompt information is used for prompting a user that the terminal is lost.
Description
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a prompting method, a prompting device, prompting equipment and prompting media.
Background
With the development of wireless technology, the terminal and the electronic device can be connected in a wireless manner, so that a user can avoid the trouble of annoying wires, for example, a bluetooth headset is connected with a mobile phone, and the user can use the bluetooth headset to make a call.
However, since the terminal and the electronic device are connected in a wireless manner, the terminal is not plugged into the electronic device through a connecting wire, and the terminal and the electronic device are always separated, so that the terminal is easy to lose.
Disclosure of Invention
The embodiment of the application aims to provide a prompting method, a prompting device, prompting equipment and a prompting medium, which can prevent a terminal from being lost.
In a first aspect, an embodiment of the present application provides a prompting method, including:
acquiring a first signal intensity of a terminal which establishes a connection relationship with electronic equipment;
determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance;
and displaying prompt information under the condition that the distance between the terminal and the electronic equipment is larger than a distance threshold value, wherein the prompt information is used for prompting a user that the terminal is lost.
In a second aspect, an embodiment of the present application provides a prompting device, including:
the first acquisition module is used for acquiring first signal intensity of a terminal which is in connection with the electronic equipment;
the determining module is used for determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance;
the display module is used for displaying prompt information when the distance between the terminal and the electronic equipment is larger than the distance threshold value, wherein the prompt information is used for prompting a user that the terminal is lost.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions implement the steps of the prompting method provided in the first aspect of the embodiment of the present application when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the prompting method provided in the first aspect of embodiments of the present application.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the prompting method provided in the first aspect of the embodiment of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the steps of the prompting method provided in the first aspect of embodiments of the present application.
In the embodiment of the application, the first signal strength of the terminal with the connection relation established with the electronic equipment is obtained; determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance; and displaying prompt information for prompting a user that the terminal is at risk of losing under the condition that the distance between the terminal and the electronic equipment is larger than a distance threshold. Therefore, the user can timely learn that the terminal has a loss risk through the prompt information, and further timely find the terminal, and the terminal can be prevented from being lost.
Drawings
Fig. 1 is a schematic flow chart of a prompting method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a process for preventing a terminal from being lost according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a prompting device provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following describes in detail, by means of specific embodiments and application scenarios thereof, a prompting method, a device, equipment and a medium provided in the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a prompting method provided in an embodiment of the present application. The prompting method can comprise the following steps:
step 101: acquiring a first signal intensity of a terminal which establishes a connection relationship with electronic equipment;
it should be noted that, the terminal in the embodiment of the present application includes, but is not limited to: bluetooth headset, bluetooth sound, bracelet, etc.
In some possible implementations of the embodiments of the present application, the signal strength of the terminal in the embodiments of the present application is the strength of the signal received by the electronic device.
In some possible implementations of embodiments of the present application, in bluetooth communications, the signal strength of a terminal may be represented by a received signal strength indication (Received Signal Strength Indication, RSSI).
In some possible implementations of the embodiments of the present application, a readRemoteRssi () function of the bluetooth gatt object may be called to obtain the signal strength of the terminal.
Step 102: determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance;
in some possible implementations of embodiments of the present application, step 102 may include: determining a first distance corresponding to the first signal strength according to the mapping relation between the signal strength and the distance; and taking the first distance as the distance between the terminal and the electronic equipment.
In some possible implementations of the embodiments of the present application, before step 102, the prompting method provided by the embodiments of the present application may further include: acquiring a second signal intensity of the terminal when the terminal is at a second distance from the electronic equipment; acquiring a third signal intensity of the terminal when the terminal is at a third distance from the electronic equipment; and establishing a mapping relation between the signal intensity and the distance according to the second distance, the second signal intensity, the third distance and the third signal intensity.
In some possible implementations of embodiments of the present application, RSSI has a relationship with distance as shown in equation (1) below:
in the formula (1), d is the distance between the transmitting end and the receiving end, RSSI is a received signal strength indication, a is the signal strength when the transmitting end and the receiving end are 1 meter away, and n is an environmental attenuation factor.
Based on this, the terminal can be placed at a second distance d from the electronic device 2 Acquiring a second distance d from the terminal to the electronic device 2 The second signal strength RSSI of the terminal 2 The method comprises the steps of carrying out a first treatment on the surface of the Placing the terminal at a third distance d from the electronic device 3 Acquiring a third distance d from the terminal to the electronic device 3 When the third signal strength RSSI of the terminal 3 The method comprises the steps of carrying out a first treatment on the surface of the Will be a second distance d 2 And a second signal strength RSSI 2 Substituting the above formula (1) and substituting the third distance d 3 And a third signal strength RSSI 3 Substituting the formula (1) to obtain two equations, and solving the two equations to obtain the values of A and n. And further obtaining the mapping relation between the signal intensity and the distance.
In some possible implementations of the embodiments of the present application, the terminal may also be placed at a distance of 1 meter from the electronic device, and the signal strength of the terminal is obtained. At this time, the acquired signal strength of the terminal is the value of a. Then, the terminal is placed at another position, the distance from the terminal to the electronic device is measured, the signal intensity of the terminal at the moment is obtained, the measured distance from the terminal to the electronic device, the obtained signal intensity of the terminal and the value of A are substituted into the formula (1), and the value of n is obtained by solving. And further obtaining the mapping relation between the signal intensity and the distance.
In some possible implementations of embodiments of the present application, the user may set the maximum distance X that he may accept the terminal from the electronic device. When the mapping relation between the signal strength and the distance is established, the terminal can be placed at a position X/2 away from the electronic equipment.
In some possible implementations of the embodiments of the present application, the second signal strength and the third signal strength may be signal strengths of the terminal in a first scenario, where the first scenario is any one of a plurality of scenarios. Scenes in embodiments of the present application include, but are not limited to: home scenes, office scenes, etc.
Accordingly, establishing the mapping relation between the signal strength and the distance may include: establishing a mapping relation between signal intensity and distance corresponding to a first scene; step 102 may include: determining a first mapping relation between the signal intensity and the distance corresponding to the current scene from the mapping relation between the signal intensity and the distance corresponding to the first scene; and determining the distance between the terminal and the electronic equipment according to the first mapping relation and the first signal intensity.
Illustratively, it is assumed that a mapping relationship between signal intensity and distance corresponding to a home scene and a mapping relationship between signal intensity and distance corresponding to an office scene are established. The current scene is a home scene, and a first distance corresponding to the first signal intensity is determined according to the mapping relation between the signal intensity corresponding to the home scene and the distance; and further taking the first distance as the distance between the terminal and the electronic equipment.
In the embodiment of the application, the distance between the terminal and the electronic equipment is determined through the mapping relation between the signal intensity corresponding to the current scene and the distance, so that the accuracy of prompt information display can be improved.
Step 103: and displaying prompt information under the condition that the distance between the terminal and the electronic equipment is larger than a distance threshold value, wherein the prompt information is used for prompting a user that the terminal is lost.
In the embodiment of the application, the first signal strength of the terminal with the connection relation established with the electronic equipment is obtained; determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance; and displaying prompt information for prompting a user that the terminal is at risk of losing under the condition that the distance between the terminal and the electronic equipment is larger than a distance threshold. Therefore, the user can timely learn that the terminal has a loss risk through the prompt information, and further timely find the terminal, and the terminal can be prevented from being lost.
In some possible implementations of the embodiments of the present application, after step 102, the prompting method provided by the embodiments of the present application may further include: receiving a first input; responding to the first input, and acquiring the connection state of the electronic equipment and the terminal; under the condition that the electronic equipment is connected with the terminal, updating the distance between the terminal and the electronic equipment in real time; and under the condition that the electronic equipment is not connected with the terminal, pushing first information to a user, wherein the first information at least comprises geographic position information reported when the terminal is disconnected with the electronic equipment for the last time.
In some possible implementations of embodiments of the present application, the first input in embodiments of the present application is used to find a terminal. The first inputs in embodiments of the present application include, but are not limited to: the user inputs a touch input, a voice instruction input, a specific gesture input and the like of a control for searching the terminal through a touch device such as a finger or a stylus pen; the touch input includes, but is not limited to, click input, sliding input, etc., where the click input may be single click input, double click input or any number of click inputs, and may also be long press input or short press input; the specific gesture input may be any one of a single tap gesture, a swipe gesture, a drag gesture, a long press gesture, an area change gesture, a double press gesture, a double tap gesture. The first input in the embodiment of the application can be set and adaptively modified according to actual requirements.
The user clicks the "find immediately" button, and at this time, a first input is received to obtain a connection state of the electronic device and the terminal, and when the electronic device is connected to the terminal, the distance between the terminal and the electronic device is updated in real time before the user finds the terminal. Specifically, before the user finds the terminal, the signal strength of the terminal can be obtained in real time, and the distance between the terminal and the electronic equipment is calculated in real time according to the mapping relation between the signal strength and the distance.
In some possible implementations of the embodiments of the present application, when the terminal is disconnected from the electronic device, the geographic location information of the terminal may be reported to the electronic device. When the user searches the terminal but the electronic equipment is not connected with the terminal, the geographical position information reported when the terminal is disconnected with the electronic equipment for the last time can be pushed to the user, so that the user can search the mobile phone from the geographical position indicated by the geographical position information.
In some possible implementations of embodiments of the present application, the first information may further include: the distance between the terminal and the electronic device when the terminal is disconnected from the electronic device last time, and the time when the terminal is disconnected from the electronic device last time.
In the embodiment of the application, the user can know the time when the terminal is disconnected with the electronic equipment and the distance between the terminal and the electronic equipment when the terminal is disconnected.
In some possible implementations of the embodiments of the present application, after step 102, the prompting method provided by the embodiments of the present application may further include: receiving a second input; in response to the second input, a mapping of signal strength to distance is updated.
In some possible implementations of the embodiments of the present application, the second input in the embodiments of the present application is used to update the mapping relationship of signal strength to distance. The second inputs in embodiments of the present application include, but are not limited to: a user inputs a touch control for updating the mapping relation between the signal intensity and the distance through a touch control device such as a finger or a handwriting pen, inputs a voice instruction, inputs a specific gesture and the like; the touch input includes, but is not limited to, click input, sliding input, etc., where the click input may be single click input, double click input or any number of click inputs, and may also be long press input or short press input; the specific gesture input may be any one of a single tap gesture, a swipe gesture, a drag gesture, a long press gesture, an area change gesture, a double press gesture, a double tap gesture. The second input in the embodiment of the application can be set and adaptively modified according to actual requirements.
When the user is prompted that the terminal is at risk of losing, the user clicks a "just-in-the-hand" button, a second input is received at the moment, the values of A and n are recalculated according to the signal strength of the terminal and the distance corresponding to the "just-in-the-hand", and the mapping relation between the signal strength and the distance is updated based on the recalculated values of A and n.
In some possible implementations of embodiments of the present application, the default corresponding distance "just-in-the-hand" may be preset, for example, 15 cm.
Fig. 2 is a schematic diagram of a process for preventing a terminal from being lost according to an embodiment of the present application. The process for preventing the terminal from being lost comprises the following steps:
step 201: setting the maximum distance between the terminal and the electronic equipment acceptable by the user;
step 202: based on the maximum distance, establishing mapping relations between signal intensities and distances corresponding to different scenes;
step 203: acquiring signal intensity of a terminal;
step 204: determining a mapping relation between signal intensity and distance corresponding to the current scene;
step 205: determining the distance between the terminal and the electronic equipment according to the mapping relation between the signal intensity and the distance corresponding to the current scene and the signal intensity of the terminal;
step 206: judging whether the distance between the terminal and the electronic equipment is greater than a distance threshold value, and if so, executing step 207;
step 207: judging whether the terminal is at the side of the user according to the input of the user, if so, executing step 202, and if not, executing step 208;
step 208: judging whether to search for the terminal according to the input of the user, if so, executing step 209, and if not, executing step 212;
step 209: judging whether the connection with the terminal is disconnected, if not, executing step 210, and if so, executing step 211;
step 210: updating the distance between the terminal and the electronic equipment in real time;
step 211: outputting the position of the terminal when the connection is disconnected last time;
step 212: updating the distance between the terminal and the electronic equipment until the connection with the terminal is disconnected;
step 213: prompting the user to disconnect the connection with the terminal;
step 214: judging whether to search for the terminal according to the input of the user, if so, executing step 209, and if not, executing step 215;
step 215: the position of the terminal at the last disconnection is saved.
According to the prompting method provided by the embodiment of the application, the execution main body can be a prompting device. In the embodiment of the present application, a prompting device executes a prompting method as an example, and the prompting device provided in the embodiment of the present application is described.
Fig. 3 is a schematic structural diagram of a prompting device according to an embodiment of the present application. The prompting apparatus 300 may include:
a first obtaining module 301, configured to obtain a first signal strength of a terminal having a connection relationship with an electronic device;
a determining module 302, configured to determine a distance between the terminal and the electronic device according to the first signal strength and a mapping relationship between the signal strength and the distance;
and the display module 303 is configured to display a prompt message when the distance between the terminal and the electronic device is greater than the distance threshold, where the prompt message is used to prompt the user that the terminal is at risk of losing.
In the embodiment of the application, the first signal strength of the terminal with the connection relation established with the electronic equipment is obtained; determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance; and displaying prompt information for prompting a user that the terminal is at risk of losing under the condition that the distance between the terminal and the electronic equipment is larger than a distance threshold. Therefore, the user can timely learn that the terminal has a loss risk through the prompt information, and further timely find the terminal, and the terminal can be prevented from being lost.
In some possible implementations of embodiments of the present application, the determining module 302 may include:
the first determining submodule is used for determining a first distance corresponding to the first signal strength according to the mapping relation between the signal strength and the distance;
and the second determining submodule is used for taking the first distance as the distance between the terminal and the electronic equipment.
In some possible implementations of the embodiments of the present application, the prompting device 300 provided in the embodiments of the present application may further include:
the second acquisition module is used for acquiring second signal intensity of the terminal when the terminal is at a second distance from the electronic equipment;
the third acquisition module is used for acquiring third signal intensity of the terminal when the terminal is at a third distance from the electronic equipment;
the establishing module is used for establishing a mapping relation between the signal intensity and the distance according to the second distance, the second signal intensity, the third distance and the third signal intensity.
In some possible implementations of the embodiments of the present application, the second signal strength and the third signal strength are signal strengths of the terminal in a first scenario, where the first scenario is any one of a plurality of scenarios;
accordingly, the establishment module may be specifically configured to:
establishing a mapping relation between signal intensity and distance corresponding to a first scene;
the determining module may specifically be configured to:
determining a first mapping relation between the signal intensity and the distance corresponding to the current scene from the mapping relation between the signal intensity and the distance corresponding to the first scene; and determining the distance between the terminal and the electronic equipment according to the first mapping relation and the first signal intensity.
In the embodiment of the application, the distance between the terminal and the electronic equipment is determined through the mapping relation between the signal intensity corresponding to the current scene and the distance, so that the accuracy of prompt information display can be improved.
In some possible implementations of the embodiments of the present application, the prompting device 300 provided in the embodiments of the present application may further include:
a first receiving module for receiving a first input;
the fourth acquisition module is used for responding to the first input and acquiring the connection state of the electronic equipment and the terminal;
the first updating module is used for updating the distance between the terminal and the electronic equipment in real time under the condition that the electronic equipment is connected with the terminal;
and the pushing module is used for pushing first information to the user under the condition that the electronic equipment is not connected with the terminal, wherein the first information at least comprises geographic position information reported when the terminal is disconnected with the electronic equipment last time.
In the embodiment of the application, the probability of retrieving the terminal can be improved by updating the distance between the terminal and the electronic equipment in real time and pushing the geographical position information reported when the terminal is disconnected from the electronic equipment last time.
In some possible implementations of the embodiments of the present application, the prompting device 300 provided in the embodiments of the present application may further include:
a second receiving module for receiving a second input;
and the second updating module is used for responding to the second input and updating the mapping relation between the signal strength and the distance.
The prompting device in the embodiment of the application may be an electronic device, or may be a component in the electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The prompting device in the embodiment of the application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The prompting device provided in this embodiment of the present application can implement each process implemented by the prompting method embodiments of fig. 1 to 2, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 400, including a processor 401 and a memory 402, where the memory 402 stores a program or an instruction that can be executed on the processor 401, and the program or the instruction implements each step of the foregoing prompting method embodiment when executed by the processor 401, and the steps can achieve the same technical effect, so that repetition is avoided, and no redundant description is provided herein.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
Those skilled in the art will appreciate that the electronic device 500 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 510 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 510 is configured to obtain a first signal strength of a terminal that has a connection relationship with the electronic device 500; determining the distance between the terminal and the electronic equipment 500 according to the first signal strength and the mapping relation between the signal strength and the distance; in the case that the distance between the terminal and the electronic device 500 is greater than the distance threshold, a prompt message is displayed, where the prompt message is used to prompt the user that there is a risk of losing the terminal.
In the embodiment of the application, the first signal strength of the terminal with the connection relation established with the electronic equipment is obtained; determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance; and displaying prompt information for prompting the user that the terminal is at risk of losing under the condition that the distance between the terminal and the electronic equipment is larger than a distance threshold value, so that the terminal can be prevented from being lost.
In some possible implementations of embodiments of the present application, processor 510 may be specifically configured to:
determining a first distance corresponding to the first signal strength according to the mapping relation between the signal strength and the distance;
the first distance is taken as the distance of the terminal from the electronic device 500.
In some possible implementations of embodiments of the present application, processor 510 may be specifically configured to:
acquiring a second signal intensity of the terminal when the terminal is at a second distance from the electronic device 500;
acquiring a third signal intensity of the terminal when the terminal is at a third distance from the electronic device 500;
and establishing a mapping relation between the signal intensity and the distance according to the second distance, the second signal intensity, the third distance and the third signal intensity.
In some possible implementations of the embodiments of the present application, the second signal strength and the third signal strength are signal strengths of the terminal in a first scenario, where the first scenario is any one of a plurality of scenarios;
accordingly, the processor 510 may be specifically configured to:
establishing a mapping relation between signal intensity and distance corresponding to a first scene;
determining a first mapping relation between the signal intensity and the distance corresponding to the current scene from the mapping relation between the signal intensity and the distance corresponding to the plurality of scenes; and determining the distance between the terminal and the electronic device 500 according to the first mapping relation and the first signal strength.
In some possible implementations of embodiments of the present application, the user input unit 507 is for: receiving a first input;
accordingly, the processor 510 may also be configured to: acquiring a connection state of the electronic device 500 and the terminal in response to the first input; in the case that the electronic device 500 is connected with the terminal, updating the distance between the terminal and the electronic device 500 in real time; in the case that the electronic device 500 is not connected to the terminal, pushing first information to the user, where the first information includes at least geographic location information reported when the terminal was disconnected from the electronic device 500 last time.
In some possible implementations of embodiments of the present application, the user input unit 507 may also be used to: receiving a second input;
accordingly, the processor 510 may also be configured to: in response to the second input, a mapping of signal strength to distance is updated.
It should be appreciated that in embodiments of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, with the graphics processor 5041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen. Touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 509 may include volatile memory or nonvolatile memory, or the memory 509 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 509 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction realizes each process of the above-mentioned prompting method embodiment when executed by a processor, and the same technical effect can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, and examples of the computer readable storage medium include a non-transitory computer readable medium such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or optical disk, and the like.
The embodiment of the application also provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions, realizing the processes of the embodiment of the prompting method and achieving the same technical effect, so that repetition is avoided, and the repeated description is omitted.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application further provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the respective processes of the foregoing prompting method embodiment, and achieve the same technical effects, so that repetition is avoided, and a detailed description is omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
Claims (14)
1. A method of prompting, the method comprising:
acquiring a first signal intensity of a terminal which establishes a connection relationship with electronic equipment;
determining the distance between the terminal and the electronic equipment according to the first signal intensity and the mapping relation between the signal intensity and the distance;
and displaying prompt information under the condition that the distance is larger than a distance threshold value, wherein the prompt information is used for prompting a user that the terminal is at risk of losing.
2. The method of claim 1, wherein the determining the distance between the terminal and the electronic device according to the first signal strength and the mapping relationship between the signal strength and the distance comprises:
determining a first distance corresponding to the first signal strength according to the mapping relation between the signal strength and the distance;
and taking the first distance as the distance between the terminal and the electronic equipment.
3. The method of claim 1, wherein prior to the obtaining the first signal strength of the terminal, the method further comprises:
acquiring a second signal intensity of the terminal when the terminal is at a second distance from the electronic equipment;
acquiring a third signal intensity of the terminal when the terminal is at a third distance from the electronic equipment;
and establishing a mapping relation between the signal intensity and the distance according to the second distance, the second signal intensity, the third distance and the third signal intensity.
4. The method of claim 3, wherein the second signal strength and the third signal strength are signal strengths of the terminal at a first scene, the first scene being any one of a plurality of scenes;
the establishing the mapping relation between the signal strength and the distance comprises the following steps:
establishing a mapping relation between signal intensity and distance corresponding to the first scene;
the determining the distance between the terminal and the electronic device according to the first signal strength and the mapping relation between the signal strength and the distance includes:
determining a first mapping relation between the signal intensity and the distance corresponding to the current scene from the mapping relation between the signal intensity and the distance corresponding to the first scene;
and determining the distance between the terminal and the electronic equipment according to the first mapping relation and the first signal intensity.
5. The method of claim 1, wherein after determining the distance between the terminal and the electronic device according to the first signal strength and the mapping relationship between the signal strength and the distance, the method further comprises:
receiving a first input;
responding to the first input, and acquiring the connection state of the electronic equipment and the terminal;
updating the distance between the terminal and the electronic equipment in real time under the condition that the electronic equipment is connected with the terminal;
and under the condition that the electronic equipment is not connected with the terminal, pushing first information to the user, wherein the first information at least comprises geographic position information reported when the terminal is disconnected with the electronic equipment last time.
6. The method of claim 1, wherein after determining the distance between the terminal and the electronic device according to the first signal strength and the mapping relationship between the signal strength and the distance, the method further comprises:
receiving a second input;
and in response to the second input, updating the mapping relation between the signal strength and the distance.
7. A reminder device, the device comprising:
the first acquisition module is used for acquiring first signal intensity of a terminal which is in connection with the electronic equipment;
the determining module is used for determining the distance between the terminal and the electronic equipment according to the first signal strength and the mapping relation between the signal strength and the distance;
the display module is used for displaying prompt information when the distance is larger than the distance threshold value, and the prompt information is used for prompting a user that the terminal is lost.
8. The apparatus of claim 7, wherein the means for determining comprises:
the first determining submodule is used for determining a first distance corresponding to the first signal strength according to the mapping relation between the signal strength and the distance;
and the second determining submodule is used for taking the first distance as the distance between the terminal and the electronic equipment.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the second acquisition module is used for acquiring second signal intensity of the terminal when the terminal is at a second distance from the electronic equipment;
a third obtaining module, configured to obtain a third signal strength of the terminal when the terminal is at a third distance from the electronic device;
the establishing module is used for establishing a mapping relation between the signal intensity and the distance according to the second distance, the second signal intensity, the third distance and the third signal intensity.
10. The apparatus of claim 9, wherein the second signal strength and the third signal strength are signal strengths of the terminal at a first scene, the first scene being any one of a plurality of scenes;
the building module is specifically configured to:
establishing a mapping relation between signal intensity and distance corresponding to the first scene;
the determining module is specifically configured to:
determining a first mapping relation between the signal intensity and the distance corresponding to the current scene from the mapping relation between the signal intensity and the distance corresponding to the scenes;
and determining the distance between the terminal and the electronic equipment according to the first mapping relation and the first signal intensity.
11. The apparatus of claim 7, wherein the apparatus further comprises:
a first receiving module for receiving a first input;
a fourth obtaining module, configured to obtain a connection state of the electronic device and the terminal in response to the first input;
the first updating module is used for updating the distance between the terminal and the electronic equipment in real time under the condition that the electronic equipment is connected with the terminal;
the pushing module is used for pushing first information to the user under the condition that the electronic equipment is not connected with the terminal, wherein the first information at least comprises geographic position information reported when the terminal is disconnected with the electronic equipment last time.
12. The apparatus of claim 7, wherein the apparatus further comprises:
a second receiving module for receiving a second input;
and the second updating module is used for responding to the second input and updating the mapping relation between the signal intensity and the distance.
13. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the prompting method according to any one of claims 1 to 6.
14. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implement the steps of the prompting method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311479496.0A CN117351675A (en) | 2023-11-07 | 2023-11-07 | Prompting method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311479496.0A CN117351675A (en) | 2023-11-07 | 2023-11-07 | Prompting method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117351675A true CN117351675A (en) | 2024-01-05 |
Family
ID=89369280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311479496.0A Pending CN117351675A (en) | 2023-11-07 | 2023-11-07 | Prompting method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117351675A (en) |
-
2023
- 2023-11-07 CN CN202311479496.0A patent/CN117351675A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111061574B (en) | Object sharing method and electronic device | |
CN113360238A (en) | Message processing method and device, electronic equipment and storage medium | |
CN108135033B (en) | Bluetooth connection method and mobile terminal | |
CN108279948B (en) | Application program starting method and mobile terminal | |
CN109871164B (en) | Message sending method and terminal equipment | |
CN108616448B (en) | Information sharing path recommendation method and mobile terminal | |
CN108958606B (en) | Split screen display method and device, storage medium and electronic equipment | |
CN110879680B (en) | Icon management method and electronic equipment | |
CN110096203B (en) | Screenshot method and mobile terminal | |
CN108600089B (en) | Expression image display method and terminal equipment | |
CN110971510A (en) | Message processing method and electronic equipment | |
CN108984066B (en) | Application icon display method and mobile terminal | |
CN109189303B (en) | Text editing method and mobile terminal | |
CN111124706A (en) | Application program sharing method and electronic equipment | |
CN113138560A (en) | Terminal control method, device, equipment and readable storage medium | |
CN108762621B (en) | Message display method and mobile terminal | |
CN107967086B (en) | Icon arrangement method and device for mobile terminal and mobile terminal | |
CN108628534B (en) | Character display method and mobile terminal | |
CN112887488B (en) | Caller identification method and device and electronic equipment | |
US20240089223A1 (en) | Information display method and apparatus, and electronic device | |
CN108491143B (en) | Object movement control method and mobile terminal | |
CN105513098B (en) | Image processing method and device | |
CN107704159B (en) | Application icon management method and mobile terminal | |
CN110740265B (en) | Image processing method and terminal equipment | |
CN111865763A (en) | Message display method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |