CN111221845A - Cross-device information searching method and terminal device - Google Patents

Cross-device information searching method and terminal device Download PDF

Info

Publication number
CN111221845A
CN111221845A CN201911423628.1A CN201911423628A CN111221845A CN 111221845 A CN111221845 A CN 111221845A CN 201911423628 A CN201911423628 A CN 201911423628A CN 111221845 A CN111221845 A CN 111221845A
Authority
CN
China
Prior art keywords
terminal device
search
search result
terminal
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911423628.1A
Other languages
Chinese (zh)
Inventor
张莉容
党茂昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911423628.1A priority Critical patent/CN111221845A/en
Publication of CN111221845A publication Critical patent/CN111221845A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Telephone Function (AREA)

Abstract

The method can realize that information on other terminal equipment of a user can be searched on one terminal equipment of the user in a cross-equipment mode, simplifies the searching operation steps and improves the user experience. The method comprises the following steps: the first terminal device receives a search operation of a user, and the first terminal device searches the internal memory to obtain a first search result corresponding to the search keyword in response to the search operation because the search operation comprises the search keyword input by the user. The first terminal equipment issues a search request message, the search request message comprises a search keyword, and receives an issued search result message, the search result message comprises a second search result, and the second search result is obtained by the second terminal equipment through searching in an internal memory of the second terminal equipment according to the search keyword in the received search request message. The first terminal device may display the first search result and the second search result simultaneously.

Description

Cross-device information searching method and terminal device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a cross-device information search method and a terminal device.
Background
With the development of the smart terminal, a situation that one user owns a plurality of terminals becomes more and more popular, for example, one user may own three terminals of a smart phone, a tablet computer and a smart watch at the same time, and the three terminals may store various information required by the user respectively. In practical applications, users often need to transfer files or search files on different terminals in order to search desired information on one device. For example, when a user uses a tablet computer to capture a home image, the user may need to send (or transfer) the image stored on the tablet computer to the mobile phone when the user wants to view the image file on the mobile phone. For another example, if the time interval is too long, the user is not sure whether the home images are stored on the mobile phone or the tablet computer, and the user may need to search on the two devices separately. Therefore, the information stored between different terminals is independent, the user can only search for the required information across the terminals through complicated transfer operation or search operation, and the user experience is poor.
Disclosure of Invention
The application provides a cross-device information searching method and terminal device, which are used for realizing that information on other terminal devices of a user can be searched on one terminal device of the user in a cross-device mode, so that the searching operation steps are simplified, and the user experience is improved.
In a first aspect, an embodiment of the present application provides a method for searching cross-device information, where the method may be applied to at least two terminal devices of a same user, where the at least two terminal devices of the user have a same system authentication account, and specifically, the method includes: the first terminal device receives a search operation of a user, and the first terminal device searches the internal memory to obtain a first search result corresponding to the search keyword in response to the search operation because the search operation comprises the search keyword input by the user. In addition, in response to the search operation, the first terminal device issues a search request message including a search keyword. The second terminal device searches the second search result corresponding to the search keyword in the internal memory and issues the search result message because the second terminal device subscribes to the search request message, and the first terminal device can search the second search result in the search result message because the first terminal device subscribes to the search result message, thereby displaying the first search result and the second search result at the same time.
In a possible embodiment, the first terminal device may publish, to the second terminal device and the third terminal device, a first subscription topic corresponding to the search request message, and the second terminal device and the third terminal device respectively request, after receiving the first subscription topic, the first terminal device to subscribe to the first subscription topic. In addition, the second terminal device and the third terminal device publish a second subscription topic corresponding to the search result message to the first terminal device, and the first terminal device requests the second terminal device and the third terminal device to subscribe to the second subscription topic after receiving the second subscription topic.
Illustratively, a first terminal device publishes a search request message based on a publish-subscribe message schema, and a second terminal device can subscribe to the topic of the search request message based on the message schema, thereby searching for a search keyword in the topic of the search request message.
In a possible embodiment, in the above method, if the third terminal device also subscribes to the search request message, the third terminal device may receive the search request message. Likewise, the third terminal device may also search the internal memory for a third search result corresponding to the search keyword, and issue a search result message including the third search result. In this way, the first terminal device subscribing to the topic receives the third search result, and displays the first search result, the second search result and the third search result.
In the above embodiment, the information search results on the second terminal device and the third terminal device may be displayed on the first terminal device, so that information collaboration among multiple terminal devices is realized, a user may search across devices, and the user does not need to perform complicated operations.
In a possible implementation manner, before the above method embodiment is executed, the first terminal device and the second terminal device may access the same access point device to establish the internal local area network connection, that is, the first terminal device and the second terminal device are located in the same local area network, or the first terminal device, the second terminal device, and the third terminal device may access the same access point to establish the internal local area network connection. For example, the first terminal device and the second terminal device both access the same WiFi hotspot, and because the terminal devices are connected through the local area network, cross-device information search can be achieved without consuming cellular network traffic.
In a possible implementation manner, if the first terminal device is before establishing network connection with the second terminal device, the first terminal device sends a broadcast message, where the broadcast message includes a ciphertext, and the ciphertext is obtained by encrypting, by the first terminal device, the system authentication of the first terminal device using a public key corresponding to the system authentication account of the first terminal device. After receiving the broadcast message, the second terminal device decrypts the ciphertext by using the private key corresponding to the system authentication account of the second terminal device, and then sends a feedback message indicating whether decryption is successful or not to the first terminal device. This is done to ensure the security of data access between devices and to prevent data in the devices from being accessed illegally. Illustratively, the system authentication account may be the user's hua as account, or an apple account, etc.
In one possible implementation manner, the first terminal device may rank the first search result and the second search result according to at least one of the device source and the matching degree of the search result and the search keyword, and then display the first search result and the second search result according to the ranking result, wherein the first search result of the first terminal device is preferentially displayed, and the higher the matching degree of the search result and the search keyword is, the higher the display position is. According to the display method, the user can search quickly to obtain useful information, and the search efficiency is improved.
In a possible implementation manner, when the first terminal device displays the search result of the first terminal device and the search result of the second terminal device, if the first terminal device receives a viewing operation of the user on the search result of the second terminal device, the first terminal device may display the content of the second terminal device on the display screen. Specifically, when the content type of the second search result is a file type, the first terminal device searches for a source file corresponding to the second search result from the second terminal device, and displays the source file; and when the content type of the second search result is an application type or a webpage type, the first terminal equipment displays an application interface or webpage content corresponding to the second search result on the first terminal equipment in a screen projection mode. The method and the device for searching the multiple devices can avoid repeated searching among the multiple devices by the user, and simplify searching operation steps.
In a second aspect, an embodiment of the present application provides a terminal device, including a touch screen, a processor, and a memory, where the memory is used to store one or more computer programs; the one or more computer programs stored in the memory, when executed by the processor, enable the terminal device to implement any of the possible design methods of any of the aspects described above.
In a third aspect, the present application further provides an apparatus including a module/unit for performing the method of any one of the possible designs of any one of the above aspects. These modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a fourth aspect, this embodiment further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on a terminal device, the computer program causes the terminal device to perform any one of the possible design methods of any one of the aspects.
In a fifth aspect, the present application further provides a computer program product, which when running on a terminal, causes the terminal device to execute any one of the possible design methods of any one of the above aspects.
In a sixth aspect, the present application further provides a chip, coupled with a memory, for executing a computer program stored in the memory to perform any one of the possible design methods of the foregoing aspects.
Drawings
FIG. 1 is a schematic diagram of a set of interfaces provided by an embodiment of the present application;
fig. 2 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an android operating system according to an embodiment of the present application;
fig. 4 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 5A and fig. 5B are schematic diagrams of pub-sub message patterns according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a device account verification method according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a cross-device information search method provided in an embodiment of the present application
FIG. 8 is a schematic diagram of a set of interfaces provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a set of interfaces provided by an embodiment of the present application;
fig. 10 is a schematic diagram of a screen projection application scenario provided in an embodiment of the present application;
fig. 11 is a schematic view of a screen projection function switch interface provided in an embodiment of the present application;
FIG. 12 is a schematic diagram of a set of interfaces provided by an embodiment of the present application;
fig. 13 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be described in detail below with reference to the drawings and specific embodiments of the specification.
In the following, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
1) The APP related to the embodiment of the present application, referred to as an application for short, is a software program capable of implementing a certain specific function or functions. Generally, a plurality of applications can be installed in a terminal device. For example, a camera application, a mailbox application, an intelligent home control application, and the like. The application mentioned below may be a system application installed when the terminal device leaves a factory, or may be a third-party application downloaded from a network or acquired from another terminal device by a user during the process of using the terminal device.
2) The screen projection technology refers to that under the condition that different terminal devices (such as a smart phone, a smart tablet, a computer and a television) are connected through a wired connection or a wireless network, content of the terminal devices is delivered to other terminal devices, for example, the content of the terminal devices can be digital multimedia (such as high definition video, audio and pictures) files. The screen projection technology can realize sharing of the same content on different terminal devices, and can enrich the multimedia life of users.
In the prior art, a user can search for files or information (such as files or information in a system application or a third-party application) stored inside a currently used terminal device by using a negative one-screen search control. Illustratively, as shown in fig. 1, the mobile phone detects that the user performs a rightward sliding operation shown in fig. 1(a), and displays an interface 110 shown in fig. 1(b), where it should be noted that the interface 110 may also be referred to as a negative one-screen. The interface 110 shown in FIG. 1(b) includes system applications for various functions, such as a search bar 111, application recommendations 112, context intelligence 113, read-later application 114, etc., and it will be appreciated that in some embodiments, system applications for other functions, such as intelligent reminders, voice assistants, etc., may also be included in the interface shown in FIG. 1 (b). As shown in fig. 1(c), the terminal device receives an input operation of the user in the search bar 111, obtains a search term "work summary" input by the user, and searches for a file or information stored inside the terminal device according to the search term, so as to obtain a search result as shown in fig. 1 (d). In fig. 1(d), the searched work summary document is displayed in the display frame 131 of the local file. Assuming that the user re-edits and stores the work summary in the document editing application of the tablet device, when the user does not migrate the updated work summary in the tablet device to the mobile phone, the user cannot search the updated work summary document in the tablet computer according to the above search method.
In order to realize that a user can search information in a cross-terminal mode, the embodiment of the application provides a cross-device information searching method. The method can realize that information on other terminal equipment of a user can be searched on one terminal equipment of the user in a cross-equipment mode, specifically, the first terminal equipment and the second terminal equipment can establish network connection, when the user inputs a search text on the first terminal equipment, the first terminal equipment can publish a theme corresponding to the search text, and the second terminal equipment feeds back a search result corresponding to the search text to the first terminal equipment because the second terminal equipment subscribes to the theme, so that the purpose of searching information on the user in the cross-equipment mode is realized, the search operation steps are simplified, and the user experience is improved.
The embodiments disclosed in the embodiments of the present application can be applied to terminal equipment. In some embodiments, the terminal device may be a portable terminal, such as a cell phone, a tablet, a wearable device with wireless communication capabilities (e.g., a smart watch), an in-vehicle device, and the like, that includes functionality such as a personal digital assistant and/or a music player. Exemplary embodiments of the portable terminal include, but are not limited to, a mount
Figure BDA0002353006690000041
Or other operating system. The portable terminal may also be a portable terminal such as a Laptop computer (Laptop) with a touch sensitive surface, e.g. a touch panel, etc. It should also be understood that in other embodiments, the terminal may be a desktop computer with a touch-sensitive surface (e.g., a touch panel).
Hereinafter, taking the terminal device as a mobile phone as an example, fig. 2 shows a schematic structural diagram of a mobile phone 200.
The mobile phone 200 may include a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 251, a wireless communication module 252, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, a SIM card interface 295, and the like. The sensor module 280 may include a gyroscope sensor 280A, an acceleration sensor 280B, a proximity light sensor 280G, a fingerprint sensor 280H, and a touch sensor 280K (of course, the mobile phone 200 may also include other sensors, such as a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like, which are not shown in the figure).
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the mobile phone 200. In other embodiments of the present application, handset 200 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a Neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. Wherein the controller can be the neural center and the command center of the cell phone 200. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
The processor 210 may operate the information searching method provided in the embodiment of the present application, so as to simplify an operation of searching information between different terminal devices by a user, and improve user experience. The processor 210 may include different devices, for example, when the CPU and the GPU are integrated, the CPU and the GPU may cooperate to execute the information searching method provided in the embodiment of the present application, for example, part of the algorithm in the information searching method is executed by the CPU, and another part of the algorithm is executed by the GPU, so as to obtain faster processing efficiency.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the cell phone 200 may include 1 or N display screens 294, N being a positive integer greater than 1. The display screen 294 may be used to display information input by or provided to the user as well as various Graphical User Interfaces (GUIs). For example, the display 294 may display a photograph, video, web page, or file, among others. As another example, the display 294 may display a graphical user interface as shown in FIG. 1. The graphical user interface shown in fig. 1(a) includes, among other things, a status bar 101, a concealable navigation bar 102, a time and weather widget 103, and icons of applications, such as a browser icon 104. The status bar 101 includes the name of the operator (e.g., china mobile), the mobile network (e.g., 4G), the time and the remaining power. The navigation bar 102 includes a back key icon, a home key icon, and a forward key icon. Further, it is understood that in some embodiments, a Bluetooth icon, a Wi-Fi icon, an add-on icon, etc. may also be included in status bar 101. It is further understood that, in other embodiments, a Dock column may be further included in the graphical user interface shown in fig. 1(a), and a commonly used application icon may be included in the Dock column. When the processor 210 detects a touch event of a finger (or a stylus, etc.) of a user with respect to an application icon, in response to the touch event, a user interface of an application corresponding to the application icon is opened and displayed on the display 294.
In the embodiment of the present application, the display screen 294 may be an integrated flexible display screen, or a spliced display screen formed by two rigid screens and a flexible screen located between the two rigid screens may be adopted. After the processor 210 executes the information search method provided by the embodiment of the present application, the processor 210 may control the negative one-screen interface on the display screen 294 to display the information search results on a plurality of terminals.
The cameras 293 (front camera or rear camera, or one camera may be used as both front camera and rear camera) are used for capturing still images or video. In general, the camera 293 may include a photosensitive element such as a lens group including a plurality of lenses (convex or concave lenses) for collecting an optical signal reflected by an object to be photographed and transferring the collected optical signal to an image sensor, and an image sensor. And the image sensor generates an original image of the object to be shot according to the optical signal.
Internal memory 221 may be used to store computer-executable program code, including instructions. The processor 210 executes various functional applications and data processing of the cellular phone 200 by executing instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Wherein the storage program area may store an operating system, codes of application programs (such as a camera application, a WeChat application, etc.), and the like. The data storage area can store data (such as images, videos and the like acquired by a camera application) and the like created in the use process of the mobile phone 200.
The internal memory 221 may also store codes of the information search algorithm provided by the embodiments of the present application. When the code of the information lookup algorithm stored in the internal memory 221 is executed by the processor 210, the processor 210 may control the display of the lookup result on the display screen 294.
In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
Of course, the codes of the information search algorithm provided in the embodiment of the present application may also be stored in the external memory. In this case, the processor 210 can run the code of the information search algorithm stored in the external memory through the external memory interface 220, and the processor 210 can control the display screen 294 to display the information search result of different terminal devices.
The function of the sensor module 280 is described below.
The gyro sensor 280A may be used to determine the motion attitude of the cellular phone 200. In some embodiments, the angular velocity of the cell phone 200 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 280A. I.e., the gyro sensor 280A may be used to detect the current state of motion of the handset 200, such as shaking or standing still.
When the display screen in the embodiment of the present application is a foldable screen, the gyro sensor 280A may be used to detect a folding or unfolding operation acting on the display screen 294. The gyro sensor 280A may report the detected folding operation or unfolding operation as an event to the processor 210 to determine the folded state or unfolded state of the display screen 294.
The acceleration sensor 280B can detect the magnitude of acceleration of the cellular phone 200 in various directions (typically three axes). I.e., the gyro sensor 280A may be used to detect the current state of motion of the handset 200, such as shaking or standing still. When the display screen in the embodiment of the present application is a foldable screen, the acceleration sensor 280B may be used to detect a folding or unfolding operation acting on the display screen 294. The acceleration sensor 280B may report the detected folding operation or unfolding operation as an event to the processor 210 to determine the folded state or unfolded state of the display screen 294.
The proximity light sensor 280G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The mobile phone emits infrared light outwards through the light emitting diode. The handset uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the handset. When insufficient reflected light is detected, the handset can determine that there are no objects near the handset. When the display screen in the embodiment of the present application is a foldable display screen, the proximity optical sensor 280G may be disposed on a first screen of the foldable display screen 294, and the proximity optical sensor 280G may detect a folding angle or an unfolding angle of the first screen and the second screen according to an optical path difference of the infrared signal.
The gyro sensor 280A (or the acceleration sensor 280B) may transmit the detected motion state information (such as an angular velocity) to the processor 210. The processor 210 determines whether the mobile phone 200 is currently in the hand-held state or the tripod state (for example, when the angular velocity is not 0, it indicates that the mobile phone 200 is in the hand-held state) based on the motion state information.
The fingerprint sensor 280H is used to collect a fingerprint. The mobile phone 200 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The touch sensor 280K is also referred to as a "touch panel". The touch sensor 280K may be disposed on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, which is also called a "touch screen". The touch sensor 280K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 294. In other embodiments, the touch sensor 280K can be disposed on the surface of the mobile phone 200 at a different location than the display 294.
Illustratively, the display 294 of the cell phone 200 displays a home interface that includes icons for a plurality of applications (e.g., a camera application, a WeChat application, etc.). The user clicks an icon of the camera application in the main interface through the touch sensor 280K, and the processor 210 is triggered to start the camera application and open the camera 293. Display screen 294 displays an interface, such as a viewfinder interface, for a camera application.
The wireless communication function of the mobile phone 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 251, the wireless communication module 252, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 251 can provide a solution including 2G/3G/4G/5G wireless communication applied to the handset 200. The mobile communication module 251 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 251 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 251 can also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 251 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 251 may be disposed in the same device as at least some of the modules of the processor 210.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 270A, the receiver 270B, etc.) or displays images or video through the display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 251 or other functional modules, independent of the processor 210.
The wireless communication module 252 may provide a solution for wireless communication applied to the mobile phone 200, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 252 may be one or more devices that integrate at least one communication processing module. The wireless communication module 252 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 252 may also receive a signal to be transmitted from the processor 210, perform frequency modulation on the signal, amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In addition, the mobile phone 200 can implement an audio function through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the earphone interface 270D, and the application processor. Such as music playing, recording, etc. The handset 200 may receive key 290 inputs, generating key signal inputs relating to user settings and function control of the handset 200. The cell phone 200 can generate a vibration alert (e.g., an incoming call vibration alert) using the motor 291. The indicator 292 in the mobile phone 200 may be an indicator light, and may be used to indicate a charging status, a power change, or an indication message, a missed call, a notification, or the like. The SIM card interface 295 in the handset 200 is used to connect a SIM card. The SIM card can be attached to and detached from the mobile phone 200 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295.
It should be understood that in practical applications, the mobile phone 200 may include more or less components than those shown in fig. 2, and the embodiment of the present application is not limited thereto. The illustrated handset 200 is merely an example, and the handset 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the invention takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of a terminal device. Fig. 3 is a block diagram of a software configuration of a terminal device according to an embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include phone, camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The telephone manager is used for providing a communication function of the terminal equipment. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Fig. 4 exemplarily shows an application scenario diagram applicable to the embodiment of the present application.
As shown in fig. 4, the application scenario includes: server 400, terminal device 401, terminal device 402, and terminal device 403.
The server 400 can perform information interaction with the terminal device 401, the terminal device 402, and the terminal device 403, for example, the terminal device 401, the terminal device 402, and the terminal device 403 acquire system authentication account information from the server 400, so as to verify whether the devices log in the same system authentication account among the terminal device 401, the terminal device 402, and the terminal device 403. In some scenarios, server 400 may be connected to terminal device 201, terminal device 402, and terminal device 403 via a network. The server 400 may be a cloud server or a server cluster located on the network side.
In fig. 4, the terminal device 401, the terminal device 402, and the terminal device 403 may be various different types of terminal devices, and may include: mobile phones, notebook computers, tablet computers, smart televisions, smart watches, and the like.
In fig. 4, connections between the terminal device 401, the terminal device 402, and the terminal device 403 may be established in a wired and/or wireless manner, and connections between the terminal device 401, the terminal device 402, and the terminal device 403 and the server 400 may be established in a wired and/or wireless manner. For example, the connection between the terminal device 401 and the terminal device 402 may be established through a data line. For another example, the terminal device 401 and the terminal device 402 may be interconnected through a wireless communication network. The wireless communication network may be a local area network or a wide area network that is switched over by a relay device. When the communication network is a local area network, the communication network may be a wifi hotspot network, a wifi P2P network, a bluetooth network, a zigbee network, or a Near Field Communication (NFC) network, for example. When the communication network is a wide area network, the communication network may be, for example, a third generation mobile communication technology (3rd-generation wireless telecommunications technology, 3G) network, a fourth generation mobile communication technology (4G) network, a fifth generation mobile communication technology (5G) network, a future-evolution Public Land Mobile Network (PLMN), the internet, or the like. In the scenario shown in fig. 4, data may be sent between different terminal devices through a communication network, for example, sending pictures, texts, videos, or results of terminal device retrieval on objects such as pictures, texts, or videos.
It should be noted that the above system may further include more terminal devices, or the above system may include less than three terminal devices, which is not limited in this embodiment of the application.
It should be understood that "at least one" in the embodiments of the present application means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b and c can be single or multiple.
The embodiment of the application provides a cross-device information search method which can be based on a publish-subscribe (pub/sub) message communication mode. The messaging mode is a Publish/Subscribe (Publish/Subscribe) system composed of information publishers (pub) and information subscribers (sub). Wherein, the information publisher (pub) sends the message, and the information subscriber (sub) receives the message. SUBSCRIBE, UNSUBSCRIBE, and PUBLISH commands enable PUBLISH/SUBSCRIBE messaging broadness, in which an information publisher sends information to a subscription topic or logical channel (channel) instead of sending it directly to a specific subscriber, and then the information broker forwards it to all subscribers subscribing to the topic. In this message mode, messages are published to a "topic" or named logical channel (channel). Subscribers who subscribe to the "topic" or the logical channel will receive messages published to the "topic" or logical channel. The subscriber who subscribes to the topic receives the same message. Illustratively, in fig. 5A, a terminal device 401 (e.g., a mobile phone) is a publisher of information (pub) for sending a message, and a terminal device 402 (e.g., a laptop) and a terminal device 403 (e.g., a tablet) are subscribers (sub) for receiving a message. End device 402 and end device 403 may subscribe to the same topic or the same logical channel. When the end device 401 sends a new message to the logical channel via the PUBLISH command, the message is sent to the end devices 402 and 403 subscribing to the logical channel. If there are other terminal devices in fig. 5A, the other terminal devices may subscribe to the same topic according to the above method, and it is seen that the publish-subscribe message mode may greatly improve the extensibility of the system.
In this embodiment, for example, with reference to fig. 5A and 5B, the terminal device 401 may serve as an information publisher, and the terminal device 402 and the terminal device 403 may serve as information subscribers. The terminal device 401 may publish the subscription topic to the terminal device 402 and the terminal device 403 through the publication notification interface, and then the terminal device 401 may receive the processing result of the subscription topic returned by the terminal device 402 and the terminal device 403 through the response notification interface. Correspondingly, the terminal device 402 and the terminal device 403 may receive the subscription topic published by the terminal device 401 through the reception notification interface, and the terminal device 402 and the terminal device 403 may send the processing result of the subscription topic to the terminal device 401 through the response notification interface.
In the embodiment of the application, network connection needs to be established in advance between the terminal devices, so that the terminal devices can receive messages issued by other terminal devices. Specifically, still taking the terminal device 401 (also called a first terminal device) and the terminal device 402 (also called a second terminal device) and the terminal device 403 (also called a third terminal device) in fig. 4 as examples, for convenience of unified expression, the first terminal device, the second terminal device and the third terminal device will be described hereinafter. The first terminal device, the second terminal device, and the third terminal device may all access the same Access Point (AP), exemplarily, the first terminal device, the second terminal device, and the third terminal device are all connected to the same router, or the first terminal device, the second terminal device, and the third terminal device are all accessed to the same WiFi hotspot. If the device accessing the access point further includes a fourth terminal device in the method, the first terminal device, the second terminal device, the third terminal device, and the fourth terminal device may complete networking, that is, may be in the same network.
After the network connection is established between the terminal devices, the first terminal device may authenticate other devices accessing the same access point, that is, it is determined whether the other devices are the same as the system authentication account of the first terminal device, the first terminal device determines a target device set with the same system authentication account, and then the first terminal device and the terminal devices in the target device set complete authentication, thereby implementing cross-device information search. Specifically, as shown in fig. 6, the authentication method includes the following steps.
Step 601, the first terminal device sends a broadcast message, where the broadcast message includes a ciphertext, and the ciphertext is obtained by the first terminal device encrypting a system authentication account of the first terminal device by using a public key corresponding to the system authentication account of the first terminal device.
The first terminal device may obtain, from the server in advance, a public key corresponding to the system authentication account of the first terminal device. For example, the account number of the first terminal device may be a hua account number, and the first terminal device may first obtain a public key corresponding to the hua account number from the hua cloud server, then encrypt the hua account number using the public key, and then generate the broadcast message.
Step 602, after receiving the broadcast message, the second terminal device, the third terminal device, and the fourth terminal device read a private key corresponding to the system authentication account of the device from the trusted storage area, and then decrypt the broadcast message using the private key.
The second terminal device, the third terminal device and the fourth terminal device may obtain the private key corresponding to the system authentication account of the terminal device from the server in advance. Exemplarily, if the accounts of the second terminal device, the third terminal device, and the fourth terminal device are all hua account numbers, the second terminal device, the third terminal device, and the fourth terminal device may obtain a private key corresponding to the hua account number of the device itself from the hua cloud server in advance, and store the private key in the trusted storage area.
Step 603, if the second terminal device decrypts successfully, the second terminal device sends an affirmative feedback message to the first terminal device, where the affirmative feedback message indicates that the second terminal device decrypts the ciphertext successfully.
Step 604, if the third terminal device decrypts successfully, the third terminal device sends an affirmative feedback message to the first terminal device, where the affirmative feedback message indicates that the third terminal device decrypts the ciphertext successfully.
Step 605, if the fourth terminal device fails to decrypt, the fourth terminal device sends a negative feedback message to the first terminal device, where the negative feedback message indicates that the fourth terminal device fails to decrypt the ciphertext.
Step 606, the first terminal device determines that the system authentication accounts of the second terminal device and the third terminal device are consistent with the first terminal device and the third terminal device according to the positive feedback messages from the second terminal device and the third terminal device, so that network connection is established among the first terminal device, the second terminal device and the third terminal device, and networking is completed.
In one possible embodiment, the first terminal device may start a timer when sending the broadcast message, and when the timer duration expires, the first terminal device determines that a positive feedback message is received within the duration (e.g., 3 seconds). Assuming that the first terminal device receives the positive feedback messages from the second terminal device and the third terminal device within the period of time, the first terminal device, the second terminal device and the third terminal device complete networking.
Therefore, other terminal devices decrypt the broadcast message by using the private key corresponding to the self account, if the decryption is successful, the fact that the self device and the terminal device sending the broadcast message log in the same system authentication account is indicated, the first terminal device can authenticate other terminal devices according to the method, then information on other terminal devices of a user can be searched on one terminal device of the user in a cross-device mode, meanwhile, the safety of data access between the devices is guaranteed, and data are prevented from being illegally accessed.
In this embodiment of the application, after the first terminal device completes authentication of the second terminal device and the third terminal device, the first terminal device may issue, to the second terminal device and the third terminal device, a first subscription topic corresponding to the search request message, and after receiving the first subscription topic, the second terminal device and the third terminal device respectively request the first terminal device to subscribe to the first subscription topic. In addition, the second terminal device and the third terminal device publish a second subscription topic corresponding to the search result message to the first terminal device, and the first terminal device requests the second terminal device and the third terminal device to subscribe to the second subscription topic after receiving the second subscription topic. After that, when the first terminal device can perform a search, a search request message is sent to the second terminal device and the third terminal device subscribed to the first subscription topic through the publishing notification interface, where the search request message includes a search keyword, and after receiving the notification, the second terminal device and the third terminal device subscribed to the first subscription topic start to search and send a search result to the first terminal device subscribed to the second subscription topic through the response notification interface.
In another possible implementation, after the second terminal device and the third terminal device pass the authentication of the first terminal device, the first terminal device is subscribed to the subscription topic of the "search request" type by default. When the first terminal device searches, the search request message can be directly sent to the second terminal device and the third terminal device. Similarly, when the first terminal device sends the search request message to the second terminal device and the third terminal device, the first terminal device subscribes to the subscription theme of the type of the search result to the second terminal device and the third terminal device by default. After the second terminal device and the third terminal device execute the search, the search result message can be respectively and directly sent to the first terminal device. When the second terminal equipment and the third terminal equipment are disconnected with the first terminal equipment, the subscription to the theme of the search request is automatically cancelled.
In a possible implementation, the first terminal device may further store, in a set, identifiers of terminal devices that subscribe to the same subscription topic, and the first terminal device may manage objects in the set, for example, the first terminal device may add or delete the identifiers of the terminal devices in the set, that is, the first terminal device may configure a new device to subscribe to the subscription topic, or may configure some devices to no longer subscribe to the subscription topic. Illustratively, when the first terminal device, the second terminal device and the third terminal device are all in the same local area network, the second terminal device and the third terminal device may implement the topic of the subscription search request message by being close to the first terminal device. If the distances between the second terminal device and the first terminal device and the distances between the third terminal device and the first terminal device exceed the set threshold (that is, the second terminal device and the third terminal device are far away from the first terminal device), the first terminal device may delete the identifiers of the second terminal device and the third terminal device in the set, that is, the first terminal device may configure that the second terminal device no longer subscribes to the topic of the search request message.
With reference to the foregoing embodiments and the accompanying drawings, embodiments of the present application provide a method for searching cross-device information, where the method may be implemented in at least two terminal devices of a user, and the at least two terminal devices of the user have the same system authentication account. Specifically, as shown in fig. 7, the method includes the following steps.
In step 701, a first terminal device receives a search operation of a user, where the search operation includes a search keyword input by the user.
Illustratively, the first terminal device is a mobile phone installed with an android operating system, and the search operation may refer to: a user inputs search keywords in a search bar of a negative screen of the mobile phone and clicks a search control. The user may input the search keyword through an input method, or may input the search keyword through voice, which is not limited in the present application.
In response to the search operation, the first terminal device obtains a first search result corresponding to the search keyword from an internal memory, step 702.
In step 703, in response to the search operation, the first terminal device issues a search request message, where a subject of the search request message includes a search keyword.
In step 704, the second terminal device receives the search request message.
Wherein the second terminal device subscribes to the subject of the search request message in advance. The first terminal device may receive the search request message.
Step 705, the second terminal device obtains the search keyword from the search request message, and then searches the internal memory of the second terminal device for a second search result corresponding to the search keyword.
In step 706, the second terminal device issues a search result message, and the subject of the search result message includes the second search result.
In step 707, the first terminal device receives the search result message.
The first terminal device subscribes to the subject of the search request message in advance, so that the first terminal device can receive the search result message.
In step 708, the first terminal device obtains the second search result from the search result message, and displays the first search result and the second search result at the same time.
In a possible embodiment, in the above method, if the third terminal device also subscribes to the subject of the search request message, the third terminal device may receive the search request message. Likewise, the third terminal device may also search for a third search result corresponding to the search keyword in the internal memory, and issue a search result message whose subject includes the third search result. In this way, the first terminal device, which subscribes to the topic of the search result message published by the third terminal device, receives the search result message, obtains the third search result from the topic of the search result message, and the first terminal device can display the first search result, the second search result and the third search result. Therefore, the information search results on the second terminal device and the third terminal device can be displayed on the first terminal device, information cooperation among the plurality of terminal devices is achieved, a user can search across devices, and the user does not need to perform complex operation.
It should be noted that, in this embodiment of the present application, the number of the terminal devices is not limited to two or three devices, that is, four terminal devices or more terminal devices are also applicable to the method, because no matter how many terminal devices exist, the terminal devices can be regarded as the local device and other devices, for example, in the case of four terminal devices (device a, device B, device C, and device D), when content on the four devices needs to be searched on device a, device a can be regarded as the first terminal device in this embodiment, and device B, device C, and device D can be regarded as the second terminal device in this embodiment, and the displaying of the search results on device B, device C, and device D on device a can be completed by the method provided in this embodiment of the present application. If the content on the four devices needs to be searched on the device B, the device B may be regarded as the first terminal device in the embodiment of the present application, and the device C, the device a, and the device D may be regarded as the second terminal device in the embodiment of the present application, and the method provided in the embodiment of the present application may be used to complete displaying the search results on the device a, the device C, and the device D on the device B, and so on.
In a possible embodiment, in step 707 above, in one possible implementation, the first terminal device may sort the first search result and the second search result according to at least one of the source of the device and the matching degree of the search result and the search keyword, and then display the first search result and the second search result according to the sorted results, wherein the first search result of the first terminal device is displayed preferentially, and the higher the matching degree of the search result and the search keyword is, the higher the display position is.
Illustratively, the search results local to the first terminal device are preferentially displayed, and the search results from other devices may be ranked by the most recently used time (the closer the content is to the current time, the more forward the display), or the search results from other devices may be ranked by the degree of match with the search keyword (the higher the degree of match with the search keyword, the more forward the display). Alternatively, search results originating from other devices may be annotated with the device identification upon display to facilitate user determination of the source of the content. The display method is beneficial to the user to quickly search and obtain useful information, and the search efficiency is improved.
Illustratively, assume that the user edited and saved the work summary document on the cell phone, and later the user re-edited and saved the work summary document in the document editing application of the tablet device. As shown in fig. 8, assuming that the mobile phone completes networking with other terminal devices in the local area network according to the method described above, when the user inputs the search keyword "work summary" in the search bar 801 on the negative screen of the mobile phone and clicks the search control 802, as shown in fig. 8(a), the mobile phone issues a search request message and obtains a search result from other devices by searching according to the method described above. The handset will display an interface as shown in fig. 8 (b). The interface includes two parts of search results, where the first part 811 is a work summary document in the local file and the second part 812 is a work summary document on the tablet device. The handset displays the first portion 811 on top of the second portion 812, i.e., the handset preferentially displays the search results on its own device. Therefore, when a user searches for a file by using the mobile phone, the user can search for the file stored on the tablet device on the mobile phone, the search results on different devices can be displayed on the same device, repeated searching among multiple devices by the user is avoided, and the search operation steps are simplified.
For another example, assume that the user has installed a wechat application on the cell phone and logged in with wechat account 1, and later the user has installed the wechat application on the tablet device and logged in with wechat account 2. As shown in fig. 9, assuming that the mobile phone completes networking with other terminal devices in the local area network according to the method described above, when the user inputs a search keyword "WeChat" in a search bar 801 on the negative screen of the mobile phone and clicks a search control 902, as shown in fig. 9(a), the mobile phone issues a search request message and searches from other devices according to the method described above to obtain a search result. The handset will display an interface as shown in fig. 9 (b). The interface includes two parts of search results, where the first part 911 is a WeChat application in the native application, and the second part 912 is a WeChat application on the tablet device. Therefore, when a user searches for applications by using the mobile phone, the user can search on the mobile phone to obtain the application information on the tablet device, the search results on different devices can be displayed on the same device, repeated searching among multiple devices by the user is avoided, and the search operation steps are simplified.
In a possible embodiment, when the first terminal device displays the search result of the first terminal device and the search result of the second terminal device, if the first terminal device receives a user operation of viewing the search result of the second terminal device, the first terminal device may display the content of the second terminal device on the display screen.
Specifically, in a possible case, if the content corresponding to the search result of the second terminal device is a file on the second terminal device, when the first terminal device detects the viewing operation of the user, the second terminal device may synchronize the file to the first terminal device, so that the first terminal device views the content. Illustratively, as shown in fig. 8, when the cell phone detects a user's viewing operation on the second portion 812 shown in fig. 8(b), the cell phone receives an updated work summary document from the tablet computer, and then displays the work summary document on the cell phone display screen.
Specifically, the embodiments of the present application provide the following ways to implement synchronization of files between terminal devices, which include the following ways as non-limiting examples.
First, the second terminal device may employ a file synchronization mechanism of a cloud-based storage server similar to iCloud and DropBox. This approach provides a scheme for automatically synchronizing data so that data can also be shared across devices.
In a second mode, data can be transmitted between the first terminal device and the second terminal device through the USB cable (i.e., the data cable).
In a third mode, the user can send the data on the second terminal device to the first terminal device through an instant message or an email or the like.
In another possible case, if the content corresponding to the search result of the second terminal device is an application on the second terminal device, when the first terminal device detects a viewing operation of the user, the second terminal device may project the application interface onto the first terminal device, so that the first terminal device can view the interface content of the application. Illustratively, as shown in fig. 9, when the mobile phone detects a user's viewing operation on the second portion 912 shown in fig. 9(b), the tablet computer screens the content of the wechat application onto the mobile phone by means of screen-casting. For another example, if the search result is a web page on a tablet computer, the second electronic device may also screen-cast the web page content to the mobile phone in a screen-casting manner.
Specifically, fig. 10 shows a screen projection application scenario of an embodiment of the present application. In fig. 10, the second terminal device 203 is a source device, and the first terminal device 201 is a client device. The second terminal device 203 may send the screen projection content to the first terminal device 201, so that the screen projection content may be presented or displayed through the first terminal device 201, thereby achieving the purpose of information sharing. The second terminal device 203 and the first terminal device 201 may establish a connection in a wired (e.g., via a data line) and/or wireless (e.g., wireless fidelity (wi-fi), bluetooth, etc.). It should be noted that fig. 10 is only an example of an application scenario in the embodiment of the present application, and the embodiment of the present application does not limit the number of client devices that receive screen-shot content sent by a source device. Taking the source device as the second terminal device 203 shown in fig. 10 as an example, the second terminal device 203 may send the screen projection content to two or more terminal devices including the first terminal device 201, or may send only the screen projection content to the first terminal device 201.
In one possible implementation, the screen-projection function is turned on or off in response to a user operation. For example, a control for controlling to turn ON or OFF the smart screen projection function is set ON the system setting interface of the first terminal device 201 and the second terminal device 203 in fig. 10, as shown in fig. 11, when the user switches the control from OFF to ON, the first terminal device 201 and the second terminal device 203 turn ON the smart screen projection function; when the user switches the virtual button from ON to OFF, the first terminal apparatus 201 and the second terminal apparatus 203 turn OFF the smart screen projection function.
In other embodiments, when the screen projecting functions of the first terminal device and the second terminal device are in the on state, if the user views the search result on the second terminal device, the first terminal device may display a prompt message, where the prompt message is used to prompt the user whether to start the screen projecting function. Illustratively, as shown in fig. 12(a), when the mobile phone detects that the user performs a viewing operation on the second portion 912 shown in fig. 9(b), the mobile phone may display an interface as shown in fig. 12(b), where the interface includes a prompt box 1210, where the prompt box 1210 includes prompt information, and a confirmation option "yes" and a denial option "no", where the prompt information is used to prompt the user whether to screen, for example, the prompt information may be "please confirm whether to screen? ". The handset may continue to screen in response to the user selecting the confirmation option "yes," display an interface as shown in fig. 12(c) that shows that content is being acquired, and turn off the screen-casting function if the user operates the screen-casting cancel 1220. In addition, after the mobile phone selects the "yes" option in fig. 12(b), login information such as a fingerprint or a password requesting authentication of the user may be further displayed, so as to further improve the security of data access.
In summary, the embodiment of the application can realize cross-device search and cross-device display, and data sharing and screen projection display can be realized for data on different devices. When the method is applied to the equipment, a user can search according to the method without trying to recall the position of information storage, so that the user can be helped to accurately find the content to be searched, and the user experience is improved. In addition, the method carries out consistency verification on the system authentication accounts among different terminal devices in advance, thereby ensuring the security of data access.
In other embodiments of the present application, an embodiment of the present application discloses a terminal device, and as shown in fig. 13, the terminal device may include: a touch screen 1301, wherein the touch screen 1301 comprises a touch panel 1306 and a display 1307; one or more processors 1302; a memory 1303; one or more application programs (not shown); and one or more computer programs 1304, which may be connected via one or more communication buses 1305. Wherein the one or more computer programs 1304 are stored in the memory 1303 and configured to be executed by the one or more processors 1302, the one or more computer programs 1304 comprise instructions that can be used to perform the steps as in the corresponding embodiment of fig. 7.
The embodiment of the present application further provides a computer storage medium, where a computer instruction is stored in the computer storage medium, and when the computer instruction runs on a terminal device, the terminal device is enabled to execute the relevant method steps to implement the cross-device information search method in the foregoing embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps, so as to implement the cross-device information search method in the above embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the apparatus runs, the processor may execute the computer execution instructions stored in the memory, so as to enable the chip to execute the cross-device information search method in the above-mentioned method embodiments.
In addition, the terminal device, the computer storage medium, the computer program product, or the chip provided in the embodiments of the present application are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the terminal device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely one type of logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be discarded or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A cross-device information search method is applied to a first terminal device, and is characterized by comprising the following steps:
receiving a search operation of a user, wherein the search operation comprises a search keyword input by the user;
responding to the searching operation, searching in an internal memory of the first terminal device to obtain a first searching result corresponding to the searching keyword;
in response to the search operation, issuing a search request message, the search request message including the search keyword;
receiving a search result message issued by a second terminal device, wherein the search result message comprises a second search result, and the second search result is obtained by searching in an internal memory of the second terminal device according to a search keyword in a received search request message by the second terminal device, and a system authentication account of the second terminal device is the same as a system authentication account of the first terminal device;
displaying the first search result and the second search result.
2. The method of claim 1, prior to receiving a search operation by a user, further comprising:
publishing a first subscription topic corresponding to the search request message;
receiving a first subscription request from the second terminal equipment, wherein the first subscription request is used for requesting to subscribe to the first subscription topic;
receiving a second subscription topic published by the second terminal device, wherein the second subscription topic is a subscription topic corresponding to the search result message;
and sending a second subscription request to the second terminal equipment, wherein the second subscription request is used for requesting to subscribe the second subscription topic.
3. The method of claim 1 or 2, prior to receiving a search operation by a user, further comprising:
establishing a network connection with an access point device;
the equipment connected with the access point equipment through the network further comprises second terminal equipment, and the first terminal equipment and the second terminal equipment are located in the same local area network.
4. The method of claim 3, wherein after establishing the network connection with the access point device, further comprising:
sending a broadcast message, wherein the broadcast message comprises a ciphertext, and the ciphertext is obtained by encrypting a system authentication account of the first terminal device by using a public key corresponding to the system authentication account of the first terminal device;
receiving a feedback message from the second terminal device, where the feedback message is used to indicate whether the second terminal device successfully decrypts the ciphertext by using a private key corresponding to a system authentication account of the second terminal device;
and when the feedback message indicates that the ciphertext is successfully decrypted, determining that the system authentication account of the second terminal device is the same as the system authentication account of the first terminal device.
5. The method of any of claims 1-4, wherein the displaying the first search result and the second search result comprises:
sorting the first search result and the second search result according to at least one item of source equipment information of the search result, and matching degree of the search result and the search keyword;
displaying the first search result and the second search result according to the sorting result;
and preferentially displaying the first search result of the first terminal equipment, wherein the higher the matching degree of the search result and the search keyword is, the more front the display position is.
6. The method of any of claims 1 to 5, further comprising:
receiving a viewing operation of a user, wherein the viewing operation is used for viewing the second search result;
responding to the viewing operation, when the content type of the second search result is a file type, searching a source file corresponding to the second search result from the second terminal device, and displaying the source file;
and responding to the viewing operation, and when the content type of the second search result is an application type or a webpage type, displaying an application interface or webpage content corresponding to the second search result on the first terminal equipment in a screen-casting mode.
7. A first terminal device, wherein the first terminal device comprises a display screen, a processor and a memory;
the memory stores program instructions;
the processor is configured to execute the program instructions stored in the memory to cause the first terminal device to perform:
receiving a search operation of a user, wherein the search operation comprises a search keyword input by the user;
responding to the searching operation, searching in an internal memory of the first terminal device to obtain a first searching result corresponding to the searching keyword;
in response to the search operation, issuing a search request message, the search request message including the search keyword;
receiving a search result message issued by a second terminal device, wherein the search result message comprises a second search result, and the second search result is obtained by searching in an internal memory of the second terminal device according to a search keyword in a received search request message by the second terminal device, and a system authentication account of the second terminal device is the same as a system authentication account of the first terminal device;
and displaying the first search result and the second search result through the display screen.
8. The first terminal device of claim 7, wherein the processor is further configured to execute the program instructions stored in the memory to cause the first terminal device to perform:
publishing a first subscription topic corresponding to the search request message;
receiving a first subscription request from the second terminal equipment, wherein the first subscription request is used for requesting to subscribe to the first subscription topic;
receiving a second subscription topic published by the second terminal device, wherein the second subscription topic is a subscription topic corresponding to the search result message;
and sending a second subscription request to the second terminal equipment, wherein the second subscription request is used for requesting to subscribe the second subscription topic.
9. The first terminal device of claim 7 or 8, wherein the processor is further configured to execute the program instructions stored in the memory to cause the first terminal device to perform:
before receiving a search operation of a user, establishing network connection with an access point device;
the equipment connected with the access point equipment through the network further comprises second terminal equipment, and the first terminal equipment and the second terminal equipment are located in the same local area network.
10. The first terminal device of claim 9, wherein the processor is configured to execute the program instructions stored in the memory, to cause the first terminal device to specifically perform:
after establishing network connection with the access point device, sending a broadcast message to the second terminal device, where the broadcast message includes a ciphertext, and the ciphertext is obtained by encrypting, by the first terminal device, the system authentication of the first terminal device by using a public key corresponding to the system authentication account of the first terminal device;
receiving a feedback message from the second terminal device, where the feedback message is used to indicate whether the second terminal device successfully decrypts the ciphertext by using a private key corresponding to a system authentication account of the second terminal device;
and when the feedback message indicates that the ciphertext is successfully decrypted, determining that the system authentication account of the second terminal device is the same as the system authentication account of the first terminal device.
11. The first terminal device of any one of claims 7 to 10, wherein the processor is configured to execute the program instructions stored in the memory, so that the first terminal device specifically performs:
sorting the first search result and the second search result according to at least one item of source equipment information of the search result, and matching degree of the search result and the search keyword;
displaying the first search result and the second search result according to the sorting result;
and preferentially displaying the first search result of the first terminal equipment, wherein the higher the matching degree of the search result and the search keyword is, the more front the display position is.
12. The first terminal device of any one of claims 7 to 11, wherein the processor is configured to execute the program instructions stored in the memory, so that the first terminal device specifically performs:
receiving a viewing operation of a user, wherein the viewing operation is used for viewing the second search result;
responding to the viewing operation, when the content type of the second search result is a file type, searching a source file corresponding to the second search result from the second terminal device, and displaying the source file on the display screen;
and responding to the viewing operation, and when the content type of the second search result is an application type or a webpage type, displaying an application interface or webpage content corresponding to the second search result on the display screen in a screen projection mode.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises program instructions which, when run on a terminal device, cause the terminal device to carry out the method according to any one of claims 1 to 6.
14. A chip, wherein the chip is coupled to a memory for executing a computer program stored in the memory to perform the method of any of claims 1 to 6.
CN201911423628.1A 2019-12-31 2019-12-31 Cross-device information searching method and terminal device Pending CN111221845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423628.1A CN111221845A (en) 2019-12-31 2019-12-31 Cross-device information searching method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423628.1A CN111221845A (en) 2019-12-31 2019-12-31 Cross-device information searching method and terminal device

Publications (1)

Publication Number Publication Date
CN111221845A true CN111221845A (en) 2020-06-02

Family

ID=70828053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423628.1A Pending CN111221845A (en) 2019-12-31 2019-12-31 Cross-device information searching method and terminal device

Country Status (1)

Country Link
CN (1) CN111221845A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287234A (en) * 2020-11-16 2021-01-29 Oppo广东移动通信有限公司 Information retrieval method, device and storage medium
CN112463750A (en) * 2020-08-21 2021-03-09 海信视像科技股份有限公司 File synchronization method and display device
CN113489763A (en) * 2021-06-18 2021-10-08 深圳软牛科技有限公司 Method, device, equipment and storage medium for closing searching my mobile phone function
CN113721773A (en) * 2021-08-27 2021-11-30 高创(苏州)电子有限公司 Input device sharing method and intelligent display device
CN113885973A (en) * 2020-07-02 2022-01-04 华为技术有限公司 Translation result display method and device and electronic equipment
CN114430496A (en) * 2020-10-15 2022-05-03 华为技术有限公司 Cross-device video searching method and related device
CN114817521A (en) * 2021-01-20 2022-07-29 华为技术有限公司 Searching method and electronic equipment
CN114884987A (en) * 2022-04-24 2022-08-09 青岛海信医疗设备股份有限公司 Method, device and storage medium for acquiring equipment state information
WO2023142935A1 (en) * 2022-01-28 2023-08-03 华为技术有限公司 Application component management method and related device
WO2024087960A1 (en) * 2022-10-24 2024-05-02 华为技术有限公司 Search system and method, terminal device, and computer readable storage medium
CN114817521B (en) * 2021-01-20 2024-05-14 华为技术有限公司 Searching method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103314605A (en) * 2011-01-17 2013-09-18 瑞典爱立信有限公司 Method and apparatus for authenticating a communication device
CN105634737A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Data transmission method, terminals and system thereof
CN108684206A (en) * 2017-05-18 2018-10-19 华为技术有限公司 A kind of searching method and device
CN110048927A (en) * 2018-01-16 2019-07-23 华为技术有限公司 Communication means and communication device
CN110609957A (en) * 2019-09-19 2019-12-24 青岛海信移动通信技术股份有限公司 Method, terminal and server for global search

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103314605A (en) * 2011-01-17 2013-09-18 瑞典爱立信有限公司 Method and apparatus for authenticating a communication device
CN105634737A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Data transmission method, terminals and system thereof
CN108684206A (en) * 2017-05-18 2018-10-19 华为技术有限公司 A kind of searching method and device
CN110048927A (en) * 2018-01-16 2019-07-23 华为技术有限公司 Communication means and communication device
CN110609957A (en) * 2019-09-19 2019-12-24 青岛海信移动通信技术股份有限公司 Method, terminal and server for global search

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885973A (en) * 2020-07-02 2022-01-04 华为技术有限公司 Translation result display method and device and electronic equipment
CN112463750B (en) * 2020-08-21 2023-08-22 海信视像科技股份有限公司 File synchronization method and display device
CN112463750A (en) * 2020-08-21 2021-03-09 海信视像科技股份有限公司 File synchronization method and display device
CN114430496B (en) * 2020-10-15 2024-03-01 华为技术有限公司 Cross-equipment video searching method and related equipment
CN114430496A (en) * 2020-10-15 2022-05-03 华为技术有限公司 Cross-device video searching method and related device
WO2022100222A1 (en) * 2020-11-16 2022-05-19 Oppo广东移动通信有限公司 Information retrieval method, apparatus and system, and storage medium
CN112287234A (en) * 2020-11-16 2021-01-29 Oppo广东移动通信有限公司 Information retrieval method, device and storage medium
CN112287234B (en) * 2020-11-16 2023-05-30 Oppo广东移动通信有限公司 Information retrieval method, device and storage medium
CN114817521B (en) * 2021-01-20 2024-05-14 华为技术有限公司 Searching method and electronic equipment
CN114817521A (en) * 2021-01-20 2022-07-29 华为技术有限公司 Searching method and electronic equipment
CN113489763B (en) * 2021-06-18 2023-11-21 深圳软牛科技有限公司 Method, device, equipment and storage medium for closing and searching My mobile phone function
CN113489763A (en) * 2021-06-18 2021-10-08 深圳软牛科技有限公司 Method, device, equipment and storage medium for closing searching my mobile phone function
CN113721773A (en) * 2021-08-27 2021-11-30 高创(苏州)电子有限公司 Input device sharing method and intelligent display device
WO2023142935A1 (en) * 2022-01-28 2023-08-03 华为技术有限公司 Application component management method and related device
CN114884987A (en) * 2022-04-24 2022-08-09 青岛海信医疗设备股份有限公司 Method, device and storage medium for acquiring equipment state information
CN114884987B (en) * 2022-04-24 2024-03-29 青岛海信医疗设备股份有限公司 Method, device and storage medium for acquiring equipment state information
WO2024087960A1 (en) * 2022-10-24 2024-05-02 华为技术有限公司 Search system and method, terminal device, and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111221845A (en) Cross-device information searching method and terminal device
WO2022100239A1 (en) Device cooperation method, apparatus and system, electronic device and storage medium
US20200278949A1 (en) Method and apparatus for viewing previously used file, and terminal
WO2021147406A1 (en) Audio output method and terminal device
KR102481065B1 (en) Application function implementation method and electronic device
EP4102379A1 (en) Data sharing method, electronic device and system
CN111464987B (en) Method for displaying Bluetooth device identification and electronic device
CN111131531B (en) Method and device for generating nickname in chat group and readable storage medium
CN114442969A (en) Inter-device screen cooperation method and device
WO2022028494A1 (en) Multi-device data collaboration method and electronic device
CN114915618B (en) Upgrade package downloading method and device
CN114510186A (en) Cross-device control method and device
CN114741256A (en) Sensor monitoring method and device and terminal equipment
CN114520867B (en) Camera control method based on distributed control and terminal equipment
CN115114607A (en) Sharing authorization method, device and storage medium
CA2843649C (en) Device, system and method for generating data
KR20140003115A (en) Mobile terminal and method for controlling of the same
CN115113832A (en) Cross-device synchronous display control method and system
CN114449686A (en) Wireless network access method and device
CN114513479B (en) Message transmitting and receiving method, device, terminal, server and storage medium
EP4345590A1 (en) Task synchronization system and method, and device
CN114860120A (en) Execution method and device for control operation, storage medium and control
CN115913600A (en) Method, apparatus, electronic device and medium for identifying device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination