Memory adaptive configuration parameter method, device, equipment and computer storage medium

By obtaining and using the counting values ​​of the configuration trigger conditions and counting flag bits, the product self -adapting configuration parameters are performed on the motherboard of different memory size, solving the problem of abnormal work of the memory device in the traditional method, and improving production efficiency and product products stability.

CN114637540BActive Publication Date: 2025-01-24SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210268368.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-17
Publication Date
2025-01-24
Estimated Expiration
2042-03-17

AI Technical Summary

Technical Problem

The traditional memory adaptive configuration parameter method causes all motherboards with the same memory size to initialize the configuration memory devices with fixed memory parameters, resulting in poor consistency of memory devices working abnormally, reducing production efficiency and product stability.

Method used

By obtaining the preset configuration trigger conditions, the product self -adaptive configuration parameters are performed according to the configuration trigger conditions, determining the number of configuration times and serving as the counting value of the counting flag. Multiple memory adaptive configuration parameters.

Benefits of technology

It improves the production efficiency and stability of the product, avoids the abnormal memory device caused by fixed memory parameters, and ensures that the product work normally on the motherboard of different memory size.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114637540B_ABST
    Figure CN114637540B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of adaptive memory configuration, and discloses a memory adaptive configuration parameter method, device, equipment and a computer storage medium, the method comprising: obtaining a preset configuration trigger condition, and performing memory adaptive configuration parameters on a product according to the configuration trigger condition; determining the number of configurations corresponding to the memory adaptive configuration parameter, and using the number of configurations as the count value of a preset count flag; if the count value is equal to a count threshold, obtaining the current production status of the product, and clearing the count flag according to the current production status. The present invention improves product stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of adaptive memory configuration, and in particular to a memory adaptive configuration parameter method, device, equipment and computer storage medium. Background Art

[0002] With the continuous progress and development of Android smart devices, users' requirements for Android smart devices vary greatly. Based on the positioning of different products, device manufacturers often configure different sizes of memory for a series of products, host models and multiple derivative models to meet the needs of different users. The traditional memory adaptive configuration parameter method requires software to be able to adapt to different sizes of memory for configuration due to the software co-packaging requirements and the ever-changing motherboard memory configuration, so major chip manufacturers have introduced memory adaptive methods. This method has great defects. According to the current method of burning the master chip and the memory adaptive configuration parameter method, all motherboards with the same memory size will use fixed memory parameters to initialize and configure memory devices, causing some memory devices with poor consistency to work abnormally, resulting in problems such as failure to boot or black screen when playing 4K, 8K bitstreams. This memory configuration method not only reduces production efficiency, but also causes product stability to decrease. Summary of the invention

[0003] The main purpose of the present invention is to propose a memory adaptive configuration parameter method, device, equipment and computer storage medium, aiming to solve the technical problem of how to improve product stability.

[0004] To achieve the above object, the present invention provides a memory adaptive configuration parameter method, the memory adaptive configuration parameter method steps include:

[0005] Obtaining a preset configuration trigger condition, and performing memory adaptive configuration parameters on the product according to the configuration trigger condition;

[0006] Determine the configuration times corresponding to the memory adaptive configuration parameter, and use the configuration times as the count value of the preset count flag;

[0007] If the count value is equal to the count threshold, the current production status of the product is acquired, and the count flag is cleared according to the current production status.

[0008] Optionally, the configuration trigger condition includes a first configuration trigger condition, the first configuration trigger condition includes an activated program instruction, and the step of performing memory adaptive configuration parameters on the product according to the configuration trigger condition includes:

[0009] If there is an activated program instruction in the configuration trigger condition, generating a burning package file according to the activated program instruction;

[0010] If it is detected that the burning package file is generated successfully, memory adaptive configuration parameters are performed on the product.

[0011] Optionally, the activated program instructions include a clear instruction, a replace instruction, and a compress instruction, and the step of generating a burning package file according to the activated program instructions includes:

[0012] Determine the clear instruction in the activated program instruction, and clear the boot program partition inside the product according to the clear instruction to obtain a cleared boot program partition;

[0013] Determine the replacement instruction in the activated program instruction, and replace the cleared boot program partition according to the replacement instruction to obtain a replacement boot program partition;

[0014] The compression instruction in the activated program instruction is determined, and the replacement boot program partition is compressed according to the compression instruction to obtain a burning package file.

[0015] Optionally, the configuration trigger condition includes a second configuration trigger condition, the second configuration trigger condition includes an executed power-on instruction, and the step of performing memory adaptive configuration parameters on the product according to the configuration trigger condition includes:

[0016] If there is an executed power-on instruction in the configuration trigger condition, the product is turned on according to the executed power-on instruction;

[0017] If it is detected that the product has been turned on, memory adaptive configuration parameters are performed on the product.

[0018] Optionally, the step of clearing the counting flag bit according to the current production status includes:

[0019] Obtaining preset product status information, and detecting whether the current production status matches the product status information;

[0020] If the current production status matches the product status information, the counting flag is cleared.

[0021] Optionally, after the step of clearing the counting flag bit according to the current production status, the method further comprises:

[0022] If a single-key setting start instruction is received, the preset single-key setting is started according to the single-key setting start instruction;

[0023] Based on the enabled single-key setting, it is detected whether a new power-on instruction is received. If the new power-on instruction is received, memory adaptive configuration parameters are performed on the product after the new power-on instruction is executed.

[0024] Optionally, if the count value is equal to the count threshold, before the step, the method further comprises:

[0025] Obtaining a modified boot program code logic, and determining a theoretical count value according to the boot program code logic;

[0026] The theoretical count value is used as the count threshold.

[0027] In addition, to achieve the above-mentioned purpose, the present invention also provides a memory adaptive configuration parameter device, comprising:

[0028] A configuration module, used to obtain a preset configuration trigger condition, and perform memory adaptive configuration parameters on the product according to the configuration trigger condition;

[0029] A detection module, used to determine the configuration times corresponding to the memory adaptive configuration parameter, and use the configuration times as the count value of a preset count flag;

[0030] The processing module is used for obtaining the current production status of the product if the count value is equal to the count threshold, and clearing the count flag according to the current production status.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a memory adaptive configuration parameter device, comprising: a memory, a processor, and a memory adaptive configuration parameter program stored in the memory and executable on the processor, wherein the memory adaptive configuration parameter program implements the steps of the above-mentioned memory adaptive configuration parameter method when executed by the processor.

[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a memory adaptive configuration parameter computer storage medium, on which a memory adaptive configuration parameter program is stored, and when the memory adaptive configuration parameter program is executed by a processor, the steps of the memory adaptive configuration parameter method described above are implemented.

[0033] Under the premise of not restarting the TV, the present invention will activate the configuration trigger condition after the motherboard is attached to other motherboards. The controller obtains the preset configuration trigger condition and performs memory adaptive configuration parameters on the product according to the configuration trigger condition; after the memory adaptive configuration parameters, the configuration times corresponding to the memory adaptive configuration parameters will be determined, and the configuration times will be used as the count value of the preset count flag; if the count value is equal to the count threshold, the current production status of the product is obtained, and the count flag is cleared according to the current production status. In the whole implementation process, the single-key setting is always in the on state, which plays the role of whether the product can be allowed to perform memory adaptive configuration parameters, and the single-key setting is turned off while clearing the count flag. The configuration trigger condition refers to the activated program instructions and the executed power-on instructions. The activated configuration trigger condition ensures that the memory adaptive configuration parameters will be performed for the first time the motherboard is attached to other motherboards, and multiple memory adaptive configuration parameters are implemented after the product is powered on according to the count value of the count flag and the preset count threshold value, thereby avoiding the phenomenon that all motherboards with the same memory size use fixed memory parameters to initialize and configure memory devices, causing some memory devices with poor consistency to work abnormally. This adaptive memory configuration method not only ensures that the memory adaptive configuration parameters will be performed for the first time the motherboard is attached to other motherboards through the activated configuration trigger condition, thereby improving the production efficiency of the product, but also implements multiple memory adaptive configuration parameters after the product is powered on through the count value of the count flag and the preset count threshold value, thereby ensuring the stability of the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic diagram of the memory adaptive configuration parameter device structure of the hardware operating environment involved in the embodiment of the present invention;

[0035] Figure 2 This is a flow chart of a first embodiment of a method for adaptively configuring memory parameters according to the present invention;

[0036] Figure 3 A schematic diagram of a device module for adaptively configuring memory parameters of the present invention;

[0037] Figure 4 A schematic diagram of the process of implementing the overall solution of memory adaptive configuration parameters of the present invention;

[0038] Figure 5 A schematic diagram of the memory adaptive configuration parameter technical solution of the present invention.

[0039] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0041] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of a memory adaptive configuration parameter device structure of a hardware operating environment involved in an embodiment of the present invention.

[0042] like Figure 1 As shown, the memory adaptive configuration parameter device may include: a processor 0003, such as a central processing unit (CPU), a communication bus 0001, an acquisition interface 0002, a processing interface 0004, and a memory 0005. Among them, the communication bus 0001 is used to realize the connection and communication between these components. The acquisition interface 0002 may include an information acquisition device and an acquisition unit such as a computer, and the acquisition interface 0002 may optionally include a standard wired interface and a wireless interface. The processing interface 0004 may optionally include a standard wired interface and a wireless interface. The memory 0005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 0005 may optionally be a storage device independent of the aforementioned processor 0003.

[0043] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the memory adaptive configuration parameter device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0044] like Figure 1 As shown, the memory 0005 as a computer storage medium may include an operating system, an acquisition interface module, an execution interface module, and a memory adaptive configuration parameter program.

[0045] exist Figure 1 In the memory adaptive configuration parameter device shown, the communication bus 0001 is mainly used to realize the connection communication between components; the acquisition interface 0002 is mainly used to connect to the background server and communicate data with the background server; the processing interface 0004 is mainly used to connect to the deployment end (user end) and communicate data with the deployment end; the processor 0003 and the memory 0005 in the memory adaptive configuration parameter device of the present invention can be set in the memory adaptive configuration parameter device, and the memory adaptive configuration parameter device calls the memory adaptive configuration parameter program stored in the memory 0005 through the processor 0003, and executes the memory adaptive configuration parameter method provided by the embodiment of the present invention.

[0046] Based on the above hardware structure, an embodiment of the memory adaptive configuration parameter method of the present invention is proposed.

[0047] The embodiment of the present invention provides a memory adaptive configuration parameter method, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a method for adaptively configuring memory parameters according to the present invention.

[0048] In this embodiment, the memory adaptive configuration parameter method includes:

[0049] Step S10, obtaining a preset configuration trigger condition, and performing memory adaptive configuration parameters on the product according to the configuration trigger condition;

[0050] In this embodiment, optimization is mainly performed based on the defects of actual memory adaptation. At present, the memory data length of memory adaptation is 0x1600, which is stored in the boot program partition, with the starting and ending addresses: 0x14000~0x15600, of which the data at the address 0x15390 is the check flag, 0 means that no memory adaptation is performed, and 1 means that memory adaptation has been completed. When the boot program is started and the flag is detected as 0, it means that no memory adaptation has been performed before, and memory adaptation is required now. First, the performance index of the current memory is obtained, and the optimal memory parameters matching it are generated according to the obtained performance index, and these memory parameters are used to initialize the configuration memory device. The memory parameters are stored in the boot program partition of the memory, and then the flag is set to 1. The next time the boot is started and the flag is detected as 1, it is considered that the memory adaptation has been completed, and the memory adaptation action will not be performed again. The stored memory parameters are directly obtained from the boot program partition of the memory, and these memory parameters are used to initialize the configuration memory device. That is to say, when the flag is 1, memory adaptation will not be performed. On the contrary, when the flag is 0, the controller will perform a memory adaptation after the TV is turned on, and set the flag to 1, and will not perform memory adaptation in the future. This has at least one defect. When the TV is turned on for a short time to complete memory adaptation, memory adaptation will not be performed during the entire TV production process, which will result in only calling the internally stored configuration parameters when configuring the memory, causing some internal memory devices with poor consistency to work abnormally.

[0051] According to the above defects, the preset configuration trigger conditions can be obtained, and the memory adaptive configuration parameters of the product can be performed according to the configuration trigger conditions. Among them, the configuration trigger condition refers to the condition that triggers the product to perform memory adaptive configuration parameters. The configuration trigger condition includes a first configuration trigger condition and a second configuration trigger condition. The first configuration trigger condition refers to an activated program instruction. When the mother chip is attached to other motherboards with the same memory size, the preset program instructions inside the computer will be activated, and after the product is turned on for the first time, a burning package file will be generated according to the activated program instructions (first configuration trigger condition), and after the burning package file is generated, the memory adaptive configuration parameters will be performed. The product refers to a television, but is not limited to a television. Among them, the program instruction refers to a program that generates a burning package file, and the burning package file refers to a file that controls the mother chip to perform memory adaptive, which is equivalent to performing adaptive after the burning package file is generated. The memory adaptive configuration parameters refer to obtaining the performance indicators of the current memory, generating the optimal memory parameters that match it according to the obtained performance indicators, and using these memory parameters to initialize the configuration memory device, that is, the process of determining the optimal memory parameters according to the actual performance indicators. For example, Figure 4 As shown, it is necessary to obtain the preset program instructions under two prerequisites. First, the single-key setting must be turned on. The single-key setting is similar to the check flag. When the single-key setting is turned on, memory adaptation will be performed. When the single-key setting is turned off, it is equivalent to setting the check flag to 1, and memory adaptation will not be performed subsequently. Secondly, when executing the generation of the burning package file, the TV cannot be restarted. The main purpose is to ensure that the entire process of generating the burning package is not interrupted. After the burning package is generated, memory adaptation will be performed directly. The steps of generating the burning package file according to the first configuration trigger condition include:

[0052] The controller will enter recovery mode, connect the fat32 format USB flash drive to the USB3.0 port, and enter busybox mount / dev / block / xxx / tmp (mount the USB flash drive to / tmp through the mount command). xxx is the specific USB flash drive node. Note that there is a space after xxx. You can view it through the command, busybox cat / proc / partitions. If there is only sda, xxx is sda. If there are both sda and sda1, xxx is sda1. mt5895_m1v1_cn_secure_storage boot.bin is the compiled storage boot.bin file. This file needs to be copied to the root directory of the U disk. Confirm that the mounted file is the connected U disk (copy the boot program file mt5895_m1v1_cn_secure_storage boot.bin into the U disk). After confirmation, execute the obtained program instructions: determine the clear instruction in the activated program instruction, clear the boot program partition inside the product according to the clear instruction, and obtain the clear boot program partition; wherein the clear instruction refers to the instruction to clear the boot program partition, the boot program partition refers to the startup program inside the TV, and the clear boot program partition refers to the boot program partition after executing the clear program. (Clear instruction: busybox dd if= / dev / zero of= / dev / block / by-name / boot program busybox sync)

[0053] Secondly, the replacement instruction in the activated program instruction is determined, and the clear boot program partition is replaced according to the replacement instruction to obtain a replacement boot program partition; wherein the replacement instruction refers to an instruction to replace the clear boot program partition, and the replacement boot program partition refers to the clear boot program partition after executing the replacement program. (Replacement instruction: busybox ddif = / tmp / mt5895_m1v1_cn_secure_storage boot.bin of = / dev / block / by-name / boot program busybox sync)

[0054] Finally, the compression instruction in the activated program instruction is determined, and the replacement boot program partition is compressed according to the compression instruction to obtain the burning package file. The compression instruction refers to the instruction for compressing the replacement boot program partition. (Compression instruction: busybox dd if = / dev / block / mmcblk0 | busybox gzip > / tmp / 9TA01_A50.bin.gz)

[0055] After executing the above clear, replace and compress instructions. Wait for about an hour, press Enter, the serial port displays #, enter busybox sync to power off, and the 9TA01_A50.bin.gz compressed package in the U disk is the generated burning package file. After generating the burning package file, the controller will automatically perform memory adaptation, that is, when a motherboard is attached to other motherboards, the controller will add a step to generate a burning package file, mainly to ensure that the controller will perform memory adaptation after executing this burning package file generation operation. After completing the memory adaptation, the optimal memory parameters will be used as the first configuration parameters and saved in the internal boot program partition for the next call.

[0056] In this embodiment, by obtaining a preset configuration trigger condition, the memory adaptive configuration parameters of the product are performed according to the configuration trigger condition, which ensures that when the mother chip is attached to other motherboards with the same memory size, the preset program instructions in the computer will be activated, and after the product is turned on for the first time, a burning package file will be generated according to the activated program instructions, and after the burning package file is generated, it will be guided by the boot program to adaptively configure the product memory parameters, which ensures that the mother chip will adaptively configure the memory parameters after being attached to other motherboards. Not only will the obtained memory parameters be saved, the resources used in the next memory configuration are guaranteed, and it is no longer a single manual way to set the memory configuration, which greatly improves the accuracy of the memory configuration and the resource utilization rate, and the stability of the product is improved by adaptively configuring the memory parameters of the product.

[0057] Step S20, determining the configuration times corresponding to the memory adaptive configuration parameter, and using the configuration times as the count value of the preset count flag;

[0058] In this embodiment, after each memory adaptation is completed, the controller determines the number of configurations corresponding to the memory adaptive configuration parameter, and uses the number of configurations as the count value of the preset count flag. That is to say, the controller will count each memory adaptive configuration parameter, and use the count as the count value of the preset count flag. For example, when the configuration parameter corresponding to the memory adaptive configuration parameter of the product is a, the controller will use a as the count value of the count flag, and update the count value of the count flag to a+1 after the product performs the next memory adaptive configuration parameter. By detecting the number of configurations, the number of configurations can be performed according to user needs, and a basis is provided for judging whether the configuration is completed.

[0059] Step S30: If the count value is equal to the count threshold, the current production status of the product is obtained, and the count flag is cleared according to the current production status.

[0060] When the detection count value and the count threshold are equal, for example, Figure 4 As shown, when the count value is equal to the count threshold, the controller will obtain the current production status of the product and clear the count flag according to the current production status. That is to say, as long as the count value and the count threshold are equal, the controller will continue to obtain the current production status of the product until the current production status of the product meets the internal requirements, and then the count flag will be cleared.

[0061] On the contrary, when the count value is not equal to the count threshold (specifically, the count threshold is greater than the count value), the controller will control the product to continue to perform memory adaptive configuration parameters at the next startup and update the count value of the count flag. In other words, if the actual number of memory adaptive operations does not reach the theoretical number of memory adaptive operations required, the controller will perform memory adaptive operations after the next startup instruction is executed. For example, when the count threshold is A times and the actual count value is B times, due to the mismatch between the pre-designed value and the count value (A>B), the controller will perform memory adaptive configuration parameters after the next startup instruction is executed, that is, the memory adaptive configuration parameters will be continued after the next startup, and the updated actual count value will be B+1 times. Then, check whether B+1 matches A. If they do not match, the memory adaptive configuration parameters will continue after the next startup. Otherwise, the memory adaptive configuration parameters will not be performed after the next startup. This is mainly to ensure that when the product is in the production process and the product startup time is much less than the memory adaptive time, the memory adaptive configuration parameters will not be completed at this startup. The count threshold can be set to ensure that the product will perform memory adaptive configuration parameters.

[0062] In this embodiment, by judging whether the count value is equal to the count threshold, the current production status of the product is obtained, and the count flag is cleared according to the current production status, which not only ensures the stability of the product memory, but also ensures that after the count flag is cleared, subsequent maintenance can be performed. After the single-key setting is turned on, the memory adaptive configuration parameters are automatically performed after the power is turned on to solve the problem, thereby reducing the merchant's after-sales maintenance costs and improving the efficiency of TV maintenance.

[0063] Furthermore, a schematic diagram of a memory adaptive configuration parameter technical solution is provided for this embodiment, referring to Figure 5In this embodiment, according to the prior art, the preparation method of the burning package and the boot program code architecture logic are optimized and analyzed, and the deficiencies in the prior art are fully made up. Under the premise of not restarting the TV, the burning package preparation method document is changed through the activated program instruction, and the boot program partition method is supplemented and replaced. After the burning package preparation method document is generated, the controller will perform the first memory self-adaptation configuration parameter. It can be ensured that the mother chip will be attached to other motherboards with the same memory size and the first boot will be powered on to perform memory self-adaptation, and the configuration parameters of the memory will be stored in the memory. Considering that it takes time to start the boot program to perform memory self-adaptation, in order not to affect the boot speed, it is not possible to perform memory self-adaptation every time the machine is powered on. In large-scale mass production, the operation of fast power-on and power-off may occur, which may cause the failure of memory self-adaptation in the boot program stage. The boot program code logic can be changed, and the data of a certain address of the memory is used as the counting flag. During the production process, the single key is turned on to ensure that the memory adaptive configuration parameters will be performed each time the TV is turned on for the first three times (the preset counting threshold can be set according to the actual needs of the user), and the configuration times are technically counted through the counting flag. When the configuration times reach the preset counting threshold, it is ensured that the memory adaptive operation will not be performed in the subsequent startups, and the stored memory parameters are directly obtained from the boot program partition of the memory, and these memory parameters are used to initialize the configuration memory device. Before the TV is packed and boxed, the factory recovery operation will be performed to set the single key to off and clear the counting flag. When the subsequent single key is set to on again and the TV is restarted, the memory adaptive operation will be performed each time the first three startups are turned on, and the counting flag is also used to count. When after-sales problems arise, for example, some users may encounter problems such as black screen when playing 4K and 8K streams during the use of the TV. Software development sets the single key to on through remote control or informs the user to enter the factory menu-general settings-set the single key to on. After the TV is restarted, the memory adaptive action will be performed to refresh the memory configuration parameters and solve the user's problem. As a result, there is no need for after-sales engineers to come to the site and use MTK's FlashTool tool to burn the boot program, saving after-sales maintenance costs.

[0064] In this embodiment, without restarting the TV, the configuration trigger condition will be activated after the motherboard is attached to other motherboards. The controller obtains the preset configuration trigger condition and performs memory adaptive configuration parameters on the product according to the configuration trigger condition; after the memory adaptive configuration parameters, the configuration times corresponding to the memory adaptive configuration parameters will be determined, and the configuration times will be used as the count value of the preset count flag; if the count value is equal to the count threshold, the current production status of the product is obtained, and the count flag is cleared according to the current production status. Among them, during the entire implementation process, the single-key setting is always in the on state, which plays a role in whether the product can be allowed to perform memory adaptive configuration parameters, and the single-key setting is turned off while clearing the count flag. The configuration trigger condition refers to the activated program instructions and the executed power-on instructions. The activated configuration trigger condition ensures that the memory adaptive configuration parameters will be performed for the first time the motherboard is attached to other motherboards, and multiple memory adaptive configuration parameters are implemented after the product is powered on according to the count value of the count flag and the preset count threshold value, thereby avoiding the phenomenon that all motherboards with the same memory size use fixed memory parameters to initialize and configure memory devices, causing some memory devices with poor consistency to work abnormally. This adaptive memory configuration method not only ensures that the memory adaptive configuration parameters will be performed for the first time the motherboard is attached to other motherboards through the activated configuration trigger condition, thereby improving the production efficiency of the product, but also implements multiple memory adaptive configuration parameters after the product is powered on through the count value of the count flag and the preset count threshold value, thereby ensuring the stability of the product.

[0065] Further, based on the first embodiment of the memory adaptive configuration parameter method of the present invention, a second embodiment of the memory adaptive configuration parameter method of the present invention is proposed. The memory adaptive configuration parameter method includes:

[0066] The configuration trigger condition includes a second configuration trigger condition, and the second configuration trigger condition is an executed power-on instruction; wherein the step of performing memory adaptive configuration parameters on the product according to the configuration trigger condition includes:

[0067] Step a, if there is an executed power-on instruction in the configuration trigger condition, then starting the product according to the executed power-on instruction;

[0068] After obtaining the trigger condition, the controller will determine whether the trigger condition is the first configuration trigger condition (activated program instruction) or the second configuration trigger condition (executed power-on instruction), and make subsequent judgments based on the trigger condition. For example, when the trigger condition is the first configuration trigger condition, the controller will generate a burning package file according to the activated program instruction, and perform memory adaptive configuration parameters after detecting that a burning package file has been generated. Conversely, when the trigger condition is the second configuration trigger condition, the controller will turn on the product according to the executed power-on instruction, and detect whether the product is turned on after executing the power-on instruction, and perform memory adaptive configuration parameters after the product is turned on. In this embodiment, the first configuration trigger condition should only appear once, because the mother chip is attached to other motherboards when the condition for activating the program instruction is generally only once in the product production process. For example, Figure 4 As shown, the controller will perform the first memory adaptation after the burning package is generated under the first configuration trigger condition. After the first memory adaptation, the memory adaptation is performed when the TV is turned on (the second configuration trigger condition). If there is an executed power-on instruction in the configuration trigger condition, the product is turned on according to the executed power-on instruction, providing configuration conditions for the memory adaptation configuration parameters.

[0069] Step b: If it is detected that the product has been turned on, memory adaptive configuration parameters are performed on the product.

[0070] The controller will detect the product after the second configuration trigger condition. When the TV is turned on, the controller will control the TV to configure memory adaptive parameters through the boot program. The boot program refers to the program that needs to be run when the system just starts. It mainly checks various settings and loads various modules to finally run the system to a usable state. Then, the boot program obtains the memory performance index after startup, and generates memory parameters based on the memory performance index after startup. Finally, the memory configuration is initialized based on the generated memory parameters, and the memory adaptation of the TV is completed. Through this memory adaptation, the TV can effectively prevent the black screen phenomenon caused by the consistency problem of the memory device. The generated configuration parameters are saved to ensure the use of resources for the next memory configuration. It is no longer a single manual way to set the memory configuration, which greatly improves the accuracy of memory configuration and resource utilization.

[0071] Further, the step of clearing the counting flag bit according to the current production status includes:

[0072] Step c, obtaining preset product status information, and detecting whether the current production status matches the product status information;

[0073] In this embodiment, the controller operates the count flag and the preset single-key setting according to the current production status of the product, where the current production status refers to the actual state of the TV in production, which can be the testing stage, assembly stage, welding stage, etc. For example, Figure 4 As shown, the controller determines whether the TV is packed and boxed, and then clears the count flag and turns off the single-key setting. The main implementation process is that the controller obtains the preset product status information and detects whether the current production status matches the product status information; the preset product status information refers to the actual status of the TV, and the product status information can be set according to user needs. The product status information in the present invention refers to the TV being packed and boxed. According to the judgment of the current production status and product status information, a setting basis is provided for changing the settings of the internal memory adaptive configuration parameters.

[0074] Step d: if the current production status matches the product status information, clear the counting flag.

[0075] If the current production status matches the status information, the counting flag is cleared and the preset single-key setting is turned off. When the determined current production status is consistent with the preset product status information, that is, when the TV is being packed and boxed, the controller will clear the counting flag and turn off the single-key setting. Clearing the counting flag mainly requires clearing the flag value of the counting flag. Compared with clearing to zero, clearing the counting flag is more accurate. Not only the value is cleared to zero, but also the flag of the counting flag is cleared. By clearing the counting flag and turning off the single-key setting, the control can ensure that when subsequent products have memory problems, they can be solved by turning on the single-key setting.

[0076] Further, after the step of detecting whether the pre-designed value matches the count value, the following steps are included:

[0077] Step g, if an input single-key setting start instruction is received, start the preset single-key setting according to the single-key setting start instruction;

[0078] When the TV leaves the factory and is used by users, according to after-sales problems such as black screen when playing 4K and 8K streams, the software developer sets the single-key setting to on through remote control or informs the user to enter the factory menu—general settings—set the single-key setting to on, that is, the controller detects that if an input single-key setting start instruction is received, the preset single-key setting is turned on according to the single-key setting start instruction, wherein the single-key setting start instruction refers to an instruction to turn on the single-key setting, which can come from the software developer issuing a start instruction through remote control, or it can be an instruction generated by the user entering the factory menu—general settings—set the single-key setting. According to the function of the single-key setting, it can be known that when the single-key is turned on, it can ensure that the product will also perform memory adaptive configuration parameters when the user uses it, thereby ensuring the accuracy of the parameter configuration.

[0079] Step h, based on the enabled single-key setting, detecting whether a new power-on instruction is received, and if the new power-on instruction is received, performing memory adaptive configuration parameters on the product after executing the new power-on instruction.

[0080] Based on the turned-on single-button setting, it detects whether the power-on command is received. That is to say, the controller will detect the power-on command under the premise of single-button turning on. If the power-on command is received, the memory adaptive configuration parameters of the product will be performed after executing the power-on command. That is, the memory adaptive configuration parameters will be performed according to the second configuration trigger condition (the executed power-on command). By adaptively refreshing the memory configuration parameters, the problem of black screen when playing 4K and 8K streams is solved, which saves the merchant's after-sales maintenance costs.

[0081] In this embodiment, the number of times the user configures the memory adaptive configuration parameters is mainly determined by a preset counting threshold. After the controller turns on the single-key setting, the number of times the memory adaptive configuration parameters are configured is based on the preset counting threshold. The controller will perform the memory adaptive configuration parameters for the corresponding number of times according to the number of counting thresholds. That is to say, when the counting threshold is C times, the controller will execute the memory adaptive configuration parameters after the TV is turned on for the first C times, and will not perform the memory adaptive configuration parameters after C times. This can mainly ensure that the user will not turn off the TV in advance when performing memory adaptation, resulting in unsuccessful memory adaptation. Increasing the number of adaptations will greatly ensure the success rate of memory adaptation when the user does not understand the product.

[0082] In this embodiment, by detecting the generated single-key setting start instruction, the single-key setting is started according to the single-key setting start instruction, and the power-on instruction is obtained based on the start of the single-key setting, and the memory adaptation is performed after the power-on instruction is executed, and the configuration times of the memory adaptation configuration parameters are determined according to the preset count threshold, and finally the corresponding memory adaptation configuration parameters are configured according to the configuration times. The merchant can remotely start the single-key setting of the TV, and automatically perform the memory adaptation configuration parameter solution after the TV is turned on, which reduces the merchant's after-sales maintenance costs and improves the efficiency of TV maintenance.

[0083] Furthermore, if the count value is equal to the count threshold, before the step, the method further includes:

[0084] Step i, obtaining the modified boot program code logic, determining a theoretical count value according to the boot program code logic; and using the theoretical count value as a count threshold.

[0085] In this embodiment, before determining whether it is necessary to continue to configure the memory adaptive configuration parameters according to the configured number of times, the controller will obtain the internal boot program code logic, and determine the theoretical count value according to the boot program code logic, and use the theoretical count value as the count threshold. The boot program code logic refers to the execution logic of memory adaptation, which mainly determines the number of times to be executed according to the boot program code logic. The theoretical count value refers to the number of times memory adaptation needs to be executed, which can be set according to user needs. In the present invention, the pre-designed value refers to three times. The theoretical count value is determined by determining the boot program code logic, and the theoretical number of times memory adaptation needs to be executed can be determined by the pre-theoretical value, that is, the technical threshold, which provides a basis for executing memory adaptive configuration parameters.

[0086] In this embodiment, by changing the boot program code logic, multiple configuration times are provided for memory adaptation, which can solve the problem that rapid power-on and power-off operations may occur during large-scale mass production, which may cause memory adaptation failure in the boot program stage. This ensures that memory adaptive configuration parameters will be performed during the production process of the product, thereby ensuring the stability of the product's memory devices.

[0087] The present invention also provides a memory adaptive configuration parameter device, referring to Figure 3 , the memory adaptive configuration parameter device comprises:

[0088] Configuration module A01, used to obtain preset configuration trigger conditions, and perform memory adaptive configuration parameters on the product according to the configuration trigger conditions;

[0089] The detection module A02 is used to determine the configuration times corresponding to the memory adaptive configuration parameter, and use the configuration times as the count value of the preset count flag;

[0090] The processing module A03 is used to obtain the current production status of the product if the count value is equal to the count threshold, and clear the count flag according to the current production status.

[0091] Optionally, the configuration module A01 is further used to:

[0092] If there is an activated program instruction in the configuration trigger condition, generating a burning package file according to the activated program instruction;

[0093] If it is detected that the burning package file is generated successfully, memory adaptive configuration parameters are performed on the product.

[0094] Optionally, the configuration module A01 is further used to:

[0095] Determine a clear instruction in the activated program instruction, and clear the boot program partition inside the product according to the clear instruction to obtain a cleared boot program partition;

[0096] Determine a replacement instruction in the activated program instruction, and replace the cleared boot program partition according to the replacement instruction to obtain a replacement boot program partition;

[0097] Determine a compression instruction in the activated program instruction, compress the replacement boot program partition according to the compression instruction, and obtain a burning package file.

[0098] Optionally, the configuration module A01 is further used to:

[0099] If there is an executed power-on instruction in the configuration trigger condition, the product is turned on according to the executed power-on instruction;

[0100] If it is detected that the product has been turned on, memory adaptive configuration parameters are performed on the product.

[0101] Optionally, the processing module A03 is further used for:

[0102] Obtaining preset product status information, and detecting whether the current production status matches the product status information;

[0103] If the current production status matches the product status information, the counting flag is cleared.

[0104] Optionally, the processing module A03 is further used for:

[0105] If a single-key setting start instruction is received, the preset single-key setting is started according to the single-key setting start instruction;

[0106] Based on the enabled single-key setting, it is detected whether a new power-on instruction is received. If the new power-on instruction is received, memory adaptive configuration parameters are performed on the product after the new power-on instruction is executed.

[0107] Optionally, the processing module A03 is further used for:

[0108] Obtaining a modified boot program code logic, and determining a theoretical count value according to the boot program code logic;

[0109] The theoretical count value is used as the count threshold.

[0110] The methods executed by the above-mentioned program modules can refer to the various embodiments of the memory adaptive configuration parameter method of the present invention, which will not be described in detail here.

[0111] The invention also provides a memory adaptive configuration parameter device.

[0112] The device of the present invention comprises: a memory, a processor and a memory adaptive configuration parameter program stored in the memory and executable on the processor. When the memory adaptive configuration parameter program is executed by the processor, the steps of the memory adaptive configuration parameter method described above are implemented.

[0113] The invention also provides a computer storage medium.

[0114] The computer storage medium of the present invention stores a memory adaptive configuration parameter program, and when the memory adaptive configuration parameter program is executed by a processor, the steps of the memory adaptive configuration parameter method described above are implemented.

[0115] Among them, the method implemented when the memory adaptive configuration parameter program running on the processor is executed can refer to the various embodiments of the memory adaptive configuration parameter method of the present invention, and will not be repeated here.

[0116] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0119] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A memory adaptive configuration parameter method, characterized in that: The memory adaptive configuration parameter method steps include: Obtaining a preset configuration trigger condition, and performing memory adaptive configuration parameters on the product according to the configuration trigger condition, wherein the configuration trigger condition includes a first configuration trigger condition, and the first configuration trigger condition includes an activated program instruction. The step of performing memory adaptive configuration parameters on the product according to the configuration trigger condition includes: After the mother chip of the product is attached to the mainboard, the preset program instructions are activated, and a burning package file is generated according to the activated program instructions, wherein the activated program instructions include a clear instruction, a replacement instruction, and a compression instruction. The step of generating a burning package file according to the activated program instructions includes: Determine the clear instruction in the activated program instruction, clear the boot program partition inside the product according to the clear instruction, and obtain the cleared boot program partition; determine the replacement instruction in the activated program instruction, replace the cleared boot program partition according to the replacement instruction, and obtain the replaced boot program partition; determine the compression instruction in the activated program instruction, compress the replaced boot program partition according to the compression instruction, and obtain a burning package file; if it is detected that the burning package file is generated successfully, perform memory adaptive configuration parameters on the product; The configuration trigger condition includes a second configuration trigger condition, the second configuration trigger condition includes an executed power-on instruction, and the step of performing memory adaptive configuration parameters on the product according to the configuration trigger condition includes: If there is an executed power-on instruction in the configuration trigger condition, the product is turned on according to the executed power-on instruction; if it is detected that the product has been turned on, memory adaptive configuration parameters are performed on the product; Determine the configuration times corresponding to the memory adaptive configuration parameter, and use the configuration times as the count value of the preset count flag; If the count value is equal to the count threshold, the current production status of the product is obtained, and the count flag is cleared according to the current production status, wherein the step of clearing the count flag according to the current production status includes: obtaining preset product status information, and detecting whether the current production status matches the product status information; if the current production status matches the product status information, clearing the count flag.

2. The memory adaptive configuration parameter method according to claim 1, characterized in that: After the step of clearing the counting flag according to the current production status, the method further comprises: If a single-key setting start instruction is received, the preset single-key setting is started according to the single-key setting start instruction; Based on the enabled single-key setting, it is detected whether a new power-on instruction is received. If the new power-on instruction is received, memory adaptive configuration parameters are performed on the product after the new power-on instruction is executed.

3. The memory adaptive configuration parameter method according to claim 1, characterized in that: Before the step of if the count value is equal to the count threshold, the method further comprises: Obtaining a modified boot program code logic, and determining a theoretical count value according to the boot program code logic; The theoretical count value is used as the count threshold.

4. A memory adaptive configuration parameter device, characterized in that: The memory adaptive configuration parameter device comprises: A configuration module is used to obtain a preset configuration trigger condition, and perform memory adaptive configuration parameters on the product according to the configuration trigger condition, wherein the configuration trigger condition includes a first configuration trigger condition, and the first configuration trigger condition includes an activated program instruction. The step of performing memory adaptive configuration parameters on the product according to the configuration trigger condition includes: After the mother chip of the product is attached to the mainboard, the preset program instructions are activated, and a burning package file is generated according to the activated program instructions, wherein the activated program instructions include a clear instruction, a replacement instruction, and a compression instruction. The step of generating a burning package file according to the activated program instructions includes: Determine the clear instruction in the activated program instruction, clear the boot program partition inside the product according to the clear instruction, and obtain the cleared boot program partition; determine the replacement instruction in the activated program instruction, replace the cleared boot program partition according to the replacement instruction, and obtain the replaced boot program partition; determine the compression instruction in the activated program instruction, compress the replaced boot program partition according to the compression instruction, and obtain a burning package file; if it is detected that the burning package file is generated successfully, perform memory adaptive configuration parameters on the product; The configuration trigger condition includes a second configuration trigger condition, the second configuration trigger condition includes an executed power-on instruction, and the step of performing memory adaptive configuration parameters on the product according to the configuration trigger condition includes: If there is an executed power-on instruction in the configuration trigger condition, the product is turned on according to the executed power-on instruction; if it is detected that the product has been turned on, memory adaptive configuration parameters are performed on the product; A detection module, used to determine the configuration times corresponding to the memory adaptive configuration parameter, and use the configuration times as the count value of a preset count flag; A processing module is used to obtain the current production status of the product if the count value is equal to the count threshold, and clear the count flag according to the current production status, wherein the step of clearing the count flag according to the current production status includes: obtaining preset product status information, detecting whether the current production status matches the product status information; if the current production status matches the product status information, clearing the count flag.

5. A memory adaptive configuration parameter device, characterized in that: The memory adaptive configuration parameter device comprises: a memory, a processor, and a memory adaptive configuration parameter program stored in the memory and executable on the processor. When the memory adaptive configuration parameter program is executed by the processor, the steps of the memory adaptive configuration parameter method according to any one of claims 1 to 3 are implemented.

6. A computer storage medium, characterized in that: The computer storage medium stores a memory adaptive configuration parameter program, and when the memory adaptive configuration parameter program is executed by the processor, the steps of the memory adaptive configuration parameter method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Method, device and equipment for memory parameter configuration

    CN111475166A