Interface updating method and system of WebOS television system and storage medium
By developing WebUI update service modules on the TV device side and using cross-platform Cli scaffolding tools on the development computer side, end-to-end automated WebUI updates are solved, and the problems of cumbersome and high cost in traditional WebUI update solutions are improved, and development efficiency is reduced and hardware and labor costs are reduced.
Patent Information
- Application Number
- CN202510557389.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-07-18
AI Technical Summary
The existing WebUI update solution is cumbersome, has low work efficiency, high cost, and has serious dependence on mobile storage devices and serial port tools, which increases hardware procurement and labor costs.
Develop WebUI update service module on the TV device side, and use cross-platform Cli scaffolding tools on the development computer side to achieve end-to-end direct connection, and automatically handle the construction, transmission and update of WebUI resource packages to avoid restarting the TV device.
Simplified the update process, reduced hardware and labor costs, improved development efficiency, reduced operation time, and improved update flexibility and accuracy.
Smart Images

Figure CN120343335A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart TV software, and particularly to an interface update method, system and computer-readable storage medium for a WebOS TV system. Background Art
[0002] The WebOS TV system is usually developed and implemented with the Linux operating system as the underlying support and combined with a browser container. In this system architecture, the WebUI module plays a crucial role. As the only window for users to interact with the TV system, it bears the display of the entire system's UI interface and the implementation of all interaction processes, directly affecting the user experience. Therefore, during the entire life cycle of research, development and maintenance of the WebOS TV system, the debugging and update of the WebUI have become the key links to ensure the stable operation of the system and the optimization of functions.
[0003] However, the current traditional WebUI update solution has exposed many obvious defects in practical applications, seriously restricting the development efficiency and cost control. Its update steps are as follows:
[0004] (1). First, the WebUI module project is completely packaged. This process involves the compilation and integration of a large number of resource files such as code files, picture resources, and script files. Each build and package takes a certain amount of time, usually 5 - 10 minutes, and the time cost cannot be ignored. If there are frequent modification, debugging and updates, the accumulated time consumption will be very large.
[0005] (2). After the packaging is completed, the generated resource package is copied to the TV system by means of removable storage devices such as USB flash drives and external hard drives. This process is also cumbersome. It is also necessary to externally connect the TV device and the development computer through a serial port tool. Only by establishing this physical connection can developers use the serial port tool to copy the resource package to the specified directory, further wasting time, and at the same time requiring developers to have certain serial port operation skills.
[0006] (3). Finally, the TV is restarted, and the TV system reloads the WebUI resources to complete the entire update process.
[0007] This repetitive and cumbersome operation greatly reduces the work efficiency. Moreover, this traditional mode has a serious dependence on removable storage devices and serial port tools. Developers need to frequently use external removable devices for resource copying, and each update must be connected to the TV through a serial port tool, which undoubtedly consumes a large amount of time and labor costs.
[0008] From a cost perspective, in order to meet this traditional debugging and updating method, usually each R & D personnel needs to be equipped with a dedicated TV device, and this device needs to be placed near the work station for ready operation at any time. This not only increases the hardware procurement cost but also occupies valuable office space resources. In addition, considering parallel development of multiple projects or compatibility testing of different TV system models, the number of TV devices to be equipped will further increase, and the cost pressure will also rise sharply accordingly.
[0009] Therefore, the existing technology still needs to be improved and developed. Summary of the Invention
[0010] The main purpose of the present invention is to provide an interface update method, system and computer-readable storage medium for a WebOS TV system, aiming to solve the problems of cumbersome operation, low work efficiency and high cost in the existing WebUI update solution.
[0011] To achieve the above object, the present invention provides an interface update method for a WebOS TV system, and the interface update method for the WebOS TV system includes the following steps:
[0012] According to the operation instruction of the developer, the factory menu is called out at the TV device end, the WebUI update debug switch is turned on, and the update service of the WebUI resource package in the WebOS TV system is activated;
[0013] The TV device end is restarted to make the update configuration in the factory menu configuration take effect;
[0014] After the WebOS TV system is restarted, it reads the configuration information, automatically starts the WebUI update service module, controls the API interface to take effect officially and sets the visual operation page to an accessible state;
[0015] At the development computer end, according to the packaging command input by the developer using the cross-platform Cli scaffolding tool, the WebUI resources are packaged to generate a WebUI update package available for update;
[0016] According to the input search command, the Cli scaffolding tool automatically searches for TV devices in the local area network with the update service enabled, lists the device list, and specifies the target TV device from the list;
[0017] According to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device;
[0018] According to the input running command, the Cli scaffolding tool controls the WebUI update package to run on the target TV device.
[0019] Optionally, in the method for updating the interface of the WebOS TV system, according to the input running command, the Cli scaffolding tool controls the WebUI update package to run on the target TV device, and then further includes:
[0020] When a developer needs to restore the update package, reload the built-in WebUI of the system, and enter a special restore command on the development computer through the Cli scaffolding tool. The restore command sends an operation signal to the WebOS TV system through the API interface provided by the WebUI update service module on the TV device side;
[0021] After the WebOS TV system receives the operation signal, delete the currently uploaded and used WebUI update package, and reload the original WebUI resources from the built-in storage location of the WebOS TV system.
[0022] Optionally, in the method for updating the interface of the WebOS TV system, before activating the update service of the WebUI resource package in the WebOS TV system by calling up the factory menu on the TV device side according to the operation instructions of the developer and turning on the WebUI update debug switch, further includes:
[0023] Develop a WebUI update service module in the WebOS TV system, and at the same time add a switch option for update debugging to the original factory menu module.
[0024] Optionally, in the method for updating the interface of the WebOS TV system, when the Cli scaffolding tool uploads the WebUI update package to the target TV device, if the path of the WebUI update package on the specified development computer is not specified, the default is to search in the current directory. Set the storage path of the WebUI update package of the target TV device by entering a command. If not specified, the WebUI update package will be uploaded to the default path.
[0025] In addition, to achieve the above object, the present invention also provides an interface update system for a WebOS TV system, where the interface update system for the WebOS TV system includes: a TV device side and a development computer side;
[0026] On the TV device side, according to the operation instructions of the developer, call up the factory menu, turn on the WebUI update debug switch, activate the update service of the WebUI resource package in the WebOS TV system, restart the TV device side to make the update configuration in the factory menu configuration take effect, and the WebOS TV system reads the configuration information after restarting, automatically starts the WebUI update service module, controls the API interface to take effect officially, and sets the visual operation page to an accessible state;
[0027] On the development computer side, according to the packaging command input by developers using the cross-platform Cli scaffolding tool, the WebUI resources are packaged to generate a WebUI update package for updating. According to the input search command, the Cli scaffolding tool automatically searches for TV devices in the local area network that have enabled the update service and lists the device list. A target TV device is specified from the list. According to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device. According to the input run command, the Cli scaffolding tool controls the target TV device to run the WebUI update package.
[0028] Optionally, for the interface update system of the WebOS TV system, the TV device side includes a WebUI update service module, and the WebUI update service module provides multiple update-related API interfaces externally.
[0029] Optionally, for the interface update system of the WebOS TV system, the WebUI update service module integrates an Http-Server service and has a built-in visual operation page to provide an operation interface for users.
[0030] Optionally, for the interface update system of the WebOS TV system, the development computer side includes a cross-platform Cli scaffolding tool, and the Cli scaffolding tool includes a packaging module, a search module, an upload module, a run module, and a restore module.
[0031] Optionally, for the interface update system of the WebOS TV system, the packaging module is used to package and build the WebUI project into a WebUI target product; the search module is used to search for connectable TV device sides in the same local area network; the upload module is used to upload the packaged WebUI target product to the connected TV device side; the run module is used to control the connected TV device side to run the updated WebUI package; the restore module is used to roll back to the default WebUI interface of the previous TV system when the updated WebUI package is no longer used.
[0032] In addition, to achieve the above object, the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores an interface update program for the WebOS TV system, and when the interface update program for the WebOS TV system is executed by a processor, the steps of the interface update method for the WebOS TV system as described above are implemented.
[0033] In the present invention, according to the operation instructions of developers, the factory menu is called up on the TV device side, the WebUI update debug switch is turned on, and the update service of the WebUI resource package in the WebOS TV system is activated; the TV device side is restarted to make the update configuration in the factory menu configuration take effect; after the WebOS TV system restarts, it reads the configuration information, automatically starts the WebUI update service module, controls the API interface to take effect officially, and sets the visual operation page to an accessible state; on the development computer side, according to the packaging command input by the developers using the cross-platform Cli scaffolding tool, the WebUI resources are packaged to generate a WebUI update package that can be used for update; according to the input search command, the Cli scaffolding tool automatically searches for TV devices with the update service enabled within the local area network, lists the device list, and specifies the target TV device from the list; according to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device; according to the input run command, the Cli scaffolding tool controls the WebUI update package to run on the target TV device. The development work of the present invention only requires a one-time investment cost, and can be used as the standard configuration for the update and debugging of the WebOS TV system subsequently, greatly reducing the long-term development and maintenance costs. The entire update process is simple and efficient in operation, and developers can complete the WebUI update work quickly and accurately, effectively improving the development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a schematic diagram of the main functional modules on the TV device side in the present invention;
[0035] Figure 2 is a schematic diagram of the main functional modules on the development computer side in the present invention;
[0036] Figure 3 is a flowchart of a preferred embodiment of the interface update method of the WebOS TV system in the present invention;
[0037] Figure 4 is a schematic flowchart of the whole process automation processing of realizing the construction, transmission, update and operation of the WebUI resource package on the TV device side and the development computer side in a preferred embodiment of the interface update method of the WebOS TV system in the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0038] In order to make the objectives, technical solutions and advantages of the present invention clearer and more definite, the following further describes the present invention in detail with reference to the accompanying drawings and by way of examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0039] In order to optimize the deficiencies of the traditional WebUI update solution, the prior art has tried two improvement solutions.
[0040] Improvement Plan 1: Developers upload the packaged WebUI resources to the background server. This operation aims to utilize the storage and distribution capabilities of the background server to simplify the resource transmission process. Compared with the traditional method that relies on mobile storage devices, after the resources are uploaded to the server, centralized management can be achieved. When an update is required, developers output specific commands to the TV device through the serial port tool, and the TV device pulls the corresponding WebUI resource package from the background server according to the instructions. This method makes resource acquisition no longer limited to local mobile storage devices. As long as the TV device has a normal network connection with the server, the latest resources can be obtained at any time, which improves the flexibility and efficiency of the update to a certain extent. However, this improvement plan has defects. On the one hand, introducing the background server increases additional cost investment. On the other hand, this plan highly depends on the network environment. Once the network fails or is unsmooth, the TV device will not be able to pull the resource package from the background, resulting in the inability to smoothly carry out the update work.
[0041] Improvement Plan 2: Developers upload the packaged WebUI resources to the Web server, and the TV system accesses and browses them through the web page link with the help of the built-in browser. This method takes advantage of the convenience of Web technology and does not require complex local connection operations. As long as the TV system can be connected to the network, updated resources can be obtained. However, this plan also has many problems. First, similar to Plan 1, it requires server resources. Second, the loading speed of the TV system's WebUI is greatly affected by the network environment. When the network is not connected, the system cannot access the resources on the Web server through the web page link, and the update cannot be completed.
[0042] The present invention proposes a new design scheme for WebUI update based on the WebOS TV system. The core of this scheme is that when the development computer and the TV device are in the same local area network environment, a stable and direct connection can be established between them. On the development computer, developers package the WebUI through the client tool, and then directly transmit the resource package to the TV device in an end-to-end manner, and finally achieve the update of the WebUI without restarting the TV. Through the scheme of the present invention, there is no need to purchase and maintain additional serial port tools, mobile devices or background services, etc., which has a significant effect on cost savings. At the same time, there is no need to perform a series of complex operations, which greatly improves the development efficiency.
[0043] Such as Figure 1As shown in the figure, on the TV device side, the present invention develops a WebUI update service module in the TV system, and at the same time expands the original factory menu module, adding a switch option for update debugging. When the developer turns on this update debugging switch, the update service of the WebUI resource package is officially activated. The WebOS system has a built-in factory menu module, which will load and read the system configuration items. The configuration file is an XML file, which contains various configuration item switches, representing the on / off status of different functions. The WebUI debugging update service is a configuration item in the configuration file and is in the off state by default. The present invention is mainly used in the development and debugging stage. Before use, the developer needs to enter the factory menu to turn on this switch item to activate this service. The TV Browser is the TV-side browser for loading and browsing web pages. The WebUI is essentially a web page and needs to rely on the TV Browser to load and browse.
[0044] As the core component of the entire system, the WebUI update service module provides a series of update-related API interfaces, covering key capabilities such as resource package path setting, resource package upload, resource package startup and operation, and starting the built-in WebUI of the system. With these interfaces, developers can manage and operate the resource package accurately and efficiently. In addition, the WebUI update service module also integrates the Http-Server service and has a built-in visual operation page, providing an intuitive and convenient operation interface for users, reducing the operation difficulty and improving the user experience.
[0045] As Figure 2 As shown in the figure, on the development computer side, the present invention designs a cross-platform Cli scaffolding tool (including a packaging module, a search module, an upload module, a running module, and a restoration module). This tool integrates multiple functions into one, including automatically searching for available TV devices within the local area network to facilitate developers to quickly locate the target device; establishing a stable connection with the TV device to ensure the reliability of data transmission; efficiently constructing the WebUI resource package to optimize the development process; flexibly setting the resource package path of the TV system to meet the needs of different scenarios; and realizing the rapid upload and loading of the resource package to improve the update efficiency. The cross-platform feature of this tool enables it to adapt to multiple operating systems, greatly expanding its application scope and providing a more convenient and efficient development environment for developers.
[0046] Through the collaborative work of updating the service module on the TV device side and developing the Cli scaffolding tool on the development computer side, the present invention realizes end-to-end direct connection and full-process automation processing of the WebUI resource package from construction, transmission, update to operation. This set of solutions has significant advantages. On the one hand, all development work only requires a one-time investment cost, and subsequently can be used as the standard configuration for WebOS TV system update debugging, greatly reducing the long-term development and maintenance costs. On the other hand, the entire update process is simple and efficient to operate, and developers can complete the WebUI update work quickly and accurately, effectively improving the development efficiency.
[0047] The interface update method of the WebOS TV system according to a preferred embodiment of the present invention is as Figure 3 and Figure 4 shown, and the interface update method of the WebOS TV system includes the following steps:
[0048] Step S10: According to the operation instructions of the developer, call out the factory menu on the TV device side, turn on the WebUI update debugging switch, and activate the update service of the WebUI resource package in the WebOS TV system.
[0049] Specifically, start the update service: The developer calls out the factory menu on the TV device side (the factory menu is the total entry for a series of function configurations. Calling out the factory menu is to start the debugging update service, which is in the off state by default because this service does not need to be turned on for consumers and is only used in the developer debugging stage), and turns on the WebUI update debugging switch. This operation will activate the update service in the WebOS TV system and prepare for the subsequent update work.
[0050] Step S20: Restart the TV device side to make the update configuration in the factory menu configuration take effect.
[0051] Specifically, the configuration takes effect: Restart the TV device side to make the update configuration (which is an item in the factory menu configuration and is used to turn on or off the WebUI update service) take effect. It should be noted that only one restart of the TV is required here, and the switch configuration will take effect persistently, avoiding the inconvenience caused by frequent restarts.
[0052] Step S30: After the WebOS TV system restarts, it reads the configuration information, automatically starts the WebUI update service module, controls the official effectiveness of the API interface, and sets the visual operation page to an accessible state.
[0053] Specifically, service startup: After the WebOS TV system restarts, it reads the configuration information (the configuration takes effect permanently. Behind the configuration are the configuration information, which takes effect permanently. When the WebOS system starts, it reads the configuration information and thus knows which configuration services need to be in the enabled state), and automatically starts the WebUI update service module. At this time, the API interfaces come into effect officially, and developers can operate on the WebUI resource packages through these interfaces; at the same time, the visual operation page can also be accessed, facilitating intuitive operations by users.
[0054] Step S40: On the development computer, according to the packaging command input by the developer using the cross-platform Cli scaffolding tool, package the WebUI resources to generate a WebUI update package that can be used for update.
[0055] Specifically, resource package construction: On the development computer, the developer uses the Cli scaffolding tool and inputs the packaging command to quickly and efficiently package the WebUI resources and generate a WebUI update package that can be used for update.
[0056] Step S50: According to the input search command, the Cli scaffolding tool automatically searches for TV devices in the local area network that have the update service enabled, lists the device list, and specifies the target TV device from the list.
[0057] Specifically, device search and selection: Input the search command, and the Cli scaffolding tool will automatically search for TV devices in the local area network that have the update service enabled and list the device list. The developer can specify the target TV device from the list to prepare for the subsequent transmission of the resource package.
[0058] Step S60: According to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device.
[0059] Specifically, resource package upload: Input the upload command, and the developer can upload the WebUI update package to the target TV device. During this process, the path of the WebUI update package on the development computer can be specified. If not specified, it will default to searching in the current directory; at the same time, the storage path of the WebUI update package on the target TV device can also be set by inputting a command. If not explicitly specified (explicitly specifying means manually inputting a custom path, and not explicitly specifying means the default path (predefined path)), the WebUI update package will be uploaded to the default path.
[0060] Step S70: According to the input run command, the Cli scaffolding tool controls the WebUI update package to run on the target TV device.
[0061] Specifically, update and run: After the WebUI update package is successfully uploaded, enter the command to run the WebUI update package. At this time, the TV system of the target TV device can directly complete the operation of the new WebUI without restarting, achieving fast update. When running the WebUI, a path can also be specified. If not explicitly specified, the latest WebUI update package is loaded from the default path to ensure that developers can see the update effect in a timely manner.
[0062] Further, after step S70, the following steps may also be included:
[0063] Step S80: When developers need to restore the update package and reload the built-in WebUI of the system, they can enter a dedicated restore command on the development computer through the Cli scaffolding tool. The restore command sends an operation signal to the WebOS TV system by means of the API interface provided by the WebUI update service module on the TV device side. When the WebOS TV system receives the operation signal, it deletes the currently uploaded and used WebUI update package and reloads the original WebUI resources from the storage location built into the WebOS TV system. The entire process does not require restarting the TV system, and it can quickly switch back to the built-in WebUI interface of the system, facilitating developers to conduct comparison and debugging, or to quickly restore to the initial state when problems are found, flexibly meeting diverse development needs.
[0064] Through the above detailed operation process, the present invention realizes the efficient update of the WebUI resource package and provides a new and convenient solution for the development and maintenance based on the WebOS TV system.
[0065] Further, as Figure 1 and Figure 2 shown, based on the above interface update method for the WebOS TV system, the present invention also correspondingly provides an interface update system for the WebOS TV system. Among them, the interface update system for the WebOS TV system includes: a TV device side and a development computer side.
[0066] On the TV device side, according to the operation instructions of the developer, the factory menu is called up, the WebUI update debug switch is turned on, the update service of the WebUI resource package in the WebOS TV system is activated, the TV device side is restarted to make the update configuration in the factory menu configuration take effect. After the WebOS TV system restarts, it reads the configuration information, automatically starts the WebUI update service module, controls the API interface to become officially effective, and sets the visual operation page to an accessible state.
[0067] On the computer side during development, according to the packaging command input by developers using the cross-platform Cli scaffolding tool, the WebUI resources are packaged to generate a WebUI update package for updating. According to the input search command, the Cli scaffolding tool automatically searches for TV devices within the local area network that have enabled the update service and lists the device list. The target TV device is specified from the list. According to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device. According to the input run command, the Cli scaffolding tool controls the running of the WebUI update package on the target TV device.
[0068] The TV device side includes a WebUI update service module, and the WebUI update service module provides multiple update-related API interfaces externally. The WebUI update service module integrates an Http-Server service and has a built-in visual operation page to provide an operation interface for users. The WebUI update service module of the TV system consists of two parts: the API interface service and the Http-Server Web service, and runs continuously in a stable manner as a daemon process. Considering that the C++ language has the significant characteristics of high performance and low resource consumption, the service module is developed using the C++ language. Among them, the API interface service is mainly responsible for processing network requests from the client and the corresponding response work, and provides a series of rich and efficient API interfaces externally, building a key bridge for data interaction and operation control between developers and the TV system. Http-Server is developed based on the libevent high-performance network library, and its core role is to provide a resource package update setting web page that can be conveniently accessed in a browser. In this web page, the JavaScript script file completes various related functions by calling the API, but this is presented to the user in a visual interactive manner, greatly reducing the operation threshold and improving the user experience. Users can intuitively set the resource package update path, trigger update operations, etc. in the browser without having to perform complex command-line operations.
[0069] The described development computer terminal includes a cross-platform Cli scaffolding tool, and the Cli scaffolding tool includes a packaging module, a search module, an upload module, a running module, and a restoration module. The packaging module is used to package and build a WebUI project (resources such as JS, CSS, and images) into a WebUI target product (the WebUI target product is a product that has been encrypted, compressed, and can run in a browser); the search module is used to search for connectable TV device terminals within the same local area network; the upload module is used to upload the packaged WebUI target product to the connected TV device terminal; the running module is used to control the connected TV device terminal to run the updated WebUI package; the restoration module is used to roll back to the default WebUI interface of the previous TV system when the updated WebUI package is no longer used.
[0070] The cross-platform Cli scaffolding tool developed on the development computer terminal is built based on Node.js and TypeScript. Due to its cross-platform characteristics, Node.js can run stably in different operating system environments and has a large and active open-source ecosystem that contains a vast amount of ready-to-use modules and tools. During the development process, developers can quickly implement various complex functions with the help of these rich open-source resources. For example, the commander.js module is used to accurately parse command-line parameters to ensure that various commands entered by developers can be accurately recognized and processed; the inquirer.js module is used to implement an interactive command-line interface, enabling developers to receive real-time feedback and guidance during operations, enhancing the convenience and flexibility of operations.
[0071] When developing the CLI scaffolding, choosing TypeScript instead of traditional JavaScript is of great significance. TypeScript supports static type checking, which can detect potential type errors during the code writing stage, greatly improving the robustness and maintainability of the code. As the project scale continues to expand, the maintainability of the code becomes particularly crucial. TypeScript can effectively reduce the code maintenance cost and improve the development efficiency.
[0072] The Cli tool provides a variety of different commands to meet different update operation requirements. Whether it is the construction and upload of resource packages or the running and debugging after updates, they can all be completed through simple commands. Its internal implementation mechanism also calls the API provided by the TV system to achieve efficient interaction with the TV system and ensure the accurate execution of various update operations.
[0073] The innovation points of the present invention are as follows:
[0074] (1) Innovative service module design: Develop a WebUI update service module that runs in the form of a daemon process in the TV system, consisting of an API interface service and an Http-Server Web service, and is developed using the C++ language. This unique design not only utilizes the high performance and low resource consumption characteristics of C++ to ensure the efficient and stable operation of the service, but also enables convenient interaction between the client and the TV system through the API interface service. The Http-Server provides a visual web page for resource package update settings, greatly improving the operation convenience and user experience, and solving the problems of complex operation and low efficiency in traditional solutions.
[0075] (2) Cross-platform tool development: Develop a cross-platform Cli scaffolding tool based on Node.js and TypeScript. The cross-platform characteristics of Node.js and its large open-source ecosystem, combined with the static type checking of TypeScript, enable the tool to run on different systems and ensure the robustness and maintainability of the code. By using mature libraries to parse command-line parameters and implement an interactive interface, developers can complete complex update operations through simple commands, reducing development time and getting rid of the dependence on specific environments and tools in traditional solutions.
[0076] (3) End-to-end direct connection interaction mode: Through the coordination of the TV-side service module and the development computer-side Cli tool, end-to-end direct connection is achieved, and the entire process of resource package construction, transmission, update, and operation is completed. This mode breaks the limitations of traditional dependence on external devices and complex physical connections, and all work can be easily completed under the same network, significantly improving development efficiency and reducing hardware, labor, and time costs.
[0077] The technical effects that the present invention can bring are as follows:
[0078] (1) Greatly improved efficiency: Greatly improves the work efficiency of WebUI update debugging, effectively saving a large amount of time and labor costs. In traditional update solutions, developers need to spend a lot of time on cumbersome USB flash drive copying and serial port connection operations. Now, with the technology of the present invention, as long as the TV system and the development computer are in the same network environment, developers can easily complete all operations on their work computers through the cross-platform Cli scaffolding tool, greatly improving work efficiency.
[0079] (2) Significantly reduced costs: Through direct network connection and built-in service modules, the present invention completely abandons the dependence on USB flash drives and serial port tools. R & D personnel no longer need to separately equip these external devices for each project or each member, greatly reducing the hardware procurement cost. At the same time, since the placement of TV devices is no longer strictly restricted to near the workstations, TV devices can be centrally managed, reducing the occupancy of office space and indirectly reducing the space cost. In the past, the cumbersome operation process required developers to invest a lot of time and effort in tasks such as resource copying and device connection. Now, with the technical solution of the present invention, developers can complete all operations on their work computers without spending extra time on the operation and maintenance of physical devices, reducing the labor input. In addition, the resource package is directly transmitted through the network, and the update and debugging operations are more convenient and efficient, greatly shortening the time required for each update, thus reducing the time cost.
[0080] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an interface update program for the WebOS TV system, and when the interface update program for the WebOS TV system is executed by a processor, the steps of the interface update method for the WebOS TV system as described above are implemented.
[0081] In summary, the present invention provides an interface update method, system and computer-readable storage medium for a WebOS TV system. The method includes: according to the operation instructions of developers, calling out the factory menu at the TV device end, turning on the WebUI update and debugging switch, and activating the update service of the WebUI resource package in the WebOS TV system; restarting the TV device end to make the update configuration in the factory menu configuration take effect; after the WebOS TV system restarts, reading the configuration information, automatically starting the WebUI update service module, controlling the API interface to become officially effective and setting the visual operation page to an accessible state; at the development computer end, according to the packaging command input by developers using the cross-platform Cli scaffolding tool, packaging the WebUI resources to generate a WebUI update package for update; according to the input search command, the Cli scaffolding tool automatically searches for TV devices with the update service enabled in the local area network, lists the device list, and specifies the target TV device from the list; according to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device; according to the input run command, the Cli scaffolding tool controls the WebUI update package to run on the target TV device. The development work of the present invention only requires a one-time investment cost, and can be used as the standard configuration for the update and debugging of the WebOS TV system subsequently, greatly reducing the long-term development and maintenance costs. The entire update process is simple and efficient, and developers can quickly and accurately complete the update work of the WebUI, effectively improving the development efficiency.
[0082] It should be noted that, in this text, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or elements inherent to such a process, method, article or terminal. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or terminal including that element.
[0083] Of course, those of ordinary skill in the art can understand that all or part of the processes in the above-described method embodiments can be completed by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program. The program can be stored in a computer-readable storage medium that can be read by a computer. When the program is executed, it can include the processes of the above-described method embodiments. The computer-readable storage medium can be a memory, a magnetic disk, an optical disc, etc.
[0084] It should be understood that the application of the present invention is not limited to the above examples. For those of ordinary skill in the art, improvements or transformations can be made according to the above description. All such improvements and transformations should fall within the protection scope of the appended claims of the present invention.
Claims
1. An interface update method for a WebOS TV system, characterized in that, The method for updating the interface of the WebOS TV system includes: According to the operation instructions of the developer, call up the factory menu on the TV device side, turn on the WebUI update debug switch, and activate the update service of the WebUI resource package in the WebOS TV system; Restart the TV device side to make the update configuration in the factory menu configuration take effect; After the WebOS TV system restarts, it reads the configuration information, automatically starts the WebUI update service module, controls the official effectiveness of the API interface, and sets the visual operation page to an accessible state; On the development computer side, according to the packaging command input by the developer using the cross-platform Cli scaffolding tool, package the WebUI resources to generate a WebUI update package for updating; According to the input search command, the Cli scaffolding tool automatically searches for TV devices with the update service enabled in the local area network, lists the device list, and specifies the target TV device from the list; According to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device; According to the input run command, the Cli scaffolding tool controls the operation of the WebUI update package on the target TV device.
2. The method for updating the interface of the WebOS TV system according to claim 1, wherein After the Cli scaffolding tool controls the operation of the WebUI update package on the target TV device according to the input run command, it further includes: If the developer needs to restore the update package, reload the system-built WebUI, and input a special restore command on the development computer side through the Cli scaffolding tool. The restore command sends an operation signal to the WebOS TV system through the API interface provided by the WebUI update service module on the TV device side; When the WebOS TV system receives the operation signal, delete the currently uploaded and used WebUI update package, and reload the original WebUI resources from the built-in storage location of the WebOS TV system.
3. The method for updating the interface of the WebOS TV system according to claim 1, wherein Before calling up the factory menu on the TV device side according to the operation instructions of the developer, turning on the WebUI update debug switch, and activating the update service of the WebUI resource package in the WebOS TV system, it further includes: Develop the WebUI update service module in the WebOS TV system, and at the same time add an update debug switch option to the original factory menu module.
4. The method for updating the interface of the WebOS TV system according to claim 1, wherein, During the process of the Cli scaffolding tool uploading the WebUI update package to the target TV device, if the path of the WebUI update package on the specified development computer side is not specified, it is default to search in the current directory. Set the storage path of the WebUI update package of the target TV device through the input command. If not specified, the WebUI update package will be uploaded to the default path.
5. An interface update system for a WebOS TV system, characterized in that, The interface update system of the WebOS TV system includes a TV device side and a development computer side; On the TV device side, according to the operation instructions of the developer, the factory menu is called up, the WebUI update debug switch is turned on, the update service of the WebUI resource package in the WebOS TV system is activated, the TV device side is restarted to make the update configuration in the factory menu configuration take effect. After the WebOS TV system restarts, it reads the configuration information, automatically starts the WebUI update service module, controls the official effectiveness of the API interface, and sets the visual operation page to an accessible state; On the development computer side, according to the packaging command input by the developer using the cross-platform Cli scaffolding tool, the WebUI resources are packaged to generate a WebUI update package for updating. According to the input search command, the Cli scaffolding tool automatically searches for TV devices with the update service enabled within the local area network and lists the device list. The target TV device is specified from the list. According to the input upload command, the Cli scaffolding tool uploads the WebUI update package to the target TV device. According to the input run command, the Cli scaffolding tool controls the WebUI update package to run on the target TV device.
6. The interface update system of the WebOS TV system according to claim 5, characterized in that, The TV device side includes a WebUI update service module, and the WebUI update service module provides multiple update-related API interfaces externally.
7. The interface update system of the WebOS TV system according to claim 6, wherein The WebUI update service module integrates an Http-Server service and has a built-in visual operation page to provide an operation interface for users.
8. The interface update system of the WebOS TV system according to claim 5, characterized in that, The development computer side includes a cross-platform Cli scaffolding tool, and the Cli scaffolding tool includes a packaging module, a search module, an upload module, a running module, and a restoration module.
9. The interface update system of the WebOS TV system according to claim 8, characterized in that, The packaging module is used to package and build the WebUI project into a WebUI target product; the search module is used to search for connectable TV device sides within the same local area network; the upload module is used to upload the packaged WebUI target product to the connected TV device side; The running module is used to control the connected TV device side to run the updated WebUI package; The restoration module is used to roll back to the default WebUI interface of the previous TV system when the updated WebUI package is no longer used.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an interface update program for the WebOS TV system. When the interface update program for the WebOS TV system is executed by a processor, it implements the steps of the interface update method for the WebOS TV system according to any one of claims 1-4.