An electronic paper photo frame low-power consumption control method and system based on a wake-up reason
By using path selection based on wake-up reasons and low-power control methods, the problems of unnecessary radio frequency communication and high power consumption after a wake-up event in electronic paper photo frames are solved, achieving consistency of synchronous state and low-power display.
Patent Information
- Application Number
- CN202611401251.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing electronic paper photo frames may cause unnecessary radio frequency communication, mismatch between synchronization state and actual content, and failure to stop high-power operation in a timely manner after a wake-up event.
By acquiring the input semantics of the wake-up event, the networking strategy of the display task, and the validity results of the content object, the appropriate path result is selected to determine whether to enter the local display path or the network synchronization path, and the low-power state is restored after the display processing is completed.
It effectively avoids unnecessary RF startup and content transmission, maintains consistency in synchronization, reduces communication duration and transmission volume, and stops high-power operation after the display task is completed.
Smart Images

Figure CN123177645A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic paper display control technology, specifically to a low-power control method and system for electronic paper photo frames based on wake-up reasons. Background Technology
[0002] Electronic paper displays possess bistable characteristics, maintaining the image even after continuous operation ceases, making them suitable for battery-powered electronic photo frames that intermittently update the image. In existing electronic paper photo frames, after a timer, button press, or synchronization event causes the main controller to emerge from sleep mode, it typically activates the RF communication unit to access the network, retrieves image content from the server, and sends the corresponding display data to the display controller to refresh the electronic paper display. It then enters a waiting state for the next wake-up. This processing chain is used to respond to display tasks and update the photo frame image.
[0003] When wake-up events correspond to timed carousel, short press frame change, long press network connection, or explicit synchronization, and local content may be valid, missing, or invalid, the wake-up process either initiates RF communication or determines network connection solely based on the presence of a cache. This relies on a unified communication process and the assumption that the cache is usable as long as it exists. It cannot simultaneously reflect the operation objective, task network restrictions, and the actual validity of the content. Consequently, it may generate additional RF initiation and content transmission for tasks that can be directly executed locally. If content downloading, writing, power failure, reset, or content set rebinding intersects with normal synchronization, prematurely replacing active content or advancing synchronization progress based on partial reception results may cause necessary objects to be skipped or content from different bound versions to be mixed, resulting in a mismatch between local content, synchronization progress, and display status. Furthermore, if the refresh completion status and whether communication and storage transactions are cleared during the task completion process are not considered, the recorded display status may not match the actual screen, or RF communication, display high voltage, and main control operation may continue to consume power after the task ends. Therefore, a low-power control method and system for electronic paper photo frames based on wake-up reasons is needed to solve the problems of unnecessary radio frequency communication, mismatch between synchronization state and actual content, and failure to stop high-power operation in time after the display task is completed. Summary of the Invention
[0004] In view of the above-mentioned problems in the prior art, the present invention provides the following technical solution: In a first aspect, the present invention provides a low-power control method for an electronic paper photo frame based on wake-up reasons, comprising: S1. Obtain the wake-up event in the synchronous silent state, and determine the display task and content object. The synchronous silent state is the state in which the radio frequency communication unit is not enabled or is not communicating with the server for content synchronization data. S2. Determine the validity result of the content object, and generate a path result based on the input semantics of the wake-up event, the networking strategy of the display task, and the validity result; S3. When the path result is a local display path, maintain the synchronous silent state. When the validity result is valid, obtain the display frame according to the content object. S4. When the path result is a network synchronization path, exit the synchronization silent state, receive the download object including the necessary objects from the server, store the download object in the candidate state, and obtain the display frame according to the download object when there are content objects that need to be updated and displayed. Only after all necessary objects have been received and written can the new synchronization state be obtained and saved; otherwise, the original synchronization state is retained. S5. When the display frame exists, refresh the electronic paper display screen with the display frame; otherwise, maintain the current screen. S6. Configure the next wake-up source and enter a low-power state that maintains the screen and the aforementioned synchronous silent state.
[0005] Optionally, the wake-up event includes at least one of the following: real-time clock expiration event, key input event, explicit synchronization trigger event, or power state change event; The input semantics of the wake-up event are determined as either local display semantics or network synchronization semantics based on the cause code, trigger source, key type, press duration, or number of presses of the wake-up event.
[0006] Optionally, the key input event is an event generated by a single key, the network threshold is a preset duration, the press duration is determined to be the local display semantic when it is less than the network threshold, the network synchronization semantic when it reaches the network threshold, and the synchronization silent state is maintained when the network threshold is not reached.
[0007] Optionally, the networking strategy includes local execution only, networking when local conditions are insufficient, and networking required. The network strategy is as follows: when a network connection is required, the path result is determined as a network synchronization path; when the network strategy is to execute only locally, the path result is determined as a local display path; when the network connection is not possible due to insufficient local conditions, and the input semantics indicate local display and the validity result is valid, the path result is determined as a local display path; otherwise, the path result is determined as a network synchronization path.
[0008] Optionally, the validity result is determined based on at least one of the following: whether the content object exists, whether the actual data length is consistent with the expected data length, whether the content verification value is consistent, whether the validity period has expired, or whether the object version matches.
[0009] Optionally, the content object includes current dynamic data and local rendering resources, and the validity result is determined by verifying the validity period of the current dynamic data and the integrity and version of the local rendering resources; The display frame is obtained by the local rendering unit processing the current dynamic data according to the layout position and display attributes in the local rendering resources; The download objects include the current dynamic data or the local rendering resources that have been verified as missing or invalid.
[0010] Optionally, the display frame is a device native frame object, and the device display image is a set of display parameters for an electronic paper photo frame. The device native frame object is pre-generated according to the device display image and is consistent with the device display format, and passes the matching verification with the device display image.
[0011] Optionally, the device displays an image including the scanning order, and at least one of the following: display resolution, display orientation, color plane, pixel arrangement, bit depth, line step size, and frame format version; The device native frame object has at least one of the following: image identifier, data length, content verification value, and frame format version. After verification, it is written to the display controller in the scanning order without performing general image decoding, color quantization, or dithering.
[0012] Optionally, the download object is determined by the server according to the synchronization request, wherein the synchronization request is a request sent by the electronic paper photo frame to the server, the synchronization request includes a binding version identifier, and includes at least one of a synchronization progress identifier and an object set representation, the binding version identifier corresponds to the binding relationship between the electronic paper photo frame and the content set, the synchronization progress identifier corresponds to the content version position that has been synchronized, and the object set representation corresponds to the content object that has been stored in the electronic paper photo frame.
[0013] Optionally, the server generates a target list based on the binding relationship corresponding to the binding version identifier. The target list is generated by the server based on the binding relationship corresponding to the binding version identifier. The differential object identifier is determined by the server based on the comparison result between the content change record after the synchronization progress identifier or the object set representation and the target list. The electronic paper photo frame receives the downloaded object sent based on the data object location information corresponding to the differential object identifier.
[0014] Optionally, the process of storing the downloaded object in a candidate state includes: The candidate storage area is a storage area that does not overwrite the content objects that have already taken effect and the original synchronization state. The downloaded object and the candidate list received from the server are written into the candidate storage area. The candidate list includes object identifier, expected data length, content verification value, necessary object marker and object marker to be displayed. The download object is verified based on the object identifier, expected data length, and content verification value in the candidate list, and the completion status of all necessary objects is verified based on the list version and necessary object markers. Before all necessary objects and the candidate list have passed verification, the content in the candidate storage area is not used to replace the already effective content objects. After verification, the display frame is obtained based on the download object with the object to be displayed tag.
[0015] Optionally, the process of obtaining and saving the new synchronization state only after all necessary objects have completed receiving and writing includes: The formal synchronization file is a file that records the current effective synchronization progress. Based on the synchronization progress corresponding to the completion of receiving and writing of all necessary objects, metadata to be committed and a temporary file are formed. The metadata to be committed is written into the temporary file. The formal synchronization file and the temporary file are both located in the same file system. Perform a synchronous write operation on the temporary file to write it to non-volatile memory, and perform an atomic rename on the temporary file to replace the formal synchronous file; If a power outage or reset occurs before the replacement is complete, the original synchronization state is read. After the replacement is complete, the official synchronization file is read to obtain and save the new synchronization state.
[0016] Optionally, the download object is determined by the server based on the synchronization request, including: When the downloaded object or the content object stored locally is missing or fails to be verified, the synchronization request includes the identifier of the failed object. When the server determines the object location information based on the failed object identifier, it maintains the synchronization progress identifier and re-receives the located content object. If the server fails to determine the object location information based on the failed object identifier, it rolls back or resets the synchronization progress identifier and re-determines the download object.
[0017] Optionally, the updating and processing of the binding relationship between the binding version identifier and the electronic paper photo frame and the content set includes: Update the binding version identifier after the electronic paper photo frame is rebound to the content set; The binding version identifier sent by the electronic paper photo frame is compared with the binding version identifier on the server to obtain the binding version comparison result. If the binding version comparison result is inconsistent, the synchronization progress identifier is reset and a full synchronization is performed, and the control information carrying the binding version identifier before the update is not executed. If the binding version comparison result is consistent, the synchronization requests with the same request transaction identifier are idempotent.
[0018] Optionally, the display frame is used to refresh the electronic paper display screen, and the process of refreshing the electronic paper display screen includes: The refresh is confirmed to be complete based on at least one of the following: the display controller's busy signal ends, the refresh completion is interrupted, or the scheduled refresh duration expires and no refresh abnormality is detected. Once the refresh is confirmed to be complete, the display status information, including the displayed frame identifier and the current frame pointer, will be saved to non-volatile memory. If the refresh is not confirmed to be complete, the original display status information will be retained.
[0019] Optionally, the process of configuring the next wake-up source includes: When the display task is a periodic task, the candidate time is determined based on the current completion time and the carousel interval. When the display task is an absolute time task, the next planned execution time is determined as the candidate time. When synchronization or refresh fails, the candidate time is determined based on the backoff time corresponding to the number of failures. The next wake-up time is determined from the candidate times that have not yet expired, and the next wake-up time is the earliest among them, and the next wake-up time is written into the real-time clock.
[0020] Optionally, the low-power state maintains the current screen and the synchronous silent state, and after the number of unreceived fragments and unacknowledged writes of the downloaded object are both zero and the communication sending queue is empty, the content synchronization data communication of the radio frequency communication unit is stopped, the display controller exits the high-voltage drive and scanning clock, and the main controller enters sleep mode, with the real-time clock maintaining the timing.
[0021] Secondly, the present invention provides a low-power control system for an electronic paper photo frame based on wake-up reasons, for implementing the above method, including: The wake-up processing module is used to acquire wake-up events and determine display tasks and content objects in the synchronous silent state. The synchronous silent state is the state in which the radio frequency communication unit is not enabled or is not communicating with the server for content synchronization data. The path generation module is used to determine the validity result of the content object and generate a path result based on the input semantics of the wake-up event, the networking strategy of the display task, and the validity result. The local display module is used to maintain the synchronous silent state when the path result is a local display path, and to obtain the display frame according to the content object when the validity result is valid. The network synchronization module is used to exit the synchronization silent state when the path result is a network synchronization path, receive a download object including necessary objects from the server, store the download object in a candidate state, obtain the display frame according to the download object when there are content objects that need to be updated, and obtain and save the new synchronization state only after all necessary objects have been received and written; otherwise, the original synchronization state is retained. The display control module is used to refresh the electronic paper display screen with the display frame when the display frame exists, otherwise maintain the current screen; The low-power control module is used to configure the next wake-up source and enter a low-power state that maintains the screen and the synchronous silent state.
[0022] Beneficial effects The technical solution provided by this invention has the following beneficial effects: 1. The input semantics of the wake-up event, the network strategy of the display task, and the validity result of the content object are used together for path selection before radio frequency content synchronization. This ensures that tasks corresponding to locally valid content, such as timed carousel, short-press frame change, or local dynamic page, enter the local display path and remain synchronized silently. They only enter the network synchronization path when the task explicitly requires network access or local conditions are insufficient. This avoids locally executable tasks triggering radio frequency initiation, network connection, and content transmission, and reduces the communication duration and transmission volume within the corresponding wake-up cycle.
[0023] 2. The downloaded objects and candidate list are written to a candidate storage area that does not overwrite the already effective content or the original synchronization state. The submission condition for the new synchronization state is that all necessary objects have actually been received, written, and verified. This, combined with the synchronous writing and atomic renaming of temporary files in the same file system, the relocation of failed objects, and the handling of bound versions, ensures that the original synchronization state is preserved even if the writing fails, and that the complete new synchronization state is read after submission. This prevents subsequent synchronizations from skipping any still-missing necessary objects and prevents the mixing of content and control information before and after rebinding.
[0024] 3. After confirming that the electronic paper refresh is complete, save the displayed frame identifier and the current frame pointer, and determine the next wake-up time based on the candidate time generated by the periodic task, absolute time task, or failure backoff. After the number of unreceived fragments, unacknowledged writes, and communication transmission queues are all cleared, stop RF content synchronization, cause the display controller to exit high-voltage drive and scan clock, and put the main controller into sleep mode. This coordinated control enables the persistent display state to correspond to the actual screen, and causes high-power components to stop working after the display task is completed. The real-time clock maintains the subsequent wake-up capability, and the electronic paper display continues to maintain the current screen. Attached Figure Description
[0025] Figure 1 A schematic diagram illustrating the steps of a low-power control method for an electronic paper photo frame based on wake-up reasons provided by the present invention; Figure 2 A flowchart of a low-power control method for an electronic paper photo frame based on wake-up reasons provided by the present invention; Figure 3 A schematic diagram of the low-power control hardware connection for the electronic paper photo frame provided by the present invention; Figure 4 A schematic diagram of the server-side and electronic paper photo frame synchronous processing architecture provided by the present invention; Figure 5 A schematic diagram of the mapping relationship is generated for the path results provided by this invention; Figure 6 A schematic diagram illustrating the boundary between candidate content isolation and synchronization status submission provided by this invention; Figure 7 A schematic diagram of the differential synchronization timing interaction between the server and the electronic paper photo frame provided by this invention; Figure 8 A schematic diagram of a low-power control system for an electronic paper photo frame based on wake-up reason provided by the present invention; Figure 9 This is a graph showing the relationship between radio frequency content synchronization status and wake-up cycle under different path results provided by the present invention. Detailed Implementation
[0026] 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 a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0027] This invention applies to electronic paper photo frames powered by batteries and intermittently updating the screen. The electronic paper display can maintain the existing image after continuous operation ceases, while the radio frequency communication unit generates relatively concentrated energy consumption during startup, network access, and content transmission. This embodiment uses the expiration of the real-time clock, user key press, explicit synchronization trigger, or power state change as the starting point of a wake-up cycle. Before content synchronization data communication begins, a local display path or a network synchronization path is selected, and after display processing is completed, the system returns to a low-power state that maintains the displayed image.
[0028] The implementation environment includes an electronic paper photo frame and a server communicating with it. The electronic paper photo frame contains a main controller, an RF communication unit, non-volatile memory, a display controller, an electronic paper display screen, and at least one wake-up source. The main controller executes a low-power control program, and the non-volatile memory stores content objects, object metadata, synchronization status, and display status. The server stores the binding relationship between the device and the content set, content change records, and data object location information, and exchanges synchronization requests, candidate lists, and download objects with the RF communication unit via a wireless LAN, cellular network, or other packet data network. Even when there is no network connection or the task prohibits network access, the device-side processing can still reach a definite final state that maintains the original image or refreshes using locally valid content.
[0029] Example 1 This embodiment uses timed carousel, conditional networking, and one-time submission of candidate content as examples. Initially, the electronic paper display maintains the previous screen P, and the radio frequency communication unit is not enabled; the formal synchronization file in the non-volatile memory records the version identifier 12, the synchronization progress identifier 105, and the active content version pointer V105; an independent display status record saves the current frame pointer P, whose content version identifier is V105; the real-time clock generates an expiration wake-up signal at 03:00. The active content version pointer is used to specify the currently effective version object directory, and the current frame pointer is used to specify the position of the already displayed frame in the carousel sequence. The two belong to the synchronization state and the display state, respectively, and do not replace each other. The low-power control method adopted includes: S1. Obtain the wake-up event in the synchronous silent state, and determine the display task and content object. The synchronous silent state is the state in which the radio frequency communication unit is not enabled or is not communicating with the server for content synchronization data. S2. Determine the validity result of the content object, and generate a path result based on the input semantics of the wake-up event, the networking strategy of the display task, and the validity result; S3. When the path result is a local display path, maintain the synchronous silent state. When the validity result is valid, obtain the display frame according to the content object. S4. When the path result is a network synchronization path, exit the synchronization silent state, receive the download object including the necessary objects from the server, store the download object in the candidate state, and obtain the display frame according to the download object when there are content objects that need to be updated and displayed. Only after all necessary objects have been received and written can the new synchronization state be obtained and saved; otherwise, the original synchronization state is retained. S5. When the display frame exists, refresh the electronic paper display screen with the display frame; otherwise, maintain the current screen. S6. Configure the next wake-up source and enter a low-power state that maintains the screen and the aforementioned synchronous silent state.
[0030] like Figure 1 As shown, S1 to S6 are executed sequentially along one wake-up cycle: the task, object, validity result, path result, display frame or status result formed in the previous step are used as input or control conditions for the next step, and finally the next wake-up source is written to the corresponding wake-up component and the system returns to a low-power state.
[0031] For S1, specifically, when the real-time clock expires, the main controller first reads the wake-up reason register and interrupt status bit latched by the power management unit, verifies that the expired interrupt bit is valid and there is no higher priority power fault bit, and then assembles a wake-up event record with the reason code, trigger source, and trigger time. The main controller then uses the reason code to look up the task identifier in the task schedule table, reads the task type, scheduled time, content reference, and networking policy fields corresponding to the task identifier, and reads the current frame pointer P from the display status record and the active content version pointer V105 from the formal synchronization file. When the versions of the two pointers are consistent, the main controller reads the successor position of P along the carousel sequence list of the version pointed to by V105; when the versions are inconsistent, it first searches for the same object in the version pointed to by V105 according to the displayed frame identifier. If the search is successful, it reads the successor position of the object; if the search fails, it reads the first object in the version with the object to be displayed. Thus, the 03:00 event is parsed as a calendar carousel task, and the frame A pointed to by the obtained position is determined as the content object of this cycle. The task schedule uses the task identifier as the unique key. When multiple wake-up sources are active at the same time, power state change events and explicit synchronization trigger events are processed first, followed by key input events and real-time clock expiration events. Events not processed in this cycle are retained in the pending bitmap for the next cycle to read.
[0032] like Figure 3 As shown, the normally open power supply domain of the electronic paper frame includes a real-time clock, which outputs an expiration wake-up signal to the main controller. The button input circuit, power status detection, and explicit synchronization trigger interface output button wake-up signals, power status wake-up signals, and explicit synchronization trigger signals to the main controller, respectively. The main controller bidirectionally transmits content synchronization control and data with the RF communication unit and sends low-power switching control to the RF communication unit. The main controller bidirectionally reads and writes "content objects, object metadata, synchronization status, and display status" with the non-volatile memory. The main controller sends display frames, refresh control, and low-power switching control to the display controller. The display controller returns a busy signal or refresh completion information to the main controller and performs scan writing and refresh driving to the electronic paper display screen. The direction of each arrow corresponds to the actual signal transmission direction, and the bidirectional arrow corresponds to a request, response, or data interface where both reading and writing exist.
[0033] In some implementations, the wake-up event includes at least one of a real-time clock expiration event, a key input event, an explicit synchronization trigger event, or a power state change event; The input semantics of the wake-up event are determined as either local display semantics or network synchronization semantics based on the cause code, trigger source, key type, press duration, or number of presses of the wake-up event.
[0034] Specifically, the main controller reads the cause code and trigger source at each interrupt entry point. The cause code is taken from the real-time clock interrupt flag, the button GPIO interrupt flag, the software synchronization event flag, or the power management status flag. For button input events, it also reads the button type, press time, release time, and number of presses from the button scan record, and uses the release time minus the press time in milliseconds as the press duration. The main controller uses the cause code and the button field as a joint key to look up the input semantic mapping table: timed rotation of cause codes, short press types, or single press records output local display semantics; explicit synchronization cause codes, long press types, or continuous press records reaching the configured number of times output network synchronization semantics; power status change events read the charging access, external power supply disconnection, or low battery status codes, and output according to the semantic value corresponding to the same status code in the task schedule table. When there is no matching item in the mapping table, an unknown cause status is recorded, content synchronization is not started, and the output for this cycle is set to no display task.
[0035] Furthermore, the key input event is an event generated by a single key, the network threshold is a preset duration, the press duration is determined to be the local display semantic when it is less than the network threshold, the network synchronization semantic when it reaches the network threshold, and the synchronization silent state is maintained when the network threshold is not reached.
[0036] Specifically, after a single button is pressed, the duration of the press is accumulated by a normally open timing circuit or a low-power timer of the main controller. The network threshold in the configuration area is stored in milliseconds and includes the configuration version. In this embodiment, the network threshold is set to 2000 milliseconds: when the accumulated value corresponding to the release time is less than 2000 milliseconds, local display semantics are output; when the accumulated value is equal to or greater than 2000 milliseconds, network synchronization semantics are output immediately. Before reaching the threshold, the main controller does not send an RF enable command and does not establish content synchronization data communication; only after reaching the threshold is the network synchronization semantics handed over to S2. The threshold can be set to other positive durations according to the button debouncing time, user operation habits, and product interaction goals, but the comparison unit and boundary assignment within the same configuration version must remain consistent; when the timing record is missing or the button bounce fails the debouncing verification, the system remains in a synchronous silent state for this cycle and records invalid button events.
[0037] For S2, specifically, the main controller reads the content object reference and task networking policy output by S1, and uses this reference to access the object data and object metadata in non-volatile memory. The object metadata includes at least the enabled fields for object identifier, expected data length, content checksum, validity period, and object version. The main controller first checks if the file or record corresponding to the object identifier exists, then reads the actual data length and compares it byte-by-byte with the expected data length; when content verification is required, it calculates the checksum for the actual data according to the verification algorithm specified in the metadata and compares it with the saved value; when validity or version verification is required, it compares the current value of the real-time clock with the validity period, and the object version with the version required by the task, respectively. Output is invalid if any required field is missing or any comparison is inconsistent; if the validity period equals the current time, it is treated as expired; output is valid when all enabled checks pass. This Boolean validity result, along with the input semantics and networking policy, is entered into the same path mapping record.
[0038] like Figure 5 As shown, the input semantics include local display semantics and network synchronization semantics; the validity result includes valid and invalid; and the network strategy includes requiring network access, executing only locally, and network access when local conditions are insufficient. These three inputs jointly constrain the path result. "Required network access" is directly mapped to a network synchronization path; "execute only locally" is directly mapped to a local display path; "network access when local conditions are insufficient" is mapped to a local display path only when the input semantics are local display semantics and the validity result is valid. In other combinations where the input semantics are network synchronization semantics or the validity result is invalid, it is mapped to a network synchronization path. Under the local display path, a display frame is obtained when valid; no display frame is output when the content object is invalid and the strategy prohibits network access. Through this hierarchical mapping matrix, each input combination falls into only one path branch.
[0039] In some implementations, the networking policy includes local execution only, networking when local conditions are insufficient, and networking required. The network strategy is as follows: when a network connection is required, the path result is determined as a network synchronization path; when the network strategy is to execute only locally, the path result is determined as a local display path; when the network connection is not possible due to insufficient local conditions, and the input semantics indicate local display and the validity result is valid, the path result is determined as a local display path; otherwise, the path result is determined as a network synchronization path.
[0040] Specifically, the networking policy is read out along with the display task as an enumerated field in the task schedule table. The path generation program first compares the networking policies: if the field value requires networking, the network synchronization path is written directly; if the field value is for local execution only, the local display path is written directly; if the field value is for networking when local conditions are insufficient, the input semantics and validity results are compared. The local display path is written only if both are equal to the local display semantics and valid, and the network synchronization path is written if either is not satisfied. If the networking policy field is empty, exceeds the enumeration range, or the configuration version does not match, the exception is not interpreted as allowing networking. Instead, a policy configuration error is recorded and the task is processed as local execution only to prevent abnormal configuration from automatically starting radio frequency communication. The policy for the 03:00 calendar carousel task is networking when local conditions are insufficient. The input semantics are local display semantics and frame A is valid, so the path record is written to the local display path.
[0041] Furthermore, the validity result is determined based on at least one of the following: whether the content object exists, whether the actual data length is consistent with the expected data length, whether the content verification value is consistent, whether the validity period has expired, or whether the object version matches.
[0042] Specifically, each object type registers a mandatory check bitmap in the object type table. For example, device native frame objects at least check existence, data length, content checksum, and frame format version; short-term dynamic data at least check existence and validity period; and locally rendered resources at least check existence, content checksum, and resource version. The main controller performs checks sequentially according to the mandatory check bitmap and saves each pass bit; if all mandatory check bits pass, it is written as valid; otherwise, it is written as invalid, and the first failure field and the reason for failure are recorded simultaneously. Checks that are not enabled are not treated as failures; if the expected data length is zero but the object type does not allow empty content, it is treated as a length inconsistency. This record is read by the path generation program and can also be converted into a failed object identifier after entering the network branch.
[0043] For S3, specifically, the main controller reads the local display path and validity status written in S2, does not send enable or connection commands to the RF communication unit, and reads the content object from the active content area. If the object itself is already a display frame that the device can write, then its object identifier, frame data address, data length, and device display image identifier are combined to form a display frame descriptor; if the object consists of dynamic data and local rendering resources, then these inputs are handed over to the local rendering unit. If the object reading fails or the post-reading verification fails, the display frame descriptor for this cycle is deleted, the result of no display frame is recorded, and S5 maintains the current screen; the active content area and the formal synchronization file are not changed due to this reading failure.
[0044] In some implementations, the content object includes current dynamic data and local rendering resources, and the validity result is determined by verifying the validity period of the current dynamic data and the integrity and version of the local rendering resources; The display frame is obtained by the local rendering unit processing the current dynamic data according to the layout position and display attributes in the local rendering resources; The download objects include the current dynamic data or the local rendering resources that have been verified as missing or invalid.
[0045] Specifically, the current dynamic data can be the current date, calendar entries, schedule data, or device status records. These records include data type, generation time, validity period, and field values. Local rendering resources can be glyph files, page layout templates, icons, and background resources. Each resource includes a resource identifier, resource version, expected data length, and content validation value. The local rendering unit first verifies that the dynamic data has not exceeded its validity period. Then, it verifies that each resource referenced by the task exists, its length matches the validation value, and its resource version is equal to the version required by the template. After successful verification, the rendering unit traverses the controls in the area order of the page layout template, reading the horizontal and vertical coordinates, width and height, foreground or background color, alignment, and data field names of each control. It converts the corresponding field values into glyph or icon pixels and writes them to the frame buffer. Overlapping areas are covered from low to high according to the layer values in the template, and pixels exceeding the display boundary are cropped. After completing all controls, a display frame descriptor containing the frame buffer address, resolution, color plane, and data length is output. When any dynamic data or rendering resource is missing or invalid, its object identifier is written into the download request set; if the task policy allows network access, it is downloaded by S4; if the task policy prohibits network access, no display frame is output and the current screen is retained.
[0046] In another embodiment, the display frame is a device native frame object, and the device display image is a set of display parameters for an electronic paper photo frame. The device native frame object is pre-generated according to the device display image and is consistent with the device display format, and passes the matching verification with the device display image.
[0047] Specifically, during device registration, the device display profile identifier and corresponding parameter set are written to non-volatile memory and reported to the server. The server or offline generation tool reads this parameter set, adapts the original image, and saves the device's native frame object. The electronic paper frame reads the profile identifier, frame format version, and data length from the object header and compares them item by item with the local configuration. If all fields match and the content verification passes, a display frame descriptor is directly established. If any field is inconsistent, the object is marked as invalid, and data with different scan or pixel formats is not delivered to the display controller. The device display profile represents a set of parameters that collectively determine the frame data interpretation method, rather than just the device model. Therefore, devices of the same model can have different profile identifiers when the screen version is different.
[0048] Furthermore, the device displays an image including a scanning order, and at least one of the following: display resolution, display orientation, color plane, pixel arrangement, bit depth, line step size, and frame format version; The device native frame object has at least one of the following: image identifier, data length, content verification value, and frame format version. After verification, it is written to the display controller in the scanning order without performing general image decoding, color quantization, or dithering.
[0049] Specifically, the scan order field indicates whether to advance by row or column and whether to write in the forward or reverse direction; the display resolution is recorded in the number of horizontal and vertical pixels, the display direction is recorded by rotation enumeration, the color plane and pixel arrangement describe the order of each pixel in the frame data, the bit depth is recorded in the number of bits per pixel, the row step size is recorded in the number of bytes per scan line, and the frame format version is used to distinguish between the object header and the pixel layout. The main controller first compares the image identifier and the frame format version, and then uses the data length to check the storage range required by the resolution, bit depth, and row step size; after the verification is passed, the raw data blocks are written to the display controller row by row or column by column according to the scan order. Since the data is consistent with the device display format, the device side no longer performs general image decoding, color quantization, or dithering processing; when the write count has not reached the data length or the display controller returns an interface error, the current submission is stopped, the incomplete display frame state is cleared, and the original display state is maintained by S5.
[0050] Specifically, for S4, when the network synchronization path is written in S2, the main controller sends RF enable and connection commands to the RF communication unit. After the network interface establishes a usable session, the device reads the device identifier, binding version identifier, synchronization progress identifier, object set representation, and the set of failed objects for this period to form a synchronization request message. The server locates the binding record according to the device identifier, forms the target list and differential objects, and then returns the candidate list and the corresponding download objects. The main controller writes the received data to the candidate storage area without overwriting the active content area; only when the necessary object reception, writing, and verification are all completed, the candidate version identifier is written to the active content version pointer field in the metadata to be submitted, and this field is submitted together with the new synchronization progress identifier, so that the candidate version and the new synchronization state take effect at the same submission boundary. When there is a connection timeout, fragmentation loss, storage failure, or list verification failure, the device retains the original synchronization state and the original active content version pointer, saves the failure stage, object identifier, confirmed fragmentation bitmap, and retry count in the candidate recovery record, marks the active reception, writing, and sending transactions for this period as pending closure, and proceeds to S6 to complete transaction closure and form backoff candidate times.
[0051] like Figure 4 As shown, the server-side boundary includes binding relationships, target list generation, differential object determination, and data object location. The e-paper frame boundary includes synchronization request formation, candidate object reception and candidate storage, synchronization status submission, and display processing. Binding relationships provide content set versions and object references to target list generation. Target list generation outputs the target list to differential object determination, and differential object determination outputs differential object identifiers to data object location. Synchronization request formation sends the binding version identifier and synchronization progress identifier or object set representation from the e-paper frame to the server. If an object fails, an invalid object identifier is also sent. Data object location sends a candidate list and downloaded objects from the server to candidate object reception and candidate storage based on the data object location information. After all necessary objects are received and written, candidate object reception and candidate storage check the completion bit item by item according to the object identifier, and writes the verified candidate version identifier to the pending submission state. Synchronization status submission then replaces the active content version pointer in the formal synchronization file with this identifier, making the candidate version the active content version and forming a new synchronization state. Objects with a pending display object marker form a display frame and then enter display processing.
[0052] In some implementations, the download object is determined by the server according to a synchronization request, wherein the synchronization request is a request sent by the electronic paper frame to the server, the synchronization request includes a binding version identifier and at least one of a synchronization progress identifier and an object set representation, the binding version identifier corresponds to the binding relationship between the electronic paper frame and the content set, the synchronization progress identifier corresponds to the position of the content version that has been synchronized, and the object set representation corresponds to the content object that has been stored in the electronic paper frame.
[0053] Specifically, the synchronization request message uses the device identifier and request transaction identifier as header fields, the binding version identifier as a required status field, and carries at least one of the following: a synchronization progress identifier or an object set representation. The synchronization progress identifier can be the last fully committed position in the server's content change record; the object set representation can be a list of identifiers sorted in ascending order, a summary calculated from the list, or a bitmap indicating the existence of each target object. After the RF session is established, the device reads the active content version pointer in the formal synchronization file, then reads the object index of the version pointed to by that pointer, and encodes the above fields sequentially. If the formal synchronization file is corrupted, the synchronization progress identifier is marked as unavailable, and the last successfully verified active version object set representation is sent; if the active version index is also unavailable, an empty set flag is sent. After verifying the device identifier and binding version identifier, the server selects either the available progress field or the set field to continue processing. Only versions already pointed to by the active content version pointer in the formal synchronization file are counted as stored objects; objects in the candidate area that have not yet been committed are not counted.
[0054] Furthermore, the server generates a target list based on the binding relationship corresponding to the binding version identifier. The target list is generated by the server based on the binding relationship corresponding to the binding version identifier. The differential object identifier is determined by the server based on the comparison result between the content change record after the synchronization progress identifier or the object set representation and the target list. The electronic paper photo frame receives the downloaded object sent based on the data object location information corresponding to the differential object identifier.
[0055] Specifically, the server uses the device identifier and binding version identifier to jointly look up the binding table, reads the content set identifier and the effective version, and then extracts the object identifier, object version, expected data length, content verification value, necessary object tags, and object tags to be displayed from the object relationship table according to the content set identifier. These are then arranged into a target list in ascending order of object identifiers. When the synchronization request contains a valid synchronization progress identifier, the server extracts newly added or changed objects from the change log that are after that position and no later than the target version. When using object set representation, the server compares each object in the representation with the object identifier and version in the target list, and writes missing or different versions of objects in the target list into the differential object identifier set. When both representations exist simultaneously, the progress range is first used to narrow down the candidate records, and then the object set comparison result is used to remove objects of the same version already present on the device. The server uses the differential object identifier to query the address, fragment range, and access verification information in the object storage index to form data object location information, and sends the candidate list and downloaded objects sequentially; if there are no differential objects, an empty candidate list and synchronization completion status are sent.
[0056] like Figure 7As shown, cross-entity interactions proceed in the order of numbers 1 to 10: The electronic paper frame is first created and sends a synchronization request to the server; the server verifies the binding version identifier and binding relationship. If the versions are inconsistent, a full synchronization is triggered without executing the old binding version control information; if the versions are consistent, a target list is generated, the differential object identifier and data object location information are determined; the server then sends a candidate list and download objects to the electronic paper frame. The electronic paper frame writes both to the candidate storage area and performs object and list verification. If a download object or local content object is missing or verification fails, the electronic paper frame sends an invalid object identifier to the server; if the server can locate the object, it resends the content object; if it cannot locate the object, it requests a progress rollback or reset. After all necessary objects are completed, the electronic paper frame commits locally and saves the new synchronization state. The active content version pointer in this new synchronization state simultaneously points to the verified candidate version. The dashed horizontal arrows in the diagram indicate the direction of cross-entity messages, and the numbered boxes next to the lifelines indicate the order in which messages or local processing occur.
[0057] In some implementations, the process of storing the downloaded object in a candidate state includes: The candidate storage area is a storage area that does not overwrite the content objects that have already taken effect and the storage area of the original synchronization state. The downloaded object and the candidate list received from the server are written into the candidate storage area. The candidate list includes object identifier, expected data length, content verification value, necessary object marker and object marker to be displayed. The download object is verified based on the object identifier, expected data length, and content verification value in the candidate list, and the completion status of all necessary objects is verified based on the list version and necessary object markers. Before all necessary objects and the candidate list have passed verification, the content in the candidate storage area is not used to replace the already effective content objects. After verification, the display frame is obtained based on the download object with the object to be displayed tag.
[0058] Specifically, the candidate storage area can be implemented as a candidate directory isolated by version identifier, an inactive slot in dual-slot storage, or a database transaction temporary storage area; the active content area is specifically the logical read area formed by the main controller reading the active content version pointer of the formal synchronization file, finding the same version directory according to the pointer, and loading the object index in the directory into the active index table. Therefore, writes to candidates not referenced by this pointer will not change the active content area. The device first checks the list version, device identifier, and binding version of the candidate list, and then establishes a reception record for each object in the list; the reception record uses the object identifier as a unique key and saves the expected data length, the confirmed fragment bitmap, the cumulative received length, the recalculated content check value, the necessary object marker, the object marker to be displayed, and the write confirmation bit. Each fragment is written to the corresponding offset position of the object file according to the fragment sequence number. Only after the data is synchronized to the non-volatile memory and returns successfully is the confirmed fragment bitmap updated with log records or dual-copy records; fragments with uncertain return results remain unconfirmed. When all fragments are confirmed, the actual length is compared with the expected data length, and then the recalculated value is compared with the content verification value. The write confirmation bit is set only after the object passes the verification and the non-volatile write of the object file returns a successful result. The main controller traverses all records marked as true for necessary objects. Only when each record has completed length verification, content verification, and write confirmation, and the candidate list itself has passed the verification, is the candidate completion status output. If any item fails, the effective content and the original synchronization state are retained, and the object to be displayed does not cross the candidate boundary. Only after all items pass is a descriptor for the display frame to be submitted created from the object marked as an object to be displayed. This descriptor is only handed over to S5 after the formal synchronization file is successfully replaced. It is discarded if the submission fails, so the display status will not be refreshed with candidate content that has not yet taken effect.
[0059] Once the candidate completion status is true, the main controller does not overwrite the active content area file by file. Instead, it writes the candidate version identifier corresponding to the candidate list version into the active content version pointer field of the metadata to be submitted. After the formal synchronization file is successfully replaced by atomic renaming, the version pointed to by this pointer becomes the active content version. S1, S3, and subsequent synchronization requests all read objects from this version. Before the replacement is successful, the original pointer continues to point to the original active content version. The original active content version is retained at least until the startup verification is completed and the display status record no longer references the displayed frames before being recycled. This ensures that the original screen can still be maintained and recognized during the period after the new version is submitted but before the display refresh is complete.
[0060] like Figure 6As shown, the downloaded objects and candidate lists enter the candidate state along the writing direction. The candidate state is isolated from the already effective content and is not replaced. The object identifier, expected data length, content verification value, list version, and necessary object marker are used to verify all necessary objects. When any necessary object is not completed or the candidate list fails verification, the status arrow returns to the original synchronization state. When all necessary objects are received and written and the candidate list passes verification, the candidate state moves downward to form metadata to be submitted. The metadata to be submitted is written to a temporary file. The temporary file replaces the formal synchronization file through synchronous write operations and atomic renaming in sequence. After crossing the submission boundary, a new synchronization state is formed and saved. In this embodiment, the active content version pointer is a component field of the metadata to be submitted. Therefore, the new synchronization progress and the new active content version cross the same submission boundary. When a power outage or reset occurs before the replacement is completed, the original synchronization state and its original active content version pointer are read. When the power outage or reset occurs after the replacement is completed, the new synchronization state and its new active content version pointer are read. There is no formal state on either side of this boundary where only a portion of the fields have been written, nor is there a combination where the synchronization progress has advanced but the active content still points to an incomplete candidate version.
[0061] Furthermore, the process of obtaining and saving the new synchronization state only after all necessary objects have completed receiving and writing includes: The formal synchronization file is a file that records the current effective synchronization progress. Based on the synchronization progress corresponding to the completion of receiving and writing of all necessary objects, metadata to be committed and a temporary file are formed. The metadata to be committed is written into the temporary file. The formal synchronization file and the temporary file are both located in the same file system. Perform a synchronous write operation on the temporary file to write it to non-volatile memory, and perform an atomic rename on the temporary file to replace the formal synchronous file; If a power outage or reset occurs before the replacement is complete, the original synchronization state is read. After the replacement is complete, the formal synchronization file is read to obtain and save the new synchronization state.
[0062] Specifically, the metadata to be committed must at least store the device identifier, binding version identifier, target list version, new synchronization progress identifier, active content version pointer, summary of the necessary object set to be completed, and commit checksum. After the candidate completion status is true, the main controller first performs synchronous writing on the candidate version's object file and candidate list, and verifies that its version identifier, object set summary, and content checksum have been written to non-volatile memory; then, a temporary file is created in the same file system as the official synchronization file, the above fields to be committed are written in a fixed field order, the file buffer is flushed, and synchronous writing operation is performed. After the synchronous writing returns successfully, the main controller performs atomic renaming on the temporary file to replace the official synchronization file, and performs necessary persistence operations at the directory level. The point at which the atomic renaming returns successfully constitutes the commit boundary: before this point, the startup program only accepts the original official synchronization file with complete checksum and its original active content version pointer; after this point, the program only accepts the replaced complete official synchronization file and its new active content version pointer. The startup procedure also verifies the candidate list version, object set summary, and necessary object completion status of the version pointed to by the pointer. Only after the verification is passed is the version used as the active content area. If the verification fails, the recovery status is recorded, but the corresponding progress is not recorded as effective progress. When a temporary file is missing a field, candidate version synchronization fails to write, or atomic renaming fails, the device records the commit failure status, retains the original synchronization status and the original active content version pointer, and retains the candidate version for continued transmission or clears the objects that failed verification. In this embodiment, after necessary object B and necessary resource C have been received, written, and verified, the metadata to be committed updates the synchronization progress identifier from 105 to 106 and the active content version pointer from V105 to V106. If the writing of C is interrupted, the formal synchronization file still records 105 and V105. When the underlying file system does not provide atomic renaming, a dual-slot status area with a valid flag and an incrementing sequence number, a log record that writes data first and then writes the commit flag, or a key-value store with atomic transaction semantics can be used to achieve the same commit boundary between the synchronization progress and the active content version pointer.
[0063] In some implementations, the download object is determined by the server based on the synchronization request, including: When the downloaded object or the content object stored locally is missing or fails to be verified, the synchronization request includes the identifier of the failed object. When the server determines the object location information based on the failed object identifier, it maintains the synchronization progress identifier and re-receives the located content object. If the server fails to determine the object location information based on the failed object identifier, it rolls back or resets the synchronization progress identifier and re-determines the download object.
[0064] Specifically, the device writes the object identifier, verification failure type, received fragment bitmap, and current binding version of the missing object into the failed object record and sends it with the next synchronization request. The server first queries the target list and object storage index using the binding version and object identifier. If the index exists and the object still belongs to the current target list, the device keeps the synchronization progress flag unchanged, returns the data object location information of the object, and the device only clears the corresponding candidate reception record before re-receiving the located content object. If the index does not exist, the object has been removed from the current content set, or the binding version of the failed record is inconsistent, the server returns an unlocatable status and a target position that can be rolled back. The device rolls back the synchronization progress flag to that position. If there is no valid rollback position, it resets to the initial position and resends the synchronization request to re-determine the download object. Regardless of the branch, failed objects are not marked as completed, and the candidate status is not committed.
[0065] Furthermore, the updating and processing of the binding relationship between the binding version identifier and the electronic paper photo frame and the content set includes: Update the binding version identifier after the electronic paper photo frame is rebound to the content set; The binding version identifier sent by the electronic paper photo frame is compared with the binding version identifier on the server to obtain the binding version comparison result. If the binding version comparison result is inconsistent, the synchronization progress identifier is reset and a full synchronization is performed, and the control information carrying the binding version identifier before the update is not executed. If the binding version comparison result is consistent, the synchronization requests with the same request transaction identifier are idempotent.
[0066] Specifically, the rebinding operation creates a new binding record on the server side using the device identifier as the key, and increments or replaces the binding version identifier with a new unique value. The device receives this value in the next synchronization response and only writes it to the formal synchronization file after the new binding content is committed. Upon receiving a synchronization request, the server compares the binding version identifier in the request with the device's current binding record byte-by-byte: if they are inconsistent, a version inconsistency status is returned, requiring the device to clear the committable flag of the old progress, reset the synchronization progress identifier to its initial position, and perform a full synchronization, while discarding playback, deletion, or frame-switching control information carrying the binding version identifier from before the update; if they are consistent, the transaction table is queried using the device identifier, binding version identifier, and request transaction identifier as idempotent keys. If a completed record already exists, the initial processing result is returned; if a record is already in progress, the same processing status is returned, without regenerating the target version or advancing the synchronization progress. When the request transaction identifier is missing, the server generates a new transaction record but does not treat subsequent duplicate messages as the same transaction, thus avoiding the erroneous merging of two independent requests when idempotency is lacking.
[0067] Specifically, for S5, the main controller receives the display frame descriptor or no display frame result output by S3 or S4. If a display frame descriptor exists, it first verifies the frame data length, image identifier, and buffer address validity, then writes the display frame and refresh control to the display controller interface. The display controller drives the electronic paper display screen according to the scanning sequence and returns to the refresh state via a busy signal or interrupt. If no display frame exists or the descriptor verification fails, the high-voltage refresh waveform is not started, the current frame pointer in the display state record is not changed, and the display processing result that maintains the current image is directly output. When the display controller interface times out or returns an exception code, the main controller stops the current refresh control, records the refresh failure and the corresponding frame identifier, and hands the failure status over to S6 to form a backoff candidate moment.
[0068] In some embodiments, the display frame is used to refresh the electronic paper display screen, and the process of refreshing the electronic paper display screen includes: The refresh is confirmed to be complete based on at least one of the following: the display controller's busy signal ends, the refresh completion is interrupted, or the scheduled refresh duration expires and no refresh abnormality is detected. Once the refresh is confirmed to be complete, the display status information, including the displayed frame identifier and the current frame pointer, will be saved to non-volatile memory. If the refresh is not confirmed to be complete, the original display status information will be retained.
[0069] Specifically, at the start of refresh, the main controller saves the display state before refresh and starts a millisecond timer. When using the busy signal method, it first waits for the busy signal to enter a valid level, then waits for it to return to an idle level. When using the interrupt method, it verifies that the interrupt source is from the display controller and that the refresh transaction identifier is consistent. When using the duration method, completion is confirmed only when the predetermined refresh duration has expired and the error register, undervoltage status, and interface timeout flag are all empty. The refresh completion bit is set when any configured confirmation condition is met, but if a refresh anomaly is detected, the anomaly result takes priority, and the completion bit is cleared. Only after the refresh completion bit is true does the main controller write the displayed frame identifier and the current frame pointer to the display status record and perform a non-volatile write. The current frame pointer specifically includes the content version identifier and the carousel position within that version. In the next cycle, the main controller first uses the content version identifier to find the active version, and then uses the carousel position to index its subsequent records. The display status record is the only authoritative persistent location for the current frame pointer; the formal synchronization file does not save the current frame pointer, and S1 only reads this pointer from the display status record. When the completion bit is false, the original display state information is retained; even if S4 has submitted a new version of the activity content, the original display state still points to the original image that is actually held on the electronic paper display screen, and is mapped to the new activity version by S1 according to the version inconsistency branch, so that frames that are not actually displayed will not be registered as the current image.
[0070] For S6, specifically, the main controller reads the task type, current completion time, schedule, synchronization or refresh results, and number of failures to form one or more candidate times expressed in absolute time. The main controller eliminates candidates that are earlier than or equal to the current real-time clock value, sorts them by time from earliest to latest, selects the first time as the next wake-up time, and writes it to the real-time clock comparison register; if there are no unfulfilled candidates, only the wake-up capability of the button, power status detection, and explicit synchronization trigger interface is retained. Subsequently, the main controller verifies that all receive, write, and transmit transactions still active in this cycle have reached a definite final state of success, failure, or abort, and sequentially stops RF content synchronization, turns off the display high voltage and scan clock, saves the sleep context, and enters sleep mode; the real-time clock continues to count in the normally open power supply domain.
[0071] In some implementations, the process of configuring the next wake-up source includes: When the display task is a periodic task, the candidate time is determined based on the current completion time and the carousel interval. When the display task is an absolute time task, the next planned execution time is determined as the candidate time. When synchronization or refresh fails, the candidate time is determined based on the backoff time corresponding to the number of failures. The next wake-up time is determined from the candidate times that have not yet expired, and the next wake-up time is the earliest among them, and the next wake-up time is written into the real-time clock.
[0072] Specifically, candidate times for periodic tasks are obtained by extending the current completion time by one carousel interval. The carousel interval is stored in seconds or minutes and uses the same unit within the same task configuration version. For absolute time tasks, the first planned execution time later than the current time is directly read from the schedule table. When synchronization or refresh fails, the backoff table is searched based on the number of failures. If the number of failures exceeds the maximum index in the table, the maximum backoff duration is used, and the current failure time is extended by that duration to obtain retry candidate times. The main controller deletes expired candidates and sorts the remaining candidates in ascending order of absolute time. When multiple candidates are the same, they are merged into one wake-up and all associated task identifiers are retained. The earliest item is written to the real-time clock. In this embodiment, the first cycle is completed after 03:00, and the carousel interval is three hours, so the candidate time for the cycle is 06:00. If synchronization fails in the second cycle, the backoff candidate time is also included in the selection of the earliest time.
[0073] Furthermore, the low-power state maintains the current screen and the synchronous silent state, and after the number of unreceived fragments and unacknowledged writes of the download object are both zero and the communication transmission queue is empty, the content synchronization data communication of the radio frequency communication unit is stopped, the display controller exits the high-voltage drive and scanning clock, and the main controller enters sleep mode, with the real-time clock maintaining the timing.
[0074] Specifically, the number of unreceived fragments is taken from the count of empty bits in the receive bitmap of the download object that is still in the active receive state in the current cycle. The number of unacknowledged writes is taken from the count of active write requests that have been submitted to the non-volatile storage interface in the current cycle but have not yet returned success or failure results. The emptiness of the communication send queue is jointly confirmed by the length of the send queue driven by the RF and the send completion status. Candidate recovery records that have been persisted and marked as aborted or closed are not part of the active synchronization transactions in the current cycle and are not included in the above active transaction count; the receive bitmap and activity count will be re-established based on the record during the next recovery synchronization. When all three conditions are met, the main controller first sends a session end message and waits for the transmission to complete, then stops the content synchronization data communication of the RF communication unit; subsequently, it sends a low-power switching control to the display controller to make it exit the high-voltage drive and scan clock, and finally saves the necessary context and enters sleep mode.
[0075] When any active transaction count is not zero, the main controller does not directly disconnect the corresponding component. Instead, it first stops creating new receive and write requests and waits for in-transit requests to return definite results. After communication or storage timeout, the receive processor stops accepting new fragments. For write requests that still have no return results, the main controller calls the cancellation operation of the storage interface. If cancellation fails, the storage interface is reset, and the corresponding write result is marked as failed after cancellation or reset. The candidate recovery record uses the persistent bitmap updated by S4 according to the confirmed fragments. Only fragments that have achieved successful write results are marked as confirmed, and the object identifier, failure stage, intermediate state of content verification, and number of retries are saved. Fragments with uncertain return results remain unconfirmed. After the recovery record is saved, the main controller marks the receive and write transactions of this cycle as aborted and closes them, removing them from the active transaction table. Then, the communication session is terminated, and the end messages that can be sent are waited for to be sent completely. Messages that cannot be sent are marked as canceled and removed from the sending queue. If the storage interface reset has not been completed or the recovery record has not reached a definite write result, the corresponding component is kept powered and does not enter sleep mode.
[0076] After completing the above shutdown process, the main controller recalculates the number of unreceived fragments, unacknowledged writes, and communication transmission queue status in the active transaction table. When these three are zero, zero, and empty, the RF communication unit stops, the display high voltage and scan clock exit, and the system enters sleep mode in the aforementioned order. In the next backoff wake-up cycle, S4 reads the candidate recovery record, forms a missing fragment request using the empty bits in the acknowledged fragment bitmap, and re-establishes the active count for this recovery reception and newly submitted write requests. Thus, incomplete candidate data can be retained across sleep modes, and failed transactions that have already been closed will not permanently occupy the low-power entry condition for this cycle. After entering sleep mode, the electronic paper display maintains the current screen using bistable characteristics, the real-time clock keeps counting, and outputs a new wake-up signal at the next wake-up time.
[0077] like Figure 2 As shown, one loop begins with "maintaining the current screen and a low-power state of synchronization silence," then proceeds through the "acquiring wake-up event, determining the display task, content object, and validity result" node to enter path selection; the "generating path result based on input semantics, network strategy, and validity result" node... Figure 5 The mapping table shown writes a unique result, which is then compared at the "Path result is a local display path?" node. The local branch executes "Maintain synchronization silence state; obtain display frame when content object is valid, do not form display frame when invalid"; the network branch executes "Exit synchronization silence state, receive download object and candidate list, write to candidate storage area", and then checks "All necessary objects have been received and written?". If the check is yes, execute "Obtain and save new synchronization state; obtain display frame when there is object to be displayed"; if the check is no, execute "Retain original synchronization state". After all branches merge, execute "Refresh e-paper display screen when display frame exists, otherwise maintain current screen", then "Configure next wake-up source", and finally "Enter low-power state to maintain screen and synchronization silence state". In the figure, solid arrows indicate execution direction, yes and no marks indicate conditional branches, and merging lines indicate that different paths share S5 and S6 without changing their respective established synchronization states.
[0078] This embodiment also provides a low-power control system for electronic paper photo frames based on wake-up reasons: The system is used to implement the aforementioned method, and the system includes: The wake-up processing module is used to acquire wake-up events and determine display tasks and content objects in the synchronous silent state. The synchronous silent state is the state in which the radio frequency communication unit is not enabled or is not communicating with the server for content synchronization data. The path generation module is used to determine the validity result of the content object and generate a path result based on the input semantics of the wake-up event, the networking strategy of the display task, and the validity result. The local display module is used to maintain the synchronous silent state when the path result is a local display path, and to obtain the display frame according to the content object when the validity result is valid. The network synchronization module is used to exit the synchronization silent state when the path result is a network synchronization path, receive a download object including necessary objects from the server, store the download object in a candidate state, obtain the display frame according to the download object when there are content objects that need to be updated, and obtain and save the new synchronization state only after all necessary objects have been received and written; otherwise, the original synchronization state is retained. The display control module is used to refresh the electronic paper display screen with the display frame when the display frame exists, otherwise maintain the current screen; The low-power control module is used to configure the next wake-up source and enter a low-power state that maintains the screen and the synchronous silent state.
[0079] Specifically, such as Figure 8 As shown, the wake-up processing module executes S1 and passes the display task and content object to the path generation module; the path generation module executes S2 and passes the local display path in the path result to the local display module and the network synchronization path to the network synchronization module, respectively. The local display module executes S3, and the network synchronization module executes S4, both of which pass the display frame or no display frame result to the display control module; the display control module executes S5 and passes the display processing result to the low-power control module; the low-power control module executes S6, configures the next wake-up source, and forms the next cycle input to the wake-up processing module when triggered. Modules can pass task identifiers, object identifiers, path enumerations, status bits, and display frame descriptors through the task context structure in the main controller's memory, or the same fields can be passed by different processors via message queues; the preceding module encapsulates the above fields according to the task identifier, and the downstream module indicated by the arrow in the figure reads and verifies the field version according to the same task identifier. If the versions are inconsistent, a module interface error is returned and processing is stopped.
[0080] The system's hardware carrier can be adopted Figure 3 The connection structure is shown. The wake-up processing module and the low-power control module run on the main controller and access the real-time clock and other wake-up interfaces of the normally open power supply domain; the network synchronization module exchanges content synchronization control and data through the bidirectional interface between the main controller and the RF communication unit; the local display module, the network synchronization module, and the display control module read and write objects and status through the interface between the main controller and the non-volatile memory; the display control module drives the electronic paper display screen through the display controller. The candidate storage area and the active content area preferably use a directory or dual slot isolated by version identifier in the same non-volatile memory. The formal synchronization file is located in the status area and saves the synchronization progress and the active content version pointer. The display status record independently saves the displayed frame identifier and the current frame pointer. When a module malfunctions, the error code, object identifier, confirmed fragment bitmap, and stage status are written to the candidate recovery record. The still executing receive, write, and send requests are processed to a final state, and then the low-power control module closes the active transaction and ends the cycle, avoiding the abnormal branch from maintaining RF or display high voltage operation for a long time.
[0081] From an overall technical perspective, traditional fixed procedures directly equate "device has been woken up" with "RF content synchronization needs to be initiated," thus failing to distinguish between the wake-up purpose, task network restrictions, and local content status. This implementation first converts the reason code, button attributes, or other trigger fields into input semantics. Then, this input semantics, along with the network policy and the validity result obtained from object verification, is fed into a unique mapping matrix to form a recognizable local display path or network synchronization path. Therefore, during the period when the content is valid and local execution is permitted, the RF communication unit remains in a synchronized silent state; only when the mapping result is a network synchronization path is content synchronization data communication initiated. The RF activation condition is narrowed from a single wake-up fact to a condition jointly satisfied by the task, semantics, and content status.
[0082] From an overall technical perspective, data in the network branch first enters the candidate state from the server, rather than directly rewriting the already effective content and the formal synchronization file. Confirmed fragment bitmaps, receive lengths, content checksums, necessary object markers, and write confirmation bits are used to leave incomplete objects before the commit boundary. After all necessary objects are completed, the metadata to be committed, including the new synchronization progress indicator and the active content version pointer, crosses the commit boundary once more through a synchronized write operation and an atomic rename. This state transition ensures that interruptions, power outages, or resets can only occur in either the original synchronization state and the original active content version, or the new synchronization state and the new active content version. This avoids the synchronization progress advancing while necessary objects are still missing, and also prevents candidate objects from being downloaded but never becoming active content for subsequent S3 reads. The display state is independent of the formal synchronization file and is only written after a refresh is confirmed; failed candidates are saved as recovery records, and failed transactions after being closed are removed from the active transaction count. Finally, after the current active receive, write, and send transactions all reach a definite final state, the RF, high-voltage drive, and scan clock are shut down to keep the synchronization progress, active content, actual screen, and hardware power consumption consistent.
[0083] like Figure 9As shown, the vertical wake-up cycle stages are sequentially marked as follows: acquiring the wake-up event, generating the path result, obtaining the display frame or receiving the download object, refreshing the e-paper display, and entering the low-power state. The local display path remains in a synchronous silent state from acquiring the wake-up event to obtaining the display frame and refreshing the e-paper display; it directly enters the low-power state after display processing is complete. The network synchronization path remains in a synchronous silent state before generating the path result, only entering the content synchronization data communication state during receiving the download object and necessary writing; after downloading, writing, and display processing are completed, it returns to the synchronous silent state, then configures the next wake-up source and enters the low-power state. This state band reflects the communication start / stop interval and does not represent a specific current value or a fixed power-saving ratio. Its supported technical effect is to avoid unnecessary RF startup and content transmission for local effective tasks and to limit network communication to the stages required for candidate object reception and necessary writing.
[0084] Example 2 This embodiment illustrates single-button local frame switching and long-press synchronization. The device retains the modules, object validity checks, path mapping, candidate submission, and low-power exit relationships from Embodiment 1, only changing the wake-up event trigger field and display task. After a single button is pressed, the normally open timing circuit accumulates the press duration in milliseconds, and the main controller reads the 2000-millisecond network threshold from the configuration version. When the button is released when the accumulated value is less than the threshold, the event record is written to the local display semantics, and the task table outputs the local frame switching task and the network strategy when local conditions are insufficient. If the next local frame exists and the verification is valid, the path generation module outputs the local display path, and the device does not start content synchronization data communication and refreshes the frame. When the accumulated value is equal to or greater than the threshold, the event record is written to the network synchronization semantics, the path generation module outputs the network synchronization path, and only then is the radio frequency communication unit enabled and a synchronization request sent.
[0085] During long-press synchronization, the server compares the binding version identifier in the request with the current binding record byte by byte. If they are inconsistent, the device resets the synchronization progress identifier to the initial position and performs a full synchronization, discarding the old binding version control information. If they are consistent and the request transaction identifier already has a transaction record, the server returns the same target version and processing status as the first request, without repeatedly advancing the synchronization progress. When the button is released during the debouncing phase, timing data is missing, or the RF connection fails, the device records the invalid button event or synchronization failure status respectively, retaining the original synchronization status and the original active content version pointer. For synchronization transactions that have already been established, candidate recovery records are saved according to the rules described in S6, the active transaction is closed, and the communication sending queue is emptied. Then, the low-power control module configures the next task time or backoff time before returning to the low-power state.
[0086] Example 3 This embodiment illustrates local dynamic page generation. Upon the expiration of the real-time clock, the main controller reads the calendar update task, current date data reference, font file reference, page layout template reference, and icon resource reference from the task schedule table. Validity checks sequentially verify that the current date data has not expired, all rendering resources exist, the actual data length matches the expected data length, content validation passes, and resource versions match. After all validity checks are successful, the path generation module compares the input semantic field, network strategy field, and validity result field item by item; if these three equal the local display semantics, network access when local conditions are insufficient, and validity, respectively, the path enumeration is written as the local display path. The local rendering unit then traverses the control hierarchy in the template from low to high, writing the date data, fonts, and icons into the frame buffer according to the layout position, display attributes, and field names, forming a display frame matching the device profile, which is then refreshed by the display control module on the electronic paper display screen.
[0087] If a glyph file is missing or fails verification, the main controller writes the object identifier and failure type of the resource into the failed object set, resulting in an invalid validity result. Therefore, the same network policy is mapped to a network synchronization path. The server locates the required glyph resource based on the failed object identifier and sends only the missing or failed resource and its corresponding candidate list to the device. The device performs length, checksum, and write confirmation checks in the candidate storage area. Upon successful checks, it uses the candidate version identifier as the new active content version pointer and writes it along with the new synchronization progress identifier into the metadata to be submitted. The atomic replacement of the formal synchronization file makes both effective simultaneously. The main controller then reads the glyph resource from the new active content version and re-executes page rendering. If the server cannot locate the resource, the device maintains the original synchronization state and the original active content version pointer, rolls back or resets the synchronization progress at the allowed position, and maintains the current screen. This embodiment demonstrates that when dynamic page content changes, valid local rendering resources can be reused, eliminating the need to download the complete page image each time.
[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A low-power control method for electronic paper photo frames based on wake-up reasons, characterized in that, include: S1. Obtain the wake-up event in the synchronous silent state, and determine the display task and content object. The synchronous silent state is the state in which the radio frequency communication unit is not enabled or is not communicating with the server for content synchronization data. S2. Determine the validity result of the content object, and generate a path result based on the input semantics of the wake-up event, the networking strategy of the display task, and the validity result; S3. When the path result is a local display path, maintain the synchronous silent state. When the validity result is valid, obtain the display frame according to the content object. S4. When the path result is a network synchronization path, exit the synchronization silent state, receive the download object including the necessary objects from the server, store the download object in the candidate state, and obtain the display frame according to the download object when there are content objects that need to be updated and displayed. Only after all necessary objects have been received and written can the new synchronization state be obtained and saved; otherwise, the original synchronization state is retained. S5. When the display frame exists, refresh the electronic paper display screen with the display frame; otherwise, maintain the current screen. S6. Configure the next wake-up source and enter a low-power state that maintains the screen and the aforementioned synchronous silent state.
2. The method according to claim 1, characterized in that, The wake-up event includes at least one of the following: real-time clock expiration event, key input event, explicit synchronization trigger event, or power state change event; The input semantics of the wake-up event are determined as either local display semantics or network synchronization semantics based on the cause code, trigger source, key type, press duration, or number of presses of the wake-up event.
3. The method according to claim 2, characterized in that, The key input event is an event generated by a single key. The network threshold is a preset duration. When the press-and-hold duration is less than the network threshold, it is determined to be the local display semantics. When the network threshold is reached, it is determined to be the network synchronization semantics. When the network threshold is not reached, the synchronization silent state is maintained.
4. The method according to claim 1, characterized in that, The network connection policies include local execution only, network connection when local conditions are insufficient, and network connection required. The network strategy is as follows: when a network connection is required, the path result is determined as a network synchronization path; when the network strategy is to execute only locally, the path result is determined as a local display path; when the network connection is not possible due to insufficient local conditions, and the input semantics indicate local display and the validity result is valid, the path result is determined as a local display path; otherwise, the path result is determined as a network synchronization path.
5. The method according to claim 1, characterized in that, The validity result is determined based on at least one of the following: whether the content object exists, whether the actual data length is consistent with the expected data length, whether the content verification value is consistent, whether the validity period has expired, or whether the object version matches.
6. The method according to claim 5, characterized in that, The content object includes current dynamic data and local rendering resources. The validity result is determined by verifying the validity period of the current dynamic data and the integrity and version of the local rendering resources. The display frame is obtained by the local rendering unit processing the current dynamic data according to the layout position and display attributes in the local rendering resources; The download objects include the current dynamic data or the local rendering resources that have been verified as missing or invalid.
7. The method according to claim 1, characterized in that, The display frame is a device native frame object, and the device display image is a set of display parameters for an electronic paper photo frame. The device native frame object is pre-generated according to the device display image and is consistent with the device display format, and passes the matching verification with the device display image.
8. The method according to claim 7, characterized in that, The device displays an image including the scanning order, and at least one of the following: display resolution, display orientation, color plane, pixel arrangement, bit depth, line step size, and frame format version; The device native frame object has at least one of the following: image identifier, data length, content verification value, and frame format version. After verification, it is written to the display controller in the scanning order without performing general image decoding, color quantization, or dithering.
9. The method according to claim 1, characterized in that, The download object is determined by the server according to the synchronization request. The synchronization request is a request sent by the electronic paper photo frame to the server. The synchronization request includes a binding version identifier and at least one of a synchronization progress identifier and an object set representation. The binding version identifier corresponds to the binding relationship between the electronic paper photo frame and the content set. The synchronization progress identifier corresponds to the position of the content version that has been synchronized. The object set representation corresponds to the content object that has been stored in the electronic paper photo frame.
10. The method according to claim 9, characterized in that, The server generates a target list based on the binding relationship corresponding to the binding version identifier. The differential object identifier is determined by the server based on the comparison result between the content change record after the synchronization progress identifier or the object set representation and the target list. The electronic paper photo frame receives the downloaded object sent according to the data object location information corresponding to the differential object identifier.
11. The method according to claim 1, characterized in that, The process of storing the downloaded object in a candidate state includes: The candidate storage area is a storage area that does not overwrite the content objects that have already taken effect and the original synchronization state in claim 1. The downloaded object and the candidate list received from the server are written into the candidate storage area. The candidate list includes object identifier, expected data length, content verification value, necessary object marker and object marker to be displayed. The download object is verified based on the object identifier, expected data length, and content verification value in the candidate list, and the completion status of all necessary objects is verified based on the list version and necessary object markers. Before all necessary objects and the candidate list have passed verification, the content in the candidate storage area is not used to replace the already effective content objects. After verification, the display frame is obtained based on the download object with the object to be displayed tag.
12. The method according to claim 1, characterized in that, The process of obtaining and saving the new synchronization state only after all necessary objects have completed receiving and writing includes: The formal synchronization file is a file that records the current effective synchronization progress. Based on the synchronization progress corresponding to the completion of receiving and writing of all necessary objects, metadata to be committed and a temporary file are formed. The metadata to be committed is written into the temporary file. The formal synchronization file and the temporary file are both located in the same file system. Perform a synchronous write operation on the temporary file to write it to non-volatile memory, and perform an atomic rename on the temporary file to replace the formal synchronous file; If a power outage or reset occurs before the replacement is completed, the original synchronization state in claim 1 is read. After the replacement is completed, the formal synchronization file is read to obtain and save the new synchronization state.
13. The method according to claim 9, characterized in that, The download object is determined by the server according to the synchronization request, including: When the downloaded object or the content object stored locally is missing or fails to be verified, the synchronization request includes the identifier of the failed object. When the server determines the object location information based on the failed object identifier, it maintains the synchronization progress identifier and re-receives the located content object. If the server fails to determine the object location information based on the failed object identifier, it rolls back or resets the synchronization progress identifier and re-determines the download object.
14. The method according to claim 9, characterized in that, The updating and processing of the binding relationship between the binding version identifier and the electronic paper photo frame and the content set includes: Update the binding version identifier after the electronic paper photo frame is rebound to the content set; The binding version identifier sent by the electronic paper photo frame is compared with the binding version identifier on the server to obtain the binding version comparison result. If the binding version comparison result is inconsistent, the synchronization progress identifier is reset and a full synchronization is performed, and the control information carrying the binding version identifier before the update is not executed. If the binding version comparison result is consistent, the synchronization requests with the same request transaction identifier are idempotent.
15. The method according to claim 1, characterized in that, The display frame is used to refresh the electronic paper display screen, and the process of refreshing the electronic paper display screen includes: The refresh is confirmed to be complete based on at least one of the following: the display controller's busy signal ends, the refresh completion is interrupted, or the scheduled refresh duration expires and no refresh abnormality is detected. Once the refresh is confirmed to be complete, the display status information, including the displayed frame identifier and the current frame pointer, will be saved to non-volatile memory. If the refresh is not confirmed to be complete, the original display status information will be retained.
16. The method according to claim 1, characterized in that, The process of configuring the next wake-up source includes: When the display task is a periodic task, the candidate time is determined based on the current completion time and the carousel interval. When the display task is an absolute time task, the next planned execution time is determined as the candidate time. When synchronization or refresh fails, the candidate time is determined based on the backoff time corresponding to the number of failures. The next wake-up time is determined from the candidate times that have not yet expired, and the next wake-up time is the earliest among them, and the next wake-up time is written into the real-time clock.
17. The method according to claim 16, characterized in that, The low-power state maintains the current screen and the synchronous silent state. After the number of unreceived fragments and unacknowledged writes of the downloaded object are both zero and the communication transmission queue is empty, the content synchronization data communication of the radio frequency communication unit is stopped, the display controller exits the high-voltage drive and scanning clock, and the main controller enters sleep mode, with the real-time clock maintaining the timing.
18. A low-power control system for an electronic paper photo frame based on wake-up reasons, characterized in that, The system is used to implement the method of any one of claims 1 to 17, and the system comprises: The wake-up processing module is used to acquire wake-up events and determine display tasks and content objects in the synchronous silent state. The synchronous silent state is the state in which the radio frequency communication unit is not enabled or is not communicating with the server for content synchronization data. The path generation module is used to determine the validity result of the content object and generate a path result based on the input semantics of the wake-up event, the networking strategy of the display task, and the validity result. The local display module is used to maintain the synchronous silent state when the path result is a local display path, and to obtain the display frame according to the content object when the validity result is valid. The network synchronization module is used to exit the synchronization silent state when the path result is a network synchronization path, receive a download object including necessary objects from the server, store the download object in a candidate state, obtain the display frame according to the download object when there are content objects that need to be updated, and obtain and save the new synchronization state only after all necessary objects have been received and written; otherwise, the original synchronization state is retained. The display control module is used to refresh the electronic paper display screen with the display frame when the display frame exists, otherwise maintain the current screen; The low-power control module is used to configure the next wake-up source and enter a low-power state that maintains the screen and the synchronous silent state.
