Method and device for realizing communication burning of laptop power management products
By activating and initializing the laptop-type power management IC chip, entering the ROM mode for burning communication reading and writing, the problem of unstable burning communication in the existing technology is solved, reducing manufacturing costs and improving stability, and getting rid of third parties Hardware restrictions have improved competitiveness.
Patent Information
- Application Number
- CN201910774644.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-21
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2039-08-21
AI Technical Summary
There is instability in the burn-in communication process of existing laptop-type power management IC chips, resulting in high manufacturing costs, high resource usage, and limited by third-party core software and hardware, affecting core competitiveness.
A method is proposed, including activating the product, detecting the communication status, reading the ID number, identifying the chip type, entering the ROM mode, initializing the chip, erasing the content, and burning the communication in the ROM mode, through loop recording and Allocate the writing area for improved stability.
It reduces manufacturing costs, improves the stability of burn-in upgrade testing, gets rid of the limitations of third-party core software and hardware, and enhances the core competitiveness of laptop projects.
Smart Images

Figure CN112416370B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method and device for implementing communication burning of laptop power management products. Background Art
[0002] At present, the laptop products are imported into manufacturing and other applications. Currently, these series of products involve multi-section and multi-string power management IC chips (such as BQ40Z50, BQ40Z651, etc.). Since the mechanism and communication timing waveform of the current power management application chip are still different from the standard I2C communication protocol. The current manufacturing industry uses the traditional EV2300 (third-party hardware module) for multi-channel communication reading for the power management IC of this laptop. The result of this method is high manufacturing cost and high resource occupation. The connection between EV2300 and the device computer is USB connection, which has high requirements for computer configuration. At the same time, channel expansion will cause USB packet loss, which seriously affects the stability of the burning communication process. In order to reduce manufacturing costs, improve the stability of burning upgrade tests, get rid of the limitations of third-party core software and hardware (TIEV2300 / EV2400 supporting IC tools), master the burning test application of laptop power meters, and enhance the company's core competitiveness in laptop projects. Summary of the invention
[0003] The main purpose of the present invention is to provide a method for realizing communication programming of a laptop power management product, aiming to solve the problem of instability in the programming communication process of the traditional programming method.
[0004] To this end, the present invention proposes a method for realizing communication burning of a laptop power management product, the method comprising:
[0005] Activate the product and check the product communication status;
[0006] Read the product ID number and identify the chip type. If the chip type is BQ40Z50 or BQ40Z651, send instructions to execute ROM mode.
[0007] Verify and read the ROM version, and compare whether to enter the ROM mode;
[0008] If yes, initialize the communication product chip and erase the contents of each section area inside the chip;
[0009] If not, reactivate the product;
[0010] The different programming areas of the communication product chip are programmed, communicated, read and written in the ROM mode.
[0011] In one embodiment, the method further comprises:
[0012] The burning file is parsed into four burning areas and allocated, and a corresponding byte content segment is allocated to each burning module.
[0013] In one embodiment, the step of burning, communicating, reading and writing the contents of multiple chapters of the communication product chip in the ROM mode includes:
[0014] Calculate the number of cycle burning times;
[0015] Create a programming module with a cycle count of 1024;
[0016] Enable loop burning;
[0017] Burning is performed in units of 64 bytes.
[0018] In one embodiment, the method further comprises:
[0019] Call the first two bytes in chapter 3;
[0020] Write two bytes of chapter 4;
[0021] Exit ROM mode;
[0022] Compare the ROM version and determine whether the ROM version is correct. If so, complete the burning process. If not, determine that it is abnormal.
[0023] In one embodiment, the method further comprises:
[0024] According to the host computer software, the corresponding "starting programming register address" and "programming byte" contents are extracted, and the programming byte contents are summarized and connected, and downloaded to the temporary memory for storage.
[0025] A device for realizing communication burning of a laptop power management product, the device comprising:
[0026] Activation module, used to activate the product and detect the product communication status;
[0027] The reading module is used to read the product ID number and identify the chip type. If the chip type is BQ40Z50 or BQ40Z651, it sends instructions to execute the ROM mode.
[0028] A verification module, used for verifying the version of the ROM read and comparing whether to enter the ROM mode;
[0029] Initialization module, used to initialize the communication product chip and erase the contents of each section area inside the chip;
[0030] A reactivation module, used to reactivate the product when the judgment is negative;
[0031] The burning module is used to burn, communicate, read and write different burning areas of the communication product chip in the ROM mode.
[0032] In one embodiment, the device further comprises:
[0033] The allocation module is used to parse the burning file into four burning areas for allocation, and allocate a corresponding byte content segment to each burning module.
[0034] In one embodiment, the programming module includes:
[0035] A calculation unit, used to calculate the number of cycle burning;
[0036] A creation unit is used to create a programming module with a cycle number of 1024;
[0037] Open unit, used to start loop burning;
[0038] The execution unit is used to perform burning in units of 64 bytes.
[0039] In one embodiment, the device further comprises:
[0040] Calling module, used to call the first two bytes in chapter 3;
[0041] Write module, used to write two bytes of chapter 4;
[0042] Exit module, used to exit ROM mode;
[0043] The comparison module is used to compare the ROM version and determine whether the ROM version is correct. If so, the burning process is completed; if not, it is determined to be abnormal.
[0044] In one embodiment, the device further comprises:
[0045] The extraction module is used to extract the corresponding "starting programming register address" and "programming byte" content according to the upper computer software, and summarize and connect the program byte content, and download it to the temporary memory for storage.
[0046] Beneficial effects:
[0047] The present invention discloses a method for realizing communication burning of a laptop power management product, the method comprising: activating the product and detecting the communication status of the product; reading the product ID number and identifying the chip type, if the chip type is BQ40Z50 or BQ40Z651, sending instructions and executing ROM mode; verifying and reading the version of the ROM and comparing whether to enter the ROM mode; if so, initializing the communication product chip; and performing burning communication reading and writing on different burning areas of the communication product chip in the state of the ROM mode. The method of the present invention reduces manufacturing costs, improves the stability of burning upgrade testing, and gets rid of third-party core software and hardware restrictions. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0049] Figure 1 A method flow chart of a method for realizing communication burning of a laptop power management product according to the present invention;
[0050] Figure 2 A device block diagram of a device for realizing communication burning of a laptop power management product according to the present invention; DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0052] Please refer to Figure 1 , a method for realizing communication burning of a laptop power management product, the method comprising:
[0053] S100: Activate the product and detect the product communication status;
[0054] S200: Read the product ID number and identify the chip type. If the chip type is BQ40Z50 or BQ40Z651, send instructions to execute ROM mode.
[0055] S300: Verify and read the ROM version, and compare whether to enter the ROM mode;
[0056] S400: If yes, initialize the communication product chip and erase the contents of each chapter area inside the chip;
[0057] S500: If not, reactivate the product;
[0058] In this embodiment, the communication IC is initialized, the IC type is identified, and according to different IC types, a command to enter the ROM mode is sent to verify whether the IC enters the ROM mode state. The product IC is burned, communicated, read and written in the ROM mode state;
[0059] According to the upper computer software, the corresponding "starting burn register address" and "burn byte" content are extracted, and the burn byte content is summarized and connected, and downloaded to the temporary memory for storage; the burn byte is allocated in 4 areas, among which the area chapter 1 byte burn capacity reaches 8192 bytes. The area chapter 2 burn capacity reaches 57344 bytes, the area chapter 3 burn capacity reaches 64 bytes, and the area chapter 4 burn capacity reaches 2 bytes; accordingly, the burn file byte content capacity reaches 64KB.
[0060] S:600: Perform communication reading and writing on different programming areas of the communication product chip in the ROM mode.
[0061] In this embodiment, four burning areas are included, among which, the burning of chapter 1 and the burning of chapter 2 have common features: following the step-by-step bundle burning and burning with 64 bytes as units in the corresponding chapters, whether the burning is successful or not can be judged by whether the product BQ power meter receives the ACK signal and then gives feedback; if this feedback signal is received, the upper computer determines that the product BQ has successfully burned the bytes at that time;
[0062] In chapter 1, the command set used is 0x0f, the I2C address is 0x16, and the Pec switch value is 0x00;
[0063] In Chapter 2, the command instruction set used is 0x05, the I2C address is 0x16, and the Pec switch value is 0x00.
[0064] Chapter 3 burning: Extract the two bytes of address 0x0000 to 0x0001 in Chapter 3 and store them in the computer memory (to be used when burning and replacing Chapter 4), and then replace them with two 0xFF bytes for burning; each time the burning is carried out in units of 32 bytes, and the entire burning of Chapter 3 is completed in two times. Is the specific logic process consistent with Chapter 1 and Chapter 2, as shown above?
[0065] Chapter 4 burning: Burn the two bytes 0x0000 and 0x0001 in chapter 3 to the corresponding address of chapter 4, then exit the Rom mode and compare the versions to complete the entire burning and upgrading process.
[0066] In one embodiment, the method further comprises:
[0067] The burning file is parsed into four burning areas and allocated, and a corresponding byte content segment is allocated to each burning module.
[0068] In this embodiment, when local burning upgrade is enabled, the "burning file in the standard laptop format" is downloaded from the server (standard burning file format: the burning byte content of all chapters is summarized in a coherent manner according to the corresponding length of the starting address and the ending address of each chapter, such as the starting address 0x4000 to the ending address 0x5FFF in chapter 1)), and the burning file is "parsed" into four major chapter modules, and each chapter module is assigned a corresponding byte content segment.
[0069] In one embodiment, the step of burning, communicating, reading and writing the contents of multiple chapters of the communication product chip in the ROM mode includes:
[0070] Calculate the number of cycle burning times;
[0071] Create a programming module with a cycle count of 1024;
[0072] Enable loop burning;
[0073] Burning is performed in units of 64 bytes.
[0074] In one embodiment, the method further comprises:
[0075] Call the first two bytes in chapter 3;
[0076] Write two bytes of chapter 4;
[0077] Exit ROM mode;
[0078] Compare the ROM version and determine whether the ROM version is correct. If so, complete the burning process. If not, determine that it is abnormal.
[0079] In one embodiment, the method further comprises:
[0080] According to the upper computer software, the corresponding "starting programming register address" and "programming byte" contents are extracted, and the programming byte contents are summarized and connected, and downloaded to the temporary memory for storage.
[0081] Please refer to Figure 2 , a device for realizing communication burning of a laptop power management product, the device comprising:
[0082] An activation module 10 is used to activate the product and detect the product communication status;
[0083] The reading module 20 is used to read the product ID number and identify the chip type. If the chip type is BQ40Z50 or BQ40Z651, an instruction is sent to execute the ROM mode.
[0084] A verification module 30, used for verifying the version of the ROM read and comparing whether to enter the ROM mode;
[0085] Initialization module 40, used to initialize the communication product chip and erase the contents of each chapter area inside the chip;
[0086] A reactivation module 50, for reactivating the product when the judgment is no;
[0087] The burning module 60 is used to burn, communicate, read and write different burning areas of the communication product chip in the ROM mode.
[0088] In one embodiment, the device further comprises:
[0089] The allocation module is used to parse the burning file into four burning areas for allocation, and allocate a corresponding byte content segment to each burning module.
[0090] In one embodiment, the programming module includes:
[0091] A calculation unit, used to calculate the number of cycle burning;
[0092] A creation unit is used to create a programming module with a cycle number of 1024;
[0093] Open unit, used to start loop burning;
[0094] The execution unit is used to perform burning in units of 64 bytes.
[0095] In one embodiment, the device further comprises:
[0096] Calling module, used to call the first two bytes in chapter 3;
[0097] Write module, used to write two bytes of chapter 4;
[0098] Exit module, used to exit ROM mode;
[0099] The comparison module is used to compare the ROM version and determine whether the ROM version is correct. If so, the burning process is completed; if not, it is determined to be abnormal.
[0100] In one embodiment, the device further comprises:
[0101] The extraction module is used to extract the corresponding "starting programming register address" and "programming byte" content according to the upper computer software, and summarize and connect the program byte content, and download it to the temporary memory for storage.
[0102] The present invention discloses a method for realizing communication burning of a laptop power management product, the method comprising: activating the product and detecting the communication status of the product; reading the product ID number and identifying the chip type, if the chip type is BQ40Z50 or BQ40Z651, sending instructions and executing ROM mode; verifying and reading the version of the ROM and comparing whether to enter the ROM mode; if so, initializing the communication product chip; and performing burning communication reading and writing on different burning areas of the communication product chip in the state of the ROM mode. The method of the present invention reduces manufacturing costs, improves the stability of burning upgrade testing, and gets rid of third-party core software and hardware restrictions.
[0103] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented using a software program, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0104] For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, fiber optic digital subscriber line DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive SSD), etc.
[0105] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0106] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM), etc.
[0108] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for realizing communication burning of a laptop power management product, characterized in that: The method comprises: Activate the product and check the product communication status; Read the product ID number and identify the chip type. If the chip type is BQ40Z50 or BQ40Z651, send instructions to execute ROM mode. Verify and read the ROM version, and compare whether to enter the ROM mode; If yes, initialize the communication product chip and erase the contents of each section area inside the chip; If not, reactivate the product; perform communication reading and writing on different programming areas of the communication product chip in the ROM mode; The method further comprises: Parse the burning file into four burning areas, including the burning areas of chapter 1, chapter 2, chapter 3 and chapter 4, and allocate corresponding byte content segments to each burning module; Chapter 1: Programming, the command set used is 0x0f, the I2C address is 0x16, and the Pec switch value is 0x00; Chapter 2: Programming, the command set used is 0x05, the I2C address is 0x16, and the Pec switch value is 0x00; Chapter 3 programming: Extract the two bytes from address 0x0000 to 0x0001 in Chapter 3 and store them in the computer memory, and replace them with two 0xFF bytes for programming; each programming is performed in units of 32 bytes, and the entire programming of Chapter 3 is completed in two steps; Chapter 4 burning: Burn the two bytes 0x0000 and 0x0001 in chapter 3 to the corresponding address of chapter 4.
2. The method according to claim 1, characterized in that The step of burning, communicating, reading and writing the contents of multiple chapters of the communication product chip in the ROM mode includes: Calculate the number of cycle burning times; Create a programming module with a cycle count of 1024; Enable loop burning; Burning is performed in units of 64 bytes.
3. The method according to claim 1, characterized in that The method further comprises: Call the first two bytes in chapter 3; Write two bytes of chapter 4; Exit ROM mode; Compare the ROM version and determine whether the ROM version is correct. If so, complete the burning process. If not, determine that it is abnormal.
4. The method according to claim 1, characterized in that: The method further comprises: According to the host computer software, the corresponding "starting programming register address" and "programming byte" content are extracted, and the programming byte content is summarized and connected, and downloaded to the temporary memory for storage.
5. A device for realizing communication burning of a laptop power management product, the device comprising: Activation module, used to activate the product and detect the product communication status; The reading module is used to read the product ID number and identify the chip type. If the chip type is BQ40Z50 or BQ40Z651, it sends instructions to execute the ROM mode. A verification module, used for verifying the version of the ROM read and comparing whether to enter the ROM mode; Initialization module, used to initialize the communication product chip and erase the contents of each section area inside the chip; A reactivation module, used to reactivate the product when the judgment is negative; A burning module, used for burning communication reading and writing different burning areas of the communication product chip in the state of the ROM mode; The programming module is specifically used for: Parse the burning file into four burning areas, including the burning areas of chapter 1, chapter 2, chapter 3 and chapter 4, and allocate corresponding byte content segments to each burning module; Chapter 1: Programming, the command set used is 0x0f, the I2C address is 0x16, and the Pec switch value is 0x00; Chapter 2: Programming, the command set used is 0x05, the I2C address is 0x16, and the Pec switch value is 0x00; Chapter 3 programming: Extract the two bytes from address 0x0000 to 0x0001 in Chapter 3 and store them in the computer memory, and replace them with two 0xFF bytes for programming; each programming is performed in units of 32 bytes, and the entire programming of Chapter 3 is completed in two steps; Chapter 4 burning: Burn the two bytes 0x0000 and 0x0001 in chapter 3 to the corresponding address of chapter 4.
6. The device according to claim 5, characterized in that The programming module comprises: A calculation unit, used to calculate the number of cycle burning; A creation unit is used to create a programming module with a cycle number of 1024; Open unit, used to start loop burning; The execution unit is used to perform burning in units of 64 bytes.
7. The device according to claim 5, characterized in that The device also includes: Calling module, used to call the first two bytes in chapter 3; Write module, used to write two bytes of chapter 4; Exit module, used to exit ROM mode; The comparison module is used to compare the ROM version and determine whether the ROM version is correct. If so, the burning process is completed; if not, it is determined to be abnormal.
8. The device according to claim 5, characterized in that The device also includes: The extraction module is used to extract the corresponding "starting programming register address" and "programming byte" content according to the host computer software, and summarize and connect the program byte content, and download it to the temporary memory for storage.
Citation Information
Patent Citations
Singlechip parallel burning method
CN103365689A
Burning error proofing method for brushless motor control management IC
CN105354106A
Capacitive touch key chip detection and calibration system and method
CN107037352A