CN115705216A - Electrical equipment power-on configuration method and device, electronic equipment and storage medium - Google Patents

Electrical equipment power-on configuration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115705216A
CN115705216A CN202110902890.5A CN202110902890A CN115705216A CN 115705216 A CN115705216 A CN 115705216A CN 202110902890 A CN202110902890 A CN 202110902890A CN 115705216 A CN115705216 A CN 115705216A
Authority
CN
China
Prior art keywords
equipment
power
setting
parameter
parameter table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110902890.5A
Other languages
Chinese (zh)
Inventor
梁浩蓝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Hefei Shiyan Electronic Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Hefei Shiyan Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Hefei Shiyan Electronic Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202110902890.5A priority Critical patent/CN115705216A/en
Publication of CN115705216A publication Critical patent/CN115705216A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The embodiment of the application discloses an electrical equipment power-on configuration method and device, electronic equipment and a storage medium. According to the technical scheme provided by the embodiment of the application, after the equipment is powered on, whether the current equipment completes variety setting is judged; when the situation that the equipment does not finish the variation setting is determined, extracting an appointed parameter table from all parameter tables pre-stored in a public storage area of a flash memory, configuring the operation parameters of the equipment based on the appointed parameter table, and deleting all the parameter tables in the flash memory after the operation parameter configuration of the equipment is finished, wherein the appointed parameter table stores the operation parameter codes of the equipment; and when the equipment is determined to finish the variety setting, enabling the power-down memory function, and storing the running state data corresponding to the power-down memory function in a public storage area. By adopting the technical means, the problem of occupation of the storage space of the variant parameters can be solved, the storage space of the flash memory is saved, the utilization rate of the storage space of the flash memory is improved, and the management effect of the storage space is optimized.

Description

Electrical equipment power-on configuration method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of board card setting, in particular to a method and a device for power-on configuration of electrical equipment, electronic equipment and a storage medium.
Background
When the electrical equipment performs the configuration of the operation parameters, the configuration of the operation parameters of the electrical equipment with the same model and different hardware configurations also has differences. For example, for a drum washing machine with the same model and different hardware configurations, different kilogram numbers and rotation speed configurations exist. Under different hardware configurations, the washing flow table, water level table and other related operating parameter configurations of the whole machine of the drum washing machine are different.
At present, in order to facilitate the configuration of operating parameters of electrical equipment with the same model and different hardware configurations, in the production process of a control board of the electrical equipment with the same model, a set of common codes corresponding to different operating parameters is set for the equipment control board, and all the operating parameters are stored in a flash memory through a certain storage space, so as to produce a common control board corresponding to the electrical equipment with different hardware configurations. And storing the operation parameter codes corresponding to different hardware configurations in a memory in a parameter table mode by adopting a variant setting mode. And subsequently, when the operation parameters of the electrical equipment are set, selecting a corresponding parameter table from the flash memory to set the operation parameters of the current electrical equipment according to the hardware configuration of the electrical equipment, so as to realize the operation parameter configuration of the electrical equipment with the same model and different hardware configurations. The operation parameter configuration process is a variant setting process, correspondingly, the operation parameter codes corresponding to different hardware configurations and different electrical equipment models are called variant parameters, and a carrier parameter table for storing the variant parameters is a variant parameter table.
However, after the operation parameters are set in a variable setting mode on the production line, the operation parameters of the electrical equipment are relatively fixed. The remaining variant parameter tables in the flash memory are not used when the electrical device is put into use. The part of the variant parameter table still occupies a certain storage space, which affects the space utilization of the flash memory.
Disclosure of Invention
The embodiment of the application provides an electrical equipment power-on configuration method and device, electronic equipment and a storage medium, which can save the storage space of a flash memory, solve the problem of storage space occupation of variant parameters and optimize the management effect of the storage space.
In a first aspect, an embodiment of the present application provides a power-on configuration method for an electrical device, including:
after the equipment is powered on, judging whether the current equipment completes variety setting;
when the equipment is determined not to complete variation setting, extracting a designated parameter table from all parameter tables pre-stored in a public storage area of a flash memory, configuring the operation parameters of the equipment based on the designated parameter table, and deleting all parameter tables in the flash memory after the operation parameter configuration of the equipment is completed, wherein the designated parameter table stores the operation parameter codes of the equipment;
and when determining that the equipment completes the variety setting, enabling a power-down memory function, and storing the running state data corresponding to the power-down memory function in the public storage area.
In a second aspect, an embodiment of the present application provides an electrical apparatus power configuration apparatus, including:
the judgment module is used for judging whether the current equipment completes the variety setting after the equipment is powered on;
the device comprises a variant setting module, a storage module and a storage module, wherein the variant setting module is used for extracting an appointed parameter table from all parameter tables pre-stored in a public storage area of a flash memory when the device is determined not to finish variant setting, configuring the operation parameters of the device based on the appointed parameter table, and deleting all parameter tables in the flash memory after the operation parameter configuration of the device is finished, wherein the appointed parameter table stores the operation parameter codes of the device;
and the power-down memory module is used for enabling a power-down memory function when the equipment is determined to finish the variety setting, and storing the running state data corresponding to the power-down memory function in the public storage area.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the electrical device power-on configuration method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the electrical apparatus power-on configuration method according to the first aspect.
After the equipment is powered on, judging whether the current equipment completes the variety setting; when the situation that the equipment does not finish the variation setting is determined, extracting an appointed parameter table from all parameter tables pre-stored in a public storage area of a flash memory, configuring the operation parameters of the equipment based on the appointed parameter table, and deleting all the parameter tables in the flash memory after the operation parameter configuration of the equipment is finished, wherein the appointed parameter table stores the operation parameter codes of the equipment; and when the equipment is determined to finish the variety setting, enabling the power-down memory function, and storing the running state data corresponding to the power-down memory function in a public storage area. By adopting the technical means, the problem of occupation of storage space of variant parameters can be solved, the storage space of the flash memory is saved, the utilization rate of the storage space of the flash memory is improved, and the management effect of the storage space is optimized by integrating the variant setting function and the power failure memory function, deleting each parameter table in the flash memory after the variant setting function is executed according to whether the equipment completes the function corresponding to the variant setting enable.
In addition, according to the embodiment of the application, the storage areas of the variant setting function and the power failure memory function are mapped to the public storage area in the flash memory, and corresponding functions are respectively executed according to whether the equipment is subjected to variant setting, so that the utilization rate of codes can be increased, and the waste of storage resources caused by independent functions is avoided.
Drawings
Fig. 1 is a flowchart of a power-on configuration method for an electrical device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a flash memory structure according to a first embodiment of the present application;
FIG. 3 is a flowchart illustrating a variation setting determination process according to an embodiment of the present application;
FIG. 4 is a flow chart of a variant arrangement according to one embodiment of the present application;
FIG. 5 is a schematic storage diagram of a common storage area in the first embodiment of the present application;
fig. 6 is a schematic structural diagram of a power configuration apparatus for electrical equipment according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The application provides a power-on configuration method for electrical equipment, which aims to enable two functions to share one storage area through a power-off memory function and a variant setting function of the equipment, and delete a parameter table which is not needed by the equipment, so that the storage space of a flash memory is saved, unnecessary space occupation is avoided, and the utilization rate of the storage space is improved. For the conventional variant configuration, the operating parameter codes corresponding to different hardware configurations are usually stored in the memory in the form of parameter tables. And when the operating parameters of the electrical equipment are set subsequently, selecting a corresponding parameter table from the flash memory to set the operating parameters of the current electrical equipment according to the hardware configuration of the electrical equipment, so as to realize the configuration of the operating parameters of the electrical equipment with different hardware configurations of the same model. And the power failure memory function is that the equipment can be restored to the state of the previous running moment after power failure occurs and power is re-electrified in the running process. The power failure memory function needs to use part of space in the flash memory for storing key parameters at the time of power failure, reading and identifying the key parameters after power is re-powered on, and restoring the previous power failure state. Since the power-down memory function and the variant setting function are independent, the parameter table which is not needed by the equipment is still kept in the flash memory after the variant setting is finished, and the problem of storage space occupation is caused. Therefore, the power-on configuration method for the electrical equipment is provided to solve the problem of storage space occupation of the variant parameters.
The first embodiment is as follows:
fig. 1 is a flowchart of an electrical apparatus power-on configuration method provided in an embodiment of the present application, where the electrical apparatus power-on configuration method provided in this embodiment may be executed by an electrical apparatus, the electrical apparatus may be implemented by software and/or hardware, and the electrical apparatus may be formed by two or more physical entities or may be formed by one physical entity. Generally, the electric appliance may be a washing machine, a refrigerator, an air conditioner, or the like.
The following description will be given by taking the electrical apparatus as an example of a main body for executing the power-on configuration method of the electrical apparatus.
Referring to fig. 1, the power-on configuration method for the electrical equipment specifically includes:
and S110, after the equipment is powered on, judging whether the current equipment completes the variety setting.
For the variant setting, after the equipment completes the variant setting on the production line, the operation parameters of the whole equipment are fixed. For example, after the washing machine completes the variety setting on the production line, the inherent properties of the washing machine such as the rotating speed, the kilogram number and the like are determined. In the subsequent variant-set process, the remaining parameter tables that are not used in the variant-set process are not used again. Likewise, the apparatus will not thereafter be subjected to the variant setting operation again. For the power-down memory function, the memory function is actually used only after the production line sets the variation parameters. Based on the inherent operating characteristics of the variant setting function and the power-down memory function, the embodiment of the application integrates the variant setting function and the power-down memory function which are originally independent of each other. As shown in fig. 2, a schematic diagram of a flash memory structure according to an embodiment of the present application is provided. Wherein, a storage area is divided in the flash memory to be used as a common storage area of a variant setting function and a power-down memory function. The memory areas of the two are mapped into the same memory area in the flash memory, and the time-sharing multiplexing mode is adopted to respectively enable the execution of the variant setting function and the power-down memory function. Therefore, the utilization rate of the codes can be effectively increased, the waste of storage resources caused by mapping the variant setting function and the power failure memory function to different storage areas of the flash memory respectively is avoided, and the storage space management effect of the equipment is further optimized.
Specifically, after the device completes the hardware and software configuration on the production line, when the device is powered on, it is first determined whether the device completes the variation setting. It can be understood that the operation parameter configuration is the basis for normal operation of the device, and for a device without operation parameter configuration, many core functions of the device cannot be used normally. Therefore, after the software and hardware configuration of the equipment is completed, the equipment needs to be subjected to the variable setting first, and the operating parameters of the equipment are configured.
When judging whether the current equipment completes the variation setting, determining whether the current equipment completes the variation setting or not according to the detection result by detecting whether a fixed-format variation setting indication mark exists in the public storage area, wherein the variation setting indication mark is used for marking that the current equipment does not perform the variation setting. In the embodiment of the application, in the compiling stage of the board card code of the device, the parameter tables corresponding to different hardware configurations of the device are stored in the public storage area of the flash memory in advance. Each parameter table comprises operation parameter codes of the equipment under the corresponding hardware configuration, and the operation parameter codes are used for carrying out the subsequent operation parameter variation setting of the equipment. On the other hand, the embodiment of the application also stores a segment of fixed-format variation setting indication marks at the designated position of the public storage area, and the indication mark is used for indicating that the current equipment does not perform variation setting. Therefore, after the subsequent equipment is powered on, whether the variation setting is carried out or not can be judged by detecting whether the common storage area has the variation setting indication mark with the fixed format or not. And judging whether the designated position has a variant setting indicating mark with a fixed format or not by detecting the designated position of the public storage area, wherein the designated position is used for placing the variant setting indicating mark.
Illustratively, in the compiling stage of the board code, a fixed format variant setting indication mark is stored in the most open position of the public storage area of the flash memory. Correspondingly, the variation setting indication mark is configured in advance for the power-on running program of the equipment, and the position where the power-on running program needs to be detected is indicated. So as to subsequently detect the variation setting indicator in dependence on the position of the indication detection by comparing the detected variation setting indicator with a pre-configured variation setting indicator and determining that the current apparatus is not performing variation setting when the two match. For example, the binary symbol "1" is used to indicate that the device has completed the variant settings and "0" indicates that the device has not completed the variant settings. The corresponding binary symbols are stored in the most open position of the public storage area of the flash memory, and the corresponding marking relation of the binary symbols '1' and '0' is configured for the power-on running program. And the subsequent power-on running program can determine whether the current equipment completes variant setting according to the binary symbol detected at the initial position of the public storage area of the flash memory.
Referring to fig. 3, a flowchart for determining the variation setting is provided, and after determining whether the apparatus has performed the variation setting based on the detection result of the variation setting indication flag, if the apparatus has completed the variation setting, the apparatus enables the power-down memory function and the stationary variation setting function. Otherwise, if the device does not complete the variant setting at this time, the variant setting function is enabled, and the power-down memory function is disabled. And the variant setting function and the power failure memory are triggered in a time-sharing multiplexing mode according to whether the equipment completes variant setting. And the running parameters set by the variant setting function and the running state data corresponding to the power-down memory function are stored in the public storage area, so that the variant setting function and the power-down memory function can be integrated, and independent storage areas do not need to be respectively allocated in a flash memory for the variant setting function and the power-down memory function, so that the occupation of storage resources is reduced, and the management of storage space is optimized.
S1201, when determining that the equipment does not finish the variety setting, forbidding enabling the specified program corresponding to the running parameters of the equipment, and extracting a specified parameter table from each parameter table pre-stored in a public storage area of a flash memory.
Further, based on the judgment result of the above step S110, when it is determined that the present apparatus does not complete variation setting, variation setting of the present apparatus is performed by enabling the variation setting function. Alternatively, the enabling of the variation setting function may be an enabling operation that is automatically triggered when it is determined that the current apparatus does not complete the variation setting. Or outputting corresponding prompt information when the current equipment is determined not to complete the variation setting. The operator triggers the enabling of the variant set function by corresponding interaction based on the presence information. The current device triggers enabling of the current device variation setting function in response to the interaction after receiving the associated interaction. In addition, considering that the corresponding running program cannot execute the corresponding program flow according to the running parameters of the variation setting when the variation setting of the device is not completed, in order to avoid the wrong running of the running program, the specific program corresponding to the running parameters of the current device needs to be prohibited from being enabled before the variation setting function is enabled.
As shown in fig. 4, after the variant setting function is enabled, the device performs variant setting, and at this time, the parameter table to be used is extracted from the parameter table pre-stored in the public storage area to perform operation parameter configuration, thereby completing the variant setting of the device. It can be understood that, in order to facilitate the production of the board, in the compiling stage of the board code, the operation parameter codes of different hardware parameters of the same model device are all stored in the common storage area of the flash memory in the form of the parameter table. That is, the common storage area stores the operation parameter codes corresponding to all the hardware configuration types. When the variation setting of the equipment operation parameters is carried out subsequently, the parameter table which is in accordance with the current hardware configuration can be selected from the parameter table according to the actual hardware configuration type of the current equipment, and the operation parameter configuration of the equipment is carried out based on the operation parameter codes of the parameter table.
Specifically, when the parameter table is extracted, the hardware configuration information of the device is acquired, each parameter table is queried based on the hardware configuration information, and the specified parameter table adapted to the hardware configuration information is extracted from each parameter table. And for the parameter table pre-stored in the public storage area, binding and storing the parameter table and the corresponding hardware configuration information in the public storage area by determining the adapted hardware configuration information. Correspondingly, when the variation setting is carried out, the corresponding parameter table can be inquired in the public storage area by acquiring the hardware configuration information of the current equipment based on the hardware configuration information, so that the extraction of the parameter table is completed.
S1202, configuring the operation parameters of the equipment based on the specified parameter table, and deleting each parameter table in the flash memory after the operation parameter configuration of the equipment is completed, wherein the specified parameter table stores the operation parameter codes of the equipment.
Further, based on the obtained designated parameter table, the designated parameter table is stored in an operation parameter storage area of the equipment so as to be called by a corresponding operation program of the equipment. When the operation parameter is configured, the parameter packet is stored in the corresponding operation parameter storage area, and when the subsequent device runs the program, the corresponding operation parameter can be obtained by calling the corresponding parameter table in the operation parameter storage area, so that the operation flow of the device program is executed.
Optionally, referring to fig. 4, in the embodiment of the present application, corresponding to configuration of the operation parameter, the parameter table is written to the rearmost end of the common storage area, the rearmost end of the common storage area is used as an operation parameter storage area, and the subsequent device operation program invokes the operation parameter in the area to execute a corresponding job flow, so that configuration of the operation parameter is completed. In the above, the specified parameter table is written to the specified position of the public storage area, so that the storage space utilization rate of the public storage area can be further improved, and the memory space management effect of the flash memory can be further optimized.
Thereafter, the variation setting indicator of the common storage area is erased upon determining that the configuration of the operational parameters of the device is complete. It will be appreciated that in order to facilitate accurate determination of whether the device has completed the variation setting when the subsequent device is powered on, the variation setting indicator needs to be erased. If the subsequent equipment does not detect the indication mark of the variation setting, the power-down memory function can be enabled to execute the relevant operation of the power-down memory function.
Further, after erasing the variation setting indication mark, by restarting the apparatus, and judging again whether the apparatus completes the variation setting after the apparatus is restarted. Due to the fact that the variation setting indication mark is erased, the power-down memory function of the device can be triggered through software restarting, and relevant operations of the power-down memory function are executed.
S1301, enabling the designated program and enabling a power-down memory function when the equipment is determined to finish the variety setting;
s1302, storing the running state data corresponding to the power-down memory function in the public storage area.
Specifically, after the device is judged to have completed the variation setting based on the variation setting indication mark, the device enables the designated program corresponding to the configured operation parameter. So that the designated program can execute the corresponding program flow using the configured operating parameters. For example, before the variable setting function of the washing machine is enabled, the washing program of the washing machine is required to be disabled, and the washing program is prevented from being mistakenly operated because the operation parameters cannot be found. After the variety setting is finished and the operation parameters of the washing program are set, the forbidding of the washing program is released, and the washing program is enabled. When the washing program is running, the corresponding washing process can be executed by using the configured running parameters. In another aspect, the device further enables the power-down memory function and disables the variant set-up function to cause the device to perform operations associated with the power-down memory function. It will be appreciated that after the power-down memory function is triggered, the variant set function is disabled, and at this time, the operating parameters of the device are relatively fixed, and the common memory area may be used by the power-down memory function. It should be noted that, because the variant setting stores the designated parameter table that the device needs to use in the designated location of the common storage area, the designated location is the operation of the power-down memory function, so as to avoid the condition that the power-down memory function incorrectly operates the parameter table of the common storage area, which results in the loss of the device operating parameters.
Optionally, as shown in fig. 5, a schematic diagram of a common storage area in the embodiment of the present application is provided. Wherein two sub-regions A, B are divided in the common storage region. The A area is used for storing a designated parameter table, and the operation of the parameter packet of the area is forbidden by default. And the B area is used for storing the running state data corresponding to the power-down memory function. It can be understood that after the power-down memory function is enabled, when the device system is powered down, the power-down memory function stores the relevant operating state data of the device into the B area, so as to be used for recovering the operating state of the device after the device is powered up again. For areas other than A, B, the data in the corresponding area can be erased under the influence of system power failure. Therefore, the specified parameter table is stored in the corresponding position of the public storage area, so that the problem of storage space resource occupation is solved, and the condition that the operation parameters are erased due to the influence of system power failure is avoided.
Optionally, in an embodiment, after the device completes the variation setting, the erasing operation of the useless parameter table is not actively performed on each parameter table in the flash memory. But through restarting the device, after the power-down memory function is enabled, when the system is restarted in a power-down mode, because the parameter table is not stored in the A, B two sub-areas, the power-down memory cannot store the part of the parameter table at this time. After the system is powered off, the data of the parameter packet can be erased, so that the problem of occupation of redundant parameter tables to system storage is solved.
For example, a variation of the drum washing machine is taken as an example. The drum washing machine has different kilogram numbers and rotation speed configurations corresponding to the same model, and the drum washing machine with different hardware configurations has different overall relevant operation parameter configurations such as parameters of a washing flow chart, a water level meter and the like. After the production of software and hardware is completed on a production line of the washing machine, the washing machine is powered on, and the power-down memory function executes a corresponding power-down memory flow if the power-down memory function is enabled according to a judgment result by judging whether the washing machine completes the variety setting. If the variation setting function is enabled, the appointed parameter table corresponding to the kilogram number and the rotating speed configuration is extracted from the parameter table pre-stored in the public storage area of the flash memory, and the appointed parameter table is put at a fixed position (such as the tail end) of the public storage area for the normal washing process. Then, the variation setting indication flag of the common storage area is erased, and the washing machine restart operation is performed. After the washing machine is restarted, if the situation that the variety setting indication mark does not exist is detected, the power-down memory function is started, and then the related functions of the washing machine can be normally executed. According to the embodiment of the application, based on actual services, the storage resources of the two functions are integrated by using the difference between the required time of the power-down memory function and the required time of the variant setting function, so that the effect of saving code space is achieved. Therefore, under the condition of fixed hardware cost, the product competitiveness is improved, and the memory management effect is optimized.
After the equipment is powered on, judging whether the current equipment completes variety setting; when the situation that the equipment does not finish the variation setting is determined, extracting an appointed parameter table from all parameter tables pre-stored in a public storage area of a flash memory, configuring the operation parameters of the equipment based on the appointed parameter table, and deleting all the parameter tables in the flash memory after the operation parameter configuration of the equipment is finished, wherein the appointed parameter table stores the operation parameter codes of the equipment; and when the equipment is determined to finish the variety setting, enabling the power-down memory function, and storing the running state data corresponding to the power-down memory function in a public storage area. By adopting the technical means, the problem of occupation of storage space of variant parameters can be solved, the storage space of the flash memory is saved, the utilization rate of the storage space of the flash memory is improved, and the management effect of the storage space is optimized by integrating the variant setting function and the power failure memory function, deleting each parameter table in the flash memory after the variant setting function is executed according to whether the equipment completes the function corresponding to the variant setting enable.
In addition, according to the embodiment of the application, the storage areas of the variant setting function and the power failure memory function are mapped to the public storage area in the flash memory, and corresponding functions are respectively executed according to whether the equipment carries out variant setting or not, so that the utilization rate of codes can be increased, and the storage resource waste caused by independent functions is avoided.
Example two:
on the basis of the foregoing embodiments, fig. 6 is a schematic structural diagram of a power configuration apparatus for electrical equipment according to a second embodiment of the present application. Referring to fig. 6, the power configuration apparatus for electrical equipment provided in this embodiment specifically includes: a judging module 21, a variation setting module 22 and a power-down memory module 23.
The judging module 21 is configured to judge whether the current device completes the variety setting after the device is powered on;
the variant setting module 22 is configured to, when it is determined that the device does not complete variant setting, extract a specified parameter table from parameter tables pre-stored in a public storage area of the flash memory, configure operating parameters of the device based on the specified parameter table, and delete the parameter tables in the flash memory after the configuration of the operating parameters of the device is completed, where the specified parameter table stores operating parameter codes of the device;
the power-down memory module 23 is configured to enable a power-down memory function when it is determined that the device has completed the variation setting, and store the operating state data corresponding to the power-down memory function in the public storage area.
Specifically, the judging module 21 includes:
and the detection unit is used for detecting whether the common storage area has a fixed-format variation setting indication mark or not, and determining whether the current equipment completes variation setting or not according to the detection result, wherein the variation setting indication mark is used for marking that the current equipment does not carry out variation setting.
The detection unit is specifically configured to detect a designated location of the common storage area, and determine whether a fixed-format variant setting indication mark exists at the designated location, where the designated location is used for placing the variant setting indication mark.
Specifically, the variation setting module 22 includes:
and the erasing unit is used for determining that the operation parameter configuration of the equipment is completed and erasing the variation setting indication mark of the public storage area.
And the query unit is used for acquiring the hardware configuration information of the equipment, querying each parameter table based on the hardware configuration information, and extracting the specified parameter table adaptive to the hardware configuration information from each parameter table.
A storage unit for storing the designated parameter table in an operating parameter storage area of the device for the corresponding operating program of the device to call
And the restarting unit is used for restarting the equipment and judging whether the equipment completes variety setting again after the equipment is restarted.
Specifically, the variation setting module 22 includes:
the disabling unit is used for forbidding enabling the specified program corresponding to the running parameters of the equipment;
correspondingly, the power-on configuration device for the electrical equipment further comprises:
and the enabling module is used for enabling the designated program when the equipment is determined to complete the variant setting so as to enable the designated program to execute the corresponding program flow by using the designated parameter table.
After the equipment is powered on, judging whether the current equipment completes variety setting; when the situation that the equipment does not finish the variation setting is determined, extracting an appointed parameter table from all parameter tables pre-stored in a public storage area of a flash memory, configuring the operation parameters of the equipment based on the appointed parameter table, and deleting all the parameter tables in the flash memory after the operation parameter configuration of the equipment is finished, wherein the appointed parameter table stores the operation parameter codes of the equipment; and when the equipment is determined to finish the variety setting, enabling the power-down memory function, and storing the running state data corresponding to the power-down memory function in a public storage area. By adopting the technical means, the problem of occupation of the storage space of the variant parameters can be solved, the storage space of the flash memory is saved, the utilization rate of the storage space of the flash memory is improved, and the management effect of the storage space is optimized by integrating the variant setting function and the power failure memory function, enabling the corresponding function according to whether the equipment completes the variant setting or not, and deleting each parameter table in the flash memory after executing the variant setting function.
In addition, according to the embodiment of the application, the storage areas of the variant setting function and the power failure memory function are mapped to the public storage area in the flash memory, and corresponding functions are respectively executed according to whether the equipment carries out variant setting or not, so that the utilization rate of codes can be increased, and the storage resource waste caused by independent functions is avoided.
The power-on configuration device for electrical equipment provided by the second embodiment of the present application can be used to execute the power-on configuration method for electrical equipment provided by the first embodiment, and has corresponding functions and beneficial effects.
Example three:
an embodiment of the present application provides an electronic device, and with reference to fig. 7, the electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor 31, the memory 32, the communication module 33, the input device 34 and the output device 35 of the electronic apparatus may be connected by a bus or other means.
The memory 32 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the power-on configuration method of the electrical equipment according to any embodiment of the present application (for example, the judgment module, the variation setting module, and the power-down memory module in the power-on configuration apparatus of the electrical equipment). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 33 is used for data transmission.
The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, so as to implement the above-mentioned power-on configuration method for the electrical equipment.
The input device 34 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen.
The electronic device provided by the above can be used to execute the power-on configuration method of the electrical device provided by the first embodiment, and has corresponding functions and beneficial effects.
Example four:
an embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a power-on configuration method for an electrical device, where the power-on configuration method for the electrical device includes: after the equipment is powered on, judging whether the current equipment completes variety setting; when the equipment is determined not to complete variation setting, extracting a designated parameter table from all parameter tables pre-stored in a public storage area of a flash memory, configuring the operation parameters of the equipment based on the designated parameter table, and deleting all parameter tables in the flash memory after the operation parameter configuration of the equipment is completed, wherein the designated parameter table stores the operation parameter codes of the equipment; and when the equipment is determined to finish the variety setting, enabling a power-down memory function, and storing the running state data corresponding to the power-down memory function in the public storage area.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium including the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described power-on configuration method for an electrical device, and may also perform related operations in the power-on configuration method for an electrical device provided in any embodiment of the present application.
The power-on configuration apparatus, the storage medium, and the electronic device provided in the foregoing embodiments may perform the power-on configuration method for an electrical device provided in any embodiment of the present application, and refer to the power-on configuration method for an electrical device provided in any embodiment of the present application without detailed technical details described in the foregoing embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (11)

1. An electrical equipment power-on configuration method is characterized by comprising the following steps:
after the equipment is powered on, judging whether the current equipment completes variety setting;
when the equipment is determined not to complete variation setting, extracting a designated parameter table from all parameter tables pre-stored in a public storage area of a flash memory, configuring the operation parameters of the equipment based on the designated parameter table, and deleting all parameter tables in the flash memory after the operation parameter configuration of the equipment is completed, wherein the designated parameter table stores the operation parameter codes of the equipment;
and when determining that the equipment completes the variety setting, enabling a power-down memory function, and storing the running state data corresponding to the power-down memory function in the public storage area.
2. The power-on configuration method for electrical equipment according to claim 1, wherein the determining whether the current equipment completes the variation setting comprises:
detecting whether a fixed-format variant setting indication mark exists in the public storage area, and determining whether the current equipment completes variant setting according to the detection result, wherein the variant setting indication mark is used for identifying that the current equipment does not perform variant setting.
3. The power-on configuration method for electrical equipment according to claim 2, wherein detecting whether the common storage area has a fixed-format variant setting indication flag comprises:
detecting a designated position of the public storage area, and judging whether a fixed-format variant setting indication mark exists in the designated position, wherein the designated position is used for placing the variant setting indication mark.
4. The power-on configuration method for electrical equipment according to claim 2, wherein after extracting the specified parameter table from the parameter tables pre-stored in the common storage area of the flash memory and configuring the operation parameters of the equipment based on the specified parameter table, the method further comprises:
determining that the configuration of the operating parameters of the device is complete, erasing the variation setting indicator of the common storage area.
5. The power-on configuration method for electrical equipment according to claim 1, wherein the extracting specified parameter table from each parameter table pre-stored in the common storage area of the flash memory comprises:
acquiring hardware configuration information of the equipment, inquiring various parameter tables based on the hardware configuration information, and extracting a specified parameter table adaptive to the hardware configuration information from the various parameter tables.
6. The power-on configuration method for electrical equipment according to claim 1, wherein configuring the operating parameters of the equipment based on the specified parameter table comprises:
and storing the designated parameter table into an operation parameter storage area of the equipment so as to be called by a corresponding operation program of the equipment.
7. The power-on configuration method for electrical equipment according to claim 1, further comprising, after deleting each parameter table in the flash memory:
and restarting the equipment, and judging whether the equipment completes the variation setting again after the equipment is restarted.
8. The power-on configuration method for electrical equipment according to claim 1, wherein before extracting a specified parameter table from various parameter tables pre-stored in a common storage area of a flash memory and configuring the operation parameters of the equipment based on the specified parameter table, the method further comprises:
prohibiting enabling of a designated program corresponding to the operating parameters of the equipment;
correspondingly, when the device is determined to complete the variation setting, the method further comprises the following steps:
enabling the designated program to enable the designated program to execute the corresponding program flow by using the designated parameter table.
9. An electrical equipment power-on configuration device, comprising:
the judgment module is used for judging whether the current equipment completes the variety setting after the equipment is powered on;
the device comprises a variant setting module, a storage module and a storage module, wherein the variant setting module is used for extracting an appointed parameter table from all parameter tables pre-stored in a public storage area of a flash memory when the device is determined not to finish variant setting, configuring the operation parameters of the device based on the appointed parameter table, and deleting all parameter tables in the flash memory after the operation parameter configuration of the device is finished, wherein the appointed parameter table stores the operation parameter codes of the device;
and the power-down memory module is used for enabling a power-down memory function when the equipment is determined to finish the variety setting, and storing the running state data corresponding to the power-down memory function in the public storage area.
10. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the electrical device power-on configuration method of any one of claims 1-8.
11. A storage medium containing computer-executable instructions, which when executed by a computer processor, perform the electrical device power-on configuration method of any one of claims 1 to 8.
CN202110902890.5A 2021-08-06 2021-08-06 Electrical equipment power-on configuration method and device, electronic equipment and storage medium Pending CN115705216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110902890.5A CN115705216A (en) 2021-08-06 2021-08-06 Electrical equipment power-on configuration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110902890.5A CN115705216A (en) 2021-08-06 2021-08-06 Electrical equipment power-on configuration method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115705216A true CN115705216A (en) 2023-02-17

Family

ID=85178459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110902890.5A Pending CN115705216A (en) 2021-08-06 2021-08-06 Electrical equipment power-on configuration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115705216A (en)

Similar Documents

Publication Publication Date Title
CN101937351B (en) Method and system for automatically installing application software
CN109791497B (en) Method, device and terminal for executing hot patch
CN106933593A (en) A kind of system switching method and device based on mobile terminal
CN105159721A (en) Method of multi-mode startup intelligent equipment and system of multi-mode startup intelligent equipment
CN107766177A (en) Start optimization method, device, storage medium and terminal device
CN109614267A (en) A kind of method, apparatus, storage medium and terminal for repairing booting abnormal problem
CN113254286A (en) Log output method and system of server and related device
CN110944286A (en) Method, apparatus, system and storage medium for providing positioning information
CN104809046A (en) Application program networking control method and application program networking control device
CN112306411A (en) Data storage method and device, nonvolatile storage medium and processor
CN107087164A (en) A kind of method and apparatus of device power-up
CN115705216A (en) Electrical equipment power-on configuration method and device, electronic equipment and storage medium
CN102722378B (en) A kind of method of non intelligent mobile phone and its system program of upgrading
CN115357355A (en) Method, device and equipment for software cross-system migration and readable storage medium
CN113704177B (en) Storage method, system and related components of server firmware upgrade file
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal
CN114780114A (en) Firmware upgrading method, system, vehicle and storage medium
CN110209418B (en) Program updating method, device, equipment and computer readable storage medium
CN112527341B (en) Vehicle system upgrading method, vehicle system and computer storage medium
CN107302605B (en) Configuration method and device of television proxy server, television and storage medium
CN107844394B (en) Memory leak positioning method and device
CN102460386B (en) For the method and apparatus of load document during bootup process
US8893132B2 (en) Information processing apparatus
CN112783678A (en) Vehicle-mounted terminal power-off processing method and system and vehicle-mounted terminal
CN106954205B (en) Mobile data switch control method and device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination