Webpage localization development debugging method and device of television system and medium

By developing a direct connection architecture between computers and television devices, direct data interaction is achieved, solving the problem of low efficiency in television development and debugging, improving development iteration efficiency and compatibility, simplifying the debugging process, and reducing hardware resource requirements.

CN120950368APending Publication Date: 2025-11-14SHENZHEN COOCAA NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510826766.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Existing TV development and debugging methods are inefficient, have long development iteration cycles, are cumbersome to set up debugging environments, suffer from hardware resource shortages, and the separation between development and runtime environments makes compatibility issues difficult to reproduce.

Method used

The system adopts a direct connection architecture between the computer and the TV device. It establishes a direct communication connection between the first and second communication submodules, enabling direct interaction between the data processing submodule and the execution submodule. This eliminates the need for resource packaging, server uploading, and manual loading processes, and allows direct access to the TV's native API.

Benefits of technology

It significantly improves development iteration efficiency, shortens debugging time, reduces hardware resource requirements, solves compatibility issues, and improves development efficiency and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120950368A_ABST
    Figure CN120950368A_ABST
Patent Text Reader

Abstract

The invention discloses a webpage localization development debugging method and device of a television system and a medium, and relates to the technical field of television development debugging, and the method comprises the steps that a second communication sub-module establishes communication connection with a first communication sub-module; the data processing sub-module receives a target instruction of a webpage service layer, encapsulates the target instruction into first encapsulation data, and transmits the first encapsulation data to the execution sub-module through the second communication sub-module based on the communication connection; the execution sub-module obtains a target instruction based on the first encapsulation data, executes the target instruction to obtain a processing result, encapsulates the processing result into second encapsulation data, and transmits the second encapsulation data to the debugging service module through the first communication sub-module based on the communication connection; and the debugging service module obtains a processing result based on the second encapsulation data and sends the processing result to the webpage business layer. The method has the technical effect of improving the television development and debugging efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of television development and debugging technology, and in particular to a method, device and medium for localized development and debugging of web pages for a television system. Background Technology

[0002] Currently, web page development and debugging based on Android TV systems generally adopts a three-tier architecture: "development computer → server → TV device". In this model, developers first need to compile the web page code into a static resource package using build tools, and then upload the resource package to a remote server for storage; the TV device needs to access the server resources through the browser kernel, which usually relies on manual operation of the remote control to input the URL or execute serial port commands to trigger loading; during the debugging phase, it is necessary to additionally use ADB tools or serial port connections to capture system logs.

[0003] However, this architecture suffers from significant technical bottlenecks. Because each code modification requires repeating the entire resource building, server transfer, and TV loading process, the development iteration cycle is severely prolonged. Setting up the debugging environment is equally cumbersome; developers must possess specialized serial port command-line skills, and each TV update requires manual intervention, making debugging highly susceptible to interruptions due to operational errors. Furthermore, the deployment of a dedicated server not only increases the operational burden but also introduces network fluctuation risks. More importantly, each developer typically needs a dedicated TV device for debugging, which dramatically exacerbates hardware resource shortages when facing multi-project parallel development or compatibility testing needs.

[0004] A deeper problem lies in the disconnect between the development and runtime environments. Local development computers cannot directly call native TV APIs (such as obtaining hardware information or listening for system events), making it difficult to reproduce compatibility issues that rely on the real device environment. These shortcomings essentially stem from the inherent limitations of the three-tier architecture: resource transfer heavily relies on server relays, creating efficiency bottlenecks; physical connection methods restrict the expansion of debugging capabilities; and the inability to reuse hardware resources hinders the scaling of development. Summary of the Invention

[0005] This invention provides a method, device, and medium for localized web page development and debugging of a television system, aiming to solve the problem of low efficiency in existing television development and debugging methods.

[0006] In a first aspect, embodiments of the present invention provide a method for localized web page development and debugging of a television system. The development and debugging system includes a development computer and a television device; the television device includes a debugging service module, which includes a first communication submodule and an execution submodule; the development computer includes a common debugging module, which includes a second communication submodule and a data processing submodule; the method includes:

[0007] The second communication submodule establishes a communication connection with the first communication submodule;

[0008] The data processing submodule receives the target instruction from the web page business layer, encapsulates the target instruction into first encapsulated data, and transmits the first encapsulated data to the execution submodule through the second communication submodule based on the communication connection.

[0009] The execution submodule obtains the target instruction based on the first encapsulated data, executes the target instruction to obtain the processing result, encapsulates the processing result into second encapsulated data, and transmits the second encapsulated data to the debugging service module through the first communication submodule based on the communication connection;

[0010] The debugging service module obtains the processing result based on the second encapsulated data and sends the processing result to the web page business layer.

[0011] A further technical solution is that the debugging service module also includes a configuration submodule, which is used to store the communication configuration information of the television device.

[0012] A further technical solution is that the second communication submodule establishes a communication connection with the first communication submodule, including:

[0013] The second communication submodule sends a communication connection request to the first communication submodule based on the communication configuration information of the television device;

[0014] In response to the communication connection request, the first communication submodule establishes a bidirectional transmission communication connection with the second communication submodule.

[0015] A further technical solution is that encapsulating the target instruction into first encapsulated data includes:

[0016] The target instruction is serialized into JSON to obtain the first JSON data.

[0017] The first JSON data is encrypted to obtain the first encapsulated data.

[0018] A further technical solution is that obtaining the target instruction based on the first encapsulation data includes:

[0019] The first encapsulated data is decrypted to obtain the first JSON data;

[0020] The target instruction is obtained by deserializing and parsing the first JSON data.

[0021] A further technical solution is that encapsulating the processing result into second encapsulated data includes:

[0022] The processing result is converted into JSON serialization to obtain the second JSON data;

[0023] The second JSON data is encrypted to obtain the second encapsulated data.

[0024] A further technical solution is that obtaining the processing result based on the second encapsulated data includes:

[0025] The second encapsulated data is decrypted to obtain the second JSON data;

[0026] The processing result is obtained by deserializing and parsing the second JSON data.

[0027] A further technical solution is that the second communication submodule and the first communication submodule establish a communication connection using the WebSocket protocol.

[0028] Secondly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0029] Thirdly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0030] This invention provides a method, device, and medium for localized development and debugging of web pages in a television system. The method includes: a second communication submodule establishing a communication connection with a first communication submodule; a data processing submodule receiving a target instruction from the web page service layer, encapsulating the target instruction into first encapsulated data, and transmitting the first encapsulated data to the execution submodule via the second communication submodule through the communication connection; the execution submodule obtaining the target instruction based on the first encapsulated data, executing the target instruction to obtain a processing result, encapsulating the processing result into second encapsulated data, and transmitting the second encapsulated data to the debugging service module via the first communication submodule through the communication connection; and the debugging service module obtaining the processing result based on the second encapsulated data and sending the processing result to the web page service layer. This invention, by establishing a direct connection architecture between the computer and the television device, directly constructs a communication connection channel between the second and first communication submodules, fundamentally eliminating the redundant server relay links in traditional three-tier architectures. When the web page service layer initiates a target instruction, the data processing submodule encapsulates it into first encapsulated data, which is then directly transmitted to the execution submodule on the television end via the communication link, where the television device's native system directly executes the operation and returns the processing result. This technological approach has achieved two major breakthroughs: First, developers can access the TV's native capabilities (such as hardware information acquisition and system event listening) in real time on their local computers, solving the problem of compatibility issues that are difficult to reproduce due to the separation between the development environment and the runtime environment; Second, it eliminates cumbersome processes such as resource packaging, server uploading, and manual triggering of loading, compressing the multi-stage debugging cycle in traditional solutions into a closed-loop process of direct interaction, significantly improving development iteration efficiency. Attached Figure Description

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

[0032] Figure 1 A flowchart illustrating the method for localizing web page development and debugging of a television system according to an embodiment of the present invention;

[0033] Figure 2 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation

[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0035] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0036] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0037] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0038] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0039] Overall architecture design

[0040] The architecture of this invention mainly consists of two core parts. The first is a debugging service module within the Android TV system of the television device. This module is designed to support the development and debugging process of web page projects and is therefore typically integrated into browser applications. The second is a common debugging module (JavaScript module) introduced for developing web page projects on a computer. These two modules enable direct network-level connections and interactive data transmission, thereby achieving localized web page development and debugging capabilities.

[0041] The debugging service module includes a first communication submodule and an execution submodule, which are described in detail below:

[0042] The first communication submodule, acting as the server for network communication, is crucial for establishing a communication connection with the network communication client in the common debugging module of the web project. This submodule listens on a specific port, continuously waiting for connection requests from the web project. Once a connection request is received, a stable and reliable communication connection is established, providing a channel for subsequent data transmission. For example, when the web project on the work computer starts and attempts to connect to the Android TV system, this first communication submodule can quickly respond and complete the connection establishment, ensuring bidirectional data flow.

[0043] It should be further explained that, theoretically, this debugging service module has the capability to support multiple web projects simultaneously, allowing multiple web projects to collaborate on localized development and debugging, thereby minimizing the need for television hardware resources during development. However, under normal circumstances, the television typically connects directly to only one web project for debugging at a time.

[0044] Execution Submodule: Once the first communication submodule receives data from the webpage project, the execution submodule starts and sequentially performs a series of operations, including decryption and parsing, on the received data. The data involved includes version information, command type, API name, and related parameters. After completing the parsing process, this submodule triggers and executes the corresponding operation based on different command types.

[0045] For example, if the received instruction is an API call to retrieve system information (getSystemInfo), such as the current system version number, device model, brand, API version information, and screen size, this module will perform the corresponding operation within the Android TV system environment. Specifically, it will call the Android system's native capabilities, and after obtaining the relevant information, aggregate, serialize, and encrypt the results. Finally, it will send the processed result back to the web page project via the communication module.

[0046] Furthermore, the debugging service module is developed using Java and runs in a self-developed browser application within the Android TV system. This module employs a layered architecture, consisting of a network layer, a data processing layer, and a business logic layer. The network layer implements WebSocket communication functionality based on Java's Socket programming, responsible for listening on a specific port, receiving connection requests and data from web applications, and sending response data. The data processing layer decrypts and deserializes the received data, converting it into a format that the business logic layer can process. It also serializes and encrypts the results processed by the business logic layer before sending them through the network layer. The business logic layer, based on the type of received instruction, invokes Android system capabilities to perform corresponding operations, such as retrieving system information and controlling TV functions.

[0047] The common debugging module includes a second communication submodule, a configuration submodule, and a data processing submodule, which are described in detail below:

[0048] The second communication submodule acts as the client for network communication in the web project. Its core responsibility is to proactively initiate connection requests to the server of the debugging service module within the Android TV system browser. Based on the server address and port information set in the configuration module, the second communication submodule performs the connection attempt. Once the connection is successfully established, the second communication submodule is capable of sending data to and receiving data from the server.

[0049] Taking the web page project startup process as an example, when the web page project starts, this communication module will automatically attempt to establish a connection with the Android TV system's debugging service module according to the predetermined configuration, thereby ensuring that subsequent data interaction can proceed smoothly and laying the foundation for the data transmission and interaction of the entire system.

[0050] Configuration Submodule: This module primarily stores the communication configuration information necessary for communication with the debug service module in the Android TV system, including key data such as server address and port number. The configuration submodule offers significant flexibility, allowing the stored configuration information to be adjusted according to different development environments.

[0051] In real-world development scenarios, developers often need to connect to different television devices for development and debugging. With the help of a configuration module, developers can easily modify connection parameters within this module to achieve communication adaptation with different television devices without requiring extensive code changes. This approach significantly improves development efficiency and enhances the system's adaptability and scalability across various development environments.

[0052] Furthermore, the configuration submodule provides a dynamic parameter adjustment interface, supports storing communication configuration information, and enables dynamic updates. Data storage: Configuration information is stored in the browser's local storage (localStorage) in key-value pairs.

[0053] For example, the server address can be stored as `localStorage.setItem('serverAddress', 'http: / / example.com')`, and the port number can be stored as `localStorage.setItem('port', '8080')`. Local storage is persistent; the configuration information will persist even if the browser is closed and reopened.

[0054] Dynamic Adjustment Interface: Provides a set of JavaScript functions for dynamically adjusting configuration parameters. These functions can be used to update the service address. When configuration information changes, the configuration submodule automatically applies the new configuration information to the communication submodule, enabling the communication submodule to establish a connection or transmit data with the Android TV system based on the new configuration information.

[0055] Configuration validation and synchronization: When setting configuration parameters, the parameters are validated to ensure that the input parameters meet the requirements. For example, for service addresses, the format is checked to ensure it is correct; for port numbers, it is checked to ensure they are within the valid range.

[0056] Data Processing Submodule: This module leverages the capabilities of the second communication submodule to send and receive data. It encapsulates the operation requests from the web project's business logic layer to the Android TV system, internally transforming a series of API calls into a data format that meets the transmission requirements of the second communication submodule. Simultaneously, it is responsible for parsing (including deserialization and decryption) the data returned from the Android TV system and providing the processed data to the web project's business logic layer for use.

[0057] For example, when a web application needs to retrieve specific information about the Android TV system, such as the TV screen resolution, the data processing submodule will convert this request into a suitable data assembly format and send it to the debug service module within the Android TV system browser via the second communication submodule. Subsequently, this submodule waits for the second communication submodule to receive the result, parses and processes the returned data, and finally feeds back the parsed result to the business layer of the web application.

[0058] Furthermore, the public debugging module is developed using TypeScript and built using Rollup.

[0059] Development and Building: TypeScript, as a strongly typed superset of JavaScript, provides stricter type checking and better code readability and maintainability during development. By defining explicit types, potential errors can be detected during the compilation phase, improving code quality. Rollup is an efficient module bundler that can package multiple modules into one or more files and supports Tree Shaking to remove unused code and reduce the size of the bundled file.

[0060] Module Import Methods: This module supports multiple import mechanisms, including CMD (Common Module Definition), AMD (Asynchronous Module Definition), and ES (ECMAScript) modules. For ES modules, functionality can be directly imported using the `import` statement, such as `import {debugFunction} from '. / debugModule'`. For traditional HTML pages, modules can also be imported using `<script>` tags, such as... <script src="debugmodule.js">< / script> And the module's functionality can be accessed in the global scope. This flexible way of introducing modules allows the module to better adapt to different development environments and project requirements.

[0061] Please see Figure 1 This invention provides a method for localized web page development and debugging of a television system. In this embodiment, the development and debugging system includes a development computer and a television device; the television device includes a debugging service module, which includes a first communication submodule and an execution submodule; the development computer includes a common debugging module, which includes a second communication submodule and a data processing submodule, such as... Figure 1 As shown, the method includes the following steps:

[0062] S1, the second communication submodule establishes a communication connection with the first communication submodule.

[0063] In practice, the second communication submodule and the first communication submodule establish a communication connection using the WebSocket protocol.

[0064] The second communication submodule is directly connected to the first communication submodule using the WebSocket protocol, providing a stable and efficient channel for data interaction between the web project and the Android TV system. Its advantages include strong real-time performance, low overhead, and long-term connection characteristics. The communication connection of this invention has a retry mechanism for disconnection, as detailed below:

[0065] Reconnection Retry Mechanism: When a WebSocket connection is unexpectedly disconnected, the communication module initiates a retry mechanism. First, the client immediately attempts to reconnect, increasing the retry interval exponentially after each failed connection attempt. The initial retry interval is set to 500 milliseconds, doubling with each subsequent retry, with a maximum interval of 30 seconds. Simultaneously, the client records the number of retries; if a connection fails within the specified number of attempts, retries cease, and connection failure information is reported to the user or the upper-layer business logic. Furthermore, during the retry process, if network status recovery is detected (e.g., by listening for communication connection change events), a connection attempt is immediately initiated.

[0066] In some preferred embodiments, the above step "the second communication submodule establishes a communication connection with the first communication submodule" specifically includes the following steps: the second communication submodule sends a communication connection request to the first communication submodule based on the communication configuration information of the television device; the first communication submodule responds to the communication connection request and establishes a bidirectional transmission communication connection with the second communication submodule.

[0067] In practical implementation, the configuration submodule centrally stores the communication configuration information of the TV devices, providing underlying support for dynamically adapting to different debugging environments. Developers can switch target devices by updating configuration information (such as IP address and port number) without modifying the code, solving the pain point of frequently adjusting connection parameters during parallel development of multiple projects or cross-model compatibility testing. This design significantly reduces the operational complexity of environment switching, enabling the same development computer to flexibly connect to multiple TV devices. While ensuring the efficiency advantage of direct connection as claimed in claim 1, it further releases the potential for hardware resource reuse. For example, the testing team can share a pool of TV devices and quickly allocate debugging tasks through configuration switching, effectively alleviating the resource idleness problem caused by each person having exclusive access to equipment in traditional solutions, and systematically reducing hardware procurement and management costs.

[0068] Furthermore, the communication connection establishment mechanism based on configuration information enables the communication link construction process to be highly adaptive. The second communication submodule actively initiates a connection request based on the communication parameters stored in the configuration submodule, and the first communication submodule dynamically responds and establishes a bidirectional transmission channel. In large-scale testing scenarios, developers only need to pre-configure device parameters to establish debugging channels in batches, completely changing the resource-intensive work mode of physical operation of each device in the traditional model, and providing infrastructure support for agile development.

[0069] S2, the data processing submodule receives the target instruction from the web page business layer, encapsulates the target instruction into first encapsulated data, and transmits the first encapsulated data to the execution submodule through the second communication submodule based on the communication connection.

[0070] In specific implementation, the target instruction may be an API call request, which is not specifically limited in this invention. The data processing submodule receives the target instruction from the web page business layer, which may be issued by the debugging personnel. The debugging service module encapsulates the target instruction into first encapsulated data and transmits the first encapsulated data to the execution submodule through the second communication submodule based on the communication connection. Specifically, the second communication submodule sends the first encapsulated data to the first communication submodule based on the communication connection, and the first communication submodule then sends the first encapsulated data to the execution submodule.

[0071] In some preferred embodiments, the above step "encapsulating the target instruction into first encapsulated data" specifically includes the following steps: converting the target instruction into JSON serialization to obtain first JSON data; encrypting the first JSON data to obtain the first encapsulated data.

[0072] In practice, when the web page business layer of a web project needs to send data (target instructions) to the Android TV system, the data processing submodule strictly follows the JSON specification to perform JSON serialization conversion on the data, ensuring the accuracy and readability of the data. For example, for data objects containing version information, instruction type, API name, and related parameters, the structure will be organized and converted according to specific key-value pairs to obtain the first JSON data.

[0073] It should be noted that JSON serialization refers to the process of converting structured data objects (such as target instructions) into a string format that conforms to the JSON (JavaScript Object Notation) specification. In essence, it maps complex data structures in memory (such as nested objects and arrays) into standardized text composed of key-value pairs.

[0074] Furthermore, the first JSON data is encrypted to obtain the first encapsulated data. Specifically, the AES symmetric encryption algorithm is used for encryption and decryption. At the beginning of each communication connection, the client and server negotiate and generate a unique symmetric key, which is used for data encryption and decryption operations during this connection. The AES algorithm has high encryption speed and can provide reliable data security protection without significantly affecting data transmission efficiency.

[0075] S3, the execution submodule obtains the target instruction based on the first encapsulated data, executes the target instruction to obtain the processing result, encapsulates the processing result into second encapsulated data, and transmits the second encapsulated data to the debugging service module through the first communication submodule based on the communication connection.

[0076] In specific implementation, the execution submodule parses the first encapsulated data to obtain the target instruction, which may specifically be an API call request; this invention does not specifically limit this. The execution submodule executes the target instruction to obtain a processing result, encapsulates the processing result into second encapsulated data, and transmits the second encapsulated data to the debugging service module via the first communication submodule based on the communication connection. Specifically, the first communication submodule transmits the second encapsulated data to the second communication submodule via the communication connection, and the second communication submodule sends the second encapsulated data to the debugging service module.

[0077] In some preferred embodiments, the above step "obtaining the target instruction based on the first encapsulated data" specifically includes the following steps: decrypting the first encapsulated data to obtain the first JSON data; and deserializing and parsing the first JSON data to obtain the target instruction.

[0078] In specific implementation, the first encapsulated data is decrypted using the AES algorithm based on a symmetric key to obtain the first JSON data. Further, the first JSON data is deserialized and parsed to obtain the target instruction.

[0079] It should be noted that deserialization parsing refers to the process of restoring a JSON-formatted string into a data structure (such as an object or array) that the original program can manipulate.

[0080] In some preferred embodiments, the above step "encapsulating the processing result into second encapsulated data" specifically includes the following steps: converting the processing result into JSON serialization to obtain second JSON data; encrypting the second JSON data to obtain the second encapsulated data.

[0081] When the Android TV system has data (processing results) that needs to be sent to the web business layer of the web project, the execution submodule will strictly follow the JSON specification to perform JSON serialization conversion on the data to ensure the accuracy and readability of the data.

[0082] Furthermore, the second JSON data is encrypted to obtain the second encapsulated data. Specifically, the AES symmetric encryption algorithm is used for encryption and decryption. At the beginning of each communication connection, the client and server negotiate and generate a unique symmetric key, which is used for data encryption and decryption operations during this connection. The AES algorithm has high encryption speed and can provide reliable data security protection without significantly affecting data transmission efficiency.

[0083] S4, the debugging service module obtains the processing result based on the second encapsulated data and sends the processing result to the web page business layer.

[0084] In some preferred embodiments, the above step "obtaining the processing result based on the second encapsulated data" specifically includes the following steps: decrypting the second encapsulated data to obtain the second JSON data; and deserializing and parsing the second JSON data to obtain the processing result.

[0085] In practice, the second encapsulated data is decrypted using the AES algorithm based on a symmetric key to obtain the second JSON data. Further, the second JSON data is deserialized and parsed to obtain the target instruction.

[0086] Technical effects:

[0087] This invention establishes a direct connection architecture between a computer and a television device, where the second communication submodule directly connects to the first communication submodule, fundamentally eliminating the redundant server relay in the traditional three-tier architecture. When the web page business layer initiates a target command, the data processing submodule encapsulates it into first-level encapsulated data, which is then directly transmitted to the television execution submodule via the communication link. The television device's native system then directly executes the operation and returns the processing result. This technical approach achieves two core breakthroughs: First, developers can access the television's native capabilities (such as hardware information acquisition and system event listening) on ​​their local computers in real time, solving the problem of compatibility issues caused by the separation of the development and runtime environments. Second, it eliminates the cumbersome processes of resource packaging, server uploading, and manual loading, compressing the multi-stage debugging cycle of traditional solutions into a closed-loop process of direct interaction, significantly improving development iteration efficiency.

[0088] Furthermore, the technical solution provided by this invention eliminates the need for developers to perform tedious steps such as building and packaging web resources, uploading them to a server, and handling complex access operations. As long as the TV and the work computer are on the same network, localized web development and debugging can be conveniently and quickly performed on the work computer. This significantly shortens the development cycle and improves development efficiency. According to actual tests, using the method of this invention, the debugging time per session has been reduced from an average of over 5 minutes to less than 1 minute, increasing development efficiency several times over. Simultaneously, since there is no need to maintain a dedicated web static resource server, server rental and maintenance costs are saved, reducing development costs. Moreover, development and debugging can be performed in a real Android TV system environment, effectively identifying and resolving bugs that cannot be reproduced in a computer browser environment, thus improving the quality of the web product.

[0089] Please see Figure 2 , Figure 2 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.

[0090] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.

[0091] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to execute a method for localizing web page development and debugging of a television system.

[0092] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0093] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for localizing the development and debugging of web pages for a television system.

[0094] The network interface 505 is used for network communication with other devices. Those skilled in the art will understand that the above structure is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. A specific computer device 500 may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.

[0095] The processor 502 is used to run a computer program 5032 stored in a memory to implement the steps of a webpage localization development and debugging method for a television system provided in any of the above method embodiments.

[0096] It should be understood that, in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0097] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0098] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When executed by a processor, the computer program causes the processor to perform the steps of a web page localization development and debugging method for a television system provided in any of the above method embodiments.

[0099] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.

[0100] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0101] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0102] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0103] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0104] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0105] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.

[0106] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for localizing web page development and debugging of a television system, characterized in that, The development and debugging system includes the development of a computer and a television device; the television device includes a debugging service module, which includes a first communication submodule and an execution submodule. The development computer includes a common debugging module, which includes a second communication submodule and a data processing submodule. The method includes: The second communication submodule establishes a communication connection with the first communication submodule; The data processing submodule receives the target instruction from the web page business layer, encapsulates the target instruction into first encapsulated data, and transmits the first encapsulated data to the execution submodule through the second communication submodule based on the communication connection. The execution submodule obtains the target instruction based on the first encapsulated data, executes the target instruction to obtain the processing result, encapsulates the processing result into second encapsulated data, and transmits the second encapsulated data to the debugging service module through the first communication submodule based on the communication connection; The debugging service module obtains the processing result based on the second encapsulated data and sends the processing result to the web page business layer.

2. The method for localizing web page development and debugging of a television system according to claim 1, characterized in that, The debugging service module also includes a configuration submodule, which is used to store the communication configuration information of the television device.

3. The method for localizing web page development and debugging of a television system according to claim 2, characterized in that, The second communication submodule establishes a communication connection with the first communication submodule, including: The second communication submodule sends a communication connection request to the first communication submodule based on the communication configuration information of the television device; In response to the communication connection request, the first communication submodule establishes a bidirectional transmission communication connection with the second communication submodule.

4. The method for localizing web page development and debugging of a television system according to claim 1, characterized in that, The step of encapsulating the target instruction into first encapsulated data includes: The target instruction is serialized into JSON to obtain the first JSON data. The first JSON data is encrypted to obtain the first encapsulated data.

5. The method for localizing web page development and debugging of a television system according to claim 4, characterized in that, The step of obtaining the target instruction based on the first encapsulated data includes: The first encapsulated data is decrypted to obtain the first JSON data; The target instruction is obtained by deserializing and parsing the first JSON data.

6. The method for localizing web page development and debugging of a television system according to claim 1, characterized in that, The step of encapsulating the processing result into second encapsulated data includes: The processing result is converted into JSON serialization to obtain the second JSON data; The second JSON data is encrypted to obtain the second encapsulated data.

7. The method for localizing web page development and debugging of a television system according to claim 6, characterized in that, The step of obtaining the processing result based on the second encapsulated data includes: The second encapsulated data is decrypted to obtain the second JSON data; The processing result is obtained by deserializing and parsing the second JSON data.

8. The method for localizing web page development and debugging of a television system according to claim 1, characterized in that, The second communication submodule establishes a communication connection with the first communication submodule using the WebSocket protocol.

9. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-8.