A display device and a smart routing method based on USB path

By setting up multiple network cards in a split-type smart TV and utilizing USB network sharing services, the priority of routing rules is dynamically monitored and adjusted, enabling different applications to automatically access the corresponding network links. This solves the problem of users manually switching networks and improves the user experience.

CN115914732BActive Publication Date: 2026-03-06HISENSE VISUAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111163116.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2026-03-06
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

In split-type smart TVs, users need to manually switch network links when specific applications require data to obtain data through a dedicated network link, resulting in a poor user experience.

Method used

By setting up multiple network cards in the display device and utilizing the USB network sharing service, the network card access status is dynamically monitored, routing rules are created, and priorities are adjusted, enabling different applications to automatically access the corresponding network links and achieve simultaneous access to multiple network links.

Benefits of technology

No need to manually switch network links, improving the user experience and ensuring that specific applications can automatically access the WAN through dedicated or regular network links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914732B_ABST
    Figure CN115914732B_ABST
Patent Text Reader

Abstract

This application provides a display device and a smart routing method based on a USB path. The method includes: when the display is connected to a dock via a wireless network interface, creating a first service to enable USB network sharing, and dynamically sharing the connected network card to the USB network; when a second wired network card is connected to a second network link, controlling the first service to start the wireless network card, and controlling the second wired network card to share on the USB network path; when the first wired network card is connected to the first network link, writing the first wired network card address obtained by control into the first wired network card and the kernel; creating routing rules for the first wired network card according to the first wired network card address, and adding the routing rules to a first routing table; creating a priority value corresponding to the first routing table, such that the priority of the first routing table is higher than the priority of the second routing table, wherein the second routing table is a routing table configured with the routing rules of the second wired network card.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display device technology, and more specifically, to a display device and a smart routing method based on a USB path. Background Technology

[0002] With the development of smart technology and industry, smart TVs have replaced traditional forms with new display formats. For example, the new generation of smart TVs consists of two parts: a display screen and a stand.

[0003] In some network connectivity implementations, when the display is connected to the dock, it can join a wired network via the dock's wired network interface to access the internet. When the display is detached from the dock, it connects to the dock via a USB cable. Based on the Android system's remote network driver interface protocol, the remote network driver interface protocol allows the display to share the wired network connected to the dock via a USB cable.

[0004] However, for smart TVs that are already connected to a regular network link, if certain applications require data to run via a dedicated network link, such as a community video doorbell or community video clinic application running on a smart TV via a community dedicated network, and the remote network driver interface protocol function in the Android system can only be shared with a wired network on the dock, then the user needs to manually control the Android TV to switch from a regular network link to a dedicated network link in order to achieve dedicated network support for specific applications. Summary of the Invention

[0005] To address the issue of requiring manual control of Android TVs to switch from ordinary network links to dedicated network links when certain applications require data acquisition via a dedicated network link to function in split-type smart TVs, this application provides a display device and a smart routing method based on a USB path.

[0006] The embodiments of this application are implemented as follows:

[0007] A first aspect of this application provides a display device, including:

[0008] A display is used to show a user interface containing a first application and a second application; a dock is connected to the display via a USB network interface; a network interface card (NIC) includes a first wired NIC, a second wired NIC, and a wireless NIC; a controller is configured to: when the display is connected to the dock, create a first service for enabling USB network sharing, the first service monitoring the access status of the wireless NIC and dynamically sharing the first and second wired NICs to the USB network; when the second wired NIC is connected to a second network link, control the first service to start USB network sharing and control the second wired NIC to share to the USB network path, so that the second application can access the second network via the second network. The wired network card accesses the wide area network (WAN) via a second network link. When the first wired network card accesses the first network link, the address of the first wired network card is obtained and written to the first wired network card and the kernel, so that the first application can access the WAN through the first network link accessed by the first wired network card. The first network link and the second network link can access the WAN simultaneously. Routing rules for the first wired network card are created based on the address of the first wired network card, and the routing rules are added to the first routing table. A priority value corresponding to the first routing table is created, such that the priority of the first routing table is higher than the priority of the second routing table, where the second routing table is a routing table configured with routing rules for the second wired network card.

[0009] A second aspect of this application provides a smart routing method based on a USB path, the method comprising:

[0010] When the monitor is connected to the dock, a first service is created to enable USB network sharing. The first service can monitor the access status of the wireless network card and dynamically share the first wired network card and the second wired network card to the USB network.

[0011] When the second wired network card connects to the second network link, the first service is controlled to start the USB network sharing and the second wired network card is controlled to share to the USB network path, so that the second application can access the wide area network through the second network link connected by the second wired network card;

[0012] When the first wired network card connects to the first network link, the address of the first wired network card is obtained and written to the first wired network card and the kernel, so that the first application can access the wide area network through the first network link connected by the first wired network card. The first network link and the second network link can be connected to the wide area network at the same time.

[0013] Create routing rules for the first wired network card based on the first wired network card address, and add the routing rules to the first routing table;

[0014] Create a priority value for the first routing table, such that the priority of the first routing table is higher than the priority of the second routing table, where the second routing table is a routing table configured with routing rules for the second wired network card.

[0015] The beneficial effects of this application are as follows: By enabling USB network sharing and dynamically sharing the connected network card to the wireless network interface, the second wired network card is first shared to the USB network path, so that the second application can access the wide area network through the second network link accessed by the second wired network card; furthermore, when the first wired network card accesses the first network link, by adjusting the priority value of the first routing table corresponding to the first wired network card, the priority of the first routing table is made higher than the priority of the second routing table corresponding to the second wired network card, thereby realizing that when the device accesses multiple network links at the same time, the foreground application can have a dedicated network link through USB network sharing. That is, the first application can access the wide area network through the first network link accessed by the first wired network card, and the second application can access the wide area network through the second network link accessed by the second wired network card, without having to manually switch from a normal network link to a dedicated network link, thus improving the user's network experience for the foreground application. Attached Figure Description

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

[0017] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device according to one or more embodiments of this application;

[0018] Figure 2 This is a hardware configuration block diagram of a display device 200 according to one or more embodiments of this application;

[0019] Figure 3 This is a hardware configuration block diagram of a control device 100 according to one or more embodiments of this application;

[0020] Figure 4 This is a schematic diagram of the software configuration in a display device 200 according to one or more embodiments of this application;

[0021] Figure 5 This is a schematic diagram showing the icon control interface of an application in a display device 200 according to one or more embodiments of this application;

[0022] Figure 6A schematic diagram of the structure of a split-type smart TV according to an embodiment of this application is shown;

[0023] Figure 7 This application shows a schematic diagram illustrating an application scenario of a smart TV according to an embodiment of the present application;

[0024] Figure 8 A schematic diagram of the boot screen of a smart TV according to an embodiment of this application is shown;

[0025] Figure 9 A schematic diagram of the user interface of a smart TV according to an embodiment of this application is shown;

[0026] Figure 10 A schematic diagram of the user interface of a smart TV according to another embodiment of this application is shown;

[0027] Figure 11 A schematic diagram of the user interface of a smart TV according to another embodiment of this application is shown;

[0028] Figure 12 A schematic diagram of the user interface of a smart TV according to another embodiment of this application is shown;

[0029] Figure 13 A schematic diagram of the user interface of a smart TV according to another embodiment of this application is shown;

[0030] Figure 14 A schematic diagram of the user interface of a smart TV according to another embodiment of this application is shown;

[0031] Figure 15 A schematic diagram of a USB network service sharing process according to an embodiment of this application is shown;

[0032] Figure 16 This paper illustrates a flowchart of an embodiment of the present application for enabling USB network sharing and opening the remote network driver interface protocol.

[0033] Figure 17 This illustration shows a schematic diagram of the process for obtaining a first wired network card node according to an embodiment of this application;

[0034] Figure 18 This illustration shows a schematic diagram of the routing rule creation process according to an embodiment of this application;

[0035] Figure 19 This paper illustrates the overall flow diagram of the interaction process between the display and the base at both ends according to an embodiment of this application. Detailed Implementation

[0036] To make the objectives, implementation methods and advantages of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.

[0037] Based on the exemplary embodiments described in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the appended claims. Furthermore, although the disclosures in this application are presented by way of one or more exemplary examples, it should be understood that each aspect of these disclosures can constitute a complete implementation on its own. It should be noted that the brief descriptions of terminology in this application are merely for the convenience of understanding the embodiments described below, and are not intended to limit the implementation of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0038] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device according to one or more embodiments of this application, such as... Figure 1 As shown, a user can operate the display device 200 via a mobile terminal 300 and a control device 100. The control device 100 can be a remote control, and communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user commands through buttons on the remote control, voice input, control panel input, etc., to control the display device 200. In some embodiments, a mobile terminal, tablet computer, computer, laptop computer, and other smart devices can also be used to control the display device 200.

[0039] In some embodiments, the mobile terminal 300 can install software applications with the display device 200 to achieve connection and communication via network communication protocols, enabling one-to-one control operations and data communication. Audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 for synchronous display. The display device 200 also communicates with the server 400 via various communication methods. The display device 200 can communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 can provide various content and interactive features to the display device 200. The display device 200 can be a liquid crystal display, an OLED display, or a projection display device. In addition to providing broadcast television reception functions, the display device 200 can also be equipped with a smart network television function that provides computer support.

[0040] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input commands and convert them into commands that the display device 200 can recognize and respond to, acting as an intermediary for interaction between the user and the display device 200. The communication interface 130 is used for external communication and includes at least one of a Wi-Fi chip, a Bluetooth module, NFC, or a replacement module. The user input / output interface 140 includes at least one of a microphone, a touchpad, a sensor, buttons, or a replacement module.

[0041] Figure 3 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown. For example... Figure 3 The display device 200 shown includes at least one of the following: a tuner / demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to nth interface for input / output. The display 260 can be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and can also be a projection device and a projection screen. The tuner / demodulator 210 receives broadcast television signals via wired or wireless reception and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. The detector 230 is used to collect signals from the external environment or signals interacting with the external environment. The controller 250 and the tuner / demodulator 210 can be located in different separate devices; that is, the tuner / demodulator 210 can also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0042] The communicator 220 may include multiple communication modules, which may include one or more of the following types: Wi-Fi module, Bluetooth module, wired Ethernet module, etc. Each of these modules may consist of one or more modules. For example, the communicator 220 may include at least two wired Ethernet modules and one Wi-Fi module. Different communication modules can be used to connect to the same network or to connect to different networks. Each communication module can perform data transmission independently or collaboratively. For example, multiple communication modules can be used simultaneously for independent data transmission, different communication modules can be used for data transmission in different application scenarios, or one communication module can be used for partial data transmission while another communication module or external device interface is used for the remaining data transmission. The data transmission method of each network module can be controlled by the controller 250.

[0043] In some embodiments, multiple communication modules (e.g., two wired Ethernet modules, two Wi-Fi modules, or one wired Ethernet module and one Wi-Fi module, etc.) can be connected to the home network simultaneously to enable wide area network access. Each of these communication modules can be independently configured with a different IP address, and each can independently complete data transmission, or each can transmit a portion of the data, thereby coordinating to complete data transmission.

[0044] In other embodiments, at least one communication module (e.g., a wired Ethernet module or a Wi-Fi module) may be connected to the community network for calling elevators or video doorbell intercoms; alternatively, a communication module (e.g., a Bluetooth module) or an external device interface (e.g., USB or HDMI) may be used to connect to other smart devices (e.g., smart home appliances or smart sensors) to enable data transmission or control between smart devices. Data transmission between smart devices can be achieved using both a communication module and an external device interface, and this application does not limit this approach.

[0045] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200. The user can input user commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, the user can input user commands by entering specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.

[0046] In some embodiments, a "user interface" is the medium through which an application or operating system interacts and exchanges information with a user, enabling the conversion between the internal form of information and a form acceptable to the user. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include at least one of the visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0047] Figure 4 This is a schematic diagram of the software configuration in a display device 200 according to one or more embodiments of this application, such as... Figure 4As shown, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android runtime and system library layer (referred to as the "System Runtime Layer"), and the kernel layer. The kernel layer contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, Wi-Fi driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0048] Figure 5 This is a schematic diagram showing the icon control interface of an application in a display device 200 according to one or more embodiments of this application, such as... Figure 5 As shown, the application layer contains at least one application whose corresponding icon control can be displayed on the screen, such as: live TV application icon control, video-on-demand application icon control, media center application icon control, application center icon control, game application icon control, etc. Live TV applications can provide live television from different signal sources. Video-on-demand applications can provide video from different storage sources. Unlike live TV applications, video-on-demand provides video display from certain storage sources. Media center applications can provide applications for playing various multimedia content. The application center can provide storage for various applications.

[0049] With the development of smart terminal technology, smart terminals have become important tools in people's lives. As a display device, a smart terminal can connect to the network through a smart gateway. Therefore, a smart gateway can realize the interconnection between terminals within a home network and communication with external networks. Android-based smart terminals include smart TVs, mobile phones, tablets, dashcams, wearable watches, glasses, and more.

[0050] With the development of smart terminal technology, a new type of smart home has gradually emerged, replacing traditional home appliances, such as the Brilliant Remote Control, the Magic Cube Screen, and the Magic Cube Screen Pro. Taking the Magic Cube Screen as an example, as a new type of smart home, it is equipped with a smart software system. This system can realize multiple functions and pre-install various applications, providing users with rich content services.

[0051] The embodiments of this application can be applied to various types of display devices (including but not limited to: smart TVs, LCD TVs, etc.).

[0052] In some application scenarios, based on different user needs, new structural improvements have been proposed for smart TVs, such as the split-type smart TV, which consists of a display screen and a stand. The display screen and stand each have their own independent operating system. The stand is typically equipped with a network cable interface for connecting to a network link. The display screen, while displaying the user interface for the first and second applications, also has a USB network interface on its back or bottom for connecting to the stand's network link via a USB wireless network adapter. The display screen can connect to the stand via a 12-pin connector or a USB cable to share the stand's wired network. Simultaneously, the display screen can also connect to Wi-Fi via its built-in Android system. When the display is connected to the base, it can directly connect to the wired network on the base via a wired network card, or connect to the wireless network through its own system. When the display is detached from the base, it connects to the base via a USB cable and shares the wired network on the base via the USB cable, or connects to the wireless network through its own system. However, for smart TVs that are already connected to a regular network link, if certain applications require data to run via a dedicated network link, such as a community video doorbell or community video clinic application running on a smart TV via a community dedicated network, then for split-type smart TVs, the base must be equipped with at least two wired network link inputs: one for accessing a dedicated network link and the other for accessing a regular network link. However, the Android system's function of opening the remote network driver interface protocol via USB network path can only share one wired network on the base. In this case, the user needs to manually control the Android TV to switch from a regular network link to a dedicated network link to achieve dedicated network support for specific applications.

[0053] Based on this, the following text will take a smart TV as an example to describe the display device provided in this embodiment and the seamless network configuration control method based on the USB channel.

[0054] In some embodiments, please refer to the appendix. Figure 6 In some embodiments, please refer to the appendix. Figure 6 The smart TV includes: a display for showing a user interface containing applications; a stand connected to the display via a USB network interface; and network cards, including a first wired network card, a second wired network card, and a wireless network card. The display is connected to the stand via a USB cable and connects to a wired network accessed on the stand via the USB network path. It should be noted that both the display and the stand are equipped with wireless network cards. The wireless network card on the display is used to access a dedicated network link when detached from the stand, enabling independent internet access for the display when separated from the stand.

[0055] In some embodiments, the network interface card (NIC) includes a first wired NIC, a second wired NIC, and a wireless NIC; wherein the first wired NIC and the second wired NIC of the smart TV can simultaneously access different network links, or the first wired NIC and the wireless NIC of the display device can simultaneously access different network links, so that the display device can simultaneously access the first network link and the second network link. Specifically, the smart TV also includes a first network cable interface connected to the first wired NIC and a second network cable interface connected to the second wired NIC, both disposed on the base.

[0056] In some embodiments, the smart TV can be used as such Figure 7 The application scenario shown is that the smart TV, as a home tablet, has one network communication channel that can be used to connect to the network router within the community's local area network, thus enabling communication with door stations, property management machines, and community servers, and accessing the wide area network through the first wired network card corresponding to the first network link; the other network communication channel can be used to connect to the home network router connected to the Internet, including wired and wireless networks, thus enabling the use of games, audio and video applications, etc., that require Internet connectivity, and accessing the wide area network through the second wired network card or wireless network corresponding to the second network link.

[0057] In some embodiments, when the display starts up, a user-sent application launch command is received; upon receiving the user-sent application launch command, the network segment to which the application data belongs is determined, so that different applications can access the local area network through different network links based on different routing rules.

[0058] In some embodiments, the smart TV receives a user-sent command to launch an application when the display is turned on. Figure 8 This shows the display interface when the device is powered on on a smart TV monitor.

[0059] Figure 9 A schematic diagram of the user interface of a smart TV according to an embodiment of this application is shown, such as... Figure 9 As shown, the smart TV display has a first application installed for community network applications, including an intercom doorbell application, a community video clinic application, and an elevator or smart lock calling application; it also has a second application installed for general network applications, namely a first video application, a second video application, and a third video application for video playback.

[0060] In some embodiments, community network applications include data generated during the use of applications such as video intercom, elevator calling, or smart door locks. For example, when the elevator calling application is opened on a smart TV, the relevant interface of the elevator calling application is displayed on the screen, and the elevator is successfully called by the user's input command. When the user launches a first application on the display interface, where "first application" is a general term including community network applications, the controller, after receiving the launch command, controls the data generated by the relevant application to communicate via the first wired network card corresponding to its corresponding first link network. For example, when the controller detects that the relevant function of the video intercom application has been launched, it controls the display to show the video intercom screen on the display interface. During the use of such community applications, the data generated by the relevant application is controlled to communicate via the first wired network card corresponding to its corresponding first link network. For example, when the smart TV only launches the intercom doorbell application, the controller will control the first wired network card to drive its corresponding first network link to provide data communication for the first application playing a video program on the foreground user interface. It can also be understood that the intercom doorbell application launched on the foreground user interface at this moment communicates via the first wired network card of the smart TV, such as... Figure 10 As shown in the image.

[0061] In some application scenarios, smart TVs connect to the intercom doorbell at the user's door via a dedicated link network. When the intercom doorbell is activated, because the smart TV is a split type, the base can be disconnected from the display, but this does not affect the normal use of the network path. Users can then establish a connection with the doorbell device through the display from a distance from the base, thereby improving the user experience. This avoids the problem of traditional integrated display devices where the screen and base are fixedly connected, and users can only use the display device when they reach a specific location, thus enhancing the user experience.

[0062] In some embodiments, ordinary application data refers to commonly used internet data, such as when an application on a smart TV needs to connect to the internet to access media resources, browse the web, or play videos. The user launches these applications through the smart TV desktop. Figure 9 The second application shown, if it is not a community network application, will, after its launch, control the data generated by the application to communicate via the second wired or wireless network card corresponding to its second network link. For example, when the smart TV only launches the first video application, the controller will control the second wired network card to drive its corresponding second network link, providing data communication for the second application playing a video program in the foreground user interface. This can also be understood as the video program in the foreground user interface communicating via the smart TV's second wired network card at this moment. Figure 11As shown in the diagram. For example, when a smart TV only launches the first video application, the controller will control the wireless network card to drive its corresponding second network link, providing data communication for the second application playing the video program in the foreground user interface. This can also be understood as the video program in the foreground user interface communicating via the smart TV's wireless network card at this moment, such as... Figure 12 As shown in the image.

[0063] In some embodiments, when a smart TV can use multiple networks, its first wired network card and second wired network card can simultaneously access different network links. While playing a video application in a second application via the network link accessed by the second wired network card, the smart TV can also simultaneously control a community application to perform corresponding operations via the first wired network card. For example, while playing the first video application on the smart TV, the user can use an elevator call application to call the elevator, or receive a doorbell call from the outside world via a smart door lock application. Figure 13 As shown.

[0064] In some embodiments, the first wired network card and the wireless network card of the smart TV can simultaneously access different network links, so that the display device can simultaneously access the first network link and the second network link. Although the network cards accessed are different, the smart TV interface display is the same as when both the first and second wired network cards are connected, such as... Figure 14 As shown.

[0065] Therefore, if an application does not select the appropriate network for transmission during use, it cannot perform its functions. For example, in this embodiment, community-type applications are controlled to communicate via the first wired network card corresponding to the first link network, while non-community-type applications, i.e., traditional network data resource transmission applications, are controlled to communicate via the second wired network card corresponding to the second network link. If the network is not configured with the appropriate network channel as required during setup, the aforementioned dedicated network transmission cannot be achieved, and the relevant applications will fail to start.

[0066] The above-described implementation of network access for different types of applications on different network links is based on the intelligent routing method based on USB pathways provided in this embodiment. The method will be described in detail below.

[0067] The USB-based smart routing method provided in this application embodiment, used in the aforementioned smart TV, includes:

[0068] The docking station initiates the remote network driver interface protocol scheme, sharing the second wired network card with the USB network service. Please refer to the appendix. Figure 15 Specifically, it includes the following steps:

[0069] S11: When the monitor is connected to the dock via the USB interface, a first service is created to enable USB network sharing. The first service can monitor the access status of the network card and dynamically share the connected network card to the USB interface.

[0070] By dynamically sharing the connected network card to the USB interface, the USB interface can detect the connected network card and achieve dynamic interface sharing. This means that the USB interface performs interface conversion based on different network cards, enabling different application data to access different network links through USB network sharing. It should be noted that the description of dynamically sharing the connected network card to the USB interface in this embodiment can also be expressed as dynamically NATing the connected network card to the USB interface; the English expressions have the same meaning.

[0071] It should be noted that the first service mentioned above, which monitors the network card accessing the network link, specifically includes the first service: monitoring the second wired network card accessing the wired network link; or monitoring the wireless network card accessing the wireless network link.

[0072] In some embodiments, based on such Figure 6 The use case of the split-type smart TV shown requires that both the first and second wired network cards connected to the base be shared on the USB network path, so that when the monitor is connected to the base via a USB cable, it can use the multiple network links on the base.

[0073] S12: When the second wired network card accesses the second network link, control the first service to start the USB wireless network card and control the second wired network card to share to the USB network, so that the second application can access the wide area network through the second network link accessed by the second wired network card.

[0074] Figure 16 Flowchart for enabling USB network sharing and opening remote network driver interface protocol functions.

[0075] In some embodiments, please refer to the appendix. Figure 16 When the monitor is connected to the dock via USB, the first service created can detect the USB wireless network card accessing the kernel and control the kernel to notify the network daemon through an event mechanism. When the network daemon receives the notification, it will start the network process service to notify the network share to add a network interface, so that the network process can control the USB network share to start automatically after listening to the message.

[0076] After USB network sharing is automatically enabled, the network process connects to the network management class server through the network management class client, and then connects to the sharing class. Next, the control calls the network service class, which sends instructions to the underlying network service class via a daemon thread. Finally, the underlying network service class sends commands to the kernel to enable the remote network driver interface protocol.

[0077] After the remote network driver interface protocol function is enabled, when the second wired network card is connected to the second network link, the controller writes a network proxy class containing the address of the second wired network card obtained based on the Android framework process into the second wired network card and the kernel. This allows the second application to access the wide area network through the second network link accessed by the second wired network card. Since the second wired network card, i.e., the second wired network or wireless network, is based on the native process of the Android framework, it will be automatically shared to the USB network path when the remote network driver interface protocol is enabled. Therefore, the first service can control the second wired network card, i.e., the second wired network or USB network, to be shared to the USB network path after starting the USB wireless network card and enabling the remote network driver interface protocol function. This allows the second application to access the wide area network through the second network link accessed by the second wired network card, i.e., the second wired network or wireless network.

[0078] In some embodiments, the controller writes a network proxy class containing the address of the second wired network card obtained based on the Android framework process into the second wired network card and the kernel. Specifically, the controller controls the network daemon to send network listening messages to the Ethernet tracing class to create an Ethernet factory class, so that the Internet Protocol Control Service obtains the address of the second wired network card; and writes the network proxy class containing the address of the second wired network card into the second wired network card and the kernel.

[0079] S13: When the first wired network card is connected to the first network link, the address of the first wired network card obtained by the Dynamic Host Configuration Protocol (DHCP) server through the DHCP client is written into the first wired network card and the kernel, so that the first application can access the wide area network through the first network link connected by the first wired network card. The first network link and the second network link can be connected to the wide area network at the same time.

[0080] In some embodiments, since the second wired network card, i.e. the second wired network or wireless network, obtains its IP address based on the native Android process, it will be automatically shared to the USB wireless network card when the remote network driver interface protocol switch is turned on. However, the first wired network needs to obtain its IP address through the Dynamic Host Configuration Protocol client. Therefore, it is not shared by default. It needs to obtain its IP address successfully before sharing the first wired network to the USB network path.

[0081] Figure 17 A schematic diagram of the process for obtaining the first wired network card node.

[0082] When the first wired network interface card (NIC) connects to the first network link, it first listens on the first wired NIC node / sys / class / net / USB0. If the first wired NIC node exists, the Dynamic Host Configuration Protocol (DHCP) client starts to obtain the IP address of the first wired NIC. If it does not exist, it continues to wait. The DHCP server obtains the IP address, writes it to the NIC, and then registers it with the kernel.

[0083] When the first network link passes Figure 6 When the first wired network interface shown is connected to the smart TV, the controller will detect the existence of the first wired network card node, start the Dynamic Host Configuration Protocol client service and enter the waiting state to obtain the IP address of the first wired network.

[0084] Based on this, in some embodiments, the controller is configured to perform the following actions to listen to the first wired network card node corresponding to the first network link and obtain the first wired network card address: listening to the first wired network card node corresponding to the first network link; if the first wired network card node corresponding to the first network link exists, then obtaining the first wired network card address; if the first wired network card node corresponding to the first network link does not exist, indicating that the first wired network is not connected, then waiting to obtain the first wired network card address.

[0085] The Dynamic Host Configuration Protocol (DHCP) server obtains the IP address, writes it into the network interface card (NIC), and then registers it with the kernel, so that the first application can access the wide area network (WAN) through the first network link accessed by the first wired NIC.

[0086] After the Dynamic Host Configuration Protocol (DHCP) client successfully obtains an IP address, it adds a routing rule to the routing table USB0, specifying that default data should use the USB network path. Then, it adjusts the priority of the USB0 routing table to be higher than other user routing tables, specifically including the following steps:

[0087] Figure 18 A flowchart illustrating the process of creating routing rules.

[0088] S21: Create routing rules for the first wired network card based on the address of the first wired network card, and add the routing rules to the first routing table.

[0089] In the system routing table, routing tables have a priority relationship; the smaller the priority value, the higher the level. When data transmission is detected, the system routing table determines the wired network to transmit via the highest-priority routing rule based on priority. Therefore, after establishing the routing table, the priority values ​​of the corresponding routing tables need to be set. In this embodiment, the priority of the first wired network card's routing table is created so that its priority is higher than that of the second wired network card and the wireless network card. During data transmission, the first wired network card corresponding to the first network link is prioritized for transmission. If the data does not belong to the network segment corresponding to the first wired network, then the second wired network card or the wireless network card is selected for data transmission.

[0090] In some embodiments, a routing rule for default data to go through the first routing table is added to the first routing table. After receiving application data transmitted from the display, the network segment to which the application data belongs is first determined. If the network segment of the application does not belong to the network segment of the first wired network card corresponding to the first network link, it is then assigned to the second wired network card corresponding to the second network link.

[0091] S22: Create a value corresponding to the priority of the first routing table, such that the priority of the first routing table is higher than the priority of the second routing table, where the second routing table is a routing table configured with routing rules for the second wired network card.

[0092] In some embodiments, the priority value corresponding to the first routing table can be created in the following way: First, obtain the value of the second priority in the system routing table, that is, the priority that is second only to the local routing table. If the value of the second priority is less than 10000, it indicates that a route has been created under this priority. Set the routing table corresponding to this priority as routing table num, then query the routing configuration information stored in the routing table num corresponding to the second priority, and delete it. At the same time, the routing table corresponding to the priority value is deleted within a preset value, which is between 0 and 10000, excluding 0 and 10000.

[0093] If the value of the second priority is not less than 10000, it indicates that this is the first time a routing table has been created in the second priority category. A preset value is taken as the value of the second priority, and the first priority table is added to this priority category.

[0094] By configuring the routing tables as described above, the first routing table has a higher priority than the second routing table. It should be noted that the second routing table is the one configured with routing rules for both the second wired and wireless network cards. When data transmission is detected, the routing rule corresponding to the first routing table will be selected first due to its higher priority. This allows community-related applications to communicate via the first wired network card corresponding to the first network link, while non-community-related applications, i.e., traditional network data resource transmission applications, communicate via the second wired network card corresponding to the second network link. Furthermore, the priority values ​​described above are merely examples; those skilled in the art can set different values ​​as needed.

[0095] In some embodiments, when a user's instruction to enable the first application on a smart TV is received, the system first determines which network segment the data generated by the application belongs to. For example, the routing rules of the first wired network card are set to the IP address range of the first wired network as 192.168.1. If so, it is located in the network segment 192.168.1. All IP addresses in the network are transmitted through the first wired network. For example, if the obtained IP address is 192.168.1.100 and the subnet mask is 255.255.255.0, it is determined that this network segment belongs to the IP address range of the first wired network. Therefore, all data transmission is carried out through the first wired network card corresponding to the first network link. If the obtained IP address does not belong to the IP address range of the first wired network, it will be assigned to follow the routing rules of the second routing table according to the priority order, and all application data transmission will be carried out through the second wired network card or wireless network card corresponding to the second network link.

[0096] Figure 19 The schematic diagram of the overall interaction process between the display and the base of the USB-based smart routing method provided in this application embodiment includes the entire process of obtaining IP, writing IP, data transmission, and smart routing. When it is necessary to obtain the IP addresses of both the first wired network and the second wired network simultaneously, this is done in the following manner:

[0097] In some embodiments, when a wired network accesses a device, the network daemon notifies the Ethernet tracing class, which then obtains an IP address through the Internet Protocol controller in the Ethernet factory class. After obtaining the IP address, both wired networks generate network proxy objects and register them with the network connection management service. Finally, the network connection management service scores the connections to determine which network to connect to and then notifies the kernel. If both wired networks have the same score, the later-connected wired network will be discarded.

[0098] In some embodiments, when obtaining IP addresses for a dual-wired network, a service for the first wired network to obtain an IP address will be designed. First, this service will check if the first wired network node exists. If it exists, it means the network node is ready, and then the first wired network interface card (NIC) will be started. Then, the IP address will be obtained through a Dynamic Host Configuration Protocol (DHCP) client. Upon receiving the request, the DHCP server will obtain the IP address and then write the IP address and other information to the NIC.

[0099] The second wired network obtains its IP address through the same process described above. When the second wired network connects to a device, the network daemon notifies the Ethernet tracing class to create a factory class that retrieves the IP address through the Internet Protocol controller. After obtaining the IP address, the second wired network generates a network proxy object and registers it with the network connection management service. The network connection management service is then written into the kernel and network interface card (NIC) to facilitate subsequent operations.

[0100] As can be seen from the above technical solutions, the USB-based intelligent routing method provided in this embodiment achieves dual-network intelligent routing when the display is connected to the dock via a USB cable, provided that the Android system device is connected to at least two networks. This allows data to be automatically transmitted according to transmission rules. In practical applications, the USB-based intelligent routing design allows the display to share the dock's dual-network connection function via a wireless network path, and it also allows for dynamic addition of routes, enabling data to be transmitted to the two wired network cards according to rules.

[0101] The following paragraphs will compare and list the Chinese terms used in the application specification and their corresponding English terms to facilitate reading and understanding.

[0102] Remote network driver interface protocol: rndis;

[0103] Dynamic sharing: Dynamic NAT;

[0104] Event mechanism: uevent;

[0105] Network daemon: netd;

[0106] Network process service: Nmservice;

[0107] Network sharing: tethering;

[0108] Network process: TetherSettings;

[0109] Network management client: ConnectivityManager;

[0110] Network management server: ConnectivityService;

[0111] Ethernet tracing class: EthernetTracker;

[0112] Ethernet Factory Class: EthernetFactory;

[0113] Internet Protocol Controller: IPClient;

[0114] Network proxy class: NetworkAgent;

[0115] Network connectivity management service: connectivityservice;

[0116] Network connectivity management service: connectivityservice;

[0117] Kernel: kerner;

[0118] Dynamic Host Configuration Protocol (DHCP) client: udhcpc;

[0119] Dynamic Host Configuration Protocol (DHCP) server: udhcpd.

[0120] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the discussion in some embodiments above is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various different variations of the embodiments suitable for specific application considerations.

Claims

1. A display device, characterized by comprising: The application comprises: a display for displaying a user interface comprising a first application and a second application; a base connected to the display through a USB network interface; a network card comprising a first wired network card, a second wired network card and a wireless network card; a controller configured to: create a first service for starting USB network sharing when the display is connected to the base; monitor the access state of the wireless network card through the first service, and dynamically share the first wired network card and the second wired network card to the USB network; control the first service to start the USB network sharing and start a remote network driver interface protocol function when the second wired network card accesses a second network link, the remote network driver interface protocol function being configured to automatically share the second network link accessed by the second wired network card to the USB network channel, so that the second application accesses a wide area network through the second network link; wherein the second network link is a normal network link; control a dynamic host configuration protocol server to obtain the address of the first wired network card through a dynamic host configuration protocol client when the first wired network card accesses a first network link, and write the address of the first wired network card to the first wired network card and the kernel, and share the first network link accessed by the first wired network card to the USB network channel, so that the first application accesses a wide area network through the first network link accessed by the first wired network card, wherein the first network link and the second network link access the wide area network at the same time; wherein the first network link is a dedicated network link; create a routing rule of the first wired network card according to the address of the first wired network card, and add the routing rule to a first routing table; create a value of the priority corresponding to the first routing table, so that the priority of the first routing table is higher than the priority of a second routing table, and the second routing table is a routing table configured with a routing rule of the second wired network card; when the display is started, in response to an operation instruction of starting a target application, determine a network segment to which application data of the target application belongs; determine whether the network segment is within the address range of the first network link based on the first routing table; if the network segment is within the address range of the first network link, transmit the application data through the first network link; if the network segment is not within the address range of the first network link, determine whether the network segment is within the address range of the second network link based on the second routing table; if the network segment is within the address range of the second network link, transmit the application data through the second network link.

2. The display device of claim 1, wherein, The first wired network card and the second wired network card access different network links at the same time, or the first wired network card and the wireless network card access different network links at the same time, so that the display device accesses the first network link and the second network link at the same time.

3. The display device of claim 1, wherein, The controller is configured to control the first service to start the USB network sharing and control the second wired network card to be shared to the USB network channel by the following steps: When the first service monitors that the wireless network card accesses the kernel, the control kernel sends a notification to the network service through an event mechanism to notify network sharing, so that the network process controls the USB network sharing to be turned on after listening to the message; The control network process connects to the network management class service through the client network management class, and then connects to the network sharing class; The control calls the network service class to send instructions to the kernel through the network daemon thread to the underlying network service class, so that the kernel controls the remote network driver interface protocol function of the USB network to be turned on when receiving the instructions; After the remote network driver interface protocol function is turned on, the second wired network card is shared to the USB network path.

4. The display device of claim 1, wherein, The display device further comprises: A first network interface connected with the first wired network card and a second network interface connected with the second wired network card are arranged on the base.

5. A method for intelligent routing based on USB channel, characterized in that, It comprises: When the display is connected to the base through the USB network interface, a first service for turning on USB network sharing is created; The first service is used to monitor the access state of the wireless network card, and dynamically share the first wired network card and the second wired network card to the USB network; When the second wired network card accesses the second network link, the control first service starts the USB network sharing and turns on the remote network driver interface protocol function, which is configured to automatically share the second network link accessed by the second wired network card to the USB network path, so that the second application accesses the wide area network through the second network link; wherein the second network link is a normal network link; When the first wired network card accesses the first network link, the control dynamic host configuration protocol server obtains the address of the first wired network card through the dynamic host configuration protocol client, and writes the address of the first wired network card into the first wired network card and the kernel, and shares the first network link accessed by the first wired network card to the USB network path, so that the first application accesses the wide area network through the first network link accessed by the first wired network card, wherein the first network link and the second network link access the wide area network at the same time; wherein the first network link is a special network link; According to the address of the first wired network card, the routing rule of the first wired network card is created, and the routing rule is added to the first routing table; The value of the priority corresponding to the first routing table is created, so that the priority of the first routing table is higher than the priority of the second routing table, and the second routing table is a routing table configured with the routing rule of the second wired network card; When the display is started, in response to the operation instruction of starting the target application, it is determined that the network segment to which the application data of the target application belongs; Based on the first routing table, it is determined whether the network segment is within the address range of the first network link; if the network segment is within the address range of the first network link, the application data is transmitted through the first network link; If the network segment is not within the address range of the first network link, it is determined, based on the second routing table, whether the network segment is within the address range of the second network link; if the network segment is within the address range of the second network link, the application data is transmitted through the second network link.

6. The USB pass-through based intelligent routing method of claim 5, wherein, The first wired network card and the second wired network card access different network links at the same time, or the first wired network card and the wireless network card access different network links at the same time, so as to simultaneously access the first network link and the second network link.

7. The intelligent routing over USB channel based method according to claim 5, wherein, The control of the first service to start the USB network sharing and the control of the second wired network card to share to the USB network passage include: When the first service monitors that the wireless network card accesses the kernel, the kernel is controlled to send a notification to the network service through an event mechanism to notify the network sharing, so that the network process controls the USB network sharing to be started after listening to the message; The network process is controlled to connect to the network management class service through the client network management class, and then connect to the network sharing class; The network service class is controlled to send an instruction to the kernel through the network daemon thread to the underlying network service class, so that the kernel controls the remote network driver interface protocol function to be opened when receiving the instruction; After the remote network driver interface protocol function is opened, the second wired network card is controlled to share to the USB network passage.

8. The intelligent routing over USB channel based method according to claim 5, wherein, The method further includes: The first network cable interface connected with the first wired network card and the second network cable interface connected with the second wired network card are arranged on the base.

Citation Information

Patent Citations

  • Multi-network-card intelligent routing method for Android system

    CN111817962A

  • Method and device for sharing different networks, storage medium and all-in-one machine equipment

    CN112583661A