WO2022062796A1 - Network control method, apparatus, and electronic device - Google Patents

Network control method, apparatus, and electronic device Download PDF

Info

Publication number
WO2022062796A1
WO2022062796A1 PCT/CN2021/114025 CN2021114025W WO2022062796A1 WO 2022062796 A1 WO2022062796 A1 WO 2022062796A1 CN 2021114025 W CN2021114025 W CN 2021114025W WO 2022062796 A1 WO2022062796 A1 WO 2022062796A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network
target terminal
message
terminals
Prior art date
Application number
PCT/CN2021/114025
Other languages
French (fr)
Chinese (zh)
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 WO2022062796A1 publication Critical patent/WO2022062796A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • 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
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node 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/32Connectivity information management, e.g. connectivity discovery or connectivity update for defining a routing cluster membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a network control method, apparatus, and electronic device.
  • the embodiments of the present application provide a network control method, device, and electronic device, which can dynamically adjust the routes of terminals based on the network capabilities of different terminals under the same local area network, and find the best route, which reduces network delay and improves network transmission. speed, thereby improving the online experience.
  • an embodiment of the present application provides a network control method, the method includes: determining network capabilities of at least two terminals under the same local area network; determining a first target terminal and a second target terminal according to the network capabilities, wherein the first target terminal Both the target terminal and the second target terminal are at least one terminal in the terminal group, and the network capability of the first target terminal is stronger than that of the second target terminal; sending a first message to the second target terminal, where the first message includes the first Identification information of the target terminal, the identification information carries IP address information of the first target terminal, and the first message is used to instruct the second target terminal to use the first target terminal as a next-hop route. Therefore, based on the network capabilities of different terminals under the same local area network, the routing of the terminals is dynamically adjusted, the network delay is reduced, the network transmission speed is improved, and the Internet access experience is further improved.
  • determining the network capabilities of at least two terminals in a terminal group under the same local area network includes: acquiring device status information of the at least two terminals, where the device status information includes operator type, network type, network signal strength , one or more of the network load, the processor load, and the power; and based on the device status information of the at least two terminals, determine the network capabilities of the at least two terminals.
  • the network capability of the terminal is determined.
  • the method is applied to a master terminal in a terminal group, and acquiring device status information of at least two terminals includes: generating first device status information, and sending the first device status information to a database server, So that the database server distributes the first device state information to the slave terminals in the terminal group; receives the second device state information of the slave terminal forwarded by the database server, wherein the second state information is after the slave terminal receives the first device state information. Generated and sent to the database server.
  • the master terminal can obtain the device status information of the slave terminal.
  • the network capability is obtained by weighting and combining the information included in the device status information by using a weighting factor. From this, the network capability of the terminal is calculated.
  • determining the network capabilities of at least two terminals in a terminal group under the same local area network includes: receiving a first data packet sent by the at least two terminals, where the first data packet includes the network capabilities. Thereby, the network capability of the terminal is obtained.
  • determining the first target terminal and the second target terminal according to the network capabilities includes: sorting the network capabilities of the at least two terminals, and determining the first target terminal and the second target terminal based on the sorting result terminal. Thus, the first target terminal and the second target terminal are determined.
  • the method before sending the first message to the second target terminal, includes: sending a second message to the first target terminal, where the second message is used to instruct the first target terminal to enable network sharing; receiving the first target terminal
  • the third message fed back by the terminal includes information that the first target terminal has successfully enabled network sharing. Thereby, it is realized to notify the second target terminal to enable network sharing.
  • the method is applied to the first terminal in the terminal group, and before determining the network capabilities of at least two terminals in the terminal group under the same local area network, the method includes: sharing the group identification information of the trusted group to at least two A second terminal, so that at least one second terminal joins a trusted group based on the group identification information, wherein the trusted group is established by the first terminal, and the terminals in the trusted group constitute a terminal group. Thereby, the terminal that can dynamically adjust the route is determined.
  • the group identification information carries network information of the network shared by the first terminal, wherein the first terminal is the next hop route of the second terminal, and the network information includes the network information of the network shared by the first terminal. Password and ID.
  • an embodiment of the present application provides a network control method, which is applied to a first target terminal.
  • the method includes: receiving a second message sent by an electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic
  • the device includes a terminal or a server; network sharing is enabled; a second data packet sent by the second target terminal is received, and the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
  • the second data packet is forwarded to the destination host indicated by the destination network address.
  • the first target terminal is implemented as the next hop route of the second target terminal.
  • the method before receiving the first message sent by the electronic device, the method further includes: sending a third data packet to the electronic device, where the first data packet includes the network capability of the first target terminal.
  • the electronic device can obtain the network capability of the first target terminal.
  • an embodiment of the present application provides a network control method, which is applied to a second target terminal.
  • the method includes: receiving a first message sent by an electronic device, where the electronic device includes a terminal or a server, and the first message includes a first target terminal.
  • the identification information of the first target terminal carries the IP address information of the first target terminal, and the first message is used to instruct the second target terminal to use the first target terminal as the next hop route, wherein the first target terminal and the second target terminal are terminals in the same local area network; send a second data packet to the first target terminal, and the second data packet includes the destination network address.
  • the second target terminal can dynamically adjust the route.
  • the method before receiving the first message sent by the electronic device, the method further includes: sending a first data packet to the electronic device, where the first data packet includes the network capability of the second target terminal. Thereby, the electronic device obtains the network capability of the second target terminal.
  • an embodiment of the present application provides a network control device, the device comprising:
  • the determining unit is configured to determine the network capabilities of at least two terminals under the same local area network, and determine the first target terminal and the second target terminal according to the network capabilities, wherein the first target terminal and the second target terminal are both in the terminal group. At least one terminal, the network capability of the first target terminal is stronger than the network capability of the second target terminal;
  • the first sending unit is configured to send a first message to the second target terminal, where the first message includes identification information of the first target terminal, the identification information carries the IP address information of the first target terminal, and the first message is used to indicate the first target terminal.
  • the second target terminal takes the first target terminal as the next hop route.
  • the determining unit is further configured to:
  • the device status information includes one or more of carrier type, network type, network signal strength, network load, processor load, and power;
  • network capabilities of the at least two terminals are determined.
  • the device is deployed on the master terminal in the terminal group, the determining unit is further configured as:
  • the network capability is obtained by weighting and combining the information included in the device status information by using a weighting factor.
  • the determining unit is further configured to:
  • a first data packet sent by at least two terminals is received, where the first data packet includes network capabilities.
  • the determining unit is further configured to:
  • the network capabilities of the at least two terminals are ranked, and based on the ranking result, the first target terminal and the second target terminal are determined.
  • the first sending unit is further configured to:
  • a third message fed back by the first target terminal is received, where the third message includes information that the first target terminal has successfully enabled network sharing.
  • the device is deployed on the first terminal in the terminal group, and the determining unit is further configured to:
  • the trusted group Shares the group identification information of the trusted group to at least one second terminal, so that the at least one second terminal joins the trusted group based on the group identification information, wherein the trusted group is established by the first terminal, and the trusted group is The terminals in form a terminal group.
  • the group identification information carries network information of the network shared by the first terminal, wherein the first terminal is the next hop route of the second terminal, and the network information includes the network information of the network shared by the first terminal. Password and ID.
  • an embodiment of the present application provides a network control device, which is deployed on a first target terminal, and the device includes:
  • a first receiving unit configured to receive a second message sent by the electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic device includes a terminal or a server;
  • a second receiving unit configured to receive a second data packet sent by a second target terminal, where the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
  • the forwarding unit is configured to forward the second data packet to the destination host indicated by the destination network address.
  • the apparatus further includes:
  • the second sending unit is configured to send a third data packet to the electronic device before the first receiving unit receives the second message, where the first data packet includes the network capability of the first target terminal.
  • an embodiment of the present application provides a network control device, which is deployed on a second target terminal, and the device includes:
  • the third receiving unit is configured to receive the first message sent by the electronic device, the electronic device includes a terminal or a server, the first message includes identification information of the first target terminal, and the identification information carries the IP address information of the first target terminal, and the first message includes the identification information of the first target terminal.
  • a message is used to instruct the second target terminal to use the first target terminal as a next-hop route, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
  • the third sending unit is configured to send a second data packet to the first target terminal, where the second data packet includes the destination network address.
  • the third sending unit is further configured to:
  • a first data packet is sent to the electronic device, where the first data packet includes the network capability of the second target terminal.
  • an embodiment of the present application provides an electronic device, including a touch screen, a memory, one or more processors, multiple application programs, and one or more programs; wherein one or more programs are stored in the memory ; When one or more processors execute one or more programs, the electronic device implements the method provided by the above aspects.
  • an embodiment of the present application provides an electronic device, including the device provided in the above aspect.
  • an embodiment of the present application provides a computer storage medium, where instructions are stored in the computer storage medium, and when the instructions are executed on the computer, the computer is made to execute the method provided in the above aspect.
  • the embodiments of the present application provide a computer program product containing instructions, when the instructions are executed on a computer, the computer executes the method provided above.
  • an embodiment of the present application provides a chip, including at least one processor and an interface;
  • At least one processor is configured to execute program line instructions to implement the methods provided by the above aspects.
  • FIG. 1a and FIG. 1b together constitute a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2a and FIG. 2b together constitute another schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a hardware structure of a terminal provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a software structure of a terminal provided by an embodiment of the present application.
  • 5a is a schematic diagram of an interface for creating a trusted group provided by an embodiment of the present application.
  • 5b is a schematic diagram of a graphic code provided by an embodiment of the present application.
  • 5c is a schematic diagram of an interface for opening a network hotspot provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of communication for determining the network capability of a terminal provided by an embodiment of the present application.
  • FIG. 7 is another schematic diagram of communication for determining the network capability of a terminal provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of communication in which a terminal instructs network sharing and network borrowing provided by an embodiment of the present application
  • 9a is a schematic diagram of a network configuration of a terminal provided by an embodiment of the present application.
  • FIG. 9b is a schematic diagram of a network configuration of another terminal provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of communication between terminals according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of communication after a terminal adjusts a route according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a network control apparatus provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of another network control apparatus provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of another network control apparatus provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • words such as “exemplary”, “such as” or “for example” are used to mean serving as an example, illustration or illustration. Any embodiments or designs described in the embodiments of the present application as “exemplary,” “such as,” or “by way of example” should not be construed as preferred or advantageous over other embodiments or designs. Rather, use of words such as “exemplary,” “such as,” or “by way of example” is intended to present the related concepts in a specific manner.
  • the term "and/or" is only an association relationship for describing associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate: A alone exists, A alone exists There is B, and there are three cases of A and B at the same time.
  • the term "plurality" means two or more.
  • multiple systems refer to two or more systems
  • multiple screen terminals refer to two or more screen terminals.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the indicated technical features. Thus, a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • FIG. 1a and FIG. 1b together constitute a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the terminal 11 , the terminal 12 and the terminal 13 are in the same local area network, and all perform network communication through the routing device 21 . If the network signal of the network provided by the routing device 21 is unstable, one of the terminal 11, the terminal 12 and the terminal 13, such as the terminal 11, can determine the terminal with strong network capability based on the network capability of each terminal. Such as terminal 13, and a terminal determined to have poor network capability, such as terminal 12. After that, the terminal 11 can communicate with the terminal 13 to enable the terminal 13 to enable network sharing.
  • the terminal 11 can communicate with the terminal 12 and send the information of the terminal 13 , such as an IP address, to the terminal 12 .
  • the terminal 12 can change its network configuration information, such as gateway information, DNS information, etc., according to the information of the terminal 13, so as to use the terminal 13 as the next hop route of the terminal 12, so that the terminal 12 can pass the terminal 13 for network communication.
  • the network transmission delay is reduced, the network transmission efficiency is improved, and the surfing experience is further improved.
  • the arrows in FIG. 1a and FIG. 1b point to indicate the flow of uplink data of the terminal.
  • FIG. 2a and FIG. 2b together constitute another schematic diagram of an application scenario provided by an embodiment of the present application.
  • the terminal 11 opens a network hotspot, and the terminal 12, the terminal 13 and the terminal 14 jointly use the network hotspot opened by the terminal 11 for network communication.
  • the terminal 11, the terminal 12, the terminal 13 and the terminal 14 are under the same local area network.
  • the network signal of the network provided by the terminal 11 is unstable, one of the terminal 11, the terminal 12, the terminal 13 and the terminal 14, such as the terminal 11, can determine the network capability based on the network capability of each terminal.
  • the terminal 11 can communicate with the terminal 14 to enable the terminal 14 to enable network sharing.
  • the terminal 11 can communicate with the terminal 13 and send the information of the terminal 14 , such as an IP address, to the terminal 13 .
  • the terminal 13 can change its network configuration information, such as gateway information, DNS information, etc., according to the information of the terminal 14, so as to use the terminal 14 as the next hop route of the terminal 13, so that the terminal 13 can pass the terminal 14 for network communication.
  • the network transmission delay is reduced, the network transmission efficiency is improved, and the surfing experience is further improved.
  • the arrows in FIG. 2a and FIG. 2b point to indicate the flow of uplink data of the terminal.
  • the terminal may be an electronic device such as a mobile phone, a tablet computer, a digital camera, a personal digital assistant (PDA), a wearable device, a smart TV, and a Huawei smart screen.
  • electronic devices include, but are not limited to, electronic devices equipped with iOS, android, Windows, Harmony OS, or other operating systems.
  • the electronic device described above may also be other electronic devices, such as a laptop or the like having a touch-sensitive surface (eg, a touch panel).
  • the embodiment of the present application does not specifically limit the type of the electronic device.
  • FIG. 3 shows a schematic diagram of the hardware structure of the terminal.
  • the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193, Display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the terminal 100 may further include a routing management module (not shown in the figure).
  • the routing management module can be used to configure the routing forwarding function, for example, enable the IP forwarding function, enable the DNS forwarding function, and enable the NET forwarding function; address, adjust the DNS information and gateway information of the terminal 100, and the like.
  • the route management module can also be used to implement the function of data forwarding, for example, forwarding a data packet sent by one of the terminals to the destination host indicated by the destination network address carried in the data packet.
  • the terminal 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem (modem), a graphics processor (graphics processing unit, GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU), etc. one or more. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor
  • modem modem
  • graphics processor graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be directly called from the memory to avoid repeated access, reduce the waiting time of the processor 110, and improve the efficiency of the system.
  • the processor 110 may be configured to determine a terminal with strong network capability and a terminal with poor network capability, or determine the network capability of the terminal 100 itself, according to the network capability of each terminal.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a Universal Asynchronous Receiver/Transmitter (Universal Asynchronous Receiver/ Transmitter, UART) interface, Mobile Industry Processor Interface (MIPI), General Purpose I/0Ports (GPIO), Subscriber Identity Module (SIM) interface, and/or Universal Serial Bus (Universal Serial Bus) , USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit sound
  • PCM pulse code modulation
  • PCM Pulse Code Modulation
  • UART Universal Asynchronous Receiver/Transmitter
  • MIPI Mobile Industry Processor Interface
  • GPIO General Purpose I/0Ports
  • SIM Subscriber Identity Module
  • USB Universal Serial Bus
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal 100 . While the charging management module 140 charges the battery 142 , it can also supply power to other electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other examples, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves by at least two antennas including the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem, and then convert it into electromagnetic waves for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • a modem may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem may be a stand-alone device.
  • the modem may be independent of the processor 110 and provided in the same device as the mobile communication module 150 or other functional modules.
  • the mobile communication module 150 may be a module in a modem.
  • the wireless communication module 160 can provide applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for
  • the antenna 1 of the terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), fifth generation, new air interface ( new radio, NR), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • LTE long term evolution
  • fifth generation new air interface (new radio, NR),
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the terminal 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • terminal 100 may include one or more display screens 194 .
  • the terminal 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • the camera 193 is used to capture still images or videos, for example, to capture facial feature information, posture feature information and the like of a person.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS) phototransistor.
  • CMOS complementary Metal Oxide Semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • terminal 100 may include one or more cameras 193 .
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and so on.
  • Video codecs are used to compress or decompress digital video.
  • Terminal 100 may support one or more video codecs.
  • the terminal 100 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some examples, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the terminal 100 may be provided with at least one microphone 170C.
  • the terminal 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals.
  • the terminal 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be provided on display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the terminal 100 determines the intensity of the pressure according to the change in capacitance.
  • the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the terminal 100 .
  • the angular velocity of terminal 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle at which the terminal 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to offset the movement of the terminal 100 through reverse motion. Shake, achieve anti-shake.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the terminal 100 can measure the distance through infrared or laser. In some examples, when using the terminal to collect user characteristic information of the user in the environment, the terminal 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal 100 when the temperature is lower than another threshold, the terminal 100 heats the battery 142 to avoid abnormal shutdown of the terminal 100 due to low temperature.
  • the terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the terminal 100 , which is different from the position where the display screen 194 is located.
  • the keys 190 include a power-on key, a volume key, an input keyboard, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the terminal 100 may receive key input and generate key signal input related to user settings and function control of the terminal 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications may correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the software system of the above-mentioned terminal 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, or the like.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the terminal 100 .
  • FIG. 4 is a schematic diagram of a software structure of a terminal 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer may include a series of application packages. As shown in Figure 4, applications such as camera, gallery, calendar, call, map, navigation, bluetooth, music, video, short message, etc. can be installed in the application layer.
  • the application further includes a group application.
  • the group application may provide an interface for the terminal 100 to set a trusted group, for example, allowing the user to set the name, password, etc. of the trusted group.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in FIG. 4 , the application framework layer may further include a window manager, a content provider, a phone manager, a resource manager, a group management service, a view system, etc., which are not limited in this embodiment of the present application.
  • the group management service may be used to provide group management functions. For example, the device status information of each terminal is stored, the network capability of each terminal device is evaluated, the best route is selected, and so on.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (MediaLibraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), status monitoring services, etc.
  • surface manager surface manager
  • media library MediaLibraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • status monitoring services etc.
  • the Surface Manager can be used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library can support a variety of commonly used audio and video formats for playback and recording, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the status monitoring service may be used to monitor the device status information of the terminal 100, for example, monitor the operator type, network type, network signal strength, network load, processor load, power level, and the like of the terminal 100. After monitoring the device status information of the terminal 100, data such as device status information can be sent to the group application service.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • Users can preset terminals that can dynamically adjust routing to improve network security. For example, create a trusted group where group members in the trusted group can dynamically adjust routing.
  • the terminal 11 , the terminal 12 and the terminal 13 all perform network communication through the routing device 21 .
  • the owner of the terminal 11 can create a trusted group through the terminal 11.
  • Fig. 5a he can select "create a trusted group" in the "routing setting" in the terminal 11, and then, as shown in Fig. 5b
  • a graphic code such as a two-dimensional code, can be generated on the terminal 11, wherein the graphic code can include group information such as the identity identifier and password of the trusted group; then, other terminals can scan the graphic code to join into the trusted group created by the terminal 11.
  • the terminal 11 may be referred to as a group owner, and other terminals in the trusted group may be referred to as group members.
  • other methods can also be used for sharing. For example, after the owner of the terminal 11 selects "create a trusted group", the terminal 11 can generate a group group link; after that, the owner of the terminal 11 can send the group link to the terminal 12 and the terminal 13 by means of a short message; finally, the terminal 12 and the terminal 13 click the group link to join the trusted group middle.
  • the group link includes group information such as the identity identifier and password of the trusted group.
  • the terminal 11 opens a network hotspot, and the terminal 12 , the terminal 13 and the terminal 14 jointly use the network hotspot opened by the terminal 11 for network communication.
  • the owner of the terminal 11 can choose to turn on the hotspot and set a password.
  • the terminal 11 can generate a graphic code, such as a two-dimensional code, and the graphic code can include personal hotspots such as the identity of the hotspot (that is, the wireless network), the password, and the identity of the trusted group. information.
  • other terminals can join the wireless network and trusted group created by the terminal 11 by scanning the graphic code.
  • the terminal 11 may be referred to as a group owner, and other terminals in the trusted group may be referred to as group members.
  • other methods can also be used for sharing. For example, after the owner of the terminal 11 chooses to turn on the hotspot, the terminal 11 can generate a hotspot link; Send the hotspot link to the terminal 12 and the terminal 13 by means of a short message; finally, the terminal 12 and the terminal 13 click the hotspot link to join the wireless network and the trusted group created by the terminal 11 .
  • the hotspot link includes personal hotspot information such as the identity of the hotspot (that is, the wireless network), the password, and the identity of the trusted group.
  • FIG. 6 is a schematic diagram of communication for determining the network capability of a terminal according to an embodiment of the present application. As shown in Figure 6, it includes the following steps:
  • step S101 the master terminal and the slave terminal respectively generate their own device status information.
  • both the master terminal 11 and the slave terminal 12 can generate their own device status information in real time or intermittently, and the device status information includes the operator type, network type, network signal strength, network load, processor load, battery level one or more of.
  • the device status information may also include an identity identifier of the terminal, so as to distinguish the source of the device status information.
  • the slave terminal 12 may transmit its own device status information to the master terminal 11 .
  • the master terminal 11 can be understood as a terminal that makes routing decisions, wherein the routing decision can be understood as deciding that one terminal uses the network of the other terminal; the slave terminal 12 can be understood as not requiring A terminal that makes routing decisions, wherein the slave terminal 12 may be composed of one or more terminals.
  • the master terminal 11 may be the group owner of the trusted group by default.
  • each terminal can also compete to become the master terminal 11 . For example, if one of the terminals has a stronger data processing capability, it can compete to become the master terminal 11 .
  • Step S102 the slave terminal sends its device status information to the master terminal.
  • the slave terminal 12 may send its own device status information to the master terminal 11 .
  • the communication data packets between the slave terminal 12 and the master terminal 11 may be forwarded to the corresponding terminal via the routing device.
  • communication between the slave terminal 12 and the master terminal 11 may be performed through a communication method such as Bluetooth, Wi-Fi Direct, Universal Serial Bus (Universal Serial Bus, USB).
  • the user can preset the data communication method between the slave terminal 12 and the master terminal 11 , for example, the setting is a communication method in which data packets are forwarded by a routing device, or a communication method using Bluetooth.
  • Step S103 the master terminal determines the respective network capabilities of the master terminal and the slave terminal based on the device status information corresponding to the master terminal and the slave terminal.
  • the master terminal 11 can determine the network of each terminal (ie, the master terminal 11 and the slave terminal 12) based on its own device status information and the device status information of the slave terminal 12. ability.
  • the weights of different types of information in the device status information can be pre-calibrated, and then the different types of information can be weighted and combined to obtain the network capability of the terminal; The information contained in the device status information is weighted and combined to obtain the network capability of the terminal.
  • a database server may be selected to forward the device status information transmitted between the master terminal and the slave terminal. See the description below for details.
  • FIG. 7 is another schematic diagram of communication for determining the network capability of a terminal provided by an embodiment of the present application. As shown in Figure 7, it includes the following steps:
  • Step S201 the master terminal generates first device state information.
  • Step S202 the master terminal sends the first device state information to the database server.
  • the main terminal 11 may send its own first device state information to the database server 21 through the network.
  • the first device state information may include one or more of the operator type, network type, network signal strength, network load, processor load, and power of the master terminal 11 .
  • the first device state information may further include the identity identifier of the master terminal 11 .
  • Step S203 the database server forwards the first device state information to the slave terminal.
  • Step S204 Generate second device state information from the terminal.
  • Step S205 Send the second device state information from the terminal to the database server.
  • the slave terminal 12 can send the second device state information to the database server 21.
  • the second device state information may include one or more of the operator type, network type, network signal strength, network load, processor load, and power of the slave terminal.
  • the second device state information may also include the identity of the slave terminal 12 and the identity of the master terminal 11; wherein, the identity of the slave terminal 12 is a source for the master terminal 11 to distinguish the second device state information, and the master terminal 11
  • the identity identifier is a forwarding address that is convenient for the database server 21 to determine the state information of the second device.
  • Step S206 the database server forwards the second device state information to the main terminal.
  • Step S207 the master terminal determines the respective network capabilities of the master terminal and the slave terminal based on the device state information corresponding to the master terminal and the slave terminal.
  • the method of determining the network capability refer to the above description for details, and details are not repeated here.
  • both the master terminal and the slave terminal may determine their own network capabilities based on their own device status information. After that, the slave terminal can send its own network capability to the master terminal, so that the master terminal can directly determine the network capability of the slave terminal, without having to determine the device status information of the slave terminal to obtain the network capability of the slave terminal. capacity, thereby reducing the processing load of the main terminal and improving processing efficiency.
  • the terminal when determining the network capability of the terminal, in addition to being determined by the main terminal, it can also be determined by other devices, for example, determined by the server. In this case, the terminal needs to send its own device status information. to the corresponding server, so that the server can determine the network capability of the terminal based on the device state information of the terminal. In addition, if the network capability is determined by the terminal itself, the terminal can send its own network capability to a corresponding server, so that the server can learn the network capability of the terminal.
  • the master terminal or other device determines the respective network capabilities of the master terminal and the slave terminal, it can determine the terminal with strong network capability and the terminal with weak network capability according to the respective network capabilities of the master terminal and the slave terminal. For example, the network capabilities are ranked based on the strength of the network capabilities, and then, based on the ranking result, terminals with strong network capabilities and terminals with weak network capabilities can be determined.
  • the terminal with strong network capability is referred to as the first target terminal
  • the terminal with weak network capability is referred to as the second target terminal.
  • the master terminal or other device may send a second message to the first target terminal, where the second message may be used to instruct the first target terminal to enable network sharing.
  • the master terminal or other device may send a first message to the second target terminal, where the first message may be used to instruct the second target terminal to share the first target
  • the terminal acts as the next hop route, wherein the first message may include identification information of the first target terminal, and the identification information may carry IP address information of the first target terminal.
  • the second target terminal may adjust the route based on the first message to route the first target terminal as its next hop.
  • the master terminal may carry the IP address of the second target terminal in the second message, so that after the first target terminal enables network sharing, the first target terminal can directly communicate with the second target terminal, and there is no need to further communicate with the second target terminal.
  • the message is forwarded by the master terminal.
  • the master terminal or other device may also determine the type of network enabled by the first target terminal based on network information in the environment, for example, enable a 4G or 5G network for sharing. For example, if the 4G network signal in the environment where the main terminal or other device is currently located is stronger than the 5G network signal, the main terminal or other device may determine that the network type opened by the first target terminal is a 4G network.
  • the first target terminal can record its initial network configuration information when network sharing is enabled, as well as network configuration information after network sharing is enabled, and after network sharing ends, restore the network configuration information to the initial network configuration information.
  • the second target terminal may also record its initial network configuration information before routing adjustment and network configuration information after routing adjustment, and restore the network configuration information to the initial network configuration information after the first target terminal finishes sharing the network .
  • FIG. 8 is a schematic diagram of communication in which a terminal instructs network sharing and network borrowing provided by an embodiment of the present application. As shown in Figure 8, it includes the following steps:
  • Step S301 the master terminal sends a second message to the first target terminal.
  • the master terminal 11 may send the second message to the first target terminal 13 .
  • the second message may be used to instruct the first target terminal 13 to enable network sharing.
  • Step S302 the first target terminal enables network sharing.
  • the first target terminal 13 after receiving the second message, the first target terminal 13 enables network sharing.
  • the first target terminal 13 may configure a routing forwarding function in its system kernel, for example, enable the IP forwarding function, enable the DNS forwarding function, and enable the NET forwarding function, and the like.
  • Step S303 the first target terminal feeds back a third message to the master terminal.
  • the first target terminal 13 After the first target terminal 13 successfully enables network sharing, it feeds back a third message to the master terminal 11 .
  • the third message includes information that the first target terminal 13 has successfully enabled network sharing.
  • Step S304 the master terminal sends the first message to the second target terminal.
  • the master terminal 11 may send the first message to the second target terminal 14 .
  • the first message may include identification information of the first target terminal 13 , and the identification information may carry IP address information of the first target terminal 13 .
  • the first message may be used to instruct the second target terminal 14 to use the first target terminal as a next hop route.
  • Step S305 the second target terminal adjusts the route.
  • the second target terminal 14 can adjust the route so that the first target terminal 13 is used as the next hop route.
  • the IP address information of the first target terminal 13 can be used as its gateway information, and the system kernel of the second target terminal 14 can automatically obtain the corresponding DNS information, so as to realize The first target terminal 13 is used as the next hop route of the second target terminal.
  • the initial gateway of the second target terminal 14 is 192.168.1.11, and the initial DNS is 1.1.1.1; if the IP address information of the first target terminal 13 is 192.168.2.21, as shown in Figure 9b, The second target terminal 14 can update its gateway to 192.168.2.21, and automatically obtain a new DNS, which is 2.2.2.2.
  • Step S306 the second target terminal feeds back a fourth message to the master terminal.
  • the second target terminal 14 after the second target terminal 14 successfully adjusts the route, it can feed back the fourth message to the main terminal 11 .
  • the fourth message includes information that the second target terminal 14 has successfully adjusted the route.
  • the first target terminal 13 can be re-determined, for example, other terminals with stronger network capabilities are selected as the first target terminal, which can be determined according to the actual situation. Not limited.
  • FIG. 10 is a schematic diagram of communication between terminals provided by an embodiment of the present application. As shown in FIG. 10 , the following steps are included:
  • Step S401 the second target terminal sends a fifth message to the first target terminal.
  • the second target terminal 14 can directly communicate with the first target terminal 13, and it can send a fifth message to the first target terminal 13, where the fifth message can be used to indicate the first target
  • the terminal 13 enables network sharing.
  • Step S402 the first target terminal enables network sharing.
  • Step S403 the first target terminal feeds back a third message to the second target terminal.
  • Step S404 the second target terminal adjusts the route.
  • the second target terminal after the second target terminal adjusts the route, it can connect to the network through the first target terminal. Specifically, as shown in Figure 11, the following steps are included:
  • Step S501 the second target terminal sends a second data packet to the first target terminal.
  • the second target terminal 14 may send a second data packet to the second target terminal 13, where the second data packet includes the destination network address.
  • Step S502 the first target terminal forwards the second data packet to the destination host indicated by the destination network address.
  • the first target terminal 13 may check the destination network address, and then look up the routing table. After the first target terminal 13 finds a routing table entry matching the destination network address, the first target terminal 13 will forward the second data packet to the destination host indicated by the destination network address according to the exit and interface information indicated by the table 15.
  • FIG. 12 is a schematic structural diagram of a network control apparatus provided by an embodiment of the present application.
  • the network control apparatus 200 includes:
  • the determining unit 21 is configured to determine the network capabilities of at least two terminals under the same local area network, and determine the first target terminal and the second target terminal according to the network capabilities, wherein the first target terminal and the second target terminal are both in the terminal group. At least one terminal of the first target terminal, the network capability of the first target terminal is stronger than that of the second target terminal;
  • the first sending unit 22 is configured to send a first message to the second target terminal, where the first message includes identification information of the first target terminal, the identification information carries the IP address information of the first target terminal, and the first message is used to indicate The second target terminal takes the first target terminal as the next hop route.
  • the determining unit 21 is further configured to:
  • the device status information includes one or more of carrier type, network type, network signal strength, network load, processor load, and power;
  • network capabilities of the at least two terminals are determined.
  • the device is deployed on the master terminal in the terminal group, and the determining unit 21 is further configured to:
  • the network capabilities are obtained by weighting the information included in the device state information using weighting factors.
  • the determining unit 21 is further configured to:
  • a first data packet sent by at least two terminals is received, where the first data packet includes network capabilities.
  • the determining unit 21 is further configured to:
  • the network capabilities of the at least two terminals are ranked, and based on the ranking result, the first target terminal and the second target terminal are determined.
  • the first sending unit 22 is further configured to:
  • a third message fed back by the first target terminal is received, where the third message includes information that the first target terminal has successfully enabled network sharing.
  • the device is deployed on the first terminal in the terminal group, and the determining unit 21 is further configured to:
  • the trusted group Shares the group identification information of the trusted group to at least one second terminal, so that the at least one second terminal joins the trusted group based on the group identification information, wherein the trusted group is established by the first terminal, and the trusted group is The terminals in form a terminal group.
  • the group identification information carries network information of the network shared by the first terminal, where the first terminal is the next hop route of the second terminal, and the network information includes the password and identity of the network shared by the first terminal .
  • an embodiment of the present application further provides a network control apparatus, where the network control apparatus is deployed on the first target terminal.
  • FIG. 13 is a schematic structural diagram of another network control apparatus provided by an embodiment of the present application. As shown in FIG. 13 , the network control apparatus 300 includes:
  • the first receiving unit 31 is configured to receive a second message sent by the electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic device includes a terminal or a server;
  • an opening unit 32 configured to enable network sharing
  • the second receiving unit 33 is configured to receive a second data packet sent by the second target terminal, where the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
  • the forwarding unit 34 is configured to forward the second data packet to the destination host indicated by the destination network address.
  • the apparatus further includes:
  • the second sending unit is configured to send a third data packet to the electronic device before the first receiving unit receives the second message, where the first data packet includes the network capability of the first target terminal.
  • an embodiment of the present application further provides a network control apparatus, where the network control apparatus is deployed on a second target terminal.
  • Fig. 14 is a schematic structural diagram of another network control device provided by an embodiment of the present application. As shown in Fig. 14, the network control device 400 includes:
  • the third receiving unit 41 is configured to receive a first message sent by an electronic device, the electronic device includes a terminal or a server, the first message includes identification information of the first target terminal, and the identification information carries the IP address information of the first target terminal, The first message is used to instruct the second target terminal to use the first target terminal as a next-hop route, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
  • the third sending unit 42 is configured to send a second data packet to the first target terminal, where the second data packet includes the destination network address.
  • the third sending unit 41 is further configured to:
  • a first data packet is sent to the electronic device, where the first data packet includes the network capability of the second target terminal.
  • the embodiment of the present application further provides an electronic device, the electronic device includes a touch screen, a memory, one or more processors, multiple application programs, and one or more programs; wherein One or more programs are stored in the memory; one or more processors, when executing the one or more programs, cause the electronic device to implement the methods provided by the above aspects.
  • the present application also provides an electronic device, which includes the network control device provided in the above aspect.
  • an embodiment of the present application further provides a chip.
  • FIG. 15 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • Chip 1500 includes one or more processors 1501 and interface circuits 1502 .
  • the chip 1500 may further include a bus 1503 . in:
  • the processor 1501 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 1501 or an instruction in the form of software.
  • the above-mentioned processor 1501 may be a general purpose processor, a digital communicator (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
  • DSP digital communicator
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the interface circuit 1502 can be used for sending or receiving data, instructions or information.
  • the processor 1501 can use the data, instructions or other information received by the interface circuit 1502 to process, and can send the processing completion information through the interface circuit 1502.
  • the chip further includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory stores executable software modules or data structures
  • the processor may execute corresponding operations by calling operation instructions stored in the memory (the operation instructions may be stored in the operating system).
  • the chip may be used in the communication apparatus (including the master node and the slave node) involved in the embodiments of the present application.
  • the interface circuit 1502 may be used to output the execution result of the processor 1501 .
  • processor 1501 and the interface circuit 1502 can be realized by hardware design, software design, or a combination of software and hardware, which is not limited here.
  • the processor can be a CPU, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, For example, discrete gates, transistor logic devices, or discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general-purpose processors, digital signal processors (digital signal processors, DSP), application-specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processors
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disks, removable hard disks, CD-ROMs or known in the art in any other form of storage medium.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage medium may reside in an ASIC.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • the computer instructions can be sent from one website site, computer, server, or data center to another website site by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application provides a network control method, an apparatus and an electronic device, relating to the field of communication technology. Said method comprises: determining the network capability of at least two terminals under the same local area network; determining a first target terminal and a second target terminal according to the network capability, the first target terminal and the second target terminal being both at least one terminal in a terminal group, and the network capability of the first target terminal being stronger than the network capability of the second target terminal; and sending a first message to the second target terminal, the first message comprising identification information of the first target terminal, the identification information carrying IP address information of the first target terminal, and the first message being used for instructing the second target terminal to use the first target terminal as a next hop route. With said method, a route of a terminal can be dynamically adjusted on the basis of the network capability of different terminals under the same local area network, and an optimal route can be found, reducing the network delay, improving the network transmission speed, and further improving the Internet access experience.

Description

一种网络控制方法、装置及电子设备A network control method, device and electronic device
本申请要求于2020年9月22日提交中国国家知识产权局、申请号为202011000675.8、申请名称为“一种网络控制方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application number of 202011000675.8 and an application title of "A Network Control Method, Device and Electronic Equipment" filed with the State Intellectual Property Office of China on September 22, 2020, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种网络控制方法、装置及电子设备。The present application relates to the field of communication technologies, and in particular, to a network control method, apparatus, and electronic device.
背景技术Background technique
随着智能设备的快速发展,人们所拥有的终端数量也越来越多,如手机、pad、手表、电脑等。目前,人们在使用其所拥有的终端在局域网(如,家庭或办公无线网络环境等)中上网时,若局域网中出现网络信号不稳定或多个终端进行信道竞争等情况,则会导致局域网的网络不稳定,进而增加网络时延,降低网络传输速度,使得人们难以继续使用终端进行浏览或下载网络上的信息。With the rapid development of smart devices, people have more and more terminals, such as mobile phones, pads, watches, computers, etc. At present, when people use their own terminals to surf the Internet in a local area network (such as a home or office wireless network environment, etc.), if the network signal is unstable in the local area network or multiple terminals compete for channels, it will cause the local area network. The network is unstable, which increases the network delay and reduces the network transmission speed, making it difficult for people to continue to use the terminal to browse or download information on the network.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种网络控制方法、装置及电子设备,能够基于同一局域网下不同终端的网络能力,动态调整终端的路由,并找到最佳路由,降低了网络时延,提升了网络传输速度,进而提升了上网体验。The embodiments of the present application provide a network control method, device, and electronic device, which can dynamically adjust the routes of terminals based on the network capabilities of different terminals under the same local area network, and find the best route, which reduces network delay and improves network transmission. speed, thereby improving the online experience.
第一方面,本申请实施例提供了一种网络控制方法,方法包括:确定同一局域网下至少两个终端的网络能力;根据网络能力,确定第一目标终端和第二目标终端,其中,第一目标终端和第二目标终端均为终端组中的至少一个终端,第一目标终端的网络能力强于第二目标终端的网络能力;向第二目标终端发送第一消息,第一消息包括第一目标终端的标识信息,标识信息中携带有第一目标终端的IP地址信息,第一消息用于指示第二目标终端将第一目标终端作为下一跳路由。由此,基于同一局域网下不同终端的网络能力,动态调整终端的路由,降低网络时延,提升网络传输速度,进而提升上网体验。In a first aspect, an embodiment of the present application provides a network control method, the method includes: determining network capabilities of at least two terminals under the same local area network; determining a first target terminal and a second target terminal according to the network capabilities, wherein the first target terminal Both the target terminal and the second target terminal are at least one terminal in the terminal group, and the network capability of the first target terminal is stronger than that of the second target terminal; sending a first message to the second target terminal, where the first message includes the first Identification information of the target terminal, the identification information carries IP address information of the first target terminal, and the first message is used to instruct the second target terminal to use the first target terminal as a next-hop route. Therefore, based on the network capabilities of different terminals under the same local area network, the routing of the terminals is dynamically adjusted, the network delay is reduced, the network transmission speed is improved, and the Internet access experience is further improved.
在一种可能的实现方式中,确定同一局域网下终端组中至少两个终端的网络能力,包括:获取至少两个终端的设备状态信息,设备状态信息包括运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种;基于至少两个终端的设备状态信息,确定至少两个终端的网络能力。由此,基于终端的设备状态信息,确定出终端的网络能力。In a possible implementation manner, determining the network capabilities of at least two terminals in a terminal group under the same local area network includes: acquiring device status information of the at least two terminals, where the device status information includes operator type, network type, network signal strength , one or more of the network load, the processor load, and the power; and based on the device status information of the at least two terminals, determine the network capabilities of the at least two terminals. Thus, based on the device state information of the terminal, the network capability of the terminal is determined.
在一种可能的实现方式中,方法应用于终端组中的主终端,获取至少两个终端的设备状态信息,包括:生成第一设备状态信息,以及将第一设备状态信息发送至数据库服务器,以使数据库服务器将第一设备状态信息分发至终端组中的从终端;接收数据库服务器转发的从终端的第二设备状态信息,其中,第二状态信息为从终端接收到第一设备状态信息后生成并发送至数据库服务器。由此,实现主终端获取到从终端的 设备状态信息。In a possible implementation manner, the method is applied to a master terminal in a terminal group, and acquiring device status information of at least two terminals includes: generating first device status information, and sending the first device status information to a database server, So that the database server distributes the first device state information to the slave terminals in the terminal group; receives the second device state information of the slave terminal forwarded by the database server, wherein the second state information is after the slave terminal receives the first device state information. Generated and sent to the database server. Thus, the master terminal can obtain the device status information of the slave terminal.
在一种可能的实现方式中,网络能力由使用权重因子对设备状态信息中所包括的信息进行加权组合得到。由此,计算出终端的网络能力。In a possible implementation manner, the network capability is obtained by weighting and combining the information included in the device status information by using a weighting factor. From this, the network capability of the terminal is calculated.
在一种可能的实现方式中,确定同一局域网下终端组中至少两个终端的网络能力,包括:接收至少两个终端发送的第一数据包,第一数据包包括网络能力。由此,得到终端的网络能力。In a possible implementation manner, determining the network capabilities of at least two terminals in a terminal group under the same local area network includes: receiving a first data packet sent by the at least two terminals, where the first data packet includes the network capabilities. Thereby, the network capability of the terminal is obtained.
在一种可能的实现方式中,根据网络能力,确定第一目标终端和第二目标终端,包括:对至少两个终端的网络能力排序,以及基于排序结果,确定第一目标终端和第二目标终端。由此,确定出第一目标终端和第二目标终端。In a possible implementation manner, determining the first target terminal and the second target terminal according to the network capabilities includes: sorting the network capabilities of the at least two terminals, and determining the first target terminal and the second target terminal based on the sorting result terminal. Thus, the first target terminal and the second target terminal are determined.
在一种可能的实现方式中,向第二目标终端发送第一消息之前,包括:向第一目标终端发送第二消息,第二消息用于指示第一目标终端开启网络分享;接收第一目标终端反馈的第三消息,第三消息包括第一目标终端已成功开启网络分享的信息。由此,实现通知第二目标终端开启网络分享。In a possible implementation manner, before sending the first message to the second target terminal, the method includes: sending a second message to the first target terminal, where the second message is used to instruct the first target terminal to enable network sharing; receiving the first target terminal The third message fed back by the terminal includes information that the first target terminal has successfully enabled network sharing. Thereby, it is realized to notify the second target terminal to enable network sharing.
在一种可能的实现方式中,方法应用于终端组中的第一终端,确定同一局域网下终端组中至少两个终端的网络能力之前,包括:将可信群组的群标识信息分享至至少一个第二终端,以使至少一个第二终端基于群标识信息加入可信群组,其中,可信群组由第一终端建立,可信群组中的终端构成终端组。由此,确定出可动态调整路由的终端。In a possible implementation manner, the method is applied to the first terminal in the terminal group, and before determining the network capabilities of at least two terminals in the terminal group under the same local area network, the method includes: sharing the group identification information of the trusted group to at least two A second terminal, so that at least one second terminal joins a trusted group based on the group identification information, wherein the trusted group is established by the first terminal, and the terminals in the trusted group constitute a terminal group. Thereby, the terminal that can dynamically adjust the route is determined.
在一种可能的实现方式中,群标识信息中携带有第一终端分享的网络的网络信息,其中,第一终端为第二终端的下一跳路由,网络信息包括第一终端分享的网络的密码和身份标识。由此,实现在第二终端连接第一终端的网络热点时第二终端加入到可信群组中。In a possible implementation manner, the group identification information carries network information of the network shared by the first terminal, wherein the first terminal is the next hop route of the second terminal, and the network information includes the network information of the network shared by the first terminal. Password and ID. Thus, it is realized that the second terminal joins the trusted group when the second terminal is connected to the network hotspot of the first terminal.
第二方面,本申请实施例提供了一种网络控制方法,应用于第一目标终端,方法包括:接收电子设备发送的第二消息,第二消息用于指示第一目标终端开启网络分享,电子设备包括终端或服务器;开启网络分享;接收第二目标终端发送的第二数据包,第二数据包包括目的网络地址,其中,第一目标终端和第二目标终端均为同一局域网中的终端;将第二数据包转发至目的网络地址所指示的目的主机。由此,实现第一目标终端作为第二目标终端的下一跳路由。In a second aspect, an embodiment of the present application provides a network control method, which is applied to a first target terminal. The method includes: receiving a second message sent by an electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic The device includes a terminal or a server; network sharing is enabled; a second data packet sent by the second target terminal is received, and the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both terminals in the same local area network; The second data packet is forwarded to the destination host indicated by the destination network address. Thereby, the first target terminal is implemented as the next hop route of the second target terminal.
在一种可能的实现方式中,接收电子设备发送的第一消息之前,还包括:向电子设备发送第三数据包,第一数据包包括第一目标终端的网络能力。由此,使得电子设备得到第一目标终端的网络能力。In a possible implementation manner, before receiving the first message sent by the electronic device, the method further includes: sending a third data packet to the electronic device, where the first data packet includes the network capability of the first target terminal. Thus, the electronic device can obtain the network capability of the first target terminal.
第三方面,本申请实施例提供了一种网络控制方法,应用于第二目标终端,方法包括:接收电子设备发送的第一消息,电子设备包括终端或服务器,第一消息包括第一目标终端的标识信息,标识信息中携带有第一目标终端的IP地址信息,第一消息用于指示第二目标终端将第一目标终端作为下一跳路由,其中,第一目标终端和第二目标终端均为同一局域网中的终端;向第一目标终端发送第二数据包,第二数据包包括目的网络地址。由此,实现第二目标终端动态调整路由。In a third aspect, an embodiment of the present application provides a network control method, which is applied to a second target terminal. The method includes: receiving a first message sent by an electronic device, where the electronic device includes a terminal or a server, and the first message includes a first target terminal The identification information of the first target terminal carries the IP address information of the first target terminal, and the first message is used to instruct the second target terminal to use the first target terminal as the next hop route, wherein the first target terminal and the second target terminal are terminals in the same local area network; send a second data packet to the first target terminal, and the second data packet includes the destination network address. Thereby, the second target terminal can dynamically adjust the route.
在一种可能的实现方式中,接收电子设备发送的第一消息之前,还包括:向电子设备发送第一数据包,第一数据包包括第二目标终端的网络能力。由此,使得电子设备得到第二目标终端的网络能力。In a possible implementation manner, before receiving the first message sent by the electronic device, the method further includes: sending a first data packet to the electronic device, where the first data packet includes the network capability of the second target terminal. Thereby, the electronic device obtains the network capability of the second target terminal.
第四方面,本申请实施例提供了一种网络控制装置,装置包括:In a fourth aspect, an embodiment of the present application provides a network control device, the device comprising:
确定单元,配置为确定同一局域网下至少两个终端的网络能力,以及根据网络能力,确定第一目标终端和第二目标终端,其中,第一目标终端和第二目标终端均为终端组中的至少一个终端,第一目标终端的网络能力强于第二目标终端的网络能力;The determining unit is configured to determine the network capabilities of at least two terminals under the same local area network, and determine the first target terminal and the second target terminal according to the network capabilities, wherein the first target terminal and the second target terminal are both in the terminal group. At least one terminal, the network capability of the first target terminal is stronger than the network capability of the second target terminal;
第一发送单元,配置为向第二目标终端发送第一消息,第一消息包括第一目标终端的标识信息,标识信息中携带有第一目标终端的IP地址信息,第一消息用于指示第二目标终端将第一目标终端作为下一跳路由。The first sending unit is configured to send a first message to the second target terminal, where the first message includes identification information of the first target terminal, the identification information carries the IP address information of the first target terminal, and the first message is used to indicate the first target terminal. The second target terminal takes the first target terminal as the next hop route.
在一种可能的实现方式中,确定单元,还配置为:In a possible implementation manner, the determining unit is further configured to:
获取至少两个终端的设备状态信息,设备状态信息包括运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种;Acquire device status information of at least two terminals, where the device status information includes one or more of carrier type, network type, network signal strength, network load, processor load, and power;
基于至少两个终端的设备状态信息,确定至少两个终端的网络能力。Based on the device state information of the at least two terminals, network capabilities of the at least two terminals are determined.
在一种可能的实现方式中,装置部署于终端组中的主终端,确定单元,还配置为:In a possible implementation manner, the device is deployed on the master terminal in the terminal group, the determining unit is further configured as:
生成第一设备状态信息,以及将第一设备状态信息发送至数据库服务器,以使数据库服务器将第一设备状态信息分发至终端组中的从终端;generating first device state information, and sending the first device state information to the database server, so that the database server distributes the first device state information to slave terminals in the terminal group;
接收数据库服务器转发的从终端的第二设备状态信息,其中,第二状态信息为从终端接收到第一设备状态信息后生成并发送至数据库服务器。Receive second device state information from the terminal forwarded by the database server, where the second state information is generated after receiving the first device state information from the terminal and sent to the database server.
在一种可能的实现方式中,网络能力由使用权重因子对设备状态信息中所包括的信息进行加权组合得到。In a possible implementation manner, the network capability is obtained by weighting and combining the information included in the device status information by using a weighting factor.
在一种可能的实现方式中,确定单元,还配置为:In a possible implementation manner, the determining unit is further configured to:
接收至少两个终端发送的第一数据包,第一数据包包括网络能力。A first data packet sent by at least two terminals is received, where the first data packet includes network capabilities.
在一种可能的实现方式中,确定单元,还配置为:In a possible implementation manner, the determining unit is further configured to:
对至少两个终端的网络能力排序,以及基于排序结果,确定第一目标终端和第二目标终端。The network capabilities of the at least two terminals are ranked, and based on the ranking result, the first target terminal and the second target terminal are determined.
在一种可能的实现方式中,第一发送单元,还配置为:In a possible implementation manner, the first sending unit is further configured to:
向第一目标终端发送第二消息,第二消息用于指示第一目标终端开启网络分享;sending a second message to the first target terminal, where the second message is used to instruct the first target terminal to enable network sharing;
接收第一目标终端反馈的第三消息,第三消息包括第一目标终端已成功开启网络分享的信息。A third message fed back by the first target terminal is received, where the third message includes information that the first target terminal has successfully enabled network sharing.
在一种可能的实现方式中,装置部署于于终端组中的第一终端,确定单元,还配置为:In a possible implementation manner, the device is deployed on the first terminal in the terminal group, and the determining unit is further configured to:
将可信群组的群标识信息分享至至少一个第二终端,以使至少一个第二终端基于群标识信息加入可信群组,其中,可信群组由第一终端建立,可信群组中的终端构成终端组。Share the group identification information of the trusted group to at least one second terminal, so that the at least one second terminal joins the trusted group based on the group identification information, wherein the trusted group is established by the first terminal, and the trusted group is The terminals in form a terminal group.
在一种可能的实现方式中,群标识信息中携带有第一终端分享的网络的网络信息,其中,第一终端为第二终端的下一跳路由,网络信息包括第一终端分享的网络的密码和身份标识。In a possible implementation manner, the group identification information carries network information of the network shared by the first terminal, wherein the first terminal is the next hop route of the second terminal, and the network information includes the network information of the network shared by the first terminal. Password and ID.
第五方面,本申请实施例提供了一种网络控制装置,部署于于第一目标终端,装置包括:In a fifth aspect, an embodiment of the present application provides a network control device, which is deployed on a first target terminal, and the device includes:
第一接收单元,配置为接收电子设备发送的第二消息,第二消息用于指示第一目标终端开启网络分享,电子设备包括终端或服务器;a first receiving unit, configured to receive a second message sent by the electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic device includes a terminal or a server;
开启单元,配置为开启网络分享;Turn on the unit and configure it to enable network sharing;
第二接收单元,配置为接收第二目标终端发送的第二数据包,第二数据包包括目的网络地址,其中,第一目标终端和第二目标终端均为同一局域网中的终端;a second receiving unit, configured to receive a second data packet sent by a second target terminal, where the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
转发单元,配置为将第二数据包转发至目的网络地址所指示的目的主机。The forwarding unit is configured to forward the second data packet to the destination host indicated by the destination network address.
在一种可能的实现方式中,装置还包括:In a possible implementation manner, the apparatus further includes:
第二发送单元,配置为在第一接收单元接收第二消息前,向电子设备发送第三数据包,第一数据包包括第一目标终端的网络能力。The second sending unit is configured to send a third data packet to the electronic device before the first receiving unit receives the second message, where the first data packet includes the network capability of the first target terminal.
第六方面,本申请实施例提供了一种网络控制装置,部署于第二目标终端,装置包括:In a sixth aspect, an embodiment of the present application provides a network control device, which is deployed on a second target terminal, and the device includes:
第三接收单元,配置为接收电子设备发送的第一消息,电子设备包括终端或服务器,第一消息包括第一目标终端的标识信息,标识信息中携带有第一目标终端的IP地址信息,第一消息用于指示第二目标终端将第一目标终端作为下一跳路由,其中,第一目标终端和第二目标终端均为同一局域网中的终端;The third receiving unit is configured to receive the first message sent by the electronic device, the electronic device includes a terminal or a server, the first message includes identification information of the first target terminal, and the identification information carries the IP address information of the first target terminal, and the first message includes the identification information of the first target terminal. A message is used to instruct the second target terminal to use the first target terminal as a next-hop route, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
第三发送单元,配置为向第一目标终端发送第二数据包,第二数据包包括目的网络地址。The third sending unit is configured to send a second data packet to the first target terminal, where the second data packet includes the destination network address.
在一种可能的实现方式中,第三发送单元,还配置为:In a possible implementation manner, the third sending unit is further configured to:
向电子设备发送第一数据包,第一数据包包括第二目标终端的网络能力。A first data packet is sent to the electronic device, where the first data packet includes the network capability of the second target terminal.
第七方面,本申请实施例提供了一种电子设备,包括触摸屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中一个或多个程序被存储在存储器中;一个或多个处理器在执行一个或多个程序时,使得电子设备实现以上方面所提供的方法。In a seventh aspect, an embodiment of the present application provides an electronic device, including a touch screen, a memory, one or more processors, multiple application programs, and one or more programs; wherein one or more programs are stored in the memory ; When one or more processors execute one or more programs, the electronic device implements the method provided by the above aspects.
第八方面,本申请实施例提供了一种电子设备,包含以上方面所提供的装置。In an eighth aspect, an embodiment of the present application provides an electronic device, including the device provided in the above aspect.
第九方面,本申请实施例提供了一种计算机存储介质,计算机存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行以上方面所提供的方法。In a ninth aspect, an embodiment of the present application provides a computer storage medium, where instructions are stored in the computer storage medium, and when the instructions are executed on the computer, the computer is made to execute the method provided in the above aspect.
第十方面,本申请实施例提供了一种包含指令的计算机程序产品,当指令在计算机上运行时,使得计算机执行以上所提供的方法。In a tenth aspect, the embodiments of the present application provide a computer program product containing instructions, when the instructions are executed on a computer, the computer executes the method provided above.
第十一方面,本申请实施例提供了一种芯片,包括至少一个处理器和接口;In an eleventh aspect, an embodiment of the present application provides a chip, including at least one processor and an interface;
接口,用于为至少一个处理器提供程序指令或者数据;an interface for providing program instructions or data for at least one processor;
至少一个处理器用于执行程序行指令,以实现以上方面所提供的方法。At least one processor is configured to execute program line instructions to implement the methods provided by the above aspects.
附图说明Description of drawings
图1a和图1b共同构成了本申请实施例提供的一种应用场景示意图;FIG. 1a and FIG. 1b together constitute a schematic diagram of an application scenario provided by an embodiment of the present application;
图2a和图2b共同构成了本申请实施例提供的另一种应用场景示意图;FIG. 2a and FIG. 2b together constitute another schematic diagram of an application scenario provided by an embodiment of the present application;
图3是本申请实施例提供的一种终端的硬件结构示意图;3 is a schematic diagram of a hardware structure of a terminal provided by an embodiment of the present application;
图4是本申请实施例提供的一种终端的软件结构示意图;4 is a schematic diagram of a software structure of a terminal provided by an embodiment of the present application;
图5a是本申请实施例提供的一种创建可信群组的界面示意图;5a is a schematic diagram of an interface for creating a trusted group provided by an embodiment of the present application;
图5b是本申请实施例提供的一种图形码的示意图;5b is a schematic diagram of a graphic code provided by an embodiment of the present application;
图5c是本申请实施例提供的一种开启网络热点的界面示意图;5c is a schematic diagram of an interface for opening a network hotspot provided by an embodiment of the present application;
图6是本申请实施例提供的一种确定终端的网络能力的通信示意图;6 is a schematic diagram of communication for determining the network capability of a terminal provided by an embodiment of the present application;
图7是本申请实施例提供的另一种确定终端的网络能力的通信示意图;7 is another schematic diagram of communication for determining the network capability of a terminal provided by an embodiment of the present application;
图8是本申请实施例提供的一种终端指示网络分享和网络借用的通信示意图;8 is a schematic diagram of communication in which a terminal instructs network sharing and network borrowing provided by an embodiment of the present application;
图9a是本申请实施例提供的一种终端的网络配置的示意图;9a is a schematic diagram of a network configuration of a terminal provided by an embodiment of the present application;
图9b是本申请实施例提供的另一种终端的网络配置的示意图;FIG. 9b is a schematic diagram of a network configuration of another terminal provided by an embodiment of the present application;
图10是本申请实施例提供的一种终端间的通信示意图FIG. 10 is a schematic diagram of communication between terminals according to an embodiment of the present application
图11是本申请实施例提供的一种终端调整路由后的通信示意图;11 is a schematic diagram of communication after a terminal adjusts a route according to an embodiment of the present application;
图12是本申请实施例提供的一种网络控制装置的结构示意图;FIG. 12 is a schematic structural diagram of a network control apparatus provided by an embodiment of the present application;
图13是本申请实施例提供的另一种网络控制装置的结构示意图;13 is a schematic structural diagram of another network control apparatus provided by an embodiment of the present application;
图14是本申请实施例提供的又一种网络控制装置的结构示意图;FIG. 14 is a schematic structural diagram of another network control apparatus provided by an embodiment of the present application;
图15是本申请实施例提供的一种芯片的结构示意图。FIG. 15 is a schematic structural diagram of a chip provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图,对本申请实施例中的技术方案进行描述。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
在本申请实施例的描述中,“示例性的”、“例如”或者“举例来说”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”、“例如”或者“举例来说”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”、“例如”或者“举例来说”等词旨在以具体方式呈现相关概念。In the description of the embodiments of the present application, words such as "exemplary", "such as" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described in the embodiments of the present application as "exemplary," "such as," or "by way of example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, use of words such as "exemplary," "such as," or "by way of example" is intended to present the related concepts in a specific manner.
在本申请实施例的描述中,术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,单独存在B,同时存在A和B这三种情况。另外,除非另有说明,术语“多个”的含义是指两个或两个以上。例如,多个系统是指两个或两个以上的系统,多个屏幕终端是指两个或两个以上的屏幕终端。In the description of the embodiments of the present application, the term "and/or" is only an association relationship for describing associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate: A alone exists, A alone exists There is B, and there are three cases of A and B at the same time. Also, unless stated otherwise, the term "plurality" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
图1a和图1b共同构成了本申请实施例提供的一种应用场景示意图。如图1a所示,终端11、终端12和终端13处于同一局域网下,以及均通过路由设备21进行网络通信。若路由设备21提供的网络的网络信号出现不稳定情况,则终端11、终端12和终端13中的其中一个终端,如终端11,可以基于各个终端的网络能力,确定出网络能 力强的终端,如终端13,以及确定出网络能力差的终端,如终端12。之后,终端11可以与终端13进行通信,使终端13开启网络分享。在终端13开启网络分享后,终端11可以与终端12进行通信,将终端13的信息,如IP地址,发送至终端12。之后,如图1b所示,终端12可以根据终端13的信息,更改其网络配置信息,如网关信息、DNS信息等,从而将终端13作为终端12的下一跳路由,使得终端12可以通过终端13进行网络通信。由此,通过这种动态调整路由的方式,降低了网络传输时延,提升了网络传输效率,进而提升了上网体验。其中,图1a和图1b中的箭头指向表示终端上行数据的流向。FIG. 1a and FIG. 1b together constitute a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in FIG. 1 a , the terminal 11 , the terminal 12 and the terminal 13 are in the same local area network, and all perform network communication through the routing device 21 . If the network signal of the network provided by the routing device 21 is unstable, one of the terminal 11, the terminal 12 and the terminal 13, such as the terminal 11, can determine the terminal with strong network capability based on the network capability of each terminal. Such as terminal 13, and a terminal determined to have poor network capability, such as terminal 12. After that, the terminal 11 can communicate with the terminal 13 to enable the terminal 13 to enable network sharing. After the terminal 13 enables network sharing, the terminal 11 can communicate with the terminal 12 and send the information of the terminal 13 , such as an IP address, to the terminal 12 . Afterwards, as shown in FIG. 1b, the terminal 12 can change its network configuration information, such as gateway information, DNS information, etc., according to the information of the terminal 13, so as to use the terminal 13 as the next hop route of the terminal 12, so that the terminal 12 can pass the terminal 13 for network communication. As a result, through this dynamic route adjustment method, the network transmission delay is reduced, the network transmission efficiency is improved, and the surfing experience is further improved. Wherein, the arrows in FIG. 1a and FIG. 1b point to indicate the flow of uplink data of the terminal.
图2a和图2b共同构成了本申请实施例提供的另一种应用场景示意图。如图2a所示,终端11开启网络热点,终端12、终端13和终端14共同使用终端11开启的网络热点进行网络通信,此时,终端11、终端12、终端13、终端14处于同一局域网下。若终端11提供的网络的网络信号出现不稳定情况,则终端11、终端12、终端13和终端14中的其中一个终端,如终端11,可以基于各个终端的网络能力,确定出网络能力强的终端,如终端14,以及确定出网络能力差的终端,如终端13。之后,终端11可以与终端14进行通信,使终端14开启网络分享。在终端14开启网络分享后,终端11可以与终端13进行通信,将终端14的信息,如IP地址,发送至终端13。之后,如图2b所示,终端13可以根据终端14的信息,更改其网络配置信息,如网关信息、DNS信息等,从而将终端14作为终端13的下一跳路由,使得终端13可以通过终端14进行网络通信。由此,通过这种动态调整路由的方式,降低了网络传输时延,提升了网络传输效率,进而提升了上网体验。其中,图2a和图2b中的箭头指向表示终端上行数据的流向。FIG. 2a and FIG. 2b together constitute another schematic diagram of an application scenario provided by an embodiment of the present application. As shown in Figure 2a, the terminal 11 opens a network hotspot, and the terminal 12, the terminal 13 and the terminal 14 jointly use the network hotspot opened by the terminal 11 for network communication. At this time, the terminal 11, the terminal 12, the terminal 13 and the terminal 14 are under the same local area network. . If the network signal of the network provided by the terminal 11 is unstable, one of the terminal 11, the terminal 12, the terminal 13 and the terminal 14, such as the terminal 11, can determine the network capability based on the network capability of each terminal. A terminal, such as terminal 14, and a terminal determined to have poor network capability, such as terminal 13. After that, the terminal 11 can communicate with the terminal 14 to enable the terminal 14 to enable network sharing. After the terminal 14 enables network sharing, the terminal 11 can communicate with the terminal 13 and send the information of the terminal 14 , such as an IP address, to the terminal 13 . Afterwards, as shown in FIG. 2b, the terminal 13 can change its network configuration information, such as gateway information, DNS information, etc., according to the information of the terminal 14, so as to use the terminal 14 as the next hop route of the terminal 13, so that the terminal 13 can pass the terminal 14 for network communication. As a result, through this dynamic route adjustment method, the network transmission delay is reduced, the network transmission efficiency is improved, and the surfing experience is further improved. Wherein, the arrows in FIG. 2a and FIG. 2b point to indicate the flow of uplink data of the terminal.
在一些示例中,终端可以为手机、平板电脑、数码相机、个人数字助理(personal digitalassistant,PDA)、可穿戴设备、智能电视、华为智慧屏等电子设备。电子设备的示例性实施例包括但不限于搭载iOS、android、Windows、鸿蒙系统(Harmony OS)或者其他操作系统的电子设备。上述电子设备也可以是其他电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。本申请实施例对电子设备的类型不做具体限定。In some examples, the terminal may be an electronic device such as a mobile phone, a tablet computer, a digital camera, a personal digital assistant (PDA), a wearable device, a smart TV, and a Huawei smart screen. Exemplary embodiments of electronic devices include, but are not limited to, electronic devices equipped with iOS, android, Windows, Harmony OS, or other operating systems. The electronic device described above may also be other electronic devices, such as a laptop or the like having a touch-sensitive surface (eg, a touch panel). The embodiment of the present application does not specifically limit the type of the electronic device.
下面介绍本申请实施例中一种终端的硬件结构示意图。The following introduces a schematic diagram of a hardware structure of a terminal in an embodiment of the present application.
图3示出了终端的硬件结构示意图。如图3所示,终端100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 3 shows a schematic diagram of the hardware structure of the terminal. As shown in FIG. 3 , the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193, Display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
在一些实施例中,终端100中还可以包括路由管理模块(图中未示出)。该路由管理模块可以用于实现配置路由转发功能,例如,开启IP转发功能、开启DNS转发功能和开启NET转发功能等;和/或,用于实现调整路由功能,例如,基于其中一个终端的IP地址,调整该终端100的DNS信息和网关信息等。在一个例子中,路由管理模块还可以用于实现数据转发的功能,例如,将其中一个终端发送的数据包转发至该数据包中携带的目的网络地址所指示的目的主机上。In some embodiments, the terminal 100 may further include a routing management module (not shown in the figure). The routing management module can be used to configure the routing forwarding function, for example, enable the IP forwarding function, enable the DNS forwarding function, and enable the NET forwarding function; address, adjust the DNS information and gateway information of the terminal 100, and the like. In an example, the route management module can also be used to implement the function of data forwarding, for example, forwarding a data packet sent by one of the terminals to the destination host indicated by the destination network address carried in the data packet.
可以理解的是,本申请实施例示意的结构并不构成对终端100的具体限定。在本申请另一些实施例中,终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the terminal 100 . In other embodiments of the present application, the terminal 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如,处理器110可以包括应用处理器(application processor,AP)、调制解调器(modem)、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等中的一项或多项。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem (modem), a graphics processor (graphics processing unit, GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU), etc. one or more. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在一些示例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用,以避免重复存取,减少处理器110的等待时间,提高系统的效率。在一些示例中,处理器110可以用于根据各个终端的网络能力,确定网络能力强的终端和网络能力差的终端,或者确定终端100自身的网络能力等。A memory may also be provided in the processor 110 for storing instructions and data. In some examples, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be directly called from the memory to avoid repeated access, reduce the waiting time of the processor 110, and improve the efficiency of the system. In some examples, the processor 110 may be configured to determine a terminal with strong network capability and a terminal with poor network capability, or determine the network capability of the terminal 100 itself, according to the network capability of each terminal.
在一些示例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(PulseCodeModulation,PCM)接口,通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)接口,移动产业处理器接口(MobileIndustryProcessorInterface,MIPI),通用输入输出(General PurposeI/0Ports,GPIO),用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(UniversalSerialBus,USB)接口等。In some examples, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a Universal Asynchronous Receiver/Transmitter (Universal Asynchronous Receiver/ Transmitter, UART) interface, Mobile Industry Processor Interface (MIPI), General Purpose I/0Ports (GPIO), Subscriber Identity Module (SIM) interface, and/or Universal Serial Bus (Universal Serial Bus) , USB) interface, etc.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的示例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的示例中,充电管理模块140可以通过终端100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为其他电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging examples, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging examples, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal 100 . While the charging management module 140 charges the battery 142 , it can also supply power to other electronic devices through the power management module 141 .
电源管理模块141用于连接电池142、充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、外部存储器、显示屏194、摄像头193和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电,阻抗)等参数。在其他一些示例中,电源管理模块141也可以设置于处理器110中。在另一些示例中, 电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other examples, the power management module 141 may also be provided in the processor 110 . In other examples, the power management module 141 and the charging management module 140 may also be provided in the same device.
终端100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调器以及基带处理器等实现。The wireless communication function of the terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些示例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other examples, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由包括天线1的至少两根天线接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调器进行解调。移动通信模块150还可以对经调制解调器调制后的信号放大,经天线1转为电磁波辐射出去。在一些示例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些示例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves by at least two antennas including the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem, and then convert it into electromagnetic waves for radiation through the antenna 1 . In some examples, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some examples, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些示例中,调制解调器可以是独立的器件。在另一些示例中,调制解调器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。在另一些示例中,移动通信模块150可以是调制解调器中的模块。A modem may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some examples, the modem may be a stand-alone device. In other examples, the modem may be independent of the processor 110 and provided in the same device as the mobile communication module 150 or other functional modules. In other examples, the mobile communication module 150 may be a module in a modem.
无线通信模块160可以提供应用在终端100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些示例中,终端100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),第五代,新空口(new radio,NR), BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some examples, the antenna 1 of the terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), fifth generation, new air interface ( new radio, NR), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可以包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些示例中,终端100可以包括一个或多个显示屏194。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some examples, terminal 100 may include one or more display screens 194 .
终端100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍摄时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些示例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when shooting, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some examples, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频,例如,捕获人物的面部特征信息、姿态特征信息等。物体通镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(ComplementaryMetalOxideSemiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些示例中,终端100可以包括一个或多个摄像头193。The camera 193 is used to capture still images or videos, for example, to capture facial feature information, posture feature information and the like of a person. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some examples, terminal 100 may include one or more cameras 193 .
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and so on.
视频编解码器用于对数字视频压缩或解压缩。终端100可以支持一种或多种视频编解码器。这样,终端100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Terminal 100 may support one or more video codecs. In this way, the terminal 100 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the terminal 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些示例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some examples, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the terminal 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端100可以设置至少一个麦克风170C。在另一些示例中,终端100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The terminal 100 may be provided with at least one microphone 170C. In other examples, the terminal 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
其中,压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些示例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端100根据压力传感器180A检测所述触摸操作强度。终端100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些示例中,作用于相同触摸位置, 但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some examples, pressure sensor 180A may be provided on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The terminal 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some examples, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定终端100的运动姿态。在一些示例中,可以通过陀螺仪传感器180B确定终端100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当使用终端100采集环境中的用户特征信息时,陀螺仪传感器180B检测终端100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端100的抖动,实现防抖。The gyro sensor 180B may be used to determine the motion attitude of the terminal 100 . In some examples, the angular velocity of terminal 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the terminal 100 is used to collect user feature information in the environment, the gyro sensor 180B detects the angle at which the terminal 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to offset the movement of the terminal 100 through reverse motion. Shake, achieve anti-shake.
气压传感器180C用于测量气压。在一些示例中,终端100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some examples, the terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
加速度传感器180E可检测终端100在各个方向上(一般为三轴)加速度的大小。当终端100静止时可检测出重力的大小及方向。还可以用于识别终端的姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。终端100可以通过红外或激光测量距离。在一些示例中,当利用终端采集环境中用户的用户特征信息时,终端100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The terminal 100 can measure the distance through infrared or laser. In some examples, when using the terminal to collect user characteristic information of the user in the environment, the terminal 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
环境光传感器180L用于感知环境光亮度。终端100可以根据感知的环境光亮度自适应调节显示屏194亮度。The ambient light sensor 180L is used to sense ambient light brightness. The terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
指纹传感器180H用于采集指纹。终端100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The terminal 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
温度传感器180J用于检测温度。在一些示例中,终端100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端100对电池142加热,以避免低温导致终端100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some examples, the terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal 100 heats the battery 142 to avoid abnormal shutdown of the terminal 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch device". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal 100 , which is different from the position where the display screen 194 is located.
按键190包括开机键,音量键,输入键盘等。按键190可以是机械按键。也可以是触摸式按键。终端100可以接收按键输入,产生与终端100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, an input keyboard, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The terminal 100 may receive key input and generate key signal input related to user settings and function control of the terminal 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如视频播放,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应 不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as video playback, audio playback, etc.) may correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194. Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
上述终端100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等。本申请实施例以分层架构的Android系统为例,示例性说明终端100的软件结构。The software system of the above-mentioned terminal 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, or the like. The embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the terminal 100 .
图4是本申请实施例的一种终端100的软件结构示意图。FIG. 4 is a schematic diagram of a software structure of a terminal 100 according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
其中,应用程序层可以包括一系列应用程序包。如图4所示,应用程序层内可以安装相机,图库,日历,通话,地图,导航,蓝牙,音乐,视频,短信息等应用程序。在本申请的一些实施例中,应用程序还包括群组应用。该群组应用可以提供终端100设置可信群组的界面,例如,让用户设置设置可信群组的名称、密码等。Among them, the application layer may include a series of application packages. As shown in Figure 4, applications such as camera, gallery, calendar, call, map, navigation, bluetooth, music, video, short message, etc. can be installed in the application layer. In some embodiments of the present application, the application further includes a group application. The group application may provide an interface for the terminal 100 to set a trusted group, for example, allowing the user to set the name, password, etc. of the trusted group.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图4所示,应用程序框架层中还可以包括窗口管理器,内容提供器,电话管理器,资源管理器,群组管理服务,视图系统等,本申请实施例对此不作任何限制。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in FIG. 4 , the application framework layer may further include a window manager, a content provider, a phone manager, a resource manager, a group management service, a view system, etc., which are not limited in this embodiment of the present application.
其中,群组管理服务可以用于提供群组管理功能。例如,存储各个终端的设备状态信息,评估各个终端设备的网络能力,选取最佳路由等等。The group management service may be used to provide group management functions. For example, the device status information of each terminal is stored, the network capability of each terminal device is evaluated, the best route is selected, and so on.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(MediaLibraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL),状态监测服务等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (MediaLibraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), status monitoring services, etc.
表面管理器可以用来对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager can be used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库可以支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library can support a variety of commonly used audio and video formats for playback and recording, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
状态监测服务可以用于监测终端100的设备状态信息,例如,监测终端100的运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量等等。监测到终端100的设备状态信息后,可以向群组应用服务发送设备状态信息等数据。The status monitoring service may be used to monitor the device status information of the terminal 100, for example, monitor the operator type, network type, network signal strength, network load, processor load, power level, and the like of the terminal 100. After monitoring the device status information of the terminal 100, data such as device status information can be sent to the group application service.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
下面结合附图对本申请提供的技术方案进行详细说明。The technical solutions provided by the present application will be described in detail below with reference to the accompanying drawings.
(1)确定可动态调整路由的终端(1) Determine the terminal that can dynamically adjust the route
用户可以预先设定可以动态调整路由的终端,以提升网络安全。例如,创建可信群组,其中,可信群组中的群成员可以动态调整路由。Users can preset terminals that can dynamically adjust routing to improve network security. For example, create a trusted group where group members in the trusted group can dynamically adjust routing.
举例来说,第一种场景,继续参阅图1a,终端11、终端12和终端13均通过路由设备21进行网络通信。此时,终端11的所有者可以通过终端11创建可信群组,如图5a所示,可以通过终端11中的“路由设置”中选择“创建可信群组”,之后,如图5b所示,可以在终端11上生成一个图形码,如二维码,其中,该图形码中可以包括可信群组的身份标识、密码等群组信息;接着,其他终端扫描该图形码即可以加入到终端11创建的可信群组中。可以理解的是,终端11可以称之为群主,可信群组中的其他终端可以称之为群成员。此外,除了使用图形码的方式分享可信群组的群组信息外,还可以使用其他方式进行分享,例如,终端11的所有者选择“创建可信群组”后,终端11可以生成一个群组链接;之后,终端11的所有者可以通过短信息等方式将该群组链接发送至终端12和终端13;最后,终端12和终端13点击该群组链接,即可以加入到可信群组中。应理解的是,群组链接中包括可信群组的身份标识、密码等群组信息。For example, in the first scenario, continue referring to FIG. 1 a , the terminal 11 , the terminal 12 and the terminal 13 all perform network communication through the routing device 21 . At this time, the owner of the terminal 11 can create a trusted group through the terminal 11. As shown in Fig. 5a, he can select "create a trusted group" in the "routing setting" in the terminal 11, and then, as shown in Fig. 5b A graphic code, such as a two-dimensional code, can be generated on the terminal 11, wherein the graphic code can include group information such as the identity identifier and password of the trusted group; then, other terminals can scan the graphic code to join into the trusted group created by the terminal 11. It can be understood that the terminal 11 may be referred to as a group owner, and other terminals in the trusted group may be referred to as group members. In addition, in addition to sharing the group information of the trusted group by means of graphic codes, other methods can also be used for sharing. For example, after the owner of the terminal 11 selects "create a trusted group", the terminal 11 can generate a group group link; after that, the owner of the terminal 11 can send the group link to the terminal 12 and the terminal 13 by means of a short message; finally, the terminal 12 and the terminal 13 click the group link to join the trusted group middle. It should be understood that the group link includes group information such as the identity identifier and password of the trusted group.
第二种场景,继续参阅图2a,终端11开启网络热点,终端12、终端13和终端14共同使用终端11开启的网络热点进行网络通信。此时,如图5c所示,终端11的所有者可以选择开启热点,以及设置密码。之后,如图5b所示,终端11可以生成一个图形码,如二维码,该图形码中可以包括该热点(即无线网络)的身份标识、密码和可信群组的身份标识等个人热点信息。接着,其他终端扫描该图形码即可以加入到终端11创建的无线网络和可信群组中。可以理解的是,终端11可以称之为群主,可信群组中的其他终端可以称之为群成员。此外,除了使用图形码的方式分享个人热点信息外,还可以使用其他方式进行分享,例如,终端11的所有者选择开启热点后,终端11可以生成一个热点链接;之后,终端11的所有者可以通过短信息等方式将该热点链接发送至终端12和终端13;最后,终端12和终端13点击该热点链接,即可以加入到加入到终端11创建的无线网络和可信群组中。应理解的是,热点链接中包括该热点(即无线网络)的身份标识、密码和可信群组的身份标识等个人热点信息。In the second scenario, continue to refer to FIG. 2 a , the terminal 11 opens a network hotspot, and the terminal 12 , the terminal 13 and the terminal 14 jointly use the network hotspot opened by the terminal 11 for network communication. At this time, as shown in FIG. 5c, the owner of the terminal 11 can choose to turn on the hotspot and set a password. Afterwards, as shown in FIG. 5b, the terminal 11 can generate a graphic code, such as a two-dimensional code, and the graphic code can include personal hotspots such as the identity of the hotspot (that is, the wireless network), the password, and the identity of the trusted group. information. Then, other terminals can join the wireless network and trusted group created by the terminal 11 by scanning the graphic code. It can be understood that the terminal 11 may be referred to as a group owner, and other terminals in the trusted group may be referred to as group members. In addition, in addition to sharing personal hotspot information by means of graphic codes, other methods can also be used for sharing. For example, after the owner of the terminal 11 chooses to turn on the hotspot, the terminal 11 can generate a hotspot link; Send the hotspot link to the terminal 12 and the terminal 13 by means of a short message; finally, the terminal 12 and the terminal 13 click the hotspot link to join the wireless network and the trusted group created by the terminal 11 . It should be understood that the hotspot link includes personal hotspot information such as the identity of the hotspot (that is, the wireless network), the password, and the identity of the trusted group.
(2)确定可信群组中终端的网络能力(2) Determine the network capabilities of the terminals in the trusted group
请参阅图6,图6是本申请实施例提供的一种确定终端的网络能力的通信示意图。如图6所示,包括以下步骤:Please refer to FIG. 6. FIG. 6 is a schematic diagram of communication for determining the network capability of a terminal according to an embodiment of the present application. As shown in Figure 6, it includes the following steps:
步骤S101、主终端和从终端分别生成各自的设备状态信息。In step S101, the master terminal and the slave terminal respectively generate their own device status information.
具体地,主终端11和从终端12均可以实时或间歇性的生成其自身的设备状态信 息,该设备状态信息中包括运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种。此外,设备状态信息中还可以包括终端的身份标识,以便于区分设备状态信息的来源。接着,从终端12可以将其自身的设备状态信息发送至主终端11。Specifically, both the master terminal 11 and the slave terminal 12 can generate their own device status information in real time or intermittently, and the device status information includes the operator type, network type, network signal strength, network load, processor load, battery level one or more of. In addition, the device status information may also include an identity identifier of the terminal, so as to distinguish the source of the device status information. Next, the slave terminal 12 may transmit its own device status information to the master terminal 11 .
需说明的是,在本申请实施例中,主终端11可以理解为进行路由决策的终端,其中,路由决策可以理解为决定其中一个终端使用另一个终端的网络;从终端12可以理解为不需要进行路由决策的终端,其中,从终端12可以由一个或多个终端组成。It should be noted that, in this embodiment of the present application, the master terminal 11 can be understood as a terminal that makes routing decisions, wherein the routing decision can be understood as deciding that one terminal uses the network of the other terminal; the slave terminal 12 can be understood as not requiring A terminal that makes routing decisions, wherein the slave terminal 12 may be composed of one or more terminals.
在一个例子中,主终端11可以默认为是可信群组的群主。此外,各个终端也均可以竞争成为主终端11,例如,若其中一个终端的数据处理能力较强,则其可以竞争成为主终端11。In one example, the master terminal 11 may be the group owner of the trusted group by default. In addition, each terminal can also compete to become the master terminal 11 . For example, if one of the terminals has a stronger data processing capability, it can compete to become the master terminal 11 .
步骤S102、从终端将其设备状态信息发送至主终端。Step S102, the slave terminal sends its device status information to the master terminal.
具体地,从终端12可以将其自身的设备状态信息发送至主终端11。在一个例子中,从终端12与主终端11之间的通信数据包可以经由路由设备转发至相应的终端。在另一个例子中,从终端12与主终端11之间可以通过蓝牙、Wi-Fi Direct、通用串行总线(Universal Serial Bus,USB)等通信方式进行通信。可以理解的是,用户可以预先设定从终端12与主终端11之间的数据通信方式,例如,设定是由路由设备转发数据包的通信方式,或者设定为使用蓝牙的通信方式等。Specifically, the slave terminal 12 may send its own device status information to the master terminal 11 . In one example, the communication data packets between the slave terminal 12 and the master terminal 11 may be forwarded to the corresponding terminal via the routing device. In another example, communication between the slave terminal 12 and the master terminal 11 may be performed through a communication method such as Bluetooth, Wi-Fi Direct, Universal Serial Bus (Universal Serial Bus, USB). It can be understood that the user can preset the data communication method between the slave terminal 12 and the master terminal 11 , for example, the setting is a communication method in which data packets are forwarded by a routing device, or a communication method using Bluetooth.
步骤S103、主终端基于主终端和从终端各自对应的设备状态信息,确定主终端和从终端各自的网络能力。Step S103 , the master terminal determines the respective network capabilities of the master terminal and the slave terminal based on the device status information corresponding to the master terminal and the slave terminal.
具体地,主终端11在接收到从终端12的设备状态信息后,可以基于其自身的设备状态信息和从终端12的设备状态信息,确定各个终端(即主终端11和从终端12)的网络能力。在一个例子中,可以预先标定设备状态信息中不同类型信息的权重,之后,再将不同类型信息进行加权组合,就可以得到终端的网络能力;也就是说,可以利用权重分配因子,对终端的设备状态信息所包含的信息进行加权组合,得到该终端的网络能力。Specifically, after receiving the device status information of the slave terminal 12, the master terminal 11 can determine the network of each terminal (ie, the master terminal 11 and the slave terminal 12) based on its own device status information and the device status information of the slave terminal 12. ability. In one example, the weights of different types of information in the device status information can be pre-calibrated, and then the different types of information can be weighted and combined to obtain the network capability of the terminal; The information contained in the device status information is weighted and combined to obtain the network capability of the terminal.
在一些实施例中,为了降低主终端的处理负荷,可以选择利用数据库服务器转发主终端和从终端之间传输的设备状态信息。详见下述描述。In some embodiments, in order to reduce the processing load of the master terminal, a database server may be selected to forward the device status information transmitted between the master terminal and the slave terminal. See the description below for details.
请参阅图7,图7是本申请实施例提供的另一种确定终端的网络能力的通信示意图。如图7所示,包括以下步骤:Please refer to FIG. 7. FIG. 7 is another schematic diagram of communication for determining the network capability of a terminal provided by an embodiment of the present application. As shown in Figure 7, it includes the following steps:
步骤S201、主终端生成第一设备状态信息。Step S201, the master terminal generates first device state information.
步骤S202、主终端将第一设备状态信息发送至数据库服务器。Step S202, the master terminal sends the first device state information to the database server.
具体地,主终端11可以将其自身的第一设备状态信息通过网络发送至数据库服务器21。其中,第一设备状态信息中可以包括主终端11的运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种。此外,第一设备状态信息中还可以包括主终端11的身份标识。Specifically, the main terminal 11 may send its own first device state information to the database server 21 through the network. Wherein, the first device state information may include one or more of the operator type, network type, network signal strength, network load, processor load, and power of the master terminal 11 . In addition, the first device state information may further include the identity identifier of the master terminal 11 .
步骤S203、数据库服务器将第一设备状态信息转发至从终端。Step S203, the database server forwards the first device state information to the slave terminal.
步骤S204、从终端生成第二设备状态信息。Step S204: Generate second device state information from the terminal.
步骤S205、从终端将第二设备状态信息发送至数据库服务器。Step S205: Send the second device state information from the terminal to the database server.
具体地,从终端12在生成其自身的第二设备状态信息后,可以将该第二设备状态 信息发送至数据库服务器21。其中,第二设备状态信息中可以包括从终端的运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种。此外,第二设备状态信息中还可以包括从终端12的身份标识和主终端11的身份标识;其中,从终端12的身份标识是便于主终端11区分第二设备状态信息的来源,主终端11的身份标识是便于数据库服务器21确定第二设备状态信息的转发地址。Specifically, after generating its own second device state information, the slave terminal 12 can send the second device state information to the database server 21. Wherein, the second device state information may include one or more of the operator type, network type, network signal strength, network load, processor load, and power of the slave terminal. In addition, the second device state information may also include the identity of the slave terminal 12 and the identity of the master terminal 11; wherein, the identity of the slave terminal 12 is a source for the master terminal 11 to distinguish the second device state information, and the master terminal 11 The identity identifier is a forwarding address that is convenient for the database server 21 to determine the state information of the second device.
步骤S206、数据库服务器将第二设备状态信息转发至主终端。Step S206, the database server forwards the second device state information to the main terminal.
步骤S207、主终端基于主终端和从终端各自对应的设备状态信息,确定主终端和从终端各自的网络能力。对于确定网络能力的方式,详见上文描述,在此就不再一一赘述。Step S207, the master terminal determines the respective network capabilities of the master terminal and the slave terminal based on the device state information corresponding to the master terminal and the slave terminal. For the method of determining the network capability, refer to the above description for details, and details are not repeated here.
在一些实施例中,主终端和从终端均可以基于其自身的设备状态信息,确定其自身的网络能力。之后,从终端可以将其自身的网络能力发送至主终端,这样主终端就可以直接确定出从终端的网络能力,而不必在通过对从终端的设备状态信息进行确定,再得到从终端的网络能力,从而降低主终端的处理负荷,提升处理效率。In some embodiments, both the master terminal and the slave terminal may determine their own network capabilities based on their own device status information. After that, the slave terminal can send its own network capability to the master terminal, so that the master terminal can directly determine the network capability of the slave terminal, without having to determine the device status information of the slave terminal to obtain the network capability of the slave terminal. capacity, thereby reducing the processing load of the main terminal and improving processing efficiency.
需要说明的是,本方案中,在确定终端的网络能力时,除了由主终端确定外,还可以由其他设备确定,例如,由服务器确定,此时,终端需要将其自身的设备状态信息发送至相应的服务器上,以便于该服务器基于终端的设备状态信息,确定该终端的网络能力。另外,若网络能力是由终端自身确定时,则终端可以将其自身的网络能力送至相应的服务器,以便于该服务器获知该终端的网络能力。It should be noted that, in this solution, when determining the network capability of the terminal, in addition to being determined by the main terminal, it can also be determined by other devices, for example, determined by the server. In this case, the terminal needs to send its own device status information. to the corresponding server, so that the server can determine the network capability of the terminal based on the device state information of the terminal. In addition, if the network capability is determined by the terminal itself, the terminal can send its own network capability to a corresponding server, so that the server can learn the network capability of the terminal.
(3)路由决策(3) Routing decision
主终端或者其他设备(如服务器等)在确定出主终端和从终端各自的网络能力后,可以根据主终端和从终端各自的网络能力,确定出网络能力强的终端和网络能力弱的终端。例如,基于网络能力的强弱,对网络能力进行排序,之后,基于排序结果,就可以确定出网络能力强的终端和网络能力弱的终端。为便于描述,以下将网络能力强的终端称之为第一目标终端,将网络能力弱的终端称之为第二目标终端。After the master terminal or other device (such as a server, etc.) determines the respective network capabilities of the master terminal and the slave terminal, it can determine the terminal with strong network capability and the terminal with weak network capability according to the respective network capabilities of the master terminal and the slave terminal. For example, the network capabilities are ranked based on the strength of the network capabilities, and then, based on the ranking result, terminals with strong network capabilities and terminals with weak network capabilities can be determined. For ease of description, the terminal with strong network capability is referred to as the first target terminal, and the terminal with weak network capability is referred to as the second target terminal.
接着,主终端或其他设备(如服务器)可以向第一目标终端发送第二消息,该第二消息可以用于指示第一目标终端开启网络分享。之后,在第一目标终端成功开启网络分享后,主终端或其他设备(如服务器等)可以向第二目标终端发送第一消息,该第一消息可以用于指示第二目标终端将第一目标终端作为下一跳路由,其中,第一消息中可以包括第一目标终端的标识信息,该标识信息中可以携带有第一目标终端的IP地址信息。之后,第二目标终端可以基于第一消息调整路由,以将第一目标终端作为其下一跳路由。Next, the master terminal or other device (such as a server) may send a second message to the first target terminal, where the second message may be used to instruct the first target terminal to enable network sharing. Afterwards, after the first target terminal successfully enables network sharing, the master terminal or other device (such as a server, etc.) may send a first message to the second target terminal, where the first message may be used to instruct the second target terminal to share the first target The terminal acts as the next hop route, wherein the first message may include identification information of the first target terminal, and the identification information may carry IP address information of the first target terminal. Afterwards, the second target terminal may adjust the route based on the first message to route the first target terminal as its next hop.
在一些实施例中,主终端可以在第二消息中携带第二目标终端的IP地址,这样第一目标终端开启网络分享后,第一目标终端就可以直接与第二目标终端进行通信,不必再由主终端转发消息。In some embodiments, the master terminal may carry the IP address of the second target terminal in the second message, so that after the first target terminal enables network sharing, the first target terminal can directly communicate with the second target terminal, and there is no need to further communicate with the second target terminal. The message is forwarded by the master terminal.
在一些实施例中,主终端或者其他设备(如服务器等)也可以基于环境中的网络信息等,确定第一目标终端开启的网络的类型,例如,开启4G或5G网络进行分享。举例来说,主终端或者其他设备当前所处环境的4G网络信号强于5G网络信号,则主终端或者其他设备可以确定第一目标终端开启的网络类型为4G网络。In some embodiments, the master terminal or other device (such as a server, etc.) may also determine the type of network enabled by the first target terminal based on network information in the environment, for example, enable a 4G or 5G network for sharing. For example, if the 4G network signal in the environment where the main terminal or other device is currently located is stronger than the 5G network signal, the main terminal or other device may determine that the network type opened by the first target terminal is a 4G network.
可以理解的是,第一目标终端可以记录其在开启网络分享时的初始网络配置信息, 以及开启网络分享后的网络配置信息,并在结束网络分享后,将网络配置信息恢复至初始网络配置信息。同样的,第二目标终端也可以记录其调整路由前的初始网络配置信息,以及调整路由后的网络配置信息,并在第一目标终端结束网络分享后,将网络配置信息恢复至初始网络配置信息。It can be understood that the first target terminal can record its initial network configuration information when network sharing is enabled, as well as network configuration information after network sharing is enabled, and after network sharing ends, restore the network configuration information to the initial network configuration information. . Similarly, the second target terminal may also record its initial network configuration information before routing adjustment and network configuration information after routing adjustment, and restore the network configuration information to the initial network configuration information after the first target terminal finishes sharing the network .
下面以主终端发送用于指示开启网络分享和网络借用的消息为例进行说明。The following description will be given by taking the message sent by the master terminal for instructing to enable network sharing and network borrowing as an example.
图8是本申请实施例提供的一种终端指示网络分享和网络借用的通信示意图。如图8所示,包括以下步骤:FIG. 8 is a schematic diagram of communication in which a terminal instructs network sharing and network borrowing provided by an embodiment of the present application. As shown in Figure 8, it includes the following steps:
步骤S301、主终端向第一目标终端发送第二消息。Step S301, the master terminal sends a second message to the first target terminal.
具体地,主终端11在做出路由决策后,可以向第一目标终端13发送第二消息。其中,该第二消息可以用于指示第一目标终端13开启网络分享。Specifically, after making the routing decision, the master terminal 11 may send the second message to the first target terminal 13 . The second message may be used to instruct the first target terminal 13 to enable network sharing.
步骤S302、第一目标终端开启网络分享。Step S302, the first target terminal enables network sharing.
具体地,第一目标终端13接收到第二消息后,则开启网络分享。其中,第一目标终端13可以在其系统内核中配置路由转发功能,例如,开启IP转发功能、开启DNS转发功能和开启NET转发功能等。Specifically, after receiving the second message, the first target terminal 13 enables network sharing. The first target terminal 13 may configure a routing forwarding function in its system kernel, for example, enable the IP forwarding function, enable the DNS forwarding function, and enable the NET forwarding function, and the like.
步骤S303、第一目标终端向主终端反馈第三消息。Step S303, the first target terminal feeds back a third message to the master terminal.
具体的,第一目标终端13成功开启网络分享后,则向主终端11反馈第三消息。其中,该第三消息包括第一目标终端13已成功开启网络分享的信息。Specifically, after the first target terminal 13 successfully enables network sharing, it feeds back a third message to the master terminal 11 . The third message includes information that the first target terminal 13 has successfully enabled network sharing.
步骤S304、主终端向第二目标终端发送第一消息。Step S304, the master terminal sends the first message to the second target terminal.
具体地,主终端11获知第一目标终端13已成功开启网络分享后,可以向第二目标终端14发送第一消息。该第一消息中可以包括第一目标终端13的标识信息,该标识信息中可以携带有第一目标终端13的IP地址信息。其中,该第一消息可以用于指示第二目标终端14将第一目标终端作为下一跳路由。Specifically, after learning that the first target terminal 13 has successfully enabled network sharing, the master terminal 11 may send the first message to the second target terminal 14 . The first message may include identification information of the first target terminal 13 , and the identification information may carry IP address information of the first target terminal 13 . The first message may be used to instruct the second target terminal 14 to use the first target terminal as a next hop route.
步骤S305、第二目标终端调整路由。Step S305, the second target terminal adjusts the route.
具体地,第二目标终端14接收到第一消息后,则可以调整路由,从而将第一目标终端13作为下一跳路由。在一个例子中,第二目标终端14调整路由时,可以将第一目标终端13的IP地址信息作为其网关信息,并由第二目标终端14的系统内核自动获取到相应的DNS信息,从而实现将第一目标终端13作为第二目标终端的下一跳路由。例如,如图9a所示,第二目标终端14的初始网关为192.168.1.11,初始DNS为1.1.1.1;若第一目标终端13的IP地址信息为192.168.2.21,则如图9b所示,第二目标终端14可以将其网关更新为192.168.2.21,并自动获取到新的DNS,新的DNS为2.2.2.2。Specifically, after receiving the first message, the second target terminal 14 can adjust the route so that the first target terminal 13 is used as the next hop route. In an example, when the second target terminal 14 adjusts the route, the IP address information of the first target terminal 13 can be used as its gateway information, and the system kernel of the second target terminal 14 can automatically obtain the corresponding DNS information, so as to realize The first target terminal 13 is used as the next hop route of the second target terminal. For example, as shown in Figure 9a, the initial gateway of the second target terminal 14 is 192.168.1.11, and the initial DNS is 1.1.1.1; if the IP address information of the first target terminal 13 is 192.168.2.21, as shown in Figure 9b, The second target terminal 14 can update its gateway to 192.168.2.21, and automatically obtain a new DNS, which is 2.2.2.2.
步骤S306、第二目标终端向主终端反馈第四消息。Step S306, the second target terminal feeds back a fourth message to the master terminal.
具体地,第二目标终端14成功调整路由后,则可以向主终端11反馈第四消息。其中,该第四消息包括第二目标终端14已成功调整路由的信息。Specifically, after the second target terminal 14 successfully adjusts the route, it can feed back the fourth message to the main terminal 11 . Wherein, the fourth message includes information that the second target terminal 14 has successfully adjusted the route.
可以理解的是,若第一目标终端13反馈开启失败,则可以重新确定第一目标终端,例如,选取其他网络能力较强的终端作为第一目标终端,具体可根据实际情况而定,在此不做限定。It can be understood that if the first target terminal 13 feedbacks that the opening fails, the first target terminal can be re-determined, for example, other terminals with stronger network capabilities are selected as the first target terminal, which can be determined according to the actual situation. Not limited.
在一些实施例中,主终端或其他设备(如服务器)在确定出第一目标终端和第二目标终端后,可以直接向第二目标终端发送第一消息。此时,第二目标终端在接收到第一消息后,其则可以与第一目标终端进行通信,以将第一目标终端作为其下一跳路 由。为便于理解,下面举例进行说明,图10是本申请实施例提供的一种终端间的通信示意图,如图10所示,包括以下步骤:In some embodiments, after determining the first target terminal and the second target terminal, the master terminal or other device (such as a server) may directly send the first message to the second target terminal. At this time, after receiving the first message, the second target terminal can communicate with the first target terminal, so as to use the first target terminal as its next hop route. For ease of understanding, an example is given below for description. FIG. 10 is a schematic diagram of communication between terminals provided by an embodiment of the present application. As shown in FIG. 10 , the following steps are included:
步骤S401、第二目标终端向第一目标终端发送第五消息。Step S401, the second target terminal sends a fifth message to the first target terminal.
具体地,第二目标终端14接收到第一消息后,可以直接与第一目标终端13进行通信,其可以向第一目标终端13发送第五消息,该第五消息可以用于指示第一目标终端13开启网络分享。Specifically, after receiving the first message, the second target terminal 14 can directly communicate with the first target terminal 13, and it can send a fifth message to the first target terminal 13, where the fifth message can be used to indicate the first target The terminal 13 enables network sharing.
步骤S402、第一目标终端开启网络分享。Step S402, the first target terminal enables network sharing.
步骤S403、第一目标终端向第二目标终端反馈第三消息。Step S403, the first target terminal feeds back a third message to the second target terminal.
步骤S404、第二目标终端调整路由。Step S404, the second target terminal adjusts the route.
在一些实施例中,第二目标终端调整路由后,其则可以通过第一目标终端联网。具体地,如图11所示,包括以下步骤:In some embodiments, after the second target terminal adjusts the route, it can connect to the network through the first target terminal. Specifically, as shown in Figure 11, the following steps are included:
步骤S501、第二目标终端向第一目标终端发送第二数据包。Step S501, the second target terminal sends a second data packet to the first target terminal.
具体地,第二目标终端14调整路由后,可以向第二目标终端13发送第二数据包,该第二数据包中包括目的网络地址。Specifically, after adjusting the route, the second target terminal 14 may send a second data packet to the second target terminal 13, where the second data packet includes the destination network address.
步骤S502、第一目标终端将第二数据包转发至目的网络地址所指示的目的主机。Step S502, the first target terminal forwards the second data packet to the destination host indicated by the destination network address.
具体地,第一目标终端13接收到第二数据包后,可以检查目的网络地址,然后查找路由表。当第一目标终端13找到与目的网络地址匹配的路由表项之后,第一目标终端13就会根据该表所指示的出口和接口信息将第二数据包转发至目的网络地址所指示的目的主机15。Specifically, after receiving the second data packet, the first target terminal 13 may check the destination network address, and then look up the routing table. After the first target terminal 13 finds a routing table entry matching the destination network address, the first target terminal 13 will forward the second data packet to the destination host indicated by the destination network address according to the exit and interface information indicated by the table 15.
基于上述实施例中的网络控制方法,本申请实施例还提供了一种网络控制装置。请参阅图12,图12是本申请实施例提供的一种网络控制装置的结构示意图,如图12所示,该网络控制装置200包括:Based on the network control method in the foregoing embodiment, an embodiment of the present application further provides a network control apparatus. Please refer to FIG. 12. FIG. 12 is a schematic structural diagram of a network control apparatus provided by an embodiment of the present application. As shown in FIG. 12, the network control apparatus 200 includes:
确定单元21,配置为确定同一局域网下至少两个终端的网络能力,以及根据网络能力,确定第一目标终端和第二目标终端,其中,第一目标终端和第二目标终端均为终端组中的至少一个终端,第一目标终端的网络能力强于第二目标终端的网络能力;The determining unit 21 is configured to determine the network capabilities of at least two terminals under the same local area network, and determine the first target terminal and the second target terminal according to the network capabilities, wherein the first target terminal and the second target terminal are both in the terminal group. At least one terminal of the first target terminal, the network capability of the first target terminal is stronger than that of the second target terminal;
第一发送单元22,配置为向第二目标终端发送第一消息,第一消息包括第一目标终端的标识信息,标识信息中携带有第一目标终端的IP地址信息,第一消息用于指示第二目标终端将第一目标终端作为下一跳路由。The first sending unit 22 is configured to send a first message to the second target terminal, where the first message includes identification information of the first target terminal, the identification information carries the IP address information of the first target terminal, and the first message is used to indicate The second target terminal takes the first target terminal as the next hop route.
在一个例子中,确定单元21,还配置为:In one example, the determining unit 21 is further configured to:
获取至少两个终端的设备状态信息,设备状态信息包括运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种;Acquire device status information of at least two terminals, where the device status information includes one or more of carrier type, network type, network signal strength, network load, processor load, and power;
基于至少两个终端的设备状态信息,确定至少两个终端的网络能力。Based on the device state information of the at least two terminals, network capabilities of the at least two terminals are determined.
在一个例子中,装置部署于终端组中的主终端,确定单元21,还配置为:In one example, the device is deployed on the master terminal in the terminal group, and the determining unit 21 is further configured to:
生成第一设备状态信息,以及将第一设备状态信息发送至数据库服务器,以使数据库服务器将第一设备状态信息分发至终端组中的从终端;generating first device state information, and sending the first device state information to the database server, so that the database server distributes the first device state information to slave terminals in the terminal group;
接收数据库服务器转发的从终端的第二设备状态信息,其中,第二状态信息为从终端接收到第一设备状态信息后生成并发送至数据库服务器。Receive second device state information from the terminal forwarded by the database server, where the second state information is generated after receiving the first device state information from the terminal and sent to the database server.
在一个例子中,网络能力由使用权重因子对设备状态信息中所包括的信息进行加 权组合得到。In one example, the network capabilities are obtained by weighting the information included in the device state information using weighting factors.
在一个例子中,确定单元21,还配置为:In one example, the determining unit 21 is further configured to:
接收至少两个终端发送的第一数据包,第一数据包包括网络能力。A first data packet sent by at least two terminals is received, where the first data packet includes network capabilities.
在一个例子中,确定单元21,还配置为:In one example, the determining unit 21 is further configured to:
对至少两个终端的网络能力排序,以及基于排序结果,确定第一目标终端和第二目标终端。The network capabilities of the at least two terminals are ranked, and based on the ranking result, the first target terminal and the second target terminal are determined.
在一个例子中,第一发送单元22,还配置为:In an example, the first sending unit 22 is further configured to:
向第一目标终端发送第二消息,第二消息用于指示第一目标终端开启网络分享;sending a second message to the first target terminal, where the second message is used to instruct the first target terminal to enable network sharing;
接收第一目标终端反馈的第三消息,第三消息包括第一目标终端已成功开启网络分享的信息。A third message fed back by the first target terminal is received, where the third message includes information that the first target terminal has successfully enabled network sharing.
在一个例子中,装置部署于于终端组中的第一终端,确定单元21,还配置为:In an example, the device is deployed on the first terminal in the terminal group, and the determining unit 21 is further configured to:
将可信群组的群标识信息分享至至少一个第二终端,以使至少一个第二终端基于群标识信息加入可信群组,其中,可信群组由第一终端建立,可信群组中的终端构成终端组。Share the group identification information of the trusted group to at least one second terminal, so that the at least one second terminal joins the trusted group based on the group identification information, wherein the trusted group is established by the first terminal, and the trusted group is The terminals in form a terminal group.
在一个例子中,群标识信息中携带有第一终端分享的网络的网络信息,其中,第一终端为第二终端的下一跳路由,网络信息包括第一终端分享的网络的密码和身份标识。In one example, the group identification information carries network information of the network shared by the first terminal, where the first terminal is the next hop route of the second terminal, and the network information includes the password and identity of the network shared by the first terminal .
应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。It should be understood that the above-mentioned apparatus is used to execute the method in the above-mentioned embodiment, and the implementation principle and technical effect of the corresponding program modules in the apparatus are similar to those described in the above-mentioned method, and the working process of the apparatus may refer to the corresponding program module in the above-mentioned method The process will not be repeated here.
基于上述实施例中的网络控制方法,本申请实施例还提供了一种网络控制装置,该网络控制装置部署于第一目标终端。请参阅图13,图13是本申请实施例提供的另一种网络控制装置的结构示意图,如图13所示,该网络控制装置300包括:Based on the network control method in the foregoing embodiment, an embodiment of the present application further provides a network control apparatus, where the network control apparatus is deployed on the first target terminal. Please refer to FIG. 13 . FIG. 13 is a schematic structural diagram of another network control apparatus provided by an embodiment of the present application. As shown in FIG. 13 , the network control apparatus 300 includes:
第一接收单元31,配置为接收电子设备发送的第二消息,第二消息用于指示第一目标终端开启网络分享,电子设备包括终端或服务器;The first receiving unit 31 is configured to receive a second message sent by the electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic device includes a terminal or a server;
开启单元32,配置为开启网络分享;an opening unit 32, configured to enable network sharing;
第二接收单元33,配置为接收第二目标终端发送的第二数据包,第二数据包包括目的网络地址,其中,第一目标终端和第二目标终端均为同一局域网中的终端;The second receiving unit 33 is configured to receive a second data packet sent by the second target terminal, where the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
转发单元34,配置为将第二数据包转发至目的网络地址所指示的目的主机。The forwarding unit 34 is configured to forward the second data packet to the destination host indicated by the destination network address.
在一个例子中,装置还包括:In one example, the apparatus further includes:
第二发送单元,配置为在第一接收单元接收第二消息前,向电子设备发送第三数据包,第一数据包包括第一目标终端的网络能力。The second sending unit is configured to send a third data packet to the electronic device before the first receiving unit receives the second message, where the first data packet includes the network capability of the first target terminal.
应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。It should be understood that the above-mentioned apparatus is used to execute the method in the above-mentioned embodiment, and the implementation principle and technical effect of the corresponding program modules in the apparatus are similar to those described in the above-mentioned method, and the working process of the apparatus may refer to the corresponding program module in the above-mentioned method The process will not be repeated here.
基于上述实施例中的网络控制方法,本申请实施例还提供了一种网络控制装置,该网络控制装置部署于于第二目标终端。请参阅图14,图14是本申请实施例提供的 又一种网络控制装置的结构示意图,如图14所示,该网络控制装置400包括:Based on the network control method in the foregoing embodiment, an embodiment of the present application further provides a network control apparatus, where the network control apparatus is deployed on a second target terminal. Please refer to Fig. 14, Fig. 14 is a schematic structural diagram of another network control device provided by an embodiment of the present application. As shown in Fig. 14, the network control device 400 includes:
第三接收单元41,配置为接收电子设备发送的第一消息,电子设备包括终端或服务器,第一消息包括第一目标终端的标识信息,标识信息中携带有第一目标终端的IP地址信息,第一消息用于指示第二目标终端将第一目标终端作为下一跳路由,其中,第一目标终端和第二目标终端均为同一局域网中的终端;The third receiving unit 41 is configured to receive a first message sent by an electronic device, the electronic device includes a terminal or a server, the first message includes identification information of the first target terminal, and the identification information carries the IP address information of the first target terminal, The first message is used to instruct the second target terminal to use the first target terminal as a next-hop route, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
第三发送单元42,配置为向第一目标终端发送第二数据包,第二数据包包括目的网络地址。The third sending unit 42 is configured to send a second data packet to the first target terminal, where the second data packet includes the destination network address.
在一个例子中,第三发送单元41,还配置为:In an example, the third sending unit 41 is further configured to:
向电子设备发送第一数据包,第一数据包包括第二目标终端的网络能力。A first data packet is sent to the electronic device, where the first data packet includes the network capability of the second target terminal.
应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。It should be understood that the above-mentioned apparatus is used to execute the method in the above-mentioned embodiment, and the implementation principle and technical effect of the corresponding program modules in the apparatus are similar to those described in the above-mentioned method, and the working process of the apparatus may refer to the corresponding program module in the above-mentioned method The process will not be repeated here.
基于上述实施例中的网络控制方法,本申请实施例还提供了一种电子设备,该电子设备包括触摸屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中一个或多个程序被存储在存储器中;一个或多个处理器在执行一个或多个程序时,使得电子设备实现以上方面所提供的方法。Based on the network control method in the above embodiment, the embodiment of the present application further provides an electronic device, the electronic device includes a touch screen, a memory, one or more processors, multiple application programs, and one or more programs; wherein One or more programs are stored in the memory; one or more processors, when executing the one or more programs, cause the electronic device to implement the methods provided by the above aspects.
本申请还提供了一种电子设备,该电子设备包含以上方面所提供的网络控制装置。The present application also provides an electronic device, which includes the network control device provided in the above aspect.
基于上述实施例中的网络控制方法,本申请实施例还提供了一种芯片。请参阅图15,图15为本申请实施例提供的一种芯片的结构示意图。芯片1500包括一个或多个处理器1501以及接口电路1502。可选的,所述芯片1500还可以包含总线1503。其中:Based on the network control method in the foregoing embodiment, an embodiment of the present application further provides a chip. Please refer to FIG. 15 , which is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 1500 includes one or more processors 1501 and interface circuits 1502 . Optionally, the chip 1500 may further include a bus 1503 . in:
处理器1501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1501可以是通用处理器、数字通信器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 1501 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 1501 or an instruction in the form of software. The above-mentioned processor 1501 may be a general purpose processor, a digital communicator (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components . Various methods and steps disclosed in the embodiments of this application can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
接口电路1502可以用于数据、指令或者信息的发送或者接收,处理器1501可以利用接口电路1502接收的数据、指令或者其它信息,进行加工,可以将加工完成信息通过接口电路1502发送出去。The interface circuit 1502 can be used for sending or receiving data, instructions or information. The processor 1501 can use the data, instructions or other information received by the interface circuit 1502 to process, and can send the processing completion information through the interface circuit 1502.
可选的,芯片还包括存储器,存储器可以包括只读存储器和随机存取存储器,并向处理器提供操作指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。Optionally, the chip further includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (NVRAM).
可选的,存储器存储了可执行软件模块或者数据结构,处理器可以通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。Optionally, the memory stores executable software modules or data structures, and the processor may execute corresponding operations by calling operation instructions stored in the memory (the operation instructions may be stored in the operating system).
可选的,芯片可以使用在本申请实施例涉及的通信装置(包括主节点和从节点)中。可选的,接口电路1502可用于输出处理器1501的执行结果。关于本申请的一个或多个实施例提供的数据传输方法可参考前述各个实施例,这里不再赘述。Optionally, the chip may be used in the communication apparatus (including the master node and the slave node) involved in the embodiments of the present application. Optionally, the interface circuit 1502 may be used to output the execution result of the processor 1501 . For the data transmission method provided by one or more embodiments of the present application, reference may be made to the foregoing embodiments, and details are not repeated here.
需要说明的,处理器1501、接口电路1502各自对应的功能既可以通过硬件设计 实现,也可以通过软件设计来实现,还可以通过软硬件结合的方式来实现,这里不作限制。It should be noted that the respective functions of the processor 1501 and the interface circuit 1502 can be realized by hardware design, software design, or a combination of software and hardware, which is not limited here.
应理解,上述方法实施例的各步骤可以通过处理器中的硬件形式的逻辑电路或者软件形式的指令完成。处理器可以是CPU、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件,例如,分立门、晶体管逻辑器件或分立硬件组件。It should be understood that the steps in the above method embodiments may be implemented by logic circuits in the form of hardware or instructions in the form of software in the processor. The processor can be a CPU, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, For example, discrete gates, transistor logic devices, or discrete hardware components.
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It can be understood that the processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general-purpose processors, digital signal processors (digital signal processors, DSP), application-specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。The method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disks, removable hard disks, CD-ROMs or known in the art in any other form of storage medium. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from one website site, computer, server, or data center to another website site by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。It can be understood that, the various numbers and numbers involved in the embodiments of the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application.

Claims (31)

  1. 一种网络控制方法,其特征在于,所述方法包括:A network control method, characterized in that the method comprises:
    确定同一局域网下至少两个终端的网络能力;Determine the network capabilities of at least two terminals under the same local area network;
    根据所述网络能力,确定第一目标终端和第二目标终端,其中,所述第一目标终端和所述第二目标终端均为所述终端组中的至少一个终端,所述第一目标终端的网络能力强于所述第二目标终端的网络能力;Determine a first target terminal and a second target terminal according to the network capability, wherein the first target terminal and the second target terminal are at least one terminal in the terminal group, and the first target terminal The network capability of the second target terminal is stronger than that of the second target terminal;
    向所述第二目标终端发送第一消息,所述第一消息包括所述第一目标终端的标识信息,所述标识信息中携带有所述第一目标终端的IP地址信息,所述第一消息用于指示所述第二目标终端将所述第一目标终端作为下一跳路由。Send a first message to the second target terminal, where the first message includes identification information of the first target terminal, the identification information carries the IP address information of the first target terminal, the first target terminal The message is used to instruct the second target terminal to route the first target terminal as a next hop.
  2. 根据权利要求1所述的方法,其特征在于,所述确定同一局域网下终端组中至少两个终端的网络能力,包括:The method according to claim 1, wherein the determining the network capabilities of at least two terminals in the terminal group under the same local area network comprises:
    获取所述至少两个终端的设备状态信息,所述设备状态信息包括运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种;Acquire device status information of the at least two terminals, where the device status information includes one or more of carrier type, network type, network signal strength, network load, processor load, and power;
    基于所述至少两个终端的设备状态信息,确定所述至少两个终端的网络能力。Based on the device status information of the at least two terminals, network capabilities of the at least two terminals are determined.
  3. 根据权利要求2所述的方法,其特征在于,所述方法应用于所述终端组中的主终端,所述获取所述至少两个终端的设备状态信息,包括:The method according to claim 2, wherein the method is applied to the master terminal in the terminal group, and the acquiring the device status information of the at least two terminals comprises:
    生成第一设备状态信息,以及将所述第一设备状态信息发送至数据库服务器,以使所述数据库服务器将所述第一设备状态信息分发至所述终端组中的从终端;generating first device state information, and sending the first device state information to a database server, so that the database server distributes the first device state information to slave terminals in the terminal group;
    接收所述数据库服务器转发的所述从终端的第二设备状态信息,其中,所述第二状态信息为所述从终端接收到所述第一设备状态信息后生成并发送至所述数据库服务器。Receive the second device state information of the slave terminal forwarded by the database server, where the second state information is generated after the slave terminal receives the first device state information and sent to the database server.
  4. 根据权利要求2或3所述的方法,其特征在于,所述网络能力由使用权重因子对所述设备状态信息中所包括的信息进行加权组合得到。The method according to claim 2 or 3, wherein the network capability is obtained by weighting and combining the information included in the device state information by using a weighting factor.
  5. 根据权利要求1所述的方法,其特征在于,所述确定同一局域网下终端组中至少两个终端的网络能力,包括:The method according to claim 1, wherein the determining the network capabilities of at least two terminals in the terminal group under the same local area network comprises:
    接收所述所述至少两个终端发送的第一数据包,所述第一数据包包括所述网络能力。A first data packet sent by the at least two terminals is received, where the first data packet includes the network capability.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述根据所述网络能力,确定第一目标终端和第二目标终端,包括:The method according to any one of claims 1-5, wherein the determining the first target terminal and the second target terminal according to the network capability comprises:
    对所述至少两个终端的网络能力排序,以及基于排序结果,确定所述第一目标终端和第二目标终端。Ranking the network capabilities of the at least two terminals, and determining the first target terminal and the second target terminal based on the ranking result.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述向所述第二目标终端发送第一消息之前,包括:The method according to any one of claims 1-6, wherein before the sending the first message to the second target terminal, the method comprises:
    向所述第一目标终端发送第二消息,所述第二消息用于指示所述第一目标终端开启网络分享;sending a second message to the first target terminal, where the second message is used to instruct the first target terminal to enable network sharing;
    接收所述第一目标终端反馈的第三消息,所述第三消息包括所述第一目标终端已成功开启网络分享的信息。A third message fed back by the first target terminal is received, where the third message includes information that the first target terminal has successfully enabled network sharing.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法应用于所述终端组中的第一终端,所述确定同一局域网下终端组中至少两个终端的网络能力之前,包 括:The method according to any one of claims 1-7, wherein the method is applied to the first terminal in the terminal group, and before the determination of the network capabilities of at least two terminals in the terminal group under the same local area network ,include:
    将可信群组的群标识信息分享至至少一个第二终端,以使所述至少一个第二终端基于所述群标识信息加入所述可信群组,其中,所述可信群组由所述第一终端建立,所述可信群组中的终端构成所述终端组。Share the group identification information of the trusted group with at least one second terminal, so that the at least one second terminal joins the trusted group based on the group identification information, wherein the trusted group is controlled by the The first terminal is established, and the terminals in the trusted group constitute the terminal group.
  9. 根据权利要求8所述的方法,其特征在于,所述群标识信息中携带有所述第一终端分享的网络的网络信息,其中,所述第一终端为所述第二终端的下一跳路由,所述网络信息包括所述第一终端分享的网络的密码和身份标识。The method according to claim 8, wherein the group identification information carries network information of a network shared by the first terminal, wherein the first terminal is a next hop of the second terminal routing, and the network information includes the password and identity of the network shared by the first terminal.
  10. 一种网络控制方法,其特征在于,应用于第一目标终端,所述方法包括:A network control method, characterized in that being applied to a first target terminal, the method comprising:
    接收电子设备发送的第二消息,所述第二消息用于指示所述第一目标终端开启网络分享,所述电子设备包括终端或服务器;receiving a second message sent by an electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic device includes a terminal or a server;
    开启网络分享;Enable network sharing;
    接收第二目标终端发送的第二数据包,所述第二数据包包括目的网络地址,其中,所述第一目标终端和所述第二目标终端均为同一局域网中的终端;receiving a second data packet sent by a second target terminal, where the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
    将所述第二数据包转发至所述目的网络地址所指示的目的主机。Forwarding the second data packet to the destination host indicated by the destination network address.
  11. 根据权利要求10所述的方法,其特征在于,所述接收电子设备发送的第一消息之前,还包括:The method according to claim 10, wherein before the receiving the first message sent by the electronic device, the method further comprises:
    向所述电子设备发送第三数据包,所述第一数据包包括所述第一目标终端的网络能力。Sending a third data packet to the electronic device, the first data packet including the network capability of the first target terminal.
  12. 一种网络控制方法,其特征在于,应用于第二目标终端,所述方法包括:A network control method, characterized in that being applied to a second target terminal, the method comprising:
    接收电子设备发送的第一消息,所述电子设备包括终端或服务器,所述第一消息包括第一目标终端的标识信息,所述标识信息中携带有所述第一目标终端的IP地址信息,所述第一消息用于指示所述第二目标终端将所述第一目标终端作为下一跳路由,其中,所述第一目标终端和所述第二目标终端均为同一局域网中的终端;receiving a first message sent by an electronic device, where the electronic device includes a terminal or a server, the first message includes identification information of a first target terminal, and the identification information carries IP address information of the first target terminal, The first message is used to instruct the second target terminal to use the first target terminal as a next-hop route, wherein the first target terminal and the second target terminal are both terminals in the same local area network;
    向所述第一目标终端发送第二数据包,所述第二数据包包括目的网络地址。Send a second data packet to the first target terminal, where the second data packet includes a destination network address.
  13. 根据权利要求12所述的方法,其特征在于,所述接收电子设备发送的第一消息之前,还包括:The method according to claim 12, wherein before the receiving the first message sent by the electronic device, the method further comprises:
    向所述电子设备发送第一数据包,所述第一数据包包括所述第二目标终端的网络能力。Sending a first data packet to the electronic device, the first data packet including the network capability of the second target terminal.
  14. 一种网络控制装置,其特征在于,所述装置包括:A network control device, characterized in that the device comprises:
    确定单元,配置为确定同一局域网下至少两个终端的网络能力,以及根据所述网络能力,确定第一目标终端和第二目标终端,其中,所述第一目标终端和所述第二目标终端均为所述终端组中的至少一个终端,所述第一目标终端的网络能力强于所述第二目标终端的网络能力;a determining unit configured to determine network capabilities of at least two terminals under the same local area network, and determine a first target terminal and a second target terminal according to the network capabilities, wherein the first target terminal and the second target terminal are at least one terminal in the terminal group, and the network capability of the first target terminal is stronger than the network capability of the second target terminal;
    第一发送单元,配置为向所述第二目标终端发送第一消息,所述第一消息包括所述第一目标终端的标识信息,所述标识信息中携带有所述第一目标终端的IP地址信息,所述第一消息用于指示所述第二目标终端将所述第一目标终端作为下一跳路由。a first sending unit, configured to send a first message to the second target terminal, where the first message includes identification information of the first target terminal, and the identification information carries the IP address of the first target terminal address information, and the first message is used to instruct the second target terminal to use the first target terminal as a next-hop route.
  15. 根据权利要求14所述的装置,其特征在于,所述确定单元,还配置为:The device according to claim 14, wherein the determining unit is further configured to:
    获取所述至少两个终端的设备状态信息,所述设备状态信息包括运营商类型、网络类型、网络信号强度、网络负载、处理器负载、电量中的一种或多种;Acquire device status information of the at least two terminals, where the device status information includes one or more of carrier type, network type, network signal strength, network load, processor load, and power;
    基于所述至少两个终端的设备状态信息,确定所述至少两个终端的网络能力。Based on the device status information of the at least two terminals, network capabilities of the at least two terminals are determined.
  16. 根据权利要求15所述的装置,其特征在于,所述装置部署于所述终端组中的主终端,所述确定单元,还配置为:The apparatus according to claim 15, wherein the apparatus is deployed on a master terminal in the terminal group, and the determining unit is further configured to:
    生成第一设备状态信息,以及将所述第一设备状态信息发送至数据库服务器,以使所述数据库服务器将所述第一设备状态信息分发至所述终端组中的从终端;generating first device state information, and sending the first device state information to a database server, so that the database server distributes the first device state information to slave terminals in the terminal group;
    接收所述数据库服务器转发的所述从终端的第二设备状态信息,其中,所述第二状态信息为所述从终端接收到所述第一设备状态信息后生成并发送至所述数据库服务器。Receive the second device state information of the slave terminal forwarded by the database server, where the second state information is generated after the slave terminal receives the first device state information and sent to the database server.
  17. 根据权利要求15或16所述的装置,其特征在于,所述网络能力由使用权重因子对所述设备状态信息中所包括的信息进行加权组合得到。The apparatus according to claim 15 or 16, wherein the network capability is obtained by weighting and combining the information included in the device status information by using a weighting factor.
  18. 根据权利要求14所述的装置,其特征在于,所述确定单元,还配置为:The device according to claim 14, wherein the determining unit is further configured to:
    接收所述所述至少两个终端发送的第一数据包,所述第一数据包包括所述网络能力。A first data packet sent by the at least two terminals is received, where the first data packet includes the network capability.
  19. 根据权利要求14-18任一项所述的装置,其特征在于,所述确定单元,还配置为:The device according to any one of claims 14-18, wherein the determining unit is further configured to:
    对所述至少两个终端的网络能力排序,以及基于排序结果,确定所述第一目标终端和第二目标终端。Ranking the network capabilities of the at least two terminals, and determining the first target terminal and the second target terminal based on the ranking result.
  20. 根据权利要求14-19任一项所述的装置,其特征在于,所述第一发送单元,还配置为:The device according to any one of claims 14-19, wherein the first sending unit is further configured to:
    向所述第一目标终端发送第二消息,所述第二消息用于指示所述第一目标终端开启网络分享;sending a second message to the first target terminal, where the second message is used to instruct the first target terminal to enable network sharing;
    接收所述第一目标终端反馈的第三消息,所述第三消息包括所述第一目标终端已成功开启网络分享的信息。A third message fed back by the first target terminal is received, where the third message includes information that the first target terminal has successfully enabled network sharing.
  21. 根据权利要求14-20任一项所述的装置,其特征在于,所述装置部署于于所述终端组中的第一终端,所述确定单元,还配置为:The apparatus according to any one of claims 14-20, wherein the apparatus is deployed on a first terminal in the terminal group, and the determining unit is further configured to:
    将可信群组的群标识信息分享至至少一个第二终端,以使所述至少一个第二终端基于所述群标识信息加入所述可信群组,其中,所述可信群组由所述第一终端建立,所述可信群组中的终端构成所述终端组。Share the group identification information of the trusted group with at least one second terminal, so that the at least one second terminal joins the trusted group based on the group identification information, wherein the trusted group is controlled by the The first terminal is established, and the terminals in the trusted group constitute the terminal group.
  22. 根据权利要求21所述的方法,其特征在于,所述群标识信息中携带有所述第一终端分享的网络的网络信息,其中,所述第一终端为所述第二终端的下一跳路由,所述网络信息包括所述第一终端分享的网络的密码和身份标识。The method according to claim 21, wherein the group identification information carries network information of a network shared by the first terminal, wherein the first terminal is a next hop of the second terminal routing, and the network information includes the password and identity of the network shared by the first terminal.
  23. 一种网络控制装置,其特征在于,部署于于第一目标终端,所述装置包括:A network control device, characterized in that it is deployed on a first target terminal, the device comprising:
    第一接收单元,配置为接收电子设备发送的第二消息,所述第二消息用于指示所述第一目标终端开启网络分享,所述电子设备包括终端或服务器;a first receiving unit, configured to receive a second message sent by an electronic device, where the second message is used to instruct the first target terminal to enable network sharing, and the electronic device includes a terminal or a server;
    开启单元,配置为开启网络分享;Turn on the unit and configure it to enable network sharing;
    第二接收单元,配置为接收第二目标终端发送的第二数据包,所述第二数据包包括目的网络地址,其中,所述第一目标终端和所述第二目标终端均为同一局域网中的终端;The second receiving unit is configured to receive a second data packet sent by a second target terminal, where the second data packet includes a destination network address, wherein the first target terminal and the second target terminal are both in the same local area network the terminal;
    转发单元,配置为将所述第二数据包转发至所述目的网络地址所指示的目的主机。A forwarding unit, configured to forward the second data packet to the destination host indicated by the destination network address.
  24. 根据权利要求23所述的装置,其特征在于,所述装置还包括:The apparatus of claim 23, wherein the apparatus further comprises:
    第二发送单元,配置为在所述第一接收单元接收第二消息前,向所述电子设备发送第三数据包,所述第一数据包包括所述第一目标终端的网络能力。The second sending unit is configured to send a third data packet to the electronic device before the first receiving unit receives the second message, where the first data packet includes the network capability of the first target terminal.
  25. 一种网络控制装置,其特征在于,部署于第二目标终端,所述装置包括:A network control device, characterized in that it is deployed on a second target terminal, the device comprising:
    第三接收单元,配置为接收电子设备发送的第一消息,所述电子设备包括终端或服务器,所述第一消息包括第一目标终端的标识信息,所述标识信息中携带有所述第一目标终端的IP地址信息,所述第一消息用于指示所述第二目标终端将所述第一目标终端作为下一跳路由,其中,所述第一目标终端和所述第二目标终端均为同一局域网中的终端;a third receiving unit, configured to receive a first message sent by an electronic device, where the electronic device includes a terminal or a server, the first message includes identification information of the first target terminal, and the identification information carries the first message IP address information of the target terminal, the first message is used to instruct the second target terminal to use the first target terminal as a next-hop route, wherein both the first target terminal and the second target terminal are It is a terminal in the same local area network;
    第三发送单元,配置为向所述第一目标终端发送第二数据包,所述第二数据包包括目的网络地址。The third sending unit is configured to send a second data packet to the first target terminal, where the second data packet includes a destination network address.
  26. 根据权利要求25所述的装置,其特征在于,所述第三发送单元,还配置为:The apparatus according to claim 25, wherein the third sending unit is further configured to:
    向所述电子设备发送第一数据包,所述第一数据包包括所述第二目标终端的网络能力。Sending a first data packet to the electronic device, the first data packet including the network capability of the second target terminal.
  27. 一种电子设备,包括触摸屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1-13任一项所述的方法。An electronic device comprising a touch screen, a memory, one or more processors, a plurality of application programs, and one or more programs; wherein the one or more programs are stored in the memory; it is characterized in that the When the one or more processors execute the one or more programs, the electronic device enables the electronic device to implement the method according to any one of claims 1-13.
  28. 一种电子设备,其特征在于,包含权利要求14-26任一项所述的装置。An electronic device, characterized by comprising the device according to any one of claims 14-26.
  29. 一种计算机存储介质,所述计算机存储介质中存储有指令,当所述指令在计算机上运行时,使得计算机执行如权利要求1-13任一所述的方法。A computer storage medium having instructions stored in the computer storage medium, when the instructions are executed on a computer, causing the computer to execute the method according to any one of claims 1-13.
  30. 一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1-13任一所述的方法。A computer program product comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 1-13.
  31. 一种芯片,其特征在于,包括至少一个处理器和接口;A chip, characterized in that it includes at least one processor and an interface;
    所述接口,用于为所述至少一个处理器提供程序指令或者数据;the interface for providing program instructions or data for the at least one processor;
    所述至少一个处理器用于执行所述程序行指令,以实现如权利要求1-13中任一项所述的方法。The at least one processor is configured to execute the program line instructions to implement the method of any of claims 1-13.
PCT/CN2021/114025 2020-09-22 2021-08-23 Network control method, apparatus, and electronic device WO2022062796A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011000675.8 2020-09-22
CN202011000675.8A CN114258037B (en) 2020-09-22 2020-09-22 Network control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022062796A1 true WO2022062796A1 (en) 2022-03-31

Family

ID=80788411

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114025 WO2022062796A1 (en) 2020-09-22 2021-08-23 Network control method, apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN114258037B (en)
WO (1) WO2022062796A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243080A (en) * 2022-09-21 2022-10-25 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN116113071A (en) * 2023-04-13 2023-05-12 深圳开鸿数字产业发展有限公司 Data transmission method, main terminal equipment and storage medium
CN116684517A (en) * 2022-09-29 2023-09-01 荣耀终端有限公司 Method and device for sending response message

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716393A (en) * 2013-12-27 2014-04-09 深圳天珑无线科技有限公司 Resource sharing method and device and terminal used for LAN communication
CN104602289A (en) * 2015-02-12 2015-05-06 广东欧珀移动通信有限公司 MPP node self recovery method, device and system and intelligent terminal
CN105307184A (en) * 2014-06-17 2016-02-03 中兴通讯股份有限公司 Method, device and system for managing mobile hotspots
CN105792385A (en) * 2016-02-29 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Communication method and apparatus based on wireless local area network
CN107659999A (en) * 2017-10-31 2018-02-02 青岛海信电器股份有限公司 WIFI connection methods and equipment
WO2019101229A2 (en) * 2019-03-04 2019-05-31 Alibaba Group Holding Limited Updating blockchain world state merkle patricia trie subtree

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577875B (en) * 2009-06-08 2012-05-23 中兴通讯股份有限公司 Forward shifting method of route request information and device
CN111277505B (en) * 2020-01-13 2021-08-03 深圳市康冠智能科技有限公司 Multi-terminal joint control method, device, equipment and storage medium based on local area network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716393A (en) * 2013-12-27 2014-04-09 深圳天珑无线科技有限公司 Resource sharing method and device and terminal used for LAN communication
CN105307184A (en) * 2014-06-17 2016-02-03 中兴通讯股份有限公司 Method, device and system for managing mobile hotspots
CN104602289A (en) * 2015-02-12 2015-05-06 广东欧珀移动通信有限公司 MPP node self recovery method, device and system and intelligent terminal
CN105792385A (en) * 2016-02-29 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Communication method and apparatus based on wireless local area network
CN107659999A (en) * 2017-10-31 2018-02-02 青岛海信电器股份有限公司 WIFI connection methods and equipment
WO2019101229A2 (en) * 2019-03-04 2019-05-31 Alibaba Group Holding Limited Updating blockchain world state merkle patricia trie subtree

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243080A (en) * 2022-09-21 2022-10-25 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN115243080B (en) * 2022-09-21 2022-12-20 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN116684517A (en) * 2022-09-29 2023-09-01 荣耀终端有限公司 Method and device for sending response message
CN116113071A (en) * 2023-04-13 2023-05-12 深圳开鸿数字产业发展有限公司 Data transmission method, main terminal equipment and storage medium

Also Published As

Publication number Publication date
CN114258037A (en) 2022-03-29
CN114258037B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
WO2020000448A1 (en) Flexible screen display method and terminal
CN111866950B (en) Method and communication device for data transmission in MEC
WO2022062796A1 (en) Network control method, apparatus, and electronic device
US11483359B2 (en) Voice call method, electronic device, and system
CN111182614B (en) Method and device for establishing network connection and electronic equipment
US11843712B2 (en) Address book-based device discovery method, audio and video communication method, and electronic device
US20230351048A1 (en) Application Permission Management Method and Apparatus, and Electronic Device
JP7369281B2 (en) Device capacity scheduling method and electronic devices
US20230422154A1 (en) Method for using cellular communication function, and related apparatus and system
US11973895B2 (en) Call method and apparatus
CN111371849A (en) Data processing method and electronic equipment
KR102491006B1 (en) Data Transmission Methods and Electronic Devices
US20230367571A1 (en) Distributed application processing method and apparatus
KR102524305B1 (en) Connection establishment method and terminal device
US20210385187A1 (en) Method and device for performing domain name resolution by sending key value to grs server
WO2022218196A1 (en) Transmission power control method and related device
CN113973398A (en) Wireless network connection method, electronic equipment and chip system
WO2022095712A1 (en) Data sharing method, apparatus and system, and electronic device
CN114356195B (en) File transmission method and related equipment
CN114928898B (en) Method and device for establishing session based on WiFi direct connection
WO2021218544A1 (en) Wireless connection providing system, method, and electronic apparatus
WO2022062902A1 (en) File transfer method and electronic device
WO2022222733A1 (en) Data transmission method and related device
CN117692693A (en) Multi-screen display method and related equipment
CN115604773A (en) Channel switching method and device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871169

Country of ref document: EP

Kind code of ref document: A1