WO2023088198A1 - 网络连接方法、装置和电子设备 - Google Patents

网络连接方法、装置和电子设备 Download PDF

Info

Publication number
WO2023088198A1
WO2023088198A1 PCT/CN2022/131596 CN2022131596W WO2023088198A1 WO 2023088198 A1 WO2023088198 A1 WO 2023088198A1 CN 2022131596 W CN2022131596 W CN 2022131596W WO 2023088198 A1 WO2023088198 A1 WO 2023088198A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
network interface
handle
information
function
Prior art date
Application number
PCT/CN2022/131596
Other languages
English (en)
French (fr)
Inventor
胡斌斌
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023088198A1 publication Critical patent/WO2023088198A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/02Selection of wireless resources by user or terminal
    • 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

Definitions

  • the present application belongs to the field of electronic technology, and in particular relates to a network connection method, device and electronic equipment.
  • small-sized smart terminals such as watches and wristbands also have cellular network capabilities to facilitate network communication for users because they are integrated with modems. And then gradually become a portable thing for people to live, work and travel.
  • modems the continuous operation of the modem for a long period of time will lead to high power consumption of the smart terminal, which will affect the battery life of the small-sized smart terminal.
  • the purpose of the embodiments of the present application is to provide a network connection method, device and electronic equipment, which can solve the problem that the continuous operation of the modem for a long time affects the battery life of a small-sized smart terminal.
  • the embodiment of the present application provides a network connection method, which is applied to the first electronic device, and the method includes:
  • RPC Remote Procedure Call
  • the network interface call function indicated by No. generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device;
  • the response information of the network interface is obtained by parsing the RPC operation response.
  • an embodiment of the present application provides a network connection method applied to a second electronic device, and the method includes:
  • an embodiment of the present application provides a network connection device, which is applied to a first electronic device, and the device includes:
  • a sending module configured to send a remote procedure call RPC operation request including a network interface function call number to the second electronic device when the remote networking condition is satisfied, so that the second electronic device calls the network interface function call number
  • the indicated network interface calls the function, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device;
  • a receiving module configured to receive the RPC operation response sent by the second electronic device
  • a parsing module configured to parse the RPC operation response to obtain the response information of the network interface.
  • an embodiment of the present application provides a network connection device, which is applied to a second electronic device, and the device includes:
  • a receiving module configured to receive a remote procedure call RPC operation request including a network interface function call number sent by the first electronic device
  • a calling module configured to call the network interface calling function indicated by the network interface function calling number
  • a generating module configured to generate an RPC operation response according to the response information of the network interface invoked by the network interface calling function
  • a sending module configured to send the RPC operation response to the first electronic device.
  • the embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and the program or instruction is executed by The processor implements the steps of the method described in any one of the first aspect or the second aspect when executed.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, any one of the first aspect or the second aspect can be realized. The steps of the method.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect Or the method described in any one of the second aspect.
  • the first electronic device when the first electronic device satisfies the condition of being able to remotely connect to the network, the first electronic device sends an RPC operation request including a network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • FIG. 1 is a schematic structural diagram of a network connection system provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a system framework of a network connection system provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of a network connection method provided by an embodiment of the present application.
  • FIG. 4 is a flow chart of another network connection method provided by an embodiment of the present application.
  • FIG. 5 is a flow chart of another network connection method provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of another network connection method provided by the embodiment of the present application.
  • Fig. 7 is a block diagram of a network connection device provided by an embodiment of the present application.
  • Fig. 8 is a block diagram of another network connection device provided by an embodiment of the present application.
  • Fig. 9 is a block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 1 shows a schematic structural diagram of a network connection system provided by an embodiment of the present application.
  • the network connection system includes: a first electronic device 101 and a second electronic device 102 .
  • the connection between the first electronic device 101 and the second electronic device 102 can be established based on protocols such as Bluetooth and Universal Serial Bus (Universal Serial Bus, USB), and then communicate through the established connection.
  • protocols such as Bluetooth and Universal Serial Bus (Universal Serial Bus, USB)
  • the first electronic device and/or the second electronic device may have a Bluetooth Low Energy (Bluetooth Low Energy, BLE) component and a classic Bluetooth (Bluetooth, BT) module.
  • BLE Bluetooth Low Energy
  • BT Bluetooth
  • the first electronic device and the second electronic device may be connected through a Bluetooth low energy component and/or a classic Bluetooth module, so as to realize a BLE connection or a BT connection between the first electronic device and the second electronic device.
  • the first electronic device and the second electronic device may run a remote procedure call (Remote Procedure Call, RPC) component, so that the first electronic device has the function of remotely calling the second electronic device.
  • the first electronic device may send an RPC operation request to the second electronic device through the Bluetooth connection between it and the second electronic device, and the RPC operation request includes a network interface function call number.
  • the second electronic device may call the network interface call function indicated by the network interface function call number. Call the network interface corresponding to the network interface by calling the function through the network interface.
  • the first electronic device may serve as a network proxy client
  • the second electronic device may serve as a network proxy server, providing the first electronic device with network communication capabilities.
  • the first electronic device and the second electronic device may be a mobile phone, a computer, a wearable device, and the like.
  • FIG. 1 takes the first electronic device as a wearable device and the second electronic device as a mobile phone as an example for illustration.
  • the first electronic device 101 includes a Microcontroller Unit (Microcontroller Unit, MCU), the MCU includes: Bluetooth physical link layer 1011, RPC component layer 1012 and network proxy client layer 1013.
  • the second electronic device 102 includes: a Bluetooth physical link layer 1021 , an RPC component layer 1022 and a network proxy server layer 1023 .
  • both the network proxy client layer 1013 of the first electronic device 101 and the network proxy server layer 1023 of the second electronic device 102 include network interfaces.
  • the RPC component layer 1012 of the first electronic device 101 is configured to generate an RPC operation request including a network interface function call number according to the RPC protocol. And transmit the RPC operation request to the Bluetooth physical link layer 1011.
  • the Bluetooth physical link layer 1011 of the first electronic device 101 transmits the RPC operation request to the Bluetooth physical link layer 1021 of the second electronic device 102 .
  • the Bluetooth physical link layer 1021 transmits the received RPC operation request to the RPC component layer 1022 .
  • the RPC component layer 1022 parses the RPC operation request, and obtains the network interface function call number.
  • the second electronic device 102 calls the network interface call function indicated by the network interface function call number, and calls the network interface in the network proxy server layer 1023 through the network interface call function.
  • FIG. 3 shows a flowchart of a network connection method provided by an embodiment of the present application.
  • the network connection method can be applied to the network connection system shown in FIG. 1 or FIG. 2 .
  • the network connection methods include:
  • Step 301 when the first electronic device satisfies the condition of being able to remotely connect to the network, send an RPC operation request including a network interface function call number to the second electronic device.
  • the first electronic device may detect the operating data of the first electronic device periodically or in real time, and determine whether the first electronic device satisfies the conditions for remote network connection, so as to determine whether the first electronic device needs to execute the Proxy invocation of the network interface of the second electronic device.
  • the first electronic device may invoke a local network interface to implement network communication.
  • the first electronic device can obtain the network interface function call number of the network interface function.
  • the network interface function is used to call the network interface, and the network interface function call number is used to identify the network interface function.
  • the first electronic device may send an RPC operation request to the second electronic device through the connection established between it and the second electronic device based on Bluetooth. It should be noted that the RPC operation request may also include information such as network connection parameters and the network address of the second electronic device.
  • the network interface is used to provide a network communication function.
  • the network interface can be a socket (socket) interface, and the socket interface is also called a bsd socket interface.
  • the remote networking condition may refer to a condition that the first electronic device can perform proxy calls to network interfaces of other electronic devices.
  • the remote networking condition may include: the first electronic device is connected to the second electronic device; or, the first electronic device is connected to the second electronic device, and the power consumption of the first electronic device is greater than the set power consumption threshold ; Or, the first electronic device is connected to the second electronic device, and the power of the first electronic device is lower than the set power threshold.
  • the first electronic device may acquire the Bluetooth connection status between itself and the second electronic device in real time.
  • the Bluetooth connection status of the first electronic device and the second electronic device indicates that the connection between the first electronic device and the second electronic device is successfully established based on Bluetooth, it is determined that the first electronic device satisfies the condition for remote networking.
  • Step 302 the second electronic device calls the network interface call function indicated by the network interface function call number.
  • the second electronic device may parse the RPC operation request according to the RPC protocol, and obtain the network interface function call number included in the RPC operation request.
  • the second electronic device calls the network interface calling function indicated by the network interface function calling number, so as to call the local network interface of the second electronic device through the network interface calling function.
  • the RPC operation request includes: a socket interface parameter and a network interface function call number for calling a network interface call function of the socket interface.
  • the second electronic device After parsing the RPC operation request, the second electronic device obtains the socket interface parameter and the network interface function call number. The second electronic device invokes the network interface function indicated by the network interface function call number, and passes socket interface parameters to the network interface function.
  • Step 303 the second electronic device generates an RPC operation response according to the response information of the network interface invoked by the network interface calling function.
  • the second electronic device calls the network interface calling function, so as to call the network interface through the network interface calling function, and obtain the response information returned by the network interface.
  • the second electronic device encapsulates the response information according to the RPC protocol, and generates an RPC operation response.
  • Step 304 the second electronic device sends an RPC operation response to the first electronic device.
  • the second electronic device sends an RPC operation response to the first electronic device through the connection established between it and the first electronic device based on Bluetooth.
  • Step 305 the first electronic device parses the RPC operation response to obtain the response information of the network interface.
  • the first electronic device after receiving the RPC operation response sent by the second electronic device, parses the RPC operation response to obtain the response information of the network interface, so as to realize the network communication function of the first electronic device.
  • the first electronic device when the first electronic device satisfies the conditions for remote networking, the first electronic device sends an RPC operation request including the network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • FIG. 4 shows a flowchart of a network connection method provided by an embodiment of the present application.
  • the network connection method can be applied to the network connection system shown in FIG. 1 or FIG. 2 .
  • the network connection methods include:
  • Step 401 when the first electronic device satisfies the condition of being able to remotely connect to the network, send an RPC operation request including a network interface function call number to the second electronic device.
  • step 301 For the explanation and implementation of this step, refer to the explanation and implementation of step 301 above, which will not be repeated in this embodiment of the application.
  • Step 402 the second electronic device calls the network interface call function indicated by the network interface function call number.
  • step 302 For the explanation and implementation of this step, reference may be made to the explanation and implementation of step 302 above, which will not be repeated in this embodiment of the present application.
  • both the first electronic device and the second electronic device can perform operations in a multiplexed manner.
  • both the first electronic device and the second electronic device An example of performing operations in a multiplexed manner can be used for illustration.
  • the second electronic device may call the network interface calling function by using the multiplex monitoring function. Then the second electronic device may create a handle of the network interface invoked by the network interface calling function, and the content of the handle is the second information. The second electronic device stores the handle of the network interface in the second storage space.
  • the process of the second electronic device calling the network interface calling function indicated by the network interface function call number includes: calling the network interface function when the multiplexing monitoring function is used to detect that the second storage space has a handle of the network interface including the second information
  • the network interface indicated by the call number calls the function.
  • the handle is also called the handle number, which is monitored by the multiplexing monitoring function.
  • the second storage space may store the handle of the network interface.
  • the multiplexed listener function listens on the handle of the network interface.
  • the process of calling the network interface calling function indicated by the network interface function call number may include: using multiple
  • the multiplexing monitoring function detects that the handle of the network interface is the second information, it calls the network interface calling function indicated by the network interface function calling number.
  • the multiplexing monitoring function may be a select function or a poll function.
  • the second electronic device establishes a handle of the network interface in response to the network connection instruction, and the content of the handle is the second information.
  • the select function detects that the handle of the network interface is the second information, it calls the network interface call function indicated by the network interface function call number.
  • the network connection instruction may be generated by the second electronic device when the user who belongs to the second electronic device wants to use the second electronic device to use the network communication function. For example, the user clicks on the networking logo, so that when the second electronic device receives a clicking operation on the networking logo, it generates a networking instruction in response to the clicking operation.
  • Step 403 the second electronic device generates an RPC operation response according to the response information of the network interface invoked by the network interface calling function.
  • the second electronic device calls the network interface calling function, so as to call the network interface through the network interface calling function, and obtain the response information returned by the network interface.
  • the second electronic device encapsulates the response information according to the RPC protocol, and generates an RPC operation response.
  • Step 404 the second electronic device sends an RPC operation response to the first electronic device.
  • the second electronic device sends an RPC operation response to the first electronic device through the connection established between it and the first electronic device based on Bluetooth.
  • Step 405 the first electronic device parses the RPC operation response to obtain the response information of the network interface.
  • the first electronic device after receiving the RPC operation response sent by the second electronic device, parses the RPC operation response to obtain the response information of the network interface, so as to realize the network communication function of the first electronic device.
  • Step 406 the second electronic device updates the handle of the network interface from the second information to the first information, and the first information is used to instruct the network interface to call through the RPC operation request.
  • the first information may be specified information.
  • the first information may be information generated according to the second information by using a set rule.
  • the process of the second electronic device updating the handle of the network interface from the second information to the first information may include: the second electronic device uses the setting A predetermined rule generates the first information according to the second information, and updates the handle of the network interface from the second information to the first information.
  • the content of the handle may be a numerical value, and the handle may be a fixed value greater than 100,000.
  • the setting rule may be that the first information is the sum of the second information and 100000. Assume that the handle of the network interface created by the second electronic device is 26, that is, the second information is 26, and the first information generated by the second electronic device according to the second information is 100026 by using the setting rule. Update the handle of the network interface to 100026.
  • Step 407 the second electronic device sends the handle to the first electronic device.
  • the second electronic device may send the handle of the network interface to the first electronic device through the connection established between it and the first electronic device based on Bluetooth.
  • step 406 can be performed before step 403, then the second electronic device generates an RPC operation response according to the response information of the network interface called by the network interface call function, which can be replaced by: the second electronic device calls the function call according to the network interface
  • the response information of the network interface and the handle of the network interface generate an RPC operation response. That is, the RPC operation response may include: the response information of the network interface and the handle of the network interface.
  • Step 408 the first electronic device stores the handle in the first storage space, and the handle is monitored by the multiplexing monitoring function.
  • the first electronic device may store the handle of the network interface in the first storage space.
  • the first electronic device may include a virtual file system layer, and the first storage space may be a storage space corresponding to the virtual file system layer.
  • the first electronic device may monitor the handle stored in the first storage space by using a multiplexing function.
  • Step 409 In response to the networking instruction, the first electronic device sends an RPC operation request to the second electronic device when it detects that the first storage space has a handle including the first information by using the multiplex monitoring function, and the RPC operation The request also includes a handle.
  • the user when the user wants to use the network communication function, the user can perform target input for triggering the network communication function on the first electronic device, and generate a network connection instruction in response to the target input, and the network connection command is used to reflect the first Electronic devices need to call network interfaces.
  • the first electronic device may call the network interface calling function locally, so as to call the network interface through the network interface calling function. Get the response information of the network interface.
  • the first electronic device may also send an RPC operation request to the second electronic device, so that the first electronic device executes a proxy call to the network interface of the second electronic device, so as to obtain response information of the network interface of the second electronic device.
  • the first electronic device judges whether the multiplexing monitoring function detects that there is a handle including the first information in the first storage space, so as to determine whether the first electronic device can send the The RPC request performs a proxy call to the network interface of the second electronic device.
  • the multiplexing monitoring function When the multiplexing monitoring function is used to monitor that the first storage space contains the handle including the first information, it indicates that the first electronic device can perform a proxy call to the network interface of the second electronic device. Then the first electronic device sends an RPC operation request to the second electronic device.
  • the RPC operation request includes a network interface function call number and a handle of the network interface including the first information.
  • no handle including the first information is detected in the first storage space by using the multiplexing monitoring function, it indicates that the first electronic device cannot execute the proxy call to the network interface of the second electronic device.
  • the first electronic device may call the network interface calling function to obtain the response information of the network interface called by the network interface calling function. That is, the first electronic device may call a local network interface to receive response information from the network interface to implement network communication.
  • the first storage space may store the handle of the network interface.
  • the handle stored in the first storage space may be a handle of the network interface created by the first electronic device, and the handle includes the third information.
  • the process for the first electronic device to store the handle in the first storage space may include: the first electronic device stores the handle in the first storage space, including The handle of the network interface of the third information is updated to include the handle of the first information.
  • the first electronic device may respond to the network connection instruction and determine whether the handle of the network interface in the first storage space monitored by the multiplexing monitoring function is the first information.
  • the multiplexing monitoring function is used to detect that the handle of the network interface in the first storage space is the first information, it is determined that there is a handle including the first information in the first storage space.
  • the multiplexing monitoring function is used to detect that the handle of the network interface in the first storage space is not the first information, it is determined that there is no handle including the first information in the first storage space.
  • the first electronic device judges whether the handle of the network interface in the first storage space monitored by the multiplexing monitoring function is 100026. In the case that the detected handle of the network interface in the first storage space is 100026, an RPC operation request is sent to the second electronic device, so that the second electronic device responds to the RPC request, calls the local network interface, and sends a request to the first electronic device. The device returns the response information of the network interface. If the detected handle of the network interface in the first storage space is not 100026, the first electronic device may call the local network interface to obtain response information of the network interface.
  • Step 410 the second electronic device updates the received handle from the first information to the second information. Execute step 402.
  • the second electronic device after receiving the RPC operation request sent by the first electronic device including the handle of the network interface, the second electronic device updates the received handle from the first information to the second information, and updates the updated handle to Save to the second storage space. Therefore, the second electronic device executes step 402 and calls the network interface calling function indicated by the network interface function calling number when the multiplex monitoring function detects that the handle of the network interface including the second information exists in the second storage space.
  • the process of the second electronic device updating the received handle from the first information to the second information may include: the second electronic device The device restores and generates the second information according to the first information according to the set rule, and updates the handle of the network interface from the first information to the second information.
  • the setting rule may be that the first information is the sum of the second information and 100,000. Assume that the handle in the RPC operation request received by the second electronic device is 100026, and the second information generated by the second electronic device according to the first information is 26 by using the setting rule. Update the handle of the network interface in the first storage space to 26.
  • the second electronic device after the second electronic device calls the network interface call function indicated by the network interface function call number, the second electronic device updates the handle of the network interface to the first information, and send the updated handle of the network interface to the first electronic device. Therefore, when the first electronic device performs an operation in a multiplexed manner, it can determine whether the first electronic device performs an operation on the second electronic device according to whether the multiplexed monitoring function monitors the handle of the network interface including the first information.
  • the proxy call of the network interface of the first electronic device or execute the call of the local network interface of the first electronic device.
  • the first electronic device can distinguish whether the first electronic device uses the network interface of the second electronic device to provide network communication for the first electronic device according to whether the multiplexing monitoring function has detected the handle of the network interface including the first information. ability, or, the first electronic device uses its local network interface to provide the first electronic device with network communication capabilities, so that the first electronic device can be compatible with the local network interface call and the network interface call of the second electronic device, which solves the problem of multi-channel Call compatibility issues under reuse.
  • the first electronic device when the first electronic device satisfies the conditions for remote networking, the first electronic device sends an RPC operation request including the network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • FIG. 5 shows a flowchart of a network connection method provided by an embodiment of the present application.
  • the network connection method may be applied to the network connection system shown in FIG. 1 or FIG. 2 and executed by the first electronic device.
  • the network connection methods include:
  • Step 501 when the remote networking condition is satisfied, send an RPC operation request including the network interface function call number to the second electronic device, so that the second electronic device calls the network interface call function indicated by the network interface function call number, according to the network
  • the interface calls the response information of the network interface called by the function, generates an RPC operation response, and sends the RPC operation response to the first electronic device.
  • Step 502 receiving an RPC operation response sent by the second electronic device.
  • Step 503 analyzing the response information of the network interface from the RPC operation response.
  • the first electronic device when the first electronic device satisfies the condition of being able to remotely connect to the network, the first electronic device sends an RPC operation request including a network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • the method further includes:
  • the handle includes the first information, and after the second electronic device invokes the network interface, update the handle of the network interface to the first information, and send it to the first electronic device, the first The information is used to indicate that the network interface is called through the RPC operation request;
  • an RPC operation request is sent to the second electronic device, and the RPC operation request further includes the handle.
  • responding to the networking instruction also includes:
  • the network interface calling function is called to obtain the response information of the network interface called by the network interface calling function .
  • the conditions for remote networking include:
  • the first electronic device is connected to the second electronic device; or,
  • the first electronic device is connected to the second electronic device, and the power consumption of the first electronic device is greater than a set power consumption threshold; or,
  • the first electronic device is connected to the second electronic device, and the power of the first electronic device is lower than a set power threshold.
  • FIG. 6 shows a flowchart of a network connection method provided by an embodiment of the present application.
  • the network connection method may be applied to the network connection system shown in FIG. 1 or FIG. 2 and executed by the second electronic device.
  • the network connection methods include:
  • Step 601. Receive an RPC operation request including a network interface function call number sent by the first electronic device.
  • Step 602 call the network interface call function indicated by the network interface function call number.
  • Step 603 Generate an RPC operation response according to the response information of the network interface invoked by the network interface calling function.
  • Step 604 sending an RPC operation response to the first electronic device.
  • the first electronic device when the first electronic device satisfies the condition of being remotely networkable, the first electronic device sends an RPC operation request including a network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • the handle of the network interface is the second information.
  • the method further includes:
  • the handle of the network interface is updated from the second information to the first information, and the first information is used to indicate that the network interface is called by the RPC operation request;
  • the handle is sent to the first electronic device.
  • calling the network interface call function indicated by the network interface function call number includes: calling the network interface function call when the multiplex monitoring function detects that the handle of the network interface including the second information exists in the second storage space The network interface indicated by the number calls the function;
  • Methods also include:
  • RPC operation request sent by the first electronic device, where the RPC operation request further includes: a handle of a network interface including the first information;
  • the received handle is updated from the first information to the second information, and the updated handle is updated and stored in the second storage space, and the handle is monitored by the multiplexing monitoring function.
  • the network connection method provided in the embodiment of the present application may be executed by a network connection device, or a control module in the network connection device for executing the network connection method.
  • the network connection device provided in the embodiment of the present application is described by taking the network connection method performed by the network connection device as an example.
  • FIG. 7 shows a block diagram of a network connection device provided by an embodiment of the present application.
  • the network connection device is applied to the first electronic equipment.
  • the network connection device 700 includes:
  • the sending module 701 is configured to send an RPC operation request including a network interface function call number to the second electronic device when the remote networking condition is satisfied, so that the second electronic device calls the network interface call function indicated by the network interface function call number , generating an RPC operation response according to the response information of the network interface invoked by the network interface calling function, and sending the RPC operation response to the first electronic device.
  • the receiving module 702 is configured to receive the RPC operation response sent by the second electronic device.
  • the parsing module 703 is configured to parse the RPC operation response to obtain the response information of the network interface.
  • the receiving module 702 is also configured to receive the handle of the network interface sent by the second electronic device, the handle includes the first information, and the handle is to update the handle of the network interface to the first information after the second electronic device invokes the network interface , sent to the first electronic device, the first information is used to instruct the network interface to call through an RPC operation request.
  • the device 700 further includes: a storage module, configured to store the handle in the first storage space, and the handle is monitored by the multiplexing monitoring function.
  • the sending module 701 is also configured to send an RPC operation request to the second electronic device in response to the network connection instruction, when the multiplex monitoring function is used to detect that there is a handle including the first information in the first storage space, and the RPC operation
  • the request also includes a handle.
  • the device 700 also includes:
  • the calling module is used for invoking the network interface calling function and obtaining the network interface calling function call in response to the network connection instruction when the multiplexing monitoring function is not used to monitor the existence of the handle including the first information in the first storage space. Response information from the network interface.
  • the conditions for remote networking include:
  • the first electronic device is connected to the second electronic device; or,
  • the first electronic device is connected to the second electronic device, and the power consumption of the first electronic device is greater than a set power consumption threshold; or,
  • the first electronic device is connected to the second electronic device, and the power of the first electronic device is lower than a set power threshold.
  • the first electronic device when the first electronic device satisfies the condition of being remotely networkable, the first electronic device sends an RPC operation request including a network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • FIG. 8 shows a block diagram of a network connection device provided by an embodiment of the present application.
  • the network connection device is applied to the first electronic equipment.
  • the network connection device 800 includes:
  • the receiving module 801 is configured to receive an RPC operation request including a network interface function call number sent by the first electronic device.
  • the calling module 802 is configured to call the network interface calling function indicated by the network interface function calling number.
  • the generating module 803 is configured to generate an RPC operation response according to the response information of the network interface invoked by the network interface calling function.
  • the handle of the network interface is the second information
  • the device 800 further includes:
  • the update module is used to update the handle of the network interface from the second information to the first information, and the first information is used to instruct the network interface to call through the RPC operation request.
  • the sending module 804 is further configured to send the handle to the first electronic device.
  • the calling module 802 is further configured to: call the network interface calling function indicated by the network interface function calling number when the multiplexing monitoring function is used to monitor that the second storage space contains a handle of the network interface including the second information ;
  • the receiving module 801 is further configured to receive an RPC operation request sent by the first electronic device, where the RPC operation request further includes: a handle of the network interface including the first information;
  • the update module is also used to update the received handle from the first information to the second information, update and store the updated handle in the second storage space, and the handle is monitored by the multiplexing monitoring function.
  • the first electronic device when the first electronic device satisfies the condition of being remotely networkable, the first electronic device sends an RPC operation request including a network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • the network connection device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the network connection device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the network connection device provided by the embodiment of the present application can realize each process realized by any one of the method embodiments shown in FIG. 3 to FIG. 6 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and programs or instructions stored in the memory 902 and operable on the processor 901,
  • an electronic device 900 including a processor 901, a memory 902, and programs or instructions stored in the memory 902 and operable on the processor 901,
  • the program or instruction is executed by the processor 901
  • each process of the above-mentioned network connection method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 10 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the processor 1010 is configured to send a remote procedure call (RPC) operation request including a network interface function call number to the second electronic device when the remote networking condition is satisfied, so as to Make the second electronic device call the network interface call function indicated by the network interface function call number, generate an RPC operation response according to the response information of the network interface called by the network interface call function, and send it to the first electronic device The RPC operation response;
  • RPC remote procedure call
  • the processor 1010 is further configured to receive the RPC operation response sent by the second electronic device;
  • the processor 1010 is further configured to parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device when the first electronic device satisfies the condition of being able to remotely connect to the network, the first electronic device sends an RPC operation request including a network interface function call number to the second electronic device.
  • the second electronic device calls the network interface call function indicated by the network interface function call number, generates an RPC operation response according to the response information of the network interface called by the network interface call function, and sends the RPC operation response to the first electronic device.
  • the first electronic device may parse the RPC operation response to obtain the response information of the network interface.
  • the first electronic device may send an RPC operation request to the second electronic device, so that the second electronic device invokes a local network interface, and returns the response information of the network interface to the first electronic device.
  • the proxy calling of the network interface of the second electronic device by the first electronic device is realized, so that the network interface of the second electronic device provides the network communication capability provided by the first electronic device.
  • the first electronic device uses its own network components such as a modem to provide network communication capabilities.
  • the working hours of the network components of the first electronic device are reduced, thereby reducing the impact of the high operating power consumption of the network components on the battery life of the first electronic device. impact, improving the battery life of the first electronic device.
  • processor 1010 is also used for:
  • the RPC operation request further includes the handle.
  • the processor 1010 is further configured to: in response to the networking instruction, when the multiplexing monitoring function is not used to detect that there is a handle including the first information in the first storage space Next, call the network interface calling function, and obtain the response information of the network interface called by the network interface calling function.
  • the remote networking conditions include:
  • the first electronic device is connected to the second electronic device; or,
  • the first electronic device is connected to the second electronic device, and the power consumption of the first electronic device is greater than a set power consumption threshold; or,
  • the first electronic device is connected to the second electronic device, and the power of the first electronic device is lower than a set power threshold.
  • the processor 1010 is configured to receive a remote procedure call (RPC) operation request including a network interface function call number sent by the first electronic device;
  • RPC remote procedure call
  • the processor 1010 is further configured to call the network interface call function indicated by the network interface function call number; and is also used to generate an RPC operation response according to the response information of the network interface called by the network interface call function; An electronic device sends the RPC operation response.
  • the handle of the network interface is the second information
  • the processor 1010 is further configured to:
  • the processor 1010 is further configured to: call the network interface function call number when the multiplex monitoring function detects that the handle of the network interface including the second information exists in the second storage space The indicated network interface calls the function;
  • the RPC operation request further includes: a handle of the network interface including the first information;
  • the received handle is updated from the first information to the second information, and the updated handle is updated and stored in the second storage space, and the handle is monitored by the multiplexing monitoring function.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • Processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above-mentioned network connection method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned network connection method embodiment
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run programs or instructions to implement the above-mentioned network connection method embodiment
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

本申请公开了一种网络连接方法、装置和电子设备,属于电子技术领域。网络连接方法包括:在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求,以使所述第二电子设备调用所述网络接口函数调用号指示的网络接口调用函数,根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向所述第一电子设备发送所述RPC操作响应;接收所述第二电子设备发送的所述RPC操作响应;从所述RPC操作响应中解析得到所述网络接口的响应信息。

Description

网络连接方法、装置和电子设备
相关申请的交叉引用
本申请要求在2021年11月17日提交中国专利局、申请号为202111366049.5、名称为“网络连接方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于电子技术领域,具体涉及一种网络连接方法、装置和电子设备。
背景技术
随着移动互联网技术的发展,诸如手表、手环等小体积智能终端也因集成有调制解调器(modem)使得其具有蜂窝网络能力便于用户网络通信。进而逐渐成为人们生活、工作、旅行的随身携带之物。然而,调制解调器较长时间的持续工作会导致智能终端的功耗较高,影响小体积智能终端的续航能力。
发明内容
本申请实施例的目的是提供一种网络连接方法、装置和电子设备,能够解决调制解调器较长时间的持续工作影响小体积智能终端的续航能力的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种网络连接方法,应用于第一电子设备,所述方法包括:
在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的远程过程调用(Remote Procedure Call,RPC)操作请求,以使所述第二电子设备调用所述网络接口函数调用号指示的网络接口调用函数,根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向所述第一电子设备发送所述RPC操作响应;
接收所述第二电子设备发送的所述RPC操作响应;
从所述RPC操作响应中解析得到所述网络接口的响应信息。
第二方面,本申请实施例提供了一种网络连接方法,应用于第二电子设备,所述方法包括:
接收第一电子设备发送的包括网络接口函数调用号的远程过程调用远程过程调用操作请求;
调用所述网络接口函数调用号指示的网络接口调用函数;
根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应;
向所述第一电子设备发送所述RPC操作响应。
第三方面,本申请实施例提供了一种网络连接装置,应用于第一电子设备,所述装置包括:
发送模块,用于在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求,以使所述第二电子设备调用所述网络接口函数调用号指示的网络接口调用函数,根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向所述第一电子设备发送所述RPC操作响应;
接收模块,用于接收所述第二电子设备发送的所述RPC操作响应;
解析模块,用于从所述RPC操作响应中解析得到所述网络接口的响应信息。
第四方面,本申请实施例提供了一种网络连接装置,应用于第二电子设备,所述装置包括:
接收模块,用于接收第一电子设备发送的包括网络接口函数调用号的远程过程调用RPC操作请求;
调用模块,用于调用所述网络接口函数调用号指示的网络接口调用函数;
生成模块,用于根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应;
发送模块,用于向所述第一电子设备发送所述RPC操作响应。
第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面或者第二方面任一所述的方法的步骤。
第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质 上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面或者第二方面任一所述的方法的步骤。
第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面或者第二方面任一所述的方法。
本申请实施例中,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
附图说明
图1是本申请实施例提供的一种网络连接系统的结构示意图。
图2是本申请实施例提供的一种网络连接系统的系统框架示意图。
图3是本申请实施例提供的一种网络连接方法的流程图。
图4是本申请实施例提供的另一种网络连接方法的流程图。
图5是本申请实施例提供的又一种网络连接方法的流程图。
图6是本申请实施例提供的再一种网络连接方法的流程图。
图7是本申请实施例提供的一种网络连接装置的框图。
图8是本申请实施例提供的另一种网络连接装置的框图。
图9是本申请实施例提供的一种电子设备的框图。
图10是本申请实施例提供的一种电子设备的硬件结构示意图。
具体实施例
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的网络连接方法进行详细地说明。
请参考图1,其示出了本申请实施例提供的一种网络连接系统的结构示意图。如图1所示,该网络连接系统包括:第一电子设备101和第二电子设备102。第一电子设备101与第二电子设备102之间可以基于蓝牙、通用串行总线(Universal Serial Bus,USB)等协议建立连接,进而通过建立的连接进行通信。
本申请实施例下述以第一电子设备和第二电子设备之间采用蓝牙通讯为例进行说明。可选的,第一电子设备和/或第二电子设备可以具有蓝牙低能耗(Bluetooth Low Energy,BLE)组件和经典蓝牙(Bluetooth,BT)模块。第一电子设备和第二电子设备之间可以通过蓝牙低能耗组件和/或经典蓝牙模块连接,以实现第一电子设备和第二电子设备之间的BLE连接或者BT连接。
其中,第一电子设备和第二电子设备可以运行有远程过程调用(Remote Procedure Call,RPC)组件,以使得第一电子设备具有远程调用第二电子设备的功能。第一电子设备可以通过其与第二电子设备之间的蓝牙连接向第二电子设备发送RPC操作请求,该RPC操作请求包括网络接口函数调用号。第二电子设备子在接收到RPC操作请求后,可以调用网络接口函数调用号指示的网络接口调用函数。以通过网络接口调用函数调用网络接口调用函数 对应的网络接口。将网络接口的响应信息发送至第一电子设备,从而实现第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。此时,第一电子设备可以作为网络代理客户端,第二电子设备可以作为网络代理服务端,为第一电子设备提供网络通讯能力。示例的,第一电子设备和第二电子设备可以为手机、电脑、可穿戴设备等。图1以第一电子设备为可穿戴设备,第二电子设备为手机为例进行说明。
可选的,以第一电子设备与第二电子设备之间可以基于蓝牙连接为例。请参考图2,其示出了本申请实施例提供的一种网络连接系统的系统框架示意图。如图2所示,第一电子设备101包括微控制单元(Microcontroller Unit,MCU),该MCU包括:蓝牙物理链路层1011、RPC组件层1012以及网络代理客户端层1013。第二电子设备102包括:蓝牙物理链路层1021、RPC组件层1022以及网络代理服务端层1023。
其中,第一电子设备101的网络代理客户端层1013和第二电子设备102的网络代理服务端层1023均包括网络接口。第一电子设备101的RPC组件层1012用于根据RPC协议生成包括网络接口函数调用号的RPC操作请求。并将RPC操作请求传输至蓝牙物理链路层1011。第一电子设备101的蓝牙物理链路层1011将RPC操作请求传输至第二电子设备102的蓝牙物理链路层1021。蓝牙物理链路层1021将接收到的RPC操作请求传输至RPC组件层1022。RPC组件层1022解析RPC操作请求,得到调用网络接口函数调用号。第二电子设备102调用网络接口函数调用号指示的网络接口调用函数,通过网络接口调用函数调用网络代理服务端层1023中网络接口。
请参考图3,其示出了本申请实施例提供的一种网络连接方法的流程图。网络连接方法可以应用于图1或者图2所示的网络连接系统。如图3所示,网络连接方法包括:
步骤301、第一电子设备在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的RPC操作请求。
本申请实施例中,第一电子设备可以周期性地或者实时地检测第一电子设备的运行数据,判断第一电子设备是否满足可远程连网条件,以确定第一电子设备是否需要执行对第二电子设备的网络接口的代理调用。
在第一电子设备未满足可远程连网条件时,第一电子设备可以调用本地网络接口,以实现网络通信。在第一电子设备满足可远程连网条件时,第一 电子设备可以获取网络接口函数的网络接口函数调用号。网络接口函数用于调用网络接口,网络接口函数调用号用于标识网络接口函数。根据RPC协议封装网络接口函数的网络接口函数调用号,生成RPC操作请求。第一电子设备可以通过其与第二电子设备之间基于蓝牙建立的连接,向第二电子设备发送RPC操作请求。需要说明的是,RPC操作请求中还可以包括:连网参数、第二电子设备的网络地址等信息。其中,网络接口用于提供网络通讯功能。示例的,网络接口可以为套接字(socket)接口,socket接口又称为bsd socket接口等。
其中,可远程连网条件可以指的是第一电子设备可以对其他电子设备的网络接口进行代理调用的条件。可选的,可远程连网条件可以包括:第一电子设备与第二电子设备连接;或者,第一电子设备与第二电子设备连接,且第一电子设备的功耗大于设定功耗阈值;或者,第一电子设备与第二电子设备连接,且第一电子设备的电量低于设定电量阈值。
示例的,在可远程连网条件为第一电子设备与第二电子设备连接的情况下,第一电子设备可以实时获取其与第二电子设备的蓝牙连接状态。在检测到第一电子设备和第二电子设备的蓝牙连接状态为指示第一电子设备和第二电子设备之间基于蓝牙成功建立连接的情况下,确定第一电子设备满足可远程连网条件。
步骤302、第二电子设备调用网络接口函数调用号指示的网络接口调用函数。
本申请实施例中,第二电子设备在接收到第一电子设备发送的RPC操作请求后,可以根据RPC协议解析RPC操作请求,得到RPC操作请求包括的网络接口函数调用号。第二电子设备调用网络接口函数调用号指示的网络接口调用函数,以通过网络接口调用函数调用第二电子设备本地的网络接口。
示例的,RPC操作请求包括:socket接口参数以及用于调用socket接口的网络接口调用函数的网络接口函数调用号。第二电子设备解析RPC操作请求后,得到socket接口参数以及网络接口函数调用号。第二电子设备调用网络接口函数调用号指示的网络接口函数,并向网络接口函数传入socket接口参数。
步骤303、第二电子设备根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应。
本申请实施例中,第二电子设备调用网络接口调用函数,以通过网络接口调用函数调用网络接口,获取网络接口返回的响应信息。第二电子设备根据RPC协议封装响应信息,生成RPC操作响应。
步骤304、第二电子设备向第一电子设备发送RPC操作响应。
本申请实施例中,第二电子设备通过其与第一电子设备之间基于蓝牙建立的连接,向第一电子设备发送RPC操作响应。
步骤305、第一电子设备从RPC操作响应中解析得到网络接口的响应信息。
本申请实施例中,第一电子设备在接收到第二电子设备发送的RPC操作响应后,解析RPC操作响应,得到网络接口的响应信息,实现第一电子设备的网络通讯功能。
综上所述,本申请实施例提供的网络连接方法,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
请参考图4,其示出了本申请实施例提供的一种网络连接方法的流程图。网络连接方法可以应用于图1或者图2所示的网络连接系统。如图4所示,网络连接方法包括:
步骤401、第一电子设备在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的RPC操作请求。
该步骤的解释和实现方式可以参考前述步骤301的解释和实现方式,本 申请实施例对此不做赘述。
步骤402、第二电子设备调用网络接口函数调用号指示的网络接口调用函数。
该步骤的解释和实现方式可以参考前述步骤302的解释和实现方式,本申请实施例对此不做赘述。
需要说明的是,在一种可选的应用场景下,第一电子设备和第二电子设备均可以采用多路复用方式执行操作,本申请实施例以第一电子设备和第二电子设备均可以采用多路复用方式执行操作为例进行说明。例如,第二电子设备可以采用多路复用监听函数调用网络接口调用函数。则第二电子设备可以创建网络接口调用函数调用的网络接口的句柄,该句柄的内容为第二信息。第二电子设备将网络接口的句柄存储至第二存储空间。第二电子设备调用网络接口函数调用号指示的网络接口调用函数的过程包括:在利用多路复用监听函数监听到第二存储空间存在包括第二信息的网络接口的句柄时,调用网络接口函数调用号指示的网络接口调用函数。
其中,句柄又称句柄号,其被多路复用监听函数监听。可选的,第二存储空间可以存储有网络接口的句柄。多路复用监听函数监听网络接口的句柄。第二电子设备在利用多路复用监听函数监听到第二存储空间存在包括第二信息的网络接口的句柄时,调用网络接口函数调用号指示的网络接口调用函数的过程可以包括:在利用多路复用监听函数监听到网络接口的句柄为第二信息时,调用网络接口函数调用号指示的网络接口调用函数。可选的,多路复用监听函数可以为select函数或者poll函数。
示例的,第二电子设备响应于连网指令,建立网络接口的句柄,该句柄的内容为第二信息。将网络接口的句柄存储于第二存储空间。select函数监听到网络接口的句柄为第二信息时,调用网络接口函数调用号指示的网络接口调用函数。其中,连网指令可以是第二电子设备所属的用户在想要采用第二电子设备使用网络通讯功能时触发第二电子设备生成的。例如,用户点击连网标识,以使得第二电子设备在接收到针对连网标识的点击操作时,响应于该点击操作,生成连网指令。
步骤403、第二电子设备根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应。
本申请实施例中,第二电子设备调用网络接口调用函数,以通过网络接口调用函数调用网络接口,获取网络接口返回的响应信息。第二电子设备根 据RPC协议封装响应信息,生成RPC操作响应。
步骤404、第二电子设备向第一电子设备发送RPC操作响应。
本申请实施例中,第二电子设备通过其与第一电子设备之间基于蓝牙建立的连接,向第一电子设备发送RPC操作响应。
步骤405、第一电子设备从RPC操作响应中解析得到网络接口的响应信息。
本申请实施例中,第一电子设备在接收到第二电子设备发送的RPC操作响应后,解析RPC操作响应,得到网络接口的响应信息,实现第一电子设备的网络通讯功能。
步骤406、第二电子设备将网络接口的句柄由第二信息更新为第一信息,第一信息用于指示网络接口通过RPC操作请求调用。
可选的,第一信息可以为指定信息。或者,第一信息可以为采用设定规则根据第二信息生成的信息。在第一信息可以为采用设定规则根据第二信息生成的信息的情况下,第二电子设备将网络接口的句柄由第二信息更新为第一信息的过程可以包括:第二电子设备采用设定规则根据第二信息生成第一信息,将网络接口的句柄由第二信息更新为第一信息。
示例的,句柄的内容可以为数值,且句柄可以为大于10万的定值。设定规则可以为第一信息为第二信息与100000之和。则假设第二电子设备创建的网络接口的句柄为26,即第二信息为26,第二电子设备采用设定规则根据第二信息生成的第一信息为100026。将网络接口的句柄更新为100026。
步骤407、第二电子设备向第一电子设备发送句柄。
本申请实施例中,第二电子设备可以通过其与第一电子设备之间基于蓝牙建立的连接,向第一电子设备发送网络接口的句柄。需要说明的是,步骤406可以在步骤403之前执行,则第二电子设备根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应可以替换为:第二电子设备根据网络接口调用函数调用的网络接口的响应信息以及网络接口的句柄,生成RPC操作响应。也即是,RPC操作响应可以包括:网络接口的响应信息以及网络接口的句柄。
步骤408、第一电子设备将句柄存储至第一存储空间,句柄被多路复用监听函数监听。
本申请实施例中,第一电子设备在接收到第二电子设备发送的网络接口的句柄后,可以将网络接口的句柄存储至第一存储空间。示例的,第一电子 设备可以包括虚拟文件系统层,第一存储空间可以为虚拟文件系统层对应的存储空间。第一电子设备可以利用多路复用函数监听第一存储空间中存储的句柄。
步骤409、第一电子设备响应于连网指令,在利用多路复用监听函数监听到第一存储空间存在包括第一信息的句柄的情况下,向第二电子设备发送RPC操作请求,RPC操作请求还包括句柄。
本申请实施例中,用户想要使用网络通讯功能时,可以对第一电子设备执行用于触发网络通讯功能的目标输入,响应于目标输入,生成连网指令,连网指令用于反映第一电子设备需要调用网络接口。响应于连网指令,第一电子设备可以本地调用网络接口调用函数,以通过网络接口调用函数调用网络接口。获取网络接口的响应信息。或者,第一电子设备也可以向第二电子设备发送RPC操作请求,以使得第一电子设备执行对第二电子设备的网络接口的代理调用,从而获取第二电子设备的网络接口的响应信息。
其中,第一电子设备响应于连网指令,判断利用多路复用监听函数是否监听到第一存储空间存在包括第一信息的句柄,以确定第一电子设备是否可以通过向第二电子设备发送RPC请求,执行对第二电子设备的网络接口的代理调用。
在利用多路复用监听函数监听到第一存储空间存在包括第一信息的句柄时,表明第一电子设备可以执行对第二电子设备的网络接口的代理调用。则第一电子设备向第二电子设备发送RPC操作请求。RPC操作请求包括网络接口函数调用号以及包括第一信息的网络接口的句柄。在利用多路复用监听函数未监听到第一存储空间存在包括第一信息的句柄时,表明第一电子设备无法执行对第二电子设备的网络接口的代理调用。则第一电子设备可以调用网络接口调用函数,获取网络接口调用函数调用的网络接口的响应信息。也即是,第一电子设备可以调用本地的网络接口,以接收网络接口的响应信息,实现网络通信。
可选的,第一存储空间可以存储有网络接口的句柄。在未接收到第二电子设备发送的包括第一信息的句柄时,第一存储空间存储的句柄可以为第一电子设备创建的网络接口的句柄,句柄包括第三信息。第一电子设备在接收到第二电子设备发送的包括第一信息的句柄后,第一电子设备将句柄存储至第一存储空间的过程可以包括:第一电子设备将第一存储空间中,包括第三信息的网络接口的句柄更新为包括第一信息的句柄。
则第一电子设备可以响应于连网指令,判断利用多路复用监听函数监听到的第一存储空间中网络接口的句柄是否为第一信息。在利用多路复用监听函数监听到第一存储空间中网络接口的句柄为第一信息的情况下,确定第一存储空间存在包括第一信息的句柄。在利用多路复用监听函数监听到第一存储空间中网络接口的句柄不为第一信息的情况下,确定第一存储空间不存在包括第一信息的句柄。
示例的,继续以前述步骤406中的示例为例。第一电子设备判断利用多路复用监听函数监听到的第一存储空间中网络接口的句柄是否为100026。在监听到的第一存储空间中网络接口的句柄为100026的情况下,向第二电子设备发送RPC操作请求,以使得第二电子设备响应于RPC请求,调用本地网络接口,并向第一电子设备返回网络接口的响应信息。在监听到的第一存储空间中网络接口的句柄不为100026的情况下,第一电子设备可以调用本地网络接口,获取网络接口的响应信息。
步骤410、第二电子设备将接收到句柄由第一信息更新为第二信息。执行步骤402。
本申请实施例中,第二电子设备在接收到第一电子设备发送的包括网络接口的句柄的RPC操作请求后,将接收到句柄由第一信息更新为第二信息,将更新后的句柄更新存储至第二存储空间。从而使得第二电子设备执行步骤402在利用多路复用监听函数监听到第二存储空间存在包括第二信息的网络接口的句柄的情况下,调用网络接口函数调用号指示的网络接口调用函数。
可选的,在第一信息可以为采用设定规则根据第二信息生成的信息的情况下,第二电子设备将接收到句柄由第一信息更新为第二信息的过程可以包括:第二电子设备采用设定规则根据第一信息,还原生成第二信息,将网络接口的句柄由第一信息更新为第二信息。
示例的,设定规则可以为第一信息为第二信息与100000之和。则假设第二电子设备接收到的RPC操作请求中句柄为100026,第二电子设备采用设定规则根据第一信息生成的第二信息为26。将第一存储空间中网络接口的句柄更新为26。
本申请实施例中,通过在第二电子设备调用网络接口函数调用号指示的网络接口调用函数后,第二电子设备将网络接口的句柄更新为用于指示网络接口通过RPC操作请求调用的第一信息,并将更新后的网络接口的句柄发送至第一电子设备。从而使得第一电子设备在采用多路复用方式执行操作 时,可以根据多路复用监听函数是否监听到包括第一信息的网络接口的句柄,以确定第一电子设备执行对第二电子设备的网络接口的代理调用,或者执行第一电子设备本地的网络接口的调用。也即是,第一电子设备可以根据多路复用监听函数是否监听到包括第一信息的网络接口的句柄,区分第一电子设备采用第二电子设备的网络接口为第一电子设备提供网络通讯能力,或者,第一电子设备采用其本地的网络接口为第一电子设备提供网络通讯能力,使得第一电子设备可以兼容本地的网络接口调用以及第二电子设备的网络接口调用,解决了多路复用下调用兼容问题。
综上所述,本申请实施例提供的网络连接方法,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
请参考图5,其示出了本申请实施例提供的一种网络连接方法的流程图。网络连接方法可以应用于图1或者图2所示的网络连接系统,由第一电子设备执行。如图5所示,网络连接方法包括:
步骤501、在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的RPC操作请求,以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。
步骤502、接收第二电子设备发送的RPC操作响应。
步骤503、从RPC操作响应中解析得到网络接口的响应信息。
本申请实施例中,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
可选的,向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求之后,方法还包括:
接收第二电子设备发送的网络接口的句柄,句柄包括第一信息,句柄为第二电子设备调用网络接口后,将网络接口的句柄更新为第一信息,向第一电子设备发送的,第一信息用于指示网络接口通过RPC操作请求调用;
将句柄存储至第一存储空间,句柄被多路复用监听函数监听;
响应于连网指令,在利用多路复用监听函数监听到第一存储空间存在包括第一信息的句柄的情况下,向第二电子设备发送RPC操作请求,RPC操作请求还包括句柄。
可选的,响应于连网指令还包括:
响应于连网指令,在利用多路复用监听函数未监听到第一存储空间存在包括第一信息的句柄的情况下,调用网络接口调用函数,获取网络接口调用函数调用的网络接口的响应信息。
可选的,可远程连网条件包括:
第一电子设备与第二电子设备连接;或者,
第一电子设备与第二电子设备连接,且第一电子设备的功耗大于设定功耗阈值;或者,
第一电子设备与第二电子设备连接,且第一电子设备的电量低于设定电量阈值。
本申请实施例提供的网络连接方法中,各步骤的解释和实现方式可以参考前述图3或者图4所示的网络连接方法中相关步骤的解释和实现方式,本申请实施例对此不做赘述。
请参考图6,其示出了本申请实施例提供的一种网络连接方法的流程图。网络连接方法可以应用于图1或者图2所示的网络连接系统,由第二电子设备执行。如图6所示,网络连接方法包括:
步骤601、接收第一电子设备发送的包括网络接口函数调用号的RPC操作请求。
步骤602、调用网络接口函数调用号指示的网络接口调用函数。
步骤603、根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应。
步骤604、向第一电子设备发送RPC操作响应。
本申请实施例中,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
可选的,网络接口的句柄为第二信息,调用网络接口函数调用号指示的网络接口调用函数之后,方法还包括:
将网络接口的句柄由第二信息更新为第一信息,第一信息用于指示网络 接口通过RPC操作请求调用;
向第一电子设备发送句柄。
可选的,调用网络接口函数调用号指示的网络接口调用函数,包括:在利用多路复用监听函数监听到第二存储空间存在包括第二信息的网络接口的句柄时,调用网络接口函数调用号指示的网络接口调用函数;
方法还包括:
接收第一电子设备发送的RPC操作请求,RPC操作请求还包括:包括第一信息的网络接口的句柄;
将接收到句柄由第一信息更新为第二信息,将更新后的句柄更新存储至第二存储空间,句柄被多路复用监听函数监听。
本申请实施例提供的网络连接方法中,各步骤的解释和实现方式可以参考前述图3或者图4所示的网络连接方法中相关步骤的解释和实现方式,本申请实施例对此不做赘述。
需要说明的是,本申请实施例提供的网络连接方法,执行主体可以为网络连接装置,或者该网络连接装置中的用于执行网络连接的方法的控制模块。本申请实施例中以网络连接装置执行网络连接的方法为例,说明本申请实施例提供的网络连接的装置。
请参考图7,其示出了本申请实施例提供的一种网络连接装置的框图。网络连接装置应用于第一电子设备。如图7所示,网络连接装置700,包括:
发送模块701,用于在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的RPC操作请求,以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。
接收模块702,用于接收第二电子设备发送的RPC操作响应。
解析模块703,用于从RPC操作响应中解析得到网络接口的响应信息。
可选的,接收模块702,还用于接收第二电子设备发送的网络接口的句柄,句柄包括第一信息,句柄为第二电子设备调用网络接口后,将网络接口的句柄更新为第一信息,向第一电子设备发送的,第一信息用于指示网络接口通过RPC操作请求调用。
装置700还包括:存储模块,用于将句柄存储至第一存储空间,句柄被多路复用监听函数监听。
发送模块701,还用于响应于连网指令,在利用多路复用监听函数监听 到第一存储空间存在包括第一信息的句柄的情况下,向第二电子设备发送RPC操作请求,RPC操作请求还包括句柄。
可选的,装置700还包括:
调用模块,用于响应于连网指令,在利用多路复用监听函数未监听到第一存储空间存在包括第一信息的句柄的情况下,调用网络接口调用函数,获取网络接口调用函数调用的网络接口的响应信息。
可选的,可远程连网条件包括:
第一电子设备与第二电子设备连接;或者,
第一电子设备与第二电子设备连接,且第一电子设备的功耗大于设定功耗阈值;或者,
第一电子设备与第二电子设备连接,且第一电子设备的电量低于设定电量阈值。
本申请实施例中,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
请参考图8,其示出了本申请实施例提供的一种网络连接装置的框图。网络连接装置应用于第一电子设备。如图8所示,网络连接装置800,包括:
接收模块801,用于接收第一电子设备发送的包括网络接口函数调用号的RPC操作请求。
调用模块802,用于调用网络接口函数调用号指示的网络接口调用函数。
生成模块803,用于根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应。
发送模块804,用于向第一电子设备发送RPC操作响应。
可选的,网络接口的句柄为第二信息,装置800还包括:
更新模块,用于将网络接口的句柄由第二信息更新为第一信息,第一信息用于指示网络接口通过RPC操作请求调用。
发送模块804,还用于向第一电子设备发送句柄。
可选的,调用模块802,还用于:在利用多路复用监听函数监听到第二存储空间存在包括第二信息的网络接口的句柄时,调用网络接口函数调用号指示的网络接口调用函数;
接收模块801,还用于接收第一电子设备发送的RPC操作请求,RPC操作请求还包括:包括第一信息的网络接口的句柄;
更新模块,还用于将接收到句柄由第一信息更新为第二信息,将更新后的句柄更新存储至第二存储空间,句柄被多路复用监听函数监听。
本申请实施例中,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
本申请实施例中的网络连接装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、 车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的网络连接装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的网络连接装置能够实现图3至图6任一所示的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图9所示,本申请实施例还提供一种电子设备900,包括处理器901,存储器902,存储在存储器902上并可在所述处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述网络连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图10为实现本申请实施例的一种电子设备的硬件结构示意图。该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,在电子设备为第一电子设备的情况下,处理器1010,用于在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求,以使所述第二电子设备调用所述网络接口函数调用号指示的网络接口调用函数,根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向所述第一电子设备发送所述RPC操作 响应;
处理器1010,还用于接收所述第二电子设备发送的所述RPC操作响应;
处理器1010,还用于从所述RPC操作响应中解析得到所述网络接口的响应信息。
本申请实施例中,在第一电子设备满足可远程连网条件时,第一电子设备通过向第二电子设备发送包括网络接口函数调用号的RPC操作请求。以使第二电子设备调用网络接口函数调用号指示的网络接口调用函数,并根据网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向第一电子设备发送RPC操作响应。第一电子设备在接收到第二电子设备发送的RPC操作响应后,可以从RPC操作响应中解析得到网络接口的响应信息。该技术方案中,第一电子设备可以通过向第二电子设备发送RPC操作请求,以使得第二电子设备调用本地的网络接口,并将网络接口的响应信息返回至第一电子设备。实现了第一电子设备对第二电子设备的网络接口的代理调用,使得第二电子设备的网络接口为第一电子设备提供的网络通讯能力。相较于相关技术,避免了第一电子设备采用自带的诸如调制解调器等网络组件提供网络通讯能力。在保障第一电子设备具有网络通讯能力的基础上,降低了第一电子设备自带的网络组件的工作时长,进而降低了该网络组件的运行功耗较高对第一电子设备的续航能力的影响,提高了第一电子设备的续航能力。
可选的,处理器1010,还用于:
接收所述第二电子设备发送的所述网络接口的句柄,所述句柄包括第一信息,所述句柄为所述第二电子设备调用所述网络接口后,将所述网络接口的句柄更新为所述第一信息,向所述第一电子设备发送的,所述第一信息用于指示所述网络接口通过RPC操作请求调用;
将所述句柄存储至第一存储空间,所述句柄被多路复用监听函数监听;
响应于连网指令,在利用所述多路复用监听函数监听到所述第一存储空间存在包括所述第一信息的句柄的情况下,向所述第二电子设备发送所述RPC操作请求,所述RPC操作请求还包括所述句柄。
可选的,处理器1010,还用于:响应于所述连网指令,在利用所述多路复用监听函数未监听到所述第一存储空间存在包括所述第一信息的句柄的情况下,调用所述网络接口调用函数,获取所述网络接口调用函数调用的网络接口的响应信息。
可选的,所述可远程连网条件包括:
所述第一电子设备与所述第二电子设备连接;或者,
所述第一电子设备与所述第二电子设备连接,且所述第一电子设备的功耗大于设定功耗阈值;或者,
所述第一电子设备与所述第二电子设备连接,且所述第一电子设备的电量低于设定电量阈值。
在电子设备为第二电子设备的情况下,处理器1010,用于接收第一电子设备发送的包括网络接口函数调用号的远程过程调用RPC操作请求;
处理器1010,还用于调用所述网络接口函数调用号指示的网络接口调用函数;以及还用于根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应;向所述第一电子设备发送所述RPC操作响应。
可选的,所述网络接口的句柄为第二信息,处理器1010,还用于:
将所述网络接口的句柄由所述第二信息更新为所述第一信息,所述第一信息用于指示所述网络接口通过RPC操作请求调用;
向所述第一电子设备发送所述句柄。
可选的,处理器1010,还用于:在利用多路复用监听函数监听到第二存储空间存在包括所述第二信息的所述网络接口的句柄时,调用所述网络接口函数调用号指示的网络接口调用函数;
接收所述第一电子设备发送的所述RPC操作请求,所述RPC操作请求还包括:包括所述第一信息的所述网络接口的句柄;
将接收到句柄由所述第一信息更新为所述第二信息,将更新后的句柄更新存储至所述第二存储空间,所述句柄被所述多路复用监听函数监听。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操 作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述网络连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述网络连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现。而各实施例示例的方法及单元的这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员 可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。很多情况下上述实施例方法可借助软件加必需的通用硬件平台的方式来实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (18)

  1. 一种网络连接方法,应用于第一电子设备,所述方法包括:
    在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求,以使所述第二电子设备调用所述网络接口函数调用号指示的网络接口调用函数,根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向所述第一电子设备发送所述RPC操作响应;
    接收所述第二电子设备发送的所述RPC操作响应;
    从所述RPC操作响应中解析得到所述网络接口的响应信息。
  2. 根据权利要求1所述的方法,其中,所述向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求之后,所述方法还包括:
    接收所述第二电子设备发送的所述网络接口的句柄,所述句柄包括第一信息,所述句柄为所述第二电子设备调用所述网络接口后,将所述网络接口的句柄更新为所述第一信息,向所述第一电子设备发送的,所述第一信息用于指示所述网络接口通过RPC操作请求调用;
    将所述句柄存储至第一存储空间,所述句柄被多路复用监听函数监听;
    响应于连网指令,在利用所述多路复用监听函数监听到所述第一存储空间存在包括所述第一信息的句柄的情况下,向所述第二电子设备发送所述RPC操作请求,所述RPC操作请求还包括所述句柄。
  3. 根据权利要求2所述的方法,其中,所述响应于连网指令还包括:
    响应于所述连网指令,在利用所述多路复用监听函数未监听到所述第一存储空间存在包括所述第一信息的句柄的情况下,调用所述网络接口调用函数,获取所述网络接口调用函数调用的网络接口的响应信息。
  4. 根据权利要求1所述的方法,其中,所述可远程连网条件包括:
    所述第一电子设备与所述第二电子设备连接;或者,
    所述第一电子设备与所述第二电子设备连接,且所述第一电子设备的功耗大于设定功耗阈值;或者,
    所述第一电子设备与所述第二电子设备连接,且所述第一电子设备的电量低于设定电量阈值。
  5. 一种网络连接方法,应用于第二电子设备,所述方法包括:
    接收第一电子设备发送的包括网络接口函数调用号的远程过程调用RPC操作请求;
    调用所述网络接口函数调用号指示的网络接口调用函数;
    根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应;
    向所述第一电子设备发送所述RPC操作响应。
  6. 根据权利要求5所述的方法,其中,所述网络接口的句柄为第二信息,所述调用所述网络接口函数调用号指示的网络接口调用函数之后,所述方法还包括:
    将所述网络接口的句柄由所述第二信息更新为所述第一信息,所述第一信息用于指示所述网络接口通过RPC操作请求调用;
    向所述第一电子设备发送所述句柄。
  7. 根据权利要求6所述的方法,其中,所述调用所述网络接口函数调用号指示的网络接口调用函数,包括:在利用多路复用监听函数监听到第二存储空间存在包括所述第二信息的所述网络接口的句柄时,调用所述网络接口函数调用号指示的网络接口调用函数;
    所述方法还包括:
    接收所述第一电子设备发送的所述RPC操作请求,所述RPC操作请求 还包括:包括所述第一信息的所述网络接口的句柄;
    将接收到句柄由所述第一信息更新为所述第二信息,将更新后的句柄更新存储至所述第二存储空间,所述句柄被所述多路复用监听函数监听。
  8. 一种网络连接装置,其中,应用于第一电子设备,所述装置包括:
    发送模块,用于在满足可远程连网条件时,向第二电子设备发送包括网络接口函数调用号的远程过程调用RPC操作请求,以使所述第二电子设备调用所述网络接口函数调用号指示的网络接口调用函数,根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应,向所述第一电子设备发送所述RPC操作响应;
    接收模块,用于接收所述第二电子设备发送的所述RPC操作响应;
    解析模块,用于从所述RPC操作响应中解析得到所述网络接口的响应信息。
  9. 根据权利要求8所述的装置,其中,
    所述接收模块,还用于接收所述第二电子设备发送的所述网络接口的句柄,所述句柄包括第一信息,所述句柄为所述第二电子设备调用所述网络接口后,将所述网络接口的句柄更新为所述第一信息,向所述第一电子设备发送的,所述第一信息用于指示所述网络接口通过RPC操作请求调用;
    所述装置还包括:存储模块,用于将所述句柄存储至第一存储空间,所述句柄被多路复用监听函数监听;
    所述发送模块,还用于响应于连网指令,在利用所述多路复用监听函数监听到所述第一存储空间存在包括所述第一信息的句柄的情况下,向所述第二电子设备发送所述RPC操作请求,所述RPC操作请求还包括所述句柄。
  10. 根据权利要求9所述的装置,其中,所述装置还包括:
    调用模块,用于响应于所述连网指令,在利用所述多路复用监听函数未 监听到所述第一存储空间存在包括所述第一信息的句柄的情况下,调用所述网络接口调用函数,获取所述网络接口调用函数调用的网络接口的响应信息。
  11. 根据权利要求8所述的装置,其中,所述可远程连网条件包括:
    所述第一电子设备与所述第二电子设备连接;或者,
    所述第一电子设备与所述第二电子设备连接,且所述第一电子设备的功耗大于设定功耗阈值;或者,
    所述第一电子设备与所述第二电子设备连接,且所述第一电子设备的电量低于设定电量阈值。
  12. 一种网络连接装置,其中,应用于第二电子设备,所述装置包括:
    接收模块,用于接收第一电子设备发送的包括网络接口函数调用号的远程过程调用RPC操作请求;
    调用模块,用于调用所述网络接口函数调用号指示的网络接口调用函数;
    生成模块,用于根据所述网络接口调用函数调用的网络接口的响应信息,生成RPC操作响应;
    发送模块,用于向所述第一电子设备发送所述RPC操作响应。
  13. 根据权利要求12所述的装置,其中,所述网络接口的句柄为第二信息,所述装置还包括:
    更新模块,用于将所述网络接口的句柄由所述第二信息更新为所述第一信息,所述第一信息用于指示所述网络接口通过RPC操作请求调用;
    所述发送模块,还用于向所述第一电子设备发送所述句柄。
  14. 根据权利要求13所述的装置,其中,
    所述调用模块,还用于:在利用多路复用监听函数监听到第二存储空间存在包括所述第二信息的所述网络接口的句柄时,调用所述网络接口函数调用号指示的网络接口调用函数;
    所述接收模块,还用于接收所述第一电子设备发送的所述RPC操作请求,所述RPC操作请求还包括:包括所述第一信息的所述网络接口的句柄;
    所述更新模块,还用于将接收到句柄由所述第一信息更新为所述第二信息,将更新后的句柄更新存储至所述第二存储空间,所述句柄被所述多路复用监听函数监听。
  15. 一种电子设备,其中,所述电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至4任一项所述的网络连接方法,或者,所述程序或指令被所述处理器执行时实现如权利要求5至7任一项所述的网络连接方法。
  16. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至4任一项所述的网络连接方法,或者,所述程序或指令被处理器执行时实现如权利要求5至7任一项所述的网络连接方法。
  17. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至4任一项所述的网络连接方法,或者,实现如权利要求5至7任一项所述的网络连接方法。
  18. 一种电子设备所述电子设备被配置为用于执行如权利要求1至4任一项所述的网络连接方法,或者,所述电子设备被配置为用于执行如权利要 求5至7任一项所述的网络连接方法。
PCT/CN2022/131596 2021-11-17 2022-11-14 网络连接方法、装置和电子设备 WO2023088198A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111366049.5A CN113891441A (zh) 2021-11-17 2021-11-17 网络连接方法、装置和电子设备
CN202111366049.5 2021-11-17

Publications (1)

Publication Number Publication Date
WO2023088198A1 true WO2023088198A1 (zh) 2023-05-25

Family

ID=79018263

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/131596 WO2023088198A1 (zh) 2021-11-17 2022-11-14 网络连接方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN113891441A (zh)
WO (1) WO2023088198A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891441A (zh) * 2021-11-17 2022-01-04 维沃移动通信有限公司 网络连接方法、装置和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140096148A1 (en) * 2012-10-02 2014-04-03 Qualcomm Incorporated Fast remote procedure call
CN108616855A (zh) * 2018-04-02 2018-10-02 上海仪电数字技术股份有限公司 蓝牙设备远程控制系统及方法
CN109062714A (zh) * 2018-07-27 2018-12-21 阿里巴巴集团控股有限公司 远程控制安卓设备的方法、装置及电子设备
CN113535431A (zh) * 2021-07-19 2021-10-22 深圳市广通远驰科技有限公司 一种服务调用方法及系统
CN113891441A (zh) * 2021-11-17 2022-01-04 维沃移动通信有限公司 网络连接方法、装置和电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170048652A1 (en) * 2015-08-12 2017-02-16 Arturo Del Rio Systems and methods for enabling cellular data network access to portable devices via a smartwatch including a sim therein
CN105704647A (zh) * 2016-01-11 2016-06-22 小天才科技有限公司 一种智能手表节能的方法与系统
US10141967B1 (en) * 2017-07-28 2018-11-27 Ford Global Technologies, Llc Virtual network interface connectivity
US11360544B2 (en) * 2018-10-03 2022-06-14 Google Llc Power management systems and methods for a wearable computing device
CN112888042B (zh) * 2021-01-13 2023-07-25 深圳市沃特沃德信息有限公司 基于移动终端的智能手表控制方法、装置、终端及介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140096148A1 (en) * 2012-10-02 2014-04-03 Qualcomm Incorporated Fast remote procedure call
CN108616855A (zh) * 2018-04-02 2018-10-02 上海仪电数字技术股份有限公司 蓝牙设备远程控制系统及方法
CN109062714A (zh) * 2018-07-27 2018-12-21 阿里巴巴集团控股有限公司 远程控制安卓设备的方法、装置及电子设备
CN113535431A (zh) * 2021-07-19 2021-10-22 深圳市广通远驰科技有限公司 一种服务调用方法及系统
CN113891441A (zh) * 2021-11-17 2022-01-04 维沃移动通信有限公司 网络连接方法、装置和电子设备

Also Published As

Publication number Publication date
CN113891441A (zh) 2022-01-04

Similar Documents

Publication Publication Date Title
US11876749B2 (en) DCI transmission method, terminal, and base station
CN108540655B (zh) 一种来电显示处理方法及移动终端
CN110166439B (zh) 设备共享方法、终端、路由器及服务器
US20150067146A1 (en) Custom correlation of a distributed business transaction
CN113395337B (zh) 浏览器网页防劫持的方法、装置、电子设备及存储介质
CN108605373B (zh) 用于提供网络共享服务的方法和电子装置
WO2023236972A1 (zh) 一种通信环境安全预警方法、装置、终端设备及存储介质
CN103037195A (zh) 设置视频通话参数、和发送能力参数的方法及装置
WO2023088198A1 (zh) 网络连接方法、装置和电子设备
CN112291181A (zh) 一种基于多网卡的数据传输方法以及相关装置
CN113613064A (zh) 视频处理方法、装置、存储介质及终端
CN109495769B (zh) 视频通信方法、终端、智能电视、服务器及存储介质
KR20220103146A (ko) 멀티캐스트 서비스의 전송 방법, 전송 처리 방법 및 관련 장치
CN112003978A (zh) 会议管理界面的显示方法、装置、存储介质及终端设备
US11375497B2 (en) Power configuration method and terminal
CN113609107A (zh) 数据库管理方法、装置、电子设备及存储介质
CN108200635B (zh) 一种应用程序的运行控制方法及移动终端
CN111200648B (zh) 一种业务调用方法、装置、终端设备及存储介质
CN107786423B (zh) 一种即时通讯的方法和系统
CN113965915B (zh) 数据处理方法和电子设备
CN106209601B (zh) 状态更新消息的推送方法及装置
CN113886070A (zh) 设备信息管理方法、装置、设备及计算机可读存储介质
CN114297322A (zh) 数据处理方法、装置、终端和存储介质
CN107315623B (zh) 一种上报统计数据的方法和装置
US10437608B2 (en) Microminiature personal computer and method of using thereof

Legal Events

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

Ref document number: 22894734

Country of ref document: EP

Kind code of ref document: A1