CN114501449A - Information query method and device, electronic equipment and storage medium - Google Patents

Information query method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114501449A
CN114501449A CN202210108112.3A CN202210108112A CN114501449A CN 114501449 A CN114501449 A CN 114501449A CN 202210108112 A CN202210108112 A CN 202210108112A CN 114501449 A CN114501449 A CN 114501449A
Authority
CN
China
Prior art keywords
service
information
query
electronic device
equipment
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.)
Granted
Application number
CN202210108112.3A
Other languages
Chinese (zh)
Other versions
CN114501449B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210108112.3A priority Critical patent/CN114501449B/en
Publication of CN114501449A publication Critical patent/CN114501449A/en
Application granted granted Critical
Publication of CN114501449B publication Critical patent/CN114501449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • 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/245Query processing
    • G06F16/2455Query execution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses an information query method, an information query device, electronic equipment and a storage medium, which are used for performing query request and query response type interaction, ensuring extremely low power consumption and simultaneously completing query and response of basic service information of the electronic equipment, thereby bearing various abundant service interconnection of an upper layer. The method is applied to first electronic equipment and comprises the following steps: responding to the service interconnection request to generate a query request, wherein the query request carries first equipment information, first service information and service parameters of first electronic equipment; sending a query request, wherein the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters; receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device.

Description

Information query method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for querying information, an electronic device, and a storage medium.
Background
After determining to respond to the inquiry request message of the first equipment, the second equipment sends the public key derivative value of the second equipment to the first equipment, the first equipment verifies whether the public key derivative value is matched with the acquired matched public key information, and when the public key derivative value is matched with the acquired matched public key information, the first equipment communicates with the second equipment; or the first device sends the public key derivative value of the second device to the second device, the second device determines to respond to the first device according to the public key derivative value, and then the first device communicates with the second device; therefore, the first device and the second device are successfully configured subsequently, and failure of the subsequent configuration process caused by the first device obtaining the wrong public key of the second device is avoided. The scheme solves the problem of improving the successful configuration probability of the first device and the second device. However, there is currently no good solution for how to respond to and complete a service connection on a second device for a service currently running on a first device.
Disclosure of Invention
The embodiment of the application provides an information query method, an information query device, electronic equipment and a storage medium, which are used for performing query request and query response type interaction, and completing query and response of basic service information of the electronic equipment while ensuring extremely low power consumption, so that various abundant service interconnections on an upper layer are borne.
The first aspect of the present application provides an information query method, where the method is applied to a first electronic device, and the method may include:
responding to a service interconnection request to generate a query request, wherein the query request carries first equipment information, first service information and service parameters of the first electronic equipment;
sending the query request, wherein the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters;
receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device.
A second aspect of the present application provides a method for information query, where the method is used for a second electronic device, and the method may include:
receiving a query request, wherein the query request carries first equipment information, first service information and service parameters of first electronic equipment;
generating a query response according to the query request, wherein the query response comprises second equipment information and second service information of second electronic equipment, and the second service information is matched with the first service information and the service parameters;
and sending the query response, wherein the second device information and the second service information are used for establishing service interconnection of the first electronic device and the second electronic device.
A third aspect of the present application provides an apparatus for querying information, where the apparatus is applied to a first electronic device, and the apparatus includes:
the processing module is used for responding to a service interconnection request to generate a query request, wherein the query request carries first equipment information, first service information and service parameters of the first electronic equipment;
the receiving and sending module is used for sending the query request, and the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters; receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device.
A fourth aspect of the present application provides an apparatus for querying information, where the apparatus is applied to a first electronic device, and the apparatus includes:
the system comprises a receiving and sending module, a processing module and a processing module, wherein the receiving and sending module is used for receiving a query request, and the query request carries first equipment information, first service information and service parameters of first electronic equipment;
the processing module is used for generating a query response according to the query request, wherein the query response comprises second equipment information and second service information of second electronic equipment, and the second service information is matched with the first service information and the service parameters;
the transceiver module is configured to send the query response, and the second device information and the second service information are used to establish service interconnection between the first electronic device and the second electronic device.
A fifth aspect of the present application provides an electronic device, which may include:
a memory storing executable program code;
a processor and transceiver coupled with the memory;
the processor and the transceiver are configured to perform the method according to the first aspect or the second aspect of the present application.
Yet another aspect of embodiments of the present application provides a computer-readable storage medium comprising instructions that, when executed on a processor, cause the processor to perform the method of the first or second aspect of the present application.
In yet another aspect, embodiments of the present application disclose a computer program product, which when run on a computer, causes the computer to perform the method of the first or second aspect of the present application.
In yet another aspect, an application publishing platform is disclosed, which is configured to publish a computer program product, wherein when the computer program product runs on a computer, the computer is caused to perform the method of the first aspect or the second aspect of the present application.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, a query request is generated in response to a service interconnection request, and the query request carries first device information, first service information and service parameters of the first electronic device; sending the query request, wherein the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters; receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device. By carrying out query request and query response type interaction, the query and response of basic service information of the electronic equipment are completed while the minimum power consumption is ensured, so that various abundant service interconnections of an upper layer are borne.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained according to the drawings.
FIG. 1 is a diagram of an embodiment of a method for querying information in an embodiment of the present application;
FIG. 2A is a diagram illustrating a query flow for defining a service according to an embodiment of the present disclosure;
FIG. 2B is a diagram illustrating an embodiment of the present invention relating to defining a query response;
FIG. 3 is a schematic diagram of another embodiment of a method for querying information in an embodiment of the present application;
FIG. 4A is a schematic diagram of a service registration definition in the present application;
FIG. 4B is a flow chart illustrating a service query in an embodiment of the present application;
FIG. 5 is a schematic diagram of an embodiment of an electronic device in an embodiment of the present application;
FIG. 6 is a schematic diagram of another embodiment of an electronic device in the embodiment of the present application;
fig. 7 is a schematic diagram of another embodiment of an electronic device in the embodiment of the present application.
Detailed Description
The embodiment of the application provides an information query method, an information query device, electronic equipment and a storage medium, which are used for performing query request and query response type interaction, and completing query and response of basic service information of the electronic equipment while ensuring extremely low power consumption, so that various abundant service interconnections on an upper layer are borne.
For a person skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. The embodiments in the present application shall fall within the protection scope of the present application.
In an existing implementation manner, a first device sends an inquiry request message to a second device, where the inquiry request message includes service information to be inquired by the first device, so that the second device determines whether to respond to the inquiry request message according to the service information; the first equipment receives a query response message, wherein the query response message is sent after the second equipment determines to respond to the query request message, and the query response message contains a public key derivative value of the second equipment; the first equipment acquires the information of the matched public key; and after verifying that the matching public key information is matched with the public key derivative value, the first equipment sends communication information to the second equipment to communicate with the second equipment. Therefore, in the prior art, after the second device determines to respond to the query request message of the first device, the second device sends the public key derivative value of the second device to the first device, the first device verifies whether the public key derivative value is matched with the acquired matching public key information, and only after the public key derivative value is matched with the acquired matching public key information, the first device communicates with the second device, so that the success of subsequent configuration of the first device and the second device is ensured, and the failure of subsequent configuration process caused by the fact that the first device acquires a wrong public key of the second device is avoided.
In an existing implementation manner, a first device sends an inquiry request message to a second device, where the inquiry request message includes service information to be inquired by the first device and a public key derivative value of the second device, so that the second device determines whether to respond to the inquiry request message according to the service information and the public key derivative value; the first equipment receives a query response message, and the query response message is sent after the second equipment determines to respond to the query request message; and the first equipment sends communication information to the second equipment to communicate with the second equipment. Therefore, in the prior art, the first device sends the public key derivative value of the second device to the second device, the second device responds to the first device according to the determination, and then the first device communicates with the second device, so that failure of a subsequent configuration process caused by the fact that the first device obtains an incorrect public key of the second device is avoided.
In an existing implementation manner, a bluetooth connection method, device, and system are provided, which relate to the technical field of wireless communication, and enable a bluetooth headset to automatically switch and process audio services of a plurality of electronic devices through virtual connection, and reduce power consumption of the bluetooth headset and the electronic devices. The scheme is as follows: the communication system comprises a Bluetooth headset, a first electronic device and a second electronic device which are paired with the Bluetooth headset; the bluetooth headset is configured to establish a first connection with a first electronic device, the first connection including an Access Control List (ACL) connection; the first electronic device is configured to display connected information of the bluetooth headset after establishing a first connection with the bluetooth headset; the bluetooth headset is further configured to transmit a Bluetooth Low Energy (BLE) broadcast message; the second electronic device is configured to establish a second connection with the bluetooth headset after receiving the BLE broadcast message, and display connected information of the bluetooth headset on the interface.
However, there is no good solution for the service currently running on the first device to continue running on another device.
In the embodiment of the application, the electronic device may be a terminal device, and the terminal device may be deployed on land, including indoors or outdoors, hand-held, worn or vehicle-mounted; can also be deployed on the water surface (such as a ship and the like); and may also be deployed in the air (e.g., airplanes, balloons, satellites, etc.).
In the embodiment of the present application, the terminal device includes a wireless device or a wired device. The wireless device may be a Mobile Phone (Mobile Phone), a tablet computer (Pad), a computer with a wireless transceiving 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 automatic driving, a wireless terminal device in remote medical (remote medical), 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), or the like.
By way of example and not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable equipment can also be called wearable intelligent equipment, is the general term of applying wearable technique to carry out intelligent design, develop the equipment that can dress to daily wearing, like glasses, gloves, wrist-watch, dress and shoes etc.. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable smart device includes full functionality, large size, and can implement full or partial functionality without relying on a smart phone, such as: smart watches or smart glasses and the like, and only focus on a certain type of application functions, and need to be used in cooperation with other devices such as smart phones, such as various smart bracelets for physical sign monitoring, smart jewelry and the like.
The following further describes the technical solution of the present application by way of an embodiment, as shown in fig. 1, a schematic diagram of an embodiment of a method for querying information in the embodiment of the present application may include:
101. and generating a query request in response to the service interconnection request.
The first electronic device responds to a service interconnection request to generate a query request, wherein the query request carries first device information, first service information and service parameters of the first electronic device.
Optionally, the generating, by the first electronic device, the query request in response to the service interconnection request may include:
when a service scene occurs, the first electronic device responds to the operation of service interconnection initiated by a user and generates a query request. The occurrence of a service scenario refers to triggering when a service requiring a service query occurs. In an alternative manner, to avoid unnecessary consumption of resources such as power and memory on the electronic device, the service query is triggered only when a service scenario occurs. Alternatively, the first and second electrodes may be,
the first electronic device may generate the query request in response to a user initiating a service interconnection operation when the service is registered. Alternatively, the first and second electrodes may be,
the first electronic device generates a query request when executing a service in a case where the service is registered.
Optionally, step 101 may also be replaced by generating, by the first electronic device, the query request in real time under the condition of executing the service. Optionally, when the first electronic device executes the service, the first electronic device may also generate the query request in real time under the condition that the service query power consumption is smaller than the preset threshold. Optionally, the first electronic device generates the query request in real time when the remaining power is greater than the power threshold and/or the remaining memory is greater than the memory threshold.
Optionally, the service interconnection may include: video connection, screen projection of terminal equipment, music connection, mail relay, document relay, navigation relay, or virtual expansion of hardware capability of electronic equipment, navigation relay, or virtual camera relay.
The virtual expansion of the hardware capability of the electronic equipment can comprise virtual camera relay, virtual keyboard relay, virtual mouse relay and the like. The screen projection of the terminal equipment can comprise video screen projection, PPT sharing relay, document relay and the like.
102. And sending a query request, wherein the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters.
Optionally, the first electronic device sends an inquiry request to the second electronic device, and the second electronic device receives the inquiry request sent by the first electronic device.
Optionally, the sending, by the first electronic device, the query request to the second electronic device may include: the first electronic device sends a query request to the second electronic device through a data query protocol.
Optionally, the receiving, by the second electronic device, the query request sent by the first electronic device may include: and the second electronic equipment receives the query request sent by the first electronic equipment through a data query protocol.
Optionally, the receiving, by the second electronic device, the query request sent by the first electronic device may include: the second electronic device receives the query request sent by the first electronic device through the plurality of service modules.
Optionally, the scenario applied in the present application includes a near field communication scenario.
Optionally, the first electronic device may send the query request to the second electronic device in a broadcast, multicast or unicast manner.
Optionally, the service parameter is a parameter related to a service in a service query process. Including the service module identification of the service inquiry, the service name of the inquiry, the service capability of the inquiry and the like.
It will be appreciated that for the service query this flow, the initially defined content may include: and information such as query scene definition, query mode element definition, result filtering condition definition and the like. Fig. 2A is a schematic diagram of a process for defining a service query according to an embodiment of the present application. They are explained below:
(1) query scenario definition
The query scenario definition is to define a scenario satisfying a service query condition, and the related elements may include conditions such as service query starting, hardware switch starting, and service scenario occurrence. The following are described separately:
whether the service inquiry switch is turned on or not is composed of a dynamic configuration item, a setting page switch and the like. The dynamic configuration item can be updated through cloud configuration pushing, and the default is set to be on; the set page switch is operable by a user to turn on and off. The purpose of setting the service inquiry switch is to improve user experience and reduce power consumption and memory consumption of related applications.
The hardware switch refers to a switch corresponding to a hardware card board on which the service inquiry depends. A service inquiry mode based on Bluetooth (BT)/Low Energy (BLE) broadcasting or connection depends on the Bluetooth switch to be turned on; the service inquiry mode based on the Ethernet, the broadcast service and the multicast service inquiry mode depend on the opening of a Wireless Fidelity (WiFi) switch and the like.
The occurrence of a service scenario refers to triggering when a service requiring a service query occurs. To avoid unnecessary consumption of resources such as power, memory, etc. on the electronic device, the service query may be triggered when needed in a business scenario.
(2) Query style element definition
The query mode elements comprise contents such as a data communication protocol, a data query protocol, service parameters and the like. The following are described separately:
the data communication protocol refers to a data interaction protocol of a query request and a query response, and comprises field definition, field coding, field arrangement sequence, byte number occupation definition of byte codes, network data transmission serialization and deserialization method definition and the like of data transmission. The method and the system can support services including video connection, mobile phone screen projection, audio connection and the like, and can collect and manage related services.
The data query protocol refers to which protocol channel the service query is interacted, namely which protocol is used for carrying the query request and the query response. The supportable data query protocol comprises BLE, Ethernet, Internet of things and other communication channels, and one of the BLE, Ethernet, Internet of things and the like can be appointed to be used when the service query is used. The method is mainly applied to BLE and WiFi communication modes among near field devices, and more Internet of Things (IoT) protocols can be used, such as COAP (the Constrained Application protocol) and Message Queue Telemetry Transport (MQTT) protocols.
The service parameter refers to a parameter directly related to a service in a service query process, and includes contents such as a service Identifier (ID) of the service query, a name of the service query, and a service capability of the query.
(3) Result filtering condition definition
The result filtering condition definition refers to that when the service query is performed, a filtering condition for the query result needs to be set, the first electronic device mainly concerns the electronic devices meeting the condition of the first electronic device, and the filtering condition may include key elements such as a communication protocol, a device type, and a service capability.
Optionally, the receiving, by the second electronic device, the query request sent by the first electronic device may include: and the second electronic equipment receives the query request sent by the first electronic equipment in real time.
103. And generating a query response according to the query request, wherein the query response comprises second equipment information and second service information of second electronic equipment, and the second service information is matched with the first service information and the service parameters.
Optionally, the generating, by the second electronic device, a query response according to the query request may include: and the second electronic equipment generates an inquiry response under the condition that the inquiry request is matched with the service information of the second electronic equipment.
Optionally, the second service information includes at least one of a service capability, a service identifier, a module corresponding to the service, and an authorization manner of the service.
Optionally, the service module is a service module or an application program having a function of invoking a certain type. Illustratively, a service module with a certain type of function is a module with a video playback function, or a context-aware module.
Optionally, the query response is a query response sent by a server or the second electronic device, where the server includes service information of each electronic device.
It will be appreciated that the query response is the response to the query request by the device that received the service query, i.e. the second electronic device or the server. The query response mainly comprises the contents of query data analysis, local service matching, response data transmission and the like. Fig. 2B is a schematic diagram of defining a query response in the embodiment of the present application. The following are separately described:
(1) the query data analysis is to analyze the query request according to a communication protocol to obtain information such as a query service identifier, service capability, equipment type and the like.
(2) The local service matching is to match the analyzed query request with the service information of the electronic device or the server, and when the electronic device or the server is matched with the conditions in the query request, the query request is responded.
(3) The response data comprises equipment information, service identification, service capability and the like of the inquired electronic equipment.
104. And sending the query response to the first electronic equipment, wherein the query response is used for service interconnection of the first electronic equipment.
And the first electronic equipment receives the inquiry response sent by the second electronic equipment.
Optionally, the sending, by the second electronic device, the query response to the first electronic device may include: and the second electronic equipment sends the query response to the first electronic equipment through a data query protocol.
It can be understood that, after encapsulating the response data according to the service query data interaction protocol, the service query receiver selects the data interaction channel and the data query protocol which are the same as the query request, and sends the query response.
And service inquiry can be made by means of cloud service and more communication protocols in the internet connection state. For example, after each electronic device is connected to the internet, the electronic device uploads its own service information to the cloud service, so that other electronic devices can query the cloud server. Therefore, if the second electronic device is a server, the first electronic device queries the service information of the second electronic device through the server. The first electronic device may interact with the second electronic device first, and the device information of the second electronic device is obtained through inquiry. For example, the device identification of the second electronic device, and then the first electronic device queries the server for the service information of the second electronic device according to the identification of the second electronic device.
Optionally, the second device information and the second service information are used to determine a query result of a preset condition of the first service corresponding to the service parameter, where the query result is used to establish service interconnection between the first electronic device and the second electronic device.
It can be understood that the query result return is the electronic device that receives the query response, and includes the service query end, and after the query response is analyzed, the received electronic device information and the information including the service information are filtered according to the query condition of each service query service, and the data meeting the query condition are returned to each service module respectively.
The first electronic device may interconnect the services performed on itself to the services on the second electronic device. For example: the method comprises the steps of playing music on first electronic equipment, generating a query request under the condition of initiating service interconnection, sending the query request, receiving a query response related to second electronic equipment, playing the music on the second electronic equipment in a relay mode, and continuing or stopping playing the music on the first electronic equipment.
In the embodiment of the application, a first electronic device responds to a service interconnection request to generate a query request, wherein the query request carries first device information, first service information and service parameters of the first electronic device; the first electronic equipment sends the query request, and the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters; the second electronic equipment receives a query request, wherein the query request carries first equipment information, first service information and service parameters of the first electronic equipment; the second electronic equipment generates a query response according to the query request, wherein the query response comprises second equipment information and second service information of the second electronic equipment, and the second service information is matched with the first service information and the service parameters; the second electronic device sends the query response to the first electronic device, and the query response is used for service interconnection of the first electronic device; the first electronic equipment receives a query response, wherein the query response comprises second equipment information and second service information of second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device. Optionally, the service information query between the near field devices may be emphasized, and the service information query is a way of interacting service and service capabilities of the electronic device and is a basis for service collaboration of the electronic device. By the service query scheme, query request-query response type interaction can be performed on the premise of low-frequency communication based on low-power consumption equipment, so that query and response of basic service information of the electronic equipment are completed while extremely low power consumption is guaranteed; can bear various abundant service interconnections of an upper layer, such as: video connection, mobile phone screen projection, music connection, mail relay, document relay, even virtual expansion of hardware capability of electronic equipment, and the like.
As shown in fig. 3, a schematic diagram of another embodiment of the method for querying information in the embodiment of the present application may include:
301. and acquiring a service registration request, and performing service registration, wherein the service registration comprises at least one of a registration mode definition, a data interaction mode definition and a data interaction format definition.
Optionally, the obtaining, by the first electronic device, the service registration request to perform service registration may include: the first electronic equipment acquires a service registration request, verifies the identity of a service module initiating the service registration request, and performs service registration under the condition of determining validity.
Optionally, the data interaction mode definition includes at least one of a data interaction channel and a data query protocol.
Optionally, the data interaction channel includes at least one of an android interface definition language, a data bus, and cross-end data sharing;
the data query protocol comprises Bluetooth Low Energy (BLE), wireless fidelity (WiFi), or an internet of things (IoT) protocol.
Optionally, the data interaction format includes at least one of device information, connection information, and service information;
the equipment information is used for storing and identifying the identity and attribute data of the equipment;
the connection information is used for recording the connection attribute between the devices;
the service information is used for recording at least one of service capability, service identification, application program corresponding to the service and authorization mode of the service on the equipment.
It can be understood that, for the service registration process, the initial definition may include a registration mode definition, a data return channel definition, and an error feedback mode definition. Fig. 4A is a schematic diagram of service registration definition in the present application. The following are described separately:
(1) registration mode definition
When the service module uses the service query module, the service module needs to register with the service query module to complete information registration of the service module and initialize or apply for resources related to the service query module. Therefore, firstly, a Service registration method needs to be defined, for example, between a Software Development Kit (SDK) of an Android system and a Service (Service), an Android Interface Definition Language (AIDL) method is usually adopted to realize registration of the Service to the Service, so as to register contents such as a process of the Service, a package attribute, and the like.
Based on the safety consideration, the identity authentication of the calling end service module is needed during service registration so as to identify the identity of the service calling party and ensure the validity of service inquiry and calling.
(2) Data interaction mode definition
When registering, the business module follows the data interaction mode defined by the service inquiry method, including interaction modes such as interaction channels and bearer protocols. The business module and the service query module can be deployed on the same device or different devices, so that the data interaction channel comprises AIDL, data bus, cross-end data sharing and the like.
(3) Data interaction format definition
When a service interacts with a service query module, a data interaction format definition under normal and abnormal conditions needs to be formulated. The method defines interactive data formats such as equipment information, connection information, service information, error code specifications and the like, wherein the equipment information is used for storing and identifying the identity and attribute data of the near-field equipment, and comprises equipment identification, equipment name, supported protocols and the like; the connection information is used for recording connection attributes between the near field devices, including attributes such as a connection state, a connection Protocol, a connected Media Access Control (MAC)/BLE/Internet Protocol (IP) address, and the like; the service information is used for recording attributes of service capability, service identification, application corresponding to the service, an authorization mode of the service and the like on the equipment.
302. And generating a query request in response to the service interconnection request.
303. And sending a query request, wherein the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters.
304. And generating a query response according to the query request, wherein the query response comprises second equipment information and second service information of second electronic equipment, and the second service information is matched with the first service information and the service parameters.
305. And sending the query response to the first electronic equipment, wherein the query response is used for service interconnection of the first electronic equipment.
It should be noted that, steps 302-305 are similar to steps 101-104 in the embodiment shown in fig. 1, and are not repeated herein.
It can be understood that the process of the technical solution of the present application may mainly include steps of service registration, service query, service response, result return, and the like. Fig. 4B is a schematic flow chart of a service query in the embodiment of the present application. The service registration refers to a service module needing to use a service inquiry function, and after the service is started, registration is initiated to the service inquiry module, so that initialization work is done for subsequent service inquiry and data interaction; the service inquiry refers to a process of sending an inquiry request between electronic equipment through a predefined inquiry protocol and a predefined communication mode; the query response refers to a process of judging the matching of the self environment and the query condition when the equipment receives the query request and responding to the query request; the query result returning is to return data to each upper layer service module according to the preset conditions after analyzing and storing the received response result.
In the embodiment of the application, the first electronic device obtains a service registration request and performs service registration, wherein the service registration includes at least one of a registration mode definition, a data interaction mode definition and a data interaction format definition; a first electronic device responds to a service interconnection request to generate a query request, wherein the query request carries first device information, first service information and service parameters of the first electronic device; the first electronic equipment sends the query request, and the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters; the method comprises the steps that second electronic equipment receives a query request sent by first electronic equipment, wherein the query request carries first equipment information, first service information and service parameters of the first electronic equipment; the second electronic equipment generates a query response according to the query request, wherein the query response comprises second equipment information and second service information of the second electronic equipment, and the second service information is matched with the first service information and the service parameters; the second electronic device sends the query response to the first electronic device, and the query response is used for service interconnection of the first electronic device; the first electronic equipment receives a query response, wherein the query response comprises second equipment information and second service information of second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device. The method and the device can focus on service information query among the near-field devices, the service information query is a mode for interaction of service and service capability of the electronic devices, and the service information query is a basis for service cooperation of the electronic devices. By the service query scheme, query request-query response type interaction can be performed on the premise of low-frequency communication based on low-power consumption equipment, so that query and response of basic service information of the electronic equipment are completed while extremely low power consumption is guaranteed; can bear various abundant service interconnections of an upper layer, such as: video connection, mobile phone screen projection, music connection, mail relay, document relay, even virtual expansion of hardware capability of electronic equipment, and the like.
As shown in fig. 5, a schematic diagram of an embodiment of an electronic device in an embodiment of the present application may include:
a processing module 501, configured to generate a query request in response to a service interconnection request, where the query request carries first device information, first service information, and a service parameter of the first electronic device;
a transceiver module 502, configured to send the query request, where the query request is used to query the service information of the electronic device that is matched with the first service information and the service parameter; receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device.
Optionally, the second service information includes at least one of a service capability, a service identifier, a module corresponding to the service, and an authorization manner of the service.
Optionally, the service module is a service module or an application program having a function of invoking a certain type.
Optionally, the processing module 501 is further configured to obtain a service registration request, and perform service registration, where the service registration includes at least one of a registration mode definition, a data interaction mode definition, and a data interaction format definition.
Optionally, the processing module 501 is specifically configured to obtain a service registration request, verify an identity of a service module that initiates the service registration request, and perform service registration when validity is determined.
Optionally, the data interaction mode definition includes at least one of a data interaction channel and a data query protocol.
Optionally, the data interaction channel includes at least one of an android interface definition language, a data bus, and cross-end data sharing;
the data query protocol comprises Bluetooth Low Energy (BLE), wireless fidelity (WiFi), or an internet of things (IoT) protocol.
Optionally, the data interaction format definition includes at least one of device information, connection information, and service information;
the equipment information is used for storing and identifying the identity and attribute data of the equipment;
the connection information is used for recording the connection attribute between the devices;
the service information is used for recording at least one of service capability, service identification, application program corresponding to the service and authorization mode of the service on the equipment.
Optionally, the transceiver module 502 is specifically configured to send the query request through a data query protocol.
Optionally, the service interconnection includes: video connection, terminal device screen projection, music connection, mail relay, document relay, navigation relay, or virtual expansion of hardware capability of electronic devices.
Optionally, the second device information and the second service information are used to determine a query result of a preset condition of the first service corresponding to the service parameter, where the query result is used to establish service interconnection between the first electronic device and the second electronic device.
Optionally, the query response is a query response sent by a server or the second electronic device, where the server includes service information of each electronic device.
Optionally, the service parameter is a parameter related to a service in a service query process.
As shown in fig. 6, which is a schematic view of another embodiment of the electronic device in the embodiment of the present application, the method may include:
a transceiver module 601, configured to receive a query request, where the query request carries first device information, first service information, and a service parameter of the first electronic device;
a processing module 602, configured to generate a query response according to the query request, where the query response includes second device information and second service information of a second electronic device, and the second service information is matched with the first service information and the service parameter;
the transceiver module 601 is configured to send the query response, where the second device information and the second service information are used to establish service interconnection between the first electronic device and the second electronic device.
Optionally, the second service information includes at least one of a service capability, a service identifier, a module corresponding to the service, and an authorization manner of the service.
Optionally, the service module is a service module or an application program having a function of invoking a certain type.
Optionally, the transceiver module 601 is specifically configured to receive an inquiry request sent by the first electronic device through a plurality of service modules.
Optionally, the transceiver module 601 is specifically configured to receive, through a data query protocol, a query request sent by the first electronic device.
Optionally, the processing module 602 is specifically configured to generate a query response when the query request is matched with the service information of the second electronic device.
As shown in fig. 7, which is a schematic view of another embodiment of the electronic device in the embodiment of the present application, the method may include:
here, the electronic device is described by taking a terminal device as an example, and fig. 7 is a block diagram showing a partial structure of a mobile phone related to the terminal device provided in the embodiment of the present application. Referring to fig. 7, the handset includes: radio Frequency (RF) circuit 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuit 760, wireless fidelity (Wi-Fi) module 770, processor 780, and power supply 790. Those skilled in the art will appreciate that the handset configuration shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 7:
the RF circuit 710 may be used for receiving and transmitting signals during a message transmission or a call, and particularly, for receiving downlink information of a base station and then processing the received downlink information to the processor 780; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 710 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 710 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 720 may be used to store software programs and modules, and the processor 780 may execute various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also referred to as a touch screen, can collect touch operations of a user (e.g. operations of the user on or near the touch panel 731 by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 731 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 740 may include a Display panel 741, and optionally, the Display panel 741 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 731 can cover the display panel 741, and when the touch panel 731 detects a touch operation on or near the touch panel 731, the touch operation is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of the touch event. Although the touch panel 731 and the display panel 741 are two independent components in fig. 7 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 750, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 741 and/or a backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 760, and then processes the audio data output processor 780, and then transmits the audio data to, for example, another cellular phone through the RF circuit 710, or outputs the audio data to the memory 720 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 770, and provides wireless broadband internet access for the user. Although fig. 7 shows a Wi-Fi module 770, it is understood that it does not belong to the essential component of the handset and can be omitted entirely as necessary within the scope of not changing the essence of the application.
The processor 780 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby integrally monitoring the mobile phone. Alternatively, processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor, which primarily handles operating system, user interface, application programs, etc. and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The handset also includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 780 via a power management system, so that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In an embodiment in which the electronic device is a first electronic device, the following is shown:
a processor 780, configured to generate a query request in response to a service interconnection request, where the query request carries first device information, first service information, and a service parameter of the first electronic device;
the RF circuit 710 is configured to send the query request, where the query request is used to query service information of an electronic device matching the first service information and the service parameter; receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device.
Optionally, the second service information includes at least one of a service capability, a service identifier, a module corresponding to the service, and an authorization manner of the service.
Optionally, the service module is a service module or an application program having a function of invoking a certain type.
Optionally, the processor 780 is further configured to obtain a service registration request, and perform service registration, where the service registration includes at least one of a registration mode definition, a data interaction mode definition, and a data interaction format definition.
Optionally, the processor 780 is specifically configured to obtain a service registration request, verify an identity of a service module that initiates the service registration request, and perform service registration when validity is determined.
Optionally, the data interaction mode definition includes at least one of a data interaction channel and a data query protocol.
Optionally, the data interaction channel includes at least one of an android interface definition language, a data bus, and cross-end data sharing;
the data query protocol includes bluetooth low energy BLE, wireless fidelity WiFi, or internet of things IoT protocol.
Optionally, the data interaction format definition includes at least one of device information, connection information, and service information;
the equipment information is used for storing and identifying the identity and attribute data of the equipment;
the connection information is used for recording the connection attribute between the devices;
the service information is used for recording at least one of service capability, service identification, application program corresponding to the service and authorization mode of the service on the equipment.
Optionally, the RF circuit 710 is specifically configured to send the query request through a data query protocol.
Optionally, the service interconnection includes: video connection, terminal device screen projection, music connection, mail relay, document relay, navigation relay, or virtual expansion of hardware capability of electronic devices.
Optionally, the second device information and the second service information are used to determine a query result of a preset condition of the first service corresponding to the service parameter, where the query result is used to establish service interconnection between the first electronic device and the second electronic device.
Optionally, the query response is a query response sent by a server or the second electronic device, where the server includes service information of each electronic device.
Optionally, the service parameter is a parameter related to a service in a service query process.
In an embodiment where the electronic device is a second electronic device, the following is shown:
the RF circuit 710 is configured to receive an inquiry request, where the inquiry request carries first device information, first service information, and a service parameter of a first electronic device;
a processor 780, configured to generate a query response according to the query request, where the query response includes second device information and second service information of a second electronic device, and the second service information is matched with the first service information and the service parameter;
the RF circuit 710 is configured to send the query response, and the second device information and the second service information are used to establish service interconnection between the first electronic device and the second electronic device.
Optionally, the second service information includes at least one of a service capability, a service identifier, a module corresponding to the service, and an authorization manner of the service.
Optionally, the service module is a service module or an application program having a function of invoking a certain type.
Optionally, the RF circuit 710 is specifically configured to receive an inquiry request sent by the first electronic device through a plurality of service modules.
Optionally, the RF circuit 710 is specifically configured to receive an inquiry request sent by the first electronic device through a data inquiry protocol.
Optionally, the processor 780 is specifically configured to generate a query response when the query request is matched with the service information of the second electronic device.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, 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.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. 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 computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (21)

1. A method for querying information, the method being applied to a first electronic device, the method comprising:
responding to a service interconnection request to generate a query request, wherein the query request carries first equipment information, first service information and service parameters of the first electronic equipment;
sending the query request, wherein the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters;
receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device.
2. The method of claim 1, wherein the second service information comprises at least one of service capability, service identification, a module corresponding to the service, and an authorization method of the service.
3. The method of claim 2, wherein the business module is a module or an application having a function calling a certain type.
4. The method of claim 1, wherein before generating the query request in response to the service interconnection request, the method further comprises:
acquiring a service registration request, and performing service registration, wherein the service registration comprises at least one of a registration mode definition, a data interaction mode definition and a data interaction format definition.
5. The method of claim 4, wherein the obtaining the service registration request and performing service registration comprises:
acquiring a service registration request, verifying the identity of a service module initiating the service registration request, and registering the service under the condition of determining the validity.
6. The method of claim 4 or 5, wherein the data interaction style definition comprises at least one of a data interaction channel and a data query protocol.
7. The method of claim 6, wherein the data interaction channel comprises at least one of an android interface definition language, a data bus, and cross-end data sharing;
the data query protocol includes bluetooth low energy BLE, wireless fidelity WiFi, or internet of things IoT protocol.
8. The method according to claim 4 or 5, wherein the data interaction format definition comprises at least one of device information, connection information and service information;
the equipment information is used for storing and identifying the identity and attribute data of the equipment;
the connection information is used for recording the connection attribute between the devices;
the service information is used for recording at least one of service capability, service identification, application program corresponding to the service and authorization mode of the service on the equipment.
9. The method according to any of claims 1-5, wherein said sending said query request comprises:
and sending the query request through a data query protocol.
10. The method according to any of claims 1-5, wherein said service interconnection comprises: video connection, terminal equipment screen projection, music connection, mail relay, document relay, navigation relay, or virtual expansion of hardware capability of electronic equipment.
11. The method according to any one of claims 1 to 5, wherein the second device information and the second service information are used to determine a query result corresponding to the service parameter and corresponding to a preset condition of the first service, and the query result is used to establish service interconnection between the first electronic device and the second electronic device.
12. The method according to any one of claims 1-5, wherein the query response is a query response sent by a server or the second electronic device, and the server includes service information of each electronic device.
13. A method for querying information, wherein the method is used for a second electronic device, and the method comprises:
receiving a query request, wherein the query request carries first equipment information, first service information and service parameters of first electronic equipment;
generating a query response according to the query request, wherein the query response comprises second equipment information and second service information of second electronic equipment, and the second service information is matched with the first service information and the service parameters;
and sending the query response, wherein the second device information and the second service information are used for establishing service interconnection of the first electronic device and the second electronic device.
14. The method of claim 13, wherein the second service information comprises at least one of service capability, service identification, module corresponding to the service, and authorization method of the service.
15. The method according to claim 13 or 14, wherein the receiving a query request comprises:
and receiving a query request sent by the first electronic equipment through a plurality of service modules.
16. The method according to claim 13 or 14, wherein the receiving a query request comprises:
a query request is received via a data query protocol.
17. The method according to claim 13 or 14, wherein generating a query response according to the query request comprises:
and generating a query response under the condition that the query request is matched with the service information of the second electronic equipment.
18. An apparatus for querying information, wherein the apparatus is applied to a first electronic device, the apparatus comprising:
the processing module is used for responding to a service interconnection request to generate a query request, wherein the query request carries first equipment information, first service information and service parameters of the first electronic equipment;
the receiving and sending module is used for sending the query request, and the query request is used for querying the service information of the electronic equipment matched with the first service information and the service parameters; receiving a query response, wherein the query response comprises second equipment information and second service information of the second electronic equipment; the second device information and the second service information are used for establishing business interconnection of the first electronic device and the second electronic device.
19. An apparatus for querying information, wherein the apparatus is applied to a first electronic device, the apparatus comprising:
the system comprises a receiving and sending module, a service processing module and a service processing module, wherein the receiving and sending module is used for receiving a query request, and the query request carries first equipment information, first service information and service parameters of first electronic equipment;
the processing module is used for generating a query response according to the query request, wherein the query response comprises second equipment information and second service information of second electronic equipment, and the second service information is matched with the first service information and the service parameters;
the transceiver module is configured to send the query response, and the second device information and the second service information are used to establish service interconnection between the first electronic device and the second electronic device.
20. An electronic device, comprising:
a memory storing executable program code;
a processor and transceiver coupled with the memory;
the processor and the transceiver are each configured to perform the method of any one of claims 1-12, or any one of claims 13-17.
21. A computer-readable storage medium comprising instructions that, when executed on a processor, cause the processor to perform the method of any of claims 1-12, or any of claims 13-17.
CN202210108112.3A 2022-01-28 2022-01-28 Information query method, device, electronic equipment and storage medium Active CN114501449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210108112.3A CN114501449B (en) 2022-01-28 2022-01-28 Information query method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210108112.3A CN114501449B (en) 2022-01-28 2022-01-28 Information query method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114501449A true CN114501449A (en) 2022-05-13
CN114501449B CN114501449B (en) 2024-02-09

Family

ID=81475842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210108112.3A Active CN114501449B (en) 2022-01-28 2022-01-28 Information query method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114501449B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596118A (en) * 2012-08-13 2014-02-19 华为终端有限公司 Method, device and system for discovering machine to machine service
CN103733661A (en) * 2011-07-25 2014-04-16 摩托罗拉移动有限责任公司 Methods and apparatuses for providing profile information in a bluetooth communication system
CN105743958A (en) * 2015-04-13 2016-07-06 乐视网信息技术(北京)股份有限公司 Terminal-to-terminal communication method and device
CN110166820A (en) * 2019-05-10 2019-08-23 华为技术有限公司 Playback method, terminal and the device of audio-video
CN112291764A (en) * 2019-08-06 2021-01-29 华为技术有限公司 Content connection method, system and electronic equipment
CN112307405A (en) * 2020-11-16 2021-02-02 Oppo广东移动通信有限公司 Cross-device application relay method, device, equipment, system and storage medium
CN112469013A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Bluetooth connection method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103733661A (en) * 2011-07-25 2014-04-16 摩托罗拉移动有限责任公司 Methods and apparatuses for providing profile information in a bluetooth communication system
CN103596118A (en) * 2012-08-13 2014-02-19 华为终端有限公司 Method, device and system for discovering machine to machine service
CN105743958A (en) * 2015-04-13 2016-07-06 乐视网信息技术(北京)股份有限公司 Terminal-to-terminal communication method and device
CN110166820A (en) * 2019-05-10 2019-08-23 华为技术有限公司 Playback method, terminal and the device of audio-video
CN112291764A (en) * 2019-08-06 2021-01-29 华为技术有限公司 Content connection method, system and electronic equipment
CN112469013A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Bluetooth connection method and related device
CN112307405A (en) * 2020-11-16 2021-02-02 Oppo广东移动通信有限公司 Cross-device application relay method, device, equipment, system and storage medium

Also Published As

Publication number Publication date
CN114501449B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
CN110622123B (en) Display method and device
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN108040091B (en) Data processing method, device and storage medium
CN110944406B (en) Link establishment method of sidelink and terminal
CN107786424B (en) Audio and video communication method, terminal and server
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN108270764B (en) Application login method, server and mobile terminal
WO2018119630A1 (en) Interaction method, and terminal
WO2017000495A1 (en) Method and device for adding contacts
CN109729582B (en) Information interaction method and device and computer readable storage medium
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN114158025B (en) Device reconnection method and related device
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device
CN104378339B (en) A kind of communication means and device using agency agreement
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device
US20220053585A1 (en) Method for pc5 link establishment, device, and system
CN114501449B (en) Information query method, device, electronic equipment and storage medium
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN107315623B (en) Method and device for reporting statistical data
CN111083285A (en) Mobile terminal call positioning system and method
CN112689274B (en) Prompting method and device for short-distance wireless communication connection and massaging equipment
CN115002059B (en) Information processing method, information processing device, computer readable storage medium and computer equipment

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
GR01 Patent grant
GR01 Patent grant