Mainboard device burning and configuration method, medium and equipment
By pre-burning the general function program code in the motherboard device and burning the local function code based on the configuration information, the problem of surge in program versions of various models is solved, the burning efficiency is improved and maintenance costs is reduced, and the motherboard functions is flexible upgraded.
Patent Information
- Application Number
- CN202510042099.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-09
AI Technical Summary
In the electronic equipment manufacturing industry, with diversified market demand and iterative technology, electronic equipment manufacturers need to produce and maintain a variety of different models at the same time, resulting in a surge in program versions, low burning efficiency and high maintenance costs.
By pre-calculating the general function program code in the motherboard device, and querying and burning the corresponding local function codes based on the configuration information of the electronic device, the personalized function configuration of the motherboard is realized.
It significantly improves the burning efficiency of the motherboard, reduces production costs, simplifies the maintenance process, reduces long-term maintenance costs, and supports the upgrade and optimization of motherboard functions.
Smart Images

Figure CN119960777A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of motherboard device configuration, and more particularly to a motherboard configuration method and system. Background Art
[0002] In the electronic equipment manufacturing industry, the motherboard is the core component of the equipment. The coordination between its hardware configuration and software program is directly related to the performance and application functions of the equipment. The traditional motherboard program burning method generally adopts the strategy of one model corresponding to one independent code, that is, each model needs to be developed and burned with the corresponding program code according to its specific hardware configuration and application requirements. This one-to-one burning mode can still maintain high operating efficiency and management clarity when the model is single or small.
[0003] However, with the diversification of market demand and the acceleration of technology iteration, electronic equipment manufacturers often need to produce and maintain multiple different models at the same time, which leads to a surge in program versions. In this context, when burning motherboard programs at the supplier end, staff must strictly distinguish between programs for different models. Any confusion may cause the equipment on the subsequent production line to not operate properly, and then require the correct program to be re-burned, which leads to low efficiency in motherboard resource allocation and high costs for subsequent maintenance and function upgrades. Summary of the invention
[0004] The present application aims at the problems in the prior art, and provides a method for burning and configuring a mainboard device, which can improve the efficiency of mainboard resource allocation and simplify maintenance costs, by being able to burn different local function codes according to the models of different devices.
[0005] A method for burning a motherboard device, applied to a burning device, comprises the following steps:
[0006] Acquire configuration information of an electronic device; wherein the electronic device includes a mainboard device to be burned, the mainboard device to be burned is pre-burned with a mainboard general function program code, and the mainboard general function program code includes a number of program code modules for realizing different function configurations;
[0007] According to the configuration information, a local function code corresponding to the electronic device is acquired, wherein the local function code is used to instruct the electronic device to run the program code module corresponding to its function configuration;
[0008] The local function code is burned into a mainboard device to be burned in the electronic device.
[0009] A method for configuring a motherboard device comprises the following steps:
[0010] Receiving a local function code burned by a burning device, wherein the mainboard device is pre-burned with a mainboard general function program code, and the mainboard general function program code includes a plurality of program code modules for realizing different function configurations;
[0011] According to the local function code, the corresponding program code module is called to perform function configuration on the mainboard device.
[0012] The present application also provides a motherboard device, which is applied to an electronic device, and the motherboard device is burned with a motherboard general function program code and a local function code; wherein the motherboard general function program code includes several program code modules that implement different function configurations, and the local function code is used to guide the electronic device to run the program code module corresponding to its function configuration.
[0013] Compared with the prior art, the motherboard device of this solution is pre-burned with the universal motherboard universal function program code before leaving the factory, reducing confusion and errors caused by too many program versions. Then, according to the configuration information of the electronic device, only a small amount of local function code needs to be queried and burned to complete the personalized function configuration of the motherboard. Through the mode of "one-time universal burning + secondary function code burning", not only the burning efficiency of the motherboard is significantly improved and the production cost is reduced, but also the local function code only needs to be updated and replaced in the future to achieve the upgrade and optimization of the motherboard function, which greatly reduces the long-term maintenance cost.
[0014] In order to provide a clearer understanding of the present application, the specific implementation of the present application will be described below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a method for burning a motherboard device in this application;
[0016] Figure 2 A flow chart of a method for obtaining a local function code in a mainboard device burning method of the present application;
[0017] Figure 3 A flow chart of a method for performing local function code format verification in a mainboard device configuration method of the present application;
[0018] Figure 4 This is a schematic diagram of a motherboard device burning system of the present application. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0020] It should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the application. It should be understood that the operations of the flowcharts may be implemented out of order, and steps without logical contextual relationships may be reversed in order or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowcharts, or may remove one or more operations from the flowcharts, under the guidance of the content of this application.
[0021] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0022] Example 1
[0023] See also Figure 1 , Figure 1 This is a flow chart of a method for burning a motherboard device in the present application. The present application provides a method for burning a motherboard device, which is applied to a burning device and specifically includes the following steps:
[0024] S1: Obtaining configuration information of an electronic device; wherein the electronic device includes a mainboard device to be burned, the mainboard device to be burned is pre-burned with a mainboard general function program code, and the mainboard general function program code includes a number of program code modules for realizing different function configurations;
[0025] S2: acquiring a local function code corresponding to the electronic device according to the configuration information, wherein the local function code is used to instruct the electronic device to run the program code module corresponding to its function configuration;
[0026] S3: Burning the local function code into the mainboard device to be burned of the electronic device.
[0027] In this embodiment, the electronic device may be a smart home device, such as a smart lock and a clothes drying machine.
[0028] The burning device comprises a burning database server, a data receiving server, a burning data acquisition server and a burning server. The burning database server is used to construct a burning database, and the burning database is used to store local function codes corresponding to the configuration information of the electronic device.
[0029] The data receiving server receives the configuration information of the electronic device, and the burning data acquisition server extracts the corresponding local function code from the burning database according to the configuration information and sends it to the burning server. The burning server burns the local function code into the mainboard device to be burned in the electronic device.
[0030] Compared with the prior art, the motherboard device of this solution is pre-burned with the universal motherboard universal function program code before leaving the factory, reducing confusion and errors caused by too many program versions. Then, according to the configuration information of the electronic device, it is only necessary to query and burn the corresponding local function code to complete the personalized function configuration of the motherboard. Through the mode of "one-time universal burning + secondary function code burning", not only the burning efficiency of the motherboard is significantly improved and the production cost is reduced, but also the local function code only needs to be updated and replaced in the future to achieve the upgrade and optimization of the motherboard function, which greatly reduces the long-term maintenance cost.
[0031] For step S1, in this embodiment, the configuration information refers to a set of parameters or data used to describe the hardware and software configuration of the electronic device, including: a finished product code, a motor code, and a motherboard code. The finished product code is used to characterize the product model information of the electronic device, and can be set on the surface of the electronic device in a form that is easy to scan and identify, such as a barcode or a QR code.
[0032] The motor code is used to represent the motor manufacturer information of the electronic device, and can also be set on the surface of the electronic device in a form that is easy to scan and identify, such as a barcode or a QR code. Of course, it can also be set on the motor of the electronic device in the form of a digital string, an alphanumeric combination or a specific format of coding.
[0033] The motherboard code is used to represent the motherboard model information of the motherboard device, and the WiFi manufacturer and voice manufacturer information on the motherboard device can be obtained through the motherboard model information. It can also be set on the surface of the electronic device in a form that is easy to scan and identify, such as a barcode or a QR code, and can also be set on the motherboard equipment in the form of a digital string, an alphanumeric combination, or a specific format of coding.
[0034] The finished product code, motor code and mainboard code can be scanned by an external recognition device, but the specific scanning method varies depending on the encoding form and setting location. For barcodes and QR codes, a corresponding scanner can be used; for text-based encoding, an OCR device is required for scanning and recognition. After scanning the finished product code, motor code and mainboard code by an external recognition device, the configuration information of the electronic device is obtained and sent to the data receiving server.
[0035] The motherboard universal function program code is a set of program codes pre-burned on the motherboard device by the supplier, which includes several program code modules that implement different functional configurations, and in the pre-burning process, any of the program code modules are set with initial default values, so that each program code module is in a closed or basic function state, to ensure that the electronic device can run the basic mode without burning the local function code. Therefore, for electronic devices that do not have specific function codes burned in, the full-function version of the motherboard universal program code can also perform basic testing with the default configuration, which helps manufacturers quickly verify the basic functions of the motherboard device on the production line and reduces testing costs and time.
[0036] For step S2, the local function code is used to instruct the electronic device to run the program code module corresponding to its function configuration. Figure 2 , Figure 2 The method flow chart of obtaining a local function code in a method for burning a motherboard device of the present application. The method of obtaining a local function code corresponding to the electronic device according to the configuration information includes:
[0037] S21: According to a preset local function code configuration rule, searching for a local function code that matches the combination of the finished product code, the motor code and the mainboard code.
[0038] In this embodiment, for step S21, the local function code configuration rule can be a database or table for storing and retrieving local function codes that match the finished product code, motor code and main board code of the electronic device. The local function code configuration rule can be created during the design, production or configuration stage of the electronic device, and includes various mapping relationships between the finished product code, motor code and main board code and the local function code.
[0039] The local function code includes: a product category byte, a manufacturer identification byte and a function configuration byte, wherein the product category byte is used to record the product model parameter value of the electronic device, the manufacturer identification byte is used to record the manufacturer category parameter value of the electronic device, and the function configuration byte is used to record the function configuration parameter value of the electronic device. The manufacturer identification byte and the function configuration byte both include a plurality of function bit segments.
[0040] The searching for a local function code matching the combination of the finished product code, the motor code and the mainboard code according to a preset local function code configuration rule comprises:
[0041] S211: According to the finished product code, based on the local function code configuration rule, obtain the product model parameter value matching the finished product code, and construct the product category byte;
[0042] S212: According to the motor code and the mainboard code, based on the local function code configuration rule, obtain the manufacturer category parameter value matching the motor code and the mainboard code, and construct the manufacturer identification byte;
[0043] S213: According to the finished product code, based on the local function code configuration rule, obtain the function configuration parameter value matching the finished product code, and construct the function configuration byte.
[0044] For step S211, the product category byte is composed of 8 bits, and the range of the product model parameter value that can be represented is 1 to 255, wherein different product model parameter values represent a specific product model.
[0045] In the local function code configuration rule, any finished product code is associated with a specific product model parameter value. After the burning server matches the corresponding product model parameter value according to the finished product code, it constructs the product category byte with the binary representation of the product model parameter value.
[0046] For step S212, the manufacturer identification byte is composed of 8 bits, and the manufacturer identification byte includes several first function bit segments, each of which is used to represent the voice manufacturer information, WiFi manufacturer information and motor manufacturer information of the electronic device respectively. Specifically, the first function bit segment includes a voice manufacturer bit segment, a WiFi manufacturer bit segment and a motor manufacturer bit segment. The voice manufacturer bit segment is a binary code for representing the voice manufacturer information in the electronic device, the WiFi manufacturer bit segment is a binary code for representing the WiFi manufacturer information in the electronic device, and the motor manufacturer bit segment is a binary code for representing the motor manufacturer information in the electronic device. Among them, the voice manufacturer bit segment is the 0th to 2nd bit, the WiFi manufacturer bit segment is the 3rd to 4th bit, and the motor manufacturer bit segment is the 5th to 7th bit. The values of the voice manufacturer bit segment, the WiFi manufacturer bit segment and the motor manufacturer bit segment are all binary representations. The values of the voice manufacturer bit segment, the WiFi manufacturer bit segment and the motor manufacturer bit segment are combined in sequence to obtain the manufacturer category parameter value.
[0047] For the voice vendor bit segment, 000 indicates no voice vendor, 001 indicates Dongsheng voice vendor or Tanjing voice vendor, and 010 indicates Qiying Tailun voice vendor. Of course, according to actual needs, the value of the voice vendor bit segment can also be adjusted to indicate other voice vendors.
[0048] For the WiFi vendor bit segment, 00 represents the Combo WiFi vendor. Of course, according to actual needs, the value of the WiFi vendor bit segment can also be adjusted to represent other WiFi vendors.
[0049] For the motor manufacturer bit segment, 000 indicates self-developed, 001 indicates the Wistar motor manufacturer, and 010 indicates the M5235 motor manufacturer. Of course, according to actual needs, the value of the motor manufacturer bit segment can also be adjusted to indicate other motor manufacturers.
[0050] In the local function code configuration rule, any motor code is associated with a specific motor manufacturer bit segment value; any motherboard code is associated with a specific voice manufacturer bit segment and WiFi manufacturer bit segment value. The burning server matches the motor code to the corresponding motor manufacturer bit segment value, and matches the motherboard code to the corresponding voice manufacturer bit segment and WiFi manufacturer bit segment value, and combines the voice manufacturer bit segment, WiFi manufacturer bit segment and motor manufacturer bit segment values in sequence to obtain the manufacturer category parameter value, thereby constructing the manufacturer identification byte.
[0051] For step S213, the function configuration byte includes a performance configuration byte, a basic function configuration byte, and an additional function configuration byte, wherein the performance configuration byte, the basic function configuration byte, and the additional function configuration byte respectively include a plurality of second function bit segments representing the performance configuration information of the electronic device, a plurality of third function bit segments representing the basic function configuration information of the electronic device, and a plurality of fourth function bit segments representing the additional function configuration information of the electronic device. Among them, the performance configuration byte is composed of 8 bits, and the basic function configuration byte and the additional function configuration byte are both composed of 16 bits. Of course, the basic function configuration byte may also include a first basic function configuration byte and a second basic function configuration byte, and the additional function configuration byte may also include a first additional function configuration byte and a second additional function configuration byte, wherein the first basic function configuration byte and the second basic function configuration byte include a plurality of the third function bit segments, and the first additional function configuration byte and the second additional function configuration byte include a plurality of the fourth function bit segments. The first basic function configuration byte, the second basic function configuration byte, the first additional function configuration byte, and the second additional function configuration byte are all composed of 8 bits.
[0052] The second functional bit segment includes a hanging weight bit segment, a travel requirement bit segment and a drying gear segment. The hanging weight bit segment is a binary code for representing the maximum hanging weight information, the travel requirement bit segment is a binary code for representing the maximum distance between the two ends of the electronic device when it is fully extended, and the drying gear segment is a binary code for representing different drying gear information of the electronic device. Among them, the hanging weight bit segment is the 0th to 2nd bit, the travel requirement bit segment is the 3rd to 5th bit, and the drying gear segment is the 6th to 7th bit. The values of the hanging weight bit segment, the travel requirement bit segment and the drying gear segment are all expressed in binary. The values of the hanging weight bit segment, the travel requirement bit segment and the drying gear segment are combined in sequence to obtain the performance configuration byte parameter value.
[0053] For the hanging weight segment, 000 indicates that the maximum hanging weight is 45 kg, 001 indicates that the maximum hanging weight is 25 kg, and 010 indicates that the maximum hanging weight is 35 kg. Of course, according to actual needs, the value of the hanging weight segment can also be adjusted to indicate other maximum hanging weights.
[0054] For the travel requirement bit segment, 000 indicates that the maximum travel is 1.3m, 001 indicates that the maximum travel is 1.2m, which means that when the drying equipment is fully extended, the distance between the two ends can reach 1.3m; 010 indicates that the maximum travel is 1.4m, which means that when the drying equipment is fully extended, the distance between the two ends can reach 1.4m. Of course, according to actual needs, the value of the travel requirement bit segment can also be adjusted to indicate other travel requirements.
[0055] For the drying gear segment, 00 means no other drying gear, 01 means drying gear 10cm, which means that the clothes drying rod or clothes drying rack can be adjusted to a position 10cm away from the ground or a reference point, and 10 means drying gear 12cm; which means that the clothes drying rod or clothes drying rack can be adjusted to a position 12cm away from the ground or a reference point. Of course, according to actual needs, the value of the drying gear segment can also be adjusted to represent other drying gears.
[0056] In the local function code configuration rule, any of the finished product codes is associated with a specific value of a hanging weight segment, a travel requirement segment, and a drying gear segment. The burning server matches the corresponding hanging weight segment, a travel requirement segment, and a drying gear segment value according to the finished product code, and sequentially combines the values of the hanging weight segment, the travel requirement segment, and the drying gear segment to obtain a performance configuration byte parameter value.
[0057] The third function bit segment includes a light lift rising bit segment, a limit switch bit segment, an activation enable bit segment and a first reserved bit segment. The first basic function configuration byte includes a light lift rising bit segment, a limit switch bit segment and an activation enable bit segment. The light lift rising bit segment is used to represent the binary code of the number of light lift rising times implemented by the electronic device, the limit switch bit segment is used to represent the binary code of the limit switch setting information of the electronic device, and the activation enable bit segment is used to represent whether the electronic device supports the binary code of activation enable. Among them, the light lift rising bit segment is the 0th to 1st bit, the limit switch bit segment is the 2nd to 3rd bit, the activation enable bit segment is the 4th bit, and the reserved bit segment is the 5th to 7th bit segment. The values of the light lift rising bit segment, the limit switch bit segment, the activation enable bit segment and the first reserved bit segment are all binary representations. The values of the light lift rising bit segment, the limit switch bit segment, the activation enable bit segment and the first reserved bit segment are sequentially combined to obtain the first basic function configuration byte parameter value.
[0058] For the light lift rising bit segment, 00 indicates no light lift rising function, 01 indicates light lift rising once, and 10 indicates light lift rising twice. Of course, according to actual needs, the value of the light lift rising bit segment can also be adjusted to indicate other light lift rising times.
[0059] For the limit switch segment, 00 indicates that there is no limit switch setting, 01 indicates that an upper limit switch is set, 10 indicates that a lower limit switch is set, and 11 indicates that both the upper limit switch and the lower limit switch are set. Of course, according to actual needs, the value of the light lift rising segment can also be adjusted to indicate whether a limit switch is set.
[0060] For the activation enable bit segment, 0 indicates that activation enable is not supported, and 1 indicates that activation enable is supported. Of course, according to actual needs, the value of the activation enable bit segment can also be adjusted to indicate whether activation enable is supported.
[0061] The first reserved bit segment is not directly involved in the function configuration at present, and its purpose is to reserve space for future function expansion or special configuration. The value of the reserved bit segment can be set to 0, but the burning device will not interpret or process the value of the reserved bit segment. The setting of the reserved bit segment provides possibility and flexibility for future function expansion.
[0062] In the local function code configuration rule, any of the finished product codes is associated with a specific value of a light lift rising bit segment, a limit switch bit segment, an activation enable bit segment, and a first reserved bit segment. The burning server matches the corresponding light lift rising bit segment, a limit switch bit segment, an activation enable bit segment, and a first reserved bit segment value according to the finished product code, and sequentially combines the values of the light lift rising bit segment, the limit switch bit segment, the activation enable bit segment, and the first reserved bit segment to obtain a first basic function configuration byte parameter value.
[0063] The third functional bit segment also includes a bit segment for rebounding when encountering obstacles, a bit segment for falling back when encountering obstacles, a bit segment for collecting clothes, a bit segment for drying clothes, a bit segment for optimal drying position, and a second reserved bit segment. Among them, the bit segment for rebounding when encountering obstacles is the 0th bit, the bit segment for falling back when encountering obstacles is the 1st bit, the bit segment for collecting clothes is the 2nd bit, the bit segment for drying clothes is the 3rd bit, the bit segment for optimal drying position is the 4th bit, and the second reserved bit segment is the 5th to 7th bits. The values of the bit segment for rebounding when encountering obstacles, the bit segment for falling back when encountering obstacles, the bit segment for collecting clothes, the bit segment for drying clothes, the bit segment for optimal drying position, and the second reserved bit segment are all expressed in binary. The values of the bit segment for rebounding when encountering obstacles, the bit segment for falling back when encountering obstacles, the bit segment for collecting clothes, the bit segment for drying clothes, the bit segment for optimal drying position, and the second reserved bit segment are sequentially combined to obtain the second basic function configuration byte parameter value.
[0064] For the bit segment for recovering when encountering an obstacle, 0 indicates that recovery when encountering an obstacle is not supported, and 1 indicates that recovery when encountering an obstacle is supported. Of course, according to actual needs, the value of the bit segment for recovering when encountering an obstacle can also be adjusted to indicate whether recovery when encountering an obstacle is supported.
[0065] For the resistance fallback bit segment, 0 indicates that resistance fallback is not supported, and 1 indicates that resistance fallback is supported. Of course, according to actual needs, the value of the resistance fallback bit segment can also be adjusted to indicate whether resistance fallback is supported.
[0066] For the clothing collection position segment, 0 indicates that the clothing collection position is not supported, and 1 indicates that the clothing collection position is supported. Of course, according to actual needs, the value of the clothing collection position segment can also be adjusted to indicate whether the clothing collection position is supported.
[0067] For the clothes drying position segment, 0 indicates that the clothes drying position is not supported, and 1 indicates that the clothes drying position is supported. Of course, according to actual needs, the value of the clothes drying position segment can also be adjusted to indicate whether the clothes drying position is supported.
[0068] For the optimal drying position bit segment, 0 indicates that setting the optimal drying position is not supported, and 1 indicates that setting the optimal drying position is supported. Of course, according to actual needs, the value of the optimal drying position bit segment can also be adjusted to indicate whether setting the optimal drying position is supported.
[0069] For the second reserved bit segment, you can refer to the first reserved bit segment mentioned above, which will not be repeated here.
[0070] In the local function code configuration rule, any of the finished product codes is associated with a specific value of a bit segment for rebounding when encountering an obstacle, a bit segment for falling back when encountering an obstacle, a bit segment for collecting clothes, a bit segment for drying clothes, a bit segment for optimal drying position, and a second reserved bit segment. The burning server matches the corresponding values of the bit segment for rebounding when encountering an obstacle, a bit segment for falling back when encountering an obstacle, a bit segment for collecting clothes, a bit segment for drying clothes, a bit segment for optimal drying position, and a second reserved bit segment according to the finished product code, and sequentially combines the values of the bit segment for rebounding when encountering an obstacle, a bit segment for falling back when encountering an obstacle, a bit segment for collecting clothes, a bit segment for drying clothes, a bit segment for optimal drying position, and a second reserved bit segment to obtain the second basic function configuration byte parameter value.
[0071] The fourth functional bit segment includes an illumination bit segment, a color temperature bit segment, a gradually brightening and dimming bit segment, an illumination brightness bit segment, a night light bit segment, a light chasing module bit segment, a human body sensing disinfection bit segment, and a human body sensing night light bit segment. The illumination bit segment is used to characterize whether the electronic device supports binary coding of illumination, the color temperature bit segment is used to characterize whether the electronic device supports binary coding of color temperature, the gradually brightening and dimming bit segment is used to characterize whether the electronic device supports binary coding of gradually brightening and dimming, the illumination brightness bit segment is used to characterize whether the electronic device supports binary coding of adjusting illumination brightness, the illumination bit segment is used to characterize whether the electronic device supports binary coding of illumination, the night light bit segment is used to characterize whether the electronic device supports binary coding of night light, the light chasing module bit segment is used to characterize whether the electronic device supports binary coding of light chasing module, the human body sensing disinfection bit segment is used to characterize whether the electronic device supports binary coding of human body sensing disinfection, and the human body sensing night light bit segment is used to characterize whether the electronic device supports binary coding of human body sensing night light. Among them, the lighting bit segment is the 0th bit, the color temperature bit segment is the 1st bit, the gradual brightening and dimming bit segment is the 2nd bit, the lighting brightness bit segment is the 3rd bit, the night light bit segment is the 4th bit, the light chasing module bit segment is the 5th bit, the human body sensing disinfection bit segment is the 6th bit, and the human body sensing night light bit segment is the 7th bit. The values of the lighting bit segment, color temperature bit segment, gradual brightening and dimming bit segment, lighting brightness bit segment, night light bit segment, light chasing module bit segment, human body sensing disinfection bit segment and human body sensing night light bit segment are all expressed in binary. The values of the lighting bit segment, color temperature bit segment, gradual brightening and dimming bit segment, lighting brightness bit segment, night light bit segment, light chasing module bit segment, human body sensing disinfection bit segment and human body sensing night light bit segment are combined in sequence to obtain the first additional function configuration byte parameter value.
[0072] For the lighting bit segment, 0 indicates that lighting is not supported, and 1 indicates that lighting is supported. Of course, according to actual needs, the value of the lighting bit segment can also be adjusted to indicate whether lighting is supported.
[0073] For the color temperature segment, 0 indicates that the color temperature setting is not supported, and 1 indicates that the color temperature setting is supported. Of course, according to actual needs, the value of the color temperature segment can also be adjusted to indicate whether the color temperature setting is supported.
[0074] For the gradual brightening and dimming bit segment, 0 indicates that the gradual brightening and dimming setting is not supported, and 1 indicates that the gradual brightening and dimming setting is supported. Of course, according to actual needs, the value of the gradual brightening and dimming bit segment can also be adjusted to indicate whether the gradual brightening and dimming setting is supported.
[0075] For the lighting brightness bit segment, 0 indicates that the lighting brightness adjustment is not supported, and 1 indicates that the lighting brightness adjustment is supported. Of course, according to actual needs, the value of the lighting brightness bit segment can also be adjusted to indicate whether the lighting brightness adjustment is supported.
[0076] For the night light bit segment, 0 indicates that the night light setting is not supported, and 1 indicates that the night light setting is supported. Of course, according to actual needs, the value of the night light bit segment can also be adjusted to indicate whether the night light setting is supported.
[0077] For the light chasing module bit segment, 0 indicates that the light chasing module is not supported, and 1 indicates that the light chasing module is supported. Of course, according to actual needs, the value of the light chasing module bit segment can also be adjusted to indicate whether the light chasing module is supported.
[0078] For the human body sensing disinfection bit segment, 0 indicates that the human body sensing disinfection is not supported, and 1 indicates that the human body sensing disinfection is supported. Of course, according to actual needs, the value of the human body sensing disinfection bit segment can also be adjusted to indicate whether the human body sensing disinfection is supported.
[0079] For the human body sensing night light segment, 0 indicates that the setting of the human body sensing night light is not supported, and 1 indicates that the setting of the human body sensing night light is supported. Of course, according to actual needs, the value of the human body sensing night light segment can also be adjusted to indicate whether the setting of the human body sensing night light is supported.
[0080] In the local function code configuration rule, any of the finished product codes is associated with a specific lighting segment, color temperature segment, gradual brightening and dimming segment, lighting brightness segment, night light segment, light chasing module segment, human body sensing disinfection segment, and human body sensing night light segment value. The burning server matches the corresponding lighting segment, color temperature segment, gradual brightening and dimming segment, lighting brightness segment, night light segment, light chasing module segment, human body sensing disinfection segment, and human body sensing night light segment value according to the finished product code, and combines the lighting segment, color temperature segment, gradual brightening and dimming segment, lighting brightness segment, night light segment, light chasing module segment, human body sensing disinfection segment, and human body sensing night light segment values in sequence to obtain the first additional function configuration byte parameter value.
[0081] The fourth function bit segment also includes a radio frequency (RF) bit segment, a human body sensing bit segment, an atmosphere light bit segment, a PTC heating bit segment, a fan bit segment, a disinfection bit segment, a Hall bit segment and a third reserved bit segment. The second additional function configuration byte includes a radio frequency bit segment, a human body sensing bit segment, an atmosphere light bit segment, a PTC heating bit segment, a fan bit segment, a disinfection bit segment and a Hall bit segment. The radio frequency bit segment is used to characterize whether the electronic device supports the binary coding of radio frequency, the human body sensing bit segment is used to characterize whether the electronic device supports the binary coding of human body sensing, the atmosphere light bit segment is used to characterize whether the electronic device supports the binary coding of atmosphere light, the PTC heating bit segment is used to characterize whether the electronic device supports the binary coding of PTC heating, the fan bit segment is used to characterize whether the electronic device supports the binary coding of fan, the disinfection bit segment is used to characterize whether the electronic device supports the binary coding of disinfection, and the Hall bit segment is used to characterize whether the electronic device supports the binary coding of Hall setting. Among them, the RF module bit segment is the 0th bit, the human body sensing bit segment is the 1st bit, the atmosphere light bit segment is the 2nd bit, the PTC heating bit segment is the 3rd bit, the fan bit segment is the 4th bit, the disinfection bit segment is the 5th bit, the Hall bit segment is the 6th bit, and the third reserved bit segment is the 7th bit. The values of the RF module bit segment, the human body sensing bit segment, the atmosphere light bit segment, the PTC heating bit segment, the fan bit segment, the disinfection bit segment, the Hall bit segment and the third reserved bit segment are all expressed in binary. The values of the RF module bit segment, the human body sensing bit segment, the atmosphere light bit segment, the PTC heating bit segment, the fan bit segment, the disinfection bit segment, the Hall bit segment and the third reserved bit segment are combined in sequence to obtain the second additional function configuration byte parameter value.
[0082] For the RF module bit field, 0 indicates that the RF module setting is not supported, and 1 indicates that the RF module setting is supported. Of course, according to actual needs, the value of the RF module bit field can also be adjusted to indicate whether the RF module setting is supported.
[0083] For the human body sensing bit segment, 0 indicates that human body sensing is not supported, and 1 indicates that human body sensing is supported. Of course, according to actual needs, the value of the human body sensing bit segment can also be adjusted to indicate whether human body sensing is supported.
[0084] For the atmosphere light segment, 0 indicates that the atmosphere light setting is not supported, and 1 indicates that the atmosphere light setting is supported. Of course, according to actual needs, the value of the atmosphere light segment can also be adjusted to indicate whether the atmosphere light setting is supported.
[0085] For the PTC heating bit segment, 0 indicates that PTC is not supported, and 1 indicates that PTC is supported. Of course, according to actual needs, the value of the PTC heating bit segment can also be adjusted to indicate whether PTC is supported.
[0086] For the fan bit segment, 0 indicates that the fan is not supported to be turned on, and 1 indicates that the fan is supported to be turned on. Of course, according to actual needs, the value of the fan bit segment can also be adjusted to indicate whether the fan is supported to be turned on.
[0087] For the disinfection bit segment, 0 indicates that the disinfection function is not supported, and 1 indicates that the disinfection function is supported. Of course, according to actual needs, the value of the disinfection bit segment can also be adjusted to indicate whether the disinfection function is supported.
[0088] For the Hall bit segment, 0 indicates that the Hall setting is not supported, and 1 indicates that the Hall setting is supported. Of course, according to actual needs, the value of the Hall bit segment can also be adjusted to indicate whether the Hall setting is supported.
[0089] For the third reserved bit segment, reference may be made to the first reserved bit segment mentioned above, which will not be described in detail here.
[0090] In the local function code configuration rule, any of the finished product codes is associated with a specific RF module bit segment, human body sensing bit segment, atmosphere light bit segment, PTC heating bit segment, fan bit segment, disinfection bit segment, Hall bit segment and the value of the third reserved bit segment. The burning server matches the corresponding RF module bit segment, human body sensing bit segment, atmosphere light bit segment, PTC heating bit segment, fan bit segment, disinfection bit segment, Hall bit segment and the value of the third reserved bit segment according to the finished product code, and combines the values of the RF module bit segment, human body sensing bit segment, atmosphere light bit segment, PTC heating bit segment, fan bit segment, disinfection bit segment, Hall bit segment and the third reserved bit segment in sequence to obtain the second additional function configuration byte parameter value.
[0091] Secondly, the performance configuration byte parameter value, the first basic function configuration byte parameter value, the second basic function configuration byte parameter value, the first additional function configuration byte parameter value and the second additional function configuration byte parameter value are combined in sequence to obtain the function configuration parameter value, thereby constructing the function configuration byte.
[0092] Of course, in other embodiments, the functional bit segments divided by the manufacturer identification byte and the functional configuration byte may be adaptively adjusted according to actual needs.
[0093] In one embodiment, the local function code also includes a reserved byte, which is composed of 8 bits and is not directly involved in the function configuration at present. Its purpose is to reserve space for future function expansion or special configuration. The value of the reserved byte can be set to 0, but the burning device will not interpret or process the value of the reserved byte. The setting of the reserved bit segment provides possibility and flexibility for future function expansion.
[0094] For step S3, after the burning is completed, the burning device will perform a check to check whether the local function code has been correctly burned into the mainboard device. Specifically, the burning device first reads the local function code data that has just been burned from the designated storage area of the mainboard device, which can be achieved through the communication interface (such as SPI, I2C, UART, etc.) with the mainboard device. The burning device will compare the read local function code data with the checksum of the original data calculated before burning. If the two are consistent, it means that the data has not been damaged or lost during the burning process, and the corresponding verification result is a successful burning; otherwise, the corresponding verification result is a failed burning.
[0095] If the verification result shows that the burning is successful, the system outputs "The local function code has been successfully burned into the mainboard device!" or a similar success prompt message, indicating that the electronic device is ready to run the corresponding function configuration according to the local function code. If the verification result shows that the burning fails, the system outputs "Local function code burning failed, please check and try again!" or a similar error prompt message, and provides further error details (such as error code, possible reasons for failure, etc.) to help users or technicians locate and solve the problem. Specifically, the success prompt message and error prompt message can be recorded in the system log file or output to the corresponding debugging tool or console, so that the staff can monitor the burning process in real time and obtain error information immediately when a problem occurs.
[0096] Example 2
[0097] The present application also provides a mainboard device configuration method, which specifically includes the following steps:
[0098] SA1: According to the local function code pre-burned in the mainboard device, call the program code module matching the local function code in the mainboard general function program code pre-burned in the mainboard device to perform functional configuration on the mainboard device; wherein the mainboard general function program code includes several program code modules for implementing different functional configurations, and the local function code is used to guide the electronic device to run the program code module corresponding to its functional configuration.
[0099] In this embodiment, for step SA1, the local function code includes a product category byte, a manufacturer identification byte and a function configuration byte, the manufacturer identification byte includes a plurality of first function bit segments, each of which is used to respectively represent the voice manufacturer information, WiFi manufacturer information and motor manufacturer information of the electronic device; the performance configuration byte, the basic function configuration byte and the additional function configuration byte respectively include a plurality of second function bit segments representing the performance configuration information of the electronic device, a plurality of third function bit segments representing the basic function configuration information of the electronic device and a plurality of fourth function bit segments representing the additional function configuration information of the electronic device.
[0100] The motherboard general function program code is a set of program codes pre-burned on the motherboard device by the supplier, which not only includes program code modules for implementing multiple function configurations, but the supplier also pre-agrees, based on the local function code configuration rules of Example 1, that any of the first function bit segments, the second function bit segments, the third function bit segments and the fourth function bit segments correspond one-to-one with the program code modules.
[0101] According to the values of the first function bit segment, the second function bit segment, the third function bit segment and the fourth function bit segment, the program code modules corresponding to the first function bit segment, the second function bit segment, the third function bit segment and the fourth function bit segment are executed to complete the functional configuration of the mainboard device.
[0102] Taking the configuration of the atmosphere light as an example, the value of the corresponding atmosphere light bit segment is 0 or 1, where 0 indicates that the atmosphere light function is not supported, and 1 indicates that the atmosphere light function is supported. When the value of the function bit segment is 1, it indicates that the mainboard device supports the atmosphere light control function. At this time, the program code module corresponding to the atmosphere light bit segment is executed to complete the configuration of the atmosphere light function on the mainboard device, such as allocating specific pins on the mainboard device to the TX (transmit) pin and RX (receive) pin of the serial port interface (such as UART) related to the atmosphere light control, ensuring that the TX (transmit) pin and RX (receive) pin are correctly connected to the corresponding pins of the atmosphere light controller. Then set the baud rate of the serial port interface related to the atmosphere light control to 9600 (to ensure the speed of data communication), the data bit to 8 bits (to define the data length of each data packet), and the stop bit to 1 bit (to mark the end of the data packet) to ensure the accuracy and stability of data communication, etc. When the parameter bit of the local function code is 0, it indicates that the mainboard device does not support the atmosphere light control function. At this time, the program code module will not execute the above-mentioned pin allocation, resource setting and parameter configuration steps, thereby avoiding unnecessary resource occupation and potential errors.
[0103] It is worth noting that this agreement is a consensus between manufacturers, ensuring the compatibility and consistency of the motherboard's general function program code between different manufacturers and different product lines. At the same time, it also provides manufacturers with the convenience of quickly verifying the basic functions of the motherboard device on the production line, reducing testing costs and time.
[0104] In one embodiment, see Figure 3 , Figure 3 This is a flow chart of a method for verifying the format of a local function code in a mainboard device configuration method of the present application. Before obtaining the function parameter value corresponding to the local function code and calling the corresponding program code module to perform function configuration on the mainboard device, it includes:
[0105] SA2: Check whether the length of the local function code matches the preset field length;
[0106] SA3: If the length of the local function code does not match the field length, a local function code format error message is output.
[0107] For steps SA2 and SA3, the preset field length is 64 bits. If the length of the local function code does not match the field length, local function code format error information is output; if the length of the local function code matches the field length, local function code format correct information is output. Specifically, the local function code format error information and the local function code format correct information can be recorded in a system log file or output to a corresponding control platform. Of course, in other embodiments, the preset field length can also be adaptively modified.
[0108] In another embodiment, the electronic device further comprises: a communication module. After calling the corresponding program code module to configure the function of the mainboard device according to the local function code, the method further comprises: uploading the local function code to a cloud server so that the cloud server updates the stored local function code corresponding to the electronic device.
[0109] Specifically, the communication module uploads the local function code to the cloud server; the cloud server obtains the historical local function code of the electronic device, and matches the historical local function code with the local function code uploaded by the communication module; if the historical local function code is inconsistent with the local function code uploaded by the communication module, the field content replaces the historical field content.
[0110] The communication module can send the local function code currently used by the electronic device to the cloud server through a network connection such as Wi-Fi, Bluetooth, cellular network, etc. After receiving the local function code uploaded by the communication module, the cloud server will first query and obtain the historical local function code previously uploaded by the electronic device. The historical local function code is stored in the cloud database for tracking the function configuration change history of the electronic device.
[0111] The cloud server will match the currently uploaded local function code with the historical local function code. The purpose is to check whether the function configuration of the electronic device has changed. If the two are exactly the same, it means that the function configuration of the electronic device has not changed; if they are inconsistent, it means that a new function configuration has been applied to the electronic device.
[0112] When the historical local function code is found to be inconsistent with the currently uploaded local function code, the cloud server will perform an update operation. This step usually involves replacing the historical local function code (i.e., the previous function configuration record) stored in the cloud database with the field content in the currently uploaded local function code, thereby ensuring that the cloud server maintains accurate tracking of the latest function configuration of the electronic device.
[0113] It should be noted that when updating cloud records, it may be necessary to compare and replace each field such as function code number, working parameters, function category, address bit and parameter bit one by one to ensure the integrity and accuracy of cloud records.
[0114] Example 3
[0115] See also Figure 4 , Figure 4 This is a schematic diagram of a motherboard device burning system of the present application. Based on Example 1, the present application also provides a motherboard burning system, including:
[0116] Configuration information acquisition module 1: used to acquire configuration information of an electronic device; wherein the electronic device includes a mainboard device to be burned, the mainboard device to be burned is pre-burned with a mainboard general function program code, and the mainboard general function program code includes a number of program code modules for realizing different function configurations;
[0117] Local function code acquisition module 2: used for acquiring a local function code corresponding to the electronic device according to the configuration information, wherein the local function code is used for instructing the electronic device to run the program code module corresponding to its function configuration;
[0118] The local function code burning module 3 is used to burn the local function code into the mainboard device to be burned in the electronic device.
[0119] It should be noted that the data obtained by the motherboard device burning system provided by the present application when implementing a motherboard configuration burning method is stored one-to-one in the storage of the system. When relevant calculations are required, the data required for the calculations can be directly obtained from the storage.
[0120] It should also be noted that the mainboard device burning system provided in the above embodiment only uses the division of the above functional modules as an example when implementing a mainboard device burning method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the mainboard device burning system provided in the above embodiment and the mainboard device burning method of embodiment 1 belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0121] Based on Example 2, the present application also provides a mainboard device, which is applied to an electronic device, and the mainboard device is burned with a mainboard general function program code and a local function code; wherein the mainboard general function program code includes several program code modules that implement different functional configurations, and the local function code is used to guide the electronic device to run the program code module corresponding to its functional configuration.
[0122] Based on the same inventive concept, the present application also provides an electronic device, which may be a terminal device such as a server, a desktop computing device or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). The device includes one or more processors and a memory, wherein the processor is used to execute a program to implement the motherboard device burning method or a motherboard configuration method; and the memory is used to store a computer program executable by the processor.
[0123] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be a computer-executable instruction, and the computer-executable instruction can execute the motherboard device burning method or a motherboard configuration method. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassette, tape disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0124] The present application is not limited to the above-mentioned implementation modes. If various changes or modifications to the present application do not depart from the spirit and scope of the present application, and if these changes and modifications fall within the claims of the present application and the scope of equivalent technologies, the present application is also intended to include these changes and modifications.
Claims
1. A method for burning a motherboard device, applied to a burning device, characterized in that: The following steps are involved: Acquire configuration information of an electronic device; wherein the electronic device includes a mainboard device to be burned, the mainboard device to be burned is pre-burned with a mainboard general function program code, and the mainboard general function program code includes a number of program code modules for realizing different function configurations; According to the configuration information, a local function code corresponding to the electronic device is acquired, wherein the local function code is used to instruct the electronic device to run the program code module corresponding to its function configuration; The local function code is burned into a mainboard device to be burned in the electronic device.
2. A method for burning a motherboard device according to claim 1, characterized in that: The configuration information includes: a finished product code, a motor code and a mainboard code; wherein the finished product code is used to represent the product model information of the electronic device, the motor code is used to represent the motor manufacturer information of the electronic device, and the mainboard code is used to represent the mainboard model information of the mainboard device; The acquiring, according to the configuration information, a local function code corresponding to the electronic device comprises: According to the preset local function code configuration rule, a local function code matching the combination of the finished product code, the motor code and the mainboard code is searched.
3. A method for burning a motherboard device according to claim 2, characterized in that: The local function code includes: a product category byte, a manufacturer identification byte and a function configuration byte, wherein the product category byte is used to record the product model parameter value of the electronic device, the manufacturer identification byte is used to record the manufacturer category parameter value of the electronic device, and the function configuration byte is used to record the function configuration parameter value of the electronic device; The searching for a local function code matching the combination of the finished product code, the motor code and the mainboard code according to a preset local function code configuration rule comprises: According to the finished product code, based on the local function code configuration rule, a product model parameter value matching the finished product code is obtained to construct the product category byte; According to the motor code and the mainboard code, based on the local function code configuration rule, a manufacturer category parameter value matching the motor code and the mainboard code is acquired to construct the manufacturer identification byte; According to the finished product code, based on the local function code configuration rule, a function configuration parameter value matching the finished product code is acquired to construct the function configuration byte.
4. A method for burning a motherboard device according to claim 3, characterized in that: The function configuration bytes include: performance configuration bytes, basic function configuration bytes, and additional function configuration bytes; The manufacturer identification byte includes a plurality of first function bit segments, each of which is used to represent the voice manufacturer information, WiFi manufacturer information and motor manufacturer information of the electronic device respectively; The performance configuration byte includes a plurality of second function bit segments, and the second function bit segments are used to represent the performance configuration information of the electronic device; The basic function configuration byte includes a plurality of third function bit segments, and the third function bit segments are used to represent the basic function configuration information of the electronic device; The additional function configuration bytes respectively include a plurality of fourth function bit segments, and the fourth function bit segments are used to represent the additional function configuration information of the electronic device.
5. A method for configuring a motherboard device, comprising the following steps: According to the local function code pre-burned in the mainboard device, the program code module matching the local function code in the mainboard general function program code pre-burned in the mainboard device is called to perform functional configuration on the mainboard device; wherein the mainboard general function program code includes several program code modules for implementing different functional configurations, and the local function code is used to guide the electronic device to run the program code module corresponding to its functional configuration.
6. A motherboard configuration method according to claim 5, characterized in that: The method of obtaining the function parameter value corresponding to the local function code and calling the corresponding program code module to perform function configuration on the mainboard device includes: Checking whether the length of the local function code matches a preset field length; If the length of the local function code does not match the field length, a local function code format error message is output.
7. A motherboard configuration method according to claim 5, characterized in that: After calling the corresponding program code module to perform function configuration on the mainboard device according to the local function code, the method includes: The local function code is uploaded to the cloud server, so that the cloud server updates the stored local function code corresponding to the electronic device.
8. A motherboard device, applied to electronic equipment, characterized in that: The motherboard device is burned with motherboard universal function program code and local function code; wherein, the motherboard universal function program code includes several program code modules for implementing different function configurations, and the local function code is used to instruct the electronic device to run the program code module corresponding to its function configuration.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 or 5 to 7 are implemented.
10. A computer device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 4 or 5 to 7 when executing the computer program.