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

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

Info

Publication number
CN114501449B
CN114501449B CN202210108112.3A CN202210108112A CN114501449B CN 114501449 B CN114501449 B CN 114501449B CN 202210108112 A CN202210108112 A CN 202210108112A CN 114501449 B CN114501449 B CN 114501449B
Authority
CN
China
Prior art keywords
service
information
query
electronic device
query request
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.)
Active
Application number
CN202210108112.3A
Other languages
Chinese (zh)
Other versions
CN114501449A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

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 carrying out query request and query response type interaction, completing query and response of basic service information of the electronic equipment while guaranteeing minimum power consumption, and bearing various rich service interconnection of an upper layer. The method provided by the embodiment of the application is applied to the 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 for querying service information of the electronic device matched with the first service information and the service parameters; receiving a query response, wherein the query response comprises second device information and second service information of the second electronic device; 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, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of wireless communications technologies, and in particular, to a method and apparatus for querying information, an electronic device, and a storage medium.
Background
After determining 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 obtained matched public key information, and the first device communicates with the second device after the public key derivative value is matched with the obtained matched public key information; or 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 public key derivative value, and then the first device communicates with the second device; therefore, the subsequent configuration success of the first equipment and the second equipment is ensured, and the failure of the subsequent configuration process caused by the fact that the first equipment acquires the wrong public key of the second equipment is avoided. The above solution is how to increase the probability of successful configuration of the first device and the second device. But there is currently no good solution to how to respond and complete the service connection on the second device for the service currently running on the 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 carrying out query request and query response type interaction, completing query and response of basic service information of the electronic equipment while guaranteeing minimum power consumption, and bearing various rich service interconnection of an upper layer.
A first aspect of the present application provides a method for querying information, 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 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 device information and second service information of second electronic equipment; 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 second aspect of the present application provides a method for information query, the method being for a second electronic device, 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 equipment information and the second service information are used for establishing service interconnection of the first electronic equipment and the second electronic equipment.
A third aspect of the present application provides an apparatus for querying information, where the apparatus is applied to a first electronic device, the apparatus includes:
the processing module is used for 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 the first electronic equipment;
the receiving and transmitting 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 device information and second service information of second electronic equipment; 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 fourth aspect of the present application provides an apparatus for querying information, where the apparatus is applied to a first electronic device, the apparatus includes:
The receiving and transmitting module is used for receiving a query request, wherein 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 receiving and transmitting module is used for sending the query response, and the second equipment information and the second service information are used for establishing service interconnection of the first electronic equipment and the second electronic equipment.
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 to the memory;
the processor and the transceiver are configured to perform the method according to the first or second aspect of the present application.
Yet another aspect of an embodiment of the present application provides a computer-readable storage medium comprising instructions which, when run on a processor, cause the processor to perform the method of the first or second aspect of the present application.
Yet another aspect of the embodiments discloses 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 application.
A further aspect of the embodiments of the present application discloses an application publishing platform for publishing a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform the method according to the first or second aspect of the present application.
From the above technical solutions, the embodiments of the present application have the following advantages:
in the embodiment of the application, a query request is generated in response to a service interconnection 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 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 device information and second service information of second electronic equipment; 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. By carrying out query request and query response 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 rich service interconnections on the upper layer are borne.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments and the description of the prior art, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings.
FIG. 1 is a schematic diagram of one embodiment of a method for information query in an embodiment of the present application;
FIG. 2A is a schematic diagram of defining a service query flow according to an embodiment of the present application;
FIG. 2B is a schematic diagram of defining a query response in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of another embodiment of a method for information query 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 flowchart illustrating a service query according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another embodiment of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic diagram of another embodiment of an electronic device in an 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 carrying out query request and query response type interaction, completing query and response of basic service information of the electronic equipment while guaranteeing minimum power consumption, and bearing various rich service interconnection of an upper layer.
In order for those skilled in the art to better understand the present application, the following description will describe embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. Based on the examples in this application, all shall fall within the scope of protection of this application.
In an existing implementation manner, a first device sends a query request message to a second device, wherein the query request message contains service information to be queried by the first device, so that the second device determines whether to respond to the query request message according to the service information; the first device receives a query response message, wherein the query response message is sent after the second device determines to respond to the query request message, and the query response message contains a public key derivative value of the second device; the first device obtains matching public key information; and after the first device verifies that the matched public key information is matched with the public key derivative value, sending communication information to the second device to communicate with the second device. In the prior art, after determining 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 of the second device is matched with the obtained matched public key information, and after the public key derivative value of the first device is matched with the obtained matched public key information, the first device communicates with the second device, so that the subsequent configuration success of the first device and the second device is ensured, and the failure of the subsequent configuration process caused by the fact that the first device obtains the incorrect public key of the second device is avoided.
In an existing implementation manner, a first device sends a query request message to a second device, wherein the query request message contains service information to be queried 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 query 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; the first device sends communication information to the second device to communicate with the second device. 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 public key derivative value, and then the first device communicates with the second device, so that the subsequent configuration process failure caused by the fact that the first device acquires the 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 can 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, and 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 the first electronic device, the first connection comprising an access control list (Access Control Lists, ACL) connection; the first electronic device is configured to display connected information of the Bluetooth headset after a first connection is established with the Bluetooth headset; the bluetooth headset is further configured to transmit a bluetooth low energy (Bluetooh 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.
But there is currently no good solution to the traffic currently running on the first device, wanting to continue running on another device.
In the embodiment of the application, the electronic device may be a terminal device, which may be deployed on land, including indoor or outdoor, handheld, wearable or vehicle-mounted; can also be deployed on the water surface (such as ships, etc.); but may also be deployed in the air (e.g., on aircraft, balloon, satellite, etc.).
In the embodiment of the application, the terminal device comprises a wireless device or a wired device. The wireless device may be a Mobile Phone, a tablet (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented Reality (Augmented Reality, AR) terminal device, a wireless terminal device in industrial control (industrial control), a wireless terminal device in autopilot, a wireless terminal device in telemedicine (remote media), a wireless terminal device in smart grid (smart grid), a wireless terminal device in transportation security (transportation safety), a wireless terminal device in smart city (smart city), or a wireless terminal device in smart home (smart home), or the like.
By way of example, and not limitation, in embodiments of the present application, the terminal device may also be a wearable device. The wearable device can also be called as a wearable intelligent device, and is a generic name for intelligently designing daily wear by applying wearable technology and developing wearable devices, such as glasses, gloves, watches, clothes, shoes and the like. The 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 can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device includes full functionality, large size, and may not rely on the smart phone to implement complete or partial functionality, such as: smart watches or smart glasses, etc., and focus on only certain types of application functions, and need to be used in combination with other devices, such as smart phones, for example, various smart bracelets, smart jewelry, etc. for physical sign monitoring.
In the following, by way of example, the technical solution of the present application is further described, as shown in fig. 1, which is a schematic diagram of an embodiment of a method for querying information in an embodiment of the present application, and may include:
101. And generating a query request in response to the service interconnection request.
The method comprises the steps that 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.
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 initiating service interconnection by a user to generate a query request. The service scenario occurrence is triggered when the service requiring service inquiry occurs. In an alternative way, to avoid unnecessary consumption of resources such as power and memory on the electronic device, the service query is triggered only when a traffic scenario occurs. Or,
under the condition that the service is registered, the first electronic equipment can respond to the operation of initiating service interconnection by the user to generate a query request. Or,
and under the condition that the service is registered, the first electronic equipment generates a query request when executing the service.
Optionally, step 101 may also be replaced by generating, by the first electronic device, a query request in real time while 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, when the remaining power is greater than the power threshold, and/or the remaining memory is greater than the memory threshold, the first electronic device generates the query request in real time under the condition of executing the service.
Optionally, the service interconnection may include: video connection, terminal equipment screen-on, music connection, mail relay, document relay, navigation relay, or virtual extension of hardware capability of electronic equipment, navigation relay, or virtual camera relay.
The virtual extension of the hardware capability of the electronic device may include virtual camera relay, virtual keyboard relay, virtual mouse relay, etc. The terminal equipment screen-casting can comprise video screen-casting, 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 a query request to the second electronic device, and the second electronic device receives the query 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 the 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 a query request sent by the first electronic device through a plurality of service modules.
Optionally, the scenario applied in the present application includes a near field communication scenario.
Alternatively, the first electronic device may send the query request to the second electronic device by broadcasting, multicasting or unicasting.
Optionally, the service parameter is a parameter related to the service in the service query process. Including the identity of the business module of the service query, the name of the service of the query, the service capabilities of the query, etc.
It will be appreciated that for this flow of service queries, 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 defining a service query procedure according to an embodiment of the present application. The following describes them separately:
(1) Query scene definition
The query scene definition is to define a scene meeting the service query condition, and related elements can include conditions such as service query on, hardware switch on, service scene occurrence and the like. The following description will be given respectively:
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 items can be updated through cloud configuration pushing, and default settings are set to be on; the setup page switch may be operated by a user to turn on and off. The purpose of setting the service inquiry switch is to promote user experience and reduce power consumption and memory consumption of related applications.
The hardware switch refers to a switch corresponding to a hardware card on which service inquiry depends. A Bluetooth (BT)/low energy (Bluetooth Low Energy, BLE) broadcast or connection based service inquiry mode depends on the Bluetooth switch being turned on; the service inquiry mode of service inquiry, broadcast and multicast based on the Ethernet depends on the opening of a wireless fidelity (Wireless Fidelity, wiFi) switch and the like.
The service scenario occurrence is triggered when the service requiring service inquiry occurs. In order to avoid unnecessary consumption of resources such as electric quantity and memory on the electronic equipment, service inquiry can be triggered when the service scene is needed.
(2) Query pattern element definition
The query mode elements comprise data communication protocol, data query protocol, service parameters and other contents. The following description will be given respectively:
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 anti-serialization method definition and the like of data transmission. The method and the device can support services including video connection, mobile phone screen throwing, audio connection and the like, and can collect and manage the related services.
The data query protocol refers to the interaction of the service query through which protocol channel, namely, which protocol is used for bearing the query request and the query response. The supportable data query protocols comprise BLE, ethernet, internet of things and other communication channels, and one of the communication channels can be appointed for use when service query is used. The method is mainly applied to BLE and WiFi communication modes among near-field devices, and can also use more protocols of Internet of things (Internet of Things, ioT), such as COAP (The Constrained Application Protocol), message queue telemetry transport (Message Queuing Telemetry Transport, MQTT) and the like.
The service parameters refer to parameters directly related to the service in the service query process, and include service identification (Identity, ID) of the service query, service name of the query, service capability of the query, and the like.
(3) Result filtering condition definition
The definition of the result filtering condition refers to that when the service is queried, the filtering condition of the query result needs to be set, the first electronic device mainly concerns the electronic devices meeting the condition, and the filtering condition can comprise key elements such as a communication protocol, a device type, service capability and the like.
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 second electronic device generates a query response according to the query request, which may include: and the second electronic equipment generates a query response under the condition that the query 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 mode of the service.
Optionally, the service module is a service module or an application program with a function of calling a certain type. Exemplary, a service module with a certain type of function, such as a module with a video continuous playing function, or a module with context awareness, etc.
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 a query response is a response to a query request by a device that receives a service query, i.e. a second electronic device or server. The query response mainly comprises query data analysis, local service matching, response data transmission and the like. FIG. 2B is a schematic diagram of defining a query response according to an embodiment of the present application. The following description will be given respectively:
(1) The query data analysis is to analyze the query request according to the communication protocol to obtain the information such as the query service identification, service capability, equipment type and the like.
(2) The local service matching is to match the resolved query request with the service information of the electronic device or the server, and respond to the query request when the electronic device or the server is matched with the condition in the query request.
(3) The response data includes device information, service identification, service capability, etc. of the queried electronic device.
104. And sending the query response to the first electronic equipment, wherein the query response is used for business interconnection of the first electronic equipment.
The first electronic device receives a query response sent by the second electronic device.
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 the service query receiver encapsulates the response data according to the service query data interaction protocol, the service query receiver selects the same data interaction channel and data query protocol as the query request, and sends the query response.
Service inquiry can be performed by means of cloud service and more communication protocols under the internet connection state. For example, after each electronic device is connected to the internet, the service information of each electronic device is uploaded to the cloud service, so that other electronic devices can query on 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, which is needed to be queried by the server. The first electronic device can interact with the second electronic device first, and the device information of the second electronic device is obtained through inquiry. For example, the device identifier of the second electronic device, and then the first electronic device queries the server for service information of the second electronic device according to the identifier of the second electronic device.
Optionally, the second device information and the second service information are used for determining a query result of a preset condition of the first service corresponding to the service parameter, and the query result is used for establishing service interconnection between the first electronic device and the second electronic device.
It can be understood that the query result return is an electronic device that receives a query response, and includes a service query terminal, after analyzing the query response, according to the query conditions of each service query service, the received electronic device information and the service information are filtered, and data meeting the query conditions are respectively returned to each service module.
The first electronic device may interconnect the services performed on its own to the services on the second electronic device. For example: and playing the music on the first electronic equipment, generating a query request under the condition of initiating service interconnection, sending the query request, receiving a query response about the second electronic equipment, and playing the music in relay on the second electronic equipment, wherein the first electronic equipment can continue playing the music and can stop playing the music.
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, wherein the query request is used for querying 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, wherein the query response is used for business interconnection of the first electronic device; the first electronic device receives a query response, wherein the query response comprises second device information and second service information of second electronic devices; 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. Optionally, the service information query between near-field devices can be focused, and the service information query is a mode of service and business capability interaction of the electronic device and is a basis of business collaboration of the electronic device. Through 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 the query and response of basic service information of the electronic equipment are completed while the minimum power consumption is ensured; various rich service interconnections at the upper layer can be carried, for example: video connection, mobile phone screen throwing, music connection, mail relay, document relay, virtual expansion of hardware capability of electronic equipment, and the like.
As shown in fig. 3, another embodiment of a method for querying information in an embodiment of the present application is shown, which may include:
301. and acquiring a service registration request to perform 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 first electronic device obtains a service registration request, and performs service registration, which may include: the first electronic equipment acquires a service registration request, verifies the identity of a service module which initiates 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 comprises at least one of android interface definition language, a data bus and cross-terminal 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 includes at least one of device information, connection information, and service information;
the equipment information is used for storing and identifying identity and attribute data of 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 programs corresponding to the service and authorization modes of the service.
It will be appreciated that this procedure for business registration, when initially defined, may include registration mode definition, data return channel definition, and error feedback mode definition. As shown in fig. 4A, a schematic diagram of a service registration definition in the present application is shown. The following description will be given respectively:
(1) Registration mode definition
When the service inquiry module is used, the service module needs to register with the service module to finish information registration of the service module, and initialize or apply for resources related to the service inquiry module. Therefore, firstly, a registration manner of a Service needs to be defined, for example, a manner of using an Android interface definition language (Android Interface Definition Language, AIDL) is generally adopted between a software development kit (Software Development Kit, SDK) of an Android system and a Service (Service) to register contents such as a process and a package attribute of the Service.
Based on security consideration, identity authentication needs to be performed on a calling-end service module during service registration to identify the identity of a service calling party and ensure the legality of service inquiry and calling.
(2) Data interaction means definition
When registering, the service module follows the data interaction modes defined by the service inquiry method, including interaction modes such as interaction channels, bearing protocols and the like. The business module and the service inquiry module can be deployed on the same equipment or different equipment, so that the data interaction channel comprises AIDL, data bus, cross-terminal data sharing and other modes.
(3) Data interaction format definition
When the business interacts with the service inquiry module, the definition of the data interaction format under normal and abnormal conditions needs to be formulated. The application defines interactive data formats such as equipment information, connection information, service information, error code specification and the like, wherein the equipment information is used for storing and identifying the identity of near-field equipment and attribute data thereof, and comprises equipment identification, equipment name, supported protocols and the like; the connection information is used for recording connection attributes between near field devices, including connection state, connection protocol, connected media access control (Medium Access Control, MAC)/BLE/Internet protocol (Internet Protocol, IP) address and other attributes; the service information is used for recording the service capability, service identification, application corresponding to the service, and the authorization mode of the service and other attributes of the device.
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 business 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 will not be described again here.
It can be understood that the flow of the technical scheme of the application mainly comprises the steps of service registration, service inquiry, service response, result return and the like. Fig. 4B is a schematic flow chart of 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 service is started, registration is initiated to the service inquiry module, and initialization work is performed for subsequent service inquiry and data interaction; service inquiry refers to a process of sending an inquiry request between electronic devices 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; and the query result return is to return data to each service module of the upper layer according to preset conditions after the received response result is analyzed and stored.
In this embodiment of the present application, the first electronic device obtains a service registration request, and performs 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; the method comprises the steps that 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, wherein the query request is used for querying service information of the electronic equipment matched with the first service information and the service parameters; the method comprises the steps that a second electronic device receives a query request sent by a first electronic device, wherein the query request carries first device information, first service information and service parameters of the first electronic device; 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, wherein the query response is used for business interconnection of the first electronic device; the first electronic device receives a query response, wherein the query response comprises second device information and second service information of second electronic devices; 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. The method and the device can focus on service information inquiry among near-field devices, and the service information inquiry is a mode of service and business capability interaction of the electronic devices and is a basis of business collaboration of the electronic devices. Through 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 the query and response of basic service information of the electronic equipment are completed while the minimum power consumption is ensured; various rich service interconnections at the upper layer can be carried, for example: video connection, mobile phone screen throwing, music connection, mail relay, document relay, virtual expansion of hardware capability of electronic equipment, and the like.
As shown in fig. 5, which is 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 service parameters of the first electronic device;
a transceiver module 502, configured to send the query request, where the query request is used to query service information of an electronic device that matches the first service information and the service parameter; receiving a query response, wherein the query response comprises second device information and second service information of second electronic equipment; 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.
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 mode of the service.
Optionally, the service module is a service module or an application program with a function of calling 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 under a condition that 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 comprises at least one of android interface definition language, a data bus and cross-terminal 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 identity and attribute data of 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 programs corresponding to the service and authorization modes of the service.
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 equipment screen-on, music connection, mail relay, document relay, navigation relay, or virtual expansion of hardware capability of electronic equipment.
Optionally, the second device information and the second service information are used for determining a query result of a preset condition of the first service corresponding to the service parameter, and the query result is used for establishing 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 the service in the service query process.
As shown in fig. 6, which is a schematic diagram of another embodiment of the electronic device in the embodiment of the present application, may include:
a transceiver module 601, configured to receive a query request, where the query request carries first device information, first service information, and service parameters 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;
and 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 mode of the service.
Optionally, the service module is a service module or an application program with a function of calling a certain type.
Optionally, the transceiver module 601 is specifically configured to receive a query 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 matches the service information of the second electronic device.
As shown in fig. 7, which is a schematic diagram of another embodiment of the electronic device in the embodiment of the present application, 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 part of a structure of a mobile phone related to the terminal device provided in an embodiment of the present application. Referring to fig. 7, the mobile phone includes: radio Frequency (RF) circuitry 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuitry 760, wireless fidelity (wireless fidelity, wi-Fi) module 770, processor 780, power supply 790, and the like. It will be appreciated by those skilled in the art that the handset construction shown in fig. 7 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 7:
the RF circuit 710 may be configured to receive and transmit signals during a message or a call, and specifically, receive downlink information of a base station and process the downlink information with the processor 780; in addition, the data of the design uplink is sent to the base station. Typically, the RF circuitry 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 710 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 720 may be used to store software programs and modules, and the processor 780 performs various functional applications and data processing of the handset by running the software programs and modules stored in the memory 720. The memory 720 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for 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, phonebook, etc.) created according to the use of the handset, etc. In addition, 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 handset. In particular, 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, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on or thereabout the touch panel 731 using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 731 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device and converts it into touch point coordinates, which are then sent to the processor 780, and can receive commands from the processor 780 and execute them. In addition, the touch panel 731 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 740 may be used to display information input by a 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 alternatively, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 780 to determine the type of touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in fig. 7, the touch panel 731 and the display panel 741 are two separate components 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, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 741 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 may transmit the received electrical signal converted from audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 to be output; on the other hand, microphone 762 converts the collected sound signals into electrical signals, which are received by audio circuit 760 and converted into audio data, which are processed by audio data output processor 780 for transmission to, for example, another cell phone via RF circuit 710 or for output to memory 720 for further processing.
Wi-Fi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 770, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows Wi-Fi module 770, it is to be understood that it does not belong to the necessary constitution of the cell phone, and can be omitted entirely as needed 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 using various interfaces and lines, and performs various functions and processes of the mobile phone by running or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby performing overall monitoring of the mobile phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 780.
The handset further includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 780 through a power management system, such as to provide for managing charging, discharging, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be 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 of the first electronic device, first service information and service parameters;
RF circuitry 710 for transmitting the query request for querying service information of the electronic device matching the first service information and the service parameter; receiving a query response, wherein the query response comprises second device information and second service information of second electronic equipment; 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.
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 mode of the service.
Optionally, the service module is a service module or an application program with a function of calling 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 under a condition that 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 comprises at least one of android interface definition language, a data bus and cross-terminal 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 identity and attribute data of 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 programs corresponding to the service and authorization modes of the service.
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 equipment screen-on, music connection, mail relay, document relay, navigation relay, or virtual expansion of hardware capability of electronic equipment.
Optionally, the second device information and the second service information are used for determining a query result of a preset condition of the first service corresponding to the service parameter, and the query result is used for establishing 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 the service in the service query process.
In an embodiment in which the electronic device is a second electronic device, the following is shown:
RF circuitry 710 for receiving a query request, the query request carrying first device information, first service information, and service parameters 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;
RF circuitry 710 for transmitting the query response, the second device information and the second service information for establishing a 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 mode of the service.
Optionally, the service module is a service module or an application program with a function of calling a certain type.
Optionally, the RF circuit 710 is specifically configured to receive a query request sent by the first electronic device through a plurality of service modules.
Optionally, the RF circuit 710 is specifically configured to receive, through a data query protocol, a query request sent by the first electronic device.
Optionally, the processor 780 is specifically configured to generate a query response if the query request matches the service information of the second electronic device.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of 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)), etc.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (21)

1. A method of information querying, 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 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 device information and second service information of second electronic equipment; 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.
2. The method of claim 1, wherein the second service information includes at least one of a service capability, a service identification, a traffic module to which the service corresponds, and an authorization manner of the service.
3. The method of claim 2, wherein the business module is a module or an application program having a function of calling a certain type.
4. The method of claim 1, wherein prior to generating the query request in response to the service interconnection request, the method further comprises:
and acquiring a service registration request to perform 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 a service registration request for service registration comprises:
and acquiring a service registration request, verifying the identity of a service module which initiates the service registration request, and performing service registration under the condition of determining validity.
6. The method of claim 4 or 5, wherein the data interaction means 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-terminal 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 identity and attribute data of 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 programs corresponding to the service and authorization modes of the service.
9. The method of any of claims 1-5, wherein the sending the query request comprises:
and sending the query request through a data query protocol.
10. The method according to any one of claims 1-5, wherein the service interconnection comprises: video connection, terminal equipment screen-on, 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-5, wherein the second device information and the second service information are used to determine a query result of a preset condition of a 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.
12. The method of any of claims 1-5, wherein the query response is a query response sent by a server or the second electronic device, the server including service information for each electronic device.
13. A method of information querying, the method for a second electronic device, the method comprising:
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 equipment information and the second service information are used for establishing service interconnection of the first electronic equipment and the second electronic equipment.
14. The method of claim 13, wherein the second service information includes at least one of a service capability, a service identification, a traffic module to which the service corresponds, and an authorization manner of the service.
15. The method of 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 of claim 13 or 14, wherein the receiving a query request comprises:
the query request is received via a data query protocol.
17. The method of claim 13 or 14, wherein generating a query response from 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, the apparatus being applied to a first electronic device, the apparatus comprising:
the processing module is used for 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 the first electronic equipment;
The receiving and transmitting 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 device information and second service information of second electronic equipment; 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.
19. An apparatus for querying information, the apparatus being applied to a first electronic device, the apparatus comprising:
the receiving and transmitting module is used for receiving a query request, wherein 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 receiving and transmitting module is used for sending the query response, and the second equipment information and the second service information are used for establishing service interconnection of the first electronic equipment and the second electronic equipment.
20. An electronic device, comprising:
a memory storing executable program code;
a processor and transceiver coupled to the memory;
the processor and the transceiver are adapted to perform the method of any one of claims 1-12, or any one of claims 13-17, respectively.
21. A computer readable storage medium comprising instructions which, when run on a processor, cause the processor to perform the method of any one of claims 1-12, or any one 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 CN114501449A (en) 2022-05-13
CN114501449B true 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
CN114501449A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN106791892B (en) Method, device and system for live broadcasting of wheelhouses
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN108040091B (en) Data processing method, device and storage medium
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN109257793B (en) Network connection method, device, equipment and storage medium
CN109039989B (en) Address resolution protocol spoofing detection method, host and computer-readable storage medium
CN112788783B (en) Relay connection establishment method and device
CN110418311B (en) Interconnection method and device based on multiple terminals and terminal
CN112691363A (en) Cross-terminal switching method and related device for cloud games
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN104581993A (en) Wireless connection building method, data transmission method and terminal
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN109729582B (en) Information interaction method and device and computer readable storage medium
CN108270764B (en) Application login method, server and mobile terminal
US20220053585A1 (en) Method for pc5 link establishment, device, and system
CN106470234B (en) Equipment discovery method and device
WO2017000495A1 (en) Method and device for adding contacts
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN114158025B (en) Device reconnection method and related device
CN114501449B (en) Information query method, device, electronic equipment and storage medium
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device
JP2023509407A (en) Multicast service processing method, multicast service configuration method, terminal and network equipment
CN108574664B (en) Account login method, client, server, system and storage medium
CN107315623B (en) Method and device for reporting statistical data

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