WO2021190609A1 - 数据传输方法及电子设备 - Google Patents

数据传输方法及电子设备 Download PDF

Info

Publication number
WO2021190609A1
WO2021190609A1 PCT/CN2021/083047 CN2021083047W WO2021190609A1 WO 2021190609 A1 WO2021190609 A1 WO 2021190609A1 CN 2021083047 W CN2021083047 W CN 2021083047W WO 2021190609 A1 WO2021190609 A1 WO 2021190609A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
electronic device
data
hotspot
route
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/083047
Other languages
English (en)
French (fr)
Inventor
祝孟强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to ES21774891T priority Critical patent/ES3037792T3/es
Priority to EP21774891.2A priority patent/EP4132111B1/en
Publication of WO2021190609A1 publication Critical patent/WO2021190609A1/zh
Priority to US17/952,302 priority patent/US12402058B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/308Route determination based on user's profile, e.g. premium users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to a data transmission method and electronic equipment.
  • the portable WiFi hotspots of some electronic devices can only realize data transmission between electronic devices, they do not have network access capabilities. Therefore, when other electronic devices access the portable WiFi hotspots of these electronic devices, these electronic devices cannot maintain normal network access.
  • the driving recorder as an electronic device of auto parts to ensure the safety of the driver, has become a necessary electronic device for the car owners.
  • the user's mobile phone can receive the real-time pictures taken by the driving recorder by connecting to the hotspot of the driving recorder. Then, after the mobile phone is connected to the hotspot of the driving recorder, although the normal use of the driving recorder is guaranteed, the mobile phone system and other applications cannot maintain normal network access.
  • the embodiments of the present invention provide a data transmission method and an electronic device to solve the problem in the related art that the electronic device cannot maintain normal network access after accessing a WiFi hotspot that does not have network access capabilities.
  • an embodiment of the present invention provides a data transmission method applied to a first electronic device, and the method includes:
  • a first request is sent to the second electronic device, and the first request is used to request hot spot information of the network hot spot; and the second electronic device is received
  • the hotspot information of the network hotspot fed back in response to the first request; if the hotspot information does not include the DNS parameters of the network hotspot, the data network route is configured to transmit the first data, and the target policy route is configured to transmit the second data; wherein, The aforementioned second data is data transmitted between the first electronic device and the network hotspot.
  • an embodiment of the present invention also provides an electronic device, the above-mentioned electronic device is a first electronic device, and the above-mentioned first electronic device includes:
  • the sending module is configured to send a first request to the second electronic device when the first electronic device accesses the network hotspot of the second electronic device, and the first request is used to request the hotspot information of the network hotspot; Module for receiving the hotspot information of the network hotspot fed back by the second electronic device in response to the first request; the configuration module for configuring the data network routing transmission if the DNS parameters of the network hotspot are not included in the hotspot information One data, and configure the target policy route to transmit the second data; wherein, the above-mentioned second data is the data transmitted between the first electronic device and the network hotspot.
  • an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and running on the processor.
  • a terminal device including a processor, a memory, and a computer program stored in the memory and running on the processor.
  • the computer program is executed by the processor, the following The steps of the data transmission method described in one aspect.
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the data transmission method as described in the first aspect are implemented. .
  • the first electronic device when the first electronic device accesses the network hotspot of the second electronic device, the first electronic device can request the hotspot information of the network hotspot by sending a first request to the second electronic device.
  • the hotspot information fed back by the second electronic device received by the first electronic device does not contain the DNS parameters of the above-mentioned network hotspot, it indicates that the network hotspot does not have the function of issuing DNS, that is, the network hotspot cannot guarantee the access to the electronic device Able to carry out normal network access.
  • the first electronic device can configure the data network route to transmit the first data, and configure the target policy route to transmit the second data, so as to ensure that the first electronic device performs normal network access while also ensuring that the first electronic device can pass through The network hotspot maintains data transmission with the second electronic device.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the application
  • FIG. 2 is one of the method flow diagrams of a data transmission method provided by an embodiment of the present invention.
  • FIG. 3 is the second schematic diagram of the method flow of a data transmission method provided by an embodiment of the present invention.
  • FIG. 4 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 5 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
  • A/B can mean A or B
  • the "and/or" in this article is only an association relationship describing associated objects, indicating that there may be three A relationship, for example, A and/or B, can mean that: A alone exists, A and B exist at the same time, and B exists alone.
  • the words “first”, “second”, etc. are used for the same or similar items with basically the same function or effect. Distinguishing, those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order.
  • the first data and the second data are used to distinguish different data, rather than to describe the specific order of the data.
  • the electronic device in the embodiment of the present invention may be a terminal device.
  • the terminal device may be a mobile terminal device or a non-mobile terminal device.
  • the mobile terminal device can be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA)
  • the non-mobile terminal device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc.; the embodiment of the present invention does not specifically limit it.
  • the execution subject of the data transmission method provided by the embodiment of the present invention may be an electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the data transmission method.
  • the specifics can be determined according to actual usage requirements.
  • the embodiment is not limited.
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • the following takes the Android operating system as an example to introduce the software environment to which the data transmission method provided in the embodiment of the present invention is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop software programs that implement the data transmission method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG.
  • the transmission method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the terminal device can implement the data transmission method provided by the embodiment of the present invention by running the software program in the Android operating system.
  • the data transmission method provided by the embodiment of the present invention can be applied in a multi-link transmission scenario.
  • the technical method provided by the embodiment of the present invention when the first electronic device accesses the network hot spot of the second electronic device, the first electronic device can request the hot spot of the network hot spot by sending a first request to the second electronic device Information, when the first response received by the first electronic device does not include the domain name system (service) protocol (DNS) parameters of the aforementioned network hotspot, it indicates that the network hotspot does not have the function of issuing DNS, that is, This network hotspot cannot guarantee that the connected electronic device can perform normal network access.
  • DNS domain name system
  • the first electronic device can configure the data network route to transmit the first data, and configure the target policy route to transmit the second data, so as to ensure that the first electronic device performs normal network access while also ensuring that the first electronic device can pass through The network hotspot maintains data transmission with the second electronic device.
  • a data transmission method provided by an embodiment of the present invention includes steps 201 to 203:
  • Step 201 When the first electronic device accesses the network hotspot of the second electronic device, the first electronic device sends a first request to the second electronic device.
  • the above-mentioned first request is used to request the hotspot information of the above-mentioned network hotspot.
  • the hotspot information of the aforementioned network hotspot includes at least one of the following: domain name system (service) protocol (Domain Name System, DNS) parameters, WiFi hotspot name, MAC address, and other information.
  • domain name system service
  • DNS Domain Name System
  • the network hotspot of the second electronic device when the network hotspot of the second electronic device is turned on, the network hotspot of the second electronic device will broadcast to the outside, and other users within the coverage of the network hotspot of the second electronic device can After receiving the hotspot name of the network hotspot of the second electronic device, when other electronic devices need to connect to the network hotspot of the second electronic device, the other electronic devices can connect through password authentication after confirming the name of the network hotspot to be connected To the network hotspot corresponding to the name of the network hotspot, after a successful connection, other electronic devices connected to the second electronic device can use the data traffic of the second electronic device to realize network sharing.
  • the first electronic device can use the data traffic of the second electronic device for network access.
  • Step 202 The first electronic device receives the hotspot information of the network hotspot fed back by the second electronic device in response to the first request.
  • the second electronic device after receiving the first request sent by the first electronic device, the second electronic device will respond to the first request, thereby feeding back a first response to the first electronic device, where the first response includes the above Hot spot information of the network hot spot in the second electronic device.
  • Step 203 If the hotspot information of the network hotspot does not include the DNS parameters of the network hotspot, the first electronic device configures the data network route to transmit the first data, and configures the target policy route to transmit the second data.
  • the above-mentioned second data is data transmitted between the network hotspot of the first electronic device and the second electronic device (for example, data sent by the network hotspot of the second electronic device to the first electronic device, or the first electronic device to the The data sent by the network hotspot of the second electronic device), the first data is other data of the first electronic device except the second data (for example, the data received by the first electronic device except for the data sent by the network hotspot of the second electronic device) Data sent by other network devices other than the data, or data sent by the first electronic device to other network devices except the network hotspot of the second electronic device).
  • the first electronic device can determine whether the network hotspot of the second electronic device has a network access function by using whether the hotspot has issued DNS data. That is, when the first response fed back by the second electronic device does not include the DNS parameters of the aforementioned network hotspot, it indicates that the network hotspot does not issue DNS data, that is, the network hotspot does not have network access capabilities.
  • the hotspots of the current driving recorders on the market usually do not have DNS function. Therefore, the first electronic device can use the hotspot to determine whether the DNS parameters are issued. Whether the hot spot is the hot spot of the driving recorder.
  • the network port in the above-mentioned data network route is the network port of the data network
  • the network port in the above-mentioned target policy routing is the network port of the hotspot network.
  • the destination address of the aforementioned target policy routing is the device IP of the second electronic device.
  • the first electronic device can prevent the first electronic device from performing network switching by ensuring that the default network of the first electronic device is the data network, thereby ensuring that the first electronic device is performing normal network access at the same time. It is ensured that the first electronic device can maintain data transmission with the second electronic device through the network hotspot, so that the systems and applications in the first electronic device can continuously and normally access the network without being interrupted by the above-mentioned network hotspot.
  • the above-mentioned second electronic device may be a driving recorder.
  • the network routing table of the above-mentioned first electronic device includes the data network route corresponding to the data network. Further, after judging that the hotspot information of the hotspot does not include the DNS parameters of the hotspot, the first electronic device may add the target policy route to the network routing table.
  • the above-mentioned network routing table contains a default network route and a data network route.
  • the default network of the first electronic device is the hot-spot network of the above-mentioned network hotspot
  • the above-mentioned default network route is the above-mentioned target policy route.
  • the default network is a mobile network
  • the above-mentioned default network route is the above-mentioned mobile network route.
  • the first electronic device obtains the above-mentioned target policy routing from the above-mentioned network routing table, and according to this The network port in the target policy routing (that is, the network port of the above-mentioned hotspot network) sends the data to the second electronic device, that is, the data is the above-mentioned second data.
  • the first electronic device obtains the data network route from the network routing table, and then according to the network port of the data network route (that is, the network port of the mobile network) The network port) sends data, that is, the data is the above-mentioned first data.
  • the above-mentioned target policy route is a temporary policy route.
  • the first electronic device When the first electronic device is disconnected from the above-mentioned network hotspot, the first electronic device will automatically clear the target policy route in the network routing table of the first electronic device to avoid the risk of the first electronic device forgetting to clear or failing to clear .
  • the first electronic device when the first electronic device is connected or disconnected or needs to perform data interaction with the second electronic device, it can be ensured that the normal network capability of the system of the first electronic device is not affected. In all processes involving data interaction with the second electronic device, the data network of the system of the first electronic device will not be affected, and the Internet access capability of the system of the first electronic device will not be affected. In this way, the normal use of the second electronic device and the normal Internet access capability of the system can both be satisfied at the same time.
  • the first electronic device when the first electronic device accesses the network hotspot of the second electronic device, the first electronic device may send a first request to the second electronic device to request the network hotspot Hotspot information.
  • the hotspot information received by the first electronic device does not include the DNS parameters of the above-mentioned network hotspot, it indicates that the network hotspot does not have the function of issuing DNS, that is, the network hotspot cannot guarantee that the connected electronic device can perform Normal network access.
  • the first electronic device can configure the data network route to transmit the first data, and configure the target policy route to transmit the second data, so as to ensure that the first electronic device performs normal network access while also ensuring that the first electronic device can pass through The network hotspot maintains data transmission with the second electronic device.
  • the first electronic device may generate a target policy route, thereby adding a new entry to the network routing table of the first electronic device A policy route dedicated to transmitting data of the second electronic device.
  • the data transmission method provided in the embodiment of the present invention may further include the following steps:
  • Step A1 In the case where the first electronic device accesses the above-mentioned network hotspot, obtain the network port parameters of the above-mentioned network hotspot.
  • Step A2 The first electronic device generates a target policy route according to the network port parameters of the above-mentioned network hotspot and the IP address of the second electronic device.
  • Step A3 If the above-mentioned DNS parameter is not included in the hotspot information of the above-mentioned network hotspot, the first electronic device adds the target policy route to the network routing table of the first electronic device.
  • the network routing table of the first electronic device includes the data network routing.
  • the network port parameters of the above-mentioned network hotspot include: the name of the network port of the above-mentioned network hotspot.
  • the above-mentioned first electronic device may obtain the IP address of the second electronic device by analyzing the DHCP interactive network packet (eg, the above-mentioned first response) fed back by the network hotspot of the second electronic device.
  • the DHCP interactive network packet eg, the above-mentioned first response
  • the first electronic device after the first electronic device generates the target policy route, it can directly add the target policy route to the data network routing table in the network routing table of the first electronic device.
  • the name of the network port of the aforementioned network hotspot is: rmnet_data2
  • the IP of the second electronic device is 193.168.0.1
  • the add command for this policy routing is "ip route add table rmnet_data2 193.168.0.1 dev wlan0".
  • the above-mentioned DNS parameter is not included in the above-mentioned hotspot information of the network hotspot, it indicates that the network hotspot does not have the network access capability.
  • the first electronic device may use the data network device of the first electronic device as the default network.
  • the data transmission method provided in the embodiment of the present invention may further include the following steps:
  • Step B1 If the above-mentioned DNS parameter is not included in the above-mentioned network hotspot information, the first electronic device sets the above-mentioned data network route as the default network route of the first electronic device.
  • the first electronic device After the first electronic device sets the aforementioned data network route as the default network route of the first electronic device, it will send a WiFi success broadcast to the aforementioned network hotspot, or return the status of WiFi success by default at the system interface of the electronic device .
  • the second electronic device as a driving recorder as an example. Since the electronic device in the related technology determines that it needs to use the data network, it will directly set the data network as the system default network, which will cause the system of the electronic device to send out a WiFi disconnection broadcast, resulting in the dash cam application in the electronic device Misjudgment, and then disconnect from the driving recorder. And when the driving recorder application actively calls the system interface to obtain the WiFi status, the system will return to the WiFi non-connected state, which will also cause the driving recorder application in the electronic device to think that the hotspot connection has failed, so that it cannot communicate with the driving recorder normally. .
  • the first electronic device after the first electronic device sets the above-mentioned data network route as the default network route of the first electronic device, it will adapt the network interface and the broadcast, that is, send a successful WiFi broadcast, or in the system of the electronic device
  • the interface returns the status of successful WiFi by default.
  • the first electronic device may use the data network device of the first electronic device as the default network by reducing the network score.
  • step B1 may include the following steps B11 and B12:
  • Step B11 If the above-mentioned DNS parameter is not included in the hotspot information of the above-mentioned network hotspot, the first electronic device adjusts the network score of the above-mentioned network hotspot.
  • the adjusted network score of the aforementioned network hot spot is less than the network score of the data network of the first electronic device.
  • Step B12 When the network score of the network hotspot is less than the network score of the data network of the first electronic device, the first electronic device sets the data network route as the default network route of the first electronic device.
  • the first electronic device can reduce the network score of the WiFi network of the second electronic device, that is, lower than the current data network, to ensure that the system default network always maintains the data network without switching, so that the system and applications can continue Normal access to the network will not be interrupted by the WiFi.
  • the first electronic device compares the data network of the first electronic device with the network hotspot of the second electronic device. Further, after the comparison, only if the network score of the network hotspot is greater than the network score of the data network of the first electronic device, the first electronic device can access the network hotspot of the second electronic device. That is, if you want to switch the network currently connected to by the first electronic device to the data network of the first electronic device, you need to lower the network score of the currently connected network until it is smaller than the data network of the first electronic device Network score.
  • the system of the electronic device is an Android system as an example.
  • the basic network score of the WiFi network is 60 points
  • the basic network score of the data network is 50 points.
  • the first electronic device can subtract 40 from the basic network score of the WiFi network of the WiFi hotspot Points, making it lower than the 50 points of the data network. In this way, when the network control center of the first electronic device compares the two networks, because the WiFi network has a network score of 20 less than the data network’s network score of 50, the first electronic device will not switch the default network to this The WiFi network will still keep the current default network as the data network.
  • the first electronic device determines that the WiFi hotspot of the second electronic device currently connected to the first electronic device has network access capabilities, the first electronic device does not perform any deduction processing, that is, keeps 60 points of the WiFi network , Making it higher than the 50 points of the data network. In this way, when the network control center of the first electronic device compares the two networks, since the network score 60 of the WiFi network is greater than the network score 50 of the data network, the first electronic device will set the WiFi network as the system's Default network, disconnect the data network at the same time, and send a network disconnection broadcast. In this way, the data transmission between the first electronic device and the second electronic device will not be affected.
  • the message display methods shown in the figures of the above methods are all exemplified in conjunction with a figure in the embodiment of the present invention.
  • the message display methods shown in the figures of the above methods can also be implemented in combination with any other figures that can be combined as illustrated in the above embodiments, and will not be repeated here.
  • FIG. 4 is a schematic diagram of a possible structure for implementing an electronic device provided by an embodiment of the present invention.
  • the electronic device is a first electronic device.
  • the first electronic device 400 includes: a sending module 401, a receiving module 402, and The configuration module 403, wherein: the sending module 401 is used to send a first request to the second electronic device when the first electronic device 400 accesses the network hotspot of the second electronic device; the receiving module 402 is used to receive The second electronic device feedbacks the hotspot information of the network hotspot in response to the first request; the configuration module 403 is configured to configure the data network route to transmit the first data if the DNS parameter of the network hotspot is not included in the hotspot information, and configure The target policy routing transmits the second data; wherein, the above-mentioned second data is data of the above-mentioned network hotspot, and the above-mentioned first data is other data except the above-mentioned second data.
  • the first electronic device 400 further includes: an acquiring module 404 and a generating module 405, where the acquiring module 404 is configured to: when the first electronic device 400 accesses the aforementioned network hotspot, Obtain the network port parameters of the aforementioned network hotspot; the generating module 405 is configured to generate the aforementioned target policy route according to the aforementioned network port parameters obtained by the aforementioned obtaining module 404 and the IP address of the aforementioned first electronic device 400; the aforementioned configuration module 403 also uses If the above-mentioned DNS parameter is not included in the above-mentioned hotspot information, the above-mentioned target policy route is added to the network routing table of the above-mentioned first electronic device 400.
  • the network routing table of the first electronic device 400 includes the data network routing.
  • the configuration module 403 is further configured to set the data network route as the default network route of the first electronic device 400 if the DNS parameter is not included in the hotspot information.
  • the configuration module 403 is specifically configured to: if the above-mentioned DNS parameters are not included in the above-mentioned hotspot information, adjust the network score of the above-mentioned network hotspot, and the adjusted network score of the above-mentioned network hotspot is less than the network score of the above-mentioned data network; When the network score of the network hotspot is less than the network score of the data network, the data network route is set as the default network route of the first electronic device 400.
  • the first electronic device when the first electronic device accesses the network hot spot of the second electronic device, the first electronic device may request the network hot spot by sending a first request to the second electronic device
  • the hotspot information received by the first electronic device does not include the DNS parameters of the above-mentioned network hotspot, it indicates that the network hotspot does not have the function of issuing DNS, that is, the network hotspot cannot guarantee that the connected electronic device can Perform normal network access.
  • the first electronic device can configure the data network route to transmit the first data, and configure the target policy route to transmit the second data, so as to ensure that the first electronic device performs normal network access while also ensuring that the first electronic device can pass through The network hotspot maintains data transmission with the second electronic device.
  • the first electronic device provided in the embodiment of the present invention can implement each process implemented by the first electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • the modules that must be included in the first electronic device 400 are indicated by solid line frames, such as the sending module 401; the modules that may or may not be included in the first electronic device 400 are indicated by dashed frames , Such as the acquisition module 404 and the generation module 405.
  • the electronic device is a first electronic device.
  • the first electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, and an audio output unit. 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components.
  • a radio frequency unit 101 for converting radio frequency to sound
  • a network module 102 for a radio frequency
  • audio output unit 103
  • input unit 104 sensor 105
  • display unit 106 user input unit 107
  • interface unit 108 user input unit
  • memory 109 memory 109
  • processor 110 power supply 111 and other components.
  • power supply 111 power supply 111
  • FIG. 5 does not constitute a limitation on the electronic device, and the first electronic device 100 may include more or less components than those shown in the figure, or a combination of certain components , Or different component arrangements.
  • the first electronic device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, and a pedometer.
  • the radio frequency unit 101 is configured to send a first request to the second electronic device when the first electronic device accesses the network hot spot of the second electronic device, and the first request is used to request the hot spot of the network hot spot Information; the radio frequency unit 101 is also used to receive the hotspot information of the network hotspot that the second electronic device feedbacks in response to the first request; the processor 110 is used to configure if the DNS parameters of the network hotspot are not included in the hotspot information
  • the data network route transmits the first data, and configures the target policy route to transmit the second data; wherein, the above-mentioned second data is data of the above-mentioned network hot spot, and the above-mentioned first data is other data except the above-mentioned second data.
  • the first electronic device when the first electronic device accesses the network hot spot of the second electronic device, the first electronic device may request the network hot spot by sending a first request to the second electronic device
  • the hotspot information received by the first electronic device does not include the DNS parameters of the above-mentioned network hotspot, it indicates that the network hotspot does not have the function of issuing DNS, that is, the network hotspot cannot guarantee that the connected electronic device can Perform normal network access.
  • the first electronic device can configure the data network route to transmit the first data, and configure the target policy route to transmit the second data, so as to ensure that the first electronic device performs normal network access while also ensuring that the first electronic device can pass through The network hotspot maintains data transmission with the second electronic device.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the first electronic device 100 provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the first electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the first electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can close the display panel when the first electronic device 100 is moved to the ear. 1061 and/or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the first electronic device (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; the sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Thermometers, infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the first electronic device 100.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operate).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the first electronic device 100, in some embodiments, the touch panel 1071 and the display panel 1061
  • the panel 1061 is integrated to realize the input and output functions of the first electronic device 100, which is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the first electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more components in the first electronic device 100 or can be used to Data is transferred between the device 100 and external devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the first electronic device 100, and uses various interfaces and lines to connect the various parts of the entire first electronic device 100, by running or executing software programs and/or modules stored in the memory 109, and calling the storage
  • the data in the memory 109 executes various functions of the first electronic device 100 and processes data, thereby monitoring the first electronic device 100 as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the first electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so that the power management system can manage charging, discharging, and Functions such as power management.
  • the first electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention further provides an electronic device, which is a first electronic device, and the first electronic device includes a processor, a memory, and a device that is stored in the memory and can run on the processor 110
  • a computer program which, when executed by a processor, realizes each process of the foregoing data transmission method embodiment, and can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned data transmission method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
  • a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供一种数据传输方法及电子设备,该方法包括:在第一电子设备接入第二电子设备的网络热点的情况下,向第二电子设备发送第一请求;接收第二电子设备响应于该第一请求反馈的该网络热点的第一响应,该第一响应包含该热点信息;若该热点信息中未包含该网络热点的域名服务协议DNS参数,则配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据,其中,第二数据为第一电子设备与该网络热点间传输的数据。

Description

数据传输方法及电子设备
相关申请的交叉引用
本申请主张在2020年03月26日在中国提交的中国专利申请号202010224953.1的优先权,其全部内容通过引用包含于此。
技术领域
本发明实施例涉及通信技术领域,尤其涉及一种数据传输方法及电子设备。
背景技术
随着电子设备技术的不断发展,电子设备中集成的应用功能也越来越多。目前,大部分电子设备中均具备便携式无线保真(Wireless Fidelity,WiFi)热点功能,使得其他电子设备可以通过接入该电子设备的便携式热点来访问无线网络。
然而,由于部分电子设备的便携式WiFi热点仅能实现电子设备间的数据传输,并不具备网络访问能力。因此,当其他电子设备接入这些电子设备的便携式WiFi热点后,这些电子设备便无法保持正常的网络访问。
例如,行车记录仪作为保证驾驶员驾车行驶安全的汽车配件类电子设备,成为了有车一族的必备电子设备。在行驶过程中,用户手机可以通过接入行车记录仪的热点来接收行车记录仪拍摄的实时画面。然后,手机接入行车记录仪的热点后,虽然保证了行车记录仪的正常使用,但是手机系统和其他应用则无法保持正常的网络访问。
发明内容
本发明实施例提供一种数据传输方法及电子设备,以解决相关技术中电子设备接入不具备网络访问能力的WiFi热点后,所存在的无法保持正常的网络访问的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本发明实施例提供一种数据传输方法,应用于第一电子设备,所述方法包括:
在上述第一电子设备接入第二电子设备的网络热点的情况下,向上述第二电子设备发送第一请求,上述第一请求用于请求上述网络热点的热点信息;接收上述第二电子设备响应于第一请求反馈的该网络热点的热点信息;若上述热点信息中未包含上述网络热点的DNS参数,则配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据;其中,上述第二数据为第一电子设备与网络热点间传输的数据。
第二方面,本发明实施例还提供了一种电子设备,上述电子设备为第一电子设备,上述第一电子设备包括:
发送模块,用于在上述第一电子设备接入第二电子设备的网络热点的情况下,向上述第二电子设备发送第一请求,上述第一请求用于请求上述网络热点的热点信息;接收模块,用于接收上述第二电子设备响应于第一请求反馈的该网络热点的热点信息;配置模块,用于若上述热点信息中未包含上述网络热点的DNS参数,则配置数据网络 路由传输第一数据,并配置目标策略路由传输第二数据;其中,上述第二数据为第一电子设备与网络热点间传输的数据。
第三方面,本发明实施例提供了一种终端设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的数据传输方法的步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的数据传输方法的步骤。
在本发明实施例中,在第一电子设备接入第二电子设备的网络热点的情况下,第一电子设备可以通过向第二电子设备发送第一请求,以请求该网络热点的热点信息,当第一电子设备接收到第二电子设备反馈的热点信息中未包含上述网络热点的DNS参数,则表明该网络热点并不具备下发DNS的功能,即该网络热点无法保证接入的电子设备能够进行正常的网络访问。此时,第一电子设备可以配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据,从而保证第一电子设备进行正常的网络访问的同时,还可以保证第一电子设备能够通过该网络热点维持与第二电子设备间的数据传输。
附图说明
图1为本申请实施例提供的一种可能的安卓操作系统的架构示意图;
图2为本发明实施例提供的一种数据传输方法的方法流程示意图之一;
图3为本发明实施例提供的一种数据传输方法的方法流程示意图之二;
图4为本发明实施例提供的一种电子设备的结构示意图之一;
图5为本发明实施例提供的一种电子设备的结构示意图之二。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
需要说明的是,本文中的“多个”是指两个或多于两个。
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
需要说明的是,为了便于清楚描述本发明实施例的技术方案,在本发明实施例中,采用了“第一”、“第二”等字样对功能或作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。 例如,第一数据和第二数据是用于区别不同的数据,而不是用于描述数据的特定顺序。
本发明实施例中的电子设备可以为终端设备。示例性的,该终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。
本发明实施例提供的数据传输方法的执行主体可以为电子设备,也可以为该电子设备中能够实现该数据传输方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。
下面以安卓操作系统为例,介绍一下本发明实施例提供的数据传输方法所应用的软件环境。
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的数据传输方法的软件程序,从而使得该数据传输方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的数据传输方法。
本发明实施例提供的数据传输方法可以应用于多链路传输场景中。
本发明实施例提供的技术方法:在第一电子设备接入第二电子设备的网络热点的情况下,第一电子设备可以通过向第二电子设备发送第一请求,以请求该网络热点的热点信息,当第一电子设备接收到的第一响应中未包含上述网络热点的域名系统(服务)协议(Domain Name System,DNS)参数,则表明该网络热点并不具备下发DNS的功能,即该网络热点无法保证接入的电子设备能够进行正常的网络访问。此时,第一电子设备可以配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据, 从而保证第一电子设备进行正常的网络访问的同时,还可以保证第一电子设备能够通过该网络热点维持与第二电子设备间的数据传输。
以下将结合附图对本发明实施例提供的数据传输方法进行介绍。
如图2所示,本发明实施例提供的一种数据传输方法,该方法包括步骤201至步骤203:
步骤201:在上述第一电子设备接入第二电子设备的网络热点的情况下,第一电子设备向上述第二电子设备发送第一请求。
其中,上述第一请求用于请求上述网络热点的热点信息。
示例性的,上述网络热点的热点信息包括以下至少一项:域名系统(服务)协议(Domain Name System,DNS)参数,WiFi热点名称,MAC地址等信息。
在本发明实施例中,当第二电子设备的网络热点处于开启状态时,该第二电子设备的网络热点会向外广播,在该第二电子设备的网络热点覆盖范围内的其他用户便可接收到该第二电子设备的网络热点的热点名称,当其他电子设备需要连接该第二电子设备的网络热点时,其他电子设备在确认要连接的网络热点的名称后,通过密码认证就可以连接到该网络热点名称对应的网络热点,连接成功后,连接该第二电子设备的其他电子设备便可以使用该第二电子设备的数据流量,以实现网络共享。
可以理解,第一电子设备接入第二电子设备的网络热点后,第一电子设备可以使用该第二电子设备的数据流量进行网络访问。
步骤202:第一电子设备接收上述第二电子设备响应于第一请求反馈的网络热点的热点信息。
示例性的,第二电子设备在接收到第一电子设备发送的第一请求后,会响应该第一请求,从而向该第一电子设备反馈第一响应,其中,该第一响应中包含上述第二电子设备中的网络热点的热点信息。
步骤203:若上述网络热点的热点信息中未包含该网络热点的DNS参数,则第一电子设备配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据。
其中,上述第二数据为第一电子设备与该第二电子设备的网络热点间传输的数据(如,第二电子设备的网络热点向第一电子设备发送的数据,或者,第一电子设备向第二电子设备的网络热点发送的数据),上述第一数据为第一电子设备的除上述第二数据外的其他数据(如,第一电子设备接收的除第二电子设备的网络热点发送的数据以外的其他网络设备发送的数据,或者,第一电子设备向除第二电子设备的网络热点以外的其他网络设备发送的数据)。
本发明实施例中,由于热点是否下发DNS参数,能够表征该热点是否具备网络访问能力。因此,第一电子设备可以利用热点端是否下发DNS数据来判断该第二电子设备的网络热点是否具备网络访问功能。即,当第二电子设备反馈的第一响应中未包含上述网络热点的DNS参数时,则表明该网络热点不下发DNS数据,即该网络热点不具备网络访问能力。
例如,以第二电子设备为行车记录仪为例,目前市场上的行车记录仪,其热点通常并不具备DNS功能,因此,第一电子设备可以利用热点端是否下发DNS参数,来判断该热点是否为行车记录仪的热点。
本发明实施例中,上述数据网络路由中的网口为数据网络的网口,上述目标策略路由中的网口为热点网络的网口。进一步的,上述目标策略路由的目的地址为第二电子设备的设备IP。
在本发明实施例中,第一电子设备可以通过保证该第一电子设备的默认网络为数据网络,避免第一电子设备进行网络切换,从而保证第一电子设备在进行正常的网络访问的同时,保证该第一电子设备能够通过该网络热点维持与第二电子设备间的数据传输,使得第一电子设备中的系统和应用可以持续正常的访问网络,而不被上述网络热点的打断。
可选的,在本发明实施例中,上述第二电子设备可以为行车记录仪。
可选的,在本发明实施例中,上述第一电子设备的网络路由表中包含该数据网络对应的数据网络路由。进一步的,第一电子设备在判断上述网络热点的热点信息中未包含该网络热点的DNS参数之后,可以将上述目标策略路由添加至该网络路由表中。
示例性的,上述网络路由表中包含默认网络路由和数据网络路由,当第一电子设备的默认网络为上述网络热点的热点网络,则上述默认网络路由为上述目标策略路由,当第一电子设备的默认网络为移动网络,则上述默认网络路由为上述移动网络路由。
示例性的,在上述步骤203之后,若第一电子设备需要发送的数据的目的IP为第二电子设备的IP地址,则第一电子设备从上述网络路由表中获取上述目标策略路由,根据该目标策略路由中的网口(即上述热点网络的网口)向第二电子设备发送该数据,即该数据为上述的第二数据。或者,若第一电子设备需要发送的数据的目的网络为数据网络,则第一电子设备从上述网络路由表中的获取上述数据网络路由,根据该数据网络路由的网口(即上述移动网络的网口)发送数据,即该数据为上述的第一数据。
可选的,在本发明实施例中,上述目标策略路由为临时策略路由。当第一电子设备断开与上述网络热点的连接时,第一电子设备会自动将该第一电子设备的网络路由表中的目标策略路由清除,避免第一电子设备忘记清除或清除失败的风险。
需要说明的是,在第一电子设备连接、断开或者需要与第二电子设备进行数据交互的过程中,可以保证第一电子设备的系统的正常网络能力不被影响。在涉及到与第二电子设备进行数据交互的所有过程中,第一电子设备的系统的数据网络都不会受到影响,第一电子设备的系统的上网能力都不会受到影响。如此,第二电子设备的正常使用和系统的正常上网能力都能够同时满足。
本发明实施例提供的数据传输方法,在第一电子设备接入第二电子设备的网络热点的情况下,第一电子设备可以通过向第二电子设备发送第一请求,以请求该网络热点的热点信息,当第一电子设备接收到的热点信息中未包含上述网络热点的DNS参数,则表明该网络热点并不具备下发DNS的功能,即该网络热点无法保证接入的电子设备能够进行正常的网络访问。此时,第一电子设备可以配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据,从而保证第一电子设备进行正常的网络访问的同时,还可以保证第一电子设备能够通过该网络热点维持与第二电子设备间的数据传输。
可选的,在本发明实施例中,若上述网络热点的热点信息中未包含上述DNS参数,则第一电子设备可以生成目标策略路由,从而在第一电子设备的网络路由表中新增一条专用于传输第二电子设备的数据的策略路由。
示例性的,在上述步骤203中第一电子设备配置目标策略路由传输第二数据之前,本发明实施例提供的数据传输方法还可以包括如下步骤:
步骤A1:在第一电子设备接入上述网络热点的情况下,获取上述网络热点的网口参数。
步骤A2:第一电子设备根据上述网络热点的网口参数和第二电子设备的IP地址,生成目标策略路由。
步骤A3:若上述网络热点的热点信息中未包含上述DNS参数,则第一电子设备在该第一电子设备的网络路由表中,增加目标策略路由。
示例性的,上述第一电子设备的网络路由表中包含数据网络路由。
示例性的,上述网络热点的网口参数包括:上述网络热点的网口的网口名称。
示例性的,上述第一电子设备可以通过解析第二电子设备的网络热点反馈的DHCP交互网络包(如,上述第一响应),来获取第二电子设备的IP地址。
示例性的,第一电子设备在生成目标策略路由后,可以直接在第一电子设备的网络路由表中在数据网络路由表中添加该目标策略路由,如,上述网络热点的网口名称为:rmnet_data2,且第二电子设备的IP是193.168.0.1,则这条策略路由的添加命令就是“ip route add table rmnet_data2 193.168.0.1 dev wlan0”。
可选的,在本发明实施例中,若上述网络热点的热点信息中未包含上述DNS参数,则表明该网络热点不具备网络访问能力,此时,为了保证第一电子设备能够正常访问网络,第一电子设备可以将该第一电子设备的数据网络设备为默认网络。
示例性的,在上述步骤203中第一电子设备配置数据网络路由传输第一数据之前,本发明实施例提供的数据传输方法还可以包括如下步骤:
步骤B1:若上述网络热点的热点信息中未包含上述DNS参数,则第一电子设备将上述数据网络路由设置为第一电子设备的默认网络路由。
示例性的,第一电子设备将上述数据网络路由设置为第一电子设备的默认网络路由后,会向上述网络热点发送WiFi成功广播,或者,在电子设备的系统接口处默认返回WiFi成功的状态。
举例说明,以第二电子设备为行车记录仪为例。由于相关技术中电子设备在判断需要使用数据网络时,会直接将数据网络设置为系统默认网络,这样会导致电子设备的系统发出一个WiFi断开广播,从而导致该电子设备中的行车记录仪应用误判断,进而断开与行车记录仪连接。而且在行车记录仪应用主动调取系统接口获取WiFi状态时,系统会返回WiFi非连接状态,也会导致该电子设备中的行车记录仪应用认为热点连接失败,从而无法与行车记录仪进行正常通信。因此,本发明实施例中第一电子设备将上述数据网络路由设置为第一电子设备的默认网络路由后,会对网络接口和广播进行适配,即发送WiFi成功广播,或者在电子设备的系统接口处默认返回WiFi成功的状态。
进一步可选的,本发明实施例中,第一电子设备可以通过降低网络评分的方式,来将该第一电子设备的数据网络设备为默认网络。
示例性的,上述步骤B1可以包括如下步骤B11和步骤B12:
步骤B11:若上述网络热点的热点信息中未包含上述DNS参数,则第一电子设备 调整上述网络热点的网络评分。
其中,调整后的上述网络热点的网络评分小于第一电子设备的数据网络的网络评分。
步骤B12:当上述网络热点的网络评分小于第一电子设备的数据网络的网络评分时,第一电子设备将上述数据网络路由设置为第一电子设备的默认网络路由。
示例性的,以Android系统的网络打分机制为例。第一电子设备可以通过将第二电子设备的WiFi网络的网络评分降低,即低于当前数据网络,来达到保证系统默认网络一直保持数据网络,不进行切换的目的,这样系统和应用就可以持续正常的访问网络,不会被该WiFi打断。
示例性的,在第一电子设备接入第二电子设备的网络热点时,第一电子设备会将该第一电子设备的数据网络与该第二电子设备的网络热点进行比对。进一步的,比对后,只有该网络热点的网络评分大于该第一电子设备的数据网络的网络评分,该第一电子设备才会接入该第二电子设备的网络热点。即,若想要将第一电子设备当前接入的网络切换为该第一电子设备的数据网络,则需要将当前接入的网络的网络评分调低,直至小于该第一电子设备的数据网络的网络评分。
举例说明,如图3所示,以电子设备的系统为Android系统为例。在Android的原生机制中,WiFi网络的网络基础评分是60分,数据网络的网络基础评分是50分。
1)当第一电子设备判断出该第一电子设备当前连接的第二电子设备的WiFi热点不具备网络访问能力,则第一电子设备可以将该WiFi热点的WiFi网络的网络基础评分减去40分,使其低于数据网络的50分。这样,在第一电子设备的网络控制中心对这两种网络的比较时,由于WiFi网络的网络评分20小于数据网络的网络评分50,因此,第一电子设备便不会将默认网络切换到该WiFi网络,仍然会保持当前的默认网络为数据网络。
2)当第一电子设备判断出该第一电子设备当前连接的第二电子设备的WiFi热点具备网络访问能力,则第一电子设备不做任何减分处理,即,保留该WiFi网络的60分,使其高于数据网络的50分。这样,在第一电子设备的网络控制中心对这两种网络的比较时,由于WiFi网络的网络评分60大于数据网络的网络评分50,因此,第一电子设备就会将WiFi网络设置为系统的默认网络,同时断开数据网络,并发送网络断开广播。如此,就不会影响第一电子设备与第二电子设备间的数据传输。
需要说明的是,本发明实施例中,上述各个方法附图所示的消息显示方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的消息显示方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。
图4为实现本发明实施例提供的一种电子设备的可能的结构示意图,该电子设备为第一电子设备,如图4所示,第一电子设备400包括:发送模块401、接收模块402和配置模块403,其中:发送模块401,用于在上述第一电子设备400接入第二电子设备的网络热点的情况下,向上述第二电子设备发送第一请求;接收模块402,用于接收上述第二电子设备响应于第一请求反馈的网络热点的热点信息;配置模块403,用于若上述热点信息中未包含上述网络热点的DNS参数,则配置数据网络路由传输第一数据,并配置目标策略 路由传输第二数据;其中,上述第二数据为上述网络热点的数据,上述第一数据为除上述第二数据外的其他数据。
可选的,如图4所示,第一电子设备400还包括:获取模块404和生成模块405,其中:获取模块404,用于在上述第一电子设备400接入上述网络热点的情况下,获取上述网络热点的网口参数;生成模块405,用于根据上述获取模块404获取的上述网口参数和上述第一电子设备400的IP地址,生成上述目标策略路由;上述配置模块403,还用于若上述热点信息中未包含上述DNS参数,则在上述第一电子设备400的网络路由表中,增加上述目标策略路由。
可选的,上述第一电子设备400的网络路由表中包含上述数据网络路由。
可选的,上述配置模块403,还用于若上述热点信息中未包含上述DNS参数,则将上述数据网络路由设置为上述第一电子设备400的默认网络路由。
可选的,上述配置模块403,具体用于:若上述热点信息中未包含上述DNS参数,则调整上述网络热点的网络评分,调整后的上述网络热点的网络评分小于上述数据网络的网络评分;当上述网络热点的网络评分小于上述数据网络的网络评分时,将上述数据网络路由设置为上述第一电子设备400的默认网络路由。
本发明实施例提供的第一电子设备,在第一电子设备接入第二电子设备的网络热点的情况下,第一电子设备可以通过向第二电子设备发送第一请求,以请求该网络热点的热点信息,当第一电子设备接收到的热点信息中未包含上述网络热点的DNS参数,则表明该网络热点并不具备下发DNS的功能,即该网络热点无法保证接入的电子设备能够进行正常的网络访问。此时,第一电子设备可以配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据,从而保证第一电子设备进行正常的网络访问的同时,还可以保证第一电子设备能够通过该网络热点维持与第二电子设备间的数据传输。
本发明实施例提供的第一电子设备能够实现上述方法实施例中第一电子设备实现的各个过程,为避免重复,这里不再赘述。
需要说明的是,如图4所示,第一电子设备400中一定包括的模块用实线框示意,如发送模块401;第一电子设备400中可以包括也可以不包括的模块用虚线框示意,如获取模块404和生成模块405。
图5为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备为第一电子设备,该第一电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图5中示出的电子设备100的结构并不构成对电子设备的限定,第一电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,第一电子设备100包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。
其中,射频单元101,用于在上述第一电子设备接入第二电子设备的网络热点的情况下,向上述第二电子设备发送第一请求,上述第一请求用于请求上述网络热点的热点信息;射频单元101,还用于接收上述第二电子设备响应于第一请求反馈的网络热点的热点信息;处理器110,用于若上述热点信息中未包含上述网络热点的DNS参 数,则配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据;其中,上述第二数据为上述网络热点的数据,上述第一数据为除上述第二数据外的其他数据。
本发明实施例提供的第一电子设备,在第一电子设备接入第二电子设备的网络热点的情况下,第一电子设备可以通过向第二电子设备发送第一请求,以请求该网络热点的热点信息,当第一电子设备接收到的热点信息中未包含上述网络热点的DNS参数,则表明该网络热点并不具备下发DNS的功能,即该网络热点无法保证接入的电子设备能够进行正常的网络访问。此时,第一电子设备可以配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据,从而保证第一电子设备进行正常的网络访问的同时,还可以保证第一电子设备能够通过该网络热点维持与第二电子设备间的数据传输。
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。
第一电子设备100通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与第一电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。
第一电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在第一电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别第一电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机 发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。
用户输入单元107可用于接收输入的数字或字符信息,以及产生与第一电子设备100的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图5中,触控面板1071与显示面板1061是作为两个独立的部件来实现第一电子设备100的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现第一电子设备100的输入和输出功能,具体此处不做限定。
接口单元108为外部装置与第一电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到第一电子设备100内的一个或多个元件或者可以用于在第一电子设备100和外部装置之间传输数据。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器110是第一电子设备100的控制中心,利用各种接口和线路连接整个第一电子设备100的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行第一电子设备100的各种功能和处理数据,从而对第一电子设备100进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
第一电子设备100还可以包括给各个部件供电的电源111(比如电池),可选的, 电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,第一电子设备100包括一些未示出的功能模块,在此不再赘述。
可选的,本发明实施例还提供一种电子设备,该电子设备为第一电子设备,该第一电子设备包括处理器,存储器,存储在存储器上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器执行时实现上述数据传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述数据传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (12)

  1. 一种数据传输方法,应用于第一电子设备,所述方法包括:
    在所述第一电子设备接入第二电子设备的网络热点的情况下,向所述第二电子设备发送第一请求;
    接收所述第二电子设备响应于所述第一请求反馈的所述网络热点的热点信息;
    若所述热点信息中未包含所述网络热点的域名服务协议DNS参数,则配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据;
    其中,所述第二数据为所述第一电子设备与所述网络热点间传输的数据。
  2. 根据权利要求1所述的方法,其中,所述配置目标策略路由传输第二数据之前,所述方法还包括:
    在所述第一电子设备接入所述网络热点的情况下,获取所述网络热点的网口参数;
    根据所述网口参数和所述第二电子设备的IP地址,生成所述目标策略路由;
    若所述热点信息中未包含所述DNS参数,则在所述第一电子设备的网络路由表中,增加所述目标策略路由。
  3. 根据权利要求1或2所述的方法,其中,所述第一电子设备的网络路由表中包含所述数据网络路由。
  4. 根据权利要求3所述的方法,其中,所述配置数据网络路由传输第一数据之前,所述方法还包括:
    若所述热点信息中未包含所述DNS参数,则将所述数据网络路由设置为所述第一电子设备的默认网络路由。
  5. 根据权利要求4所述的方法,其中,所述若所述热点信息中未包含所述网络热点的DNS参数,将所述第一电子设备的数据网络设置为默认网络,包括:
    若所述热点信息中未包含所述DNS参数,则调整所述网络热点的网络评分,调整后的所述网络热点的网络评分小于所述数据网络的网络评分;
    当所述网络热点的网络评分小于所述数据网络的网络评分时,将所述数据网络路由设置为所述第一电子设备的默认网络路由。
  6. 一种电子设备,所述电子设备为第一电子设备,所述第一电子设备包括:
    发送模块,用于在所述第一电子设备接入第二电子设备的网络热点的情况下,向所述第二电子设备发送第一请求;
    接收模块,用于接收所述第二电子设备响应于所述第一请求反馈的所述网络热点的热点信息;
    配置模块,用于若所述热点信息中未包含所述网络热点的域名服务协议DNS参数,则配置数据网络路由传输第一数据,并配置目标策略路由传输第二数据;
    其中,所述第二数据为所述第一电子设备与所述网络热点间传输的数据。
  7. 根据权利要求6所述的电子设备,其中,所述第一电子设备还包括:
    获取模块,用于在所述第一电子设备接入所述网络热点的情况下,获取所述网络热点的网口参数;
    生成模块,用于根据所述获取模块获取的所述网口参数和所述第二电子设备的IP地址,生成所述目标策略路由;
    所述配置模块,还用于若所述热点信息中未包含所述DNS参数,则在所述第一电子设备的网络路由表中,增加所述目标策略路由。
  8. 根据权利要求6或7所述的电子设备,其中,所述第一电子设备的网络路由表中包含所述数据网络路由。
  9. 根据权利要求8所述的电子设备,其中,所述配置模块,还用于若所述热点信息中未包含所述DNS参数,则将所述数据网络路由设置为所述第一电子设备的默认网络路由。
  10. 根据权利要求9所述的电子设备,其中,所述配置模块,具体用于:
    若所述热点信息中未包含所述DNS参数,则调整所述网络热点的网络评分,调整后的所述网络热点的网络评分小于所述数据网络的网络评分;
    当所述网络热点的网络评分小于所述数据网络的网络评分时,将所述数据网络路由设置为所述第一电子设备的默认网络路由。
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的数据传输方法的步骤。
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的数据传输方法的步骤。
PCT/CN2021/083047 2020-03-26 2021-03-25 数据传输方法及电子设备 Ceased WO2021190609A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
ES21774891T ES3037792T3 (en) 2020-03-26 2021-03-25 Data transmission method and electronic device
EP21774891.2A EP4132111B1 (en) 2020-03-26 2021-03-25 Data transmission method and electronic device
US17/952,302 US12402058B2 (en) 2020-03-26 2022-09-25 Data transmission method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010224953.1 2020-03-26
CN202010224953.1A CN111556552B (zh) 2020-03-26 2020-03-26 数据传输方法及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/952,302 Continuation US12402058B2 (en) 2020-03-26 2022-09-25 Data transmission method and electronic device

Publications (1)

Publication Number Publication Date
WO2021190609A1 true WO2021190609A1 (zh) 2021-09-30

Family

ID=72005570

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083047 Ceased WO2021190609A1 (zh) 2020-03-26 2021-03-25 数据传输方法及电子设备

Country Status (5)

Country Link
US (1) US12402058B2 (zh)
EP (1) EP4132111B1 (zh)
CN (1) CN111556552B (zh)
ES (1) ES3037792T3 (zh)
WO (1) WO2021190609A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116489747A (zh) * 2022-01-14 2023-07-25 荣耀终端有限公司 通信方法及装置
US12621757B2 (en) 2022-01-14 2026-05-05 Honor Device Co., Ltd. Communication method and apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556552B (zh) 2020-03-26 2023-01-31 维沃移动通信有限公司 数据传输方法及电子设备
CN114339926B (zh) * 2020-09-30 2023-04-28 极米科技股份有限公司 终端操作模式转换的方法、终端、网络接入设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144231A (zh) * 2014-08-21 2014-11-12 北京金山安全软件有限公司 处理dns查询请求的方法及装置
WO2016101482A1 (zh) * 2014-12-23 2016-06-30 小米科技有限责任公司 连接方法及装置
CN108924274A (zh) * 2018-09-14 2018-11-30 Oppo广东移动通信有限公司 域名系统dns处理方法、装置、存储介质及电子设备
CN109526020A (zh) * 2018-10-29 2019-03-26 Oppo广东移动通信有限公司 数据传输方法及相关产品
CN111556552A (zh) * 2020-03-26 2020-08-18 维沃移动通信有限公司 数据传输方法及电子设备

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1895713B1 (en) * 2006-08-31 2012-10-03 LG Electronics Inc. Apparatus and method of optimizing the power saving in a handset with WLAN and Bluetooth
US8671172B2 (en) * 2009-07-09 2014-03-11 International Business Machines Corporation Network device configuration
CN102056329A (zh) * 2009-11-04 2011-05-11 中国移动通信集团公司 多ap连接管理的方法与装置
CN102301682B (zh) * 2011-04-29 2014-02-19 华为技术有限公司 网络缓存方法和系统及dns重定向子系统
US8891552B2 (en) * 2011-11-08 2014-11-18 Cisco Technology, Inc. Managed access to mobile endpoints
US9801124B2 (en) * 2012-05-01 2017-10-24 Qualcomm Incorporated Systems and methods for configuring connectivity in a wireless network
CN107071867B (zh) * 2012-06-30 2020-07-24 华为终端有限公司 无线网络访问方法、Wifi接入点及终端
JP6105758B2 (ja) * 2013-02-25 2017-03-29 エルジー エレクトロニクス インコーポレイティド 無線通信システムにおけるセルラセッションを設定する方法及び装置
US9191271B2 (en) * 2013-04-29 2015-11-17 Telefonaktiebolaget L M Ericsson (Publ) Fast traffic recovery in VRRP based routers
CN105376835B (zh) * 2015-11-24 2019-03-15 北京智享科技有限公司 一种便携式设备和移动终端连接便携式设备的方法
ITUB20159498A1 (it) * 2015-12-21 2017-06-21 Ennova S R L Procedimento di ispezione di pacchetti di dati, relativo dispositivo e prodotto informatico
CN106953752A (zh) * 2017-03-14 2017-07-14 上海联彤网络通讯技术有限公司 实现多网络共存并同时被访问的系统及方法
CN109151863A (zh) * 2018-08-30 2019-01-04 希格斯动力科技(珠海)有限公司 基于路由表的安卓系统网络管理方法及系统
CN109661016A (zh) * 2018-12-27 2019-04-19 维沃移动通信有限公司 一种网络接入方法及终端设备
CN109889499B (zh) * 2019-01-17 2021-01-12 Oppo广东移动通信有限公司 报文发送方法及相关装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144231A (zh) * 2014-08-21 2014-11-12 北京金山安全软件有限公司 处理dns查询请求的方法及装置
WO2016101482A1 (zh) * 2014-12-23 2016-06-30 小米科技有限责任公司 连接方法及装置
CN108924274A (zh) * 2018-09-14 2018-11-30 Oppo广东移动通信有限公司 域名系统dns处理方法、装置、存储介质及电子设备
CN109526020A (zh) * 2018-10-29 2019-03-26 Oppo广东移动通信有限公司 数据传输方法及相关产品
CN111556552A (zh) * 2020-03-26 2020-08-18 维沃移动通信有限公司 数据传输方法及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4132111A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116489747A (zh) * 2022-01-14 2023-07-25 荣耀终端有限公司 通信方法及装置
EP4247056A4 (en) * 2022-01-14 2024-09-11 Honor Device Co., Ltd. COMMUNICATION METHOD AND APPARATUS
US12621757B2 (en) 2022-01-14 2026-05-05 Honor Device Co., Ltd. Communication method and apparatus

Also Published As

Publication number Publication date
EP4132111B1 (en) 2025-07-09
EP4132111A4 (en) 2023-08-30
ES3037792T3 (en) 2025-10-06
CN111556552B (zh) 2023-01-31
CN111556552A (zh) 2020-08-18
US20230018089A1 (en) 2023-01-19
US12402058B2 (en) 2025-08-26
EP4132111A1 (en) 2023-02-08

Similar Documents

Publication Publication Date Title
US20220318038A1 (en) Interface sharing method and electronic device
CN110062372B (zh) 一种sim卡控制方法及终端设备
US12402058B2 (en) Data transmission method and electronic device
WO2021175244A1 (zh) 授权和策略参数配置方法、终端及网络功能
KR102596801B1 (ko) Pc5 링크 확립 방법, 장비 및 시스템
CN110958710B (zh) 信道接入方法、配置方法、终端及网络侧设备
US20230050458A1 (en) Cell selection method, cell selection control method and reated device
CN111818658B (zh) 调度请求发送方法、调度请求接收方法、终端和网络设备
WO2020186964A1 (zh) 音频信号的输出方法及终端设备
CN111182580B (zh) 业务传输方法、终端和网络侧设备
KR20200090260A (ko) 서비스 처리 방법 및 이동 통신 단말
WO2021208815A1 (zh) 业务处理方法、用户设备及计算机可读存储介质
WO2021136473A1 (zh) 多播业务的传输方法、传输处理方法及相关设备
JP2023508739A5 (zh)
WO2020151701A1 (zh) 资源池切换方法、装置、移动终端、网络侧设备及介质
WO2021017785A1 (zh) 数据传输方法及终端设备
WO2020173281A1 (zh) 界面显示方法及终端设备
WO2019214706A1 (zh) 接入控制方法、消息广播方法及相关设备
WO2021077898A1 (zh) 网络注册方法及电子设备
CN111278169B (zh) 切换方法、第一终端及第二终端
CN111343695A (zh) 网络连接方法、第一电子设备和介质
CN111343618A (zh) 一种显示方法及电子设备
CN109992430B (zh) 一种数据传输方法、第一终端和第二终端
CN111800879B (zh) Mbms、单播数据传输方法、网络设备及终端设备
CN108419283A (zh) 一种wifi热点扫描的方法及移动终端

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: 21774891

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021774891

Country of ref document: EP

Effective date: 20221026

WWG Wipo information: grant in national office

Ref document number: 2021774891

Country of ref document: EP