CN113746909A - Network connection method, device, electronic equipment and computer readable storage medium - Google Patents

Network connection method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113746909A
CN113746909A CN202110981887.7A CN202110981887A CN113746909A CN 113746909 A CN113746909 A CN 113746909A CN 202110981887 A CN202110981887 A CN 202110981887A CN 113746909 A CN113746909 A CN 113746909A
Authority
CN
China
Prior art keywords
equipment
relay
network
connection
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110981887.7A
Other languages
Chinese (zh)
Inventor
陆晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110981887.7A priority Critical patent/CN113746909A/en
Publication of CN113746909A publication Critical patent/CN113746909A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/20Repeater circuits; Relay circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The embodiment of the application discloses a network connection method, a network connection device, electronic equipment and a computer readable storage medium, wherein the network connection method, the device, the electronic equipment and the computer readable storage medium can improve the success rate of connecting target network equipment by acquiring equipment connection information of at least one relay equipment connected to a computer network through the target network equipment, the target network equipment is used for sending a received request to a target address to access network resources, a connection relation is established between the equipment connection information and the relay equipment based on the connection relation, a service request for accessing the network resources is sent to the relay equipment, and the service request is sent to the target network equipment through the relay equipment.

Description

Network connection method, device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network connection method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
When the device needs to access the network, the device is usually connected to a network device providing a computer network by a direct connection method, and when the distance between the device and the network device is long or a network connection function module of the device fails, a network signal is poor and the network connection is not good.
Disclosure of Invention
Embodiments of the present application provide a network connection method, an apparatus, an electronic device, and a computer-readable storage medium, which can improve a success rate of connecting a target network device.
The network connection method provided by the embodiment of the application comprises the following steps:
acquiring equipment connection information of at least one relay equipment connected to a computer network through target network equipment, wherein the target network equipment is used for sending a received request to a target address to access network resources;
establishing a connection relation with the relay equipment through the equipment connection information;
and sending a service request for accessing network resources to the relay equipment based on the connection relation so as to send the service request to the target network equipment through the relay equipment.
Correspondingly, an embodiment of the present application further provides a network connection device, including:
an acquisition unit configured to acquire device connection information of a relay device connected to a computer network through a target network device, the target network device being configured to send a received request to a target address to access a network resource;
the establishing unit is used for establishing a connection relation with the relay equipment through the equipment connection information;
a sending unit, configured to send, to the relay device, a service request for accessing a network resource based on the connection relationship, so as to send, through the relay device, the service request to the target network device.
Correspondingly, the embodiment of the application also provides an electronic device, which comprises a memory and a processor; the memory stores a computer program, and the processor is used for operating the computer program in the memory to execute any network connection method provided by the embodiment of the application.
Accordingly, embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any one of the network connection methods provided in the embodiments of the present application.
According to the method and the device for accessing the network resource, the device connection information of at least one relay device connected to the computer network through the target network device is obtained, the target network device is used for sending the received request to the target address to access the network resource, the connection relation is established between the device connection information and the relay device based on the connection relation, the service request for accessing the network resource is sent to the relay device, the service request is sent to the target network device through the relay device, the relay device is indirectly connected to the target network device, and the success rate of connection of the target network device can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a network connection method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an apparatus provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a network connection method, a network connection device, electronic equipment and a computer-readable storage medium. The network connection device may be integrated in an electronic device, which may be a terminal or a server or the like.
The terminal may include smart home devices such as a smart television, a mobile phone, a wearable smart device, a tablet Computer, a notebook Computer, a Personal Computer (PC), and the like.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In this embodiment, from the perspective of the network connection device, the network connection device may be specifically integrated in the terminal for example, as shown in fig. 1, a specific flow of the network connection method may be as follows:
101. the terminal obtains the equipment connection information of at least one relay equipment connected to the computer network through the target network equipment, and the target network equipment is used for sending the received request to a target address to access network resources.
The target network device may be a network device capable of connecting different computer networks, selecting a data transmission path and forwarding data, and belongs to a third layer switching device, such as a router.
The network resource may be a website, a webpage, application software, and the like, and the accessing the target network resource may be sending a service request to a server corresponding to the network resource to obtain a corresponding service from the server.
The relay device may be a device connected to a Computer network through a target network device, the relay device may include smart home devices such as a smart television, a mobile phone, a wearable smart device, a tablet Computer, a notebook Computer, a Personal Computer (PC), and the like, and a request sent by the relay device to the network resource may be forwarded to a server corresponding to the network resource through a router.
For example, the terminal may specifically acquire device information of at least one relay device stored in advance, or acquire the relay device information from a block chain, and if the terminal is an internet of things device in an internet of things system, the terminal may acquire the device information of the relay device from a server of the internet of things system.
Optionally, the terminal may perform network distribution with the target network device, and based on a network distribution relationship with the target network device, query, by an instruction, device information of a relay device connected to the same target network device as the terminal, that is, the step "the terminal acquires device connection information of at least one relay device connected to the computer network through the target network device" may specifically include:
acquiring distribution network information aiming at target network equipment;
establishing a distribution network relation based on the distribution network information and the target network equipment;
and acquiring equipment connection information of the relay equipment connected to the computer network through the target network equipment based on the distribution network relation.
The distribution network information may be information required to connect to the target network device, such as a connection password.
The device connection information may be information required for connecting the relay device, and content included in the device connection information may be determined according to a connection manner, for example, if the terminal and the relay device are connected through a hotspot, the device connection information may include a hotspot connection address, a hotspot name, a hotspot password, and the like of the relay device; if the terminal and the relay device are connected through bluetooth, the device connection information may include a bluetooth connection address, a bluetooth name, a bluetooth password, and the like of the relay device, and in addition, the terminal and the relay device may be connected through other methods, for example, ZigBee, Sub-GHz, Z-Wave, and the like.
For example, the terminal may specifically search for a target network device, send a distribution network request to the target network device with distribution network information, and if the target network device verifies the distribution network information, establish a distribution network relationship between the terminal and the target network device. The terminal may obtain the device connection information of the relay device from the target network device based on the distribution network relationship.
Optionally, in order to improve the security of network connection and prevent information carried in a request sent by a terminal from being acquired by a relay device or preventing the relay device from being attacked by the terminal, the terminal and the relay device may perform mutual authentication, that is, the step "acquiring device connection information of the relay device connected to the computer network through a target network device based on a distribution network relationship" may specifically include:
acquiring equipment address information of relay equipment connected to a computer network through target network equipment based on the distribution network relationship;
sending an information acquisition request to the relay equipment according to the equipment address information;
and receiving the equipment connection information returned by the relay equipment based on the information acquisition request.
The device address information may be a communication address of the relay device, such as a mac address or an ip address.
For example, the terminal may specifically query, through an instruction, for example, an arp-a instruction or a ping instruction, the device address information of the relay device connected to the local area network provided by the target network device. The method comprises the steps that an information acquisition request is sent to the relay equipment through equipment address information, the information acquisition request can carry identity verification information, the relay equipment passes the verification of the identity verification information sent by a terminal based on a preset credit granting protocol, equipment connection information is returned to the terminal, and the terminal receives the equipment connection information returned by the equipment relay equipment.
If the authentication information sent by the terminal is not verified through the relay equipment, or the relay equipment cannot respond to the authentication request sent by the terminal, the relay equipment does not trust the terminal, the terminal does not trust the relay equipment, the relay equipment does not send equipment connection information to the terminal, and does not respond to other requests sent by the terminal, so that malicious attack of the terminal is prevented, the terminal does not send other requests to the relay equipment, and information is prevented from being stolen by the relay equipment.
102. And the terminal establishes a connection relation with the relay equipment through the equipment connection information.
For example, the terminal may specifically send a connection request to the relay device through the device connection information, and if the relay device verifies the device connection information, the terminal establishes a connection relationship with the relay device.
Optionally, whether to establish a connection relationship with the relay device may be determined according to a connection state of the terminal and the target network device, where the connection state with the target network device may be connection failure, connection success and a good signal, or connection success and a poor signal, and the quality of the signal may be determined to be good or poor according to the network speed, that is, the step "the terminal establishes a connection relationship with the relay device through the device connection information" may specifically be:
if the distribution network state of the target network equipment meets the preset condition, establishing a connection relation with the relay equipment through equipment connection information;
and if the distribution network state of the target network equipment does not meet the preset condition, sending a service request to the target network equipment based on the distribution network relation so as to send the service request to the target address through the target network equipment.
For example, if the distribution network status of the terminal and the target network device is connection failure or connection success but poor signal, the connection may be established with the relay device through the device connection information, and the service request may be forwarded to the target network device through the relay device. Otherwise, the service request is directly sent to the target network equipment.
If the terminal acquires the device connection information of the plurality of relay devices, when the connection with one of the relay devices fails, the terminal may establish a connection relationship with the other relay devices, so as to improve a success rate of network connection, that is, the step "the terminal establishes a connection relationship with the relay device through the device connection information" may specifically include:
determining a first relay device to be connected currently;
establishing a first connection relation with the first relay equipment based on the equipment connection information of the first relay equipment;
if the first connection relation is successfully established with the first relay equipment, taking the first connection relation as the connection relation;
if the first connection relation with the first relay equipment fails to be established, acquiring the equipment connection information of second relay equipment which is associated with the first relay equipment, taking the second relay equipment as the first relay equipment, returning and executing the equipment information based on the first relay equipment, and establishing the first connection relation with the first relay equipment.
For example, the method may specifically be to acquire a device list including device connection information of a plurality of relay devices, and determine, according to an order of the device list, for example, a first relay device in the device list as a first relay device to be currently connected.
If the terminal and the first relay device successfully establish the first connection relationship, the first connection relationship is a path for the terminal to send the service request, that is, the terminal sends the service request to the first relay device, and the first relay device sends the service request to the target network device.
If the first connection relationship between the terminal and the first relay device fails to be established, acquiring device connection information of a second relay device, where the second relay device may be a relay device in the device list, which is in order next to the first relay device, establishing a connection relationship with the second relay device based on the device connection information of the second relay device, if successful, sending a server request based on the connection relationship, and if unsuccessful, connecting the terminal and a relay device in order next to the second relay device, and so on until the connection is successful, or all relay devices fail to establish a connection relationship.
Optionally, the terminal may display the acquired device information of the at least one relay device, where the device information may include information such as a name, a device type (e.g., a mobile phone, a computer, a television, and the like), a distance, and the like of the relay device, and the user may select the relay device to be connected from the information, that is, the step "establishing a connection relationship with the relay device through the device connection information" may specifically include:
displaying an equipment selection interface, wherein the equipment selection interface displays equipment information of at least one piece of relay equipment;
and responding to the selection operation of the equipment information in the equipment selection interface, acquiring the connection information of the selected relay equipment, and establishing a connection relation with the relay equipment based on the connection information.
For example, the method may specifically be that a terminal displays a device selection interface, device information of at least one relay device may be displayed in the device selection interface, a user may select based on the displayed device information, the terminal responds to a selection operation of the user, determines the selected relay device from the at least one relay device, obtains device connection information of the relay device, and establishes a connection relationship with the relay device based on the device connection information.
103. And the terminal sends a service request for accessing the network resource to the relay equipment based on the connection relation so as to send the service request to the target network equipment through the relay equipment.
For example, specifically, if the terminal and the relay device establish a connection relationship in a bluetooth manner, the terminal sends a service request to the relay device through a bluetooth transmission technology, the service request may carry an address of a server corresponding to a network resource to be accessed by the terminal, the relay device sends the service request to the target network device, and the target network device forwards the service request according to the address of the server carried in the server request to send the service request to the server.
Optionally, the service request may also carry communication information of the relay device, for example, information such as a communication address and a communication port, and when the server returns data based on the service request, the server may send the data to the relay device based on the information such as the communication address and the communication port in the service request, and the relay device sends the data to the terminal.
As can be seen from the above, in the embodiment of the present application, the terminal obtains the device connection information of at least one relay device connected to the computer network through the target network device, where the target network device is configured to send the received request to the target address to access the network resource, and sends the service request for accessing the network resource to the relay device through the device connection information and the relay device based on the connection relationship, so as to send the service request to the target network device through the relay device.
In order to better implement the network connection method provided by the embodiment of the present application, a network connection device is further provided in an embodiment. Wherein the terms have the same meanings as those in the above network connection method, and the details of the implementation can be referred to the description in the method embodiment.
The network connection device may be specifically integrated in an electronic device, and as shown in fig. 2, the network connection device may include: the acquiring unit 201, the establishing unit 202, and the sending unit 203 are specifically as follows:
(1) the acquisition unit 201: the network device is used for acquiring device connection information of at least one relay device connected to the computer network through the target network device, and the target network device is used for sending the received request to a target address to access network resources.
For example, the device information of the at least one relay device stored in advance may be obtained, or the relay device information may be obtained from a block chain, and if the terminal is an internet of things device in an internet of things system, the device information of the relay device may be obtained from a server of the internet of things system.
Optionally, the obtaining unit 201 may include a first obtaining subunit, a first establishing subunit, and a second obtaining subunit, specifically:
a first acquisition subunit: the network distribution system is used for acquiring distribution network information aiming at the target network equipment;
a first establishing subunit: the network distribution system is used for establishing a network distribution relation with the target network equipment based on the network distribution information;
a second acquisition subunit: the method and the device are used for acquiring the device connection information of the relay device connected to the computer network through the target network device based on the distribution network relationship.
For example, the terminal may specifically search for a target network device, send a distribution network request to the target network device with distribution network information, and if the target network device verifies the distribution network information, establish a distribution network relationship between the terminal and the target network device. The terminal may obtain the device connection information of the relay device from the target network device based on the distribution network relationship.
Optionally, the obtaining unit 201 may include an address obtaining subunit, a sending subunit, and a receiving subunit, specifically:
an address acquisition subunit: the device address information of the relay device is used for acquiring the address information of the relay device connected to the computer network through the target network device based on the distribution network relation;
a sending subunit: the relay equipment is used for sending an information acquisition request to the relay equipment according to the equipment address information;
a receiving subunit: and the device connection information is used for receiving the device connection information returned by the relay device based on the information acquisition request.
For example, the device address information of the relay device connected to the local area network provided by the target network device may be queried through an instruction of the distribution network relationship, for example, executing an arp-a instruction or a ping instruction. The method comprises the steps that an information acquisition request is sent to the relay equipment through equipment address information, the information acquisition request can carry identity verification information, the relay equipment verifies the identity verification information sent by the network connection device based on a preset credit granting protocol and returns equipment connection information, and the network connection device receives equipment connection information returned by the equipment relay equipment.
If the authentication information sent by the network connection device is not verified by the relay equipment or the relay equipment cannot respond to the authentication request sent by the network connection device, the relay equipment does not trust the network connection device or the network connection device does not trust the relay equipment, the relay equipment does not send equipment connection information to the network connection device and does not respond to other requests sent by the network connection device, thereby preventing malicious attack of the network connection device, and the network connection device does not send other requests to the relay equipment, so that the information is prevented from being stolen by the relay equipment.
(2) The establishing unit 202: and the relay device is used for establishing a connection relation with the relay device through the device connection information.
And sending a connection request to the relay equipment through the equipment connection information, and if the equipment connection information is verified to be passed by the relay equipment, establishing a connection relation with the relay equipment.
Optionally, the establishing unit 202 may include a relationship establishing subunit and a request sending subunit, specifically:
a relationship establishing subunit: the device connection information is used for establishing a connection relation with the relay device if the distribution network state of the target network device meets a preset condition;
a request sending subunit: and the service request is sent to the target network equipment based on the distribution network relation if the distribution network state of the target network equipment does not meet the preset condition, so that the service request is sent to the target address through the target network equipment.
For example, if the distribution network status of the target network device is connection failure or connection success but poor signal, the connection may be established with the relay device through the device connection information, and the service request may be forwarded to the target network device through the relay device. Otherwise, the service request is directly sent to the target network equipment.
Optionally, the establishing unit 202 may include a determining subunit, a second establishing subunit, as a subunit, and a device acquiring unit, specifically:
determining a subunit: the method comprises the steps of determining a first relay device to be connected currently;
a second establishing subunit: the first relay device is used for establishing a first connection relation with the first relay device based on the device connection information of the first relay device;
as subunits: the first relay device is used for establishing a first connection relation with the first relay device;
device acquisition and unit: the method and the device for establishing the first connection relationship with the first relay device are used for acquiring the device connection information of the second relay device which has the association relationship with the first relay device if the first connection relationship with the first relay device fails to be established, returning and executing the device information based on the first relay device by taking the second relay device as the first relay device, and establishing the first connection relationship with the first relay device.
For example, the method may specifically be to acquire a device list including device connection information of a plurality of relay devices, and determine, according to an order of the device list, for example, a first relay device in the device list as a first relay device to be currently connected.
If the first connection relation is successfully established with the first relay device, the first connection relation is a path for sending the service request, that is, the service request is sent to the first relay device, and the first relay device sends the service request to the target network device.
If the first connection relation with the first relay device fails to be established, acquiring device connection information of a second relay device, where the second relay device may be a relay device that is in the order of the first relay device in the device list, establishing a connection relation with the second relay device based on the device connection information of the second relay device, if the connection relation is successful, sending a server request based on the connection relation, if the connection relation is unsuccessful, connecting with a relay device that is in the order of the second relay device, and so on until the connection is successful, or all the devices fail to establish a connection relation.
Optionally, the establishing unit 202 may include a display subunit and a response subunit, specifically:
a display subunit: the device selection interface is used for displaying device information of at least one relay device;
a response subunit: and the relay device is used for responding to the selection operation of the device information in the device selection interface, acquiring the connection information of the selected relay device and establishing a connection relation with the relay device based on the connection information.
For example, the method may specifically be displaying an equipment selection interface, where equipment information of at least one relay equipment may be displayed in the equipment selection interface, and a user may select based on the displayed equipment information, determine a selected relay equipment from the at least one relay equipment in response to a selection operation of the user, acquire equipment connection information of the relay equipment, and establish a connection relationship with the relay equipment based on the equipment connection information.
Transmission section 203: and the relay device is used for sending a service request for accessing the network resource to the relay device based on the connection relation so as to send the service request to the target network device through the relay device.
For example, specifically, if a connection relationship is established with the relay device in a bluetooth manner, a service request may be sent to the relay device by using a bluetooth transmission technology, where the service request may carry an address of a server corresponding to a network resource to be accessed, the relay device sends the service request to the target network device, and the target network device forwards the service request according to the address of the server carried in the server request, so as to send the service request to the server.
Optionally, the network connection device may further include a receiving unit, where the receiving unit is configured to: and receiving data returned by the relay equipment based on the service request, wherein the data is sent to the relay equipment based on the communication information for the network resource.
As can be seen from the above, in the network connection apparatus in the embodiment of the present application, the obtaining unit 201 obtains the device connection information of at least one relay device connected to the computer network through the target network device, the target network device is configured to send the received request to the target address to access the network resource, the establishing unit 202 establishes the connection relationship with the relay device through the device connection information, based on the connection relationship, and sends the service request for accessing the network resource to the relay device through the sending unit 203, so as to send the service request to the target network device through the relay device.
An embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, and as shown in fig. 3, a schematic structural diagram of the electronic device according to the embodiment of the present application is shown, specifically:
the electronic device may include components such as a processor 1001 of one or more processing cores, memory 1002 of one or more computer-readable storage media, a power source 1003, and an input unit 1004. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 3 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 1001 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby performing overall monitoring of the electronic device. Optionally, processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor, which mainly handles operating systems, user interfaces, computer programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 1002 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 access to the memory 1002.
The electronic device further includes a power source 1003 for supplying power to each component, and preferably, the power source 1003 may be logically connected to the processor 1001 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are implemented through the power management system. The power source 1003 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further include an input unit 1004, and the input unit 1004 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 1001 in the electronic device loads the executable file corresponding to the process of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 runs the computer programs stored in the memory 1002, so as to implement various functions as follows:
acquiring equipment connection information of at least one relay equipment connected to a computer network through target network equipment, wherein the target network equipment is used for sending the received request to a target address to access network resources;
establishing a connection relation with the relay device through the device connection information based on the connection relation;
and sending a service request for accessing the network resource to the relay device so as to send the service request to the target network device through the relay device.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, in the electronic device according to the embodiment of the present application, the device connection information of at least one relay device connected to the computer network through the target network device is obtained, the target network device is configured to send the received request to the target address to access the network resource, and the connection relationship between the device connection information and the relay device is established based on the connection relationship, and the service request for accessing the network resource is sent to the relay device, so that the service request is sent to the target network device through the relay device.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application provides a computer-readable storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the network connection methods provided by the embodiments of the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the computer-readable storage medium can execute the steps in any network connection method provided in the embodiments of the present application, beneficial effects that can be achieved by any network connection method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The network connection method, the network connection device, the electronic device, and the computer-readable storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A network connection method, comprising:
acquiring equipment connection information of at least one relay equipment connected to a computer network through target network equipment, wherein the target network equipment is used for sending a received request to a target address to access network resources;
establishing a connection relation with the relay equipment through the equipment connection information;
and sending a service request for accessing network resources to the relay equipment based on the connection relation so as to send the service request to the target network equipment through the relay equipment.
2. The method of claim 1, wherein obtaining device connection information for a relay device connected to a computer network via a target network device comprises:
acquiring distribution network information aiming at the target network equipment;
establishing a distribution network relation based on the distribution network information and the target network equipment;
and acquiring equipment connection information of the relay equipment connected to the computer network through the target network equipment based on the distribution network relation.
3. The method of claim 2, wherein obtaining device connection information of a relay device connected to a computer network through the target network device based on the distribution network relationship comprises:
acquiring equipment address information of relay equipment connected to a computer network through the target network equipment based on the distribution network relation;
sending an information acquisition request to the relay equipment according to the equipment address information;
and receiving the equipment connection information returned by the relay equipment based on the information acquisition request.
4. The method according to claim 2, wherein the establishing the connection relationship with the relay device through the device connection information includes:
if the distribution network state of the target network equipment meets a preset condition, establishing a connection relation with the relay equipment through the equipment connection information;
and if the distribution network state of the target network equipment does not meet the preset condition, sending the service request to the target network equipment based on the distribution network relation so as to send the service request to a target address through the target network equipment.
5. The method according to claim 1, wherein the establishing the connection relationship with the relay device through the device connection information includes:
determining a first relay device to be connected currently;
establishing a first connection relationship with the first relay device based on the device connection information of the first relay device;
if the first connection relation with the first relay equipment is successfully established, taking the first connection relation as the connection relation;
if the first connection relation between the first relay equipment and the second relay equipment fails to be established, acquiring equipment connection information of second relay equipment which is in association relation with the first relay equipment, taking the second relay equipment as the first relay equipment, returning and executing equipment information based on the first relay equipment, and establishing the first connection relation between the second relay equipment and the first relay equipment.
6. The method according to claim 2, wherein the establishing the connection relationship with the relay device through the device connection information includes:
displaying an equipment selection interface, wherein the equipment selection interface displays equipment information of at least one piece of relay equipment;
and responding to the selection operation of the equipment information in the equipment selection interface, acquiring the connection information of the selected relay equipment, and establishing a connection relation with the relay equipment based on the connection information.
7. The method according to any one of claims 1 to 6, wherein the service request carries communication information of the relay device, and after the service request for accessing a network resource is sent to the relay device based on the connection relationship, the method further comprises:
and receiving data returned by the relay equipment based on the service request, wherein the data is sent to the relay equipment by the network resource based on the communication information.
8. A network connection device, characterized in that
An acquisition unit configured to acquire device connection information of a relay device connected to a computer network through a target network device, the target network device being configured to send a received request to a target address to access a network resource;
the establishing unit is used for establishing a connection relation with the relay equipment through the equipment connection information;
a sending unit, configured to send, to the relay device, a service request for accessing a network resource based on the connection relationship, so as to send, through the relay device, the service request to the target network device.
9. An electronic device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the network connection method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program which is loaded by a processor to perform the network connection method of any one of claims 1 to 7.
CN202110981887.7A 2021-08-25 2021-08-25 Network connection method, device, electronic equipment and computer readable storage medium Pending CN113746909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110981887.7A CN113746909A (en) 2021-08-25 2021-08-25 Network connection method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110981887.7A CN113746909A (en) 2021-08-25 2021-08-25 Network connection method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113746909A true CN113746909A (en) 2021-12-03

Family

ID=78732842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110981887.7A Pending CN113746909A (en) 2021-08-25 2021-08-25 Network connection method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113746909A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222319A (en) * 2021-12-08 2022-03-22 天翼物联科技有限公司 Data transmission method and device for terminal of Internet of things and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120201146A1 (en) * 2011-02-04 2012-08-09 Elster Solutions, Llc Mesh infrastructure utilizing priority repeaters and multiple transceivers
CN106993278A (en) * 2017-04-07 2017-07-28 青檬微智科技(深圳)有限公司 A kind of method, relevant device and system for automatically controlling smart machine access
CN107135552A (en) * 2017-07-06 2017-09-05 深圳天珑无线科技有限公司 Method for connecting network, mobile terminal and computer-readable recording medium
CN109391529A (en) * 2018-11-30 2019-02-26 广东美的制冷设备有限公司 Household electrical appliance and its distribution method and apparatus
CN110809329A (en) * 2019-11-11 2020-02-18 龙尚科技(上海)有限公司 Network communication method, device, computer equipment and storage medium
CN111343695A (en) * 2020-02-27 2020-06-26 维沃移动通信有限公司 Network connection method, first electronic device, and medium
CN111343688A (en) * 2020-03-04 2020-06-26 珠海格力电器股份有限公司 Relay communication method and device for wireless network, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120201146A1 (en) * 2011-02-04 2012-08-09 Elster Solutions, Llc Mesh infrastructure utilizing priority repeaters and multiple transceivers
CN106993278A (en) * 2017-04-07 2017-07-28 青檬微智科技(深圳)有限公司 A kind of method, relevant device and system for automatically controlling smart machine access
CN107135552A (en) * 2017-07-06 2017-09-05 深圳天珑无线科技有限公司 Method for connecting network, mobile terminal and computer-readable recording medium
CN109391529A (en) * 2018-11-30 2019-02-26 广东美的制冷设备有限公司 Household electrical appliance and its distribution method and apparatus
CN110809329A (en) * 2019-11-11 2020-02-18 龙尚科技(上海)有限公司 Network communication method, device, computer equipment and storage medium
CN111343695A (en) * 2020-02-27 2020-06-26 维沃移动通信有限公司 Network connection method, first electronic device, and medium
CN111343688A (en) * 2020-03-04 2020-06-26 珠海格力电器股份有限公司 Relay communication method and device for wireless network, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222319A (en) * 2021-12-08 2022-03-22 天翼物联科技有限公司 Data transmission method and device for terminal of Internet of things and storage medium
CN114222319B (en) * 2021-12-08 2024-03-26 天翼物联科技有限公司 Data transmission method, device and storage medium of internet of things terminal

Similar Documents

Publication Publication Date Title
CN111447185B (en) Push information processing method and related equipment
US8826402B2 (en) Management of an instant message session
US10205800B2 (en) Application takeover method and system, mobile terminal, and server
CN113746633B (en) Internet of things equipment binding method, device, system, cloud server and storage medium
CN108156240B (en) Method and system for accessing industrial adapter to server
US20150373026A1 (en) Permission management method, device and system for cloud platform service
CN113347242B (en) Cross-device resource access method and device, storage medium and electronic device
CN111194035B (en) Network connection method, device and storage medium
WO2021223454A1 (en) Screen projection method and system
CN111049946B (en) Portal authentication method, portal authentication system, electronic equipment and storage medium
CN107862091B (en) Control method and device for realizing webpage access
US8656028B2 (en) System, method, and program for communication connection by polling
CN110197075A (en) Resource access method, calculates equipment and storage medium at device
CN106656985B (en) Backup account login method, device and system
CN113489636A (en) Location-based access control for human dialog entities
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN111241523B (en) Authentication processing method, device, equipment and storage medium
CN110138714A (en) Method, apparatus, electronic equipment and the storage medium of access process
CN110661673B (en) Heartbeat detection method and device
CN106992893A (en) The management method and device of router
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
US11265807B2 (en) Method for network sharing on a terminal, apparatus, air conditioner and storage medium
CN108632355B (en) Routing method for household appliance network, control terminal, readable storage medium and equipment
KR20220006605A (en) Cloud communication method and device, user device, network device
CN114630323A (en) Voice call service processing method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination