State information query method, electronic equipment, communication system and readable storage medium

By establishing channels based on the bus interface in a multi-device environment, cross-device status information is achieved, which solves the problem that users find it difficult to obtain information easily, improves the speed and efficiency of information acquisition, and simplifies user operations.

CN119907140APending Publication Date: 2025-04-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311406136.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In a multi-device environment, it is difficult for users to realize cross-device communication and information acquisition in an easy and convenient manner, and traditional methods increase the complexity and time consumption of user operations.

Method used

By establishing a channel with the second communication device based on the first bus interface, sending a status acquisition request, and receiving status information, information synchronization between different devices is realized.

Benefits of technology

It improves the speed and efficiency of cross-device information acquisition, saves service resources, simplifies user operations, enhances user experience, and has better compatibility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119907140A_ABST
    Figure CN119907140A_ABST
Patent Text Reader

Abstract

The invention provides a state information query method, electronic equipment, a communication system and a readable storage medium, and the method comprises the steps: building a channel with second communication equipment based on a first bus interface; sending a state acquisition request to a second communication device through the channel, wherein the state acquisition request is used for requesting state information of the second communication device; and receiving the state information sent by the second communication equipment through the channel, so that a user can conveniently and quickly acquire the state information of other equipment on any communication equipment, information synchronization among different equipment is realized, the speed and efficiency of cross-equipment information acquisition are effectively improved, service resources are saved, the operation of the user is simplified, and the user experience is improved. And meanwhile, the technical scheme provided by the invention also has better compatibility and expansibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a status information query method, electronic equipment, communication system, and readable storage medium. Background Art

[0002] With the continuous development of wireless communication technology, the number of connected devices continues to increase, and the device combinations available to users in various scenarios are becoming more and more diverse. In this multi-device environment, users are increasingly in need of a convenient way to achieve cross-device communication and information acquisition. Summary of the Invention

[0003] The present application aims to solve one of the technical problems in the related art at least to a certain extent.

[0004] To this end, the following technical solutions are proposed:

[0005] A first aspect of the present application provides a method for querying status information, which is applied to a first communication device and includes:

[0006] Establishing a channel with the second communication device based on the first bus interface;

[0007] sending a status acquisition request to the second communication device through the channel, wherein the status acquisition request is used to request status information of the second communication device;

[0008] The state information sent by the second communication device through the channel is received.

[0009] Optionally, establishing a channel with the second communication device based on the first bus interface includes:

[0010] calling the first bus interface to send a channel establishment request to the second communication device, where the channel establishment request is used to establish the channel with the second communication device;

[0011] In a case where the channel requested to be established is used to obtain status information of the second communication device, the channel is established.

[0012] Optionally, the channel is established based on at least one of the following protocols:

[0013] Wireless Fidelity Wi-Fi;

[0014] Bluetooth Low Energy (BLE);

[0015] Radio frequency communication RFCOMM protocol.

[0016] Optionally, the method further includes:

[0017] The status information and / or the time information of obtaining the status information are stored in a database.

[0018] Optionally, the method further includes:

[0019] querying the database for status information corresponding to the second communication device;

[0020] In response to the presence of status information corresponding to the second communication device in the database, the status information of the second communication device is acquired from the database.

[0021] A second aspect of the present application provides a state information query method, which is applied to a second communication device and includes:

[0022] Establishing a channel with the first communication device based on the first bus interface;

[0023] receiving a status acquisition request sent by the first communication device through the channel, where the status acquisition request is used to request status information of the second communication device;

[0024] The status information is sent to the first communication device through the channel.

[0025] Optionally, establishing a channel with the second communication device based on the first bus interface includes:

[0026] receiving a channel establishment request sent by the first communication device by calling the first bus interface, where the channel establishment request is used to establish the channel with the second communication device;

[0027] In response to determining that the channel requested to be established is for obtaining status information of the second communication device, the channel is established.

[0028] Optionally, the channel is established based on at least one of the following protocols:

[0029] Wireless Fidelity Wi-Fi;

[0030] Bluetooth Low Energy (BLE);

[0031] Radio frequency communication RFCOMM protocol.

[0032] The third embodiment of the present application provides a status information query device, including:

[0033] A processing module, configured to establish a channel with the second communication device based on the first bus interface;

[0034] a sending module, configured to send a status acquisition request to the second communication device through the channel, wherein the status acquisition request is used to request status information of the second communication device;

[0035] A receiving module is configured to receive the status information sent by the second communication device through the channel.

[0036] Optionally, the processing module is specifically configured to:

[0037] calling the first bus interface to send a channel establishment request to the second communication device, where the channel establishment request is used to establish the channel with the second communication device;

[0038] In a case where the channel requested to be established is used to obtain status information of the second communication device, the channel is established.

[0039] Optionally, the channel is established based on at least one of the following protocols:

[0040] Wireless Fidelity Wi-Fi;

[0041] Bluetooth Low Energy (BLE);

[0042] Radio frequency communication RFCOMM protocol.

[0043] Optionally, the device further comprises:

[0044] The storage module is used to store the status information and / or the time information of obtaining the status information in a database.

[0045] Optionally, the device further comprises:

[0046] A query module, configured to query the database for status information corresponding to the second communication device;

[0047] The acquisition module is configured to acquire the status information of the second communication device from the database in response to the presence of status information corresponding to the second communication device in the database.

[0048] The fourth embodiment of the present application provides a status information query device, including:

[0049] A processing module, configured to establish a channel with the first communication device based on the first bus interface;

[0050] A receiving module, configured to receive a status acquisition request sent by the first communication device through the channel, wherein the status acquisition request is used to request status information of the second communication device;

[0051] A sending module is used to send the status information to the first communication device through the channel.

[0052] Optionally, the processing module is specifically configured to:

[0053] receiving a channel establishment request sent by the first communication device by calling the first bus interface, where the channel establishment request is used to establish the channel with the second communication device;

[0054] In response to determining that the channel requested to be established is for obtaining status information of the second communication device, the channel is established.

[0055] Optionally, the channel is established based on at least one of the following protocols:

[0056] Wireless Fidelity Wi-Fi;

[0057] Bluetooth Low Energy (BLE);

[0058] Radio frequency communication RFCOMM protocol.

[0059] The fifth aspect embodiment of the present application proposes an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute the executable instructions stored in the memory to implement the status information query method proposed in the first aspect embodiment of the present application, or to implement the status information query method proposed in the second aspect embodiment of the present application.

[0060] The sixth aspect embodiment of the present application proposes a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to execute the status information query method proposed in the first aspect embodiment of the present application, or execute the status information query method proposed in the second aspect embodiment of the present application.

[0061] The seventh aspect embodiment of the present application proposes a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can execute the status information query method proposed in the first aspect embodiment of the present application, or execute the status information query method proposed in the second aspect embodiment of the present application.

[0062] The technical solution of the present application establishes a channel with the second communication device based on the first bus interface; sends a status acquisition request to the second communication device through the above channel, and the above status acquisition request is used to request the status information of the second communication device; receives the status information sent by the second communication device through the above channel, so that the user can easily and quickly obtain the status information of other devices on any communication device, realize information synchronization between different devices, effectively improve the speed and efficiency of cross-device information acquisition, save service resources, simplify user operations, and enhance user experience. At the same time, the technical solution of the present application also has better compatibility and scalability.

[0063] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0065] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0066] Figure 2 A flow chart of a status information query method provided in an embodiment of the present application;

[0067] Figure 3 A flowchart of another state information query method provided in an embodiment of the present application;

[0068] Figure 4 A flow chart of a status information query method provided in an embodiment of the present application;

[0069] Figure 5A A system framework diagram provided for an embodiment of the present application;

[0070] Figure 5B A timing flow chart of a status information query method provided in an embodiment of the present application;

[0071] Figure 6A A schematic diagram of the structure of a status information query device provided in an embodiment of the present application;

[0072] Figure 6B A schematic diagram of the structure of a status information query device provided in an embodiment of the present application;

[0073] Figure 7 A schematic diagram of the structure of a status information query device provided in an embodiment of the present application;

[0074] Figure 8 This is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0076] In order to better understand the collaborative wake-up method disclosed in the embodiment of the present application, the communication system to which the embodiment of the present application is applicable is first described below.

[0077] See Figure 1 , Figure 1 This is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application. The communication system may include but is not limited to two communication devices, Figure 1 The number and form of the devices shown are for example only and do not constitute a limitation on the embodiments of the present application. In actual applications, more than two communication devices may be included. Figure 1 The communication system shown includes a first communication device 101 and a second communication device 102 as an example.

[0078] In the embodiment of the present application, the first communication device 101 and the second communication device 102 are both entities on the user side that can receive or transmit signals and can process signals, such as a mobile phone. It can be called a terminal device (terminal), user equipment (UE), mobile station (MS), mobile terminal device (MT), etc. It can be a car with communication function, a smart car, a mobile phone (Mobile Phone), a wearable device, a tablet computer (Pad), a TV, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control (Industrial Control), a wireless terminal device in self-driving (Self-Driving), a wireless terminal device in remote medical surgery (Remote Medical Surgery), a wireless terminal device in smart grid (Smart Grid), a wireless terminal device in transportation safety (Transportation Safety), a wireless terminal device in smart city (Smart City), a wireless terminal device in smart home (Smart Home), etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the above-mentioned communication equipment.

[0079] In the embodiments of the present application, as wireless communication technology continues to develop, the number of interconnected devices (such as mobile phones, tablets, computers, wearable devices, smart homes, etc.) continues to increase, and the device combinations available to users in various scenarios are becoming more and more diverse. In this multi-device environment, users are increasingly in need of a convenient way to achieve cross-device communication and information acquisition.

[0080] In some embodiments, users face some inconveniences when using multiple devices. For example, if a user owns a mobile phone, tablet, and computer, and wants to check the battery status of their mobile phone or tablet while working on the computer, the traditional method is to turn on the screen of the mobile phone or tablet, which undoubtedly increases the complexity and time consumption of the user's operation.

[0081] In some embodiments, different devices can synchronize their status through cloud storage. Devices can upload all required status information to the cloud, which is then managed uniformly by the cloud server. However, this may result in excessive device performance consumption and high server maintenance costs.

[0082] In some embodiments, the above requirements can be achieved through customized equipment, but the scalability is poor, it is not compatible with old equipment, and the customization cost is high.

[0083] The following describes in detail the state information query method, electronic device, and computer-readable storage medium according to the embodiments of the present application with reference to the accompanying drawings.

[0084] Figure 2 This is a flow chart of a state information query method provided in an embodiment of the present application. It should be noted that the method is applied to the first communication device. Figure 2 As shown, the status information query method may include the following steps:

[0085] Step 201: Establish a channel with a second communication device based on a first bus interface.

[0086] In some embodiments, the number of the second communication device may be one or more.

[0087] In some embodiments, the first communication device sends a channel establishment request to the second communication device by calling the first bus interface, and establishes the channel when the channel established in the channel establishment request is used to obtain status information of the second communication device.

[0088] Optionally, the establishment of the above-mentioned channel can be based on at least one of the following protocols: Wireless Fidelity (Wi-Fi); Bluetooth Low Energy (BLE); Radio Frequency Communication (RFCOMM) protocol.

[0089] Step 202: Send a status acquisition request to the second communication device through the above channel, where the above status acquisition request is used to request status information of the second communication device.

[0090] In some embodiments, the first communication device sends a status acquisition request to the second communication device through the above channel.

[0091] In some embodiments, the status acquisition request is used to request to obtain status information of the second communication device.

[0092] In some embodiments, the status information of the second communication device may include at least one of the following: power information; charging status information; system version information; network status information; current application status information, and the like.

[0093] Optionally, the status acquisition request may include an indication of requested status information, etc. For example, the status acquisition request may include an indication of requesting to obtain power information, an indication of requesting to obtain charging status information, an indication of requesting to obtain system version information, etc.

[0094] Step 203: Receive the status information sent by the second communication device through the channel.

[0095] In some embodiments, the first communication device receives the status information sent by the second communication device based on the above-mentioned status acquisition request, and the above-mentioned status information can be transmitted through the above-mentioned channel.

[0096] In some embodiments, the first communication device stores the received status information in a database.

[0097] In some embodiments, the first communication device stores the status information and the time information of obtaining the status information in a database.

[0098] In some embodiments, the first communication device stores the time information of acquiring the above-mentioned status information in a database.

[0099] In some embodiments, if the first communication device has already obtained the status information of the second communication device, and the currently obtained status information of the second communication device is updated, an overwriting storage method can be used, that is, the updated status information of the second communication device overwrites the previous status information.

[0100] In some embodiments, before the first communication device sends a status acquisition request to the second communication device, it may first query the database for status information corresponding to the second communication device.

[0101] Optionally, in response to the existence of status information corresponding to the second communication device in the database, the status information corresponding to the second communication device is acquired from the database.

[0102] Optionally, in response to the absence of status information corresponding to the second communication device in the database, the first communication device sends a status acquisition request to the second communication device.

[0103] Optionally, in response to the presence of status information corresponding to the second communication device in the database and the time for acquiring the status information exceeds a preset threshold, the first communication device sends a status acquisition request to the second communication device.

[0104] It is understandable that in some of the above embodiments, the first communication device can give priority to using the cached status information and then request the status information, so that the user can be unaware of the status changes when obtaining the status. At the same time, it also improves the stability and robustness of information synchronization, and can solve the problem of information synchronization failure caused by communication failure due to network or Bluetooth fluctuations in cross-device communication.

[0105] The status information query method of the embodiment of the present application establishes a channel with the second communication device based on the first bus interface; sends a status acquisition request to the second communication device through the above channel, and the above status acquisition request is used to request the status information of the second communication device; receives the status information sent by the second communication device through the above channel, so that the user can easily and quickly obtain the status information of other devices on any communication device, realize information synchronization between different devices, effectively improve the speed and efficiency of cross-device information acquisition, save service resources, simplify user operations, and enhance user experience. At the same time, the technical solution of the present application also has better compatibility and scalability.

[0106] Figure 3 This is a flow chart of another state information query method provided in an embodiment of the present application. It should be noted that the method is applied to the first communication device. Figure 3 As shown, the status information query method may include the following steps:

[0107] Step 301: Call the first bus interface to send a channel establishment request to the second communication device, where the channel establishment request is used to establish a channel with the second communication device.

[0108] In some embodiments, the number of the second communication device may be one or more.

[0109] In some embodiments, the first communication device sends a channel establishment request to the second communication device by calling the first bus interface, where the channel establishment request is used to establish a channel with the second communication device.

[0110] In some embodiments, the first bus interface may be a soft bus interface.

[0111] Step 302: If the channel requested to be established is used to obtain status information of the second communication device, establish the channel.

[0112] In some embodiments, when the channel requested to be established is used to obtain status information of the second communication device, the second communication device agrees to the channel establishment request and establishes the channel.

[0113] Optionally, the establishment of the above-mentioned channel can be based on at least one of the following protocols: Wireless Fidelity Wi-Fi; Low-power Bluetooth BLE; Radio Frequency Communication (RFCOMM) protocol.

[0114] Step 303: Query the database for status information corresponding to the second communication device.

[0115] In some embodiments, the first communications device can store the received status information in a database.

[0116] In some embodiments, the first communication device can preferentially query the database for status information corresponding to the second communication device.

[0117] In some embodiments, the status information of the second communication device may include at least one of the following: power information; charging status information; system version information; network status information; current application status information, and the like.

[0118] Step 304: In response to the presence of status information corresponding to the second communication device in the database, the status information of the second communication device is obtained from the database.

[0119] In some embodiments, the status information corresponding to the second communication device exists in the database, and the first communication device can directly obtain the status information of the second communication device from the database.

[0120] Step 305: In response to the absence of status information corresponding to the second communication device in the database, a status acquisition request is sent to the second communication device through the channel, where the status acquisition request is used to request status information of the second communication device.

[0121] In some embodiments, the first communication device sends a status acquisition request to the second communication device through the above channel.

[0122] In some embodiments, the status acquisition request is used to request to obtain status information of the second communication device.

[0123] Optionally, the status acquisition request may include an indication of requested status information, etc. For example, the status acquisition request may include an indication of requesting to obtain power information, an indication of requesting to obtain charging status information, an indication of requesting to obtain system version information, etc.

[0124] Step 306: Receive the status information sent by the second communication device through the channel.

[0125] In some embodiments, the first communication device receives the status information sent by the second communication device based on the above-mentioned status acquisition request, and the above-mentioned status information can be transmitted through the above-mentioned channel.

[0126] Step 307: Store the above-mentioned status information and / or the time information of obtaining the above-mentioned status information in a database.

[0127] In some embodiments, the first communication device stores the received status information in a database.

[0128] In some embodiments, the first communication device stores the status information and the time information of obtaining the status information in a database.

[0129] In some embodiments, the first communication device stores the time information of acquiring the above-mentioned status information in a database.

[0130] The status information query method of the embodiment of the present application sends a channel establishment request to the second communication device by calling the first bus interface, the channel establishment request is used to establish a channel with the second communication device. When the channel requested to be established is used to obtain status information of the second communication device, the channel is established, and the status information corresponding to the second communication device is queried in the database. In response to the presence of status information corresponding to the second communication device in the database, the status information of the second communication device is obtained from the database. In response to the absence of status information corresponding to the second communication device in the database, a status acquisition request is sent to the second communication device through the channel, the status acquisition request is used to request the status information of the second communication device, the status information sent by the second communication device through the channel is received, and the status information and / or the time information of the status information being obtained is stored in the database, so that a user can conveniently and quickly obtain the status information of other devices on any communication device, realize information synchronization between different devices, effectively improve the speed and efficiency of cross-device information acquisition, save service resources, simplify user operations, and enhance user experience. At the same time, the technical solution of the present application also has better compatibility and scalability.

[0131] Figure 4This is a flow chart of a state information query method provided in an embodiment of the present application. It should be noted that the method is applied to the second communication device. Figure 4 As shown, the status information query method may include the following steps:

[0132] Step 401: Establish a channel with a first communication device based on a first bus interface.

[0133] In some embodiments, the number of the second communication device may be one or more.

[0134] In some embodiments, the second communication device receives a channel establishment request sent by the first communication device via the first bus interface, wherein the channel establishment request is used to establish a channel with the second communication device. In response to determining that the channel establishment requested by the first communication device is for obtaining status information of the second communication device, the channel is established.

[0135] Optionally, the establishment of the above-mentioned channel may be based on at least one of the following protocols: Wireless Fidelity Wi-Fi; Bluetooth Low Energy BLE; Radio Frequency Communication RFCOMM protocol.

[0136] Step 402: Receive a status acquisition request sent by the first communication device through the above channel, where the above status acquisition request is used to request status information of the second communication device.

[0137] In some embodiments, the second communication device receives a status acquisition request sent by the first communication device through the above channel.

[0138] In some embodiments, the status acquisition request is used to request to obtain status information of the second communication device.

[0139] In some embodiments, the status information of the second communication device may include at least one of the following: power information; charging status information; system version information; network status information; current application status information, and the like.

[0140] Optionally, the status acquisition request may include an indication of requested status information, etc. For example, the status acquisition request may include an indication of requesting to obtain power information, an indication of requesting to obtain charging status information, an indication of requesting to obtain system version information, etc.

[0141] Step 403: Send the above-mentioned status information to the first communication device through the above-mentioned channel.

[0142] In some embodiments, the second communication device sends the above-mentioned status information to the first communication device, and the above-mentioned status information can be transmitted through the above-mentioned channel.

[0143] The status information query method of the embodiment of the present application establishes a channel with the first communication device based on the first bus interface; receives a status acquisition request sent by the first communication device through the above channel, and the above status acquisition request is used to request status information of the second communication device; sends the above status information to the first communication device through the above channel, so that the user can easily and quickly obtain the status information of other devices on any communication device, realize information synchronization between different devices, effectively improve the speed and efficiency of cross-device information acquisition, save service resources, simplify user operations, and enhance user experience. At the same time, the technical solution of the present application also has better compatibility and scalability.

[0144] See Figures 5A-5B , the following is an exemplary introduction to the methods described in the above embodiments.

[0145] Figure 5A This is a system framework diagram provided by an embodiment of the present application, such as Figure 5A As shown, the caller of the first communication device calls the client interface, and the client uses the interconnection soft bus to establish a channel with the second communication device, and uses the channel to obtain the status information of the second communication device. After the client of the first communication device receives the status information transmitted by the second communication device, it reports it to the caller. At this point, the caller can obtain the status of the other device.

[0146] Figure 5B This is a timing flow chart of a status information query method provided by an embodiment of the present application, such as Figure 5B As shown, the status information query method includes the following steps:

[0147] 1. The first communication device client service listens for channel information (registerChannelListener) by binding (bindService) the first communication device server to call the interface.

[0148] 2. When the first communication device receives the synchronization device information request (syncDeviceProfile) from the upper layer, it calls the channel creation interface (createChannel) to establish a channel with the second communication device.

[0149] 3. The second communication device server will be pulled up by the soft bus through the system broadcast, and after receiving the channel establishment request from the first communication device, the second communication device will determine whether it is an establishment request from the device status service (DeviceProfileManagerService). If so, it will call to agree to the establishment.

[0150] 4. The first communication device receives the report of successful channel establishment of the soft bus and sends a string of bytes containing the status to be queried. After receiving the bytes, the second communication device parses the bytes and packages the data it wants and returns it; the first communication device receives the above status information, reports it to the caller of the first communication device, and updates the data cache of the first communication device.

[0151] In order to implement the above embodiment, the present application also proposes a status information query device.

[0152] Figure 6A A schematic diagram of the structure of a status information query device provided in an embodiment of the present application.

[0153] like Figure 6A As shown, the status information query device includes: a processing module 610, a sending module 620 and a receiving module 630.

[0154] The processing module 610 is configured to establish a channel with the second communication device based on the first bus interface;

[0155] A sending module 620 is configured to send a status acquisition request to the second communication device through the channel, where the status acquisition request is used to request status information of the second communication device;

[0156] The receiving module 630 is configured to receive the status information sent by the second communication device through the channel.

[0157] Optionally, the processing module 610 is specifically configured to:

[0158] Invoking the first bus interface to send a channel establishment request to the second communication device, where the channel establishment request is used to establish the channel with the second communication device;

[0159] In a case where the channel requested to be established is used to obtain status information of the second communication device, the channel is established.

[0160] Optionally, the channel is established based on at least one of the following protocols:

[0161] Wireless Fidelity Wi-Fi;

[0162] Bluetooth Low Energy (BLE);

[0163] Radio frequency communication RFCOMM protocol.

[0164] Alternatively, as Figure 6B As shown, the device also includes:

[0165] The storage module 640 is configured to store the status information and / or the time information of obtaining the status information in a database.

[0166] Alternatively, as Figure 6B As shown, the device also includes:

[0167] A query module 650 is configured to query the database for status information corresponding to the second communication device;

[0168] The acquisition module 660 is configured to acquire the status information of the second communication device from the database in response to the presence of the status information corresponding to the second communication device in the database.

[0169] The status information query device of the embodiment of the present application establishes a channel with the second communication device based on the first bus interface; sends a status acquisition request to the second communication device through the above channel, and the above status acquisition request is used to request the status information of the second communication device; receives the status information sent by the second communication device through the above channel, so that the user can easily and quickly obtain the status information of other devices on any communication device, realize information synchronization between different devices, effectively improve the speed and efficiency of cross-device information acquisition, save service resources, simplify user operations, and enhance user experience. At the same time, the technical solution of the present application also has better compatibility and scalability.

[0170] Figure 7 A schematic diagram of the structure of another status information query device provided in an embodiment of the present application.

[0171] like Figure 7 As shown, the status information query device includes: a processing module 710, a receiving module 720 and a sending module 730.

[0172] The processing module 710 is configured to establish a channel with the first communication device based on the first bus interface;

[0173] A receiving module 720 is configured to receive a status acquisition request sent by the first communication device through the channel, where the status acquisition request is used to request status information of the second communication device;

[0174] The sending module 730 is configured to send the status information to the first communication device through the channel.

[0175] Optionally, the processing module 710 is specifically configured to:

[0176] receiving a channel establishment request sent by the first communication device by calling the first bus interface, where the channel establishment request is used to establish the channel with the second communication device;

[0177] In response to determining that the channel requested to be established is for obtaining status information of the second communication device, the channel is established.

[0178] Optionally, the channel is established based on at least one of the following protocols:

[0179] Wireless Fidelity Wi-Fi;

[0180] Bluetooth Low Energy (BLE);

[0181] Radio frequency communication RFCOMM protocol.

[0182] The status information query device of the embodiment of the present application establishes a channel with the first communication device based on the first bus interface; receives a status acquisition request sent by the first communication device through the above channel, and the above status acquisition request is used to request status information of the second communication device; sends the above status information to the first communication device through the above channel, so that the user can easily and quickly obtain the status information of other devices on any communication device, realize information synchronization between different devices, effectively improve the speed and efficiency of cross-device information acquisition, save service resources, simplify user operations, and enhance user experience. At the same time, the technical solution of the present application also has better compatibility and scalability.

[0183] It should be noted that the above explanations of the embodiment of the status information query method are also applicable to the status information query device of this embodiment, and will not be repeated here.

[0184] In order to implement the above embodiment, the present application also proposes an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute the executable instructions stored in the memory to implement the above Figure 2-Figure 3 The state information query method proposed in the embodiment, or the implementation of the aforementioned Figure 4 The state information query method proposed in the embodiment.

[0185] In order to implement the above embodiment, the present application also proposes a non-transitory computer-readable storage medium, which, when the instructions in the storage medium are executed by the processor of the electronic device, enables the electronic device to perform the above Figure 2-Figure 3 The state information query method proposed in the embodiment, or executing the aforementioned Figure 4 The state information query method proposed in the embodiment.

[0186] In order to implement the above embodiments, the present application also provides a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to perform the above Figure 2-Figure 3 The state information query method proposed in the embodiment, or executing the aforementioned Figure 4 The state information query method proposed in the embodiment.

[0187] Figure 88 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0188] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0189] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

[0190] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0191] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0192] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0193] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0194] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0195] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect changes in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and temperature changes of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0196] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 8G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0197] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0198] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0199] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.

[0200] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0201] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.

[0202] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.

[0203] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0204] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0205] In addition, the functional units in the various embodiments of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into a module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0206] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.

Claims

1. A method for querying status information, characterized in that: The method is applied to a first communication device, and the method includes: Establishing a channel with a second communication device based on the first bus interface; Sending a status acquisition request to the second communication device through the channel, wherein the status acquisition request is used to request status information of the second communication device; The state information sent by the second communication device through the channel is received.

2. The method according to claim 1, characterized in that The establishing a channel with the second communication device based on the first bus interface includes: Calling the first bus interface to send a channel establishment request to the second communication device, where the channel establishment request is used to establish the channel with the second communication device; In a case where the channel requested to be established is used to obtain the status information of the second communication device, the channel is established.

3. The method according to claim 2, characterized in that The channel is established based on at least one of the following protocols: Wireless Fidelity Wi-Fi; Bluetooth low energy BLE; Radio frequency communication RFCOMM protocol.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The state information and / or time information of obtaining the state information are stored in a database.

5. The method according to claim 4, characterized in that The method further comprises: Querying the database for status information corresponding to the second communication device; In response to the existence of status information corresponding to the second communication device in the database, the status information of the second communication device is acquired from the database.

6. A method for querying status information, characterized in that: The method is applied to a second communication device, and the method includes: Establishing a channel with a first communication device based on a first bus interface; receiving a status acquisition request sent by the first communication device through the channel, wherein the status acquisition request is used to request status information of the second communication device; The status information is sent to the first communication device through the channel.

7. The method according to claim 6, characterized in that The establishing a channel with the second communication device based on the first bus interface includes: receiving a channel establishment request sent by the first communication device calling the first bus interface, wherein the channel establishment request is used to establish the channel with the second communication device; In response to determining that the channel requested to be established is for obtaining the status information of the second communication device, the channel is established.

8. The method according to claim 7, characterized in that The channel is established based on at least one of the following protocols: Wireless Fidelity Wi-Fi; Bluetooth low energy BLE; Radio frequency communication RFCOMM protocol.

9. A status information query device, characterized in that: The device comprises: A processing module, configured to establish a channel with a second communication device based on the first bus interface; a sending module, configured to send a status acquisition request to the second communication device through the channel, wherein the status acquisition request is used to request status information of the second communication device; A receiving module is used to receive the status information sent by the second communication device through the channel.

10. The device according to claim 9, characterized in that The processing module is specifically used for: Calling the first bus interface to send a channel establishment request to the second communication device, where the channel establishment request is used to establish the channel with the second communication device; In a case where the channel requested to be established is used to obtain the status information of the second communication device, the channel is established.

11. The device according to claim 10, characterized in that The channel is established based on at least one of the following protocols: Wireless Fidelity Wi-Fi; Bluetooth low energy BLE; Radio frequency communication RFCOMM protocol.

12. The device according to any one of claims 9 to 11, characterized in that: The device also includes: The storage module is used to store the state information and / or the time information of obtaining the state information in a database.

13. The device according to claim 12, characterized in that The device also includes: A query module, used to query the database for status information corresponding to the second communication device; The acquisition module is used to acquire the status information of the second communication device from the database in response to the presence of the status information corresponding to the second communication device in the database.

14. A status information query device, characterized in that: The device comprises: A processing module, configured to establish a channel with a first communication device based on a first bus interface; A receiving module, configured to receive a status acquisition request sent by the first communication device through the channel, wherein the status acquisition request is used to request status information of the second communication device; A sending module is used to send the status information to the first communication device through the channel.

15. The device according to claim 14, characterized in that The processing module is specifically used for: receiving a channel establishment request sent by the first communication device calling the first bus interface, wherein the channel establishment request is used to establish the channel with the second communication device; In response to determining that the channel requested to be established is for obtaining the status information of the second communication device, the channel is established.

16. The device according to claim 15, characterized in that The channel is established based on at least one of the following protocols: Wireless Fidelity Wi-Fi; Bluetooth low energy BLE; Radio frequency communication RFCOMM protocol.

17. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to call and execute the executable instructions stored in the memory to implement the method according to any one of claims 1 to 5, or to implement the method according to any one of claims 6 to 8.

18. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 5, or execute the method as claimed in any one of claims 6 to 8.