Interface processing method and device of visual networking terminal
By receiving and generating interface custom information, generating interface template files and replacing them, the cumbersome problem of video network terminal interface development is solved, and the rapid development and replacement of video network terminal interface is realized, and the development efficiency is improved.
Patent Information
- Application Number
- CN201910951440.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-08
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2039-10-08
AI Technical Summary
The prior art requires the participation of designers and professional front-end personnel when generating the video network terminal interface, which is cumbersome, resulting in long development time and low efficiency.
By receiving interface custom information sent by the front-end, an interface template file is generated, including interface frame data and static resource data, and sent to the file server. The video network terminal uses interface frame data to replace the interface frame to obtain static resource data from the file server. , generate interfaces to achieve quick development and replacement.
The video network terminal interface can be generated without professional front-end personnel, saving development time and improving development efficiency, and achieving quick development and replacement of the video network terminal interface.
Smart Images

Figure CN110928538B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of visual networking, and in particular to an interface processing method and device for a visual networking terminal. Background Art
[0002] With the rapid development of science and technology, the types of terminal devices are increasing, the technology of terminal interface template application is becoming more and more mature, and the quick development of interface templates has gradually become people's pursuit.
[0003] In the prior art, when generating the interface of a visual networking terminal product, designers are often required to design the interface images, font styles, layout methods, etc., and then professional front-end personnel develop the interface before releasing the terminal replacement interface. The process is cumbersome. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide a method and device for processing an interface of a visual networking terminal that overcomes the above problems or at least partially solves the above problems, including:
[0005] A method for processing an interface of a visual networking terminal, applied to a template application server, comprises:
[0006] Receiving interface customization information for the visual networking terminal sent by the front end;
[0007] Generate an interface template file according to the interface customization information; wherein the interface template file includes interface framework data and static resource data corresponding to the interface framework data;
[0008] The interface template file is sent to a file server, and the interface framework data in the interface template file is sent to a visual networking terminal; wherein the visual networking terminal is used to use the interface framework data to replace the interface framework, and obtain static resource data corresponding to the replaced interface framework from the file server to generate an interface.
[0009] Optionally, generating an interface template file according to the interface customization information includes:
[0010] Reading the hypertext tags in the interface custom information;
[0011] Determining interface layout information corresponding to the hypertext tag;
[0012] The interface layout information is used to generate an interface template file.
[0013] Optionally, the step of sending the interface framework data in the interface template file to the visual networking terminal includes:
[0014] Obtaining a visual networking terminal identifier in the interface customization information, and determining a visual networking terminal corresponding to the visual networking terminal identifier;
[0015] The interface framework data is sent to the visual networking terminal.
[0016] Optionally, the interface customization information includes one or more of the following:
[0017] Hypertext tags, visual network terminal logo;
[0018] The hypertext tag includes one or more of the following:
[0019] Component location label, component property label, hyperlink label, interface size label.
[0020] A method for processing an interface of a visual networking terminal is applied to the visual networking terminal, and the method comprises:
[0021] Receive the interface framework data sent by the template application server; wherein the template application server is used to receive the interface customization information sent by the front end, and generate an interface template file according to the interface customization information, wherein the interface template file includes the interface framework data and the static resource data corresponding to the interface framework data;
[0022] Using the interface framework data to replace the interface framework;
[0023] Obtain static resource data corresponding to the interface framework data from the file server to generate an interface; wherein the static resource data is sent to the file server through the template application server for storage.
[0024] An interface processing device for a visual networking terminal, the device comprising:
[0025] A data receiving module, used for receiving interface customization information for the visual networking terminal sent by the front end;
[0026] A template file generating module, used to generate an interface template file according to the interface customization information; wherein the interface template file includes interface framework data and static resource data corresponding to the interface framework data;
[0027] A template file sending module is used to send the interface template file to a file server, and to send the interface framework data in the interface template file to a visual networking terminal; wherein the visual networking terminal is used to use the interface framework data to replace the interface framework, and to obtain static resource data corresponding to the replaced interface framework from the file server to generate an interface.
[0028] Optionally, the template file generating module includes:
[0029] The tag reading submodule is used to read the hypertext tags in the interface custom information;
[0030] An information determination submodule, used to determine the interface arrangement information corresponding to the hypertext tag;
[0031] The interface layout submodule is used to generate an interface template file using the interface layout information.
[0032] Optionally, the template file sending module includes:
[0033] An identity determination submodule, used to obtain the visual networking terminal identifier in the interface custom information, and determine the visual networking terminal corresponding to the visual networking terminal identifier;
[0034] The framework data sending submodule is used to send the interface framework data to the visual network terminal.
[0035] Optionally, the interface customization information includes one or more of the following:
[0036] Hypertext tags, visual network terminal logo;
[0037] The hypertext tag includes one or more of the following:
[0038] Component location label, component property label, hyperlink label, interface size label.
[0039] An interface processing device for a visual networking terminal is applied to the visual networking terminal, and the method includes:
[0040] A framework data receiving module, used to receive the interface framework data sent by the template application server; wherein the template application server is used to receive the interface customization information sent by the front end, and generate an interface template file according to the interface customization information, wherein the interface template file includes the interface framework data and the static resource data corresponding to the interface framework data;
[0041] A replacement module, used to replace the interface framework using the interface framework data;
[0042] The interface generation module is used to obtain static resource data corresponding to the interface framework data from the file server to generate an interface; wherein the static resource data is sent to the file server through the template application server for storage.
[0043] The embodiments of the present invention have the following advantages:
[0044] In an embodiment of the present invention, by receiving interface customization information for a visual network terminal sent by a front end, an interface template file is generated according to the interface customization information. The interface template file may include interface framework data and static resource data corresponding to the interface framework data. After the interface template file is generated, the interface template file may be sent to a file server, and the interface framework data in the interface template file may be sent to the visual network terminal, so that the visual network terminal can use the interface framework data to replace the interface framework, and obtain the static resource data corresponding to the replaced interface framework from the file server to generate an interface, thereby realizing quick development and replacement of the visual network terminal interface. When designing the visual network terminal interface, the visual network terminal interface can be generated without the need for processing by professional front-end personnel, thereby saving the development time of the terminal interface and improving the development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0046] Figure 1 It is a flowchart of a method for processing an interface of a visual networking terminal provided by an embodiment of the present invention;
[0047] Figure 2 is a flow chart of replacing the Qiming terminal interface provided by an embodiment of the present invention;
[0048] Figure 3 It is a flowchart of another method for processing an interface of a visual networking terminal provided by an embodiment of the present invention;
[0049] Figure 4 It is a structural schematic diagram of an interface processing device of a visual networking terminal provided by an embodiment of the present invention;
[0050] Figure 5 It is a structural schematic diagram of another interface processing device of a visual networking terminal provided by an embodiment of the present invention;
[0051] Figure 6 This is a schematic diagram of a visual network provided by an embodiment of the present invention;
[0052] Figure 7 It is a schematic diagram of the hardware structure of a node server provided by an embodiment of the present invention;
[0053] Figure 8 It is a schematic diagram of the hardware structure of an access switch provided by an embodiment of the present invention;
[0054] Fig. 9 The present invention is a hardware structure diagram of an Ethernet protocol conversion gateway provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Reference Figure 1 , showing a step flow chart of an interface processing method of a visual networking terminal provided by an embodiment of the present invention, which can be applied to a template application server.
[0057] Specifically, the following steps may be included:
[0058] Step 101, receiving interface customization information for the visual networking terminal sent by the front end;
[0059] As an example, the front end may be the front end of a visual networking terminal template application system. In actual applications, the visual networking terminal template application system may include a front end and a template application server.
[0060] In the visual network terminal template application system, a variety of visual interface information management functions can be provided, such as custom interface template editing, text editing, picture and video uploading, and file storage. Among them, the template application server can be the connecting bridge between the visual network terminal and the front end. When the user designs the custom interface of the visual network terminal, the user can design and edit the interface of the visual network terminal through the front end and send it to the template application server.
[0061] Specifically, after entering the front end of the visual network terminal template application system, you can click the relevant button to create a new interface template. The interface template can be an html (Hypertext Markup Language) file. At the same time, you can enter the terminal identifier to which the interface template is applied in the front end, such as entering the terminal name "Qiming 3" or the terminal model, and set other configuration parameters, such as adjusting the drawing board size to set the specifications of the terminal interface, or setting the drawing board color to design the overall tone of the terminal interface.
[0062] After creating a template, users can further design the template. For example, they can drag one or more components from the component creation area and arrange them in any area on the canvas. They can also set different properties of the component through the toolbar after selecting the component, such as setting hyperlink jumps and adjusting component specifications. When users drag components or set component properties, the front end can record and generate interface customization information.
[0063] Alternatively, you can also use the drag method developed by combining Tdrag.js and dragula.js to enlarge and reduce the component directly through eight-point positioning and mouse dragging after selecting the component. Taking the rectangular component as an example, after selecting the component on the drawing board, the positioning points can be displayed at the four vertices and four midpoints of the component. Users can adjust the size of the component by directly dragging the positioning points, without having to enter component specification information in the toolbar, saving design time.
[0064] After the design is completed, the user can enter the preview window to preview the created terminal interface and view the overall effect of the interface. If the user thinks that the interface still needs to be adjusted, he can exit the preview window and continue editing the template.
[0065] After the adjustment is completed, the user can click the relevant button to upload the template and publish it. In response to the user operation, the front end can upload the interface customization information generated during the design process together with the script to the template application server so that the template application server can receive the information.
[0066] Step 102, generating an interface template file according to the interface customization information; wherein the interface template file includes interface framework data and static resource data corresponding to the interface framework data;
[0067] As an example, the interface template file may be an html file.
[0068] After obtaining the interface customization information, the template application server can further generate an interface template file based on the customization information, where the interface template file can include two parts, one part is the interface framework data, such as some fixed-format information or data in the interface template file, and the identification of the visual network terminal; the other part can be static resource data corresponding to the interface framework data, for example, in the interface template file, it can be used as a file for rendering or execution by the visual network terminal, such as JS data, CSS data, pictures, etc.
[0069] In one embodiment of the present invention, step 102 may include the following sub-steps: reading a hypertext tag in the interface customization information; determining the interface layout information corresponding to the hypertext tag; and using the interface layout information to generate an interface template file.
[0070] As an example, the interface customization information may include a hypertext tag, and the hypertext tag may include one or more of the following:
[0071] Component location label, component property label, hyperlink label, interface size label.
[0072] When the front end creates an interface template, although it can be an HTML file, when uploading custom information of the interface, the information can be uploaded in the form of hypertext tags instead of sending the entire file to the server. For example, when setting an image in the template, the hypertext tag " "Define the image. After obtaining the interface customization information, the template application server can obtain hypertext tags from it, such as component position tags, component attribute tags, hyperlink tags, interface size tags and other hypertext tags.
[0073] After reading the tag, the template application server can determine the corresponding interface layout information in the hypertext tag, for example, define the position of different components in the interface through the component position tag, and define the position of different components in the interface through the component attribute tag " "and" "Define the font to be bolded, through " "Define the image content and image size through the hyperlink tag" "For defining hyperlink content, the interface size is defined through the interface size tag. After determining the interface layout information, the template application server can use this information to generate an interface template file
[0074] Step 103, sending the interface template file to the file server, and sending the interface framework data in the interface template file to the visual networking terminal; wherein the visual networking terminal is used to use the interface framework data to replace the interface framework, and obtain the static resource data corresponding to the replaced interface framework from the file server to generate an interface.
[0075] As an example, the file server can be a server that stores interface template files; the visual network terminal can be a Qiming series terminal in the visual network, such as the Qiming 3 terminal. The Qiming 3 terminal is a high-definition video conferencing terminal of the visual network, which can realize high-definition video conferencing, video monitoring, videophone communication, information release and other functions.
[0076] After generating the interface template file, the template application server can send the complete interface template file to the file server for storage. At the same time, in order to reduce the pressure of the template application server to transfer files to the visual network terminal, only the interface framework data can be sent to the visual network terminal, while the static resource data that needs to be maintained by the file server or the file size is larger than the preset threshold, such as high-definition pictures, can be not sent to the visual network terminal. When the visual network terminal receives the interface framework data, it can use the framework data to replace the framework, and obtain the static resource data corresponding to the interface framework data from the file server, fill the static resource data into the interface framework, and generate the visual network terminal interface.
[0077] In a specific implementation, the terminal interface template file saved in the file server may have a visual network terminal identifier to indicate the visual network terminal to which the interface template file is applicable. After the visual network terminal obtains the interface framework data, it can search for the interface template file with the corresponding identifier in the file server and obtain static resource data from the interface template file.
[0078] In one embodiment of the present invention, the interface framework data in the interface template file can be sent to the visual network terminal through the following sub-steps:
[0079] Acquire the visual networking terminal identifier in the interface customization information, and determine the visual networking terminal corresponding to the visual networking terminal identifier; and send the interface framework data to the visual networking terminal.
[0080] As an example, the interface customization information may include a visual networking terminal identifier.
[0081] Since the visual network terminal to which the interface template is applied can be specified when the front-end interface template is used, the visual network terminal identifier can be written into the interface customization information when the front-end generates the interface customization information.
[0082] When sending interface framework data, the template application server can obtain the visual network terminal identifier from the interface customization information and determine the visual network terminal corresponding to the identifier. For example, if the terminal identifier is "Qiming 3", it can be determined that the interface framework data is applicable to the visual network terminal "Qiming 3" and the interface framework data can be sent to the visual network terminal.
[0083] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present invention is illustrated below by using an example, but it should be understood that the embodiment of the present invention is not limited thereto.
[0084] When designing the interface of the visual networking terminal "Qiming 3 Terminal", the user can create a template and design it through the front end 201. After the design is completed, the front end 201 can send the interface customization information generated in the design process to the template application server 202. After receiving the interface customization information, the template application server 202 can obtain hypertext tags from it, generate a complete interface template file, and send the interface template file with the identification "Qiming 3 Terminal" to the file server 203 for storage. At the same time, the template application server 202 can also send the interface framework data in the interface template file to the Qiming 3 terminal 204. After receiving the interface framework data, the Qiming 3 terminal 204 can replace the original terminal interface framework. After the replacement is successful, the Qiming 3 terminal 204 can access the file server 203, search for the interface template file with "Qiming 3 Terminal", and obtain static resource data from the interface template file, fill the static resource data into the interface framework, and generate the final terminal interface.
[0085] In an embodiment of the present invention, by receiving interface customization information for a visual network terminal sent by a front end, an interface template file is generated according to the interface customization information. The interface template file may include interface framework data and static resource data corresponding to the interface framework data. After the interface template file is generated, the interface template file may be sent to a file server, and the interface framework data in the interface template file may be sent to the visual network terminal, so that the visual network terminal can use the interface framework data to replace the interface framework, and obtain the static resource data corresponding to the replaced interface framework from the file server to generate an interface, thereby realizing quick development and replacement of the visual network terminal interface. When designing the visual network terminal interface, the visual network terminal interface can be generated without the need for processing by professional front-end personnel, thereby saving the development time of the terminal interface and improving the development efficiency.
[0086] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0087] Reference Figure 3 , showing a step flow chart of another interface processing method of a visual networking terminal provided by an embodiment of the present invention, which can be applied to a visual networking terminal.
[0088] Specifically, the following steps may be included:
[0089] Step 301, receiving the interface framework data sent by the template application server; wherein the template application server is used to receive the interface customization information sent by the front end, and generate an interface template file according to the interface customization information, wherein the interface template file includes the interface framework data and the static resource data corresponding to the interface framework data;
[0090] Step 302, using the interface framework data to replace the interface framework;
[0091] Step 303, obtaining static resource data corresponding to the interface framework data from the file server to generate an interface; wherein the static resource data is sent to the file server through the template application server for storage.
[0092] In an embodiment of the present invention, by receiving interface framework data sent by a template application server, wherein the template application server can receive interface customization information sent by a front end, and generate an interface template file according to the interface customization information, the interface template file can include interface framework data and static resource data corresponding to the interface framework data, the visual network terminal can use the interface framework data to replace the interface framework, and obtain the static resource data corresponding to the interface framework data from the file server to generate an interface, wherein the static resource data can be sent to the file server via the template application server for storage, thereby realizing quick development and replacement of the visual network terminal interface, and when designing the visual network terminal interface, the visual network terminal interface can be generated without the need for processing by professional front-end personnel, thereby saving the development time of the terminal interface and improving the development efficiency.
[0093] Reference Figure 4 , shows a schematic diagram of the structure of an interface processing device of a visual networking terminal provided by an embodiment of the present invention, which may specifically include:
[0094] The data receiving module 401 is used to receive the interface customization information for the visual networking terminal sent by the front end;
[0095] The template file generating module 402 is used to generate an interface template file according to the interface customization information; wherein the interface template file includes interface framework data and static resource data corresponding to the interface framework data;
[0096] The template file sending module 403 is used to send the interface template file to the file server, and send the interface framework data in the interface template file to the visual networking terminal; wherein the visual networking terminal is used to use the interface framework data to replace the interface framework, and obtain the static resource data corresponding to the replaced interface framework from the file server to generate an interface.
[0097] In one embodiment of the present invention, the template file generating module 402 may include:
[0098] The tag reading submodule is used to read the hypertext tags in the interface custom information;
[0099] An information determination submodule, used to determine the interface arrangement information corresponding to the hypertext tag;
[0100] The interface layout submodule is used to generate an interface template file using the interface layout information.
[0101] In an embodiment of the present invention, the template file sending module 403 may include:
[0102] An identity determination submodule, used to obtain the visual networking terminal identifier in the interface custom information, and determine the visual networking terminal corresponding to the visual networking terminal identifier;
[0103] The framework data sending submodule is used to send the interface framework data to the visual network terminal.
[0104] In another embodiment of the present invention, the interface customization information may include one or more of the following:
[0105] Hypertext tags, visual network terminal logo;
[0106] The hypertext tag includes one or more of the following:
[0107] Component location label, component property label, hyperlink label, interface size label.
[0108] In an embodiment of the present invention, by receiving interface customization information for a visual network terminal sent by a front end, an interface template file is generated according to the interface customization information. The interface template file may include interface framework data and static resource data corresponding to the interface framework data. After the interface template file is generated, the interface template file may be sent to a file server, and the interface framework data in the interface template file may be sent to the visual network terminal, so that the visual network terminal can use the interface framework data to replace the interface framework, and obtain the static resource data corresponding to the replaced interface framework from the file server to generate an interface, thereby realizing quick development and replacement of the visual network terminal interface. When designing the visual network terminal interface, the visual network terminal interface can be generated without the need for processing by professional front-end personnel, thereby saving the development time of the terminal interface and improving the development efficiency.
[0109] Reference Figure 5 , shows a schematic diagram of the structure of an interface processing device of a visual networking terminal provided by an embodiment of the present invention, which may specifically include:
[0110] The framework data receiving module 501 is used to receive the interface framework data sent by the template application server; wherein the template application server is used to receive the interface customization information sent by the front end, and generate an interface template file according to the interface customization information, wherein the interface template file includes the interface framework data and the static resource data corresponding to the interface framework data;
[0111] A replacement module 502, used to replace the interface framework using the interface framework data;
[0112] The interface generation module 503 is used to obtain static resource data corresponding to the interface framework data from the file server to generate an interface; wherein the static resource data is sent to the file server through the template application server for storage.
[0113] In an embodiment of the present invention, by receiving interface framework data sent by a template application server, wherein the template application server can receive interface customization information sent by a front end, and generate an interface template file according to the interface customization information, the interface template file can include interface framework data and static resource data corresponding to the interface framework data, the visual network terminal can use the interface framework data to replace the interface framework, and obtain the static resource data corresponding to the interface framework data from the file server to generate an interface, wherein the static resource data can be sent to the file server via the template application server for storage, thereby realizing quick development and replacement of the visual network terminal interface, and when designing the visual network terminal interface, the visual network terminal interface can be generated without the need for processing by professional front-end personnel, thereby saving the development time of the terminal interface and improving the development efficiency.
[0114] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0115] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the interface processing method of the network terminal are implemented as described above.
[0116] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for processing the interface of a network terminal are implemented.
[0117] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.
[0118] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.
[0119] In order to enable those skilled in the art to better understand the embodiments of the present invention, the visual network is introduced as follows:
[0120] Some of the technologies used in the visual Internet of Things are as follows:
[0121] Network Technology
[0122] The network technology innovation of visual networking improves the traditional Ethernet to cope with the huge potential video traffic on the network. Different from simple network packet switching or network circuit switching, visual networking technology uses packet switching to meet streaming needs. Visual networking technology has the flexibility, simplicity and low price of packet switching, and the quality and security guarantee of circuit switching, realizing the seamless connection of the whole network switching virtual circuit and data format.
[0123] Switching Technology
[0124] Visual networking uses the two advantages of Ethernet: asynchronism and packet switching. It eliminates Ethernet defects under the premise of full compatibility, and has seamless end-to-end connection across the entire network, directly connects to user terminals, and directly carries IP data packets. User data does not require any format conversion within the entire network. Visual networking is a more advanced form of Ethernet and a real-time switching platform that can achieve large-scale real-time transmission of high-definition video across the entire network, which is currently unattainable on the Internet, and pushes many network video applications towards high definition and unification.
[0125] Server Technology
[0126] The server technology on the visual network and unified video platform is different from the traditional server. Its streaming media transmission is based on connection-oriented. Its data processing capability is independent of traffic and communication time. A single network layer can include signaling and data transmission. For voice and video services, the complexity of streaming media processing on the visual network and unified video platform is much simpler than data processing, and its efficiency is more than 100 times higher than that of traditional servers.
[0127] Storage Technology
[0128] The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system to adapt to the media content with ultra-large capacity and ultra-large flow, mapping the program information in the server command to the specific hard disk space. The media content no longer passes through the server, but is directly delivered to the user terminal in an instant. The user generally waits for less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical movement of the hard disk head seeking, and the resource consumption accounts for only 20% of the same level of IP Internet, but it generates 3 times more concurrent traffic than the traditional hard disk array, and the overall efficiency is improved by more than 10 times.
[0129] Network Security Technology
[0130] The structural design of the visual network completely eradicates the network security issues that plague the Internet through separate licensing for each service and complete isolation of equipment and user data. Generally, anti-virus programs and firewalls are not required, and attacks by hackers and viruses are eliminated, providing users with a structurally worry-free and secure network.
[0131] Service Innovation Technology
[0132] The unified video platform integrates services and transmission. Whether it is a single user, a private network user or a network, it is just an automatic connection. User terminals, set-top boxes or PCs are directly connected to the unified video platform to obtain rich and colorful multimedia video services in various forms. The unified video platform uses a "recipe-style" table configuration mode to replace traditional complex application programming. Complex applications can be implemented with very little code, realizing "unlimited" new business innovation.
[0133] The networking of the visual network is as follows:
[0134] Visual networking is a centrally controlled network structure. The network can be a tree network, star network, ring network, etc., but on this basis, there needs to be a centralized control node in the network to control the entire network.
[0135] like Figure 6 As shown in the figure, the visual network is divided into two parts: access network and metropolitan area network.
[0136] The equipment in the access network can be divided into three categories: node server, access switch, and terminal (including various set-top boxes, encoding boards, storage, etc.). The node server is connected to the access switch, and the access switch can be connected to multiple terminals and can be connected to Ethernet.
[0137] The node server is a node in the access network that performs centralized control functions and can control access switches and terminals. The node server can be directly connected to the access switch or directly connected to the terminal.
[0138] Similarly, the devices in the metropolitan area network can also be divided into three categories: metropolitan area servers, node switches, and node servers. The metropolitan area servers are connected to the node switches, and the node switches can be connected to multiple node servers.
[0139] The node server is a node server of the access network part, that is, the node server belongs to both the access network part and the metropolitan area network part.
[0140] The metropolitan area server is a node with centralized control function in the metropolitan area network, which can control the node switch and node server. The metropolitan area server can be directly connected to the node switch or the node server.
[0141] It can be seen from this that the entire visual network is a hierarchical and centrally controlled network structure, and the network controlled by the node server and the metropolitan area server can be a tree, star, ring and other structures.
[0142] Figuratively speaking, the access network part can form a unified video platform (the part in the dotted circle), and multiple unified video platforms can form a visual network; each unified video platform can be interconnected through the metropolitan area and wide area visual networks.
[0143] 1. Classification of visual networking equipment
[0144] 1.1 The devices in the visual network of the embodiment of the present invention can be mainly divided into three categories: servers, switches (including Ethernet protocol conversion gateways), terminals (including various set-top boxes, encoding boards, storage devices, etc.). The visual network as a whole can be divided into a metropolitan area network (or a national network, a global network, etc.) and an access network.
[0145] 1.2 The equipment in the access network can be mainly divided into three categories: node server, access switch (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, encoding boards, storage, etc.).
[0146] The specific hardware structure of each access network device is as follows:
[0147] Node server:
[0148] like Figure 7 As shown, it mainly includes a network interface module 701, a switching engine module 702, a CPU module 703, and a disk array module 704;
[0149] Among them, the packets coming from the network interface module 701, the CPU module 703, and the disk array module 704 all enter the switching engine module 702; the switching engine module 702 performs an operation of checking the address table 705 on the incoming packets, thereby obtaining the packet's guidance information; and according to the packet's guidance information, the packet is stored in the queue of the corresponding packet buffer 706; if the queue of the packet buffer 706 is close to full, it is discarded; the switching engine module 705 polls all packet buffer queues, and forwards if the following conditions are met: 1) the port sending buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 704 mainly implements the control of the hard disk, including the initialization, reading and writing of the hard disk; the CPU module 703 is mainly responsible for the protocol processing between the access switch and the terminal (not shown in the figure), the configuration of the address table 705 (including the downstream protocol packet address table, the upstream protocol packet address table, and the data packet address table), and the configuration of the disk array module 704.
[0150] Access switch:
[0151] like Figure 8 As shown, it mainly includes a network interface module (a downlink network interface module 801, an uplink network interface module 802), a switching engine module 803 and a CPU module 804;
[0152] Among them, the packet (uplink data) coming from the downlink network interface module 801 enters the packet detection module 805; the packet detection module 805 detects whether the destination address (DA), source address (SA), data packet type and packet length of the packet meet the requirements. If they meet the requirements, the corresponding stream identifier (stream-id) is allocated and enters the switching engine module 803, otherwise it is discarded; the packet (downlink data) coming from the uplink network interface module 802 enters the switching engine module 803; the data packet coming from the CPU module 804 enters the switching engine module 803; the switching engine module 803 processes the incoming packets. The address table 806 is looked up to obtain the packet's guidance information; if the packet entering the switching engine module 803 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 807 in combination with the stream identifier (stream-id); if the queue of the packet buffer 807 is nearly full, it is discarded; if the packet entering the switching engine module 803 is not from the downstream network interface to the upstream network interface, the data packet is stored in the queue of the corresponding packet buffer 807 according to the packet's guidance information; if the queue of the packet buffer 807 is nearly full, it is discarded.
[0153] The switching engine module 803 polls all packet buffer queues. In the embodiment of the present invention, there are two situations:
[0154] If the queue is from the downlink network interface to the uplink network interface, it is forwarded if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero; 3) a token generated by the bit rate control module is obtained;
[0155] If the queue is not going from the downstream network interface to the upstream network interface, it is forwarded if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
[0156] The code rate control module 808 is configured by the CPU module 804 to generate tokens for all packet buffer queues from the downstream network interface to the upstream network interface within a programmable interval to control the code rate of the upstream forwarding.
[0157] The CPU module 804 is mainly responsible for protocol processing with the node server, configuration of the address table 806 , and configuration of the bit rate control module 808 .
[0158] Ethernet protocol conversion gateway :
[0159] like Fig. 9 As shown, it mainly includes a network interface module (a downlink network interface module 701, an uplink network interface module 702), a switching engine module 903, a CPU module 904, a packet detection module 905, a bit rate control module 908, an address table 906, a packet buffer 907, a MAC adding module 909, and a MAC deleting module 910.
[0160] The data packet from the downlink network interface module 901 enters the packet detection module 905; the packet detection module 905 detects whether the Ethernet MAC DA, Ethernet MAC SA, Ethernet length or frame type, visual network destination address DA, visual network source address SA, visual network data packet type and packet length of the data packet meet the requirements, and if they meet the requirements, a corresponding stream identifier (stream-id) is assigned; then, the MAC deletion module 710 subtracts the MAC DA, MAC SA, length or frame type (2 bytes) and enters the corresponding receiving buffer, otherwise it is discarded;
[0161] The downlink network interface module 701 detects the sending buffer of the port. If there is a packet, it obtains the Ethernet MAC DA of the corresponding terminal based on the visual network destination address DA of the packet, adds the Ethernet MAC DA of the terminal, the MACSA of the Ethernet protocol conversion gateway, and the Ethernet length or frame type, and sends it.
[0162] The functions of other modules in the Ethernet protocol conversion gateway are similar to those of the access switch.
[0163] terminal:
[0164] It mainly includes network interface module, business processing module and CPU module; for example, the set-top box mainly includes network interface module, audio and video encoding and decoding engine module, CPU module; the encoding board mainly includes network interface module, audio and video encoding engine module, CPU module; the memory mainly includes network interface module, CPU module and disk array module.
[0165] 1.3 The equipment in the metropolitan area network can be divided into two categories: node server, node switch, and metropolitan area server. Among them, the node switch mainly includes network interface module, switching engine module and CPU module; the metropolitan area server mainly includes network interface module, switching engine module and CPU module.
[0166] 2. Definition of Visual Network Data Packet
[0167] 2.1 Access Network Data Packet Definition
[0168] The data packet of the access network mainly includes the following parts: destination address (DA), source address (SA), reserved bytes, payload (PDU), and CRC.
[0169] As shown in the following table, the data packet of the access network mainly includes the following parts:
[0170] DA S Reserved Payload CRC
[0171] in:
[0172] The destination address (DA) consists of 8 bytes. The first byte indicates the type of data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), with a maximum of 256 possibilities. The second to sixth bytes are the metropolitan area network address, and the seventh and eighth bytes are the access network address.
[0173] The source address (SA) is also composed of 8 bytes and has the same definition as the destination address (DA).
[0174] The reserved bytes consist of 2 bytes;
[0175] The payload part has different lengths depending on the type of datagram. If it is a protocol packet, it is 64 bytes. If it is a single multicast data packet, it is 32+1024=1056 bytes. Of course, it is not limited to the above two types.
[0176] CRC consists of 4 bytes and its calculation method follows the standard Ethernet CRC algorithm.
[0177] 2.2 Definition of Metropolitan Area Network Data Packet
[0178] The topology of the metropolitan area network is a graph. There may be two or more connections between two devices, that is, there may be more than two connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metropolitan area network address of a metropolitan area network device is unique. In order to accurately describe the connection relationship between metropolitan area network devices, a parameter: a label is introduced in the embodiment of the present invention to uniquely describe a metropolitan area network device.
[0179] The definition of labels in this manual is similar to the definition of labels in MPLS (Multi-Protocol Label Switch). Assuming that there are two connections between device A and device B, there are two labels for the data packet from device A to device B, and there are two labels for the data packet from device B to device A. Labels are divided into input labels and output labels. Assuming that the label of the data packet entering device A (input label) is 0x0000, the label of the data packet when leaving device A (output label) may become 0x0001. The access process of the metropolitan area network is a centralized access process, which means that the address allocation and label allocation of the metropolitan area network are dominated by the metropolitan area server, and the node switch and node server are only passively executed. This is different from the label allocation of MPLS, which is the result of mutual negotiation between the switch and the server.
[0180] As shown in the following table, the data packets of the metropolitan area network mainly include the following parts:
[0181] DA S Reserved Label Payload CRC
[0182] That is, destination address (DA), source address (SA), reserved byte (Reserved), label, payload (PDU), CRC. The label format can refer to the following definition: the label is 32 bits, of which the upper 16 bits are reserved and only the lower 16 bits are used. It is located between the reserved bytes and payload of the data packet.
[0183] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0184] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0185] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0188] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0189] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0190] The above is a detailed introduction to the interface processing method of a visual networking terminal provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for processing an interface of a visual networking terminal, characterized in that: Applied to the template application server, the method includes: Receiving interface customization information for the visual networking terminal sent by the front end; the interface customization information is designed and edited by the user through the front end, and sent to the template application server; Reading a hypertext tag in the interface customization information, determining interface layout information corresponding to the hypertext tag, and using the interface layout information to generate an interface template file, wherein the interface template file includes interface framework data and static resource data corresponding to the interface framework data; The interface template file is sent to a file server, and the interface framework data in the interface template file is sent to a visual networking terminal; wherein the visual networking terminal is used to use the interface framework data to replace the interface framework, and obtain static resource data corresponding to the replaced interface framework from the file server to generate an interface.
2. The method according to claim 1, characterized in that: The sending of the interface framework data in the interface template file to the visual networking terminal includes: Obtaining a visual networking terminal identifier in the interface customization information, and determining a visual networking terminal corresponding to the visual networking terminal identifier; The interface framework data is sent to the visual networking terminal.
3. The method according to claim 2, characterized in that The interface customization information includes one or more of the following: Hypertext tags, visual network terminal logo; The hypertext tag includes one or more of the following: Component location label, component property label, hyperlink label, interface size label.
4. A method for processing an interface of a visual networking terminal, characterized in that: Applied to a visual networking terminal, the method comprises: Receive the interface framework data sent by the template application server; wherein the template application server is used to receive the interface customization information sent by the front end, and generate an interface template file according to the interface customization information, wherein the interface template file includes the interface framework data and the static resource data corresponding to the interface framework data; the interface customization information is designed and edited by the user through the front end to the interface of the visual network terminal, and sent to the template application server; the interface template file is generated by the template application server by reading the hypertext tag in the interface customization information, determining the interface layout information corresponding to the hypertext tag, and using the interface layout information; Using the interface framework data to replace the interface framework; Obtain static resource data corresponding to the interface framework data from the file server to generate an interface; wherein the static resource data is sent to the file server through the template application server for storage.
5. An interface processing device for a visual networking terminal, characterized in that: The device comprises: A data receiving module, used for receiving interface customization information for the visual networking terminal sent by the front end; the interface customization information is designed and edited by the user through the front end, and sent to the template application server; A template file generating module, used to generate an interface template file according to the interface customization information; wherein the interface template file includes interface framework data and static resource data corresponding to the interface framework data; A template file sending module, used to send the interface template file to a file server, and send the interface framework data in the interface template file to a visual networking terminal; wherein the visual networking terminal is used to use the interface framework data to replace the interface framework, and obtain static resource data corresponding to the replaced interface framework from the file server to generate an interface; The template file generation module includes: The tag reading submodule is used to read the hypertext tags in the interface custom information; An information determination submodule, used to determine the interface arrangement information corresponding to the hypertext tag; The interface layout submodule is used to generate an interface template file using the interface layout information.
6. The device according to claim 5, characterized in that The template file sending module includes: An identity determination submodule, used to obtain the visual networking terminal identifier in the interface custom information, and determine the visual networking terminal corresponding to the visual networking terminal identifier; The framework data sending submodule is used to send the interface framework data to the visual network terminal.
7. The device according to claim 5, characterized in that The interface customization information includes one or more of the following: Hypertext tags, visual network terminal logo; The hypertext tag includes one or more of the following: Component location label, component property label, hyperlink label, interface size label.
8. An interface processing device for a visual networking terminal, characterized in that: Applied to a visual networking terminal, the device comprises: A framework data receiving module, used for receiving interface framework data sent by a template application server; wherein the template application server is used for receiving interface customization information sent by a front end, and generating an interface template file according to the interface customization information, wherein the interface template file includes interface framework data and static resource data corresponding to the interface framework data; the interface customization information is designed and edited by a user through the front end for the interface of the visual network terminal, and sent to the template application server; the interface template file is generated by the template application server by reading a hypertext tag in the interface customization information, determining the interface layout information corresponding to the hypertext tag, and adopting the interface layout information; A replacement module, used to replace the interface framework using the interface framework data; The interface generation module is used to obtain static resource data corresponding to the interface framework data from the file server to generate an interface; wherein the static resource data is sent to the file server through the template application server for storage.
