Electronic device and network sharing method

By assigning different IP addresses to external devices than those connected to the router of the main control unit and performing network address translation, the problem of network fragmentation when switching operating systems on large-screen electronic devices is solved, realizing network sharing without reconfiguring the network and improving the user experience.

CN122293503APending Publication Date: 2026-06-26BOE TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BOE TECHNOLOGY GROUP CO LTD
Filing Date
2024-12-24
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

When switching operating systems, large-screen electronic devices cannot automatically share the network connected to the main control device with external devices, requiring users to reconfigure the network of external devices, which is cumbersome and results in a poor user experience.

Method used

By assigning external devices different IP addresses from the router connected to the main control unit, the main control unit's software routing function is used to achieve network address translation, allowing external devices to access the target network connected to the main control unit without reconfiguring the network.

Benefits of technology

It enables network sharing between the main control unit and external devices, simplifies the network configuration process, improves the user experience, and eliminates the need for users to manually configure the network of external devices when switching operating systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122293503A_ABST
    Figure CN122293503A_ABST
Patent Text Reader

Abstract

This disclosure provides an electronic device and a network sharing method for enabling network sharing between a main control unit and external devices, providing automated network configuration functions, and effectively improving the user experience. The electronic device includes a main control unit configured to: obtain a first IP address assigned by a first router, for the main control unit to connect to a target network through the first router; and assign a second IP address to an external device, for the external device to access the target network connected to the main control unit through the first router using the second IP address; wherein the second IP address is in a different network segment than the first IP address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of human-computer interaction technology, and in particular to an electronic device and a network sharing method. Background Technology

[0002] Currently, large-screen electronic devices typically consist of a main control device and an external device. By switching signal sources, users can use the operating systems of the main control device and the external device respectively. However, in existing technology, once the main control device has been configured and a network connection established, switching from the main control device to the external device's operating system renders the network connected to the main control device unusable. This necessitates reconfiguring the external device's network, resulting in fragmented network functionality, cumbersome operation, and a poor user experience. Summary of the Invention

[0003] This disclosure provides an electronic device and a network sharing method for enabling network sharing between a main control unit and external devices, providing automated network configuration functions, and effectively improving the user experience.

[0004] In a first aspect, embodiments of this disclosure provide an electronic device, which includes a main control unit configured to perform:

[0005] Obtain the first IP address assigned by the first router, which is used by the main control unit to connect to the target network through the first router;

[0006] A second IP address is assigned to the external device, which is used by the external device to access the target network connected to the main control unit through the first router; the second IP address is on a different network segment than the first IP address.

[0007] Secondly, an electronic device is provided in this disclosure embodiment, the electronic device including a main control unit, the main control unit being configured to perform:

[0008] Assign a second IP address to the external device;

[0009] Receive message data sent by an external device, wherein the message data carries the second IP address;

[0010] The second IP address is converted into a target address, which is used by external devices to send packet data to a target network, wherein the target network includes the target network connected to the main control unit.

[0011] Thirdly, an electronic device is provided in the embodiments of this disclosure, wherein the electronic device includes an external unit configured to perform:

[0012] The external unit connects to the target network through a third router and obtains the sixth IP address assigned to the external unit by the third router;

[0013] The external unit assigns a seventh IP address to the main control device, which is used by the main control device to access the target network connected to the external unit through the third router; the network segment of the seventh IP address is different from that of the sixth IP address.

[0014] Fourthly, embodiments of this disclosure provide a network sharing method, the method comprising:

[0015] The main control unit obtains the first IP address assigned by the first router, which is used by the main control unit to connect to the target network through the first router;

[0016] The main control unit assigns a second IP address to the external device, which is used by the external device to access the target network connected to the main control unit through the first router; the second IP address is on a different network segment than the first IP address.

[0017] Fifthly, embodiments of this disclosure provide a network sharing method, the method comprising:

[0018] The main control unit assigns a second IP address to the external device;

[0019] The main control unit receives message data sent by an external device, the message data carrying the second IP address;

[0020] The main control unit converts the second IP address into a target address, which is used by external devices to send packet data to a target network. The target network includes the target network to which the main control unit is connected.

[0021] Sixthly, embodiments of this disclosure provide a network sharing method, the method comprising:

[0022] The external unit connects to the target network through a third router and obtains the sixth IP address assigned to the external unit by the third router;

[0023] The external unit assigns a seventh IP address to the main control device, which is used by the main control device to access the target network connected to the external unit through the third router; the network segment of the seventh IP address is different from that of the sixth IP address.

[0024] In a seventh aspect, embodiments of this disclosure also provide a network sharing device, the device comprising:

[0025] The address allocation module is used to obtain the first IP address allocated by the first router, which is used by the main control unit to connect to the target network through the first router.

[0026] The network sharing module is used to assign a second IP address to external devices, which are then used by the external devices to access the target network connected to the main control unit through the first router using the second IP address; the second IP address is on a different network segment than the first IP address.

[0027] Eighthly, embodiments of this disclosure also provide a network sharing device, the device comprising:

[0028] The address allocation module is used to allocate a second IP address to external devices;

[0029] The data transmission module is used to receive message data sent by an external device, wherein the message data carries the second IP address;

[0030] The address translation module is used to translate the second IP address into a target address, which is used by an external device to send packet data to a target network using the target address. The target network includes the target network connected to the main control unit.

[0031] In a ninth aspect, embodiments of this disclosure also provide a non-transient computer storage medium having a computer program stored thereon, which, when executed by a processor, is used to implement the steps of the method described in any one of the fourth or fifth aspects above.

[0032] In a tenth aspect, this disclosure provides a computer program product comprising: computer program code that, when run on a computer, causes the computer to perform the method described in any one of the fourth or fifth aspects.

[0033] These or other aspects of this disclosure will become more apparent in the following description of embodiments. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0036] Figure 2 A hardware design schematic diagram of an Ethernet shared network scheme provided in an embodiment of this disclosure;

[0037] Figures 3A-3B This is a schematic diagram of message transmission in an Ethernet sharing scenario provided by an embodiment of the present disclosure;

[0038] Figure 4 A schematic diagram of the interface of an Ethernet sharing software provided in an embodiment of this disclosure;

[0039] Figure 5 A network connection flowchart for Ethernet sharing provided in this disclosure embodiment;

[0040] Figure 6 A hardware design schematic diagram of a USB sharing network solution provided in an embodiment of this disclosure;

[0041] Figures 7A-7B This is a schematic diagram illustrating message transmission in a USB sharing scenario provided by an embodiment of the present disclosure;

[0042] Figure 8 A flowchart illustrating a USB-shared network connection provided in this embodiment of the disclosure;

[0043] Figures 9A-9B A schematic diagram of the interface of a USB sharing software provided in an embodiment of this disclosure;

[0044] Figure 10 A hardware design schematic diagram of a USB and Ethernet shared network solution provided in an embodiment of this disclosure;

[0045] Figure 11 A hardware schematic diagram of a multi-device sharing network provided in an embodiment of this disclosure;

[0046] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0047] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0048] Figure 14 A flowchart illustrating the implementation of a network sharing method provided in this disclosure embodiment;

[0049] Figure 15 A flowchart illustrating the implementation of a network sharing method provided in this disclosure embodiment;

[0050] Figure 16 A flowchart illustrating the implementation of a network sharing method provided in this disclosure embodiment;

[0051] Figure 17 A schematic diagram of a network sharing device provided in an embodiment of this disclosure;

[0052] Figure 18 This is a schematic diagram of a network sharing device provided in an embodiment of the present disclosure. Detailed Implementation

[0053] To make the objectives, technical solutions, and advantages of this disclosure clearer, the disclosure will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0054] In this disclosure, the term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0055] The application scenarios described in this disclosure are for the purpose of more clearly illustrating the technical solutions of this disclosure and do not constitute a limitation on the technical solutions provided in this disclosure. Those skilled in the art will understand that with the emergence of new application scenarios, the technical solutions provided in this disclosure are also applicable to similar technical problems. In the description of this disclosure, unless otherwise stated, "multiple" means two or more.

[0056] Before introducing the network sharing method provided in the embodiments of this disclosure, for ease of understanding, the technical background of the embodiments of this disclosure will be described in detail below.

[0057] Currently, large-screen electronic devices typically consist of a main control device and an external device. By switching signal sources, users can use the operating systems of the main control device and the external device respectively. However, in existing technology, once the main control device has been configured and a network connection established, switching from the main control device to the external device's operating system renders the network connected to the main control device unusable. This necessitates reconfiguring the external device's network, resulting in fragmented network functionality, cumbersome operation, and a poor user experience.

[0058] To address the aforementioned technical problems, this application provides an electronic device and a network sharing method. The core idea is to assign IP addresses to external devices, enabling them to access the router connected to the main control unit. This allows the external devices to access the target network through the router connected to the main control unit, sharing the target network connected to the main control unit without requiring network configuration on the external devices. This solves the problem of needing to reconfigure the network on the external devices, resulting in fragmented network functionality. Furthermore, the network sharing and connection establishment between the external devices and the router are seamless for the user. The external devices can share the target network connected to the main control unit without the user's awareness, effectively improving the user experience.

[0059] The electronic device provided in this embodiment can be a display device or other types of electronic devices. The electronic device can be a large-sized (generally 50 inches or more) intelligent interactive electronic device with touch handwriting function. Writing programs such as electronic whiteboards are installed on the electronic device, and users can write on the electronic device using their fingers, active pens, or passive pens. The electronic device can include display modules such as liquid crystal displays (LCDs), organic light-emitting semiconductors (OLEDs), and electronic inks, which can display the handwriting in real time.

[0060] The electronic device provided in this disclosure includes a main control unit. Optionally, in this embodiment, the main control unit and the external device are physically connected via a USB (Universal Serial Bus) interface or other physical interfaces. These physical interfaces include, but are not limited to, USB interfaces, video interfaces, audio interfaces, and other physical interfaces.

[0061] In this embodiment, the main control unit runs a main control system, and the external device runs an external system. When displaying on the electronic device, the corresponding display screens of the main control system and the external system are displayed respectively by switching signal sources. In this embodiment, the main control system serves as the main display content of the electronic device, and the external system has programmability and can run third-party applications. Optionally, the external system includes, but is not limited to, the OPS (Open Pluggable Specification) system or other programsmable systems. The OPS system is an open programmable system that provides a unified application programming interface (API) to enable the system to be programmable and run third-party applications. This allows users to develop and deploy their own network management policies as needed, enabling rapid expansion and automatic deployment of business functions. When applied in network device management scenarios, the OPS system can provide multi-layered device network service openness, meet the diverse and differentiated needs of users, help quickly realize business function expansion, automatic deployment, and intelligent device management, and reduce operation and maintenance costs and operational complexity.

[0062] Optionally, the main control unit in this embodiment includes, but is not limited to, a SoC (System on Chip). The electronic device in this embodiment includes, but is not limited to, the main control unit, and any one or more of the following components: a second network card, a physical switch, a LAN interface, a first network card, a wireless communication module, an OTG (On-The-Go) interface, a USB interface, etc.

[0063] Optionally, the first network interface card (NIC) may include, but is not limited to, a USB NIC, and the second NIC may include, but is not limited to, a physical NIC. The physical switch (PHY switch) refers to a switch with physical layer functionality. A PHY switch typically refers to a device that performs data transmission and reception at the physical layer, primarily involving the physical layer in the OSI model. The PHY switch communicates with the MAC controller through physical layer interfaces (such as MII, RMII, GMII, RGMII, etc.) to achieve data transmission and reception. The main control unit expands its interfaces through the physical switch. The OTG interface is a USB interface technology that allows devices to connect and communicate directly with other USB devices without a host computer. This technology breaks down the traditional master-slave boundaries of USB devices, enabling mobile devices to act as hosts, directly transmitting data and powering external devices such as USB flash drives, keyboards, and mice. LAN interfaces include RJ45 interfaces, whose main function is to connect network devices and enable data transmission and communication. Through the RJ45 interface, network devices can transfer data to each other, enabling file sharing, network communication, and other functions. The RJ45 interface can easily connect laptops or other devices to a wired network, providing a stable network connection. The RJ45 interface can connect network devices such as computers, routers, and switches to form a complete network architecture, suitable for scenarios that require simultaneous connection of multiple network devices, such as business office environments.

[0064] Optionally, the external devices in this embodiment include, but are not limited to, USB interfaces, wireless communication modules, etc.

[0065] Optional wireless communication modules include, but are not limited to, Wi-Fi modules, Bluetooth modules, and ZigBee modules. Wi-Fi modules enable wireless network connections between devices, supporting data pass-through and intelligent control. They can be further categorized into general-purpose Wi-Fi modules, router-solution Wi-Fi modules, and embedded Wi-Fi modules. Bluetooth modules support short-range communication between devices, offering advantages such as low power consumption and low cost, making them suitable for wireless connections between mobile devices and peripherals. ZigBee modules are a short-range wireless communication protocol characterized by low power consumption, low cost, and low data rate, suitable for network transmission over short distances.

[0066] Reference Figure 1 The electronic device in this embodiment will be described below. The electronic device in this embodiment includes a main control unit 100, which is configured to perform the following steps:

[0067] Step 1) Obtain the first IP address assigned by the first router, which is used by the main control unit to connect to the target network through the first router;

[0068] In practice, the main control unit connects to the target network through the first router and obtains the first IP address assigned to the main control unit by the first router. The wireless communication module (such as the Wi-Fi module) of the main control unit establishes a connection with the first router, and the main control unit connects to the target network through the first router. At this time, the network settings of the main control unit are completed, and the first router assigns the first IP address to the main control unit. Based on the first IP address, the main control unit can normally access the network and transmit network data.

[0069] Optionally, the target network in this embodiment includes, but is not limited to, public networks, private networks, local area networks (LANs), wide area networks (WANs), and metropolitan area networks (MANs). Among these, a public network refers to a communication network built by a network service provider for public use, whose communication lines are shared by all users; a private network is typically built by a specific department or enterprise for internal use only, and external access is not permitted; a LAN refers to a network within a limited geographical area; a WAN is a network with a wider coverage area, spanning multiple geographical locations; and a MAN is a network type between a LAN and a WAN, typically covering a city or its surrounding area.

[0070] Step 2) Assign a second IP address to the external device, so that the external device can use the second IP address to access the target network connected to the main control unit through the first router; the second IP address is on a different network segment than the first IP address;

[0071] Optionally, the second IP address has the same type as the first IP address.

[0072] In practice, the type of the first IP address of the master control unit is determined according to the address allocation policy of the first router to which the master control unit is connected. When the master control unit allocates a second IP address to an external device, it allocates the second IP address according to the same address allocation policy as the first IP address, ensuring that the types of the first IP address and the second IP address are the same. At the same time, in order to ensure that the master control unit and the external device are in different subnets, the master control unit ensures that the network segments of the second IP address and the second IP address are different when allocating the second IP address. The types of IP addresses include, but are not limited to: Class A addresses, ranging from 0.0.0.0 to 127.255.255.255, where the first segment is the network address and the remaining three segments are the local computer's address; Class B addresses, ranging from 128.0.0.0 to 191.255.255.255, where the first two segments are the network address and the remaining two segments are the local computer's address; Class C addresses, ranging from 192.0.0.0 to 223.255.255.255, where the first three segments are the network address and the remaining segment is the local computer's address; Class D addresses, ranging from 224.0.0.0 to 239.255.255.255; and Class E addresses, ranging from 240.0.0.0 to 255.255.255.255. Class A, B, and C addresses are used for network segmentation. In this embodiment, different IP address network segments can be understood as different subnets within the network. An IP address network segment refers to the portion of a computer network where devices using the same physical layer (such as transmission media, repeaters, hubs, etc.) can communicate directly. A network segment is defined by a combination of an IP address and a subnet mask; devices with the same network identifier belong to the same network segment. Specifically, the result of a bitwise AND operation between the IP address and the subnet mask is called the network identifier. If two devices have the same network identifier, then they are within the same network segment.

[0073] For example, the first router assigns a Class C first IP address to the main control unit, and the main control unit also assigns a Class C second IP address to the external device, but the network segment of the second IP address assigned to the external device is different from that of the first IP address. For example, the first IP address is 192.168.1.6, and the second IP address is 192.168.43.119.

[0074] In some embodiments, the main control unit assigns a second IP address to the external device in the following manner:

[0075] The main control unit assigns a second IP address to the external device according to DHCP (Dynamic Host Configuration Protocol).

[0076] In practice, the main control unit (SoC motherboard) provides a DHCP server function to automatically assign IP addresses to devices in the network. When the main control unit connects to the network, the DHCP server automatically assigns a unique IP address (secondary IP address) to the external device and configures relevant network parameters, such as subnet mask, default gateway, and DNS server address. This avoids manually setting the IP address of the external device, thereby simplifying the network configuration process, avoiding IP address conflicts, and improving network efficiency.

[0077] In practice, after the main control unit assigns a second IP address to the external device using the DHCP server function, the external device can connect to the first router through the second IP address, and then access the target network connected to the main control unit through the first router. The process of the external device connecting to and accessing the target network is seamless for the user. When the main control unit connects to the network and the signal source is switched, the external device does not need to manually reconfigure the network and can directly access the target network connected to the main control unit for data transmission.

[0078] In some embodiments, the master control unit accesses the target network to which it is connected by the following steps:

[0079] Step a: The main control unit receives message data sent by an external device, the message data carrying the second IP address;

[0080] Step b: The main control unit converts the second IP address into a target address, which is used by external devices to forward the packet data to the first router, and then the first router sends the packet data to the target network.

[0081] In practice, the target address is used to represent an address that the first router can recognize. After the main control unit assigns a second IP address to the external device, in order for the external device to access the first router and connect to the target network, it needs to convert the second IP address (subnet address) into an address that the first router can recognize. Thus, the external device establishes a connection with the first router based on the target address and then accesses the target network.

[0082] In some embodiments, the master control unit converts the second IP address to the target address in the following manner:

[0083] The main control unit uses NAT (Network Address Translation) technology to translate the second IP address into the target address.

[0084] In this embodiment, the main control unit provides a NAT function, which is used to perform IP address translation. It can map external IP addresses and port numbers to private IP addresses in the internal network. This function allows the local network to use private addresses and use global IP addresses when connecting to the Internet.

[0085] Optionally, after the main control unit assigns a second IP address to the external device, when the external device accesses the target network based on the second IP address, NAT technology is used to perform address translation on the second IP address. The specific translation method is as follows:

[0086] After the packet data carrying the second IP address passes through the main control unit's soft router, the main control unit uses NAT technology to convert the second IP address into a target address (first IP address or third IP address) that the router can recognize. After the packet data carrying the target address passes through the main control unit's wireless communication module, the target address is switched to the IP address of the wireless communication module, and the packet data carrying the IP address of the wireless communication module is transmitted to the first router. The first router converts the IP address of the wireless communication module into a private network address, such as 128.10.10.10, and connects to the target network (such as a public network address) through the first router, sending the packet data to the target network.

[0087] It should be noted that the main control unit in this embodiment can design a software router to provide software routing functions, including but not limited to: DHCP server functions, NAT functions, etc.

[0088] In some embodiments, the target address includes:

[0089] First IP address; or,

[0090] A third IP address that is in the same network segment as the first IP address and is different from the first IP address.

[0091] In practice, the main control unit can convert the second IP address to the first IP address; it can also convert the second IP address to a third IP address based on the first IP address. It should be noted that when the main control unit converts the second IP address to the target address, the target address is determined by the main control unit when assigning the second IP address to the external device. The specific process for the main control unit to assign the second IP address to the external device is as follows:

[0092] Step 1: The target address is the first IP address;

[0093] In this process, after the main control unit obtains the first IP address, it transmits the first IP address to the soft router of the electronic device. The soft router has DHCP server function and NAT function. The soft router uses the DHCP function to directly convert the first IP address into a second IP address. The network segment of the gateway address set by the soft router is different from the network segment of the first IP address, and the type of the gateway address is the same as the type of the first IP address. Therefore, the second IP address assigned by the DHCP function has the same type as the first IP address, but the network segment is different.

[0094] Once the external device obtains the second IP address, it sends a data packet to the target network. The data packet carries the second IP address. At this time, the second IP address first passes through the software router before being sent to the target network. The software router uses the NAT function to convert the second IP address into the first IP address and sends the data packet to the target network based on the first IP address, thus enabling the external device to access the target network and interact with data.

[0095] Step 2: The target address is a third-party IP address;

[0096] In this process, after the main control unit obtains the first IP address, it transmits the first IP address to the soft router of the electronic device. The soft router allocates a WAN interface address and a LAN interface address to itself. The WAN interface address is used to access the external network, that is, the subnet allocated by the first router to the main control unit. The LAN interface address is used to access the local area network, that is, the subnet allocated by the soft router to the external device. Based on the first IP address, the soft router generates a third IP address that is in the same network segment as the first IP address (that is, belongs to the same subnet as the first IP address) and is different from the first IP address. In other words, the soft router first generates a third IP address that is different from the first IP address in the same subnet, uses the third IP address as its own WAN interface address, and uses the DHCP function to convert the third IP address to a second IP address.

[0097] Once the external device obtains the second IP address, it sends a data packet to the target network, carrying the second IP address. The second IP address is first sent to the target network via a software router. The software router uses NAT to convert the second IP address into a third IP address and sends the data packet to the main control unit based on the third IP address. The main control unit then forwards the data packet to the target network, enabling the external device to access and interact with the target network.

[0098] In practice, the external device establishes a connection with the first router using the target address and accesses the target network connected to the main control unit through the first router. After the second IP address is translated into the target address using NAT technology, since the target address can be recognized by the first router, for example, if the second IP address is 192.168.43.119, the second IP address will obtain the gateway address 192.168.43.1 after passing through the soft router; after NAT technology, the gateway address 192.168.43.1 is translated into the target address 192.168.1.7 that the first router can recognize. Based on this target address 192.168.1.7, after passing through the wireless communication module (Wi-Fi module) of the main control unit, the IP address of the Wi-Fi module is obtained as 192.168.1.6; the first router translates 192.168.1.6 into 128.10.10.10, and a connection is established with the target network based on 128.10.10.10. Therefore, external devices can connect to the first router and access the target network through the first router, thereby enabling external devices to share the network connected to the main control unit.

[0099] This embodiment can provide different network sharing schemes. One is to share the target network connected to the main control unit via Ethernet network sharing, and the other is to share the target network connected to the main control unit via USB network sharing. The Ethernet network sharing method is implemented using Ethernet technology and a physical channel between the external device and the main control unit; the USB network sharing method is implemented using a USB channel between the external device and the main control unit, utilizing USB transmission technology.

[0100] Shared Network Solution 1: Ethernet Shared Network.

[0101] In some embodiments, the electronic device further includes a physical channel for the main control unit to connect to an external device; the main control unit is specifically configured to perform: using Ethernet technology, sending a second IP address to the external device through the physical channel.

[0102] The main control unit and external devices are connected via physical channels; a physical channel refers to the physical connection required for data transmission between internal or external devices of a computer. Ethernet is a local area network (LAN) technology primarily used to connect devices and enable data transmission. It uses cables (most commonly twisted-pair cables) to connect devices and transmit data; it is a wired communication protocol for data transmission.

[0103] In some embodiments, the specific connection methods for connecting the main control unit and external devices via a physical channel include any one or more of the following:

[0104] Method 1) The physical channel includes a physical switch, a second network interface card (NIC), and a first NIC; the main control unit is connected to the physical switch through the second NIC, the physical switch is connected to the first NIC, and the first NIC is used to connect external devices.

[0105] In this configuration, the main control unit (SoC motherboard) is connected to a physical switch, which in turn is connected to a first network interface card (NIC). The first NIC is connected to the external device. The external device and the main control unit establish a physical connection through the physical switch. The external device's USB interface connects to the main control unit's first NIC (USB PHY), which in turn connects to the physical switch (PHY switch). The main control unit connects to the physical switch via a second NIC (PHY). The second NIC refers to the physical layer NIC, specifically the physical layer portion of the Network Interface Controller (NIC), which is primarily responsible for handling the physical layer of data transmission. The physical layer defines the electrical and optical signals, line status, clock reference, data encoding, and circuitry required for data transmission and reception, and provides a standard interface to data link layer devices. The physical layer chip is called the PHY (Physical Layer) and is responsible for implementing the specific physical connections and signal transmission. The main control unit includes an SoC motherboard and provides software routing functionality, allowing data to be transmitted to the second NIC via a GMAC (Gigabit Media Access Control) interface. The main control unit's USB interface is connected to a wireless communication module, Wi-Fi STA (Station, wireless terminal mode), which connects to the first router.

[0106] Optionally, the external device in this method can be an OPS device, and the main control unit can be a large-screen device. Optionally, the OPS device includes, but is not limited to, a Windows device, an OPS device running an Android system, or an OPS device running other operating systems. This embodiment does not impose too many limitations on this.

[0107] In some embodiments, the electronic device further includes a LAN interface, the physical switch is connected to the LAN interface, and the LAN interface is used to connect to a second router; the electronic device is also configured to perform:

[0108] The system receives the fourth IP address assigned by the second router through the LAN interface; transmits the fourth IP address to the first network card through the physical switch, and then transmits it to the external device through the first network card, so that the external device can access the target network through the second router.

[0109] In practice, the LAN interface of electronic devices is connected to the second router. External devices can connect to the second router through the connection channel of the first network card-physical switch-LAN interface, thereby accessing the target network through the second router. Since the connection in this mode is a wired connection via the LAN interface, external devices can directly connect to the second router via wired connection and exchange network data without needing to perform network settings after switching signal sources.

[0110] Method 2) The physical channel includes a physical switch and a second network interface card (NIC); the main control unit is connected to the physical switch through the second NIC, the physical switch is connected to a LAN interface, and the LAN interface is used to connect external devices.

[0111] In this configuration, the SoC motherboard of the main control unit is connected to a physical switch, which has a LAN interface. External devices are connected to this LAN interface. The external devices and the main control unit establish a physical connection through the physical switch. The external devices connect to the LAN interface of the main control unit and, in turn, to the physical switch (PHY switch). The main control unit connects to the physical switch via a second network interface card (PHY). The main control unit includes the SoC and provides software routing functionality, allowing data transmission to the second PHY via a GMAC interface. A Wi-Fi STA (Station, wireless terminal mode) wireless communication module is connected to the main control unit's USB interface, enabling connection to a first router.

[0112] Optionally, the external device in this method can be a laptop, tablet, or other external device, and the main control unit can be a large-screen device.

[0113] In this scheme, the main control unit and external devices are connected via a physical channel. For example... Figure 2As shown in the diagram, this embodiment provides a hardware design schematic of an Ethernet shared network solution. The main control unit and external devices can achieve physical channel reachability through the connection method shown in the diagram. The main control unit includes a large-screen device (i.e., the SoC); external devices include OPS devices, external devices, etc. The OPS device connects to the main control unit via a USB interface, and the external devices connect to the main control unit via a LAN port. The OPS device can be an external box connected to the main control unit via a USB interface; the OPS device can also be a small chip soldered onto the SoC motherboard of the main control unit, serving as an integrated OPS device on the main control unit, forming an electronic device together with the main control unit. External devices can be any electronic device independent of the main control unit, such as laptops, tablets, etc., connected to the LAN interface of the main control unit. The OPS device and the large-screen device are physically connected through a PHY switch; the large-screen device connects to the PHY switch via a second network interface card (PHY); the OPS device connects to the PHY switch via a first network interface card (USB PHY); the LAN interface (RJ45 interface) connects to the PHY switch; and the wireless communication module (Wi-Fi STA) connects to the large-screen device via USB.

[0114] The hardware design described above ensures the reachability of the physical link between the main control unit and the external device. Then, through the network design of the software routing function, the reachability of the network protocol supported by the message is determined, and the data is sent from the source address (i.e., the second IP address) to the destination address through the network protocol.

[0115] In some embodiments, the electronic device further includes a LAN interface, the physical channel includes a physical switch and a second network interface card (NIC); the main control unit is connected to the physical switch via the second NIC, the physical switch is connected to the LAN interface, and the LAN interface is used to connect to a second router; the main control unit is also configured to perform:

[0116] The fifth IP address assigned by the second router is obtained through the LAN interface, and the fifth IP address is received through the physical channel, which is used by the main control unit to access the target network through the second router.

[0117] In practice, the main control unit connects to the second router via its LAN interface, and accesses the target network through the second router. The main control unit can also connect to an external router via its LAN interface to access the network.

[0118] In this embodiment, the main control unit provides a software routing function. In the scenario of an Ethernet shared network, the software routing function includes Ethernet software routing functionality, and its functions include, but are not limited to, any one or more of the following:

[0119] (1) DHCP server function, used to assign a second IP address to external devices;

[0120] (2) The NAT function is used to translate the second IP address into a target address that the router can recognize, that is, to translate different subnet addresses. For example, it translates the second IP address in the 192.168.43.X network segment into the target address in the 192.168.1.X network segment.

[0121] It's important to note that devices in a network must have IP addresses to enable message exchange and transmission between different devices. Since the second IP address 192.168.43.X is a subnet address, and messages with subnet addresses cannot be directly sent to the router, they must undergo IP address translation to be converted to a router-recognizable address like 192.168.1.X, and then sent to the public network address via 192.168.1.X.

[0122] In some embodiments, in an Ethernet sharing scenario, the main control unit sends messages from external devices through the following steps:

[0123] The main control unit receives packet data sent by an external device through the physical channel using Ethernet technology, the packet data carrying the second IP address; it converts the second IP address into a target address, forwards the packet data to the first router using the target address, and sends the packet data to the target network through the first router.

[0124] In some embodiments, the master control unit is specifically configured to send message data through the following process:

[0125] Receive message data sent by the external device based on the second IP address and the first port assigned by the external device;

[0126] The second IP address is translated into a target address, and a second port is assigned to the external device. Based on the target address and the second port, the packet data is forwarded to the first router, and then the packet data is sent to the target network through the first router.

[0127] In practice, when sending messages, an IP address is required first. Secondly, to prevent interference between communication protocols used by different IP addresses, a port is assigned to each network segment of each IP address. The IP address and the assigned port are then used to transmit message data. A port is an abstract software structure, generally referring to a port in TCP / IP (Transmission Control Protocol / Internet Protocol), used to identify different processes on the same machine during network communication. Port numbers range from 0 to 65535, such as port 80 for web browsing and port 21 for FTP services.

[0128] like Figures 3A-3B As shown in the diagram, this embodiment provides a schematic diagram of packet transmission in an Ethernet sharing scenario. (See attached diagram.) Figure 3A External devices include OPS devices and / or external computers. The main control unit includes Ethernet soft routing functionality and a wireless communication module (Wi-Fi STA). The main control unit is connected to a first router, which accesses the target network. See also... Figure 3B Taking the OPS device sending an HTTP request to the public address of the Internet (target network) as an example, the specific implementation process of message sending is explained as follows:

[0129] Step 300: The OPS device assigns a port, such as 3456, to the second IP address 192.168.43.119 and sends a message request to the public IP address, with the message request carrying message data.

[0130] Step 301: The OPS device sends the message request (192.168.43.119) to the network interface of the Ethernet soft router 192.168.43.1, and uses the NAT function to convert the message request of 192.168.43.119 into a message request of 192.168.1.7;

[0131] Optionally, the NAT function can be used to convert the packet request from 192.168.43.119 into a packet request from 192.168.1.6, that is, a packet request carrying the IP address of the master control unit Wi-Fi STA.

[0132] In practice, the Ethernet soft router assigns a new port, such as 4321, to the packet request (192.168.43.119) and sends the packet request to the network interface of the Ethernet soft router 192.168.1.7, thereby obtaining the packet request from 192.168.1.7 and realizing the IP address translation.

[0133] Step 302: Record a translation record in the NAT table.

[0134] The NAT table is a feature of Ethernet soft routers. It's a Network Address Translation table used to map external IP addresses and port numbers to private IP addresses within the internal network. For example, the NAT table records 192.168.43.119:3456 → 192.168.1.7:4321.

[0135] Step 303: The network interface of the Ethernet soft router 192.168.1.7 sends a message request to the wireless communication module Wi-Fi STA (192.168.1.6);

[0136] Step 304: The Wi-Fi STA (192.168.1.6) sends a message request to the network interface of the first router (192.168.1.1). The first router converts the message request of the Wi-Fi STA (192.168.1.6) into a message request of 128.10.10.10.

[0137] The first router also has address translation functionality. The principle is similar to NAT, which can translate a packet request from 192.168.1.6 into a packet request from 128.10.10.10, thus achieving address translation.

[0138] Step 305: Record a translation record in the NAT table.

[0139] For example, the NAT table records 192.168.1.6:3655→128.10.10.10:4444.

[0140] It should be noted that the IP address in this embodiment is only an example. The "6" in 192.168.1.6 is used to describe the device address and can be replaced with any integer between 2 and 254, as long as it is different from the "7" in 192.168.1.7 above.

[0141] Step 306: After the message request arrives at the network interface of 128.10.10.10, continue to send the message request to the public address of the target network.

[0142] In some embodiments, the electronic device includes a USB channel and / or a physical channel, the physical channel including a physical switch, a second network interface card (NIC), and a first NIC; the main control unit is connected to the physical switch via the second NIC, the physical switch is connected to the first NIC, and the first NIC is used to connect to an external device; the main control unit is further configured to perform:

[0143] Display channel configuration interface, the channel configuration interface including at least one first menu item, the at least one first menu item being used to represent USB channel and / or physical channel;

[0144] In response to the user's selection of the first menu item, the connection channel between the main control device and the external device is determined.

[0145] In some embodiments, such as Figure 4 As shown in the figure, this embodiment can also provide a schematic diagram of the interface of Ethernet sharing software. The interface displays an Ethernet sharing switch, and the user can choose whether to use the Ethernet sharing method.

[0146] (1) When the user selects the Ethernet sharing method, the OPS device can obtain a second IP address through the DHCP function to access the target network (such as the external network); external devices connected to the LAN port of the main control unit can obtain a second IP address through the LAN port to access the target network (such as the external network).

[0147] (2) When the user chooses not to use Ethernet sharing, the OPS device and external device can be assigned a fourth IP address through the second router connected to the LAN port of the main control unit. The OPS device and external device can obtain the fourth IP address through the second router and access the target network (such as the external network) through the LAN port.

[0148] In some embodiments, the LAN interface of the main control unit is connected to a second router; the second router assigns a fourth IP address to external devices, which then use the fourth IP address to access the target network through the second router. Optionally, the second router can also assign an IP address to the main control unit for the main control unit to access the target network.

[0149] like Figure 5 As shown in the figure, this embodiment also provides a network connection process for Ethernet sharing, as detailed below:

[0150] Step 500: The main control unit connects to the first router through the wireless communication module, and the first router assigns the main control unit a first IP address of 192.168.1.6;

[0151] Step 501: The main control unit can access the target network through the first router;

[0152] Step 502: The Ethernet soft router of the main control unit assigns a second IP address, 192.168.43.119, to the external device;

[0153] Step 503: The external device obtains the second IP address 192.168.43.119;

[0154] Step 504: External devices can access the target network through the first router based on the second IP address.

[0155] In this Ethernet sharing scheme, the main control unit first connects to a first router that can access the target network (such as the external network) via a wireless communication module. Then, after the main control unit is plugged into the OPS device, the OPS device automatically obtains a second IP address through the DHCP function, and opens a webpage to access the external network. The LAN port (RJ45 interface) of the main control unit is connected to an external computer, and the external computer automatically obtains a second IP address through the DHCP function, and opens a webpage to access the external network.

[0156] Shared network solution two: USB shared network.

[0157] In some embodiments, the electronic device further includes a USB channel, through which the main control unit and the external device are connected; the main control unit is also configured to perform: sending a second IP address to the external device via the USB channel.

[0158] Optionally, the main control unit may use virtual network card technology to send a second IP address to an external device through the USB channel.

[0159] In implementation, the main control unit utilizes USB transmission technology and a virtual network card to send a second IP address to the external device through the USB channel. The USB channel refers to the data transmission channel in the USB interface, responsible for transmitting data between the computer system and external devices. A virtual network interface card (VNIC) is a software-simulated network adapter that allows users to create a virtual network interface without actually adding physical hardware. A virtual network card can simulate the function of a hub, enabling VPN (Virtual Private Network) functionality, allowing the system to recognize it as a single network card, thus establishing secure network connections between different computers.

[0160] In this embodiment, the virtual network interface card (NIC) replaces the function of the first NIC, enabling data interaction between the main control unit and external devices. The main control unit's software routing function assigns an IP address to the virtual NIC, allowing it to send data to or receive data from external devices. Specifically, the external device sends packet data to the main control unit's virtual NIC via the first USB interface. The virtual NIC then forwards the packet data to the first router, which then sends it to the target network.

[0161] In some embodiments, the specific connection methods for connecting the main control unit and the external device via the USB channel include any one or more of the following:

[0162] Method 1) The main control unit includes a first USB interface, which is used to connect an external device; the USB channel includes the first USB interface.

[0163] Optionally, the first USB interface includes multiple transmission modes, including but not limited to: OTG mode, host mode, etc. In OTG mode, the first USB interface is used to transmit data to external devices based on OTG technology. In this case, the first USB interface can be understood as an OTG interface, and it connects to external devices through the OTG interface.

[0164] In this configuration, external devices and the main control unit are directly connected via a USB channel, with the external device's USB port connected to the main control unit's OTG port. The main control unit includes a SoC and provides software routing functionality, allowing it to transmit a second IP address assigned by the software router to the external device via the OTG port through a virtual network adapter. The main control unit is also connected to a Wi-FiSTA wireless communication module, which connects to the first router.

[0165] Optionally, the external device in this method can be an OPS device, and the main control unit can be a large screen device.

[0166] Method 2) The electronic device further includes a second USB interface, the main control unit includes a first USB interface, the first USB interface is connected to the second USB interface, and the second USB interface is used to connect external devices; the USB channel includes the first USB interface and the second USB interface.

[0167] In this configuration, the external device and the main control unit are connected via a USB channel. The USB interface of the external device connects to the second USB interface of the electronic device, and the second USB interface of the electronic device connects to the first USB interface of the main control unit. The main control unit includes a System-on-a-Chip (SoC) and provides software routing functionality. It can transmit the second IP address assigned by the software router to the external device via the first USB interface → second USB interface through a virtual network card. The main control unit is also connected to a Wi-Fi STA (Station, wireless terminal mode) wireless communication module, which connects to the first router.

[0168] Optionally, the external device in this method can be a laptop, tablet, or other external device, and the main control unit can be a large-screen device.

[0169] like Figure 6As shown in the diagram, this embodiment provides a hardware design schematic of a USB shared network solution. The main control unit and external devices can achieve physical channel reachability through the connection method shown. The main control unit includes a large-screen device (i.e., the SoC); external devices include an OPS device, external devices, etc. The OPS device connects to the main control unit via a USB interface, and the external devices connect to the main control unit via a second USB interface. The OPS device can be an external box connected to the main control unit via a USB interface; the OPS device can also be a small chip soldered onto the SoC motherboard of the main control unit. External devices can be electronic devices independent of the main control unit, such as laptops. The USB interface of the OPS device connects to the OTG interface (first USB interface) of the large-screen device; the large-screen device also has a second USB interface for connecting external devices such as laptops. The USB interface of the large-screen device's motherboard connects to a wireless communication module (Wi-Fi STA), which is connected to a first router. External devices can connect to the main control unit via the OTG interface or the second USB interface.

[0170] In implementation, the above hardware design ensures the reachability of the physical link between the main control unit and the external device. Then, through the network design of the software routing function, the reachability of the network protocol supported by the message is determined, and the data is sent from the source address (i.e. the second IP address) to the destination address through the network protocol.

[0171] In this embodiment, the main control unit provides a software routing function. In the scenario of USB shared network, the software routing function includes a USB software routing function, the functions of which include, but are not limited to, any one or more of the following:

[0172] (1) DHCP server function, used to assign a second IP address to external devices;

[0173] (2) The NAT function is used to translate the second IP address into a target address that the router can recognize, that is, to translate different subnet addresses. For example, it translates the second IP address in the 192.168.43.X network segment into the target address in the 192.168.1.X network segment.

[0174] It's important to note that devices in a network must have IP addresses to enable message exchange and transmission between different devices. Since the second IP address 192.168.43.X is a subnet address, and messages with subnet addresses cannot be directly sent to the router, they must undergo IP address translation to be converted to a router-recognizable address like 192.168.1.X, and then sent to the public network address via 192.168.1.X.

[0175] The differences between the Ethernet soft routing function and the USB soft routing function provided in this embodiment are as follows: ① The channel difference: the USB soft routing function transmits network data through the USB channel, while the Ethernet soft routing function transmits network data through Ethernet; ② The USB soft routing protocol is an encapsulation layer on top of the Ethernet soft routing protocol, which is converted into the USB protocol; ③ The channel corresponding to the USB soft routing does not need to go through a physical switch, and the USB interface of the external device is directly plugged into the OTG interface of the SoC motherboard of the main control unit; ④ Compared with the Ethernet soft routing function, the USB soft routing function also requires a virtual network card for transmitting data in the USB channel.

[0176] In some embodiments, in a USB sharing scenario, the main control unit sends messages from the external device through the following steps:

[0177] The main control unit receives message data sent by an external device through the USB channel, the message data carrying the second IP address; converts the second IP address into a target address, uses the target address to forward the message data to the first router, and sends the message data to the target network through the first router.

[0178] In practice, virtual network adapter technology is used to transmit data via the USB channel. The virtual network adapter can establish connections with the primary router and external devices, and transmit data through the USB channel.

[0179] In some embodiments, the main control unit is further configured to perform:

[0180] The storage address translation relationship includes the translation relationship between the second IP address and the target address, as well as the translation relationship between the first port and the second port.

[0181] In practice, the stored address translation relationships are used by external devices during the address translation process when sending message data. The address translation relationships can be used to determine what target address to translate the current second IP address into.

[0182] In some embodiments, message data is sent through the following process:

[0183] The main control unit receives message data sent by the external device based on the second IP address and the first port allocated by the external device;

[0184] The main control unit converts the second IP address into a target address and allocates a second port to the external device. Based on the target address and the second port, it forwards the packet data to the first router and sends the packet data to the target network through the first router.

[0185] In implementation, when sending messages, an IP address is required first. Secondly, to prevent interference between communication protocols used by different IP addresses, a port is assigned to each network segment of each IP address. Message data is transmitted using the IP address and the assigned port. A port is an abstract software structure, generally referring to a TCP / IP port, used to identify different processes on the same machine during network communication. Port numbers range from 0 to 65535, such as port 80 for web browsing services and port 21 for FTP services.

[0186] like Figures 7A-7B As shown in the diagram, this embodiment provides a message transmission schematic diagram in a USB sharing scenario. (See attached diagram.) Figure 7A External devices include OPS devices and / or external computers. The main control unit includes a USB soft router function and a wireless communication module (Wi-FiSTA). The main control unit is connected to a first router, which accesses the target network. See also... Figure 7B Taking the OPS device sending an HTTP request to the public address of the Internet (target network) as an example, the specific implementation process of message sending is explained as follows:

[0187] Step 700: The OPS device assigns a port, such as 3456, to the second IP address 192.168.43.119 and sends a message request to the public IP address, with the message request carrying message data.

[0188] Step 701: The OPS device sends a message request (192.168.43.119) to the network interface of the USB soft router at 192.168.43.1, and uses the NAT function to convert the message request of 192.168.43.119 into a message request of 192.168.1.7;

[0189] Optionally, the NAT function can be used to convert the packet request from 192.168.43.119 into a packet request from 192.168.1.6, that is, a packet request carrying the IP address of the master control unit Wi-Fi STA.

[0190] In practice, the USB soft router assigns a new port, such as 4321, to the message request (192.168.43.119) and sends the message request to the network interface of the USB soft router at 192.168.1.7, thereby obtaining the message request from 192.168.1.7 and realizing the IP address translation.

[0191] Step 702: Record a translation record in the NAT table.

[0192] The NAT table is part of the NAT function in the USB soft router. The NAT table, or Network Address Translation table, is used to map external IP addresses and port numbers to private IP addresses within the internal network. For example, the NAT table records 192.168.43.119:3456 → 192.168.1.7:4321.

[0193] Step 703: The network interface of the USB soft router 192.168.1.7 sends a message request to the wireless communication module Wi-Fi STA (192.168.1.6);

[0194] Step 704: The Wi-Fi STA (192.168.1.6) sends a message request to the network interface of the first router (192.168.1.1). The first router converts the message request of the Wi-Fi STA (192.168.1.6) into a message request of 128.10.10.10.

[0195] The first router also has address translation functionality. The principle is similar to NAT, which can translate a packet request from 192.168.1.6 into a packet request from 128.10.10.10, thus achieving address translation.

[0196] Step 705: Record a translation record in the NAT table.

[0197] For example, the NAT table records 192.168.1.6:3655→128.10.10.10:4444.

[0198] It should be noted that the IP address in this embodiment is only an example. The "6" in 192.168.1.6 is used to describe the device address and can be replaced with any integer between 2 and 254, as long as it is different from the "7" in 192.168.1.7 above.

[0199] Step 706: After the message request arrives at the network interface of 128.10.10.10, continue to send the message request to the public address of the target network.

[0200] like Figure 8 As shown in the figure, this embodiment also provides a USB shared network connection process, as detailed below:

[0201] Step 800: The main control unit connects to the first router through the wireless communication module, and the first router assigns the main control unit a first IP address of 192.168.1.6;

[0202] Step 801: The main control unit can access the target network through the first router;

[0203] Step 802: The main control unit's USB soft router assigns a second IP address, 192.168.43.119, to the external device and sends it to the external device through the virtual network card;

[0204] Step 803: The external device obtains the second IP address 192.168.43.119 from the OTG interface of the main control unit;

[0205] Step 804: External devices can access the target network through the first router based on the second IP address.

[0206] In this USB sharing scheme, the main control unit first connects to a first router that can access the target network (such as the external network) via a wireless communication module. Then, after the main control unit inserts the OPS device, the OPS device automatically obtains a second IP address through the DHCP function and opens a webpage to access the external network. The second USB interface of the main control unit is connected to an external computer, which automatically obtains a second IP address through the DHCP function and opens a webpage to access the external network.

[0207] In this embodiment of the USB sharing scheme, the main control unit connects to the first router via a wireless communication module and obtains the first IP address 192.168.1.6 assigned by the first router; the main control unit establishes a USB soft router with the IP address 192.168.43.1; the main control unit establishes a virtual network card function through software, and the virtual network card obtains the IP address 192.168.43.119 from the USB soft router through DHCP; the OPS device and the main control unit establish network sharing through the mechanism of virtual routing, virtual subnet, and virtual network card.

[0208] In some embodiments, under the premise of a USB sharing scheme and the premise that the electronic device includes a USB channel, the electronic device further includes a channel switching unit, a first network card, a first interface, a second interface and a LAN interface, and the main control unit includes the first interface;

[0209] The first end of the channel switching unit is connected to the first network card, the second end is connected to the first interface, and the third end is connected to the second interface. The first network card is connected to the LAN interface, and the second interface is used to connect to an external device. The channel switching unit is used to select the target network for the external device to connect to through the first interface or the LAN interface.

[0210] In some embodiments, the electronic device further includes a physical switch and a second network interface card (NIC), with one end of the second NIC connected to the main control unit and the other end connected to the physical switch.

[0211] In some embodiments, the different data transmission channels include a USB channel and a first channel; the first interface includes a first USB interface;

[0212] The USB channel is used for external devices to send message data to the target network through the first USB interface;

[0213] The first channel is used for an external device to send packet data to a physical switch through a first network card, and the physical switch to send the packet data to a second router through a LAN interface, wherein the LAN interface is connected to the second router.

[0214] In some embodiments, the main control unit is further configured to perform:

[0215] The sharing mode interface is displayed, including network sharing on and network sharing off options; in response to the user's selection of the network sharing on option, the message data is transmitted through the USB channel; or...

[0216] In response to the user's selection of the network sharing option, the message data is transmitted through the first channel.

[0217] In practice, users can choose to transmit message data from external devices via the first channel or the USB channel.

[0218] In some embodiments, this embodiment can also combine Ethernet sharing and USB sharing schemes, allowing users to choose between Ethernet sharing and USB sharing schemes by setting up a channel switching unit.

[0219] In some embodiments, the electronic device includes a USB channel and / or a physical channel, the physical channel including a physical switch, a second network interface card (NIC), and a first NIC; the main control unit is connected to the physical switch via the second NIC, the physical switch is connected to the first NIC, and the first NIC is used to connect to an external device; the main control unit is further configured to perform:

[0220] Display channel configuration interface, the channel configuration interface including at least one first menu item, the at least one first menu item being used to represent USB channel and / or physical channel;

[0221] In response to the user's selection of the first menu item, the connection channel between the main control device and the external device is determined.

[0222] In some embodiments, the electronic device further includes a physical switch and a second network interface card (NIC), with one end of the second NIC connected to the main control unit and the other end connected to the physical switch.

[0223] Optionally, the main control unit and the external device establish at least one channel connection; a channel switching unit is provided between the main control unit and the external device; the channel switching unit is used to select the channel between the main control unit and the external device; the at least one channel includes a physical channel and / or a USB channel.

[0224] In practice, hardware devices related to physical channels and USB channels can be deployed in the main control unit, and different channels can be selected to achieve network sharing through the channel switching unit.

[0225] Optionally, the software interface can also be configured. The specific implementation steps are as follows:

[0226] Displays the channel configuration interface; responds to the user's selection operation in the channel configuration interface, determines the channel for connection between the main control unit and external devices.

[0227] Optionally, users can directly select to use either the USB sharing scheme or the Ethernet sharing scheme in the channel configuration interface. They can also set the priority, for example, by default selecting the USB sharing scheme (i.e., the highest priority), and only using the Ethernet sharing scheme to achieve network sharing when the user disables the USB sharing function.

[0228] In some embodiments, such as Figures 9A-9B As shown in the diagram, this embodiment can also provide a schematic diagram of the interface of USB sharing software, see [link / reference]. Figure 9A The interface displays a USB sharing switch, allowing users to choose whether to use USB sharing.

[0229] (1) When the user selects the USB sharing method, the OPS device can obtain a second IP address through the DHCP function to access the target network (such as the external network); external devices connected to the designated interface of the main control unit can obtain a second IP address through the designated interface to access the target network (such as the external network).

[0230] (2) When the user chooses not to use USB sharing, it can further determine whether to use Ethernet sharing, such as... Figure 9B As shown, when the user selects the USB sharing option, a pop-up interface appears, where the user can further select whether to use Ethernet sharing.

[0231] 2a) When the user selects the Ethernet sharing method, the OPS device can obtain a second IP address through the DHCP function to access the target network (such as the external network); external devices connected to the LAN port of the main control unit can obtain a second IP address through the LAN port to access the target network (such as the external network).

[0232] 2b) When the user chooses not to use Ethernet sharing, a fourth IP address can be assigned to the OPS device and external devices through a second router connected to the LAN port of the main control unit. The OPS device and external devices can obtain the fourth IP address through the second router and access the target network (such as the external network) through the LAN port.

[0233] In some embodiments, the LAN interface of the main control unit is connected to a second router; the second router assigns a fourth IP address to external devices, which then use the fourth IP address to access the target network through the second router. Optionally, the second router may also assign a fifth IP address to the main control unit for accessing the target network.

[0234] like Figure 10 As shown in the diagram, this embodiment provides a hardware design schematic for a USB and Ethernet shared network solution. The main control unit and external devices, connected in the diagram, can implement either a USB shared network solution or an Ethernet shared network solution. The main control unit includes a large-screen device (i.e., the SoC); external devices include an OPS device, external devices, etc. The OPS device's USB interface connects to the main control unit's channel switching unit, and the external devices connect to the main control unit's channel switching unit via a second USB interface. External devices can also connect to the main control unit's physical switch via a LAN port. The OPS device can be an external box connected to the main control unit via a USB interface; the OPS device can also be a small chip soldered onto the main control unit's SoC motherboard. External devices can be electronic devices independent of the main control unit, such as laptops or tablets, connected to the main control unit's LAN interface or second USB interface. The OPS device and the large-screen device are physically connected via a PHY switch; the large-screen device is connected to the PHY switch via a second network interface card (PHY); the OPS device is connected to the PHY switch via a first network interface card (USB PHY); the LAN interface (RJ45 interface) is connected to the PHY switch; and the wireless communication module (Wi-Fi STA) is connected to the large-screen device via USB. The first end of the channel switching unit connects to the USB interface of the OPS device, the second end connects to the second USB interface of the main control unit, and the third end connects to the OTG interface of the main control unit. When channel A is selected by the channel switching unit, the Ethernet sharing scheme is disabled, and the USB sharing scheme is executed. When channel B is selected by the channel switching unit, the USB sharing scheme is disabled, and the Ethernet sharing scheme can be used.

[0235] The Ethernet sharing scheme in this embodiment uses the Ethernet protocol to transmit data, while the USB sharing scheme uses the USB protocol to transmit data. The USB sharing scheme does not require the participation of hardware modules such as physical switches, second network cards, and first network cards. The USB sharing scheme can achieve data transmission through the virtual network card on the Android device without the need for a second network card.

[0236] In some embodiments, this embodiment can also provide a multi-device network sharing scheme, where the main control unit is connected to multiple external devices; the scheme for multiple external devices to share the main control unit network is provided in the following manner:

[0237] The main control unit assigns a second IP address to each of the multiple external devices; these devices then use their respective second IP addresses to access the target network connected to the main control unit through the first router.

[0238] In practice, the main control unit connects to the target network through the first router and obtains the first IP address assigned to the main control unit by the first router; the main control unit uses the DHCP function to assign a second IP address to each connected external device; each external device uses its second IP address to access the target network connected to the main control unit through the first router, thereby realizing a multi-device network sharing scheme.

[0239] In some embodiments, the connection methods between the multiple external devices and the main control unit include any one or more of the following:

[0240] Method 1) The main control unit is connected to multiple external devices via physical channels;

[0241] Optionally, this method also includes one or more of the following connection methods:

[0242] Method 1a) Each of the multiple external devices is connected to a first network card of the main control unit, the first network card is connected to a physical switch of the main control unit, and the physical switch is connected to the main control unit;

[0243] Method 1b) Each of the multiple external devices is connected to a LAN interface of the main control unit, the LAN interface is connected to a physical switch of the main control unit, and the physical switch is connected to the main control unit;

[0244] Method 1c) Some of the multiple external devices are connected to the first network card of the main control unit, the first network card is connected to the physical switch of the main control unit, and the physical switch is connected to the main control unit; the remaining external devices are connected to the LAN interface of the main control unit, the LAN interface is connected to the physical switch of the main control unit, and the physical switch is connected to the main control unit.

[0245] Method 2) The main control unit connects to multiple external devices via USB channels.

[0246] Optionally, this method also includes one or more of the following connection methods:

[0247] Method 2a) Each of the multiple external devices is connected to the OTG interface of the main control unit;

[0248] Method 2b) Each of the multiple external devices is connected to the second USB interface of the main control unit, and the second USB interface of the main control unit is connected to the OTG interface of the main control unit;

[0249] Method 2c) Some of the multiple external devices are connected to the OTG interface of the main control unit, the remaining external devices are connected to the second USB interface of the main control unit, and the second USB interface of the main control unit is connected to the OTG interface of the main control unit.

[0250] like Figure 11 As shown in the figure, this embodiment provides a hardware diagram of a multi-device network sharing. Taking the connection of multiple external devices to the main control unit through a physical channel as an example, multiple OPS devices share the network of the main control unit through a USB interface, and the main control unit connects to multiple external devices through a LAN interface (such as an RJ45 interface), so that multiple external devices (such as computers) can share the network of the main control unit.

[0251] Based on the same inventive concept, embodiments of the present invention also provide an electronic device, such as... Figure 12 As shown, the electronic device includes a main control unit 1200, which is configured to execute:

[0252] Assign a second IP address to the external device;

[0253] Receive message data sent by an external device, wherein the message data carries the second IP address;

[0254] The second IP address is converted into a target address, which is used by external devices to send packet data to a target network, wherein the target network includes the target network connected to the main control unit.

[0255] In some embodiments, the target address includes:

[0256] First IP address; or,

[0257] The third IP address is in the same network segment as the first IP address and is different from the first IP address;

[0258] The first IP address is assigned by the first router, which is connected to the main control unit, and the main control unit connects to the target network through the first router.

[0259] Based on the same inventive concept, embodiments of the present invention also provide an electronic device that shares a network with a main control device via an external unit; such as Figure 13 As shown, the electronic device includes an external unit 1300, which is configured to perform:

[0260] The external unit connects to the target network through a third router and obtains the sixth IP address assigned to the external unit by the third router;

[0261] The external unit assigns a seventh IP address to the main control device, which is used by the main control device to access the target network connected to the external unit through the third router; the network segment of the seventh IP address is different from that of the sixth IP address.

[0262] Optionally, the external unit may assign a seventh IP address to the master device using the DHCP function.

[0263] In some embodiments, the master control device connects to the target network in the following manner:

[0264] The external unit receives message data sent by the master control device, the message data carrying the seventh IP address; the external unit converts the seventh IP address into a target address, which the master control device uses to forward the message data to the third router, and then sends the message data to the target network through the third router.

[0265] Optionally, the target address includes the sixth IP address; or, the eighth IP address is in the same network segment as the sixth IP address but is different from the seventh IP address.

[0266] Optionally, the external unit can translate the seventh IP address into the target address using NAT technology.

[0267] The connection method between the external unit and the main control device can refer to the network sharing method of the main control unit of the above electronic device sharing the network with the external device, where the external unit is equivalent to the external device in the above method, and the main control device is equivalent to the electronic device in the above method; it will not be elaborated here.

[0268] In practice, the first external unit, such as the OPS device, can connect to an external network via its own wireless communication module and share that network with the main control device or the second external unit, such as an external computer. Alternatively, the second external unit, such as an external computer, can connect to an external network via its own wireless communication module and share that network with the main control device or the first external unit, such as the OPS device.

[0269] The network sharing solution provided in this embodiment enables the OPS system to automatically connect to the network after the large screen system has set up the network, without needing to configure the network again. This achieves network sharing between the large screen system and the OPS system, automates network configuration, and effectively improves the user experience.

[0270] Based on the same inventive concept, embodiments of the present invention also provide a network sharing method, such as... Figure 14 As shown, the specific implementation process of this method is as follows:

[0271] Step 1400: The main control unit obtains the first IP address assigned by the first router, which is used by the main control unit to connect to the target network through the first router;

[0272] Step 1401: The main control unit assigns a second IP address to the external device, which is used by the external device to access the target network connected to the main control unit through the first router; the second IP address is on a different network segment than the first IP address.

[0273] As an optional implementation, the second IP address is of the same type as the first IP address.

[0274] As an optional implementation, the method further includes:

[0275] The main control unit receives message data sent by an external device, and the message data carries the second IP address;

[0276] The main control unit converts the second IP address into a target address, which is used by external devices to forward the packet data to the first router, and then the first router sends the packet data to the target network.

[0277] As an optional implementation, the target address includes:

[0278] First IP address; or,

[0279] A third IP address that is in the same network segment as the first IP address and is different from the first IP address.

[0280] As an optional implementation, the master control unit converts the second IP address to a target address, including:

[0281] The main control unit converts the second IP address into the target address using Network Address Translation (NAT) technology.

[0282] As an optional implementation, the method further includes a physical channel for the main control unit to connect to an external device; the main control unit sends a second IP address to the external device through the physical channel.

[0283] As an optional implementation, the physical channel includes a physical switch, a first network interface card (NIC), and a second NIC;

[0284] The main control unit is connected to the physical switch via a second network card, and the physical switch is connected to the first network card, which is used to connect external devices.

[0285] As an optional implementation, the method further includes a LAN interface, the physical switch being connected to the LAN interface, the LAN interface being used to connect to a second router;

[0286] The main control unit receives the fourth IP address assigned by the second router through the LAN interface; transmits the fourth IP address to the first network card through the physical switch, and then transmits it to the external device through the first network card, so that the external device can access the target network through the second router;

[0287] The main control unit obtains the fifth IP address assigned by the second router through the LAN interface and receives the fifth IP address through the physical channel, which is used by the main control unit to access the target network through the second router.

[0288] As an optional implementation, the physical channel includes a physical switch and a second network interface card (NIC).

[0289] The main control unit is connected to a physical switch via a second network card. The physical switch is connected to a LAN interface, which is used to connect external devices.

[0290] As an optional implementation, the method further includes:

[0291] The main control unit receives message data sent by an external device through the physical channel, and the message data carries the second IP address;

[0292] The second IP address is converted to a target address, and the packet data is forwarded to the first router using the target address. The packet data is then sent to the target network through the first router.

[0293] As an optional implementation, the method further includes a USB channel, through which the host control unit and the external device are connected;

[0294] The main control unit sends a second IP address to the external device via the USB channel.

[0295] As an optional implementation, the main control unit sends a second IP address to an external device via a USB channel, including:

[0296] The main control unit uses virtual network card technology to send a second IP address to the external device through the USB channel.

[0297] As an optional implementation method,

[0298] The main control unit includes a first USB interface for connecting external devices; the USB channel includes a first USB interface; and / or,

[0299] The electronic device further includes a second USB interface, the main control unit includes a first USB interface, the first USB interface is connected to the second USB interface, and the second USB interface is used to connect external devices; the USB channel includes a first USB interface and a second USB interface.

[0300] As an optional implementation, the method further includes:

[0301] The main control unit receives message data sent by an external device through the USB channel, and the message data carries the second IP address;

[0302] The main control unit converts the second IP address into a target address, uses the target address to forward the packet data to the first router, and then sends the packet data to the target network through the first router.

[0303] As an optional implementation, the main control unit sends message data through the following process:

[0304] The main control unit receives message data sent by the external device based on the second IP address and the first port allocated by the external device;

[0305] The main control unit converts the second IP address into a target address and allocates a second port to the external device. Based on the target address and the second port, it forwards the packet data to the first router and sends the packet data to the target network through the first router.

[0306] As an optional implementation, the method further includes:

[0307] The main control unit stores address translation relationships; wherein, the address translation relationships include the translation relationship between the second IP address and the target address, as well as the translation relationship between the first port and the second port.

[0308] As an optional implementation, the main control unit assigns a second IP address to the external device, including:

[0309] The main control unit assigns a second IP address to the external device according to the Dynamic Host Configuration Protocol (DHCP).

[0310] As an optional implementation, the method further includes a channel switching unit, a first network card, a first interface, a second interface, and a LAN interface, wherein the main control unit includes the first interface;

[0311] The first end of the channel switching unit is connected to the first network card, the second end is connected to the first interface, and the third end is connected to the second interface. The first network card is connected to the LAN interface, and the second interface is used to connect to external devices.

[0312] The channel switching unit is used to select the target network for external devices to connect to via the first interface or the LAN interface.

[0313] As an optional implementation, the method further includes a physical switch and a second network interface card (NIC), with one end of the second NIC connected to the main control unit and the other end connected to the physical switch.

[0314] As an optional implementation, the method further includes:

[0315] The main control unit displays a channel configuration interface, which includes at least one first menu item, which is used to represent a USB channel and / or a physical channel.

[0316] In response to the user's selection of the first menu item, the connection channel between the main control device and the external device is determined.

[0317] As an optional implementation, the different data transmission channels include a USB channel and a first channel; the first interface includes a first USB interface;

[0318] The USB channel is used for external devices to send message data to the target network through the first USB interface;

[0319] The first channel is used for an external device to send packet data to a physical switch through a first network card, and the physical switch to send the packet data to a second router through a LAN interface, wherein the LAN interface is connected to the second router.

[0320] As an optional implementation, the method further includes:

[0321] The main control unit displays a sharing mode interface, which includes network sharing on and network sharing off options.

[0322] In response to the user's selection of network sharing options, the message data is transmitted through the USB channel; or,

[0323] In response to the user's selection of the network sharing option, the main control unit transmits the message data through the first channel.

[0324] As an optional implementation, the main control unit is connected to multiple external devices; the method further includes:

[0325] The main control unit assigns a second IP address to each of the multiple external devices; the multiple external devices use their respective second IP addresses to access the target network connected to the main control unit through the first router.

[0326] As an optional implementation, the method further includes:

[0327] The main control unit is connected to multiple external devices via physical channels; and / or,

[0328] The main control unit connects to multiple external devices via USB channels.

[0329] Based on the same inventive concept, embodiments of the present invention also provide a network sharing method, such as... Figure 15 As shown, the specific implementation process of this method is as follows:

[0330] Step 1500: The main control unit assigns a second IP address to the external device;

[0331] Step 1501: The main control unit receives message data sent by an external device, wherein the message data carries the second IP address;

[0332] Step 1502: The main control unit converts the second IP address into a target address, which is used by external devices to send packet data to the target network using the target address. The target network includes the target network connected to the main control unit.

[0333] In one possible embodiment, the target address includes:

[0334] First IP address; or,

[0335] The third IP address is in the same network segment as the first IP address and is different from the first IP address;

[0336] The first IP address is assigned by the first router, which is connected to the main control unit, and the main control unit connects to the target network through the first router.

[0337] Based on the same inventive concept, embodiments of the present invention also provide a network sharing method, such as... Figure 16 As shown, the specific implementation process of this method is as follows:

[0338] Step 1600: The external unit connects to the target network through the third router and obtains the sixth IP address assigned to the external unit by the third router;

[0339] Step 1601: The external unit assigns a seventh IP address to the main control device, which is used by the main control device to access the target network connected to the external unit through the third router; the network segment of the seventh IP address is different from that of the sixth IP address.

[0340] Based on the same inventive concept, this disclosure also provides a network sharing device. Since this device is the same as the device in the method of this disclosure, and the principle of the device in solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0341] like Figure 17 As shown, the device includes:

[0342] Address allocation module 1700 is used to obtain the first IP address allocated by the first router, which is used by the main control unit to connect to the target network through the first router;

[0343] The network sharing module 1701 is used to assign a second IP address to an external device, which is used by the external device to access the target network connected to the main control unit through the first router using the second IP address; the second IP address is on a different network segment than the first IP address.

[0344] Based on the same inventive concept, this disclosure also provides another network sharing device. Since this device is the same as the device in the method of this disclosure, and the principle of solving the problem by this device is similar to that of this method, the implementation of this device can refer to the implementation of the method, and the repeated parts will not be described again.

[0345] like Figure 18 As shown, the device includes:

[0346] Address allocation module 1800 is used to allocate a second IP address to external devices;

[0347] The data transmission module 1801 is used to receive message data sent by an external device, wherein the message data carries the second IP address;

[0348] Address translation module 1802 is used to translate the second IP address into a target address, which is used by an external device to send packet data to a target network using the target address, wherein the target network includes the target network connected to the main control unit.

[0349] Based on the same inventive concept, this disclosure provides a non-transient computer storage medium, which includes computer program code. When the computer program code is executed on a computer, it causes the computer to perform any of the network sharing methods discussed above. Since the principle by which the computer storage medium solves the problem is similar to that of the network sharing method, the implementation of the computer storage medium can be referred to the implementation of the method, and repeated details will not be described again.

[0350] In specific implementation, computer storage media can include: Universal Serial Bus Flash Drive (USB), portable hard drive, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, and other storage media that can store program code.

[0351] Based on the same inventive concept, this disclosure also provides a computer program product, which includes computer program code that, when executed on a computer, causes the computer to perform any of the network sharing methods discussed above. Since the principle by which the above-described computer program product solves the problem is similar to that of the network sharing method, the implementation of the above-described computer program product can be referred to the implementation of the method, and repeated details will not be elaborated further.

[0352] Computer program products may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0353] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0354] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 Devices that specify the functions in one or more boxes.

[0355] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction device, which is implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0356] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0357] Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, this disclosure is also intended to include such modifications and variations.

Claims

1. An electronic device, characterized in that, The electronic device includes a main control unit configured to perform: Obtain the first IP address assigned by the first router, which is used by the main control unit to connect to the target network through the first router; A second IP address is assigned to the external device, which is used by the external device to access the target network connected to the main control unit through the first router; the second IP address is on a different network segment than the first IP address.

2. The electronic device according to claim 1, characterized in that, The second IP address is of the same type as the first IP address.

3. The electronic device according to claim 1, characterized in that, The main control unit is further configured to execute: Receive message data sent by an external device, wherein the message data carries the second IP address; The second IP address is converted into a target address, which is used by external devices to forward the packet data to the first router, and then the first router sends the packet data to the target network.

4. The electronic device according to claim 3, characterized in that, The target address includes: First IP address; or, A third IP address that is in the same network segment as the first IP address and is different from the first IP address.

5. The electronic device according to claim 3, characterized in that, The main control unit is specifically configured to execute: Network Address Translation (NAT) technology is used to translate the second IP address into the target address.

6. The electronic device according to claim 1, characterized in that, The electronic device also includes a physical channel for connecting the main control unit to external devices; the main control unit is specifically configured to execute: The second IP address is sent to the external device through the physical channel.

7. The electronic device according to claim 6, characterized in that, The physical channel includes a physical switch, a first network interface card (NIC), and a second NIC. The main control unit is connected to the physical switch via a second network card, and the physical switch is connected to the first network card, which is used to connect external devices.

8. The electronic device according to claim 7, characterized in that, The electronic device further includes a LAN interface, the physical switch is connected to the LAN interface, and the LAN interface is used to connect to a second router; the electronic device is also configured to perform: The system receives the fourth IP address assigned by the second router through the LAN interface; transmits the fourth IP address to the first network card through the physical switch, and then transmits it to the external device through the first network card, so that the external device can access the target network through the second router; The main control unit is also configured to execute: The fifth IP address assigned by the second router is obtained through the LAN interface, and the fifth IP address is received through the physical channel, which is used by the main control unit to access the target network through the second router.

9. The electronic device according to claim 6, characterized in that, The physical channel includes a physical switch and a second network interface card; The main control unit is connected to a physical switch via a second network card. The physical switch is connected to a LAN interface, which is used to connect external devices.

10. The electronic device according to claim 6, characterized in that, The main control unit is also configured to execute: Receive message data sent by an external device through the physical channel, the message data carrying the second IP address; The second IP address is converted to a target address, and the packet data is forwarded to the first router using the target address. The packet data is then sent to the target network through the first router.

11. The electronic device according to claim 1, characterized in that, The electronic device also includes a USB channel, through which the main control unit and external devices are connected; the main control unit is further configured to perform: Send the second IP address to the external device via the USB channel.

12. The electronic device according to claim 11, characterized in that, The main control unit is specifically configured to execute: Using virtual network interface card (NIC) technology, a second IP address is sent to an external device through the USB channel.

13. The electronic device according to claim 11, characterized in that, The main control unit includes a first USB interface for connecting external devices; the USB channel includes a first USB interface; and / or, The electronic device further includes a second USB interface, the main control unit includes a first USB interface, the first USB interface is connected to the second USB interface, and the second USB interface is used to connect external devices; the USB channel includes a first USB interface and a second USB interface.

14. The electronic device according to claim 11, characterized in that, The main control unit is also configured to execute: Receive message data sent by an external device through the USB channel, the message data carrying the second IP address; The second IP address is converted to the target address, and the packet data is forwarded to the first router using the target address. The packet data is then sent to the target network through the first router.

15. The electronic device according to claim 10 or 14, characterized in that, The main control unit is specifically configured to send message data through the following process: Receive message data sent by the external device based on the second IP address and the first port assigned by the external device; The second IP address is translated into a target address, and a second port is assigned to the external device. Based on the target address and the second port, the packet data is forwarded to the first router, and then the packet data is sent to the target network through the first router.

16. The electronic device according to claim 15, characterized in that, The main control unit is also configured to execute: The storage address translation relationship includes the translation relationship between the second IP address and the target address, as well as the translation relationship between the first port and the second port.

17. The electronic device according to claim 1, characterized in that, The main control unit is specifically configured to execute: According to the Dynamic Host Configuration Protocol (DHCP), a second IP address is assigned to the external device.

18. The electronic device according to claim 11, characterized in that, The electronic device further includes a channel switching unit, a first network card, a first interface, a second interface, and a LAN interface; the main control unit includes the first interface. The first end of the channel switching unit is connected to the first network card, the second end is connected to the first interface, and the third end is connected to the second interface. The first network card is connected to the LAN interface, and the second interface is used to connect to external devices. The channel switching unit is used to select the target network for external devices to connect to via the first interface or the LAN interface.

19. The electronic device according to claim 18, characterized in that, The electronic device also includes a physical switch and a second network interface card (NIC). One end of the second NIC is connected to the main control unit, and the other end is connected to the physical switch.

20. The electronic device according to claim 19, characterized in that, The main control unit is also configured to execute: Display channel configuration interface, the channel configuration interface including at least one first menu item, the at least one first menu item being used to represent USB channel and / or physical channel; In response to the user's selection of the first menu item, the connection channel between the main control device and the external device is determined.

21. The electronic device according to claim 18, characterized in that, The different data transmission channels include a USB channel and a first channel; the first interface includes a first USB interface; The USB channel is used for external devices to send message data to the target network through the first USB interface; The first channel is used for an external device to send packet data to a physical switch through a first network card, and the physical switch to send the packet data to a second router through a LAN interface, wherein the LAN interface is connected to the second router.

22. The electronic device according to claim 21, characterized in that, The main control unit is also configured to execute: The sharing mode interface is displayed, which includes network sharing on and network sharing off options; In response to the user's selection of network sharing options, the message data is transmitted through the USB channel; or, In response to the user's selection of the network sharing option, the message data is transmitted through the first channel.

23. The electronic device according to claim 1, characterized in that, The main control unit is connected to multiple external devices; the main control unit is also configured to execute: Assign a second IP address to each of the multiple external devices; so that the multiple external devices can access the target network connected to the main control unit through the first router using their respective second IP addresses.

24. The electronic device according to claim 23, characterized in that, The electronic device also includes: The main control unit is connected to multiple external devices via physical channels; and / or, The main control unit connects to multiple external devices via USB channels.

25. An electronic device, characterized in that, The electronic device includes a main control unit configured to perform: Assign a second IP address to the external device; Receive message data sent by an external device, wherein the message data carries the second IP address; The second IP address is converted into a target address, which is used by external devices to send packet data to a target network, wherein the target network includes the target network connected to the main control unit.

26. The electronic device according to claim 25, characterized in that, The target address includes: First IP address; or, The third IP address is in the same network segment as the first IP address and is different from the first IP address; The first IP address is assigned by the first router, which is connected to the main control unit, and the main control unit connects to the target network through the first router.

27. An electronic device, characterized in that, The electronic device includes an external unit configured to perform: The external unit connects to the target network through a third router and obtains the sixth IP address assigned to the external unit by the third router; The external unit assigns a seventh IP address to the main control device, which is used by the main control device to access the target network connected to the external unit through the third router; the network segment of the seventh IP address is different from that of the sixth IP address.

28. A network sharing method, characterized in that, The method includes: The main control unit obtains the first IP address assigned by the first router, which is used by the main control unit to connect to the target network through the first router; The main control unit assigns a second IP address to the external device, which is used by the external device to access the target network connected to the main control unit through the first router; the second IP address is on a different network segment than the first IP address.

29. A network sharing method, characterized in that, The method includes: The main control unit assigns a second IP address to the external device; The main control unit receives message data sent by an external device, the message data carrying the second IP address; The main control unit converts the second IP address into a target address, which is used by external devices to send packet data to a target network. The target network includes the target network to which the main control unit is connected.

30. A non-transient computer storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in claim 28 or 29.