A low-bandwidth peripheral display method, system, device and storage medium

By segmenting and rendering interface resource data locally under low bandwidth conditions, the problem of low peripheral display efficiency in low bandwidth scenarios is solved, achieving efficient and stable display updates and resource utilization.

CN122160554APending Publication Date: 2026-06-05SHENZHEN BENQI ELECTRONIC TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN BENQI ELECTRONIC TECHNOLOGY CO LTD
Filing Date
2026-03-03
Publication Date
2026-06-05

Smart Images

  • Figure CN122160554A_ABST
    Figure CN122160554A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and provides a low-bandwidth peripheral display method, a system, a device and a storage medium, which comprises the following steps: obtaining interface description information on a host to generate interface resource data, performing fragmentation processing to obtain a plurality of piece data; sending all the piece data to a peripheral through a low-bandwidth communication link to perform checking and recombination, and writing the recombined interface resource data into the peripheral when the checking is passed; when it is necessary to update the display content of the display interface of the peripheral, sending an update instruction for indicating target display content to the peripheral through the host to read the interface resource data corresponding to the target display content from the peripheral to perform local rendering display on the peripheral. Through the above scheme, the data transmission amount is effectively reduced under the condition of the low-bandwidth communication link, the communication time delay and the transmission failure risk are reduced, and the shortcomings that the existing transmission mode has low display efficiency and low resource utilization rate in the low-bandwidth scene are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a low-bandwidth peripheral display method, system, device and storage medium. Background Technology

[0002] With the development of smart terminals and embedded devices, more and more peripherals are being integrated with displays to present status information, operation prompts, or simple interactive interfaces to users. In application scenarios such as industrial control, wearable devices, smart homes, and portable terminals, peripherals typically communicate with the host via wired or wireless means, with the host performing interface logic processing and outputting display content to the peripherals.

[0003] In existing technologies, the display between a host computer and a peripheral device with a display screen typically involves real-time transmission of display data. This means that when the interface content changes, the host computer sends complete display data or image data to the peripheral device via a communication link, and the peripheral device directly refreshes the display. This method is simple to implement, the peripheral device's logic is relatively lightweight, and it can ensure a certain degree of consistency between the displayed content and the host's state. Therefore, it is widely used in low-complexity display scenarios.

[0004] While real-time data transmission from the host allows for dynamic updates of peripheral display content, it can lead to long data transmission cycles, significant display refresh delays, and even interface stuttering or incomplete display when communication link bandwidth is limited or display interface resources are large. Furthermore, frequent transmission of complete display data increases communication load and energy consumption, which is detrimental to the long-term stable operation of low-power peripherals. Therefore, in low-bandwidth scenarios, this method suffers from low display efficiency and low resource utilization. Summary of the Invention

[0005] To address the shortcomings of existing transmission methods in low-bandwidth scenarios, such as low display efficiency and low resource utilization, this application provides a low-bandwidth peripheral display method, system, device, and storage medium.

[0006] This invention provides a low-bandwidth peripheral display method applied between a host and a peripheral with a display screen, comprising: acquiring interface description information on the host and generating interface resource data for peripheral display based on the interface description information; performing segmentation processing on the interface resource data through the transmission constraints of a low-bandwidth communication link to obtain several segmented data; sending all the segmented data to the peripheral for verification and reassembly through the low-bandwidth communication link, and writing the reassembled interface resource data to the peripheral when the verification passes; when it is necessary to update the display content of the peripheral's display interface, sending an update command indicating the target display content to the peripheral through the host, reading the interface resource data corresponding to the target display content from the peripheral based on the update command, and performing local rendering display of the corresponding interface resource data on the peripheral.

[0007] Optionally, the step of obtaining interface description information on the host and generating interface resource data for peripheral display based on the interface description information includes: receiving interface description information input by the user through the host's UI editor; parsing each display element in the peripheral display interface based on the interface description information to obtain element type information and layout attribute information corresponding to each display element; classifying the display elements using the element type information to obtain a set of display elements; inputting the set of display elements into a preset interface rendering processing module to obtain corresponding graphic resource data; performing layout mapping processing on the display elements based on the layout attribute information to obtain layout description data; and combining the graphic resource data and the layout description data to obtain interface resource data.

[0008] Optionally, the step of fragmenting the interface resource data according to the transmission constraints of the low-bandwidth communication link to obtain several fragmented data includes: generating a maximum fragment length parameter of the interface resource data according to the transmission constraints of the low-bandwidth communication link; dividing the interface resource data by length using the maximum fragment length parameter to obtain several initial fragmented data; associating the initial fragmented data with corresponding fragment identification information to obtain several fragmented data for low-bandwidth transmission; wherein, the fragment identification information is the position of each fragmented data in the interface resource data.

[0009] Optionally, before sending the fragmented data, the host generates a resource manifest file based on the interface description information, sends the resource manifest file to the peripheral device via the low-bandwidth communication link, and after the peripheral device receives and verifies the integrity of the resource manifest file, returns a confirmation message that resource transmission is ready to be completed to the host, and pre-allocates storage space in the non-volatile memory of the peripheral device according to the resource identifier and file length recorded in the resource manifest file; the step of sending all the fragmented data to the peripheral device for verification and reassembly via the low-bandwidth communication link, and writing the reassembled interface resource data to the peripheral device when the verification is successful, includes: sending all the fragmented data to the peripheral device for verification and reassembly via the low-bandwidth communication link, and writing the reassembled interface resource data to the peripheral device when the verification is successful, via the low-bandwidth... The communication link sends the fragmented data to the peripheral device, and the peripheral device verifies the verification field of the received fragmented data. If the verification fails, the fragmented data is discarded and a negative acknowledgment message containing the fragmented data identifier information is sent to the host. If the verification succeeds, the fragmented data is reassembled to obtain reassembled interface resource data. The resource identifier, byte offset, and payload are extracted from the reassembled interface resource data. The corresponding storage space start address is found in the resource manifest file according to the resource identifier. The byte offset is added to the start address to obtain the write address of the payload in non-volatile memory, and the payload is written to the write address.

[0010] Optionally, the step of verifying the verification field of the received fragmented data in the peripheral device includes: parsing fragment identification information, fragment length information, and checksum from the fragmented data; performing a consistency judgment on the net payload length of the fragmented data based on the fragment length information to obtain a length verification result; calculating a target verification value for the net payload and comparing the target verification value with the checksum to obtain a content verification result; and determining the verification status of the fragmented data based on the length verification result and the content verification result.

[0011] Optionally, when the verification status of the fragmented data is verification failed, the step of sending a negative acknowledgment message containing the fragmented data identifier information to the host includes: carrying the fragmented identifier information corresponding to the fragmented data that failed verification in the negative acknowledgment message; sending the negative acknowledgment message to the host through the low-bandwidth communication link; after the host receives the negative acknowledgment message, locating the corresponding fragmented data from the generated fragmented data according to the fragmented identifier information, and only retransmitting the fragmented data that failed verification.

[0012] Optionally, the step of sending an update instruction to the peripheral device to indicate the target display content when the display content of the peripheral device's display interface needs to be updated, reading interface resource data corresponding to the target display content from the peripheral device based on the update instruction, and performing local rendering display of the corresponding interface resource data on the peripheral device includes: parsing the display interface of the peripheral device using the update instruction to obtain the target display content identification information that needs to be changed; reading the interface resource data corresponding to the target display content from the non-volatile memory according to the target display content identification information; performing display compositing processing on the interface resource data through the local rendering processing module of the peripheral device to obtain updated display interface data; and performing local rendering and display of the display area corresponding to the target display content based on the updated display interface data.

[0013] This application also provides a low-bandwidth peripheral display system, comprising: an information acquisition module, configured to acquire interface description information on a host and generate interface resource data for peripheral display based on the interface description information; a data fragmentation module, configured to fragment the interface resource data through the transmission constraints of a low-bandwidth communication link to obtain several fragmented data; a data transmission module, configured to send all the fragmented data to the peripheral for verification and reassembly through the low-bandwidth communication link, and write the reassembled interface resource data to the peripheral when the verification passes; and a local rendering module, configured to send an update instruction indicating the target display content to the peripheral through the host when the display content of the peripheral's display interface needs to be updated, and read the interface resource data corresponding to the target display content from the peripheral based on the update instruction, and perform local rendering display of the corresponding interface resource data on the peripheral.

[0014] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the low-bandwidth peripheral display method described above.

[0015] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when run by a processor, causes the processor to perform the low-bandwidth peripheral display method as described in any of the above descriptions.

[0016] Compared with existing technologies, this application has the following advantages: better display efficiency and higher resource utilization. By parsing the target display content identification information based on the update instruction on the peripheral side, and directly reading the interface resource data corresponding to the target display content from non-volatile memory, the peripheral locally completes the display composition and rendering display processing. This eliminates the need for the host to retransmit the complete interface resource data during the display interface update process, thereby effectively reducing the amount of data transmission under low-bandwidth communication link conditions, reducing communication latency and transmission failure risks, and avoiding the increased peripheral processing load caused by frequent full-screen refreshes. This achieves efficient, stable, and low-bandwidth update display of the peripheral display interface, improving the shortcomings of existing transmission methods in low-bandwidth scenarios, such as low display efficiency and low resource utilization. Attached Figure Description

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

[0018] The structures, proportions, sizes, etc., shown in the accompanying drawings of this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed in the specification, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.

[0019] Figure 1 This is a flowchart illustrating the low-bandwidth peripheral display method provided in an embodiment of the present invention; Figure 2 This is a schematic block diagram of the low-bandwidth peripheral display system provided in an embodiment of the present invention; Figure 3 This is a schematic block diagram of the structure of the electronic device provided in the embodiment of the present invention. Detailed Implementation

[0020] 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.

[0021] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0022] 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 scope of the application. 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.

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

[0024] The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0025] Example 1: like Figure 1 As shown, this application provides a low-bandwidth peripheral display method, applied between a host and a peripheral device with a display screen. This method enables the pre-generation and storage of display resources for the peripheral device's display interface, thereby achieving stable and efficient display updates under low-bandwidth communication conditions. The low-bandwidth peripheral display method specifically includes the following steps: Step S100: Obtain interface description information on the host and generate interface resource data for peripheral display based on the interface description information.

[0026] During interface configuration or adjustment, the host obtains interface description information. This interface description information describes the composition structure, display element types, and display layout relationships of the peripheral display interface. The interface description information exists in the form of structured data and is used to characterize the overall display content of the peripheral display interface, rather than specific pixel data.

[0027] The interface description information includes an identifier field to indicate the type of the display element, a coordinate field to indicate the position of the display element in the display interface, a size field to indicate the display size, and a hierarchy field to indicate the display hierarchy. The combination of the above fields can completely describe the display structure of the peripheral display interface, i.e., the interface resource data.

[0028] Furthermore, in step S100, the following scheme may also be preferred: The host's UI editor receives the user's input interface description information, parses each display element in the peripheral display interface based on the interface description information, and obtains the element type information and layout attribute information corresponding to each display element.

[0029] The host's UI editor converts the user-input interface configuration content into structured interface description information, and parses each display element in the interface description information item by item to extract the element type information and layout attribute information corresponding to the display element. The element type information is used to characterize the functional attributes of the display element, and the layout attribute information is used to characterize the spatial position relationship of the display element in the display interface.

[0030] For a text display element, the element type information is a text type identifier, and the layout attribute information includes the coordinates of the top left corner of the text display area, the display width, the height, and the display level number; for an icon display element, the element type information is an image type identifier, and the layout attribute information includes the coordinate range of the icon display area and the stacking order.

[0031] The display elements are classified using element type information to obtain a set of display elements that do not change frequently during operation.

[0032] The host classifies the display elements according to the element type information corresponding to each display element, and divides the display elements that do not change frequently during operation into the same display element set. The display element set is used to represent the interface display content that can be reused for a long time.

[0033] For example, display elements used to display fixed text labels, fixed icons, or fixed background patterns are grouped into a display element set, while display elements used for real-time numerical changes are not included in the same display element set, thereby ensuring that the content in the display element set is suitable for pre-generation and reuse.

[0034] The set of display elements is input into a preset interface rendering module to obtain the graphic resource data corresponding to the set of display elements.

[0035] The host inputs the set of display elements into the interface rendering processing module, which then generates corresponding graphic resource data based on the element type information of each display element. The graphic resource data is basic graphic data that can be directly used for peripheral display.

[0036] For text-type display elements, the interface rendering processing module uses a character pattern rendering algorithm to generate corresponding character graphic data; for image-type display elements, the interface rendering processing module uses a bitmap decoding algorithm to generate corresponding pixel graphic data, thereby forming graphic resource data in a unified format.

[0037] Based on the layout attribute information, the display elements are processed by layout mapping to obtain layout description data that describes the positional and hierarchical relationships of each display element in the display interface.

[0038] Based on the layout attribute information, the host performs mapping processing on the spatial distribution relationship of each display element in the peripheral display interface, and generates layout description data to describe the positional relationship and display hierarchy relationship of the display elements. The layout description data does not contain specific pixel information, but is only used to indicate the arrangement of graphic resource data in the display interface.

[0039] For example, a display area mapping table is generated based on the coordinate and size fields in the layout attribute information, and a display hierarchy order table is generated based on the hierarchy field, thus forming complete layout description data.

[0040] The graphic resource data and layout description data are combined to obtain the interface resource data used for peripheral display.

[0041] The host combines the graphics resource data and layout description data according to a preset data organization format to generate interface resource data for peripheral display. The interface resource data includes both display content information and display layout information, which are used for storage and local rendering on the peripheral side.

[0042] For example, graphic resource data can be written as a resource content field into the interface resource data, and layout description data can be written as a layout description field into the interface resource data, thus forming complete and independently parsable interface resource data.

[0043] Step S200: The interface resource data is fragmented by the transmission constraints of the low-bandwidth communication link to obtain several fragmented data.

[0044] Based on the transmission capacity limitations of the low-bandwidth communication link, the host performs an overall analysis of the interface resource data and breaks it down into data units that meet the single transmission capacity requirements of the low-bandwidth communication link. This ensures that each data unit can be transmitted stably through the low-bandwidth communication link, thereby forming several data fragments for transmission.

[0045] For example, when the length of a single effective payload is limited to no more than a preset number of bytes in a low-bandwidth communication link, the host continuously segments the interface resource data so that the length of each segmented data unit does not exceed the effective payload length, thereby avoiding transmission failure due to an excessively large single data unit.

[0046] Furthermore, in step S200, the following scheme may also be preferred: The maximum fragment length parameter for interface resource data is generated based on the transmission constraints of low-bandwidth communication links.

[0047] The host reads the transmission constraint parameters of the low-bandwidth communication link and generates a maximum fragment length parameter for the interface resource data based on the transmission constraint parameters. The maximum fragment length parameter is used to limit the maximum data length that can be carried in a single fragment.

[0048] For example, the transmission constraint parameters of low-bandwidth communication links include the maximum load length of the link layer, the length of the protocol control field, and the length of the check field. The host uses a fixed-length pruning calculation method to subtract the length of the protocol control field and the length of the check field from the maximum load length of the link layer to obtain the maximum fragment length parameter of the interface resource data.

[0049] The interface resource data is divided into several initial fragments by using the maximum fragment length parameter.

[0050] The host performs continuous length division processing on the interface resource data according to the maximum fragment length parameter, so that the length of each segment does not exceed the maximum fragment length parameter, thereby forming several initial fragment data. The initial fragment data maintains the order consistency with the interface resource data in terms of data content.

[0051] For example, when the total length of the interface resource data is greater than the maximum fragment length parameter, the host will extract a segment of data at intervals of the maximum fragment length parameter according to the byte order of the interface resource data until the division of all interface resource data is completed.

[0052] The initial fragmented data is associated with the corresponding fragment identification information to obtain several fragmented data for low-bandwidth transmission; where the fragment identification information is the position of each fragmented data in the interface resource data.

[0053] The host generates corresponding fragment identification information for each initial fragment of data and binds the fragment identification information to the corresponding initial fragment of data. The fragment identification information is used to indicate the positional relationship of the fragment of data in the interface resource data, so that the peripheral device can correctly reassemble the fragmented data according to the fragment identification information after receiving the fragmented data.

[0054] For example, the fragment identification information includes a fragment sequence number field or a byte offset field, which is used to indicate the starting position of the current fragment data in the interface resource data, so that the peripheral device can determine the order of each fragment data based on the fragment identification information.

[0055] Before sending fragmented data, the host generates a resource manifest file based on the interface description information and sends the resource manifest file to the peripheral device through a low-bandwidth communication link. After the peripheral device receives and verifies the integrity of the resource manifest file, it returns a confirmation message to the host that the resource transmission is ready and pre-allocates storage space in the peripheral device's non-volatile memory according to the resource identifier and file length recorded in the resource manifest file.

[0056] The host generates a resource list file based on the interface resource content involved in the interface description information. The resource list file is used to describe the basic information of the interface resource data to be transmitted. After receiving the resource list file and completing the integrity verification, the peripheral device reserves continuous storage space in the non-volatile memory for the corresponding interface resource data according to the resource identifier and file length recorded in the resource list file.

[0057] For example, the resource manifest file contains a resource identifier field and a file length field. The peripheral device indexes the interface resource data based on the resource identifier field and allocates a corresponding storage area in non-volatile memory based on the file length field, thereby ensuring that the fragmented data has a clear storage location when it is written.

[0058] Step S300: Send all fragmented data to the peripheral device for verification and reassembly through a low-bandwidth communication link, and write the reassembled interface resource data to the peripheral device when the verification is successful.

[0059] After generating the fragmented data, the host sends each fragment to the peripheral device via a low-bandwidth communication link. The peripheral device performs integrity verification and sequence management on the received fragmented data. If the verification passes, it reassembles the fragmented data based on the fragment identifier information to restore the complete interface resource data and writes the reassembled interface resource data into the peripheral device's non-volatile memory. The host sends fragmented data, containing fragment identifier information and a verification field, to the peripheral device one by one. Upon receiving the data, the peripheral device independently verifies each fragment to prevent anomalies in a single fragment from affecting the reception and processing of other fragments.

[0060] Furthermore, in step S300, the following scheme may also be preferred: After receiving the confirmation message, the host establishes a resource transmission session and generates a session identifier. It then sends fragmented data to the peripheral device in order or out of order via a low-bandwidth communication link. The peripheral device then verifies the checksum field of the received fragmented data.

[0061] After receiving the confirmation message from the peripheral device that the resource transmission is ready, the host generates a session identifier to identify the current interface resource data transmission process and carries the session identifier in each data segment sent, so that the peripheral device can distinguish the data segment sets corresponding to different interface resource data. The peripheral device classifies and manages the data segment and performs verification processing based on the session identifier.

[0062] For example, the host generates a unique session identifier for the current interface resource data and carries the session identifier in the header of each data segment. The peripheral only performs verification and reassembly operations on the data segments whose session identifiers match.

[0063] If the verification fails, the fragment data is discarded and a negative acknowledgment message containing the fragment data identifier is sent to the host. If the verification succeeds, the fragment data is reassembled to obtain the reassembled interface resource data.

[0064] After completing the verification of the fragmented data, the peripheral device processes the fragmented data according to the verification result. If the verification fails, the fragmented data is not included in the reassembly process, and a negative acknowledgment message containing the corresponding fragment identification information is generated and returned to the host. If the verification is successful, the fragmented data participates in the reassembly process according to the positional relationship indicated by the fragment identification information.

[0065] For example, if the peripheral device finds that the verification field of a certain data segment does not match during verification, it immediately discards the data segment and generates a negative acknowledgment message containing only the segment identifier information of that data segment.

[0066] Extract the resource identifier, byte offset, and payload from the recombined interface resource data.

[0067] After the peripheral device completes the reassembly of the fragmented data, it parses the resource identifier used for storage location, the byte offset used to indicate the data write position, and the data content that actually needs to be written to non-volatile memory from the reassembled interface resource data as the payload.

[0068] For example, the reorganized interface resource data includes a resource identifier field, a byte offset field, and a payload field in a preset format, and the peripheral device parses each field according to the field boundaries.

[0069] The resource identifier is used to find the starting address of the storage space corresponding to the resource in the resource manifest file. The byte offset is added to the starting address to obtain the write address of the net load in non-volatile memory, and the net load is written to this write address.

[0070] The peripheral device uses the resource identifier to find the corresponding storage space start address in the received and verified resource list file, and calculates the specific write address based on the start address and byte offset, thereby accurately writing the net load to the corresponding location in the non-volatile memory.

[0071] For example, the resource manifest file records the correspondence between resource identifiers and the starting address of storage space. The peripheral device calculates the write address and performs the write operation based on this correspondence.

[0072] Furthermore, the step of validating the verification field of the received fragmented data in the peripheral device can preferably be as follows: The fragment identifier, fragment length, and checksum are obtained by parsing the fragmented data.

[0073] After receiving the fragmented data, the peripheral device parses the fragmented data content according to the preset fragmented data format, and extracts the fragment identification information used for reassembly and positioning, the fragment length information used for length verification, and the verification code used for content verification.

[0074] For example, the header of the fragmented data contains a fragment identifier field and a fragment length field, and the tail contains a checksum field. Peripherals parse the data based on the position of these fields.

[0075] The consistency of the net payload length of the fragmented data is determined based on the fragment length information, and the length verification result is obtained.

[0076] The peripheral device compares the length value recorded in the fragment length information with the actual parsed net payload length to determine whether the two are consistent, thereby generating a length verification result.

[0077] When the length of the fragment length information is inconsistent with the actual net payload length, the peripheral device determines that the fragment data has failed the length verification.

[0078] The target verification value is calculated using a preset verification algorithm, and then compared with the verification code to obtain the content verification result.

[0079] The peripheral device uses a cyclic redundancy check algorithm to calculate the target check value based on the net load, and compares the target check value with the check code carried in the fragmented data to generate a content check result.

[0080] For example, the peripheral device performs a CRC check algorithm on the payload to calculate the target check value, and compares it bit by bit with the check code carried at the end of the fragmented data.

[0081] The verification status of the fragmented data is determined based on the length verification result and the content verification result.

[0082] If both the peripheral integrated length verification result and the content verification result are in a pass state, the verification status of the fragmented data is determined to be successful; otherwise, the verification status of the fragmented data is determined to be failed.

[0083] When the length verification result and the content verification result are consistent, the peripheral device marks the fragmented data as recombinable fragmented data.

[0084] Furthermore, when the verification status of the fragmented data is verification failed, the step of sending a negative acknowledgment message containing the fragmented data identifier information to the host can preferably be: The negative acknowledgment message carries the fragment identifier information corresponding to the fragment data that failed the verification.

[0085] When generating a negative acknowledgment message, the peripheral device writes the fragment identifier information corresponding to the fragment data that failed verification into the negative acknowledgment message, so that the host can accurately locate the fragment data that failed verification. The negative acknowledgment message only contains the fragment identifier information field and does not contain other fragment data content.

[0086] The negative acknowledgment message is sent to the host via a low-bandwidth communication link. After the host receives the negative acknowledgment message, it locates the corresponding fragment data from the generated fragment data according to the fragment identification information, and only retransmits the fragment data that failed the verification.

[0087] After receiving a negative acknowledgment message, the host locates the corresponding fragment data from the locally cached fragment data based on the fragment identification information carried in the negative acknowledgment message, and retransmits the fragment data through a low-bandwidth communication link, thereby avoiding the repeated transmission of fragment data that has passed the verification.

[0088] For example, the host determines the corresponding fragment sequence number based on the fragment identifier information, and only performs the retransmission operation on the fragment data corresponding to that fragment sequence number.

[0089] Step S400: When it is necessary to update the display content of the peripheral device's display interface, the host sends an update command to the peripheral device to indicate the target display content, and reads the interface resource data corresponding to the target display content from the peripheral device based on the update command, and performs local rendering and display of the corresponding interface resource data on the peripheral device.

[0090] When the host detects that the display interface of the peripheral device needs to change the display content, it no longer regenerates and transmits the complete interface resource data. Instead, it generates an update instruction to indicate the target display content and sends it to the peripheral device through a low-bandwidth communication link. The peripheral device locates the interface resource data corresponding to the target display content locally according to the update instruction and completes the display update process on the peripheral device side.

[0091] When only a specific numerical or icon area in the peripheral display interface needs to be updated, the host only sends an update command containing the target display content information, without resending the complete interface resource data.

[0092] Furthermore, in step S400, the following scheme may also be preferred: The update command is used to parse the display interface of the peripheral device to obtain the target display content identification information that needs to be changed.

[0093] After receiving the update command, the peripheral device parses the command field in the update command and extracts the target display content identification information used to identify the part of the display interface that needs to be changed, so as to clarify the scope of the display object that needs to be updated.

[0094] The update instruction includes a target display content identification information field, which is used to uniquely identify a display area or display element in the display interface. The peripheral device completes the parsing based on this field.

[0095] The interface resource data corresponding to the target display content is read from the non-volatile memory based on the target display content identification information.

[0096] The peripheral device uses the parsed target display content identification information to locate and read the interface resource data corresponding to the target display content in non-volatile memory, thereby avoiding the need to re-receive interface resource data. Based on the target display content identification information, the peripheral device locates the corresponding interface resource data storage address in non-volatile memory and reads the interface resource data into memory.

[0097] The interface resource data is processed by the local rendering module of the peripheral device to obtain the updated display interface data.

[0098] The peripheral device uses the local rendering processing module to perform display compositing processing on the read interface resource data, and combines the interface resource data with the current display interface data according to the preset display rules to generate updated display interface data.

[0099] For example, the local rendering processing module performs composite calculations on the target display content based on the pixel information and display position parameters recorded in the interface resource data, and generates display interface data containing updated content.

[0100] Based on the updated display interface data, the display area corresponding to the target display content is rendered locally and displayed.

[0101] Based on the updated display interface data, the peripheral device performs local rendering operations only on the display area corresponding to the target display content, and outputs the rendering results to the peripheral device's display screen, thereby completing a partial update of the display interface.

[0102] For example, the peripheral device only refreshes the pixel data of the display area corresponding to the target display content identification information, while the rest of the display area remains unchanged, thereby reducing the amount of data processing and display refresh load during the display update process.

[0103] In this embodiment, interface description information is obtained, and interface resource data for peripheral display is generated based on the interface description information. Subsequently, the host performs fragmentation processing on the interface resource data based on the transmission constraints of the low-bandwidth communication link to obtain several fragment data, and sends all the fragment data to the peripheral through the low-bandwidth communication link. After receiving the fragment data, the peripheral verifies and reassembles it, and writes the reassembled interface resource data to the peripheral when the verification passes. When it is necessary to update the display content of the peripheral's display interface, the host sends an update command to the peripheral to indicate the target display content. Based on the update command, the peripheral reads the interface resource data corresponding to the target display content from the peripheral and performs local rendering display of the corresponding interface resource data on the peripheral.

[0104] Through the above technical solution, the host converts the interface description information into interface resource data and transmits it to the peripheral device in advance. This allows the peripheral device to store and reuse the interface resource data locally, so that it only needs to read and render based on the update command during the display update process. This effectively reduces the amount of data transmission in low-bandwidth communication links. At the same time, by segmenting the interface resource data and performing verification and reassembly on the peripheral device side, the reliability of data transmission and display stability under low-bandwidth communication conditions are improved. This avoids display delays or incompleteness caused by bandwidth limitations, thereby improving the display efficiency and user experience of peripheral devices with displays in low-bandwidth application scenarios.

[0105] Example 2: like Figure 2 As shown, this application also provides a low-bandwidth peripheral display system 10, which specifically includes the following modules: The information acquisition module 11 is used to acquire interface description information on the host and generate interface resource data for peripheral display based on the interface description information.

[0106] The data fragmentation module 12 is used to fragment the interface resource data through the transmission constraints of the low-bandwidth communication link to obtain several fragmented data.

[0107] The data sending module 13 is used to send all fragmented data to the peripheral device for verification and reassembly through a low-bandwidth communication link, and write the reassembled interface resource data to the peripheral device when the verification is successful.

[0108] The local rendering module 14 is used to send an update command from the host to the peripheral to indicate the target display content when the display content of the peripheral needs to be updated, and read the interface resource data corresponding to the target display content from the peripheral based on the update command, and perform local rendering display of the corresponding interface resource data on the peripheral.

[0109] In this embodiment, the low-bandwidth peripheral display method is divided into an information acquisition module 11, a data fragmentation module 12, a data transmission module 13, and a local rendering module 14. Each module is responsible for generating interface resources, fragmentation processing, fragmentation transmission and verification reassembly, and local rendering display on the peripheral side. This structure creates a clear division of labor and stable collaboration in the interface display process under low-bandwidth conditions. As a result, while ensuring the correctness of the interface display, the data transmission pressure between the host and the peripheral is effectively reduced, and the reliability and real-time performance of peripheral display updates are improved.

[0110] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the system and each module described above can be referred to the corresponding process in the aforementioned Embodiment 1, and will not be repeated here.

[0111] Example 3: like Figure 3 As shown, this application also provides an electronic device 20, including a memory 21 and a processor 22. The memory 21 stores a computer program that can run on the processor 22. When the processor 22 executes the computer program, it implements the low-bandwidth peripheral display method of Embodiment 1.

[0112] In this embodiment, by storing a computer program for implementing a low-bandwidth peripheral display method in the memory 21 of the electronic device 20, and executing the computer program by the processor 22, the electronic device 20 can complete interface resource generation, fragmented transmission, and local rendering display on the peripheral side without relying on additional hardware modifications, thereby improving the deployment flexibility and implementation consistency of the low-bandwidth peripheral display method on different electronic device 20 platforms.

[0113] Example 4: This application also provides a computer-readable storage medium having a computer program stored thereon, which, when run by a processor, causes the processor to execute the low-bandwidth peripheral display method as described in Embodiment 1.

[0114] In this embodiment, by storing the computer program for implementing the low-bandwidth peripheral display method in a computer-readable storage medium, the processor can execute the interface resource fragmentation transmission and peripheral local rendering display process when reading and running the computer program. This enables the low-bandwidth peripheral display method to be stored, distributed, and reused in the form of a program product, thereby enhancing the scalability and feasibility of the technical solution in practical applications.

[0115] The structures, proportions, sizes, etc., shown in the accompanying drawings of this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed in the specification, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.

[0116] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A low-bandwidth peripheral display method, applied between a host and a peripheral with a display screen, characterized in that, include: The interface description information is obtained on the host, and interface resource data for peripheral display is generated based on the interface description information. The interface resource data is fragmented by the transmission constraints of the low-bandwidth communication link to obtain several fragmented data. All the fragmented data are sent to the peripheral device for verification and reassembly through the low-bandwidth communication link, and the reassembled interface resource data is written to the peripheral device when the verification passes. When it is necessary to update the display content of the peripheral device's display interface, the host sends an update command to the peripheral device to indicate the target display content, and reads the interface resource data corresponding to the target display content from the peripheral device based on the update command, and performs local rendering and display of the corresponding interface resource data on the peripheral device.

2. The low-bandwidth peripheral display method according to claim 1, characterized in that, The step of obtaining interface description information on the host and generating interface resource data for peripheral display based on the interface description information includes: The host receives user-inputted interface description information through the host's UI editor, and parses each display element in the peripheral display interface according to the interface description information to obtain the element type information and layout attribute information corresponding to each display element. The display elements are classified using the element type information to obtain a set of display elements; The set of display elements is input into a preset interface rendering processing module to obtain the corresponding graphic resource data; Based on the layout attribute information, the display elements are subjected to layout mapping processing to obtain layout description data; The graphical resource data and the layout description data are combined to obtain the interface resource data.

3. The low-bandwidth peripheral display method according to claim 1, characterized in that, The step of fragmenting the interface resource data through the transmission constraints of the low-bandwidth communication link to obtain several fragmented data includes: The maximum fragment length parameter of the interface resource data is generated based on the transmission constraints of the low-bandwidth communication link. The interface resource data is divided into several initial fragments by using the maximum fragment length parameter. The initial fragmented data is associated with the corresponding fragment identification information to obtain several fragmented data for low-bandwidth transmission; wherein, the fragment identification information is the position of each fragmented data in the interface resource data.

4. The low-bandwidth peripheral display method according to claim 3, characterized in that, Before sending the fragmented data, the host generates a resource list file based on the interface description information and sends the resource list file to the peripheral device through the low-bandwidth communication link. After the peripheral device receives and verifies the integrity of the resource list file, it returns a confirmation message that the resource transmission is ready to be completed to the host and pre-allocates storage space in the non-volatile memory of the peripheral device according to the resource identifier and file length recorded in the resource list file. The step of sending all the fragmented data to the peripheral device for verification and reassembly via the low-bandwidth communication link, and writing the reassembled interface resource data to the peripheral device when the verification passes, includes: The fragmented data is sent to the peripheral device through the low-bandwidth communication link, and the verification field of the received fragmented data is verified in the peripheral device. If the verification fails, the data fragment is discarded and a negative confirmation message containing the data fragment identifier is sent to the host. If the verification succeeds, the data fragment is reassembled to obtain the reassembled interface resource data. Extract the resource identifier, byte offset, and net payload from the recombined interface resource data; The resource identifier is used to find the corresponding storage space start address in the resource manifest file. The byte offset is added to the start address to obtain the write address of the net load in the non-volatile memory. The net load is then written to the write address.

5. The low-bandwidth peripheral display method according to claim 4, characterized in that, The step of validating the verification field of the received fragmented data in the peripheral device includes: The fragment identifier information, fragment length information, and checksum are obtained by parsing the fragmented data. Based on the fragment length information, a consistency judgment is made on the net payload length of the fragment data to obtain the length verification result; The target check value is calculated based on the net load, and the target check value is compared with the check code to obtain the content check result; The verification status of the fragmented data is determined based on the length verification result and the content verification result.

6. The low-bandwidth peripheral display method according to claim 5, characterized in that, When the verification status of the fragmented data is verification failed, the step of sending a negative acknowledgment message containing the fragmented data identifier information to the host includes: The negative confirmation message carries the fragment identifier information corresponding to the fragment data whose verification failed. The negative acknowledgment message is sent to the host via the low-bandwidth communication link. After receiving the negative acknowledgment message, the host locates the corresponding fragment data from the generated fragment data according to the fragment identification information, and only retransmits the fragment data that failed the verification.

7. The low-bandwidth peripheral display method according to claim 1, characterized in that, The step of sending an update command indicating the target display content to the peripheral via the host when it is necessary to update the display content of the peripheral's display interface, reading the interface resource data corresponding to the target display content from the peripheral based on the update command, and performing local rendering and display of the corresponding interface resource data on the peripheral includes: The update command is used to parse the display interface of the peripheral device to obtain the target display content identification information that needs to be changed; Based on the target display content identification information, the interface resource data corresponding to the target display content is read from the non-volatile memory; The interface resource data is processed by the local rendering module of the peripheral device to obtain updated display interface data. Based on the updated display interface data, the display area corresponding to the target display content is locally rendered and displayed.

8. A low-bandwidth peripheral display system, characterized in that, include: The information acquisition module is used to acquire interface description information on the host and generate interface resource data for peripheral display based on the interface description information. The data fragmentation module is used to fragment the interface resource data by means of the transmission constraints of the low-bandwidth communication link to obtain several fragmented data. The data sending module is used to send all the fragmented data to the peripheral device for verification and reassembly through the low-bandwidth communication link, and write the reassembled interface resource data to the peripheral device when the verification is successful. The local rendering module is used to send an update command to the peripheral device through the host to indicate the target display content when it is necessary to update the display content of the peripheral device's display interface, and read the interface resource data corresponding to the target display content from the peripheral device based on the update command, and perform local rendering display of the corresponding interface resource data on the peripheral device.

9. An electronic device, characterized in that, The device includes a memory and a processor, the memory storing a computer program that can run on the processor, and the processor executing the computer program to implement the low-bandwidth peripheral display method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, causes the processor to perform the low-bandwidth peripheral display method as described in any one of claims 1 to 7.