CN115914732A - Display device and intelligent routing method based on USB channel - Google Patents

Display device and intelligent routing method based on USB channel Download PDF

Info

Publication number
CN115914732A
CN115914732A CN202111163116.3A CN202111163116A CN115914732A CN 115914732 A CN115914732 A CN 115914732A CN 202111163116 A CN202111163116 A CN 202111163116A CN 115914732 A CN115914732 A CN 115914732A
Authority
CN
China
Prior art keywords
network
network card
wired
wired network
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111163116.3A
Other languages
Chinese (zh)
Inventor
刘健
吴汉勇
王秉清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202111163116.3A priority Critical patent/CN115914732A/en
Publication of CN115914732A publication Critical patent/CN115914732A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides a display device and an intelligent routing method based on a USB channel, wherein the method comprises the following steps: when a display is accessed to a base through a wireless network interface, establishing a first service for starting USB network sharing, and dynamically sharing an accessed network card to the USB network; when the second wired network card is accessed to a second network link, controlling the first service to start the wireless network card and controlling the second wired network card to be shared to the USB network channel; when the first wired network card is accessed into a first network link, writing a first wired network card address obtained by control into the first wired network card and the inner core; establishing a routing rule of the first wired network card according to the address of the first wired network card, and adding the routing rule into a first routing table; and establishing a numerical value of the priority corresponding to the first routing table, so that the priority of the first routing table is higher than that of the second routing table, and the second routing table is a routing table configured with a second wired network card routing rule.

Description

Display device and intelligent routing method based on USB channel
Technical Field
The application relates to the technical field of display equipment, in particular to display equipment and an intelligent routing method based on a USB channel.
Background
With the development of intelligent science and technology and industry, the smart television replaces the traditional form with a new display form, such as: in a new generation of smart televisions, the smart televisions are divided into a display screen and a base.
In some implementations of network connection, when the display screen is connected to the base, the display screen may join the wired network through the wired network interface of the base to implement the internet access function. When the display screen is separated from the base, the display screen is connected with the base through the USB connecting line. Remote network driver interface protocol function based on android system for the display screen can share the wired network connected on the base through the USB connecting line.
However, for the smart television with access to the common network link, if a specific application program of the smart television needs to acquire data through the dedicated network link to run, for example, when the smart television runs a community visual doorbell or a community visual outpatient service application through a community private network, the remote network driver interface protocol function in the android system can only be shared to one wired network of the base, and in this case, the user needs to manually control the android television to be switched from the common network link to the dedicated network link, so that the dedicated network support for the specific application program can be realized.
Disclosure of Invention
In order to solve the problem that the split type intelligent television needs to manually control the android television to be switched from the common network link to the special network link under the condition that a specific application program can operate only by acquiring data through the special network link, the application provides display equipment and an intelligent routing method based on a USB channel.
The embodiment of the application is realized as follows:
a first aspect of an embodiment of the present application provides a display device, including:
a display for displaying a user interface including a first application and a second application; the base is connected with the display end through a USB network interface; the network card comprises a first wired network card, a second wired network card and a wireless network card; a controller configured to: when the display is connected to the base, a first service for starting USB network sharing is established, wherein the first service can monitor the access state of a wireless network card and dynamically share the first wired network card and the second wired network card to the USB network; when a second wired network card is accessed to a second network link, controlling a first service to start the USB network sharing and controlling the second wired network card to share to the USB network path so that a second application can access a wide area network through the second network link accessed by the second wired network card; when a first wired network card is accessed into a first network link, acquiring a first wired network card address and writing the first wired network card address into the first wired network card and a kernel so that a first application can access a wide area network through the first network link accessed by the first wired network card, wherein the first network link and a second network link can be simultaneously accessed into the wide area network; establishing a routing rule of the first wired network card according to a first wired network card address, and adding the routing rule into a first routing table; and creating a numerical value of the priority corresponding to the first routing table, so that the priority of the first routing table is higher than that of a second routing table, and the second routing table is a routing table configured with a second wired network card routing rule.
A second aspect of the embodiments of the present application provides an intelligent routing method based on a USB channel, where the method includes:
when the display is connected to the base, a first service for starting USB network sharing is established, wherein the first service can monitor the access state of a wireless network card and dynamically share the first wired network card and the second wired network card to the USB network;
when a second wired network card is accessed to a second network link, controlling a first service to start the USB network sharing, and controlling a second wired network card to share to the USB network path, so that a second application can access a wide area network through the second network link accessed by the second wired network card;
when a first wired network card is accessed into a first network link, acquiring a first wired network card address and writing the first wired network card address into the first wired network card and a kernel so that a first application can access a wide area network through the first network link accessed by the first wired network card, wherein the first network link and a second network link can be simultaneously accessed into the wide area network;
establishing a routing rule of the first wired network card according to a first wired network card address, and adding the routing rule into a first routing table;
and creating a numerical value of the priority corresponding to the first routing table, so that the priority of the first routing table is higher than that of a second routing table, and the second routing table is a routing table configured with a second wired network card routing rule.
The beneficial effects of the application are that; by starting USB network sharing and dynamically sharing the accessed network card to a wireless network interface, firstly sharing a second wired network card to the USB network access, so that a second application can access a wide area network through a second network link accessed by the second wired network card; when the first wired network card is accessed into the first network link, the priority of the first routing table is higher than that of the second routing table corresponding to the second wired network card by adjusting the numerical value of the priority of the first routing table corresponding to the first wired network card, so that when the equipment is simultaneously accessed into a plurality of network links, the purpose that the foreground application can solely share the special network link is achieved through USB network sharing, namely, the first application can access the wide area network through the first network link accessed by the first wired network card, the second application can access the wide area network through the second network link accessed by the second wired network card, the common network link does not need to be manually switched to the special network link, and the network experience of the user on the foreground application is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to one or more embodiments of the present application;
fig. 2 is a block diagram of a hardware configuration of a display apparatus 200 according to one or more embodiments of the present application;
fig. 3 is a block diagram of a hardware configuration of the control apparatus 100 according to one or more embodiments of the present application;
fig. 4 is a schematic diagram of a software configuration in a display device 200 according to one or more embodiments of the present application;
FIG. 5 is a schematic illustration of an icon control interface display of an application in a display device 200 according to one or more embodiments of the present application;
fig. 6 shows a structural composition diagram of a split-type smart television according to an embodiment of the present application;
fig. 7 is a schematic view illustrating an application scenario of a smart television according to an embodiment of the present application;
fig. 8 shows a schematic diagram of a power-on interface of a smart television according to an embodiment of the present application;
fig. 9 shows a schematic user interface diagram of a smart tv according to an embodiment of the present application;
fig. 10 shows a schematic user interface diagram of a smart tv according to another embodiment of the present application;
fig. 11 is a schematic diagram illustrating a user interface of a smart tv according to another embodiment of the present application;
fig. 12 is a schematic diagram illustrating a user interface of a smart tv according to another embodiment of the present application;
fig. 13 is a schematic diagram illustrating a user interface of a smart tv according to another embodiment of the present application;
fig. 14 shows a schematic user interface diagram of a smart tv according to another embodiment of the present application;
FIG. 15 is a schematic diagram illustrating a USB network service sharing process according to an embodiment of the application;
FIG. 16 is a flow chart showing the function of the USB network sharing and the remote network driver interface protocol according to an embodiment of the present application;
fig. 17 is a schematic flow chart illustrating a process of acquiring a first wired network card node according to an embodiment of the present application;
FIG. 18 is a flow diagram illustrating a routing rule creation process according to an embodiment of the present application;
fig. 19 is a schematic overall flowchart illustrating an interaction process between a display and two ends of a base according to an embodiment of the present application.
Detailed Description
To make the objects, embodiments and advantages of the present application clearer, the following description of exemplary embodiments of the present application will clearly and completely describe the exemplary embodiments of the present application with reference to the accompanying drawings in the exemplary embodiments of the present application, and it is to be understood that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
All other embodiments, which can be derived by a person skilled in the art from the exemplary embodiments described herein without making any inventive step, are intended to be within the scope of the claims appended hereto. In addition, while the disclosure herein has been presented in terms of one or more exemplary examples, it should be appreciated that aspects of the disclosure may be implemented solely as a complete embodiment. It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control device according to one or more embodiments of the present application, as shown in fig. 1, a user may operate the display device 200 through a mobile terminal 300 and the control device 100. The control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, bluetooth protocol communication, wireless or other wired method to control the display device 200. The user may input a user command through a key on a remote controller, voice input, control panel input, etc. to control the display apparatus 200. In some embodiments, mobile terminals, tablets, computers, laptops, and other smart devices may also be used to control the display device 200.
In some embodiments, the mobile terminal 300 may install a software application with the display device 200, implement connection communication through a network communication protocol, and implement the purpose of one-to-one control operation and data communication. The audio and video contents displayed on the mobile terminal 300 may also be transmitted to the display device 200, so that the display device 200 with the synchronous display function may also perform data communication with the server 400 through multiple communication modes. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display apparatus 200. The display device 200 may be a liquid crystal display, an OLED display, or a projection display device. The display apparatus 200 may additionally provide an intelligent network television function providing a computer support function in addition to the broadcast receiving television function.
Fig. 2 exemplarily shows a block diagram of a configuration of the control apparatus 100 according to an exemplary embodiment. As shown in fig. 2, 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 apparatus 100 may receive an input operation instruction of a user and convert the operation instruction into an instruction recognizable and responsive to the display device 200, serving as an interaction intermediary between the user and the display device 200. The communication interface 130 is used for communicating with the outside, and includes at least one of a WIFI chip, a bluetooth module, NFC, or an alternative module. The user input/output interface 140 includes at least one of a microphone, a touch pad, a sensor, a key, or an alternative module.
Fig. 3 illustrates a hardware configuration block diagram of the display apparatus 200 according to an exemplary embodiment. The display apparatus 200 as shown in fig. 3 includes at least one of 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 processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, and first to nth interfaces for input/output. The display 260 may be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and may also be a projection device and a projection screen. The tuner demodulator 210 receives a broadcast television signal through a wired or wireless reception manner, and demodulates an audio/video signal, such as an EPG data signal, from a plurality of wireless or wired broadcast television signals. The detector 230 is used to collect signals of the external environment or interaction with the outside. The controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
The communicator 220 may include a plurality of communication modules, and the communication modules may include one or more of a WIFI module, a bluetooth module, a wired ethernet module, and the like, where the WIFI module, the bluetooth module, and the wired ethernet module may be one or more. For example, the communicator 220 may include at least two wired ethernet modules and one WIFI module. Different communication modules can be used for connecting the same network and can also be used for connecting different networks respectively. Each communication module can independently complete data transmission and can also complete data transmission cooperatively. For example, a plurality of communication modules may be used simultaneously to perform data transmission independently, different communication modules may be used to perform data transmission in different application scenarios, or one communication module may be used to perform partial data transmission, and another communication module or an external device interface may be used to perform another partial data transmission. The manner of data transmission of the various network modules may be controlled by controller 250.
In some embodiments, there may be multiple communication modules (e.g., two wired ethernet modules, two WIFI modules, or one wired ethernet module and one WIFI module, etc.) connected to the home network at the same time for wide area network access. The plurality of communication modules can be respectively and independently configured with different IP addresses, and can respectively and independently complete data transmission and also can respectively transmit partial data, thereby cooperatively completing data transmission.
In other embodiments, at least one communication module (such as a wired ethernet module or a WIFI module) may be connected to the community network for calling an elevator or talkbacking a visible doorbell; alternatively, there may be a communication module (e.g., a bluetooth module) or an external device interface (e.g., USB or HDMI) for connecting other intelligent devices (e.g., intelligent appliances or intelligent sensors), so as to implement data transmission or control between the intelligent devices. The data transmission between the intelligent devices can be realized by using the communication module and the external device interface at the same time, and the application is not limited to this.
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 apparatus 200. A user may input a user command on a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A commonly used presentation form of the User Interface is a Graphical User Interface (GUI), which refers to a User Interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include at least one of an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc. visual interface elements.
Fig. 4 is a schematic diagram of a software configuration in a display device 200 according to one or more embodiments of the present Application, and as shown in fig. 4, the system is divided into four layers, which are, from top to bottom, an Application (Applications) layer (abbreviated as "Application layer"), an Application Framework (Application Framework) layer (abbreviated as "Framework layer"), an android runtime (android runtime) and system library layer (abbreviated as "system runtime library layer"), and a kernel layer. The inner core layer comprises at least one of the following drivers: audio drive, display driver, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (like fingerprint sensor, temperature sensor, pressure sensor etc.) and power drive etc..
Fig. 5 is a schematic diagram illustrating an icon control interface display of an application program in the display device 200 according to one or more embodiments of the present application, as shown in fig. 5, an application layer includes at least one application program that can display a corresponding icon control in a display, for example: the system comprises a live television application icon control, a video on demand application icon control, a media center application icon control, an application center icon control, a game application icon control and the like. The live television application program can provide live television through different signal sources. A video-on-demand application may provide video from different storage sources. Unlike live television applications, video on demand provides video displays from some storage source. The media center application program can provide various applications for playing multimedia contents. The application center can provide and store various applications.
With the development of the intelligent terminal technology, the intelligent terminal becomes an important tool in the life of people, and the intelligent terminal as a display device can be connected with the network through the intelligent gateway, so that the intelligent gateway can realize interconnection between terminals in the home network and communication with an external network. The intelligent terminal of the android system comprises an intelligent television, a mobile phone, a tablet personal computer, a vehicle event data recorder, a wearable watch, glasses and the like.
In the development of intelligent terminal technique, a novel intelligent house form is born gradually, and it has replaced the household electrical appliances of traditional form, for example: bright remote controller, magic cube screen Pro, etc. Taking a magic cube screen as an example, the magic cube screen is used as a novel intelligent home and is provided with an intelligent software system, and the intelligent software system can realize various functions and pre-install various application programs, so that rich content services are provided for users.
The embodiment of the application can be applied to various types of display devices (including but not limited to smart televisions, liquid crystal televisions and the like).
In some application scenarios, new improvements are proposed to the structure of the smart television based on different requirements of users, for example, a split smart television, which includes two parts, namely a display screen and a base. The display screen and the base are respectively provided with independent operating systems, the base end is generally configured with a network interface for accessing a network link, and the display screen end is configured with a USB network interface on the back or the bottom of the display screen for accessing the network link of the base end through a USB wireless network card while being used for displaying a user interface comprising a first application and a second application. The display screen can be connected with the base end through a 12-pin interface, can also be connected with the base end through a USB connecting line and is used for sharing a wired network of the base end, and meanwhile, the display screen can also be connected with a wireless network through the configuration of a self-contained android system. When the display screen is connected with the base, the display screen can be directly connected with a wired network of the base end through a wired network card accessed by the base end, and can also be connected with a wireless network through a self system; when the display screen is separated from the base, the display screen is connected with the base end through the USB connecting line, and the wired network of the base end is shared through the USB connecting line, or the display screen can be connected with the wireless network through the system of the display screen; however, for the smart television with the access to the ordinary network link, if a specific application program of the smart television must acquire data through the dedicated network link to operate, for example, a community visible doorbell or a community visible outpatient service application is operated on the smart television through a community private network, therefore, for the split type smart television, the base end of the split type smart television is configured with at least two wired network link access ports, one is used for accessing the dedicated network link, the other is used for accessing the ordinary network link, and the remote network driving interface protocol function opened through the USB network channel in the android system can only be shared to one wired network of the base end, in which case, the user needs to manually control the android television to be switched from the ordinary network link to the dedicated network link, so as to implement the dedicated network support for the specific application program.
Based on this, the display device provided in this embodiment and the sensorless distribution network control method based on the USB channel will be described below by taking an intelligent television as an example.
In some embodiments, please refer to fig. 6, and in some embodiments, please refer to fig. 6, the smart tv includes: a display for displaying a user interface containing an application; the base is connected with the display end through a USB network interface; the network card comprises a first wired network card, a second wired network card and a wireless network card; the display end is connected with the base end through a USB connecting wire, and the display end is connected with a wired network accessed on the base through a USB network access. It should be noted that, both the display and the base are configured with a wireless network card, and the wireless network card of the display is used to access a proprietary network link through the wireless network card when the base is separated, so that independent internet access can be realized when the display is separated from the base.
In some embodiments, the network card comprises a first wired network card, a second wired network card, and a wireless network card; the first wired network card and the second wired network card of the smart television can be simultaneously accessed to different network links, or the first wired network card and the wireless network card of the display device can be simultaneously accessed to different network links, so that the display device can be simultaneously accessed to the first network link and the second network link. Specifically, the smart television further comprises a first network cable interface arranged on the base and connected with the first wired network card, and a second network cable interface connected with the second wired network card.
In some embodiments, the smart television may be used in the application scenario shown in fig. 7, that is, the smart television is used as a home tablet, and one network communication channel may be used to connect to a network route in a community local area network, so that the smart television may communicate with a portal machine, a property manager, a community server, and the like, and access to a wide area network through a first wired network card corresponding to a first network link; the other network communication channel can be used for connecting a home network route communicated with the Internet, and comprises a wired network and a wireless network, so that games, video and audio applications and the like needing to be connected with the Internet can be used, and the wide area network can be accessed through a second wired network card or the wireless network corresponding to a second network link.
In some embodiments, when the display is started, receiving an application starting operation instruction sent by a user; and when an operation instruction of starting the application by a user is received, determining the network segment to which the application data belongs so that different applications are accessed to the local area network through different network links based on different routing rules.
In some embodiments, the smart television receives an application starting operation instruction sent by a user when the display is started, and fig. 8 shows a display interface when the display of the smart television is turned on.
Fig. 9 shows a schematic diagram of a user interface of a smart television according to an embodiment of the present application, as shown in fig. 9, a first application program that is installed on a display of the smart television and can be used for a community network application includes a door intercom doorbell application, a community visual outpatient application, and an elevator call or smart door lock application; and meanwhile, installing a second application program for the common network application, namely a first video application, a second video application and a third video application which can be used for video playing.
In some embodiments, the community network application includes data generated by related applications such as video intercom, calling elevator or intelligent door lock, for example, when the calling elevator application in the intelligent television is opened, a related interface of the calling elevator application is displayed in the display, and the calling elevator is successful through an instruction of calling the elevator input by the user. When a user starts a first application on a display interface, wherein the first application is a general name including community network applications, and after the controller receives a starting instruction, the controller controls data generated by the related applications to carry out network communication through a first wired network card corresponding to a first link network corresponding to the related applications. For example, the controller controls the display to display a video intercom picture on the display interface when monitoring that the related function of the video intercom application is started. In the using process of the community application such as the community application, the data generated by the related application is controlled to carry out network communication through the first wired network card corresponding to the first link network corresponding to the related application. Illustratively, when the intelligent television only starts the talkback doorbell application, the controller controls the first wired network card to drive the corresponding first network link, so as to provide data communication for the first application of the foreground user interface playing the video program. It can also be understood that the intercom doorbell application started at this moment on the foreground user interface performs network communication through the first wired network card of the smart tv, as shown in fig. 10.
In some application scenes, the intelligent television is connected with the talkback doorbell at the user gate through the proprietary link network, when the talkback doorbell is started, because the intelligent television is split, the base end can be disconnected with the display end, but the normal use of a network access is not influenced, the user can establish connection with the doorbell equipment through the display at a position far away from the base end, so that the user experience is improved, the problem that the user can only use the display equipment when reaching a specified position is avoided, and the user experience is improved.
In some embodiments, when applications such as media resources need to be opened on the smart television, and web browsing or video playing needs to connect to the internet, the user starts the second application shown in fig. 9 through desktop operation of the smart television, and if the application is a non-community network application, after the second application is started, the data generated by the application is controlled to perform network communication through the second wired network card or the wireless network card corresponding to the second network link corresponding to the application. Illustratively, when the smart television starts only the first video application, the controller controls the second wired network card to drive the corresponding second network link, so as to provide data communication for the second application of the foreground user interface playing the video program. It can also be understood that the video program in the foreground user interface at this time is in network communication through the second wired network card of the smart television, as shown in fig. 11. For another example, when the smart television only starts the first video application, the controller controls the wireless network card to drive the corresponding second network link, so as to provide data communication for the second application of the foreground user interface that is playing the video program. It can also be understood that the video program in the foreground user interface at this time is in network communication through the wireless network card of the smart tv, as shown in fig. 12.
In some embodiments, when the smart television may use multiple networks, a first wired network card and a second wired network card of the smart television may access different network links at the same time, and the smart television may play a video application in the second application through the network link accessed by the second wired network card, and also may control the community application to execute a corresponding operation through the first wired network card at the same time, for example, when the first video application is played on the smart television, a user may execute a call elevator function by calling an elevator application, and may also receive an external doorbell call through an intelligent door lock application, as shown in fig. 13.
In some embodiments, the first wired network card and the wireless network card of the smart television may access different network links at the same time, so that the display device may access the first network link and the second network link at the same time, where the network cards that are accessed are different, but the smart television interface displays the same interface as the display device that accesses the first wired network card and the second wired network card at the same time, as shown in fig. 14.
Therefore, if the application does not select a corresponding network for transmission during the use process, the related functions of the application cannot be realized. For example, in the embodiment of the present application, the community-class application is controlled to perform network communication through the first wired network card corresponding to the first link network, the non-community-class application, that is, the related application of the traditional network data resource transmission is controlled to perform network communication through the second wired network card corresponding to the second network link, if the network does not set a corresponding network channel according to requirements in the setting process, the above-mentioned proprietary network transmission cannot be implemented, and the related application cannot be started.
The above network access for different types of applications to different network links is realized based on the intelligent routing method based on the USB channel provided in this embodiment, and the method is explained in detail below.
The intelligent routing method based on the USB channel provided by the embodiment of the application is used for the intelligent television and comprises the following steps:
the base terminal starts a protocol scheme of a remote network driving interface, and shares the second wired network card to the USB network service, referring to fig. 15, which specifically includes the following steps:
s11: when the display is connected to the base through the USB interface, a first service for starting USB network sharing is established, wherein the first service can monitor the connection state of the network card and dynamically share the connected network card to the USB interface.
The accessed network card is dynamically shared to the USB interface, so that the USB interface end can sense the accessed network card and realize the dynamic sharing of the interface, namely, the interface conversion based on different network cards is realized at the USB interface end, and thus, different application data are accessed to different network links through the USB network sharing. It should be noted that, in this embodiment, another way to dynamically share the accessed network card to the USB interface is to dynamically nat the accessed network card to the USB interface, where the meanings of the english expressions are the same.
It should be noted that, the monitoring of the network card access network link by the first service specifically includes the following steps: monitoring that a second wired network card is accessed to a wired network link; or monitoring that the wireless network card is accessed to the wireless network link.
In some embodiments, based on the usage scenario of the split type smart television shown in fig. 6, the first wired network card and the second wired network card connected to the base need to be shared with the USB network channel, so that when the display is connected to the base through the USB connection line, multiple network links on the base can be used.
S12: and when the second wired network card is accessed to a second network link, controlling the first service to start the USB wireless network card and controlling the second wired network card to share 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.
FIG. 16 is a functional flow chart illustrating the USB network sharing and the remote network driver interface protocol.
In some embodiments, referring to fig. 16, when the display is connected to the base through the USB interface, the created first service may monitor that the USB wireless network card is connected to the kernel, the control kernel notifies the network daemon process through the event mechanism, and the network daemon process starts the network process service to notify the network sharing to add the network interface when receiving the notification, so that the network process controls the USB network sharing to be automatically started after monitoring the message.
After the USB network sharing is automatically started, the network process is connected with the network management server through the network management client, and then is connected to the sharing class. And then controlling and calling the network service class, sending an instruction to the underlying network service class through a daemon thread, and finally sending a command to the kernel by the underlying network service class to realize the function of opening a remote network driving interface protocol.
After the remote network driver interface protocol function is turned on, when a second wired network card is accessed to a second network link, the controller writes a network agent class containing a second wired network card address acquired based on an android frame process into the second wired network card and the kernel so that a second application can access the wide area network through the second network link accessed by the second wired network card.
In some embodiments, the controller writes a network proxy class including an address of a second wired network card acquired based on an android framework flow into the second wired network card and the kernel, and specifically includes: the control network daemon process sends a network monitoring message to the Ethernet tracing class to create an Ethernet factory class, so that the Internet interconnection protocol control service obtains a second wired network card address; and writing the network agent class containing the address of the second wired network card into the second wired network card and the kernel.
S13: when the first wired network card is accessed into a first network link, a first wired network card address which is acquired by a dynamic host configuration protocol server side through a dynamic host configuration protocol client side is written into the first wired network card and the inner core, so that a first application can access a wide area network through the first network link accessed by the first wired network card, wherein the first network link and a second network link can be simultaneously accessed into the wide area network.
In some embodiments, since the second wired network card, i.e., the second wired network or the wireless network, acquires the IP address based on the android native flow, when the remote network driver interface protocol switch is turned on, the IP address is automatically shared to the USB wireless network card, but the first wired network needs to acquire the IP address through the dynamic host configuration protocol client, so that the default is not shared, and the first wired network is shared to the USB network access after the IP is successfully acquired.
Fig. 17 is a schematic flow chart illustrating a process of acquiring a first wired network card node.
When the first wired network card is accessed into the first network link, monitoring a first wired network card node/sys/class/net/USB 0, if the first wired network card node exists, starting the IP address of the first wired network card acquired by the dynamic host configuration protocol client, and if the first wired network card node does not exist, continuing waiting. And the dynamic host configuration protocol server acquires the IP and writes the IP into the network card, and then registers the IP into the kernel.
When the first network link accesses the intelligent television through the first wired network interface shown in fig. 6, the controller will monitor that the first wired network card node exists, and will start the dynamic host configuration protocol client service to enter a state waiting for acquiring the IP, and acquire the IP address of the first wired network.
Based on this, in some embodiments, the controller is configured to perform monitoring of a first wired network card node corresponding to a first network link, and acquire a first wired network card address, including: monitoring a first wired network card node corresponding to a first network link; if a first wired network card node corresponding to the first network link exists, acquiring a first wired network card address; and if the first wired network card node corresponding to the first network link does not exist, indicating that the first wired network is not accessed, waiting to acquire the address of the first wired network card.
And the dynamic host configuration protocol server acquires the IP and writes the IP into the network card, and then registers the IP into the kernel so that the first application can access the wide area network through the first network link accessed by the first wired network card.
And after the dynamic host configuration protocol client successfully acquires the IP, adding default data to a routing table USB0 by using a routing rule of a USB network access. Then, the priority of the routing table USB0 is adjusted to be higher than that of other user routing tables, and the method specifically comprises the following steps:
fig. 18 is a schematic diagram of a routing rule creation flow.
S21: and creating a routing rule of the first wired network card according to the address of the first wired network card, and adding the routing rule into a first routing table.
In the system routing table, the routing tables have a priority relationship, the smaller the numerical value of the priority corresponding to each routing table is, the higher the level is, when the data transmission is monitored to be needed, the wired transmission is judged to be carried out through the routing rule with the high priority level in the system routing table according to the priority. Therefore, after the routing table is established, the value of the priority corresponding to the routing table needs to be set, in this embodiment, the priority of the first wired network card routing table is established, so that the priority of the first wired network card routing table is higher than that of the second wired network card and the wireless network card. When data is transmitted, the data is preferentially transmitted through the first wired network card corresponding to the first network link, and when the data does not belong to the network segment corresponding to the first wired network, the data is transmitted through the second wired network card or the wireless network card.
In some embodiments, default data is added to the first routing table according to a routing rule of the first routing table, after application data transmitted by a display terminal is received, a network segment to which the application data belongs is determined first, and when the application network segment does not belong to a network segment to which a first wired network card corresponding to a first network link is located, the network segment is distributed to a second wired network card corresponding to a second network link.
S22: and creating a numerical value of the priority corresponding to the first routing table, so that the priority of the first routing table is higher than that of a second routing table, and the second routing table is a routing table configured with a second wired network card routing rule.
In some embodiments, the first routing table may be created with a value corresponding to a priority. Firstly, acquiring a numerical value of a second priority in a system routing table, namely the priority is second to the priority of a local routing table, if the numerical value of the second priority is less than 10000, indicating that a route is created under the priority, setting the routing table corresponding to the priority as a routing table num, inquiring routing configuration information stored in the routing table num corresponding to the second priority, and deleting the routing configuration information. And simultaneously, the numerical value of the deleted priority is a routing table corresponding to a preset value, and the preset value is between 0 and 10000, excluding 0 and 10000.
If the value of the second priority is not less than 10000, it indicates that the routing table is created for the first time in the second priority. A preset value is taken as the numerical value of the second priority, and the first reason table is added to the priority.
The routing tables are set in the above manner, so that the priority of the first routing table is higher than that of the second routing table, and it should be noted that the second routing table is a routing table configured with a second wired network card and a wireless network card routing rule. When data transmission is needed, the routing rule corresponding to the first routing table is preferentially selected due to the fact that the priority corresponding to the first routing table is high, and therefore network communication of community applications through the first wired network card corresponding to the first link network is achieved, and related functions of network communication of non-community applications, namely related applications of traditional network data resource transmission, through the second wired network card corresponding to the second network link are achieved. In addition, the above values regarding the priority are only examples, and those skilled in the art may set different values as needed.
In some embodiments, when an instruction that a user enables a first application in the smart television is received, it is first determined to which network segment data generated by the application belongs, for example, if the routing rule of the first wired network card is set to be 192.168.1 ° in the IP address range of the first wired network, all IP addresses in the network segment 192.168.1 ° 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 the network segment belongs to the IP address range of the first wired network, and therefore, all data transmission is performed through the first wired network card corresponding to the first network link. If the acquired IP address does not belong to the IP address range of the first wired network, according to the priority ranking, the acquired IP address is assigned to follow the routing rule of the second routing table, and the related application data transmission is transmitted through a second wired network card or a wireless network card corresponding to the second network link.
Fig. 19 is a schematic view of an overall process flow of an interaction process between a display and two ends of a base of an intelligent routing method based on a USB channel according to an embodiment of the present application, where the process flow includes the whole processes of acquiring an IP address, writing the IP address, transmitting data, and obtaining an intelligent route, and when it is necessary to acquire IP addresses of a first wired network and a second wired network at the same time, the process flow is performed in the following manner:
in some embodiments, when there is a wired network access device, the network daemon notifies the ethernet trace class to obtain IP in the ethernet factory class through the ipsec controller. After the IP is obtained, the double-wire network and the network agent class object can be generated and registered in the network connection management service. The decision as to which network to connect is ultimately scored in a network connection management service, which then informs the kernel. If the two wired networks score equally high, the later connected wired networks will be eliminated.
In some embodiments, when acquiring an IP address for a dual-wired network, a service for acquiring an IP address for a first wired network is designed. First, the service will query whether the first wired network node exists, and if so, the service will start the first wired network card after the network node is ready. And then, the IP is acquired through the client side of the dynamic host configuration protocol, the IP is acquired when the server side of the dynamic host configuration protocol receives the request, and then the information such as the IP is written into the network card.
The second wired network also acquires the IP through the aforementioned procedure. When the second wired network accesses the device, the network daemon will inform the Ethernet trace class to create a factory class to get the IP through the Internet protocol controller. And after the IP is acquired, the second wired network generates a network proxy object and registers the network proxy object in the network connection management service. And writing the network connection management service into the kernel and the network card so as to complete the subsequent operation.
According to the technical scheme, on the premise that the android system device is connected with at least two networks, when the display is connected with the base through the USB connecting line, the intelligent routing method based on the USB channel, provided by the embodiment, realizes dual-network intelligent routing, and enables data to be automatically transmitted according to the transmission rule. In specific application, the design scheme of the intelligent route based on the USB channel can realize that the display screen shares the double-network connection function to the base through the wireless network channel, and can dynamically add the route, so that data are respectively transmitted to the two wired network cards according to rules.
The following paragraphs will provide a comparative listing of Chinese terms and their corresponding English terms referred to in the specification of the application for ease of reading and understanding.
Remote network driver interface protocol: rndis;
dynamic sharing: dynamic nat;
an event mechanism comprises the following steps: ue vent;
the network daemon process comprises the following steps: netd;
network process service: an Nmservice;
network sharing: (iii) thermal;
network process: tetherSettings;
network management class client: connetivityManager;
network management class server: connetivityservice;
ethernet trace class: ethernet tracker;
ethernet factory class: ethernet Factory;
an internetworking protocol controller: IPclient;
the network proxy class: a NetworkAgent;
network connection management service: connectivity service;
network connection management service: connectivity service;
kernel: a kernel;
dynamic host configuration protocol client: udhcpc;
dynamic host configuration protocol server: udhcpd.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the foregoing discussion in some embodiments is not intended to be exhaustive or to limit the implementations to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, comprising:
a display for displaying a user interface including a first application and a second application;
the base is connected with the display end through a USB network interface;
the network card comprises a first wired network card, a second wired network card and a wireless network card;
a controller configured to:
when the display is connected to the base, a first service for starting USB network sharing is established, wherein the first service can monitor the access state of a wireless network card and dynamically share the first wired network card and the second wired network card to the USB network;
when a second wired network card is accessed to a second network link, controlling a first service to start the USB network sharing and controlling the second wired network card to share to the USB network path so that a second application can access a wide area network through the second network link accessed by the second wired network card;
when a first wired network card is accessed into a first network link, acquiring a first wired network card address and writing the first wired network card address into the first wired network card and a kernel so that a first application can access a wide area network through the first network link accessed by the first wired network card, wherein the first network link and a second network link can be simultaneously accessed into the wide area network;
establishing a routing rule of the first wired network card according to a first wired network card address, and adding the routing rule into a first routing table;
and creating a numerical value of the priority corresponding to the first routing table, so that the priority of the first routing table is higher than that of a second routing table, and the second routing table is a routing table configured with a second wired network card routing rule.
2. The display device according to claim 1, wherein the first wired network card and the second wired network card can access different network links simultaneously, or the first wired network card and the wireless network card can access different network links simultaneously, so that the display device can access the first network link and the second network link simultaneously.
3. The display device of claim 1, wherein the controller is configured to control a first service to initiate the USB network sharing and to control a second wired network card to share onto the USB network path by:
when the first service monitors that the wireless network card is accessed into the kernel, the control kernel sends a notice 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 monitoring the message;
the control network process is connected with a network management server through a client network management class and further connected to a network sharing class;
the control calling network service class sends an instruction to the underlying network service class through the network daemon thread so that the kernel controls the remote network driving interface protocol function of the USB network to be opened when receiving the instruction;
and after the protocol function of the remote network driving interface is opened, controlling a second wired network card to be shared to the USB network channel.
4. The display device according to claim 1, wherein the controller is further configured to:
when a display is started, receiving an application starting operation instruction sent by a user;
and when an operation instruction of starting the application by a user is received, determining the network segment to which the application data belongs so that different applications are accessed to the local area network through different network links based on different routing rules.
5. The display device according to claim 1, characterized in that the display device further comprises:
the first network cable interface is arranged on the base and connected with the first wired network card, and the second network cable interface is arranged on the base and connected with the second wired network card.
6. An intelligent routing method based on a USB channel is characterized by comprising the following steps:
when the display is connected to the base, a first service for starting USB network sharing is established, wherein the first service can monitor the access state of a wireless network card and dynamically share the first wired network card and the second wired network card to the USB network;
when a second wired network card is accessed to a second network link, controlling a first service to start the USB network sharing, and controlling a second wired network card to share to the USB network path, so that a second application can access a wide area network through the second network link accessed by the second wired network card;
when a first wired network card is accessed to a first network link, acquiring a first wired network card address and writing the first wired network card address into the first wired network card and the inner core so that a first application can access a wide area network through the first network link accessed by the first wired network card, wherein the first network link and a second network link can be simultaneously accessed to the wide area network;
establishing a routing rule of the first wired network card according to a first wired network card address, and adding the routing rule into a first routing table;
and creating a numerical value of the priority corresponding to the first routing table, so that the priority of the first routing table is higher than that of a second routing table, and the second routing table is a routing table configured with a second wired network card routing rule.
7. The intelligent routing method based on the USB channel of claim 6, wherein the first wired network card and the second wired network card can access different network links simultaneously, or the first wired network card and the wireless network card can access different network links simultaneously, so as to access the first network link and the second network link simultaneously.
8. The intelligent routing method based on USB channel of claim 6, wherein the controlling the first service to start the USB network sharing and the second wired network card to share to the USB network channel comprises:
when the first service monitors that the wireless network card is accessed into the kernel, the control kernel sends a notice 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 monitoring the message;
the control network process is connected with a network management server through a client network management class and further connected to a network sharing class;
the control calling network service class sends an instruction to the underlying network service class through the network daemon thread so that the kernel controls the remote network driving interface protocol function of the USB network to be opened when receiving the instruction;
and after the protocol function of the remote network driving interface is opened, controlling a second wired network card to be shared to the USB network channel.
9. The intelligent routing method based on USB channel according to claim 6, further comprising:
when a display is started, receiving an application starting operation instruction sent by a user;
and when an operation instruction of starting the application by a user is received, determining the network segment to which the application data belongs so that different applications are accessed to the local area network through different network links based on different routing rules.
10. The intelligent routing method based on USB channel according to claim 6, further comprising:
the first network cable interface is arranged on the base and connected with the first wired network card, and the second network cable interface is arranged on the base and connected with the second wired network card.
CN202111163116.3A 2021-09-30 2021-09-30 Display device and intelligent routing method based on USB channel Pending CN115914732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163116.3A CN115914732A (en) 2021-09-30 2021-09-30 Display device and intelligent routing method based on USB channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163116.3A CN115914732A (en) 2021-09-30 2021-09-30 Display device and intelligent routing method based on USB channel

Publications (1)

Publication Number Publication Date
CN115914732A true CN115914732A (en) 2023-04-04

Family

ID=86492123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163116.3A Pending CN115914732A (en) 2021-09-30 2021-09-30 Display device and intelligent routing method based on USB channel

Country Status (1)

Country Link
CN (1) CN115914732A (en)

Similar Documents

Publication Publication Date Title
JP5927900B2 (en) Electronics
KR20070111449A (en) Networked device control architecture
CN114286165B (en) Display equipment, mobile terminal, and screen-throwing data transmission method and system
CN113794928B (en) Audio playing method and display device
WO2022105409A1 (en) Fault diagnosis method, terminal device, and display device
CN114296670A (en) Display equipment and control method for multi-equipment screen projection on same screen display
KR20110059202A (en) Terminal apparatus and method for controlling usb apparatus
CN111885665B (en) Wireless network connection control method and display device
CN115914732A (en) Display device and intelligent routing method based on USB channel
CN115278822A (en) Display apparatus, control apparatus, and broadcast source scanning method
CN115914707A (en) Display device and non-inductive distribution network control method based on USB channel
CN115914073A (en) Display device and android system-based intelligent routing method
CN115914771A (en) Display device and control method for acquiring different network card addresses based on android system
CN115914730A (en) Display device and double-chain network connection method
WO2024001535A1 (en) Display device, playing device, control device and data transmission method
WO2022142496A1 (en) Display device, external device, operating mode switching method for external device, and far-field voice control method
CN115914731A (en) Display device and control method for improving network environment based on double links
CN113992963A (en) Display device and screen projection method
CN114554259A (en) Control device, display device, and device information acquisition method
CN117615091A (en) Display device and HDMI port identification method for accessing CEC device
CN117615188A (en) Display equipment, terminal and terminal control method
CN115914694A (en) Display device and network connection method based on USB link
CN114302378A (en) Bluetooth mode switching method of display device, display device and terminal
CN115278322A (en) Display apparatus, control apparatus, and control method of display apparatus
CN117615201A (en) Terminal equipment and wired network sharing method

Legal Events

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