Interface switching method and device for RTOS system, terminal equipment, and storage medium

By only updating the differential data during interface style switching in the RTOS system, the problems of low interface style switching efficiency and high storage space utilization are solved, and more efficient interface updates are achieved.

CN116302224BActive Publication Date: 2025-01-07QINGDAO GUOCHUANG INTELLIGENT HOME APPLIANCES RES INSTITU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111573376.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2025-01-07
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

When switching interface styles in RTOS systems, multiple image data need to be loaded, resulting in high storage space usage and lag in the interface, which is inefficient.

Method used

By obtaining the original image storage address in the interface update request and the serial number information of the target update picture, matching and updating the target difference data in the differential data packet, only the difference part of the picture is updated, and all data storage is avoided.

Benefits of technology

It reduces the use of storage space, improves the efficiency and accuracy of interface updates, and reduces interface lag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116302224B_ABST
    Figure CN116302224B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and discloses an interface switching method for an RTOS system, which is applied to a terminal device, and includes obtaining an interface update request, the interface update request carries the storage address information of the original image and the target serial number information of the target updated image; obtaining a data packet, the data packet stores the addressing information associated with the original image, the addressing information includes the serial number information associated with the updated image and the differential data information associated with the serial number information; matching the target differential data information associated with the target serial number information from the data packet; and updating the original image to the target updated image according to the target differential data information and the storage address information. The method reduces the occupancy of storage space and improves the efficiency of interface updates. The present application also discloses an interface switching device for an RTOS system, a terminal device, and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, for example, to an interface switching method and device, terminal equipment, and storage medium for an RTOS system. Background Art

[0002] Currently, the switching of interface styles is applied to APP applications in terminal devices (e.g., mobile phones, PADs, etc.). Usually, the terminal devices are configured with Android systems or IOS systems, and for RTOS (Real-time Operating System), there is also an update demand for interface style switching.

[0003] Since the system resources of the RTOS operating system are small, the switching strategy adopted when switching the interface style is to pre-store multiple interface style pictures. When it is determined to switch the interface style, the picture data of the aforementioned multiple interface style pictures are read from the picture storage area (for example, EMMC, NandFlash or SD memory card), and the picture data is loaded into the picture running area.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:

[0005] The aforementioned interface style switching method requires loading all the image data read from the image storage area, which occupies the storage space of the RTOS system and is prone to interface freeze, resulting in low efficiency in interface style switching. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiments of the present disclosure provide an interface switching method, apparatus, terminal device and storage medium for an RTOS system to improve the efficiency of interface style switching.

[0008] In some embodiments, the method includes: obtaining an interface update request, the interface update request carrying storage address information of the original image and target serial number information of the target updated image; obtaining a data packet, the data packet storing addressing information associated with the original image, the addressing information including serial number information associated with the updated image and differential data information associated with the serial number information; matching target differential data information associated with the target serial number information from the data packet; and updating the original image to the target updated image according to the target differential data information and the storage address information.

[0009] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned interface switching method for an RTOS system when running the program instructions.

[0010] In some embodiments, the terminal device includes the interface switching device for the RTOS system as described above.

[0011] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, they execute the interface switching method for the RTOS system as described above.

[0012] The interface switching method, apparatus, terminal device, and storage medium for an RTOS system provided by the embodiments of the present disclosure can achieve the following technical effects:

[0013] The terminal device obtains the storage address information of the original image and the target sequence number signal of the target updated image according to the interface update request. The terminal device matches the target differential data associated with the target sequence number information from the data packet and updates the image according to the target differential data and the storage address information. The data stored in the data packet obtained by the terminal device is the differential data associated with the sequence number information, and not all the image data associated with the updated image is stored, which reduces the storage space occupied and improves the efficiency of interface update.

[0014] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0016] Figure 1 is a schematic diagram of an interface switching method for an RTOS system provided by an embodiment of the present disclosure;

[0017] Figure 2 is a schematic diagram of another interface switching method for an RTOS system provided by an embodiment of the present disclosure;

[0018] Figure 3 is a schematic diagram of another interface switching method for an RTOS system provided by an embodiment of the present disclosure;

[0019] Figure 4 is a schematic diagram of another interface switching method for an RTOS system provided by an embodiment of the present disclosure;

[0020] Figure 5 is a schematic diagram of another interface switching method for an RTOS system provided by an embodiment of the present disclosure;

[0021] Figure 6 is a schematic diagram of another interface switching method for an RTOS system provided by an embodiment of the present disclosure;

[0022] Figure 7 is a schematic diagram of another interface switching method for an RTOS system provided by an embodiment of the present disclosure;

[0023] Figure 8 is a schematic diagram of an interface switching device for an RTOS system provided by an embodiment of the present disclosure;

[0024] Fig. 9 It is a schematic diagram of another interface switching device for an RTOS system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0026] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0027] Unless otherwise stated, the term "plurality" means two or more.

[0028] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0029] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0030] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0031] In the embodiments of the present disclosure, smart home appliances refer to home appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can be connected to electronic devices to enable users to remotely control and manage the smart home appliances.

[0032] In the disclosed embodiments, the terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, WiFi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example: smart watches, smart bracelets, pedometers, etc.

[0033] Combination Figure 1 As shown, the embodiment of the present disclosure provides an interface switching method for an RTOS system, which is applied to a terminal device. The method includes:

[0034] S01, the terminal device obtains an interface update request, which carries the storage address information of the original image and the target sequence number information of the target update image.

[0035] S02, the terminal device obtains a data packet, the data packet stores addressing information associated with the original picture, the addressing information includes sequence number information associated with the updated picture and differential data information associated with the sequence number information.

[0036] In this step, the differential data represents data corresponding to the portion where the updated image differs from the original image. It can be understood that the differential data may be one or more. The number of differential data is determined by the difference between the updated image and the original image.

[0037] S03, the terminal device matches the target differential data information associated with the target sequence number information from the data packet.

[0038] S04, the terminal device updates the original image to the target updated image according to the target differential data information and the storage address information.

[0039] Using the interface switching method for RTOS system provided by the embodiment of the present disclosure, the terminal device obtains the storage address information of the original image and the target sequence number signal of the target updated image according to the interface update request. The terminal device matches the target differential data associated with the target sequence number information from the data packet and updates the image according to the target differential data and the storage address information. The data stored in the data packet obtained by the terminal device is the differential data associated with the sequence number information, and not all the image data associated with the updated image is stored, which reduces the storage space occupied and improves the efficiency of interface update.

[0040] Optionally, the differential data information includes an offset address, differential segment data, and the data volume of the differential data associated with the differential data. As an example, the differential segment data is one. Accordingly, the differential data information includes an offset address, the data volume of the differential segment data, and the differential segment data corresponding to the differential data with continuous addresses.

[0041] Combination Figure 2 As shown, according to the target differential data information and the storage address information, the original image is updated to the target update image, including:

[0042] S11, the terminal device determines the target offset address, target differential segment data and target data volume from the target differential data information.

[0043] In this step, the offset address associated with the differential data indicates the address offset of the differential segment data relative to the starting address of the original image. The data volume of the differential data indicates the data length of the differential data. The terminal device can determine the target offset address, target differential segment data and target data volume through the target differential data information.

[0044] S12, the terminal device determines the target update start and end positions according to the storage address information, the target offset address and the target data volume.

[0045] In this step, the update start and end positions include the update start address and the update end address. Since the offset address represents the address offset of the differential segment data relative to the start address of the original image, the terminal device can accurately obtain the target update start address and the target update end address according to the storage address information, target offset address and target data volume of the original image, thereby improving the accuracy of the interface update.

[0046] S13, the terminal device updates the data corresponding to the target update start and end positions into the target differential segment data.

[0047] In this way, the terminal device can update the original image to the target update image after accurately determining the start and end positions of the target update, thereby improving the accuracy and efficiency of the interface update.

[0048] Optional, combined Figure 3 As shown, according to the storage address information, the target offset address and the target data volume, the target update start and end positions are determined, including:

[0049] S21, the terminal device determines the target update starting position according to the storage address information and the target offset address.

[0050] S22, the terminal device determines the target update end position according to the target data volume, so as to update the data corresponding to the target update start position and the target update end position into the target differential segment data.

[0051] In this way, the terminal device determines the target update starting position according to the storage address information and the target offset address, and determines the target update ending position according to the target data volume. Then, the data corresponding to the target update starting position and the target update ending position are updated as target differential segment data. This method accurately determines the position corresponding to the target differential segment data according to the target update starting position and the target update ending position, and finally updates the target differential segment data. This method does not need to replace or update all the data at the storage address information of the original data, thereby improving the efficiency of interface switching.

[0052] Combination Figure 4 As shown, the embodiment of the present disclosure also provides an interface switching method for an RTOS system, which is applied to a terminal device. The differential data information includes an offset address associated with the differential data, differential segment data, the data volume of the differential data, a start address associated with the differential data, and the data volume of the differential data. The method includes:

[0053] S31, the terminal device obtains an interface update request, which carries the storage address information of the original picture and the target sequence number information of the target update picture.

[0054] S32, the terminal device obtains a data packet, the data packet stores addressing information associated with the original picture, the addressing information includes sequence number information associated with the updated picture and differential data information associated with the sequence number information.

[0055] S33, the terminal device matches the target differential data information associated with the target sequence number information from the data packet.

[0056] S34, the terminal device determines the target starting address and target data volume of the target update picture from the target differential data information.

[0057] S35, the terminal device obtains a target reading position associated with the target differential data according to the target starting address and the target data volume, so as to determine a target offset address and target differential segment data from the target reading position.

[0058] In this step, before determining the start and end positions of the target update, the terminal device needs to obtain the target offset address and target differential segment data associated with the target differential segment data. To this end, the differential data information includes the start address associated with the differential data and the data volume of the differential data. The terminal device can determine the target start address and target data volume of the target update image by reading the target differential data information, thereby obtaining the target read position associated with the target differential data, and then determining the target offset address and target differential segment data from the target read position. In the above manner, the target read position corresponding to the target differential data can be accurately determined, further improving the efficiency of interface switching.

[0059] S36, the terminal device determines the target offset address, target differential segment data and target data volume from the target differential data information.

[0060] S37, the terminal device determines the target update start and end positions according to the storage address information, the target offset address and the target data volume.

[0061] S38, the terminal device updates the data corresponding to the target update start and end positions into the target differential segment data.

[0062] By adopting the interface switching method for RTOS system provided by the embodiment of the present disclosure, the terminal device can accurately obtain the target reading position corresponding to the target differential data, thereby obtaining the target offset address, target differential segment data and target data amount according to the target reading position, and then perform an update operation on the target differential segment data, thereby further improving the efficiency of interface switching.

[0063] Optionally, in the case where the differential segment data includes multiple, the differential data information also includes the number of segments associated with the differential data. The terminal device updates the original image to the target updated image according to the target differential data information and the storage address information, and also includes:

[0064] The terminal device determines the target offset address, target data volume and differential segment data of each target differential segment data from the target differential data information, so as to determine the target update start and end positions corresponding to each differential segment data and perform data update.

[0065] In this way, when there are multiple differential segment data due to the large difference between the original image and the updated image, the terminal device determines the target offset address of each target differential segment data, the target data volume of each target differential segment data, and each differential segment data, thereby determining the target update start and end positions corresponding to each differential segment data and performing data update. On the basis of improving the efficiency of interface switching, the reliability of interface switching is improved.

[0066] As an example, there are two differential segment data, namely 1# differential segment data and 2# differential segment data. The differential segment data information also includes the number of segments of the differential segment data. Specifically, the differential data information includes the number of segments of the differential segment data, the offset address associated with each differential data, each differential segment data, and the data volume of each differential data. Correspondingly, the differential data information includes the offset address corresponding to the 1# differential segment data with continuous addresses, the data volume of the 1# differential segment data, the 1# differential segment data, the offset address corresponding to the 2# differential segment data, the data volume of the 2# differential segment data, and the 2# differential segment data. It should be noted that in the case where there are multiple differential segment data, the offset address, differential segment data, and the data volume of the differential data associated with any differential segment data are stored continuously in the storage space.

[0067] Combination Figure 5 As shown, the embodiment of the present disclosure also provides an interface switching method for an RTOS system, which is applied to a terminal device. The method includes:

[0068] S41, the terminal device obtains an interface update request, which carries the storage address information of the original image and the target sequence number information of the target update image.

[0069] S42, the terminal device obtains a data packet, the data packet stores addressing information associated with the original picture and a preset storage address of the original picture, the addressing information includes sequence number information associated with the updated picture and differential data information associated with the sequence number information.

[0070] S43, the terminal device determines whether the storage address information of the original image matches the preset storage address, if so, executes S44, if not, returns to execute S41.

[0071] In this step, the storage address information of the original image matches the preset storage address, including that the storage address information of the original image is the same as the preset storage address.

[0072] S44, the terminal device matches the target differential data information associated with the target sequence number information from the data packet.

[0073] S45, the terminal device updates the original picture to the target updated picture according to the target differential data information and the storage address information.

[0074] By using the interface switching method for RTOS system provided by the embodiment of the present disclosure, the terminal device matches the storage address information of the original picture in the interface update request with the preset storage address stored in the data packet. When the match is successful, it indicates that the interface of the original picture at the storage address information needs to be updated, and then the subsequent target differential data acquisition step and picture update step are performed. This method can avoid performing erroneous update operations on the original picture and improve the reliability of interface updates.

[0075] Combination Figure 6 As shown, the embodiment of the present disclosure also provides an interface switching method for an RTOS system, which is applied to a terminal device. The method includes:

[0076] S51, the terminal device obtains an interface update request, which carries the storage address information of the original picture and the target sequence number information of the target update picture.

[0077] S52, the terminal device obtains a data packet, which stores the addressing information associated with the original picture, the preset storage address of the original picture, the verification information, and the number of original pictures. The addressing information includes the sequence number information associated with the updated picture and the differential data information associated with the sequence number information. The verification information represents the sum of the preset storage address, the current number of original pictures, and the data volume of the addressing information.

[0078] S53, the terminal device obtains storage address information, addressing information, and the target and value of the current number of original pictures.

[0079] S54, the terminal device determines whether the target sum value matches the sum value, and if so, executes S55.

[0080] S55, the terminal device determines whether the storage address information of the original image matches the preset storage address, if so, executes S56, if not, returns to execute S51.

[0081] S56, the terminal device matches the target differential data information associated with the target sequence number information from the data packet.

[0082] S57, the terminal device updates the original picture to the target updated picture according to the target differential data information and the storage address information.

[0083] Using the interface switching method for an RTOS system provided by an embodiment of the present disclosure, the data packet stores verification information, which represents the sum of the preset address, the current number, and the data volume of the addressing information. The terminal device sums the storage address information, the addressing information, and the current number of original images to obtain a target sum value, compares the target sum value with the sum value, and can verify the current number of original images to find out whether the number of original images in the data packet is correct. After determining that the number of original images is correct, the terminal device verifies the storage address information of the original images, thereby avoiding performing erroneous update operations on the original images and improving the reliability of interface updates.

[0084] Optional, combined Figure 7 As shown, before updating the original image to the target updated image according to the target differential data information and the storage address information, the method further includes:

[0085] S61, the terminal device obtains the starting address of the picture running area, the data of the original picture and the current data volume.

[0086] S62, the terminal device updates the data corresponding to the area in the picture running area with the starting address as the starting position and the address offset matching the current data amount as the data of the original picture.

[0087] In this step, the data packet is stored in the picture storage area.

[0088] In this way, the update operation of the picture is only completed in the picture running area, and will not affect the storage of the data of the original picture. And, after the terminal device reads the relevant data stored in the data packet stored in the picture storage area, it updates the data in the corresponding area of ​​the picture running area associated with the terminal device, so as to load the data according to the target differential data and the storage address information, thereby quickly performing the update operation of the original picture.

[0089] It can be understood that the above-mentioned terminal device obtains the starting address of the picture running area, the data of the original picture and the current data amount, and updates the data corresponding to the area in the picture running area with the starting address as the starting position and the address offset matching the current data amount to the data of the original picture. The step can be performed before obtaining the data packet, or it can be executed simultaneously with obtaining the data packet, and the implementation of the present disclosure does not make specific limitations on this.

[0090] In actual application, as shown in Table 1 and Table 2, the number of original pictures is 1. The storage address of the original picture is 0x00008000, and the data size of the original picture is 16 bytes. Specifically, the data of the original picture is 0x00 0x01 0x020x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0xE 0x0F. The starting address of the picture running area is 0x10000000.

[0091] Table 1 Data Packet

[0092]

[0093] Table 2 Differential data

[0094]

[0095] In Table 2, the starting address of the original picture indicates the starting address of the original picture loaded into the picture running area.

[0096] First, the mobile phone obtains an interface update request, which carries the storage information of the original picture and the target sequence number information of the target update picture. The target sequence number information is 1#. Specifically, the mobile phone obtains the starting address 0x10000000 associated with the original picture, the sequence number information 1# of the update picture, and the 1# differential data information from the data packet stored in the picture storage area (Table 1).

[0097] Secondly, the mobile phone reads the target offset address 0x00000010, the target differential segment data and the target data volume 0x00000005 corresponding to the 1# differential data information from Table 2.

[0098] Again, the mobile phone loads the original picture. Specifically, the data of 16 bytes starting with 0x10000000 (the data amount of the original picture) in the picture running area is updated to the data of the original picture 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0xE 0x0F.

[0099] Subsequently, the mobile phone determines the target update start position as the position with the target offset address relative to the start address and the target update end position as the position with the target data amount offset from the target update start position based on the start address 0x10000000, the target offset address 0x00000010 and the target data amount 0x00000005.

[0100] Finally, the mobile phone replaces the data at the starting address 0x10000000 of the picture running area, the target update starting position and the target update ending position with the differential segment data 0x01 0x02 0x03 0x04 0x05. After the above update, the data in the picture running area is updated to 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x01 0x020x03 0x04 0x05 0xE 0x0F. Thus, the original picture is updated to the target update picture.

[0101] Combination Figure 8As shown, the embodiment of the present disclosure provides an interface switching device for an RTOS system, comprising a first acquisition module 21, a second acquisition module 22, a determination module 23 and an execution module 24. The first acquisition module 21 is configured to acquire an interface update request, which carries the storage address information of the original image and the target sequence number information of the target update image; the second acquisition module 22 is configured to acquire a data packet, which stores the addressing information associated with the original image, and the addressing information includes the sequence number information associated with the update image and the differential data information associated with the sequence number information; the determination module 23 is configured to match the target differential data information associated with the target sequence number information from the data packet; the execution module 24 is configured to update the original image to the target update image according to the target differential data information and the storage address information.

[0102] The interface switching device for an RTOS system provided by the embodiment of the present disclosure is advantageous in reducing the occupancy of storage space and improving the efficiency of interface updating.

[0103] Combination Fig. 9 As shown, an embodiment of the present disclosure provides an interface switching device for an RTOS system, including a processor 100 and a memory 101. Optionally, the device may also include a communication interface 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other through the bus 103. The communication interface 102 may be used for information transmission. The processor 100 may call the logic instructions in the memory 101 to execute the interface switching method for the RTOS system of the above embodiment.

[0104] In addition, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0105] The memory 101 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes functional applications and data processing by running the program instructions / modules stored in the memory 101, that is, implementing the interface switching method for the RTOS system in the above embodiment.

[0106] The memory 101 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.

[0107] An embodiment of the present disclosure provides a terminal device, comprising the above-mentioned interface switching device for an RTOS system.

[0108] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned interface switching method for an RTOS system.

[0109] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above-mentioned interface switching method for an RTOS system.

[0110] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0111] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.

[0112] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0113] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0114] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0115] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. An interface switching method for an RTOS system, characterized in that: Applied to a terminal device, the method comprises: Obtaining an interface update request, wherein the interface update request carries storage address information of the original image and target sequence number information of the target update image; Acquire a data packet, wherein the data packet stores addressing information associated with an original picture, a preset storage address of the original picture, verification information, and the number of original pictures, wherein the addressing information includes sequence number information associated with an updated picture and differential data information associated with the sequence number information, wherein the differential data information includes an offset address corresponding to differential data with continuous addresses, a data volume of differential segment data, and differential segment data; and the verification information indicates a sum of the preset storage address, the current number of original pictures, and the data volume of the addressing information; Obtaining a target and a value of storage address information, a data amount of addressing information, and a current number of original pictures; In a case where the target sum value matches the sum value, performing an operation of matching the storage address information of the original image with the preset storage address; In a case where the storage address information of the original image matches the preset storage address, matching the target differential data information associated with the target sequence number information from the data packet; updating the original picture to the target updated picture according to the target differential data information and the storage address information; Wherein, updating the original picture to the target updated picture according to the target differential data information and the storage address information includes: Determining a target offset address, target differential segment data, and target data volume from the target differential data information; Determine a target update start position according to the storage address information and the target offset address; Determine a target update termination position according to the target data amount, so as to update the data corresponding to the target update start position and the target update termination position into the target differential segment data; The storage address information is the starting address of the original image loaded into the image running area.

2. The method according to claim 1, characterized in that The differential data information also includes a start address associated with the differential data and a data volume of the differential data. Before determining a target offset address, target differential segment data and target data volume from the target differential data information, the method further includes: Determining a target starting address and a target data volume of the target update picture from the target differential data information; According to the target start address and the target data amount, a target read position associated with the target differential data is obtained, so as to determine the target offset address and the target differential segment data from the target read position.

3. The method according to claim 1, characterized in that In the case where the differential segment data includes a plurality of segments, the differential data information also includes the number of segments associated with the differential data, and the updating of the original picture to the target updated picture according to the target differential data information and the storage address information further includes: The target offset address of each target differential segment data, the target data volume of each target differential segment data and each differential segment data are determined from the target differential data information to determine the target update start and end positions corresponding to each differential segment data and perform data update.

4. The method according to any one of claims 1 to 3, characterized in that: Before updating the original picture to the target updated picture according to the target differential data information and the storage address information, the method further includes: Obtain the starting address of the image running area, the data of the original image and the current data volume; Update the data corresponding to the area in the picture running area that takes the starting address as the starting position and whose address offset matches the current data amount to the data of the original picture.

5. An interface switching device for an RTOS system, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the interface switching method for an RTOS system according to any one of claims 1 to 4 when running the program instructions.

6. A terminal device, characterized in that: It comprises the interface switching device for RTOS system as claimed in claim 5.

7. A storage medium storing program instructions, characterized in that: When the program instructions are run, the interface switching method for an RTOS system as described in any one of claims 1 to 4 is executed.

Citation Information

Patent Citations

  • Data updating method, device and system

    CN104657170A

  • Picture local updating method, system and device for display equipment

    CN110780834A