A network management method and device, electronic equipment and medium

By intercepting wireless wide area network operations when wired LAN access is detected on home appliances and constructing a routing table, the limitation of single network connection for home appliances is solved, and diversified network transmission capabilities are realized.

CN116233971BActive Publication Date: 2025-11-07HISENSE VISUAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211739028.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-11-07
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In existing technologies, home appliances have significant limitations in transmitting data through a single network connection, which cannot meet the diverse network connection needs of users.

Method used

When the target device is connected to a wireless wide area network (WAN) and a wired local area network (LAN) is detected, the operation of deleting the WAN is intercepted. Based on the network information of the wired LAN, a routing table is constructed to control the data of the target address to be transmitted through the wired LAN.

Benefits of technology

It enables target devices to have both wireless wide area network (WAN) and wired local area network (LAN) connections, meeting users' network needs in different scenarios. It is suitable for data transmission through a single network, dual networks, or both networks simultaneously.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233971B_ABST
    Figure CN116233971B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a network management method and device, electronic equipment and medium, and relates to the technical field of computers, and is used to solve the problem that the limitation of data transmission of household appliances and other devices through one network connection is strong. The method comprises the following steps: when the target device is in a wireless wide area network connection state, if it is detected that there is a first network access target device, it is determined whether the first network belongs to a wired local area network; if it is determined that the first network belongs to a wired local area network, the operation of deleting the wireless wide area network is intercepted; based on the network information of the first network, a routing table is constructed for the first network; wherein the routing table is used to control the data of the target address belonging to the network segment of the first network to be transmitted through the first network.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a network management method and device, electronic equipment and medium. BACKGROUND

[0002] With the development of computer technology, household appliances and the like have network connection function.

[0003] In the related art, household appliances and the like can select one network connection from multiple network connections according to network type and / or network quality and the like, and transmit data through the one network connection. However, the limitation of transmitting data through one network connection is strong, and cannot meet the network connection demand of users. SUMMARY

[0004] In order to solve the above technical problems, the present disclosure provides a network management method and device, electronic equipment and medium.

[0005] The technical solution of the present disclosure is as follows:

[0006] In a first aspect, the present disclosure provides a network management method, comprising: if it is detected that a first network accesses a target device when the target device is in a wireless wide area network connection state, determining whether the first network belongs to a wired local area network; if it is determined that the first network belongs to the wired local area network, intercepting and deleting an operation of the wireless wide area network; constructing a routing table for the first network based on network information of the first network; wherein the routing table is used to control data with a target address belonging to a network segment of the first network to be transmitted through the first network.

[0007] In some implementable examples, the step of constructing the routing table for the first network based on the network information of the first network comprises: obtaining ip information of the first network and a subnet mask of the first network; determining a network address of the first network according to the ip information and the subnet mask; generating a routing rule of the first network based on the network address and the subnet mask; and constructing the routing table of the first network by using the routing rule of the first network.

[0008] In some implementable examples, the step of determining the network address of the first network according to the ip information and the subnet mask comprises: performing bitwise AND operation on the ip information of the first network and the subnet mask to obtain the network address of the first network.

[0009] In some implementable examples, after the constructing the routing table for the first network based on the network information of the first network, the method further includes: determining a routing priority for the routing table of the first network; and wherein the routing priority of the routing table is at a second priority of a routing rule of the target device, the routing rule being used to represent the routing priority of the routing table in the target device.

[0010] In some implementable examples, the determining the routing priority for the routing table of the first network includes: obtaining a value of an initial second priority in the routing rule of the target device; and determining a value of the routing priority for the routing table of the first network by subtracting a preset value from the value of the initial second priority; and wherein the value of the routing priority is inversely proportional to the routing priority level of the corresponding routing table.

[0011] In some implementable examples, the constructing the routing table for the first network based on the network information of the first network includes: in a case where it is determined that there is a wired network card on the target device and a network cable has been connected, constructing the routing table for the first network based on the network information of the first network.

[0012] In some implementable examples, after the constructing the routing table for the first network based on the network information of the first network, the method further includes: broadcasting a message that the first network is connected successfully to a target system display application; and wherein the target system display application is used to display an identification that the wired network has been connected on a user interface.

[0013] In some implementable examples, before the determining whether the first network belongs to a wired local area network if it is detected that there is a first network accessing the target device, the method further includes: displaying a wired network configuration window in response to a triggering operation on a preset wired network configuration entry on a network setting page; and receiving wired network configuration information based on the wired network configuration window; and wherein the wired network configuration information is used to constitute the network information of the first network.

[0014] In a second aspect, the present disclosure provides a network management apparatus, including: a detection unit configured to, if it is detected that there is a first network accessing a target device in a state where the target device is connected to a wireless wide area network, determine whether the first network belongs to a wired local area network; an interception unit configured to intercept an operation of deleting the wireless wide area network if it is determined that the first network belongs to the wired local area network; and a construction unit configured to construct a routing table for the first network based on network information of the first network; and wherein the routing table is used to control data whose target address belongs to a network segment of the first network to be transmitted through the first network.

[0015] In some implementable examples, the constructing unit specifically includes: an obtaining subunit, configured to obtain IP information of the first network and a subnet mask of the first network; a determining subunit, configured to determine a network address of the first network according to the IP information and the subnet mask; a generating subunit, configured to generate a routing rule of the first network based on the network address and the subnet mask; and a constructing subunit, configured to construct a routing table of the first network by using the routing rule of the first network.

[0016] In some implementable examples, the determining subunit is specifically configured to: perform a bitwise AND operation on the IP information of the first network and the subnet mask to obtain the network address of the first network.

[0017] In some implementable examples, the network management apparatus further includes a determining unit, configured to: determine a routing priority of the routing table of the first network after the routing table of the first network is constructed based on the network information of the first network; and wherein the routing priority of the routing table is at a second priority of a routing rule in the target device, and the routing rule is used to represent the routing priority of the routing table in the target device.

[0018] In some implementable examples, the determining unit is specifically configured to: obtain a value of an initial second priority in the routing rule of the target device; and determine a value of the routing priority of the routing table of the first network by subtracting a preset value from the value of the initial second priority; and wherein the value of the routing priority is inversely proportional to the routing priority level of the corresponding routing table.

[0019] In some implementable examples, the constructing unit is specifically configured to: construct the routing table of the first network based on the network information of the first network in a case where it is determined that the wired network card exists on the target device and the network cable is connected.

[0020] In some implementable examples, the network management apparatus further includes a broadcasting unit, configured to: broadcast a message that the first network is connected successfully to a target system display application after the routing table of the first network is constructed based on the network information of the first network; and wherein the target system display application is used to display an identification that the wired network is connected on a user interface.

[0021] In some implementable examples, the network management apparatus further includes:

[0022] The display unit is configured to display a wired network configuration window in response to a trigger operation on a preset wired network configuration entry on a network setting page before determining whether the first network belongs to a wired local area network if it is detected that the first network accesses the target device.

[0023] The receiving unit is configured to receive wired network configuration information based on the wired network configuration window, wherein the wired network configuration information is used to constitute network information of the first network.

[0024] In a third aspect, the present disclosure provides an electronic device, comprising a memory and a processor, the memory is configured to store a computer program, and the processor is configured to cause the electronic device to implement any of the network management methods provided in the first aspect when executing the computer program.

[0025] In a fourth aspect, the present disclosure provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program causes a computing device to implement any of the network management methods provided in the first aspect when the computer program is executed by the computing device.

[0026] In a fifth aspect, the present disclosure provides a computer program product, and the computer program product causes a computer to execute any of the network management methods provided in the first aspect when the computer program product is executed by the computer.

[0027] It should be noted that the above computer instructions can be stored on the first computer readable storage medium in whole or in part. The first computer readable storage medium can be packaged together with the processor of the network management device, or can be packaged separately from the processor of the network management device, and the present disclosure does not limit the same.

[0028] The description of the second aspect, the third aspect, the fourth aspect and the fifth aspect in the present disclosure can refer to the detailed description of the first aspect, and the beneficial effects of the description of the second aspect, the third aspect, the fourth aspect and the fifth aspect can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0029] In the present disclosure, the name of the above network management device does not constitute a limitation on the device or functional module itself, and in actual implementation, these devices or functional modules can appear in other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they belong to the scope of the claims of the present disclosure and equivalent technologies.

[0030] These aspects or other aspects of the present disclosure will be more apparent in the following description.

[0031] The technical solutions provided by the present disclosure have the following advantages compared with the prior art.

[0032] In a case that the target device is in a state of a wireless wide area network connection, if it is detected that the first network access target device exists, it is determined whether the first network belongs to a wired local area network; if it is determined that the first network belongs to the wired local area network, the operation of deleting the wireless wide area network is intercepted; a routing table is constructed for the first network based on network information of the first network; wherein the routing table is used to control data whose target address belongs to a network segment of the first network to be transmitted through the first network. In the above scheme, in a case that the target device is already in a wireless wide area network connection, if it is detected that the wired local area network connects the target device, the deletion of the wireless wide area network is intercepted, which avoids the case that the wireless network is deleted in the original system if the wired network is accessed, and a corresponding routing table is constructed for the wired local area network, which provides a basis for the target device to have both wireless wide area network connection and wired local area network connection. Therefore, the target device is not only suitable for the scene of data transmission through the wired local area network, but also suitable for the scene of data transmission through the wireless wide area network, and also suitable for the scene of data transmission through both networks, so that the network management method has a wide range of application scenarios and can better meet the network connection needs of users. BRIEF DESCRIPTION OF DRAWINGS

[0033] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the disclosure.

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative work.

[0035] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided by an embodiment of the present application;

[0036] Figure 2 A structural schematic diagram of a display device in a network management method provided by an embodiment of the present application;

[0037] Figure 3 A structural schematic diagram of a display device in a network management method provided by an embodiment of the present application;

[0038] Figure 4 A flowchart of a network management method provided by an embodiment of the present application;

[0039] Figure 5 A flowchart of a network management method provided by an embodiment of the present application;

[0040] Figure 6A third flowchart of a network management method provided by an embodiment of the present application;

[0041] Figure 7 A fourth flowchart of a network management method provided by an embodiment of the present application;

[0042] Figure 8 A fifth flowchart of a network management method provided by an embodiment of the present application;

[0043] Figure 9 A sixth flowchart of a network management method provided by an embodiment of the present application;

[0044] Figure 10 A seventh flowchart of a network management method provided by an embodiment of the present application;

[0045] Figure 11 An eighth flowchart of a network management method provided by an embodiment of the present application;

[0046] Figure 12 A schematic diagram of a network setting page provided by an embodiment of the present disclosure;

[0047] Figure 13 A schematic diagram of another network setting page provided by an embodiment of the present disclosure;

[0048] Figure 14 A structural schematic diagram of a display device provided by an embodiment of the present application;

[0049] Figure 15 A schematic diagram of a chip system provided by an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the schemes of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0051] In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some of the embodiments of the present disclosure, not all the embodiments.

[0052] It should be noted that, in the present document, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action, without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0053] Figure 1 For the operation scenario between the display device and the control device according to one or more embodiments of the present application, as shown in Figure 1 The user can operate the display device 200 through the mobile terminal 300 and the control device 100. The control device 100 can 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 ways to control the display device 200. The user can input user instructions through the keys on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, the mobile terminal, tablet computer, computer, notebook computer, and other smart devices can also be used to control the display device 200.

[0054] In some embodiments, the mobile terminal 300 can install a software application with the display device 200, implement connection communication through a network communication protocol, and achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to realize synchronous display function. The display device 200 also communicates with the display device 200 through various communication modes. The display device 200 can be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks. The display device 200 can provide various content and interaction 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 a broadcast receiving television function, the display device 200 can also provide a smart network television function with computer support function.

[0055] In some embodiments, the electronic device provided in this application can be the aforementioned display device 200. The display device 200 may be pre-connected to a wireless wide area network (WAN), through which web page access and video playback functions can be implemented. This WAN can be understood as an "external network." However, functions such as building intercom and elevator call within a community have high security and privacy requirements. Data used for these functions is typically not transmitted via a WAN; instead, it can be transmitted via a wired local area network (LAN). To enable the display device 200 to function as a building intercom and elevator call center while simultaneously accessing the external network, when the display device 200 is connected to a wireless network, the user can insert a wired local area network (LAN) cable into the display device's reserved wired network interface. Upon detecting the cable insertion, the display device 200 determines whether the network corresponding to the cable is a wired LAN. If so, it retains the wireless wide area network (WAN) and constructs a corresponding routing table based on the LAN's network information, allowing the display device 200 to be connected to both a WAN and a LAN simultaneously. Therefore, users can utilize the display device 200 for both building intercom and elevator call functions, as well as access the external network, meeting their needs in different scenarios.

[0056] Figure 2 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown. For example... Figure 2 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 may be a touch-enabled display, such as a touch screen display. 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 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 containing the controller 250, such as an external set-top box.

[0057] In some embodiments, the image acquisition device can be a camera. The display device 200 can be provided with at least one camera. The camera can be built-in in the display device 200, or the camera can be connected to the display device 200 in a wired or wireless manner. For example, the camera can be provided at the lower side edge of the display 260 of the display device 200. Of course, the embodiments of the present application do not limit the position of the camera on the display device 200. Alternatively, the display device 200 can not include the camera, i.e., the camera is not provided in the display device 200. The display device 200 can be externally connected with the camera through an interface (such as the USB interface 130). The externally connected camera can be fixed on the display device 200 by an external fixing member (such as a camera holder with a clamp). For example, the externally connected camera can be fixed at the edge of the display 260 of the display device 200, such as the upper side edge, by the external fixing member.

[0058] In some embodiments, the controller 250 controls the operation of the display device and responds to the user's operation by storing various software control programs in the memory. The controller 250 controls the overall operation of the display device 200.

[0059] In some examples, the display device 200 of one or more embodiments is taken as a television set 1, and the operating system of the television set 1 is taken as an Android system. As shown in FIG. 2, the television set 1 can be logically divided into an applications layer (referred to as "application layer") 21, an application framework layer (referred to as "framework layer") 22, an Android runtime and system library layer (referred to as "system runtime library layer") 23, and a kernel layer 24. Figure 3

[0060] The application layer 21 includes one or more applications. The application can be a system application or a third-party application. For example, the application layer 21 includes a first application, and the first application can provide a network management function. The framework layer 22 provides an application programming interface (API) and a programming framework for the application programs of the application layer 21. The system runtime library layer 23 provides support for the upper layer, i.e., the framework layer 22. When the framework layer 22 is used, the Android operating system runs the C / C++ library included in the system runtime library layer 23 to realize the functions of the framework layer 22. The kernel layer 24 is a software middleware between the hardware layer and the application layer 21, and is used to manage and control hardware and software resources.

[0061] ​In some examples, the kernel layer 24 includes a first driver and a second driver, the first driver being configured to send the user operation collected by the detector 230 to the first application, and the second driver being configured to control the display 260 to display the display information sent by the display unit 213.

[0062] The first application in the television 1 is started. Then, the detection unit 210 of the first application determines whether the network connection state of the television 1 is a wireless wide area network. If the first network is detected to access the television 1 in the state that the television 1 is in the wireless wide area network, it is determined whether the first network belongs to a wired local area network. Then, the interception unit 211 of the first application intercepts the deletion operation for the wireless wide area network in the case that the first network is determined to belong to the wired local area network. Then, the construction unit 212 of the first application constructs a routing table of the first network based on the network information of the first network, the routing table being configured to control the data whose target address belongs to the network segment of the first network to be transmitted through the first network. In this way, the television 1 can perform the connection of the wired local area network while reserving the connection of the wireless wide area network, and transmit the data belonging to the network segment of the wired local area network through the wired local area network. The television 1 can simultaneously have the functions realized through the wireless wide area network and the wired local area network.

[0063] Specifically, the electronic device can be the display device 200 or the server 400 described above, which is not limited here.

[0064] Specifically, the storage unit 213 is configured to store the application program of the first application, the network connection state of the target device, and the like.

[0065] The network connection state of the target device involved in the present application can be data authorized by the user or authorized by all parties.

[0066] In the following embodiments, the execution subject of the network management method provided by the embodiments of the present disclosure is taken as an example of a network management device to describe the method of the embodiments of the present application.

[0067] The embodiments of the present application provide a network management method, as shown in Figure 4 The network management method can include S11-S13.

[0068] S11, in the case that the target device is in a state of being connected to a wireless wide area network, if it is detected that a first network accesses the target device, it is determined whether the first network belongs to a wired local area network.

[0069] The target device can be an electronic device, and the target device can be configured with a network interface for connecting a wired LAN network cable. The target device is not limited in the embodiments of the present disclosure, for example, the target device can be an electrical appliance, and specifically, the target device can be an electrical appliance capable of implementing a security function. The operating system of the target device is not limited in the embodiments of the present disclosure, for example, the operating system of the target device can be an Android system. The target device can be a device configured with a display screen, for example, the target device can be an electrical appliance with a screen. The wireless WAN can be a communication network connecting scattered LANs, and devices in the wireless WAN can communicate through wireless communication. The wireless WAN is also referred to as an external network or a public network. The wireless WAN can be a network implemented based on wireless network communication technology (Wi-Fi). The first network can be a network newly accessed by the target device. The wired LAN can be a network connecting devices in a certain area, and devices in the wired LAN can communicate through wired communication. The wireless WAN is also referred to as an internal network or eth1. For example, in a wireless WAN taking a community area as an area, the wireless WAN can be used to transmit data related to building video intercom and / or calling elevators, thereby implementing a building video intercom function and / or a calling elevator function.

[0070] In the embodiments of the present disclosure, the network management apparatus can read network status information of the target device, and if the network status information is wireless WAN information, it indicates that the target device is in a state of being connected to the wireless WAN. The network management apparatus can continuously detect the network status of the target device. Specifically, the network management apparatus can monitor whether the network interface of the target device for connecting the wired LAN network cable is connected in real time, and if so, determine whether the first network accessed through the network interface is a wired LAN. There are various methods for determining whether the first network is a wired LAN, and the embodiments are not limited, for example, the network name of the wired LAN can be set in advance, and if the network name of the first network is consistent with the pre-set network name, it is determined that the first network is a wired LAN.

[0071] S12, if it is determined that the first network belongs to the wired LAN, the operation of deleting the wireless WAN is intercepted.

[0072] In the related art, if the operating system of the target device is an Android system, the Android system scores network connections, and the score of a wireless network is lower than that of a wired network (for example, the score of the wireless network is 60, and the score of the wired network is 70). If the target device is in a wireless wide area network connection state and the target device accesses a wired local area network, the network management service (Connectivity service) of the Android system compares the scores of the wireless wide area network and the wired local area network. Since the wireless wide area network belongs to a wireless network and the wired local area network belongs to a wired network, the score of the wireless wide area network is lower than that of the wired local area network. The network management service deletes the wireless wide area network with the lower score, deletes the route of the wireless wide area network, sends a broadcast of disconnection of the wireless wide area network, and displays an identifier of disconnection of the wireless wide area network. In addition, the network management service adds the route of the wired local area network with the higher score, so that the target device is in a connection state of the wired local area network alone, transmits data through the wired local area network, and sends a broadcast of successful connection of the wired local area network to display an identifier of successful connection of the wired local area network.

[0073] It can be understood that, in the related art, since the wireless wide area network of the target device is deleted and the device is in a connection state of the wired local area network, the target device can only implement functions that can be implemented through the wired local area network and cannot implement functions that can be implemented through the wireless wide area network. If the range of the wired local area network is a community range, the target device can implement functions of building visual intercom and / or calling an elevator and cannot implement functions of webpage browsing and video playing related to an external network.

[0074] In the embodiment of the present disclosure, if the network name of the first network is consistent with the pre-set network name, it is determined that the first network newly accessed by the target device is a wired local area network. Therefore, before the wireless wide area network is deleted, the network management device intercepts the deletion operation for the wireless wide area network. Specifically, a developer can adjust the network management service of the Android system, so that the network management service judges whether the wired local area network is a pre-set wired local area network that can be simultaneously accessed with the wireless wide area network after rematchNetworkAndRequests of the scores of the wireless wide area network and the wired local area network. If yes, it indicates that the network management service needs to retain the wireless wide area network. Therefore, the network management service skips the deletion operation of the wireless wide area network and the route of the wireless wide area network, and skips the operation of sending the broadcast of disconnection of the wireless wide area network. Otherwise, it indicates that the network management service needs to ensure that the target device accesses only the wired local area network. Therefore, the network management service performs the deletion operation on the wireless wide area network and the route of the wireless wide area network, and sends the broadcast of disconnection of the wireless wide area network.

[0075] S13, constructing a routing table for the first network based on the network information of the first network; wherein the routing table is used to control data whose target address belongs to the network segment of the first network to be transmitted through the first network.

[0076] The network information can be characteristic parameter information of the network, and the network information can include an Internet Protocol (IP) address of the network and a subnet mask of the network, etc. The routing table can be an electronic table or a database-like table stored in a router or a networking device, and the routing table can include a path of a specific network address, and the routing table is also referred to as a routing domain information base. The network segment can be an IP network segment, and the network segment can be used to determine a network for transmitting data. The target address can represent a data receiver in data transmission, and the target address can be a target IP address. The number of routing tables supported by the target device is not limited in this embodiment, for example, the number of routing tables supported by the target device can be 255.

[0077] In the embodiment of the present disclosure, the network management device can add an addRequest class of the first network, and generate a network priority corresponding to the first network. Then, the network management device can obtain network information of the first network, generate a route of the first network according to the network information, and create a routing table of the first network based on the route of the first network. Through the routing table, when routing data, it can be determined whether the target address of the data belongs to the network segment of the first network, and if so, the data whose target address belongs to the network segment of the first network is transmitted through the first network.

[0078] The network management method provided in the embodiment of the present disclosure, when the target device is in a wireless wide area network connection state, if it is detected that the first network accesses the target device, it is determined whether the first network belongs to a wired local area network; if it is determined that the first network belongs to the wired local area network, the operation of deleting the wireless wide area network is intercepted; a routing table for the first network is constructed based on network information of the first network; wherein the routing table is used to control data whose target address belongs to the network segment of the first network to be transmitted through the first network. In the embodiment of the present disclosure, if it is detected that the wired local area network connects the target device when the target device is already in a wireless wide area network connection state, the deletion of the wireless wide area network is intercepted, which avoids the case that the wireless network is deleted if the wired network is accessed in the original system, and a corresponding routing table is constructed for the wired local area network, which provides a basis for the target device to have both wireless wide area network connection and wired local area network connection. Thus, the target device is not only suitable for the scene of transmitting data through the wired local area network, but also suitable for the scene of transmitting data through the wireless wide area network, and also suitable for the scene of transmitting data through both networks, and the application scene of the network management method is relatively wide, which can better meet the network connection needs of users.

[0079] In some implementable examples, in combination with Figure 4 As shown in Figure 5 The above network information based on the first network constructs a routing table for the first network, which can be implemented by the following S130-S133.

[0080] S130, obtain the ip information of the first network and the subnet mask of the first network.

[0081] The ip information can be the ip address of the first network. The subnet mask can be used to determine the bit identifier of the subnet where the host is located in an ip address, and the bit identifier of the bit mask of the host, which needs to be used in combination with the ip address.

[0082] In this embodiment, the network management device can obtain the command information generated by the ifconfig command of the first network, determine the information line including the inet field in the command information, divide the information line into multiple columns according to the space, and determine the information after the colon in the second column from the left as the ip information. The information after the colon in the fourth column from the left is determined as the subnet mask.

[0083] S131, determine the network address of the first network according to the ip information and the subnet mask.

[0084] The network address can be the logical address of the node on the network in the network, which is also called net_ip.

[0085] In this embodiment, the network management device can perform logical operation based on the ip information and the subnet mask of the first network to obtain the network address of the first network.

[0086] S132, generate the routing rule of the first network based on the network address and the subnet mask.

[0087] The routing rule can be a rule for routing data, and the routing rule can include the routing priority corresponding to multiple networks.

[0088] In this embodiment, the network address and the subnet mask of the first network can be used as the routing rule of the first network.

[0089] S133, construct the routing table of the first network by using the routing rule of the first network.

[0090] In this embodiment, the network management device can newly create the routing table of the first network, and after determining the routing rule of the first network, put the routing rule into the routing table of the first network to complete the construction of the routing table.

[0091] In the scheme, the routing table of the first network is determined based on the IP information and the subnet mask of the first network, and the data with the target address of the network segment of the first network can be transmitted through the network card of the first network by the routing table.

[0092] In some implementable examples, the method further comprises Figure 5 As shown in Figure 6 In the method, the network address of the first network is determined based on the IP information and the subnet mask, which can be implemented by S1310.

[0093] S1310, performing a bitwise AND operation on the IP information of the first network and the subnet mask to obtain the network address of the first network.

[0094] In the bitwise AND operation, when the corresponding two binary digits are both 1, the result bit is 1, and otherwise, the result bit is 0. The operator corresponding to the bitwise AND operation can be &.

[0095] In the embodiment of the disclosure, the binary digits corresponding to the IP information of the first network and the subnet mask are subjected to a bitwise AND operation to obtain corresponding result bits, the order between the result bits is determined according to the order between the binary digits, and the result bits arranged in order are determined as the network address of the first network.

[0096] In some implementable examples, the method further comprises Figure 4 As shown in Figure 7 In the method, after the routing table of the first network is constructed based on the network information of the first network, the method further comprises S14.

[0097] S14, determining a routing priority for the routing table of the first network; wherein the routing priority of the routing table is at a second priority of a routing rule of the target device, and the routing rule is used to represent the routing priority of the routing table in the target device.

[0098] The routing priority can represent the order of use of the network in the process of data transmission, and the routing priority is also referred to as pref. In the embodiment, the network with the routing priority is used for data transmission first, the data that cannot be transmitted by the network with the routing priority is transmitted to the network with the routing priority for transmission, and the data that can be transmitted by the network with the routing priority is not transmitted to the network with the routing priority for transmission.

[0099] In the embodiment, the routing priorities in the routing rules include a first priority and a second priority, and the first priority is prior to the second priority. The first priority can be a routing priority corresponding to local routing and broadcast information contained in a local routing table. The second priority can be a routing priority with a priority degree after the first priority, and the priority degree of the second priority is before the priority degrees of other priorities except the first priority. It can be understood that the priority degree of the second priority can be before a routing priority corresponding to a wireless wide area network.

[0100] In the embodiment, the routing priority of the routing table of the first network can be preset by a developer or determined by a network management device based on the initial second priority, and the embodiment does not limit the network management module to obtain the routing priority of the routing table of the first network. It should be noted that the routing priority of the first network is in the second priority of the routing rules, that is, if the network except the network corresponding to the local routing and the network corresponding to the broadcast information is another network, the first network is prior to the other network in transmitting data.

[0101] In the above scheme, by setting the routing priority corresponding to the first network as the second priority, the first network determines the data belonging to the network segment of itself first, and transmits the data through the first network, and then the wireless wide area network determines the data belonging to the network segment of itself, and transmits the data through the wireless wide area network, thereby realizing the ordered transmission of data, and making the target device simultaneously have the functions of transmitting data through the wired local area network and the wireless wide area network.

[0102] In some implementable examples, in combination with Figure 7 As shown in Figure 8 The above determines the routing priority of the routing table of the first network, including:

[0103] S140, obtaining a value of an initial second priority in a routing rule of a target device.

[0104] S141, determining a value of a routing priority of a routing table of a first network after subtracting a preset value from the value of the initial second priority; the value of the routing priority is inversely proportional to a routing priority degree of the corresponding routing table.

[0105] The preset value can be data pre-set according to developer needs, etc. This embodiment does not limit the preset value. For example, the preset value can be less than the difference between the initial second priority and the first priority, and the preset value can be 1. The initial second priority can be the routing priority corresponding to the routing table of the legacy system. This initial second priority takes precedence over the routing priority corresponding to Wi-Fi, and it also takes precedence over the routing priority corresponding to the routing table of the wired wide area network. The specific values ​​of the first priority and the initial second priority can be set according to developer needs, etc., and this example does not limit them. For example, the initial second priority can be 10000.

[0106] In this embodiment of the disclosure, the network management device determines the priority value corresponding to the routing table of the original system in the target device, which is the initial second priority value.

[0107] After determining the initial second priority value, a preset value is subtracted from this value to obtain the routing priority value of the routing table of the first network. The smaller the routing priority value, the higher the routing priority level of the routing table; that is, a network with a lower routing priority value has priority in data transmission compared to a network with a higher routing priority value. Therefore, it can be determined that the first network prioritizes data transmission over networks with the initial second priority and networks with a higher initial second priority. In other words, the first network prioritizes data transmission over the existing system, Wi-Fi, and wired wide area network. Understandably, data first passes through the first network; data that the first network cannot transmit is sent to the existing system; data that the first network cannot transmit passes through the existing system; and data that the existing system cannot transmit continues to be sent to Wi-Fi and / or the wired wide area network. The data that each network can transmit can be determined by the corresponding network segment.

[0108] In some feasible examples, combining Figure 4 ,like Figure 9 As shown, the above-mentioned network information based on the first network is used to construct a routing table for the first network, which can be specifically implemented through the following S134.

[0109] S134. If it is determined that there is a wired network card and a connected network cable on the target device, a routing table is constructed for the first network based on the network information of the first network.

[0110] Among them, the wired network card can be a hardware device that enables the device to communicate via a network through wired means. This wired network card can be a network card configured for a wired local area network.

[0111] In the embodiment, the network management device determines whether the target device is configured with a wired network card node. If yes, it is determined that the wired network card exists on the target device, and it is further determined whether the wired network card is connected to the network cable. If the target device is not configured with a wired network card node, it is determined that the wired network card does not exist on the target device, and the target device is waited to be configured with a wired network card. If the wired local area network is eth1, the wired network node can be / sys / class / net / eth1.

[0112] If it is determined that the wired network card is connected to the network cable, the IP information and the subnet mask of the first network are obtained, the network address of the first network is calculated according to the IP information and the subnet mask, the route in the routing table of the first network is filled based on the network address, and the creation of the routing table of the first network is realized. Further, the routing table is added in the routing priority, the construction of the route of the first network is completed, the data of the wired local area network is queried according to the routing table of the wired local area network, and is transmitted through the wired local area network. The data of the wireless wide area network is queried according to the routing table of the wireless wide area network, and is transmitted through the wireless wide area network. If it is determined that the wired network card is not connected to the network cable, the connection of the network cable is continued to be waited.

[0113] In the above scheme, the construction of the routing table is performed in the case that the target device has the wired network card and is connected to the network cable, and the invalid construction of the routing table of the first network is avoided.

[0114] In some implementable examples, the network management method further includes S130. Figure 9 As shown in FIG. 13, after the network information of the first network is obtained, the network management method further includes S131. Figure 10 As shown in FIG. 13, after the network information of the first network is obtained, the network management method further includes S131.

[0115] S135, broadcast the message that the first network is connected successfully to the target system display application; wherein the target system display application is used to display the identification that the wired network has been connected on the user interface.

[0116] The target system display application can be an application program used to display the identification on the user interface of the display.

[0117] In the embodiment, the network management device can generate the information that the first network is connected successfully, and send the message to the target system display application in a broadcast manner. After the target system display application receives the information that the first network is connected successfully, it determines the wired network connected identification associated with the information, and displays the wired network connected identification on the user interface.

[0118] In the related art, the broadcasting of the wireless wide area network connection success message is disconnected after the wireless wide area network is deleted. Optionally, in the embodiment, after intercepting the operation of deleting the wireless wide area network, the operation of disconnecting the broadcasting of the wireless wide area network connection success message can be continued to be intercepted. That is, the network management device can broadcast the wireless wide area network connection success message and the first network connection success message to the target system display application. Accordingly, the target system display application displays the wireless network connection identifier and the wired network connection identifier on the user interface at the same time.

[0119] In the above scheme, the user can be informed of the first network connection success, and the user can be enabled to know the network connection status of the target device in real time.

[0120] In some implementable examples, in combination with Figure 4 As shown in the above scheme, before the network management method determines whether the first network belongs to the wired local area network if it is detected that the first network accesses the target device, the network management method further includes S9-S10. Figure 11

[0121] S9, in response to a trigger operation on the network setting page for a preset wired network configuration entry, a wired network configuration window is displayed.

[0122] The network setting page can be an interactive interface for setting network information of the first network. The preset wired network configuration entry can be a trigger control pre-set for entering the wired network configuration window. The trigger operation can be a user's click operation, voice control operation, touch operation, etc. The wired network configuration window can be a window for setting network information of the first network.

[0123] In the embodiment, the network setting page can be displayed on the display of the target device, and the wired network configuration entry exists on the network setting page, which can be triggered by the user. In response to the trigger operation of the user, the target device displays the wired network configuration window.

[0124] S10, based on the wired network configuration window, wired network configuration information is received; the wired network configuration information is used to constitute the network information of the first network.

[0125] The network configuration information can be related information of the network configuration input by the user.

[0126] ​In the embodiment, in the network configuration window, an IP address input box, a subnet mask input box, a gateway input box, and a Domain Name System (DNS) input box can be displayed, and a user can input corresponding network configuration information in the input boxes. The network management apparatus obtains the network configuration information, determines the IP address in the network configuration information as the IP information in the network information of the first network, and determines the subnet mask in the network configuration information as the subnet mask in the network information of the first network.

[0127] Figure 12 A schematic diagram of a network setting page provided by the embodiment of the disclosure is shown in FIG. 6. As shown in FIG. 6, the wired local area network is a community wired network, and the community wired network has been connected. A user can click the community wired network on the network setting page to enter the wired network configuration window. The user can input corresponding information in the input boxes of the wired network configuration window, or click IP setting on the wired network configuration window to automatically perform network configuration of the community wired network. Figure 12 A schematic diagram of another network setting page provided by the embodiment of the disclosure is shown in FIG. 7. As shown in FIG. 7, the community wired network is not connected. A user clicks the community wired network on the network setting page to enter the community wired network connection prompt window. In the window, a message of “the community network has been disconnected. Please check the line connection” is displayed. Figure 13 A schematic diagram of another network setting page provided by the embodiment of the disclosure is shown in FIG. 7. As shown in FIG. 7, the community wired network is not connected. A user clicks the community wired network on the network setting page to enter the community wired network connection prompt window. In the window, a message of “the community network has been disconnected. Please check the line connection” is displayed. Figure 13

[0128] In the above scheme, the configuration information of the wired network is set in advance, which provides data support for subsequent network management such as constructing a routing table.

[0129] It should be noted that the application scenarios of the network management method provided by the embodiment of the disclosure include but are not limited to the following scenarios:

[0130] Scenario one: the target device is in a connected state of a wired wide area network, and the target device meets the hardware requirements for connecting a wireless wide area network. If it is detected that the first network accesses the target device, the network management apparatus deletes the wired wide area network and makes the target device in a connected state of a wireless wide area network. Further, based on the network management method, if it is determined that the first network belongs to a wired local area network, the deletion operation on the wireless wide area network is intercepted, and a routing table of the first network is constructed.

[0131] Scenario two: the target device is already in a connected state of a wireless wide area network. Based on the network management method, if it is determined that the first network belongs to a wired local area network, the deletion operation on the wireless wide area network is intercepted, and a routing table of the first network is constructed.

[0132] ​Scenario three: the wireless wide area network in the network management method is a network provided by a home Wi-Fi, and the wired local area network in the network management method is a community wired network.

[0133] In the network management method provided in the embodiments of the present disclosure, the home appliance device of the Android system can be connected to the wireless wide area network and the wired local area network at the same time, and the local area network data is transmitted through the wired local area network, and the wide area network data is transmitted through the wireless wide area network.

[0134] It should be noted that the above examples are described by taking the network management device as an example, which is the execution subject of the network management method provided in the embodiments of the present disclosure. In some other examples, the execution subject of the network management method provided in the embodiments of the present disclosure can also be the television 1 or the server 400 described above.

[0135] The above mainly introduces the scheme provided by the embodiments of the present application from the perspective of the method. In order to realize the above functions, it contains the hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that the units and algorithm steps of each example described in connection with the embodiments disclosed in the present text can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is realized in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0136] The embodiments of the present application can divide the network management device into functional modules according to the above method examples, for example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing unit. The integrated module can be realized in the form of hardware or software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical functional division. When actually implemented, there can be another division method.

[0137] As Figure 12 As shown in the figure, the embodiments of the present application provide a structural schematic diagram of a display device 200. It includes a communicator 101, a display 102 and a processor 103.

[0138] The communicator 101 is configured to acquire video frame data played by the display 102, wherein the video frame data can be acquired through a wired local area network and / or a wireless wide area network; the processor 103 can include a detection unit, an interception unit and a construction unit. The detection unit is configured to, when the target device is in a state of being connected to the wireless wide area network, if it is detected that a first network accesses the target device, determine whether the first network belongs to the wired local area network; the interception unit is configured to, if it is determined that the first network belongs to the wired local area network, intercept an operation of deleting the wireless wide area network; and the construction unit is configured to, based on network information of the first network, construct a routing table for the first network, wherein the routing table is configured to control data with a target address belonging to a network segment of the first network to be transmitted through the first network.

[0139] In some implementable examples, the construction unit specifically includes an acquisition subunit, a determination subunit, a generation subunit and a construction subunit. The acquisition subunit is configured to acquire IP information of the first network and a subnet mask of the first network; the determination subunit is configured to determine a network address of the first network according to the IP information and the subnet mask; the generation subunit is configured to generate a routing rule of the first network based on the network address and the subnet mask; and the construction subunit is configured to construct the routing table of the first network by using the routing rule of the first network.

[0140] In some implementable examples, the determination subunit is specifically configured to perform a bitwise AND operation on the IP information of the first network and the subnet mask to obtain the network address of the first network.

[0141] In some implementable examples, the processor 103 further includes a determination unit configured to determine a routing priority of the routing table of the first network after the routing table of the first network is constructed based on the network information of the first network, wherein the routing priority of the routing table is at a second priority of a routing rule of the target device, and the routing rule is configured to represent the routing priority of the routing table in the target device.

[0142] In some implementable examples, the determination unit is specifically configured to acquire a value of an initial second priority in the routing rule of the target device, and determine a value of the routing priority of the routing table of the first network by subtracting a preset value from the value of the initial second priority, wherein the value of the routing priority is inversely proportional to a routing priority level of the corresponding routing table.

[0143] In some implementable examples, the construction unit is specifically configured to, in a case where it is determined that there is a wired network card on the target device and a network cable is connected, construct the routing table for the first network based on the network information of the first network.

[0144] In some implementable examples, the processor 103 further includes a broadcast unit configured to: after constructing a routing table for the first network based on the network information of the first network, broadcast a message indicating that the first network is successfully connected to a target system display application; wherein the target system display application is configured to display an identifier indicating that the wired network is connected on the user interface.

[0145] In some implementable examples, the processor 103 further includes:

[0146] The display unit is configured to display a wired network configuration window in response to a trigger operation on the network settings page for a preset wired network configuration entry, before determining whether the first network belongs to a wired local area network if a first network is detected to be connected to the target device.

[0147] The receiving unit is configured to receive wired network configuration information based on the wired network configuration window; wherein the wired network configuration information is used to constitute network information of the first network.

[0148] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and their functions will not be repeated here.

[0149] Of course, the display device 200 provided in this application embodiment includes, but is not limited to, the modules described above. For example, the display device 200 may also include a memory 104. The memory 104 may be used to store the program code of the display device 200, and may also be used to store data generated by the display device 200 during operation, such as data in write requests.

[0150] like Figure 13 As shown, this application embodiment also provides a chip system that can be applied to the display device 200 in the foregoing embodiments. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 may be the processor in the aforementioned server 400. The processor 1501 and the interface circuit 1502 are interconnected via a line. The processor 1501 can receive and execute computer instructions from the memory of the display device 200 through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the display device 200 can perform the various steps performed by the display device 200 in the foregoing embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application embodiment.

[0151] This application also provides a computer-readable storage medium for storing computer instructions executed by the display device 200.

[0152] The embodiment of the present application further provides a computer program product, comprising computer instructions run by the display device 200.

[0153] The above description is merely that of the specific embodiments of the present disclosure to enable a person skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Accordingly, the present disclosure is not to be limited to these embodiments described herein but is to be accorded the broadest scope possible as disclosed herein.

Claims

1. A network management method characterized by comprising: The method comprises the steps of: When the target device is in a wireless wide area network connection state, if it is detected that there is a first network accessing the target device, it is determined whether the first network belongs to a wired local area network; If it is determined that the first network belongs to a wired local area network, an operation of intercepting and deleting the wireless wide area network is performed; wherein the operation of intercepting and deleting the wireless wide area network comprises skipping the deletion operation of the wireless wide area network and the route of the wireless wide area network, and skipping the broadcast operation of sending the wireless wide area network disconnection; Based on the network information of the first network, a routing table for the first network is constructed; wherein the routing table is used to control the transmission of data whose target address belongs to the network segment of the first network through the first network.

2. The method of claim 1, wherein, The step of constructing the routing table for the first network based on the network information of the first network comprises the steps of: Obtaining the IP information of the first network and the subnet mask of the first network; According to the IP information and the subnet mask, the network address of the first network is determined; Based on the network address and the subnet mask, the routing rule of the first network is generated; Using the routing rule of the first network, the routing table of the first network is constructed.

3. The method of claim 2, wherein, The step of determining the network address of the first network according to the IP information and the subnet mask comprises the step of: Performing a bitwise AND operation on the IP information of the first network and the subnet mask to obtain the network address of the first network.

4. The method of claim 1, wherein, After the step of constructing the routing table for the first network based on the network information of the first network, the step of determining the routing priority of the routing table for the first network is further included; wherein the routing priority of the routing table is at a second priority of the routing rule of the target device, and the routing rule is used to represent the routing priority of the routing table in the target device. The step of determining the routing priority of the routing table for the first network comprises the steps of:

5. The method of claim 4, wherein, Obtaining the value of the initial second priority in the routing rule of the target device; After subtracting a preset value from the value of the initial second priority, the value of the routing priority of the routing table for the first network is determined; wherein the value of the routing priority is inversely proportional to the routing priority level of the corresponding routing table. The step of constructing the routing table for the first network based on the network information of the first network comprises the step of:

6. The method of claim 1, wherein, In the case that it is determined that there is a wired network card on the target device and a connected network cable, the routing table for the first network is constructed based on the network information of the first network. After the step of constructing the routing table for the first network based on the network information of the first network, the step of broadcasting the message of successful connection of the first network to a target system display application is further included; wherein the target system display application is used to display the identification of the connected wired network on the user interface.

7. The method of claim 1, wherein, Before the step of determining whether the first network belongs to a wired local area network if it is detected that there is a first network accessing the target device, the step of displaying a wired network configuration window in response to a trigger operation on a preset wired network configuration entry on a network setting page is further included; ​ 8. The method of claim 1, wherein, ​ ​ Receiving wired network configuration information based on the wired network configuration window; wherein the wired network configuration information is used to constitute network information of the first network.

9. A network management apparatus characterized by comprising: The method comprises the steps of: A detection unit is configured to determine whether the first network belongs to a wired local area network if it is detected that the target device is accessed by the first network when the target device is in a state of being connected to a wireless wide area network. An interception unit is configured to intercept an operation of deleting the wireless wide area network if it is determined that the first network belongs to the wired local area network; wherein the operation of intercepting the operation of deleting the wireless wide area network comprises skipping the operation of deleting the wireless wide area network and a route of the wireless wide area network, and skipping the operation of sending a broadcast of disconnection of the wireless wide area network. A construction unit is configured to construct a routing table for the first network based on network information of the first network; wherein the routing table is used to control data whose target address belongs to a network segment of the first network to be transmitted through the first network.

10. An electronic device, comprising: The method comprises the steps of: A memory and a processor, wherein the memory is configured to store a computer program; and the processor is configured to execute the computer program, so that the electronic device implements the network management method according to any one of claims 1-8.

11. A computer readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the network management method according to any one of claims 1-8. ​

Citation Information

Patent Citations

  • Data transmission control method, control device and mobile terminal

    CN111327672A

  • Network switching method and device and gateway equipment

    CN114024903A