An electronic device networking method, an electronic device, a mobile terminal and a readable storage medium

By combining mobile terminal proxy services and electronic device proxy clients, and utilizing WiFi chips and globally transparent proxy technology, the problem of internet access for electronic devices in environments lacking wireless networks has been solved, achieving wider coverage, more stable connections, and a better user experience.

CN116600369BActive Publication Date: 2026-02-03YICI NETCOM (HANGZHOU) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310639093.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2026-02-03
Estimated Expiration
2043-05-31

AI Technical Summary

Technical Problem

Existing electronic devices struggle to access the internet outdoors in environments without wireless networks. Furthermore, when connecting via mobile hotspots, the battery drains quickly, coverage is limited, and the connection is unstable, resulting in a poor user experience.

Method used

By using a proxy server on a mobile terminal and a proxy client on an electronic device, wireless access to the access point is achieved using the WiFi chip of the electronic device. Combined with global transparent proxy technology, the internet can be accessed through the cellular network, eliminating the need for a SIM card module and reducing hardware complexity and costs.

Benefits of technology

It achieves wider signal coverage, more stable connection, reduces mobile phone power consumption, extends device network connection time, simplifies the configuration process, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116600369B_ABST
    Figure CN116600369B_ABST
Patent Text Reader

Abstract

The application discloses an electronic device networking method, an electronic device, a mobile terminal and a readable storage medium, and relates to the technical field of Internet, wherein the electronic device is connected to the Internet by the mobile terminal through the electronic device networking method, and the method comprises the following steps: the mobile terminal accesses a wireless access point of the electronic device and runs a proxy server of the mobile terminal; the mobile terminal sends a network configuration request to a gateway API service of the electronic device; after receiving the network configuration request, the electronic device runs a proxy client of the electronic device; the electronic device starts a global transparent proxy, the proxy client of the electronic device communicates with the proxy server of the mobile terminal, and the mobile terminal accesses the Internet through a cellular network. The application can assist the electronic device to access the Internet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, specifically to a method for networking electronic devices, an electronic device, a mobile terminal, and a readable storage medium. Background Technology

[0002] With the development of network technology, more and more electronic devices can connect to the internet. For example, private cloud devices can connect to the internet for remote sharing; AR glasses can connect to the internet to access more internet resources and services. These electronic devices connect to the network in two main ways: one is through cellular networks, and the other is through wireless networks.

[0003] However, not all internet-enabled electronic devices have SIM cards and can access the internet via cellular networks; they more commonly access the internet via Wi-Fi. But in many scenarios, such as outdoor activities or outings, there is no Wi-Fi network available around these devices. Nevertheless, these electronic devices still need internet access. Summary of the Invention

[0004] This invention aims to address, to a certain extent, one of the technical problems in related technologies. To this end, this invention provides a device networking method to assist electronic devices in accessing the Internet.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] A method for connecting an electronic device to the internet, wherein the electronic device is connected to the internet by a mobile terminal via the method, the electronic device has a wireless access point, the mobile terminal has a cellular network, the mobile terminal has a proxy server, and the electronic device has a proxy client. The method for connecting the electronic device to the internet includes the following steps:

[0007] The mobile terminal accesses the wireless access point of the electronic device.

[0008] The mobile terminal runs the proxy service of the proxy server;

[0009] The mobile terminal sends the network configuration request to the gateway API service of the electronic device;

[0010] After receiving the network configuration request, the gateway API service of the electronic device runs the proxy service of the proxy client.

[0011] The electronic device enables a globally transparent proxy, the proxy client communicates with the proxy server, and the mobile client accesses the Internet via a cellular network.

[0012] Optionally, the communication between the proxy client and the proxy server includes the following steps:

[0013] All outgoing traffic of the electronic device is processed in kernel mode.

[0014] The outgoing traffic processed in kernel mode is redirected to the proxy client;

[0015] The proxy client obtains the actual target address of the network packet through the API interface provided by the mobile terminal's operating system;

[0016] The target address of the network message is actually accessed and then sent to the proxy server after being encapsulated by the proxy protocol.

[0017] Optionally, the proxy protocol is a SOCKS proxy protocol.

[0018] Optionally, enabling the globally transparent proxy in the electronic device includes the following steps:

[0019] Electronic devices create policy routes and assign routing table entries; identify and intercept traffic that needs to be proxied; proxy clients process the intercepted traffic and perform proxying.

[0020] Optionally, when the mobile terminal accesses the wireless access point of the electronic device, the wireless access point of the electronic device is prohibited from sending default routes to the mobile terminal.

[0021] Optionally, the network configuration request includes the port and IP address of the proxy server.

[0022] Optionally, when the proxy client of the electronic device is running, its address and port are the port and IP address of the received proxy server.

[0023] The technical solution provided by this invention eliminates the need for a SIM card because the electronic device does not require internet access via a cellular network. This eliminates the need for a SIM card, reducing chip complexity and saving costs, while also preventing users from incurring duplicate data plan charges. This invention utilizes the electronic device's own WiFi chip to establish a wireless access point, reducing power consumption when the phone acts as a hotspot, extending phone usage time, and consequently, extending the electronic device's internet connection time. The WiFi chip provides wider signal coverage, allowing more STA terminals to access the device, resulting in better compatibility and stability. Furthermore, the electronic device automatically connects to the internet upon launching the mobile app, eliminating the need to re-enter the WiFi SSID and password, avoiding cumbersome WiFi configuration, and improving the user experience.

[0024] Furthermore, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the electronic device networking method described in any of the preceding claims.

[0025] Meanwhile, the present invention also provides a mobile terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the electronic device networking method described in any of the preceding claims.

[0026] The beneficial effects of the electronic device and mobile terminal provided by this invention are similar to the beneficial effects of the aforementioned electronic device networking method, and will not be repeated here.

[0027] In addition, a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the device networking method described in any of the preceding claims.

[0028] These features and advantages of the present invention will be disclosed in detail in the following specific embodiments and accompanying drawings. The preferred embodiments or means of the present invention will be shown in detail in conjunction with the accompanying drawings, but are not intended to limit the technical solutions of the present invention. In addition, each of these features, elements and components appearing in the following text and drawings is a plurality of, and different symbols or numbers are used for convenience of representation, but all represent parts with the same or similar construction or function. Attached Figure Description

[0029] The present invention will be further described below with reference to the accompanying drawings:

[0030] Figure 1 This is a schematic diagram of an embodiment of the present invention. Detailed Implementation

[0031] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described are intended to explain the present invention and should not be construed as limiting the invention.

[0032] The terms "an embodiment," "example," or "trademark" used in this specification refer to a particular feature, structure, or characteristic described in connection with the embodiment itself that may be included in at least one embodiment disclosed in this patent. The phrase "in an embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment.

[0033] Example:

[0034] This embodiment provides a method for networking electronic devices. In this embodiment, "electronic devices" broadly refers to devices such as private cloud devices, virtual reality wearable devices, drone devices, and digital camera devices. These electronic devices can all provide wireless access points, but they all inevitably possess cellular network functionality. Furthermore, due to limitations in their own usage conditions, although these electronic devices provide wireless access points, they cannot directly access the internet via Wi-Fi and require the assistance of a mobile terminal. In this embodiment, "mobile terminal" broadly refers to mobile phones, tablets, PDAs, and other portable terminal devices with cellular network capabilities. Existing technologies include methods where devices have built-in SIM cards to access the internet via 4G / 5G data traffic, but this method requires an additional SIM card module, increasing the complexity and cost of the electronic device's hardware design. It also incurs data traffic fees, requiring additional payment and increasing user costs. Moreover, on some screenless devices, network setup and interaction are difficult, making them inconvenient for users. However, existing technologies that use mobile phones as hotspots to access the internet via mobile data have the following drawbacks: The phone's battery drains too quickly when used as a hotspot, easily causing it to overheat, which shortens both phone usage time and the time electronic devices can access the internet; the coverage area of ​​a mobile hotspot is small, severely limiting the distance between the hotspot and the electronic device; and the hotspot is unstable, greatly affected by the phone's environment, and often disconnects when there is no data available to save power, forcing users to reconnect and manually enter the Wi-Fi password when using their electronic devices, thus degrading the user experience.

[0035] Therefore, this embodiment provides a network connection method for electronic devices with a technical concept different from existing technologies. It selects a completely different technical route from existing technologies, but achieves or even surpasses the technical effects achievable by existing technologies. In this embodiment, the mobile terminal has a proxy server, and the electronic device has a proxy client. The electronic device accesses the Internet through the network connection method provided in this embodiment, specifically including the following steps:

[0036] Mobile terminals connect to the wireless access point of electronic devices. During connection, the wireless access point of the electronic device is prohibited from sending default routes to the mobile terminal, thus ensuring that the mobile terminal can still access the internet via the cellular network. The electronic device uses a WiFi chip to achieve wireless access to the access point, resulting in wider signal coverage, allowing more STA terminals that need to access the electronic device to connect, offering better compatibility and stability. Simultaneously, it reduces power consumption when the phone is used as a hotspot, extending the phone's usage time and consequently extending the electronic device's network connectivity time.

[0037] The mobile terminal runs a proxy service on the proxy server, acting as a wireless access point for the STA device to connect to the electronic device; the mobile terminal sends a network configuration request to the gateway API service of the electronic device. The network configuration request includes the port and IP address of the mobile terminal's proxy client.

[0038] After receiving a network configuration request, the gateway API service of the electronic device runs the agent client of the electronic device. Its address and port are the same as the port and IP of the agent server received.

[0039] Enabling a globally transparent proxy on electronic devices involves the following sub-steps: creating policy routes and assigning routing table entries; identifying and intercepting traffic that needs to be proxied. In Linux, traffic can be intercepted using iptables+redirect or iptables+tproxy. Tproxy is particularly effective at intercepting UDP traffic. Finally, the proxy client processes the intercepted traffic and performs the proxying. The proxy client needs to support the following functionalities:

[0040] 1) Binding a socket to a non-local address: This can be done by setting IP_TRANSPARENT when creating the socket and then binding it to the 0.0.0.0 address.

[0041] 2) Obtain the original destination address: Call setsockopt() to set the socket IP_RECVORIGDSTADDR

[0042] 3) The raw address of UDP can be obtained using recvmsg() (msg_type is IP_ORIGDSTADDR).

[0043] 4) TCP can obtain the original destination address through getsockopt(SO_ORIGINAL_DST), getsockopt(IP_ORIGDSTADDR), or getsockname().

[0044] After obtaining the original destination address, proxy communication is established with the proxy server to access the original destination address. The proxy protocol used here includes, but is not limited to, SOCKS proxy.

[0045] like Figure 1 As shown, Figure 1 In this context, "Service Process N" represents a service within the electronic device that requires access to the internet. After enabling global proxy, the proxy client on the electronic device and the proxy server on the mobile terminal communicate through the following sub-steps:

[0046] Kernel-mode processing of all outgoing traffic from electronic devices;

[0047] The outgoing traffic processed in kernel mode is redirected to the proxy client of the electronic device;

[0048] The proxy client of the electronic device obtains the actual target address of the network packet through the API interface provided by the mobile terminal's operating system;

[0049] The target address of the network packet is encapsulated by a proxy protocol and sent to the proxy server of the mobile terminal. The proxy protocol includes, but is not limited to, the SOCKS proxy protocol. This protocol is also the preferred proxy protocol in this embodiment.

[0050] Finally, the mobile client accesses the internet via cellular network, thus enabling the electronic device to access the internet. Since the electronic device does not need to access the internet via cellular network, a SIM card is unnecessary. This module can be omitted from the electronic device, reducing chip complexity and saving costs, while also avoiding duplicate data plan charges for users. Furthermore, when the mobile app is launched, the electronic device automatically connects to the internet, eliminating the need to re-enter the WiFi SSID and password, avoiding cumbersome WiFi configuration, and improving the user experience.

[0051] This embodiment also provides a mobile terminal, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the electronic device networking method of this embodiment.

[0052] Meanwhile, this embodiment also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it causes the processor to perform the steps of the above-described electronic device networking method. The steps of the electronic device networking method here can be steps from the memory analysis methods of the various embodiments described above.

[0053] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. Accordingly, the computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can implement the methods of any of the above embodiments. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0054] The above are merely specific embodiments of this invention, but the scope of protection of this invention is not limited thereto. Those skilled in the art should understand that this invention includes, but is not limited to, the contents described in the accompanying drawings and the specific embodiments above. Any modifications that do not depart from the functional and structural principles of this invention will be included within the scope of the claims.

Claims

1. A method for networking an electronic device, wherein the electronic device is connected to the Internet via a mobile terminal through the electronic device networking method, the electronic device has a wireless access point, the mobile terminal has a cellular network, the mobile terminal has a proxy server, and the electronic device has a proxy client, characterized in that, The method for connecting electronic devices to the network includes the following steps: The electronic device does not have a cellular network, and the mobile terminal serves as a wireless access point for the STA device to access the electronic device. The mobile terminal runs the proxy service of the proxy server; The mobile terminal sends the network configuration request to the gateway API service of the electronic device; After receiving the network configuration request, the gateway API service of the electronic device runs the proxy service of the proxy client. The electronic device enables a globally transparent proxy, the proxy client communicates with the proxy server, and the mobile terminal accesses the Internet via a cellular network. The communication between the proxy client and the proxy server includes the following steps: All outgoing traffic of the electronic device is processed in kernel mode. The outgoing traffic processed in kernel mode is redirected to the proxy client; The proxy client obtains the actual target address of the network packet through the API interface provided by the mobile terminal's operating system; The target address of the network message is actually accessed and then sent to the proxy server after being encapsulated by the proxy protocol.

2. The electronic device networking method according to claim 1, characterized in that, The proxy protocol is the socks proxy protocol.

3. The electronic device networking method according to claim 1, characterized in that, The electronic device enables the globally transparent proxy by the following steps: Electronic devices create policy routes and assign routing table entries; identify and intercept traffic that needs to be proxied; proxy clients process the intercepted traffic and perform proxying.

4. The electronic device networking method according to any one of claims 1 to 3, characterized in that, When the mobile terminal accesses the wireless access point of the electronic device, the wireless access point of the electronic device is prohibited from sending a default route to the mobile terminal.

5. The electronic device networking method according to any one of claims 1 to 3, characterized in that, The network configuration request includes the port and IP address of the proxy server.

6. The electronic device networking method according to claim 5, characterized in that, When the proxy client is running, its address and port are the port and IP address of the proxy server it receives.

7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the electronic device networking method according to any one of claims 1 to 6.

8. A mobile terminal, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the electronic device networking method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the electronic device networking method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Protocol for sessions traversal across firewall securely (SOKS) transparent proxy method and SOKS transparent proxy device

    CN105391813A

  • Signal processing method and terminal

    CN112291763A