WO2023274026A1 - 电子设备交互方法及装置 - Google Patents

电子设备交互方法及装置 Download PDF

Info

Publication number
WO2023274026A1
WO2023274026A1 PCT/CN2022/100783 CN2022100783W WO2023274026A1 WO 2023274026 A1 WO2023274026 A1 WO 2023274026A1 CN 2022100783 W CN2022100783 W CN 2022100783W WO 2023274026 A1 WO2023274026 A1 WO 2023274026A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
bluetooth
server
sends
preset
Prior art date
Application number
PCT/CN2022/100783
Other languages
English (en)
French (fr)
Inventor
郭培振
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/575,574 priority Critical patent/US20240334531A1/en
Priority to EP22831842.4A priority patent/EP4336865A1/en
Publication of WO2023274026A1 publication Critical patent/WO2023274026A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present application relates to the field of electronic technology, and in particular to an electronic device interaction method and related devices.
  • the user when a smart electronic device is lost, the user usually needs to log in to the official website of the mobile phone manufacturer or log in to the lost cloud account through other electronic devices, and check the specific geographic location of the lost mobile phone when logging in to the cloud account for the latest or last time, so as to find the smart electronic device.
  • the server can locate the current geographic location of the mobile phone in real time; however, if the lost device is not online and connected to the Internet, the server cannot obtain the location of the offline mobile phone, making it impossible to retrieve the lost mobile phone. Difference.
  • Embodiments of the present application provide an electronic device interaction method and device, which can realize the location of lost devices and help users find lost devices more quickly and accurately.
  • the embodiment of the present application provides an electronic device interaction method, which specifically includes: the first electronic device sends a Bluetooth signal to the second electronic device, wherein the first electronic device is not connected to the Internet; the second electronic device The device scans the Bluetooth signal sent by the first electronic device; the first electronic device is paired with the second electronic device via Bluetooth; the second electronic device sends a query request to the server; the second electronic device receives the signal sent by the server
  • the return information includes the status of the first electronic device; the second electronic device sends the status of the first electronic device to the first electronic device; the first electronic device judges the status of the first electronic device Whether the above state is a lost state; if the first electronic device is in a lost state, the first electronic device sends an offline positioning request, and the offline positioning request instructs the second electronic device to send the location of the second electronic device to the server information; the second electronic device obtains an offline positioning request; the second electronic device obtains the location information of the second electronic device based on the offline positioning request, and sends the location information of the second
  • the fast pairing between the second electronic device and the first electronic device can be realized, so that the second electronic device around the lost device can locate the offline lost device, which can help users find the lost device more quickly and accurately .
  • the first electronic device sending a Bluetooth signal to the second electronic device includes: the first electronic device performs a Bluetooth broadcast at a preset transmission frequency, and the preset The sending frequency is to send a bluetooth broadcast every first interval, and the duration of sending the bluetooth broadcast is the first time.
  • the second electronic device scanning the Bluetooth signal sent by the first electronic device includes: the second electronic device scans at a preset scan frequency, and the The preset scanning frequency is to perform bluetooth signal scanning every second interval, and the duration of the bluetooth signal scanning is the second time length.
  • the value of the second interval time is not greater than the value of the first duration.
  • the confirmation process when the lost state is unknown by setting the frequency of the sending device to send signals and the steps of the receiving device receiving the device, on the premise of ensuring that the sending device and the receiving device can discover each other In this way, the power consumption of the sending-end device and the receiving-end device is reduced, and the waste of power consumption in the confirmation process when the lost state is unknown is avoided.
  • the method further includes: the first electronic device obtains the first interval time and the first duration; the second electronic device obtains the second interval time and the second duration from the server.
  • the offline positioning request is further used to instruct the first electronic device to perform a second Bluetooth pairing with the second electronic device.
  • the offline positioning request is further used to instruct the first electronic device to perform a second Bluetooth pairing with the second electronic device, including: the first The electronic device and the second electronic device perform Bluetooth pairing in a second manner; wherein, performing Bluetooth pairing in the second manner includes: the first electronic device continuously sends Bluetooth broadcasts, and/or the second electronic device continuously scans Bluetooth broadcasts.
  • the method further includes: the first electronic device enables a mobile phone retrieval function.
  • the method further includes: the user logs in to the third electronic device through the account of the first electronic device; the server sends update information to the third electronic device, and the The update information includes location information of the second electronic device; the third electronic device displays a first interface, and the first interface includes the location of the second electronic device.
  • the method further includes: the first interface further includes information of the first electronic device.
  • the method further includes: if the first electronic device is not in a lost state, the method further includes: the first electronic device transmits frequency to send a bluetooth signal to the second electronic device; the second electronic device scans the bluetooth signal sent by the first electronic device at the preset scanning frequency.
  • the number of the second electronic devices is at least two devices.
  • the number of the second electronic devices is at least two, and before the second electronic devices receive the return information sent by the server, the method further includes: the The server judges whether the number of the second electronic devices exceeds the first threshold; if the number of the second electronic devices does not exceed the first threshold, the server sends the return information to the second electronic device; if the The number of second electronic devices exceeds a first threshold, and the server selects a part of the second electronic devices among the second electronic devices, and sends the return information to a part of the second electronic devices.
  • the method further includes: the second electronic device determines whether the number of times of service exceeds a preset first A threshold; if the second electronic device determines that the number of services does not exceed the preset first threshold, the second electronic device sends a query request to the server; if the second electronic device determines that the number of services exceeds the preset first threshold , the second electronic device does not send a query request to the server.
  • the second electronic device obtains location information of the second electronic device based on an offline positioning request, and sends the location information of the second electronic device to a server
  • the method further includes: the second electronic device judging whether the number of services exceeds a preset first threshold; if the second electronic device judges that the number of services does not exceed the preset first threshold, then the second electronic device Before the second electronic device acquires the location information of the second electronic device and sends the location information of the second electronic device to the server; if the second electronic device judges that the number of services exceeds the preset first threshold, then The second electronic device does not acquire the location information of the second electronic device.
  • the embodiment of the present application provides an electronic device interaction method, which specifically includes: the first electronic device sends a Bluetooth signal to the second electronic device, wherein the first electronic device is not connected to the Internet; the first electronic device The device is Bluetooth paired with the second electronic device; the first electronic device obtains the state of the first electronic device sent by the second electronic device, and the state of the first electronic device is determined by the second electronic device Obtained from the server; the first electronic device judges whether the state is a lost state; if the first electronic device is in a lost state, the first electronic device sends an offline positioning request, and the offline positioning request indicates the The second electronic device sends location information of the second electronic device to the server.
  • the first electronic device sending a Bluetooth signal to the second electronic device includes: the first electronic device performs a Bluetooth broadcast at a preset transmission frequency, and the preset The sending frequency is to send a bluetooth broadcast every first interval, and the duration of sending the bluetooth broadcast is the first time.
  • the Bluetooth pairing between the first electronic device and the second electronic device includes: the second electronic device scans at a preset scanning frequency, and the preset The scanning frequency is to perform bluetooth signal scanning every second interval, and the duration of the bluetooth signal scanning is the second time length.
  • the value of the second interval time is not greater than the value of the first duration.
  • the method further includes: the first electronic device obtains the first electronic device from the server. interval time and the first duration.
  • the offline positioning request is further used to instruct the first electronic device to perform a second Bluetooth pairing with the second electronic device.
  • the offline positioning request is further used to instruct the first electronic device to perform a second Bluetooth pairing with the second electronic device, including: the first The electronic device continuously sends the Bluetooth broadcast, and the first electronic device performs Bluetooth pairing with the second electronic device.
  • the method further includes: the first electronic device enables a mobile phone retrieval function.
  • the method further includes: the first electronic device transmits a message to the second electronic device at the preset transmission frequency Send a Bluetooth signal.
  • the embodiment of the present application provides an electronic device interaction method, which specifically includes: the second electronic device scans the Bluetooth signal sent by the first electronic device; the second electronic device interacts with the first electronic device Bluetooth pairing; the second electronic device sends a query request to the server; the second electronic device receives the return information sent by the server, and the return information includes the status of the first electronic device; the second electronic device sends the The state of the first electronic device is sent to the first electronic device; the second electronic device obtains the offline positioning request sent by the first electronic device; the second electronic device obtains the second electronic device based on the offline positioning request location information of the second electronic device, and send the location information of the second electronic device to the server.
  • the first electronic device sending a Bluetooth signal to the second electronic device includes: the first electronic device performs a Bluetooth broadcast at a preset transmission frequency, and the preset The sending frequency is to send a bluetooth broadcast every first interval, and the duration of sending the bluetooth broadcast is the first time.
  • the second electronic device scanning the Bluetooth signal sent by the first electronic device includes: the second electronic device scans at a preset scan frequency, and the The preset scanning frequency is to perform bluetooth signal scanning every second interval, and the duration of the bluetooth signal scanning is the second time length.
  • the value of the second interval time is not greater than the value of the first duration.
  • the method before the second electronic device scans the Bluetooth signal sent by the first electronic device, the method further includes: Obtain the second interval time and the second duration.
  • the offline positioning request is further used to instruct the first electronic device to perform a second Bluetooth pairing with the second electronic device.
  • the offline positioning request is further used to instruct the first electronic device to perform a second Bluetooth pairing with the second electronic device, including: the second electronic device continues to scan Bluetooth broadcasting, the first electronic device performs Bluetooth pairing with the second electronic device for the second time.
  • the number of the second electronic devices is at least two devices.
  • the method before the second electronic device sends a query request to the server, the method further includes: the second electronic device determines whether the number of times of service exceeds a preset first A threshold; if the second electronic device determines that the number of services does not exceed the preset first threshold, the second electronic device sends a query request to the server; if the second electronic device determines that the number of services exceeds the preset first threshold , the second electronic device does not send a query request to the server.
  • the second electronic device obtains the location information of the second electronic device based on an offline positioning request, and sends the location information of the second electronic device to a server
  • the method further includes: the second electronic device judging whether the number of services exceeds a preset first threshold; if the second electronic device judges that the number of services does not exceed the preset first threshold, then the second electronic device Before the second electronic device acquires the location information of the second electronic device and sends the location information of the second electronic device to the server; if the second electronic device judges that the number of services exceeds the preset first threshold, then The second electronic device does not acquire the location information of the second electronic device.
  • an embodiment of the present application provides an electronic device, which is used as a first electronic device, and includes a touch screen, a memory, a transceiver, one or more processors, multiple application programs, and one or more a plurality of programs; wherein the one or more programs are stored in the memory, and the transceiver is used to transmit or receive wireless signals; it is characterized in that the one or more processors are executing the one or more When there are multiple programs, the electronic device is made to implement the method described in any one of the above-mentioned first aspects.
  • an embodiment of the present application provides an electronic device, which is used as a first electronic device, and includes a touch screen, a memory, a transceiver, one or more processors, multiple application programs, and one or more a plurality of programs; wherein the one or more programs are stored in the memory, and the transceiver is used to transmit or receive wireless signals; it is characterized in that the one or more processors are executing the one or more When there are multiple programs, the electronic device is made to implement the method described in any one of the above-mentioned second aspects.
  • an embodiment of the present application provides an electronic device, which is used as a first electronic device, and includes a touch screen, a memory, a transceiver, one or more processors, multiple application programs, and one or more a plurality of programs; wherein the one or more programs are stored in the memory, and the transceiver is used to transmit or receive wireless signals; it is characterized in that the one or more processors are executing the one or more When there are multiple programs, the electronic device is made to implement the method described in any one of the third aspect above.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer Making the computer execute the method described in any one of the above first aspects.
  • the embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer Making the computer execute the method described in any one of the above-mentioned second aspects.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer Making the computer execute the method described in any one of the third aspect above.
  • the embodiment of the present application provides a computer program product, which is characterized in that, when the computer program product is run on a computer, the computer is made to execute the method described in any one of the first aspect, or, the above-mentioned The method described in the second aspect, or, the method described in the first aspect above.
  • the embodiment of the present application provides a computer program product, which is characterized in that, when the computer program product is run on a computer, the computer is made to execute the method described in any one of the first aspect, or, The method described in the second aspect above, or, the method described in the second aspect above.
  • an embodiment of the present application provides a computer program product, which is characterized in that, when the computer program product is run on a computer, the computer is made to execute the method described in any one of the first aspect, or, The method described in the second aspect above, or the method described in the third aspect above.
  • FIG. 1 is a schematic diagram of a scene of an electronic device interaction system provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a first electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic flow diagram of electronic device interaction provided by an embodiment of the present application.
  • 4a-4b are schematic diagrams of the timing sequence of the Bluetooth signal provided by the embodiment of the present application.
  • 5a-5d are schematic diagrams of the interface of the first electronic device provided by the embodiment of the present application.
  • 6a-6b are schematic diagrams of the interface of the second electronic device provided by the embodiment of the present application.
  • FIGS. 7a-7c are schematic diagrams of the interface of the third electronic device provided by the embodiment of the present application.
  • Fig. 8a is a schematic diagram of an electronic device interaction system provided by an embodiment of the present application.
  • Fig. 8b is a schematic diagram of an electronic device interaction system provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of electronic device interaction provided by an embodiment of the present application.
  • Fig. 10a is a schematic diagram of information flow in the software module of the first electronic device provided by the embodiment of the present application.
  • Fig. 10b is a schematic diagram of information flow in the software modules of the first electronic device provided by the embodiment of the present application.
  • the establishment of a Bluetooth connection between two devices refers to the establishment of a Bluetooth link between the two devices, and the two devices can send signals to each other and receive signals sent by the other party through the Bluetooth link.
  • This signal is called a Bluetooth signal.
  • FIG. 1 is a scene application diagram of the acquisition device of the present invention.
  • the electronic device interaction system provided in the embodiment of the present application includes at least two electronic devices.
  • the electronic device in this embodiment of the present application may refer to an electronic device supporting Bluetooth.
  • the electronic device interaction system includes two electronic devices, namely a first electronic device 100 and a second electronic device 200 .
  • both the first electronic device 100 and the second electronic device 200 may include a bluetooth module, and the bluetooth module may be integrated on the electronic device (that is, integrated), or may be pluggable on the electronic device.
  • the first electronic device 100 and the second electronic device 200 may be connected through Bluetooth.
  • both the first electronic device 100 and the second electronic device 200 may be electronic devices supporting Bluetooth such as mobile phones, wearable devices such as smart watches, tablet computers, or personal digital assistants (personal digital assistant, PDA).
  • the first electronic device 100 and the second electronic device 200 may be the same electronic device, for example, both the first electronic device 100 and the second electronic device 200 are mobile phones; the first electronic device 100 and the second electronic device 200 are also It may be different kinds of electronic devices, for example, the first electronic device 100 is a mobile phone, and the second electronic device 200 is a smart watch.
  • the second electronic device may be any device around the lost device, the number of the second electronic device may be at least one, and the second electronic device and the first electronic device Bluetooth communication 200 is possible.
  • the second electronic device has the ability to assist in positioning.
  • the second electronic device has the ability to obtain the current location information of the electronic device.
  • the location information can be, for example, latitude and longitude information; the positioning process can be performed through Global positioning system (global positioning system, GPS) implementation.
  • the second electronic device has networking capability, and the networking capability refers to connecting to the Internet through WIFI or a cellular network.
  • the second electronic device can communicate with the server.
  • the above-mentioned second electronic device can be used as a well-meaning device, and report the location information of the second electronic device to the server to help locate the approximate range of the lost device, so as to quickly find the lost device.
  • the first electronic device is a lost device, and the number of the first electronic device may be at least one.
  • the first electronic device has networking capability, and the networking capability refers to connecting to the Internet through WIFI or a cellular network; in the embodiment of the present application, when the state of the first electronic device is that the user turns off the networking function (turning off the WIFI or cellular network), The first electronic device is disconnected from the network, and the second electronic device cannot communicate with the server. Therefore, the first electronic device cannot report its own location information to the server through its own positioning module.
  • the server is used for communicating with the electronic device, can store relevant information and status information of the electronic device, and can provide electronic device information management and mobile phone retrieval services.
  • the first electronic device registers an account on the server, and the registered account is uniquely bound to the first electronic device's International Mobile Equipment Identity (IMEI) or Mobile Equipment Identify (MEID) given sequence.
  • IMEI International Mobile Equipment Identity
  • MEID Mobile Equipment Identify
  • the second electronic device may also register an account on the server, so that the user of the second electronic device may perform information interaction with the server through the registered account.
  • the registered accounts of the first electronic device and the second electronic device may be terminal device system accounts.
  • the registration accounts of the first electronic device and the second electronic device can be obtained by registering the corresponding accounts in the application program after downloading the corresponding application program; therefore, the second electronic device and the first electronic device
  • the electronic devices may be terminal devices produced by different terminal manufacturers, and the second electronic device and the first electronic device are installed with an application program capable of interacting with the server to implement the implementation solution in this application.
  • the provided electronic device interaction system further includes a third electronic device, and the user can log in the registered account of the first electronic device on the third electronic device, and through the registered account of the first electronic device and the server to interact.
  • the third electronic device may be a computer, a mobile phone, a wearable device such as a smart watch, a tablet computer, and the like.
  • the third electronic device is a computer, the user can log in to the user account through the service website of the login server (such as the portal system Portal); My Device) to log in to the user account.
  • the first electronic device can be remotely controlled to perform corresponding functions; for example, the user can click "location device” to obtain the current location of the first electronic device; or , the user can click "Preset Ringtone” to make the first electronic device ring; or, the user can click "Lost Module” to set the mode of the first electronic device to the lost mode; or, the user can click "Delete Data” to reset the first electronic device Deletion of data related to electronic devices.
  • location device to obtain the current location of the first electronic device
  • Preset Ringtone to make the first electronic device ring
  • the user can click “Lost Module” to set the mode of the first electronic device to the lost mode
  • the user can click "Delete Data” to reset the first electronic device Deletion of data related to electronic devices.
  • FIG. 2 is a schematic structural diagram of a first electronic device provided in an embodiment of the present application.
  • the first electronic device shown in FIG. 2 may be a mobile phone, a tablet computer or a PAD.
  • the first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, A camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device 100 .
  • the first electronic device 100 may include more or fewer components than those shown in the illustration, or combine certain components, or separate certain components, or arrange different components. It is determined according to the actual application scenario, and no limitation is set here.
  • the components shown in FIG. 2 can be implemented in hardware, software, or a combination of software and hardware.
  • the foregoing processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory , video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • graphics processing unit graphics processing unit
  • ISP image signal processor
  • controller a memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller may be the nerve center and command center of the first electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the first electronic device 100 .
  • the first electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used for receiving charging input from the charger, and charging the power management module 141 of the first electronic device 100 .
  • the charger may be a wireless charger or a wired charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the wireless communication function of the first electronic device 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • antenna 1 and antenna 2 can be used to transmit Bluetooth signals.
  • Each antenna in the first electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the first electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device. In some other feasible implementation manners, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide the wireless local area network (wireless local area networks, WLAN) such as Wi-Fi network, Bluetooth (blue tooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the first electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the first electronic device 100 can communicate with the network and other devices (such as second electronic device 200, etc.) to communicate.
  • Wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband code division Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc.
  • the above-mentioned GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou satellite navigation system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system
  • GLONASS global navigation satellite system
  • Beidou satellite navigation system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quasi-zenith satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the first electronic device 100 implements a display function through a GPU, a display screen 194 , and an application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the first electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the display screen 194 may be used to display various interfaces output by the system of the first electronic device 100 .
  • the first electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the first electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the first electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the storage program area can store an operating system, at least one application program required by a function (such as a device management function, a sound playing function, etc.) and the like.
  • the data storage area can store data created during use of the first electronic device 100 (such as device parameters, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the first electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some feasible implementation manners, the pressure sensor 180A can be disposed on the display screen 194 .
  • the gyro sensor 180B can be used to determine the motion posture of the first electronic device 100 .
  • the air pressure sensor 180C is used to measure air pressure.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
  • the distance sensor 180F is used to measure distance.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the temperature sensor 180J is used to detect temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the first electronic device 100 , which is different from the position of the display screen 194 .
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 can be a mechanical key or a touch key.
  • the motor 191 can generate a vibrating reminder.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the first electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the first electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100 .
  • the software system of the first electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software structure of the first electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
  • FIG. 3 is a software structural block diagram of a first electronic device provided in an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system can be divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include Bluetooth, device management application (application with device management function), navigation, map, WLAN, short message, gallery, calendar, call and other applications (applications, APPs).
  • the application framework layer provides application programming interfaces and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the aforementioned data can include videos, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the first electronic device 100 .
  • the management of call status including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog interface. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the electronic device interaction method in the embodiment of the present application may be applicable to positioning scenarios of one or more electronic devices.
  • the following only uses one electronic device to locate another electronic device as an example for illustration. It can be understood that the positioning scene can be used to locate at least one first electronic device; the second electronic device can also locate multiple other electronic devices at the same time.
  • FIG. 3 is a schematic flowchart of an electronic device interaction method provided by an embodiment of the present application.
  • FIG. 3 shows the electronic device interaction between the first electronic device 100 and the second electronic device 200 and the internal data processing process of the first electronic device 100 .
  • Phase 1 The phase of confirming that the first electronic device is in a lost state
  • the first electronic device determines that the electronic device is in an offline state.
  • the offline state refers to the situation that the WIFI network or the cellular network setting of the first electronic device is not turned on, so that the first electronic device cannot log in to the Internet.
  • the first electronic device may be in an environment with poor network signal, and at this time, the first electronic device may be connected to the network intermittently. Therefore, in some cases, the first electronic device is set with a preset time. If the offline time of the electronic device exceeds the preset time, the electronic device judges that the current state is offline; if the offline time of the electronic device does not exceed the preset time, the electronic device judges that the current state is not offline. In some embodiments, when the user actively closes the connection between the mobile phone and the network, the electronic device judges that the current state is offline, and triggers the following steps for retrieving the lost device. , can also realize the retrieval function of the mobile phone. By setting the preset time, it is avoided that when the electronic device mistakenly judges that the signal is not good as a lost state, and sends the bluetooth signal, thereby causing unnecessary waste of power consumption of the electronic device.
  • the first electronic device needs to enable the "Find My Phone” function. Specifically, as shown in FIGS. 5a-5c, the "cloud service” module in the settings of the first electronic device can be selected, and then the “search device” function in the “cloud service” function can be selected.
  • the electronic device turns on the “find device” function, if the electronic device determines that the current state is offline, it executes the function of searching for the mobile phone.
  • the function of searching the mobile phone includes: if the mobile phone is online, then report the current location information of the mobile phone to the cloud server in real time, and the location information can be obtained by the GPS module of the mobile phone; Pair with other mobile phones, and report the signal of the lost mobile phone to the server.
  • the current location information of the electronic device is acquired, and the location information may be, for example, longitude and latitude information.
  • the positioning process can be realized through a global positioning system (global positioning system, GPS).
  • the "find device” function includes the functions of “find my mobile phone”, “enable offline search", and "send the last location”.
  • "Open Find My Phone” can realize the search of mobile phones in the networked state. For example, when the user clicks on the positioning device in Figure 7c, the server sends a positioning command to the lost device, and when the lost device turns on the "Open Find My Phone” function, it sends the current location to the server; or, when the power of the lost device is low The default value, and the lost device has turned on "Open Find My Phone” and is connected to the Internet, and sends the current location to the server.
  • the user can perform the function of offline mobile phone search, specifically, the steps of finding a mobile phone for a lost device in the following embodiments can be performed.
  • Send Last Location the last location information before offline is sent to the cloud server, or, when the power of the lost device is lower than the preset value, the current location is sent to the server, and the location information can be passed through the GPS module of the mobile phone Get it.
  • the first electronic device is provided with a search module, which is used to determine whether the search function of the first electronic device is turned on.
  • the search function of the first electronic device is turned on, the location of the electronic device is reported to the server in real time; at the same time, it is used to detect the network status of the first electronic device, and if the electronic device is offline, the function of offline search of the electronic device is performed.
  • the search module of the first electronic device sends a pairing request to the Bluetooth module, and the pairing request is used to call a Bluetooth interface to trigger the Bluetooth module to send a Bluetooth broadcast.
  • the first electronic device when the first electronic device determines that the current state is offline, it can directly call the interface of the Bluetooth module, and then trigger the Bluetooth module to send a Bluetooth broadcast. In some embodiments, when the first electronic device determines that the current state is offline, even if the first electronic device does not turn on the Bluetooth function, or the user turns off the Bluetooth function on the operation interface, in this scenario, it does not affect the second An electronic device directly calls the bluetooth module, that is to say, the first electronic device can drive the bluetooth module to send a broadcast signal through an instruction inside the system in an offline state.
  • the Bluetooth broadcast carries an identifier of the first electronic device, and the identifier is used by the server to identify the identity of the first electronic device. Specifically, when the first electronic device logs in to the server, the account number and the identification of the electronic device are sent to the server, and the server saves the account number and identification of the first electronic device, and when the identification of the electronic device is subsequently received , it can be matched with the corresponding account.
  • the Bluetooth broadcast carries the public key of the first electronic device, and the public key is used by the server to identify the identity of the first electronic device. Specifically, when the first electronic device logs in to the server, the account number of the first electronic device and the public key of the electronic device are sent to the server, and the server stores the account number and public key of the first electronic device. When the public key is used, it can be matched with the corresponding account. In some implementations, the first electronic device updates the public key information at regular intervals (for example, one day).
  • the information is sent to the server, and the server saves the account number and all public keys of the first electronic device; in this way, even if the electronic device is connected to the server after a certain period of time after it is lost, the server can also identify the first electronic device according to the pre-stored public key. device signal. Specifically, the electronic device uploads the public key to the server side through other devices on the second day after it is lost. At this time, since the server side pre-stores the public key information within 14 days after the loss, the public key can be stored according to the pre-stored public key information. The information matches the corresponding device information.
  • the Bluetooth broadcast does not directly transmit the public key information of the first electronic device, so that other devices that receive the Bluetooth broadcast cannot know the specific information of the first electronic device, which can improve the security of the first electronic device.
  • the security of the device In addition, periodically updating the public key can avoid the problem of public key information being tracked and cracked, improve the security of information transmission, and protect the privacy of users who lose their devices.
  • the bluetooth broadcast message carries a loss identifier, for example, a certain identification bit in the bluetooth message is identified as "lost device", so that when the receiving electronic device receives the bluetooth broadcast , the subsequent step of further confirmation to the server can be triggered.
  • the bluetooth broadcast message carries an event code, for example, the event code is 01, indicating that when the electronic device receives the bluetooth broadcast, it can trigger a subsequent step of further confirmation to the server; the event code is 02 means that when the electronic device receives the Bluetooth broadcast, it can trigger the subsequent step of reporting the location to the server; the second electronic device can identify the event corresponding to the event code after receiving the message, And execute the corresponding event according to the event code.
  • the second electronic device 200 receives the Bluetooth broadcast sent by the first electronic device through the Bluetooth module, and the first electronic device 100 establishes a connection with the second electronic device 200 through the Bluetooth.
  • the second electronic device may be any device around the lost device, and the second electronic device may perform Bluetooth communication with the first electronic device.
  • the Bluetooth function can be turned on in the settings of the second electronic device. After the Bluetooth function is turned on, the second electronic device can monitor the broadcast sent by the first electronic device and assist the first electronic device to locate.
  • the Bluetooth module of the first electronic device 100 performs the Bluetooth broadcast at a preset transmission frequency when sending the Bluetooth broadcast, for example, once every preset T time, and sends the Bluetooth broadcast
  • the duration is X seconds, and during these X seconds, the Bluetooth broadcast information is continuously sent.
  • the power consumption of the first electronic device is X (second)/half hour.
  • the Bluetooth module of the second electronic device 200 scans at a preset scanning frequency when performing signal scanning, and the preset second electronic device scans every y seconds Once, and each scan is z seconds long.
  • the preset transmitting frequency and the preset scanning frequency satisfy a preset rule, and the preset rule satisfies X ⁇ y.
  • the preset rules ensure that: as long as the sender initiates a broadcast, if the receiver exists, the receiver can receive the broadcast, which reduces the process of inquiring whether the other party exists.
  • Different devices only need to follow the unified Standardize the sending and receiving of broadcasts, and the sender and receiver can complete the handshake communication.
  • the sending end sends the Bluetooth broadcast for X seconds
  • the receiving end continues to scan for z seconds
  • the scanning interval is sent to the first electronic device and the second electronic device by the server.
  • the server can send specific duration information to the search module of the first electronic device and the second electronic device, so as to ensure that the sending frequency of the first electronic device is the same as that of the second electronic device.
  • the scanning frequency of the electronic device satisfies a preset condition.
  • the situation that the first electronic device sends the Bluetooth broadcast and the second electronic device scans the Bluetooth broadcast includes: (1), the first electronic device starts to send the Bluetooth broadcast, and the second electronic device is scanning; (2), the first electronic device starts to broadcast (3), when the first electronic device starts broadcasting, the second electronic device has just finished scanning; (4), when the first electronic device starts broadcasting, the second electronic device is not scanning.
  • the second electronic device can scan the first electronic device for a certain period of time.
  • the first electronic device when X>y, sends a Bluetooth broadcast every preset time T, each time for X seconds, and the second electronic device scans once every y seconds, And each scan is z seconds long.
  • the situation that the first electronic device sends the Bluetooth broadcast and the second electronic device scans the Bluetooth broadcast includes: (1), the first electronic device starts to send the Bluetooth broadcast, and the second electronic device is scanning; (2), the first electronic device starts to broadcast (3), when the first electronic device starts broadcasting, the second electronic device has just finished scanning; (4), when the first electronic device starts broadcasting, the second electronic device is not scanning.
  • the second electronic device can scan the first electronic device for a certain period of time.
  • the Bluetooth broadcast signal sent by the device Therefore, when the first electronic device sends a Bluetooth broadcast at a preset sending frequency, and the second electronic device scans a Bluetooth signal at a preset receiving frequency, and makes the preset sending frequency and the pre-casting receiving frequency satisfy X>y, the second electronic device The second electronic device can scan the Bluetooth broadcast sent by the first electronic device.
  • the above process is the bluetooth assisted positioning stage.
  • the discovery of the lost device is a continuous process, that is, when the bluetooth module function of the electronic device is turned on, the receiving device continues to scan, and the sending device continues to send bluetooth signals , therefore, the confirmation process in the case of an unknown lost state has caused the problem of large power consumption and high power consumption of the Bluetooth distance modules of the sending end device and the receiving end device.
  • the confirmation process when the lost state is unknown by setting the frequency of the sending device to send signals and the steps of the receiving device receiving the device, on the premise of ensuring that the sending device and the receiving device can discover each other In this way, the power consumption of the sending-end device and the receiving-end device is reduced, and the waste of power consumption in the confirmation process when the lost state is unknown is avoided.
  • the power consumption of the transmitting end in the embodiment of the present application is compared with the power consumption of the transmitting end in the prior art, and the power consumption of the present application is X (continuous transmission time)/T of the power consumption of the prior art (preset interval time); in the embodiments of the application, the power consumption of the receiving end is compared with the power consumption of the receiving end in the prior art, and the power consumption of the application is z (continuous scanning time)/y of the prior art power consumption (preset interval).
  • the continuous scanning time of y can be reduced under the premise that the Bluetooth signal can be scanned.
  • the power consumption of the sending end device and the receiving end device can be controlled with arbitrary precision by controlling the duration of the respective sending or scanning and the ratio of the overall time to start the task.
  • the Bluetooth module of the second electronic device sends a first instruction to the search module of the second electronic device, where the first instruction is used to trigger the search module to send a query request to the server.
  • the second electronic device after the second electronic device receives the Bluetooth broadcast, it parses the identification bit of the Bluetooth message as "lost device", and triggers the second electronic device to invoke the search module to send a query request to the server.
  • the information carried by the first instruction includes device information of the first electronic device, specifically, the device information includes the identification of the first electronic device or the public key information of the first electronic device, the identification of the first electronic device Or the public key information of the first electronic device can be obtained from the Bluetooth broadcast of the first electronic device.
  • the information carried by the first instruction may also include the battery level and function parameters (such as positioning function) of the second electronic device 200 .
  • the second electronic device sends a query request to the server 100, and the confirmation specifies to query the status information of the first electronic device.
  • the confirmation information includes the identification of the first electronic device or the public key information of the first electronic device, and the identification of the first electronic device or the public key information of the first electronic device can be obtained from the Bluetooth of the first electronic device obtained on the broadcast.
  • the server queries the status of the first electronic device.
  • the server queries the state of the first electronic device according to the identifier of the first electronic device or the public key information of the first electronic device, and the state includes a lost state or a normal use state.
  • the lost status of the first electronic device may be updated through steps S200-S201.
  • the server sends the status of the first electronic device to the second electronic device.
  • the second electronic device sends the state of the first electronic device to the first electronic device.
  • the server sends the status of the first electronic device to the search module of the second electronic device
  • the search module of the second electronic device sends the status of the first electronic device to the first electronic device through the Bluetooth module of the second electronic device and the Bluetooth module of the first electronic device.
  • a lookup module for electronic devices is a module for electronic devices.
  • the third electronic device sends the first report information to the server.
  • the user logs in the official website of the mobile phone manufacturer through the third electronic device or reports the status information of the lost mobile phone through the search module of the third electronic device.
  • the reported information carries the user's account information.
  • the user can click the "Find My Device” icon of the third electronic device to enter the search module, as shown in Figure 7b, the user can log in the account of the lost device; in the interface shown in Figure 7c, The user can lock the lost device by clicking "Lost Mode".
  • the server when the server receives a report from the third electronic device that the first electronic device is lost, the server will send an instruction to lock the first electronic device.
  • the locking interface of the first electronic device is shown in Figure 5d, and the information that this device is a lost device will be displayed on the interface. Specifically, it can be "Hello, this is my lost device. Contact me, thank you”; at the same time, the specific contact information "My contact information: +86 18812345678" can be displayed, so that users who see the lost mobile phone can contact the owner.
  • the server records a lost state of the first electronic device.
  • the server associates the user's account information in the reported information with the user equipment and the public key information of the user equipment, and updates the normal use status of the first electronic device to a lost status.
  • Phase 2 the first electronic device obtains location information of surrounding devices through the second electronic device.
  • the first electronic device initiates an offline positioning request, the offline positioning request is used to instruct the first electronic device to pair with the second electronic device via Bluetooth, and instruct the second electronic device to initiate an offline positioning function.
  • the first electronic device After the first electronic device receives the state of the first electronic device sent by the second electronic device, if the state of the first electronic device is a lost state, the first electronic device initiates an offline positioning request, and the offline positioning request Used to indicate that the first electronic device is paired with the second electronic device via Bluetooth.
  • the second electronic device 200 receives the Bluetooth broadcast sent by the first electronic device through the Bluetooth module, and the first electronic device 100 establishes a connection with the second electronic device 200 through the Bluetooth in a second manner.
  • the specific pairing method of the first electronic device and the second electronic device is different from the pairing method in step S103 of stage one. the difference.
  • the pairing method used in Phase 2 is to realize the rapid communication between the second electronic device and the first electronic device. pair.
  • establishing a connection between the first electronic device 100 and the second electronic device 200 through Bluetooth includes: the first electronic device continuously sends Bluetooth broadcasts in the second sending mode, and the second electronic device uses the second scan pattern scan.
  • the second sending mode is specifically: the first electronic device continuously sends the Bluetooth broadcast, which may include that the first electronic device continuously sends the Bluetooth broadcast or the first electronic device sends the Bluetooth broadcast at the second sending frequency; wherein, the Compared with the above-mentioned preset sending frequency, when the second sending frequency is paired in the second way, the interval between sending the Bluetooth broadcast every two times by the first electronic device is shorter, and/or, the second electronic device sends a bluetooth broadcast every time Bluetooth broadcasts last longer.
  • the second scanning mode is specifically: the second electronic device continuously scans the Bluetooth broadcast, which may include that the second electronic device continuously scans the Bluetooth broadcast sent by the first electronic device, or the second electronic device scans the Bluetooth broadcast at the second scanning frequency.
  • the Bluetooth broadcast sent by the first electronic device wherein, when the second scanning frequency is compared with the above-mentioned preset scanning frequency, when pairing is performed in the second manner, the interval between two scans of the second electronic device is shorter, And/or, the duration of each scan of the second electronic device is longer.
  • the second electronic device 200 switches to the second scanning mode, which is a mode of continuous scanning or scanning at the second frequency. Specifically, when the second electronic device receives the return from the server that the first electronic device is in a lost state, at this time, the second electronic device will enter phase two, and the second electronic device controls the scanning mode of the Bluetooth module to switch from the lost state Second scan mode.
  • the second electronic device 200 switches to the first scanning mode of the lost mode after step S302. Specifically, after the second electronic device is successfully paired, the second electronic device controls the Bluetooth module from the second The scan mode is switched to the scan mode in the lost state, so as to reduce the power consumption of the second electronic device.
  • the first electronic device receives the lost state information of the first electronic device returned by the second electronic device, and the first electronic device controls the bluetooth module to switch from the sending mode of the lost state.
  • Two send mode In some states, before the first electronic device is connected to the Internet again, it maintains the second sending mode for broadcasting and pairing of Bluetooth information; The second sending mode can match the second electronic device more quickly, improve the recovery rate of the lost device, and will not increase the power consumption of the bluetooth module.
  • the Bluetooth module used by the second electronic device to find the lost device is a different module or a different unit from the Bluetooth module used by the second electronic device to normally use the Bluetooth function.
  • the two modules can Different tasks are performed independently of each other, for example, different frequencies may be used for scanning, or different channels may be used for scanning, or different hardware units in the Bluetooth device are used to process different functions.
  • the bluetooth module used by the first electronic device or the second electronic device to find the lost device can be as shown in Figure 6a-6b, the user turns on the bluetooth function in the device, or the system can directly control the search
  • the Bluetooth module of the lost device is turned on.
  • the first electronic device when the first electronic device determines that the electronic device is offline, the first electronic device can directly control the Bluetooth module of the lost device to be turned on, that is, even if the user does not manually turn on the Bluetooth module of the first electronic device.
  • the bluetooth module, the first electronic device can also automatically turn on the bluetooth module to find the lost device.
  • the second electronic device requires the user to control the Bluetooth module of the lost device to be turned on, so that the second electronic device performs the function of pairing with the lost device after the user confirms.
  • the first electronic device since in stage one, the first electronic device is not determined to be in a lost state, if the electronic device is judged to be in an offline state, and continuously sends Bluetooth broadcasts, it will cause an increase in power consumption and shorten the standby time of the lost device. affect the normal use of the device.
  • the standby time of the first electronic device due to the reduction of the time for sending Bluetooth broadcasts per unit time, on the one hand, the standby time of the first electronic device is extended, and when the lost device cannot confirm whether it is really lost, it reduces the risk of loss due to the terminal being offline. Power loss in the non-lost state; on the other hand, in a longer standby time, there will be more opportunities to pair with the second electronic device around, which increases the probability of finding the lost device when the device is lost.
  • the Bluetooth module of the second electronic device sends a second instruction to the search module of the second electronic device, where the second instruction is used to trigger the search module to send update information to the server.
  • the second electronic device parses the device information of the first electronic device in the Bluetooth packet, specifically, the device information includes the identifier of the first electronic device or the first Public key information of electronic devices.
  • the second electronic device sends update information to the server, where the update information includes current location information of the second electronic device.
  • the location information of the second electronic device may be, for example, longitude and latitude information; the positioning process may be implemented through a global positioning system (global positioning system, GPS).
  • the update information includes the device information of the first electronic device, specifically, the device information of the first electronic device includes the identification of the first electronic device or the public key information of the first electronic device, the identification of the first electronic device or the The public key information of an electronic device may be obtained from an offline location request sent by the first electronic device, and the device information of the first electronic device is used to instruct the server to store the location information of the second electronic device according to the device information of the first electronic device. Match with the first electronic device account.
  • the physical distance between the two devices will be within a certain range, such as a range of about 10 meters, and the second electronic device will The location of is reported to the server as the nearby location of the first electronic device for the user to check.
  • the server updates the location information of the first electronic device according to the update information.
  • the server matches the location information of the second electronic device with the account number of the first electronic device according to the device information of the first electronic device.
  • the server may include the identifier of the first electronic device or the The public key information of an electronic device determines the account number of the first electronic device.
  • the updating of the position information of the first electronic device includes: recording the position information of the second electronic device as the position information around the first electronic device, so that the position of the second electronic device is consistent with the position of the first electronic device, the position of the first electronic device The account has established an association relationship.
  • updating the location information of the first electronic device specifically includes: the server may combine the location information of the multiple second electronic devices with the first electronic device. The account numbers of the devices are matched, and the location information of multiple second electronic devices is recorded as the location information around the first electronic device.
  • the second electronic device can be selected through the server side or the second electronic device side, so as to avoid too many electronic devices
  • the mobile phone retrieval function of the first electronic device reduces the waste of power consumption as a whole.
  • the search module of the second electronic device is provided with a service counting module
  • the service counting module is provided with a preset first threshold.
  • the service counting module of the second electronic device resets to zero and starts counting again.
  • the information may refer to the server periodically sending instructions to the electronic device, and the instruction is used to instruct the service counting module of the second electronic device to reset, or the information may refer to the frequency update information sent by the server to the electronic device periodically.
  • the second electronic device receives the frequency update information, it also resets the service counting module.
  • the service counting module when the second electronic device sends update information to the server (such as S306), the service counting module saves a service record; in some embodiments, when the second electronic device sends update information to the server (such as S306) or when the second electronic device sends a query request to the server (eg S105), the service counting module saves a service record once.
  • the second electronic device judges whether the current number of services exceeds a preset first threshold, and if the number of services exceeds the preset threshold, the second electronic device does not execute steps S103-106, or When performing steps S302-S304.
  • the second electronic device can turn off the bluetooth module, and no longer perform pairing between the second electronic device and the first electronic device.
  • the second electronic device determines whether the current number of services exceeds the preset first threshold, and if the number of services exceeds the preset If the threshold is set, the second electronic device will no longer send query requests (S104-106) or update information (S303-S304) to the server.
  • the second electronic device 201 judges that the current number of service times exceeds the preset first threshold, it does not send a query request or offline positioning request to the server; the second electronic devices 200 and 202 judge the current number of service times If it does not exceed the preset first threshold, send a query request to the server and receive the status information returned by the server, or send an offline positioning request to the server, therefore, the device 201 does not perform subsequent information interaction with the lost device. .
  • the second electronic device needs to unilaterally limit the number of services, so that the second electronic device provides limited services, avoiding a single device communicating with multiple lost devices or communicating with one device multiple times, and then The power consumption of a single device is too large.
  • the server is provided with a second electronic device counting module, and the second electronic device counting module sets a preset second threshold.
  • the server side judges whether the number of second electronic devices exceeds the preset second threshold, and if the number of second electronic devices exceeds the preset second threshold, the server According to selecting a second threshold number of second electronic devices from a plurality of second electronic devices to communicate with the first electronic device, the second electronic devices not selected by the server do not need to be paired and coordinated with the lost device, specifically, for the second electronic devices not selected by the server device, the status information sent by the server and returned to the first electronic device will not be received, and therefore the subsequent steps will not be performed.
  • unified decision-making and quota management on the server side prevent too many second electronic devices from serving the same lost device, simplify message communication between multiple devices, and improve the accuracy of server decision-making performance, reducing the number of established and consumed links, and avoiding unnecessary repeated power consumption.
  • the server side judges that the number of second electronic devices exceeds the preset second threshold, and selects devices 200 and 202 as devices that need to be paired and coordinated with the missing device , and device 201 is a device that does not need to be paired with the missing device; at this time, the server returns the status information of the first electronic device to devices 200 and 202, but does not return the status information of the first electronic device to device 201. Therefore, the device 201 does not perform subsequent information interaction with the lost device.
  • the server sends the location of the second electronic device to the third electronic device according to the information of the first electronic device, where the user logs in the account of the first electronic device on the third electronic device.
  • the server sends the location information of the second electronic device to the device logged in with the account of the first electronic device.
  • the third electronic device acquires update information, and updates the location information of the first electronic device.
  • the third electronic device displays the first interface in the search module of the third electronic device according to the acquired update information
  • the first interface may include at least one second electronic device.
  • the second electronic device includes devices A1-A8, and the first interface may also display distance scale lines. In this way, the user can intuitively see the position of the second electronic device around the first electronic device by viewing the first interface, so that the user can determine the approximate range of the first electronic device according to the position of the second electronic device, so that the user can more Quickly and accurately find lost devices, improving the recovery rate of lost devices.
  • FIG. 9 is a schematic flow diagram of an electronic device interaction method provided by an embodiment of the present application.
  • FIGS. 10a and 10b are schematic diagrams showing the information flow of the electronic device interaction method, showing the first electronic device 100 and the second electronic device 200. Interaction and the internal data processing process of the first electronic device 100.
  • the first electronic device determines that the electronic device is in an offline state.
  • the search module of the first electronic device calls the network connection module, or, when the network connection module of the first electronic device detects that the connection state changes, it reports the network connection to the search module. For status information, the search module of the first electronic device determines whether the first electronic device is in a networked state or an offline state.
  • the search module of the first electronic device invokes the Bluetooth module of the first electronic device, so that the Bluetooth module of the first electronic device sends a Bluetooth broadcast.
  • the Bluetooth module of the first electronic device 100 transmits the Bluetooth broadcast at a preset transmission frequency when sending the Bluetooth broadcast, for example, every preset T time, and the duration of sending the Bluetooth broadcast is X seconds.
  • the bluetooth module of the second electronic device 200 scans at a preset scanning frequency when performing signal scanning.
  • the preset second electronic device scans once every y seconds, and each scan lasts z seconds.
  • the preset transmitting frequency and the preset scanning frequency satisfy a preset rule, and the preset rule satisfies X ⁇ y.
  • the second electronic device sends a query request to the server.
  • the Bluetooth module of the second electronic device invokes the search module to send a query request to the server.
  • the server queries the status of the first electronic device according to the information reported by the third electronic device, and returns the status to the search module of the second electronic device.
  • the second electronic device receives return information sent by the server, where the return information includes the status of the first electronic device.
  • the second electronic device sends the status of the first electronic device to the first electronic device
  • the search module of the second electronic device obtains the return information sent by the server, and sends the return information to the Bluetooth module through the Bluetooth module of the second electronic device.
  • the first electronic device determines whether the state is a lost state.
  • the Bluetooth module of the first electronic device sends the returned information to the search module, and the Bluetooth module or the search module of the first electronic device analyzes the returned information to confirm whether the state is a lost state.
  • the first electronic device If the first electronic device is in a lost state, the first electronic device sends an offline positioning request, and the offline positioning request instructs the second electronic device to send the location information of the second electronic device to the server.
  • the search module of the first electronic device sends an offline positioning request through the Bluetooth module, and the offline positioning request instructs the second electronic device to send location information of the second electronic device to a server.
  • the offline positioning request is used to instruct the first electronic device to pair with the second electronic device in a second manner, and the specific pairing manner is similar to that described in the above embodiments, and will not be repeated here.
  • the server sends the state of the first electronic device to the second electronic device, and the second electronic device sends the state. After receiving the state, the first electronic device determines that the first electronic device is in a normal state, and repeats the above-mentioned process of S12-S16.
  • the second electronic device obtains an offline positioning request; the second electronic device obtains location information of the second electronic device based on the offline location request, and sends the location information of the second electronic device to a server.
  • the search module of the second electronic device obtains an offline positioning request through the Bluetooth module, and the search module invokes the GPS module to obtain the location information of the second electronic device, and sends the location information of the second electronic device to the server.
  • the server sends the location information of the second electronic device to the third electronic device, and the third electronic device displays a first interface, and the first interface includes the location information of the second device.
  • each device embodiment can refer to the relevant method embodiments. understand the relevant parts.
  • At least one means one or more, and “multiple” means two or more.
  • At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • at least one item (unit) of a, b, or c or “at least one item (unit) of a, b, and c” can mean: a, b, c, a-b( That is, a and b), a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
  • sequence numbers of the above-mentioned processes do not mean the order of execution, and some or all steps may be executed in parallel or sequentially, and the execution order of each process shall be based on its functions and The internal logic is determined and should not constitute any limitation to the implementation process of the embodiment of the present application.
  • first, second, and third may be used in the embodiments of the present invention to describe various messages, requests, and terminals, these messages, requests, and terminals should not be limited to these terms. These terms are only used to distinguish message, request, and endpoint from each other.
  • a first terminal may also be called a second terminal, and similarly, a second terminal may also be called a first terminal.
  • the words “if” or “if” as used herein may be interpreted as “at” or “when” or “in response to determining” or “in response to detecting”.
  • the phrases “if determined” or “if detected (the stated condition or event)” could be interpreted as “when determined” or “in response to the determination” or “when detected (the stated condition or event) )” or “in response to detection of (a stated condition or event)”.
  • Some embodiments of the present application may divide the electronic device into functional modules according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in some embodiments provided in the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application will be produced in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk).
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了一种电子设备交互方法及相关装置,该方法包括:第一电子设备与第二电子设备蓝牙配对,其中,所述第一电子设备为未联网状态;所述第二电子设备向服务器发送查询请求,获取所述第一电子设备的状态;所述第二电子设备将所述第一电子设备的状态发送至所述第一电子设备;若所述第一电子设备为丢失状态,所述第一电子设备发送离线定位请求,所述离线定位请求指示所述第二电子设备向服务器发送第二电子设备的位置信息。采用本申请实施例,可以实现对离线丢失设备的定位,能够帮助用户更快速准确的找到丢失设备。

Description

电子设备交互方法及装置
本申请要求在2021年7月1日提交中国国家知识产权局、申请号为202110743882.0的中国专利申请的优先权,发明名称为“电子设备交互方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种电子设备交互方法及相关设备。
背景技术
目前,当智能电子设备丢失后,用户通常需要通过登录手机厂商的官方网站或者通过其他电子设备登录丢失的云端账号,查看丢失手机的最近或最后一次登录该云端账号时的具体地理位置,从而找回手机。当丢失设备为在线联网状态时,服务器可以实时定位到当前手机所在的地理位置;然而,如果丢失设备为未在线联网状态,服务器则无法获得离线手机的位置,使得丢失手机无法找回,用户体验差。
发明内容
本申请实施例提供一种电子设备交互方法及装置,可以实现丢失设备的定位,能够帮助用户更快速准确的找到丢失的设备。
下面从不同的方面介绍本申请,应理解的是,下面的不同方面的实施方式和有益效果可以互相参考。
第一方面,本申请实施例提供一种电子设备交互方法,具体包括:第一电子设备向第二电子设备发送蓝牙信号,其中,所述第一电子设备为未联网状态;所述第二电子设备扫描第一电子设备发送的所述蓝牙信号;所述第一电子设备与所述第二电子设备蓝牙配对;所述第二电子设备向服务器发送查询请求;所述第二电子设备接收服务器发送的返回信息,所述返回信息包括所述第一电子设备的状态;所述第二电子设备将所述第一电子设备的状态发送至所述第一电子设备;所述第一电子设备判断所述状态是否为丢失状态;若所述第一电子设备为丢失状态,所述第一电子设备发送离线定位请求,所述离线定位请求指示所述第二电子设备向服务器发送第二电子设备的位置信息;所述第二电子设备获取离线定位请求;所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中。
采用如上述的实施例,实现第二电子设备与第一电子设备的快速配对,使得在丢失设备周围的第二电子设备可以实现对离线丢失设备的定位,能够帮助用户更快速准确的找到丢失设备。
结合第一方面,在一种可能的实施方式中,所述第一电子设备向第二电子设备发送蓝牙信号包括:所述第一电子设备以预设的发射频率进行蓝牙广播,所述预设的发送频率为每隔第一间隔时间发送一次蓝牙广播,所述蓝牙广播发送的持续时长为第一时长。
结合第一方面,在一种可能的实施方式中,所述第二电子设备扫描第一电子设备发送的所述蓝牙信号包括:所述第二电子设备以预设的扫描频率进行扫描,所述预设的扫描频率为 每隔第二间隔时间执行蓝牙信号扫描,所述蓝牙信号扫描的持续时长为第二时长。
结合第一方面,在一种可能的实施方式中,所述第二间隔时间的数值不大于所述第一时长的数值。
采用如上所述的方案,在丢失状态不明情况下的确认过程,通过设定发送端设备发送信号的频率以及接收端设备接收设备的步骤,在保证发送端设备和接收端设备可以相互发现的前提下,降低了发送端设备和接收端设备的功耗,避免了丢失状态不明情况下的确认过程的功耗浪费。
结合第一方面,在一种可能的实施方式中,在第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:所述第一电子设备从所述服务器获取所述第一间隔时间和所述第一时长;所述第二电子设备从所述服务器获取所述第二间隔时间和所述第二时长。
结合第一方面,在一种可能的实施方式中,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对。
结合第一方面,在一种可能的实施方式中,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对包括:所述所述第一电子设备与第二电子设备以第二方式进行蓝牙配对;其中,第二方式进行蓝牙配对包括:所述第一电子设备持续发送蓝牙广播,和/或所述第二电子设备持续扫描蓝牙广播。
结合第一方面,在一种可能的实施方式中,在所述第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:所述第一电子设备开启手机找回功能。
结合第一方面,在一种可能的实施方式中,所述方法还包括:用户通过第一电子设备的账号登录第三电子设备;所述服务器向所述第三电子设备发送更新信息,所述更新信息包括所述第二电子设备的位置信息;所述第三电子设备显示第一界面,所述第一界面包括所述第二电子设备的位置。
结合第一方面,在一种可能的实施方式中,所述方法还包括:所述第一界面还包括第一电子设备的信息。
结合第一方面,在一种可能的实施方式中,所述方法还包括:若所述第一电子设备不是丢失状态,所述方法还包括:所述第一电子设备以所述预设的发射频率向第二电子设备发送蓝牙信号;所述第二电子设备以所述预设的扫描频率扫描第一电子设备发送的所述蓝牙信号。
结合第一方面,在一种可能的实施方式中,所述第二电子设备的数量为至少两个设备。
结合第一方面,在一种可能的实施方式中,所述第二电子设备的数量为至少两个,在所述第二电子设备接收服务器发送的返回信息之前,所述方法还包括:所述服务器判断所述第二电子设备的数量是否超过第一阈值;若所述第二电子设备的数量未超过第一阈值,所述服务器向所述第二电子设备发送所述返回信息;若所述第二电子设备的数量超过第一阈值,所述服务器在所述第二电子设备中选择一部分数量的所述第二电子设备,并向一部分数量的所述第二电子设备发送所述返回信息。
结合第一方面,在一种可能的实施方式中,在所述第二电子设备向服务器发送查询请求之前,所述方法还包括:所述第二电子设备判断服务次数是否超过了预设的第一阈值;若所述第二电子设备判断服务次数未超过预设的第一阈值,则第二电子设备向服务器发送查询请求;若所述第二电子设备判断服务次数超过预设的第一阈值,则第二电子设备不向服务器发送查询请求。
结合第一方面,在一种可能的实施方式中,所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前,所述 方法还包括:所述第二电子设备判断服务次数是否超过了预设的第一阈值;若所述第二电子设备判断服务次数未超过预设的第一阈值,则所述第二电子设备获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前;若所述第二电子设备判断服务次数超过预设的第一阈值,则所述第二电子设备不获取所述第二电子设备的位置信息。
第二方面,本申请实施例提供一种电子设备交互方法,具体包括:第一电子设备向第二电子设备发送蓝牙信号,其中,所述第一电子设备为未联网状态;所述第一电子设备与所述第二电子设备蓝牙配对;所述第一电子设备获取所述第二电子设备发送的所述第一电子设备的状态,所述第一电子设备的状态由所述第二电子设备从服务器获取得到;所述第一电子设备判断所述状态是否为丢失状态;若所述第一电子设备为丢失状态,所述第一电子设备发送离线定位请求,所述离线定位请求指示所述第二电子设备向服务器发送第二电子设备的位置信息。
结合第二方面,在一种可能的实施方式中,所述第一电子设备向第二电子设备发送蓝牙信号包括:所述第一电子设备以预设的发射频率进行蓝牙广播,所述预设的发送频率为每隔第一间隔时间发送一次蓝牙广播,所述蓝牙广播发送的持续时长为第一时长。
结合第二方面,在一种可能的实施方式中,所述第一电子设备与所述第二电子设备蓝牙配对包括:所述第二电子设备以预设的扫描频率进行扫描,所述预设的扫描频率为每隔第二间隔时间执行蓝牙信号扫描,所述蓝牙信号扫描的持续时长为第二时长。
结合第二方面,在一种可能的实施方式中,所述第二间隔时间的数值不大于所述第一时长的数值。
结合第二方面,在一种可能的实施方式中,在第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:所述第一电子设备从所述服务器获取所述第一间隔时间和所述第一时长。
结合第二方面,在一种可能的实施方式中,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对。
结合第二方面,在一种可能的实施方式中,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对包括:所述所述第一电子设备持续发送蓝牙广播,所述第一电子设备与第二电子设备进行蓝牙配对。
结合第二方面,在一种可能的实施方式中,在所述第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:所述第一电子设备开启手机找回功能。
结合第二方面,在一种可能的实施方式中,若所述第一电子设备不是丢失状态,所述方法还包括:所述第一电子设备以所述预设的发射频率向第二电子设备发送蓝牙信号。
第三方面,本申请实施例提供一种电子设备交互方法,具体包括:所述第二电子设备扫描第一电子设备发送的所述蓝牙信号;所述第二电子设备与所述第一电子设备蓝牙配对;所述第二电子设备向服务器发送查询请求;所述第二电子设备接收服务器发送的返回信息,所述返回信息包括所述第一电子设备的状态;所述第二电子设备将所述第一电子设备的状态发送至所述第一电子设备;所述第二电子设备获取第一电子设备发送的离线定位请求;所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中。
结合第三方面,在一种可能的实施方式中,所述第一电子设备向第二电子设备发送蓝牙信号包括:所述第一电子设备以预设的发射频率进行蓝牙广播,所述预设的发送频率为每隔第一间隔时间发送一次蓝牙广播,所述蓝牙广播发送的持续时长为第一时长。
结合第三方面,在一种可能的实施方式中,所述第二电子设备扫描第一电子设备发送的所述蓝牙信号包括:所述第二电子设备以预设的扫描频率进行扫描,所述预设的扫描频率为每隔第二间隔时间执行蓝牙信号扫描,所述蓝牙信号扫描的持续时长为第二时长。
结合第三方面,在一种可能的实施方式中,所述第二间隔时间的数值不大于所述第一时长的数值。
结合第三方面,在一种可能的实施方式中,在所述第二电子设备扫描第一电子设备发送的所述蓝牙信号之前,所述方法还包括:所述第二电子设备从所述服务器获取所述第二间隔时间和所述第二时长。
结合第三方面,在一种可能的实施方式中,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对。
结合第三方面,在一种可能的实施方式中,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对包括:第二电子设备持续扫描蓝牙广播,所述第一电子设备与第二电子设备进行第二次蓝牙配对。
结合第三方面,在一种可能的实施方式中,所述第二电子设备的数量为至少两个设备。
结合第三方面,在一种可能的实施方式中,在所述第二电子设备向服务器发送查询请求之前,所述方法还包括:所述第二电子设备判断服务次数是否超过了预设的第一阈值;若所述第二电子设备判断服务次数未超过预设的第一阈值,则第二电子设备向服务器发送查询请求;若所述第二电子设备判断服务次数超过预设的第一阈值,则第二电子设备不向服务器发送查询请求。
结合第三方面,在一种可能的实施方式中,所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前,所述方法还包括:所述第二电子设备判断服务次数是否超过了预设的第一阈值;若所述第二电子设备判断服务次数未超过预设的第一阈值,则所述第二电子设备获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前;若所述第二电子设备判断服务次数超过预设的第一阈值,则所述第二电子设备不获取所述第二电子设备的位置信息。
第四方面,本申请实施例提供一种电子设备,所述电子设备用作第一电子设备,包括触控屏、存储器、收发器、一个或多个处理器、多个应用程序、以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述收发器用于发射或接收无线信号;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现上述第一方面任一项所述的方法。
第五方面,本申请实施例提供一种电子设备,所述电子设备用作第一电子设备,包括触控屏、存储器、收发器、一个或多个处理器、多个应用程序、以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述收发器用于发射或接收无线信号;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现上述第二方面任一项所述的方法。
第六方面,本申请实施例提供一种电子设备,所述电子设备用作第一电子设备,包括触控屏、存储器、收发器、一个或多个处理器、多个应用程序、以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述收发器用于发射或接收无线信号;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现上述第三方面任一项所述的方法。
第七方面,本申请实施例提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时使所述计算机执行备实现上述第一方面任一项所述的方法。
第八方面,本申请实施例提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时使所述计算机执行备实现上述第二方面任一项所述的方法。
第九方面,本申请实施例提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时使所述计算机执行备实现上述第三方面任一项所述的方法。
第十方面,本申请实施例提供一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面任一项所述的方法,或者,上述第二方面所述的方法,或者,上述第一方面所述的方法。
第十一方面,本申请实施例提供一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面任一项所述的方法,或者,上述第二方面所述的方法,或者,上述第二方面所述的方法。
第十二方面,本申请实施例提供一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面任一项所述的方法,或者,上述第二方面所述的方法,或者,上述第三方面所述的方法。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。
图1是是本申请实施例提供的电子设备交互系统的场景示意图;
图2是本申请实施例提供的第一电子设备的一种结构示意图;
图3是本申请实施例提供的电子设备交互的流程示意图;
图4a-4b是本申请实施例提供的蓝牙信号的时序示意图;
图5a-5d是本申请实施例提供的第一电子设备的界面示意图;
图6a-6b是本申请实施例提供的第二电子设备的界面示意图;
图7a-7c是本申请实施例提供的第三电子设备的界面示意图;
图8a是本申请实施例提供的电子设备交互系统的示意图;
图8b是本申请实施例提供的电子设备交互系统的示意图。
图9是本申请实施例提供的电子设备交互的流程示意图;
图10a是本申请实施例提供的第一电子设备的软件模块内信息流向示意图;
图10b是本申请实施例提供的第一电子设备的软件模块内信息流向示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、系统、产品或设备固有的其它步骤或单元。
为描述清楚,在本文中,两个设备建立蓝牙连接指的是该两个设备之间建立起蓝牙链路,该两个设备可以通过该蓝牙链路向对方发送信号以及接收对方发送的信号,该信号称为蓝牙信号。
为方便理解本发明,下面先对本发明的获取设备方法的一种场景应用进行描述。如图1所示,图1为本发明的获取设备的一种场景应用图。
本申请实施例提供的电子设备交互系统至少包括两个电子设备。本申请实施例的电子设备可以指支持蓝牙的电子设备。参见图1,该电子设备交互系统包括2个电子设备,分别为第一电子设备100和第二电子设备200。其中,第一电子设备100和第二电子设备200均可以包括蓝牙模块,该蓝牙模块可以集成在电子设备上(即一体式),也可以是可插拔在电子设备上。第一电子设备100和第二电子设备200可以通过蓝牙连接。可选的,第一电子设备100和第二电子设备200均可以为手机、可穿戴设备如智能手表、平板电脑或个人数字助理(personal digital assistant,PDA)等支持蓝牙的电子设备。可选的,第一电子设备100和第二电子设备200可以为同一种电子设备,比如第一电子设备100和第二电子设备200均为手机;第一电子设备100和第二电子设备200也可以为不同种电子设备,比如第一电子设备100为手机、第二电子设备200为智能手表。
在一些可行的实施方式中,所述第二电子设备可以是丢失设备周边的任一设备,所述第二电子设备的数量可以为至少一个,所述第二电子设备与所述第一电子设备可以进行蓝牙通信200。所述第二电子设备具备协助定位能力,当第二电子设备的用户开通了协助定位功能,第二电子设备具有获取电子设备当前的位置信息,位置信息可以为例如经纬度信息;该定位过程可以通过全球定位系统(global positioning system,GPS)实现。第二电子设备具有联网能力,所述联网能力是指通过WIFI或蜂窝网络与互联网连接,当第二电子设备的用户开启联网功能(打开WIFI或蜂窝网络)时,使得第二电子设备处于联网状态,第二电子设备可 以与服务器进行通信。上述第二电子设备可以作为好心人设备,上报第二电子设备的位置信息至服务器,帮助丢失设备定位所处的大概范围,以便于快速查找到丢失设备。
在一些可行的实施方式中,所述第一电子设备为丢失设备,第一电子设备的数量可以为至少一个。第一电子设备具有联网能力,所述联网能力是指通过WIFI或蜂窝网络与互联网连接;本申请实施例中,第一电子设备的状态为用户关闭了联网功能(关闭WIFI或蜂窝网络)时,使得第一电子设备处于断网状态,第二电子设备无法与服务器进行通信,因此,第一电子设备无法通过自身的定位模块向服务器上报自身的位置信息。
在一些可行的实施方式中,所述服务器用于与电子设备进行通信,可以保存电子设备的相关信息和状态信息,可以提供电子设备信息管理及手机找回服务。第一电子设备在所述服务器上注册账号,并且,注册账号为与第一电子设备的国际移动设备身份码(International Mobile Equipment Identity,IMEI)或移动终端识别码(Mobile Equipment Identify,MEID)唯一绑定的序列。这样,第一电子设备和注册账号就绑定在一起,用户可以同时设定使用该注册账号的密码,成为该注册账号的合法使用者,使得用户通过所述注册账号登录所述服务器。类似地,所述第二电子设备也可以在所述服务器上注册账号,使得第二电子设备的用户可以通过注册账号与所述服务器进行信息交互。所述第一电子设备和所述第二电子设备的注册账号可以为终端设备系统账号。在另一些实施例中,所述第一电子设备和所述第二电子设备的注册账号可以通过下载对应的应用程序后,在应用程序注册对应的账号获得;因此,第二电子设备与第一电子设备可以是不同终端厂商生产的终端设备,第二电子设备与第一电子设备安装有可与服务器交互的应用程序便可以实现本申请中的实施方案。
在一些可行的实施方式中,提供的电子设备交互系统还包括第三电子设备,用户可以在第三电子设备上登录第一电子设备的注册账号,通过第一电子设备的注册账号与所述服务器进行交互。第三电子设备可以为电脑,手机、可穿戴设备如智能手表、平板电脑等。所述第三电子设备为电脑时,用户可以通过登录服务器的服务网址(例如门户系统Portal)登录用户账户;所述第三电子设备为手机等移动设备时,用户可以通过登录应用程序(例如查找我的设备)登录用户账户。当用户在第三电子设备上登录第一电子设备的账号后,可以远程控制第一电子设备执行相应的功能;示例性的,用户可以点击“定位设备”获得第一电子设备的当前位置;或者,用户可以点击“预设铃声”使第一电子设备的响铃;或者,用户可以点击“丢失模块”设置第一电子设备的模式为丢失模式;或者,用户可以点击“删除数据”将第一电子设备的相关数据删除。
为便于理解,下面将对本申请实施例提供的第一电子设备100的结构进行示例说明。
参见图2,图2是本申请实施例提供的第一电子设备的一种结构示意图。图2所示的第一电子设备可以为手机、平板电脑或PAD。
如图2所示,第一电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM) 卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对第一电子设备100的具体限定。在本申请另一些可行的实施方式中,第一电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置,具体可根据实际应用场景确定,在此不做限制。图2所示的部件可以以硬件,软件,或软件与硬件的组合实现。
可选的,上述处理器110可以包括一个或多个处理单元。例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是第一电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些可行的实施方式中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些可行的实施方式中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对第一电子设备100的结构限定。在本申请另一些可行的实施方式中,第一电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入,对第一电子设备100的电源管理模块141充电。其中,充电器可以是无线充电器,也可以是有线充电器。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
第一电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。可选的,天线1和天线2可以用于发射蓝牙信号。第一电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些可行的实施方式中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在第一电子设备100上的包括2G/3G/4G/5G等无线通信 的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些可行的实施方式中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些可行的实施方式中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些可行的实施方式中,调制解调处理器可以是独立的器件。在另一些可行的实施方式中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在第一电子设备100上的包括无线局域网(wireless local area networks,WLAN)如Wi-Fi网络,蓝牙(blue tooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些可行的实施方式中,第一电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得第一电子设备100可以通过无线通信技术与网络以及其他设备(例如第二电子设备200等)通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。上述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
第一电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些可行的 实施方式中,第一电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
在一些可行的实施方式中,显示屏194可用于显示第一电子设备100的系统输出的各个界面。第一电子设备100输出的各个界面可参考后续实施例的相关描述。
第一电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展第一电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行第一电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如设备管理功能、声音播放功能等)等。存储数据区可存储第一电子设备100使用过程中所创建的数据(比如设备参数,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
第一电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些可行的实施方式中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定第一电子设备100的运动姿态。气压传感器180C用于测量气压。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。
距离传感器180F用于测量距离。
环境光传感器180L用于感知环境光亮度。
指纹传感器180H用于采集指纹。
温度传感器180J用于检测温度。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些可行的实施方式中,触摸传感器180K也可以设置于第一电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键。
马达191可以产生振动提示。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和第一电子设备100的接触和分离。在一些可行的实施方式中,第一电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在第一电子设备100中,不能和第一电子设备100分离。
第一电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明第一电子设备100的软件结构。
参见图3,图3是本申请实施例提供的第一电子设备的软件结构框图。
如图3所示,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些可行的实施方式中,可将安卓系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图3所示,应用程序包可以包括蓝牙,设备管理应用(具备设备管理功能的应用),导航,地图,WLAN,短消息,图库,日历,通话等应用程序(application,APP)。
应用程序框架层为应用程序层的应用程序提供应用编程接口和编程框架。应用程序框架层包括一些预先定义的函数。
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。上述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供第一电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理, 安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
本申请实施例的电子设备交互方法可适用于一个或多个电子设备的定位场景中。为便于描述,下面仅以一个电子设备定位另一个电子设备为例进行说明。可理解的,该定位场景可以用于定位至少一个第一电子设备;第二电子设备也可以同时定位多个其他电子设备。
参见图3,图3是本申请实施例提供的电子设备交互方法的流程示意图。图3示出了第一电子设备100与第二电子设备200之间的电子设备交互以及第一电子设备100的内部数据处理过程。
阶段一:确认第一电子设备为丢失状态的阶段
S101第一电子设备的确定电子设备处于离线状态。
具体地,所述离线状态是指第一电子设备的WIFI网络或蜂窝网络设置未开启,使第一电子设备无法登录到互联网的情况。
在一些实施例中,第一电子设备可能处于网络信号不好的环境下,这时,可能存在第一电子设备断断续续连接网络的情况。因此,在一些情况下,第一电子设备设置有预设时间。若电子设备离线时间超过了预设时间,则电子设备判断当前状态为离线状态;若电子设备离线时间未超过预设时间,则电子设备判断当前状态为非离线状态。在一些实施例中,当用户主动关闭手机与网络的之间的连接,则电子设备判断当前状态为离线状态,触发以下的丢失设备找回步骤,因此,手机丢失后若由他人关闭手机网络信息,也可以实现手机的找回功能。通过设置预设时间,避免了当电子设备误将信号不好的情况判断为丢失状态,而发送蓝牙信号,进而造成电子设备的功耗不必要的浪费。
在一些实施例中,第一电子设备需要开启“找回我的手机”功能。具体地,如图5a-图5c所示,可以选择第一电子设备的设置中的“云服务”模块,然后,选择“云服务”功能中的“查找设备”功能。当电子设备打开“查找设备”功能时,若电子设备判断当前状态为离线状态时,则执行查找手机的功能。所述查找手机的功能包括:若手机在线时,则实时向云端服务器上报手机的当前位置信息,位置信息可以通过手机的GPS模块获取得到;若手机不在线时,则可以通过发送蓝牙信号,尝试与其它手机配对,将丢失手机的信号上报至服务器。
在一些实施方式中,获取电子设备当前的位置信息,位置信息可以为例如经纬度信息。该定位过程可以通过全球定位系统(global positioning system,GPS)实现。
在一些实施方式中,“查找设备”功能包括“查找我的手机”、“开启离线查找”、“发送最后位置”的功能。其中,“打开查找我的手机”可以在联网状态实现手机的查找。例如,当用户点击图7c中的定位设备时,服务器向丢失设备发送定位指令,当丢失设备开启“打开 查找我的手机”功能时,向服务器发送当前的位置;或者,当丢失设备的电量低于预设值,并且丢失设备开启“打开查找我的手机”且处于联网状态,向服务器发送当前的位置工。另外,当“开启离线查找”打开时,用户可执行离线手机查找的功能,具体地,可以执行以下的实施例中的丢失设备查找手机的步骤。当开启“发送最后位置”时,将离线前的最后位置信息发送至云端服务器,或者,当丢失设备的电量低于预设值时,向服务器发送当前的位置,位置信息可以通过手机的GPS模块获取得到。
在一些实施例中,第一电子设备中设置有查找模块,用于判断第一电子设备的查找功能是否打开。当第一电子设备的查找功能打开时,实时向服务器上报电子设备的位置;同时,用于检测第一电子设备的网络状态,若电子设备处于离线状态时,执行电子设备离线查找的功能。
S102第一电子设备的查找模块发送配对请求至蓝牙模块,所述配对请求用于调用蓝牙的接口,触发蓝牙模块发送蓝牙广播。
在一些实施例中,当第一电子设备判断当前状态为离线状态时,可直接调用蓝牙模块的接口,进而触发蓝牙模块发送蓝牙广播。在一些实施例中,当第一电子设备判断当前状态为离线状态时,即使第一电子设备并未打开蓝牙功能,或者用户在操作界面上关闭蓝牙功能,在这种场景下,并不影响第一电子设备直接调用蓝牙模块,也就是说,第一电子设备在离线状态下可以通过系统内部的指令驱动蓝牙模块发送广播信号。
在一些实施例中,所述蓝牙广播携带有第一电子设备的标识,所述标识用于服务器识别第一电子设备的身份。具体地,当所述第一电子设备登录到服务器时,将第一电子设备的账号与电子设备的标识发送至服务器,服务器保存第一电子设备的账号和标识,当后续接收到电子设备的标识时,可以与对应的账号相匹配。
在一些实施例中,所述蓝牙广播携带有第一电子设备的公钥,所述公钥用于服务器识别第一电子设备的身份。具体地,当所述第一电子设备登录到服务器时,将第一电子设备的账号与电子设备的公钥发送至服务器,服务器保存第一电子设备的账号和公钥,当后续接收到电子设备的公钥时,可以与对应的账号相匹配。在一些实施方式中,所述第一电子设备每隔一段时间(例如一天)更新公钥信息,在这种情况下,第一电子设备可以预先将后续即将更新(例如后续14天)的公钥信息发送至服务端,服务器保存第一电子设备的账号和所有的公钥;这样,即使电子设备在丢失后某段时间才与服务器相连接,而服务器也可以根据预存的公钥识别第一电子设备的信号。具体地,电子设备在丢失后的第二天才通过其它设备将公钥上传至服务器侧,这时,由于服务器侧预先存储了丢失后14天内的公钥信息,因此,可以根据预先存储的公钥信息匹配出对应的设备信息。在这种实现方式中,蓝牙广播并不直接传输第一电子设备的公钥信息,这样,使得接收到蓝牙广播的其它设备并无法得知第一电子设备的具体信息,可以提高了第一电子设备的安全性,此外,周期性的更新公钥,可以避免公钥信息被跟踪破解的问题,提高了信息传输的安全性,保护了丢失设备的用户隐私。
在一些实施例中,所述蓝牙广播的报文中携带有丢失标识,例如是在蓝牙报文中某一标识位标识为“丢失设备”,这样,当接收的电子设备接收到所述蓝牙广播时,可以触发后续向服务器进一步确认的步骤。在一些实施例中,所述蓝牙广播的报文中携带有事件码,例如事件码为01代表是指示电子设备接收到所述蓝牙广播时,可以触发后续向服务器进一步确认的步骤;事件码为02代表是指示电子设备接收到所述蓝牙广播时,可以触发后续向服务器上报位置的步骤;所述第二电子设备在接收到所述报文后,可以识别出所述事件码对应的事件, 并根据事件码执行对应的事件。
S103第二电子设备200通过蓝牙模块接收第一电子设备发送的蓝牙广播,第一电子设备100通过蓝牙与第二电子设备200建立连接。
在一些实施例中,所述第二电子设备可以是丢失设备周边的任一设备,所述第二电子设备与所述第一电子设备可以进行蓝牙通信。如图6a-图6b所示,可以在第二电子设备的设置中打开蓝牙功能,在第二电子设备在蓝牙功能开启后,可监听第一电子设备的发送的广播,并协助第一电子设备进行定位。
在一些实施方式中,在步骤S102中,第一电子设备100的蓝牙模块在发送蓝牙广播时以预设的发射频率进行蓝牙广播,例如,每隔预设T时间发送一次,并且发送蓝牙广播的时长为X秒,在这X秒中,蓝牙广播信息持续不间断的进行发送。在第一电子设备在发送蓝牙信号过程中,所述第一电子设备的功耗为X(秒)/半小时。
对应地,在一些实施方式中,在步骤S103中,第二电子设备200的蓝牙模块在进行信号扫描时,以预设的扫描频率进行扫描,所述预设第二电子设备每隔y秒扫描一次,并且每次扫描时长z秒。其中,预设的发射频率和预设的扫描频率满足预设规则,所述预设规则满足,X≥y。在以上过程中,所述预设规则保证了:只要发送方发起了广播,接收方如果存在的情况下,接收方可以接收到广播,减少了探听对方是否存在的过程,不同设备只要按照统一的规范收发广播,发送方和接收方可以完成握手通信。
在一些实施例中,所述发送端发送蓝牙广播的时长X秒,接收端持续扫描时间z秒,及扫描的间隔时间由服务端下发至第一电子设备和第二电子设备。具体地,第一电子设备和第二电子设备配置有查找模块时,服务器可以向第一电子设备和第二电子设备的查找模块发送具体时长信息,以保证第一电子设备的发送频率和第二电子设备的扫描频率满足预设条件。
具体地,如图4a所述,当X=y的情况下,第一电子设备在每预设时间T发送一次蓝牙广播,每次时长为X秒,第二电子设备每隔y秒扫描一次,并且每次扫描时长z秒。第一电子设备的发送蓝牙广播与第二电子设备扫描蓝牙广播的情况包括:(1),第一电子设备开始发送蓝牙广播,第二电子设备正在扫描;(2),第一电子设备开始广播时,第二电子设备同时开始扫描;(3),第一电子设备开始广播时,第二电子设备刚结束扫描;(4),第一电子设备开始广播时,第二电子设备未在扫描。其中,从图中可以看出,在以上四种情况中,在第一电子设备发送蓝牙广播的过程中(在持续的X秒中),第二电子设备在某一段时间可以扫描到第一电子设备发送的蓝牙广播信号。因此,当第一电子设备以预设发送频率发送蓝牙广播,第二电子设备以预设接收频率扫描蓝牙信号,并使得预设发送频率和预投接收频率满足X=y的情况下,使得第二电子设备可以扫描到第一电子设备发送的蓝牙广播。
具体地,如图4b所述,当X>y的情况下,第一电子设备在每预设时间T发送一次蓝牙广播,每次时长为X秒,第二电子设备每隔y秒扫描一次,并且每次扫描时长z秒。第一电子设备的发送蓝牙广播与第二电子设备扫描蓝牙广播的情况包括:(1),第一电子设备开始发送蓝牙广播,第二电子设备正在扫描;(2),第一电子设备开始广播时,第二电子设备同时开始扫描;(3),第一电子设备开始广播时,第二电子设备刚结束扫描;(4),第一电子设备开始广播时,第二电子设备未在扫描。其中,从图中可以看出,在以上四种情况中,在第一电子设备发送蓝牙广播的过程中(在持续的X秒中),第二电子设备在某一段时间可以扫描到第一 电子设备发送的蓝牙广播信号。因此,当第一电子设备以预设发送频率发送蓝牙广播,第二电子设备以预设接收频率扫描蓝牙信号,并使得预设发送频率和预投接收频率满足X>y的情况下,使得第二电子设备可以扫描到第一电子设备发送的蓝牙广播。
上述过程为蓝牙协助定位阶段,现有技术中在阶段一中,由于发现丢失设备是持续进行的过程,即当电子设备蓝牙模块功能打开时,接收设备持续进行扫描,发送设备持续进行蓝牙信号发送,因此,在丢失状态不明情况下的确认过程,造成了发送端设备和接收端设备的蓝牙矩距模块功耗较大,耗电量多的问题。采用如上所述的方案,在丢失状态不明情况下的确认过程,通过设定发送端设备发送信号的频率以及接收端设备接收设备的步骤,在保证发送端设备和接收端设备可以相互发现的前提下,降低了发送端设备和接收端设备的功耗,避免了丢失状态不明情况下的确认过程的功耗浪费。
具体地,可以理解为,在本申请的实施例中发送端的功耗与现有技术中发送端的功耗相比,本申请的功耗为现有技术功耗的X(持续发送时间)/T(预设间隔时间);在本申请的实施例中接收端的功耗与现有技术中接收端的功耗相比,本申请的功耗为现有技术功耗的z(持续扫描时间)/y(预设间隔时间)。在一些实施例中,为了使第二电子设备的功耗率降低,在保证可以扫描到蓝牙信号的前提下,可以降低y的持续扫描时间。发送端设备和接收端设备的功耗可以通过控制各自的发送或者扫描的持续时间以及启动任务的整体时间的比例控制任意精度的功耗控制。
S104第二电子设备的蓝牙模块发送第一指令至第二电子设备的查找模块,所述第一指令用于触发查找模块向服务器发送查询请求。
在一些实施例中,所述第二电子设备接收到蓝牙广播后,解析所述蓝牙报文标识位为“丢失设备”,触发第二电子设备调用查找模块向服务器发送查询请求。
在一些实施例中,所述第一指令携带信息包括第一电子设备的设备信息,具体地,设备信息包括第一电子设备的标识或第一电子设备的公钥信息,第一电子设备的标识或第一电子设备的公钥信息可以从第一电子设备的蓝牙广播中获得。在一些实施例中所述第一指令携带信息还可以包括第二电子设备200的电量以及功能参数(比如定位功能)等。
S105第二电子设备向服务器100发送查询请求,所述确认指定用于查询第一电子设备的状态信息。
在一些实施例中,所述确认信息包括第一电子设备的标识或第一电子设备的公钥信息,第一电子设备的标识或第一电子设备的公钥信息可以从第一电子设备的蓝牙广播中获得。
S106服务器查询第一电子设备的状态。
具体地,服务器根据第一电子设备的标识或第一电子设备的公钥信息查询第一电子设备的状态,所述状态包括丢失状态或正常使用状态。
在一些实施例,所述第一电子设备的丢失状态可以通过步骤S200-S201进行更新。
S107服务器将第一电子设备的状态发送至第二电子设备。
S108第二电子设备将第一电子设备的状态发送至第一电子设备。
具体地,服务器将第一电子设备的状态发送至第二电子设备的查找模块,所述第二电子 设备的查找模块通过第二电子设备的蓝牙模块、第一电子设备的蓝牙模块发送至第一电子设备的查找模块。
S200第三电子设备发送第一上报信息至服务器。
具体地,用户通过第三电子设备登录手机厂商的官方网站或者通过第三电子设备的查找模块上报丢失手机状态信息。在一些实施例中,所述上报信息携带用户的账号信息。
如图7a所示,用户可以点击第三电子设备的“查找我的设备”图标,进入到查找模块,如图7b所示,用户可以登录丢失设备的账户;在图7c所示的界面中,用户点击“丢失模式”可以将丢失设备锁定。
在一些实施方式中,若第一电子设备为连网状态时,当服务器接收到第三电子设备的上报第一电子设备的丢失信息,服务器会发送指令,将第一电子设备锁定。此时,第一电子设备的锁定界面如图5d所示,界面上会显示此设备为丢失设备的信息,具体地,可以为“你好,这是我丢失的设备,希望你看到留言后与我联系,谢谢”;同时,可以显示具体的联系方式“我的联系方式:+86 18812345678”,以便于看到丢失手机的用户可以与机主联系。
S201服务器记录第一电子设备的丢失状态。
在一些实施例中,服务器根据第一上报信息,将上报信息中用户的账号信息与用户设备,用户设备的公钥信息相关联,将第一电子设备的正常使用状态更新为丢失状态。
阶段二:第一电子设备通过第二电子设备获得周围设备的位置信息。
S301第一电子设备发起离线定位请求,所述离线定位请求用于指示第一电子设备与第二电子设备通过蓝牙配对,并且指示第二电子设备发起离线定位的功能。
具体地,第一电子设备在接收到第二电子设备发送的第一电子设备的状态后,若第一电子设备的状态为丢失状态,则第一电子设备发起离线定位请求,所述离线定位请求用于指示第一电子设备与第二电子设备通过蓝牙配对。
S302第二电子设备200通过蓝牙模块接收第一电子设备发送的蓝牙广播,第一电子设备100通过蓝牙与第二电子设备200以第二方式建立连接。
在一些实施例中,为了实现第一电子设备与第二电子设备的快速配对,在阶段二中,第一电子设备与第二电子设备的具体配对方式与阶段一步骤S103中的配对方式有所区别。在阶段二中,由于已在阶段一完成挂失状态确认,后续的功耗是真正有价值的,因此,在阶段二中采用的配对方式是为了实现第二电子设备与第一电子电子设备的快速配对。
在一种实现方式中,第一电子设备100通过蓝牙与第二电子设备200以第二方式建立连接包括:第一电子设备以第二发送模式持续发送蓝牙广播,第二电子设备以第二扫描模式扫描。
其中,第二发送模式具体为:第一电子设备持续发送蓝牙广播,可以包括,第一电子设备不间断持续发送蓝牙广播或者,第一电子以第二发送频率发送的蓝牙广播;其中,所述第二发送频率与上述的预设的发送频率相比,以第二方式进行配对时,第一电子设备每两次发送蓝牙广播的间隔时间更短,和/或,第二电子设备每次发送蓝牙广播的持续时间更加长。
其中,第二扫描模式具体为:第二电子设备持续扫描蓝牙广播,可以包括,第二电子设备不间断持续扫描第一电子设备发送的蓝牙广播,或者,第二电子设备以第二扫描频率扫描第一电子设备发送的蓝牙广播;其中,所述第二扫描频率与上述的预设的扫描频率相比,以第二方式进行配对时,第二电子设备每两次扫描的间隔时间更短,和/或,第二电子设备每次 扫描的持续时间更加长。
在一些实施例中,第二电子设备200在步骤S107之后,切换为第二扫描模式,持续扫描或以第二频率扫描的模式。具体地,第二电子设备在接收到服务器返回的第一电子设备为丢失状态时,此时,第二电子设备将进入阶段二,第二电子设备控制蓝牙模块的从丢失状态的扫描模式进行切换第二扫描模式。
在另一些实施例中,第二电子设备200在步骤S302之后,切换为丢失模式的第一扫描模式,具体地,第二电子设备在配对成功之后,第二电子设备控制蓝牙模块的从第二扫描模式切换为丢失状态的扫描模式,以减小第二电子设备的功耗。
并且向服务器上报了第二电子设备的位置信息之后,
在一些实施例中,第一电子设备在步骤S108之后,即接收到第二电子设备返回的第一电子设备的丢失状态信息,第一电子设备控制蓝牙模块的从丢失状态的发送模式进行切换第二发送模式。在一些状态下,第一电子设备在再次联到互联网之前,保持第二发送模式进行蓝牙信息的广播和配对;由于在这种场景下,已经确认了第一电子设备为丢失状态,因此,保持第二发送模式可以更快的匹配到第二电子设备,提高丢失设备的找回率,且不会增加蓝牙模块的功耗。
在一些实施方式中,所述第二电子设备用于查找丢失设备的蓝牙模块与第二电子设备正常使用蓝牙功能使用的蓝牙模块为不同模块或不同的单元,具体来说,这两个模块可以相互独立的执行不同的任务,例如,可以是不同在不同的频率上进行扫描,或者,可以是以不同的通道进行扫描,或者是蓝牙设备中不同的硬件单元,用于处理不同的功能。
在一些实施例中,第一电子设备或第二电子设备用于查找丢失设备的蓝牙模块可以通过如图6a-6b所示的方式,用户在设备中开启蓝牙功能,或者,可以系统直接控制查找丢失设备的蓝牙模块开启。对于第一电子设备而言,当第一电子设备的确定电子设备处于离线状态,第一电子设备可以直接控制查找丢失设备的蓝牙模块开启,也就是说,即使用户未手动打开第一电子设备的蓝牙模块,第一电子设备也可以自动开启查找丢失设备的蓝牙模块。对于第二电子设备而言,在一些实施例中,第二电子设备需要用户控制查找丢失设备的蓝牙模块开启,使得第二电子设备在经过用户确认之后,再执行与丢失设备配对的功能。
具体地,由于在阶段一中,第一电子设备并未确定为丢失状态,若判断电子设备为离线状态后,持续的发送蓝牙广播,会造成功耗的增加,使得丢失的设备待机时间缩短,影响设备的正常使用。采用本申请的实施例,由于单位时间内发送蓝牙广播的时间减少,一方面延长了第一电子设备的待机时间,在丢失设备无法确认是否真正丢失的情况下,降低了由于终端处于离线状态而非丢失状态的功耗损耗;另一方面,在更长的待机时间中,会有更加多的机会与周围的第二电子设备相配对,当设备丢失时提高了找回丢失设备的机率。
S303第二电子设备的蓝牙模块发送第二指令至第二电子设备的查找模块,所述第二指令用于触发查找模块向服务器发送更新信息。
在一些实施例中,所述第二电子设备接收到离线定位请求后,解析所述蓝牙报文中的第一电子设备的设备信息,具体地,设备信息包括第一电子设备的标识或第一电子设备的公钥信息。
S304第二电子设备向服务器发送更新信息,所述更新信息包括第二电子设备的当前位置信息。
在一些实施例中,第二电子设备的位置信息可以为例如经纬度信息;该定位过程可以通过全球定位系统(global positioning system,GPS)实现。另外,所述更新信息包括第一电子设备的设备信息,具体地,第一电子设备的设备信息包括第一电子设备的标识或第一电子设备的公钥信息,第一电子设备的标识或第一电子设备的公钥信息可以从第一电子设备发送的离线定位请求获得,所述第一电子设备的设备信息用于指示服务器根据第一电子设备的设备信息将所述第二电子设备位置信息与第一电子设备账号相匹配。
在一些实施例中,第一电子设备可以与第二电子设备进行蓝牙短距通信时,两个设备之间的物理距离会在一定范围之内,例如大概10米的范围,将第二电子设备的位置作为第一电子设备的附近位置上报给服务器,供用户查阅。
S305服务器根据更新信息,更新第一电子设备的位置信息。
服务器根据第一电子设备的设备信息将所述第二电子设备位置信息与第一电子设备的账号相匹配,具体地,服务器可以根据第一电子设备的设备信息包括第一电子设备的标识或第一电子设备的公钥信息确定第一电子设备的账号。所述更新第一电子设备的位置信息包括:将第二电子设备的位置信息记录为第一电子设备周围的位置信息,这样,第二电子设备的位置与第一电子设备,第一电子设备的账号建立了关联关系。
在一些实施例中,第一电子设备周围可能存在多个第二电子设备,此时,更新第一电子设备的位置信息具体包括:服务器可以将多个第二电子设备的位置信息与第一电子设备的账号相匹配,将多个第二电子设备的位置信息记录为第一电子设备周围的位置信息,。
在一些实施例中,第一电子设备周围可能存在多个第二电子设备,此时,可以通过服务器侧或通过第二电子设备侧对于第二电子设备进行选择,避免过多的电子设备都进行第一电子设备的手机找回功能,进而从整体上减少了功耗的浪费。
具体地,第二电子设备的查找模块设置有服务计数模块,服务计数模块设置有预设的第一阈值。在一些实施例中,当服务器向第二电子设备发送信息时,第二电子设备的服务计数模块归零重新开始计数。所述信息可以指服务器定时向电子设备发送指令,所述指令用于指示第二电子设备的服务计数模块重置,或者,所述信息可以指服务器定时向电子设备发送的频率更新信息,在第二电子设备接收到频率更新信息时,也执行服务计数模块重置。
在一些实施例中,当第二电子设备向服务器发送更新信息(例如S306)时,所述服务计数模块保存一次服务记录;在一些实施例中,当第二电子设备向服务器发送更新信息(例如S306)时或第二电子设备向服务器发送查询请求(例如S105)时,所述服务计数模块保存一次服务记录。
在一些实施例中,第二电子设备判断当前的服务次数是否超过了预设的第一阈值,若服务次数超过了预设的阈值,则第二电子设备不再执行步骤S103-106时,或执行步骤S302-S304时。在一些实施例中,第二电子设备可以关闭蓝牙模块,不再执行第二电子设备与第一电子设备的配对。在另一些实施例中,第二电子设备在与第一电子设备蓝牙配对完成之后,即在S103和S302之后,判断当前的服务次数是否超过了预设的第一阈值,若服务次数超过了预设的阈值,则第二电子设备不再向服务器发送查询请求(S104-106)或更新信息(S303-S304)。如图8a所示,第二电子设备201判断当前的服务次数是超过了预设的第一阈值,则不向服务器发送查询请求或离线定位请求;第二电子设备200、202判断当前的服务次数是未超过预设的第一阈值,向服务器发送查询请求,并且接收服务器返回的状态信息,或者向服务器发送 离线定位请求,因此,设备201并不执行后续与丢失设备的信息交互。。
采用上述实施例,只需要第二电子设备单侧对服务次数进行限制,使得第二电子设备提供有限度的服务,避免了单个设备与多个丢失设备通信或与一个设备多次进行通信,进而造成单个设备的功耗过大。
具体地,服务器设置有第二电子设备计数模块,第二电子设备计数模块设置的预设的第二阈值。当多个第二电子设备向服务器发送查询请求时,服务器侧判断第二电子设备的数量是否超过了预设的第二阈值,若第二电子设备的数量超过了预设的第二阈值,服务器根据从多个第二电子设备选择第二阈值数量的第二电子设备与第一电子设备进行通信,服务器未选择的第二电子设备不需要跟丢失设备配对协同,具体地,对于服务器未选择的设备,则不会收到服务器发送的返回第一电子设备的状态信息,因而不会执行后续的步骤。采用上述实施例,通过服务器侧一个选举中心,由服务器侧统一决策和做配额管理,防止过多第二电子设备服务同一个丢失设备,简化多个设备之间的消息互通,提高了服务器决策精准性,减少了建立和消耗的链路数量,避免了不必要的重复功耗消耗。
如图8b所示,服务器侧在接收到第二电子设备的查询请求后,判断第二电子设备的数量超过了预设的第二阈值,选择设备200和202作为需要跟丢失设备配对协同的设备,而设备201为不需要跟丢失设备配对协同的设备;此时,服务器向设备200和202返回第一电子设备的状态信息,而不向设备201返回第一电子设备的状态信息,因此,设备201并不执行后续与丢失设备的信息交互。
S305服务器根据第一电子设备的信息,将第二电子设备的位置发送第三电子设备,其中,用户在所述第三电子设备上登录第一电子设备的账号。
根据第二电子设备的位置信息相匹配的第一电子设备的账号,所述服务器将第二电子设备的位置信息发送至第一电子设备的账号所登录的设备中。
S306所述第三电子设备获取更新信息,更新第一电子设备的位置信息。
在一些实施例中,第三电子设备根据获取到的更新信息,在第三电子设备的查找模块显示第一界面,第一界面可以包括至少一个所述第二电子设备。如图7c所示,所述第二电子设备包括设备A1-A8,第一界面还可以显示距离刻度线。这样,用户可以通过查看第一界面直观地看到第一电子设备周围的第二电子设备的位置,以便于用户根据第二电子设备的位置确定第一电子设备的大概范围,从而使用户能够更快速准确的找到丢失的设备,提高了丢失设备的找回率。
图9是本申请实施例提供的电子设备交互方法的流程示意图,图10a和10b为示出了电子设备交互方法的信息流向示意图,示出了第一电子设备100与第二电子设备200电子设备交互以及第一电子设备100的内部数据处理过程。
S11第一电子设备的确定电子设备处于离线状态。
具体地,在一种实施例中,如图10a所示,第一电子设备的查找模块调用网络连接模块,或者,第一电子设备网络连接模块检测到连接状态发生变化时,向查找模块上报网络状态信息,第一电子设备的查找模块判断第一电子设备为联网状态或离线状态。
S12第一电子设备与第二电子设备蓝牙配对,其中,第一电子设备以预设发射频率进行 蓝牙广播,第二电子设备以预设扫描频率扫描蓝牙信号。
具体地,第一电子设备的查找模块调用第一电子设备的蓝牙模块,使得第一电子设备的蓝牙模块发送蓝牙广播。第一电子设备100的蓝牙模块在发送蓝牙广播时以预设的发射频率进行蓝牙广播,例如,每隔预设T时间发送一次,并且发送蓝牙广播的时长为X秒。第二电子设备200的蓝牙模块在进行信号扫描时,以预设的扫描频率进行扫描,所述预设第二电子设备每隔y秒扫描一次,并且每次扫描时长z秒。其中,预设的发射频率和预设的扫描频率满足预设规则,所述预设规则满足,X≥y。
S13第二电子设备向服务器发送查询请求。
第二电子设备的蓝牙模块分析所述蓝牙报文后,调用查找模块向服务器发送查询请求。服务器根据第三电子设备上报的信息,查询第一电子设备的状态,并将所述状态返回至第二电子设备的查找模块中。
S14所述第二电子设备接收服务器发送的返回信息,所述返回信息包括所述第一电子设备的状态。
S15所述第二电子设备将所述第一电子设备的状态发送至所述第一电子设备;
第二电子设备的查找模块获取服务器发送的返回信息,并通过所述第二电子设备的蓝牙模块将返回信息发送至蓝牙模块中。
S16所述第一电子设备判断所述状态是否为丢失状态。
第一电子设备的蓝牙模块将所述返回信息发送至查找模块中,所述第一电子设备的蓝牙模块或查找模块分析所述返回信息确认所述状态是否为丢失状态。
S17A若所述第一电子设备为丢失状态,所述第一电子设备发送离线定位请求,所述离线定位请求指示所述第二电子设备向服务器发送第二电子设备的位置信息。
如图10b所示,所述第一电子设备的查找模块通过所述蓝牙模块发送离线定位请求,所述离线定位请求指示所述第二电子设备向服务器发送第二电子设备的位置信息。在一些实施例中,所述离线定位请求用于指示第一电子设备与第二电子设备以第二方式进行配对,具体的配对方式与上述实施例描述类似,在此不再赘述。
S17B若所述第一电子设备不是丢失状态,即若所述第一电子设备为正常状态,服务器向第二电子设备发送第一电子设备的状态,第二电子设备向所述第一电子设备发送所述状态。所述第一电子设备在接收到所述状态后,判断第一电子设备为正常状态,重复执行上述S12-S16的过程。
S18所述第二电子设备获取离线定位请求;所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中。
所述第二电子设备的查找模块通过蓝牙模块获取离线定位请求,查找模块调用GPS模块获取第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中。
S19所述服务器向第三电子设备发送第二电子设备的位置信息,第三电子设备显示第一界面,第一界面包括第二设备的位置信息。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
本申请中各方法实施例之间相关部分可以相互参考;各装置实施例所提供的装置用于执行对应的方法实施例所提供的方法,故各装置实施例可以参考相关的方法实施例中的相关部分进行理解。
本申请中,“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,“a,b,或c中的至少一项(个)”,或,“a,b,和c中的至少一项(个)”,均可以表示:a,b,c,a-b(即a和b),a-c,b-c,或a-b-c,其中a,b,c分别可以是单个,也可以是多个。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,部分或全部步骤可以并行执行或先后执行,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
应当理解,尽管在本发明实施例中可能采用术语第一、第二、第三等来描述各种消息、请求和终端,但这些消息、请求和终端不应限于这些术语。这些术语仅用来将消息、请求和终端彼此区分开。例如,在不脱离本发明实施例范围的情况下,第一终端也可以被称为第二终端,类似地,第二终端也可以被称为第一终端。
取决于语境,如在此所使用的词语“如果”或“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请中一些实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本申请提供的一些实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站 站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
总之,以上所述仅为本申请技术方案的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (37)

  1. 一种电子设备交互方法,其特征在于,包括:
    第一电子设备向第二电子设备发送蓝牙信号,其中,所述第一电子设备为未联网状态;
    所述第二电子设备扫描第一电子设备发送的所述蓝牙信号;
    所述第一电子设备与所述第二电子设备蓝牙配对;
    所述第二电子设备向服务器发送查询请求;
    所述第二电子设备接收服务器发送的返回信息,所述返回信息包括所述第一电子设备的状态;
    所述第二电子设备将所述第一电子设备的状态发送至所述第一电子设备;
    所述第一电子设备判断所述状态是否为丢失状态;
    若所述第一电子设备为丢失状态,所述第一电子设备发送离线定位请求,所述离线定位请求指示所述第二电子设备向服务器发送第二电子设备的位置信息;
    所述第二电子设备获取离线定位请求;
    所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中。
  2. 根据权利要求1所述的方法,其特征在于,所述第一电子设备向第二电子设备发送蓝牙信号包括:
    所述第一电子设备以预设的发射频率进行蓝牙广播,所述预设的发送频率为每隔第一间隔时间发送一次蓝牙广播,所述蓝牙广播发送的持续时长为第一时长。
  3. 根据权利要求1-2任一所述的方法,其特征在于,所述第二电子设备扫描第一电子设备发送的所述蓝牙信号包括:
    所述第二电子设备以预设的扫描频率进行扫描,所述预设的扫描频率为每隔第二间隔时间执行蓝牙信号扫描,所述蓝牙信号扫描的持续时长为第二时长。
  4. 根据权利要求3所述的方法,其特征在于,所述第二间隔时间的数值不大于所述第一时长的数值。
  5. 根据权利要求1-4任一所述的方法,其特征在于,在第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:
    所述第一电子设备从所述服务器获取所述第一间隔时间和所述第一时长;
    所述第二电子设备从所述服务器获取所述第二间隔时间和所述第二时长。
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对。
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对包括:
    所述所述第一电子设备与第二电子设备以第二方式进行蓝牙配对;其中,第二方式进行蓝牙配对包括:所述第一电子设备持续发送蓝牙广播,和/或所述第二电子设备持续扫描蓝牙广播。
  8. 根据权利要求1-7任一所述的方法,其特征在于,在所述第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:
    所述第一电子设备开启手机找回功能。
  9. 根据权利要求1-8任一所述的方法,其特征在于,所述方法还包括:
    用户通过第一电子设备的账号登录第三电子设备;
    所述服务器向所述第三电子设备发送更新信息,所述更新信息包括所述第二电子设备的位置信息;
    所述第三电子设备显示第一界面,所述第一界面包括所述第二电子设备的位置。
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述方法还包括:所述第一界面还包括第一电子设备的信息。
  11. 根据权利要求3-8任一所述的方法,其特征在于,若所述第一电子设备不是丢失状态,所述方法还包括:
    所述第一电子设备以所述预设的发射频率向第二电子设备发送蓝牙信号;
    所述第二电子设备以所述预设的扫描频率扫描第一电子设备发送的所述蓝牙信号。
  12. 根据权利要求1-11任一所述的方法,其特征在于,所述第二电子设备的数量为至少两个设备。
  13. 根据权利要求1-12任一所述的方法,其特征在于,所述第二电子设备的数量为至少两个,在所述第二电子设备接收服务器发送的返回信息之前,所述方法还包括:
    所述服务器判断所述第二电子设备的数量是否超过第一阈值;
    若所述第二电子设备的数量未超过第一阈值,所述服务器向所述第二电子设备发送所述返回信息;
    若所述第二电子设备的数量超过第一阈值,所述服务器在所述第二电子设备中选择一部分数量的所述第二电子设备,并向一部分数量的所述第二电子设备发送所述返回信息。
  14. 根据权利要求1-13任一所述的方法,其特征在于,在所述第二电子设备向服务器发送查询请求之前,所述方法还包括:
    所述第二电子设备判断服务次数是否超过了预设的第一阈值;
    若所述第二电子设备判断服务次数未超过预设的第一阈值,则第二电子设备向服务器发送查询请求;
    若所述第二电子设备判断服务次数超过预设的第一阈值,则第二电子设备不向服务器发送查询请求。
  15. 根据权利要求1-14任一所述的方法,其特征在于,所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前,所述方法还包括:
    所述第二电子设备判断服务次数是否超过了预设的第一阈值;
    若所述第二电子设备判断服务次数未超过预设的第一阈值,则所述第二电子设备获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前;
    若所述第二电子设备判断服务次数超过预设的第一阈值,则所述第二电子设备不获取所述第二电子设备的位置信息。
  16. 一种电子设备交互方法,其特征在于,包括:
    第一电子设备向第二电子设备发送蓝牙信号,其中,所述第一电子设备为未联网状态;
    所述第一电子设备与所述第二电子设备蓝牙配对;
    所述第一电子设备获取所述第二电子设备发送的所述第一电子设备的状态,所述第一电子设备的状态由所述第二电子设备从服务器获取得到;
    所述第一电子设备判断所述状态是否为丢失状态;
    若所述第一电子设备为丢失状态,所述第一电子设备发送离线定位请求,所述离线定位请求指示所述第二电子设备向服务器发送第二电子设备的位置信息。
  17. 根据权利要求16所述的方法,其特征在于,所述第一电子设备向第二电子设备发送蓝牙信号包括:
    所述第一电子设备以预设的发射频率进行蓝牙广播,所述预设的发送频率为每隔第一间隔时间发送一次蓝牙广播,所述蓝牙广播发送的持续时长为第一时长。
  18. 根据权利要求16-17任一所述的方法,其特征在于,所述第一电子设备与所述第二电子设备蓝牙配对包括:
    所述第二电子设备以预设的扫描频率进行扫描,所述预设的扫描频率为每隔第二间隔时间执行蓝牙信号扫描,所述蓝牙信号扫描的持续时长为第二时长。
  19. 根据权利要求18所述的方法,其特征在于,所述第二间隔时间的数值不大于所述第一时长的数值。
  20. 根据权利要求16-19任一所述的方法,其特征在于,在第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:
    所述第一电子设备从所述服务器获取所述第一间隔时间和所述第一时长。
  21. 根据权利要求16-20任一所述的方法,其特征在于,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对。
  22. 根据权利要求16-21任一所述的方法,其特征在于,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对包括:
    所述所述第一电子设备持续发送蓝牙广播,所述第一电子设备与第二电子设备进行蓝牙配对。
  23. [根据细则91更正 03.08.2022]
    根据权利要求16-21任一所述的方法,其特征在于,在所述第一电子设备向第二电子设备发送蓝牙信号之前,所述方法还包括:
    所述第一电子设备开启手机找回功能。
  24. 根据权利要求16-22任一所述的方法,其特征在于,若所述第一电子设备不是丢失状态,所述方法还包括:
    所述第一电子设备以所述预设的发射频率向第二电子设备发送蓝牙信号。
  25. 一种电子设备交互方法,其特征在于,包括:
    所述第二电子设备扫描第一电子设备发送的所述蓝牙信号;
    所述第二电子设备与所述第一电子设备蓝牙配对;
    所述第二电子设备向服务器发送查询请求;
    所述第二电子设备接收服务器发送的返回信息,所述返回信息包括所述第一电子设备的 状态;
    所述第二电子设备将所述第一电子设备的状态发送至所述第一电子设备;
    所述第二电子设备获取第一电子设备发送的离线定位请求;
    所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中。
  26. 根据权利要求24所述的方法,其特征在于,所述第一电子设备向第二电子设备发送蓝牙信号包括:
    所述第一电子设备以预设的发射频率进行蓝牙广播,所述预设的发送频率为每隔第一间隔时间发送一次蓝牙广播,所述蓝牙广播发送的持续时长为第一时长。
  27. 根据权利要求24-25任一所述的方法,其特征在于,所述第二电子设备扫描第一电子设备发送的所述蓝牙信号包括:
    所述第二电子设备以预设的扫描频率进行扫描,所述预设的扫描频率为每隔第二间隔时间执行蓝牙信号扫描,所述蓝牙信号扫描的持续时长为第二时长。
  28. 根据权利要求26所述的方法,其特征在于,所述第二间隔时间的数值不大于所述第一时长的数值。
  29. 根据权利要求24-27任一所述的方法,其特征在于,在所述第二电子设备扫描第一电子设备发送的所述蓝牙信号之前,所述方法还包括:
    所述第二电子设备从所述服务器获取所述第二间隔时间和所述第二时长。
  30. 根据权利要求24-28任一所述的方法,其特征在于,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对。
  31. 根据权利要求24-29任一所述的方法,其特征在于,所述离线定位请求还用于指示所述所述第一电子设备与第二电子设备进行第二次蓝牙配对包括:
    第二电子设备持续扫描蓝牙广播,所述第一电子设备与第二电子设备进行第二次蓝牙配对。
  32. 根据权利要求24-30任一所述的方法,其特征在于,所述第二电子设备的数量为至少两个设备。
  33. 根据权利要求24-31任一所述的方法,其特征在于,在所述第二电子设备向服务器发送查询请求之前,所述方法还包括:
    所述第二电子设备判断服务次数是否超过了预设的第一阈值;
    若所述第二电子设备判断服务次数未超过预设的第一阈值,则第二电子设备向服务器发送查询请求;
    若所述第二电子设备判断服务次数超过预设的第一阈值,则第二电子设备不向服务器发送查询请求。
  34. 根据权利要求24-32任一所述的方法,其特征在于,所述第二电子设备基于离线定位请求获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前,所述方法还包括:
    所述第二电子设备判断服务次数是否超过了预设的第一阈值;
    若所述第二电子设备判断服务次数未超过预设的第一阈值,则所述第二电子设备获取所述第二电子设备的位置信息,并将所述第二电子设备的位置信息发送至服务器中之前;
    若所述第二电子设备判断服务次数超过预设的第一阈值,则所述第二电子设备不获取所 述第二电子设备的位置信息。
  35. 一种电子设备,所述电子设备用作第一电子设备,包括触控屏、存储器、收发器、一个或多个处理器、多个应用程序、以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述收发器用于发射或接收无线信号;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1-15任一项所述的方法,或者,使得所述电子设备实现如权利要求16-23任一项所述的方法,或者,使得所述电子设备实现如权利要求24-33任一项所述的方法。
  36. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时使所述计算机执行如权利要求1-15任一项所述的方法,或者,如权利要求16-23任一项所述的方法,或者,如权利要求24-33任一项所述的方法。
  37. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-15任一项所述的方法,或者,如权利要求16-23任一项所述的方法,或者,如权利要求24-33任一项所述的方法。
PCT/CN2022/100783 2021-07-01 2022-06-23 电子设备交互方法及装置 WO2023274026A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/575,574 US20240334531A1 (en) 2021-07-01 2022-06-23 Electronic device interaction method and apparatus
EP22831842.4A EP4336865A1 (en) 2021-07-01 2022-06-23 Interaction method and apparatus for electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110743882.0A CN115580823A (zh) 2021-07-01 2021-07-01 电子设备交互方法及装置
CN202110743882.0 2021-07-01

Publications (1)

Publication Number Publication Date
WO2023274026A1 true WO2023274026A1 (zh) 2023-01-05

Family

ID=84579807

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/100783 WO2023274026A1 (zh) 2021-07-01 2022-06-23 电子设备交互方法及装置

Country Status (4)

Country Link
US (1) US20240334531A1 (zh)
EP (1) EP4336865A1 (zh)
CN (1) CN115580823A (zh)
WO (1) WO2023274026A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2053573A1 (en) * 2007-10-23 2009-04-29 British Telecommunications Public Limited Company Locating portable devices
CN107396308A (zh) * 2017-07-11 2017-11-24 惠州Tcl移动通信有限公司 一种找回移动终端的方法、存储设备及移动终端
CN111143419A (zh) * 2019-03-14 2020-05-12 广东小天才科技有限公司 一种电子设备的关机定位方法及服务设备、系统
CN111143490A (zh) * 2019-03-14 2020-05-12 广东小天才科技有限公司 一种电子设备的离线定位方法及服务设备、系统
CN112437401A (zh) * 2020-11-25 2021-03-02 维沃移动通信有限公司 操作控制方法、装置以及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2053573A1 (en) * 2007-10-23 2009-04-29 British Telecommunications Public Limited Company Locating portable devices
CN107396308A (zh) * 2017-07-11 2017-11-24 惠州Tcl移动通信有限公司 一种找回移动终端的方法、存储设备及移动终端
CN111143419A (zh) * 2019-03-14 2020-05-12 广东小天才科技有限公司 一种电子设备的关机定位方法及服务设备、系统
CN111143490A (zh) * 2019-03-14 2020-05-12 广东小天才科技有限公司 一种电子设备的离线定位方法及服务设备、系统
CN112437401A (zh) * 2020-11-25 2021-03-02 维沃移动通信有限公司 操作控制方法、装置以及电子设备

Also Published As

Publication number Publication date
EP4336865A1 (en) 2024-03-13
CN115580823A (zh) 2023-01-06
US20240334531A1 (en) 2024-10-03

Similar Documents

Publication Publication Date Title
WO2020233538A1 (zh) 一种接入无线局域网的方法和终端
CN110602686B (zh) 一种使用远程sim模块的方法及电子设备
CN114461239B (zh) 软件升级系统和软件升级方法
CN114390501B (zh) 数据传输的方法及电子设备
CN113923611B (zh) 一种呼叫转移系统及相关装置
US20240073978A1 (en) Method for monitoring link and terminal device
CN113572890B (zh) 音量管理的方法及电子设备
CN114461240A (zh) 软件升级方法、软件升级系统及电子设备
CN114157756A (zh) 任务处理方法及相关电子设备
CN113395364B (zh) 一种应用服务器的访问方法及终端
WO2023274026A1 (zh) 电子设备交互方法及装置
CN110837439A (zh) 一种文件备份方法、终端与通信系统
CN114339591B (zh) 基于超宽带芯片进行定位的方法和相关装置
CN117348894A (zh) 一种软件升级方法、终端设备及系统
US20220137232A1 (en) Exercise track recording method and related device
WO2023051098A1 (zh) 设备查找方法、电子设备及系统
CN114466339A (zh) 蓝牙配对的方法及电子设备
CN116541188B (zh) 通知显示方法、终端设备及存储介质
CN115087134B (zh) 一种蓝牙连接的方法和电子设备
WO2023142993A1 (zh) 一种探测方法、相关电子设备及系统
WO2023045876A1 (zh) 应用程序安装方法及相关设备
CN114980045A (zh) 蓝牙连接方法及电子设备
CN116264600A (zh) 来电提醒方法、电子设备和计算机可读存储介质
CN118264709A (zh) 服务发现方法及电子设备
CN118092201A (zh) 物联网设备控制方法、电子设备及计算机可读存储介质

Legal Events

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

Ref document number: 22831842

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022831842

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022831842

Country of ref document: EP

Effective date: 20231207

WWE Wipo information: entry into national phase

Ref document number: 18575574

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE