Level modification method, device, mobile charging device and storage medium
By obtaining and judging hierarchical information, awakening and modifying the address of the next hierarchical module, the problem that the address of the outdoor charging device module cannot be modified separately in the prior art is solved, and the flexibility and expansion of the equipment are improved.
Patent Information
- Application Number
- CN202311006463.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2043-08-10
AI Technical Summary
When existing outdoor charging devices need to expand modules or change the cascading position of modules, they cannot modify the address of a certain module separately. They need to change the address of the entire device or use a hardware dialer, resulting in poor flexibility and expansion.
By obtaining the current level information, determining whether there is a next level hierarchical module, and awakening and modifying its address or number, the flexible modification of the hierarchical module is realized.
No hardware modification or changes to all modules is required, which improves the flexibility and expansion of the charging device, realizes the address or number modification of any level module, and enhances the flexibility and reliability of the device.
Smart Images

Figure CN117033285B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of charging technology, and in particular to a level modification method, device, mobile charging equipment and storage medium. Background Art
[0002] Electrical charging robots, charging trailers, etc. are a type of commonly used charging equipment, which are usually used to provide power support for electronic devices in outdoor activities, outdoor work or emergency rescue scenarios. Existing outdoor charging equipment usually has multiple modules, but the address of each module is fixed after assembly. In this way, when it is necessary to expand the module or change the cascade position of a module, the address of a module cannot be modified separately. The addresses of all modules of the entire device need to be changed or hardware such as a dialer needs to be used for modification, which is not conducive to the flexibility and scalability of the device.
[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0004] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a hierarchical modification method, a mobile charging device and a storage medium are provided, aiming to solve the problem in the prior art that the charging device cannot modify the address of a certain module independently.
[0005] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0006] A level modification method, comprising:
[0007] Get the hierarchical information of the current layer, and determine whether there is a next-level hierarchical module in this layer based on the hierarchical information of the current layer;
[0008] If there is a next-level module, wake up the next-level module;
[0009] Modify the address of the next level module.
[0010] According to a further configuration of the present invention, after the step of waking up the next-level module if there is one, the step further includes: modifying the serial number of the next-level module.
[0011] A further configuration of the present invention further includes: if there is no next-level hierarchical module, the wake-up is stopped and the hierarchical modification ends.
[0012] According to a further configuration of the present invention, the level information of the current layer includes module information of the level module of the current layer itself.
[0013] According to a further configuration of the present invention, the hierarchy modification method performs hierarchy modification from a top-level hierarchy module.
[0014] Based on the same inventive concept, the present invention also provides a level modification device, which includes: an acquisition unit, used to acquire level information of the current layer;
[0015] A judging unit, used to judge whether there is a next-level hierarchical module in the current layer according to the hierarchical information of the current layer;
[0016] A wake-up unit, configured to wake up the next-level module when the judgment unit judges that there is a next-level module in the current layer;
[0017] The modification unit is used to modify the address of the next level module.
[0018] Based on the same inventive concept, the present invention also provides a mobile charging device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the hierarchy modification method when executing the computer program.
[0019] According to a further configuration of the present invention, the mobile charging device has multiple layers of hierarchical modules, and the hierarchical modules of each layer are cascaded to each other.
[0020] Based on the same inventive concept, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the hierarchy modification method are implemented.
[0021] Beneficial effects: The present invention discloses a hierarchical modification method, device, mobile charging device and storage medium. The hierarchical modification method includes: obtaining the hierarchical information of the current layer, judging whether there is a next-level hierarchical module in the current layer according to the hierarchical information of the current layer; if there is a next-level hierarchical module, waking up the next-level hierarchical module; and modifying the address of the next-level hierarchical module. The present invention wakes up the next-level hierarchical module by judging whether there is a next-level hierarchical module in the current layer, and after waking up, modifies the address or number of the hierarchical module, without the need to modify it by hardware or re-modify all modules of the whole machine, thereby achieving the effect of increasing flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flow chart of the level modification method in the present invention.
[0023] Figure 2 It is a flowchart of the specific implementation of the hierarchical modification method in the present invention.
[0024] Figure 3 It is a principle block diagram of the first application of the hierarchical modification method of the present invention.
[0025] Figure 4 It is a principle block diagram of the second application of the hierarchical modification method of the present invention.
[0026] Figure 5 It is a principle block diagram of the third application of the hierarchical modification method of the present invention.
[0027] Figure 6 It is a principle block diagram of the level modification circuit of the level modification method in the present invention.
[0028] Figure 7 It is a structural principle diagram of the mobile charging device in the present invention.
[0029] Description of reference numerals:
[0030] 10. Input circuit; 11. Input interface unit; 12. Pull-up unit; 13. First protection unit; 20. Output circuit; 21. Output interface unit; 22. Pull-down unit; 23. Second protection unit; 30. MCU chip; 50. Hierarchical module; 111. Input communication unit; 211. Output communication unit; 300. Mobile charging device; 310. Host layer; 320. Inverter layer; 330. Solar charging module layer; 340. Battery pack layer; CN1. Input connection socket; CN2. Output connection socket; MCU_IO1. First network port; MCU_IO2. Second network port; MCU_IO3. Third network port; IO. Input and output interface. DETAILED DESCRIPTION
[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0032] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0033] In order to solve the problems of the prior art, the present invention provides a level modification method, which is described below in conjunction with specific embodiments.
[0034] Some existing large-scale equipment usually has multiple functional modules, such as industrial machine tools, industrial robots or outdoor energy storage charging equipment. Some charging equipment, such as mobile charging trailer equipment, usually has multiple functional modules, but the address of each module is fixed after assembly. In this way, when it is necessary to expand the module or change the cascade position of a module, the address of a module cannot be modified separately, so the address of all modules of the entire device needs to be changed, or hardware such as a dialer needs to be used for modification. In this way, it is not convenient for the flexibility and scalability of the device, and the cost is high. In this way, once the assembly is completed, it is not easy to adjust, and it has problems such as poor flexibility and a small number of expandable modules.
[0035] Example 1
[0036] Therefore, the present invention provides a hierarchy modification method to improve the problems of the prior art.
[0037] The present invention provides a preferred embodiment of a level modification method, such as Figure 1 As shown, Figure 1 This is a flowchart of the hierarchical modification method. According to different requirements, the order of the steps in the flowchart can be changed and some steps can be omitted.
[0038] Figure 2 is a flowchart of the specific implementation of the level modification method, Figure 3 The principle block diagram of the application of the hierarchical modification method. In the application of this method, the whole device includes multiple hierarchical modules 50 when in use. The hierarchical module 50 set at the top is the first level, and the second level, the third level, the fourth level..., the nth level, etc. are stacked downward in sequence. Of course, different hierarchical modules 50 are electrically and structurally connected, and each hierarchical module 50 can communicate with each other. Each of the hierarchical modules 50 can be set to a different functional module structure, and the hierarchical modules 50 can also be increased or decreased according to actual conditions.
[0039] In the whole device, one of the hierarchical modules 50 is the host layer, which regulates the hierarchical modification process of the whole device. The host layer is composed of a chip of model GD32F303 and the external circuit of the chip. Similarly, other hierarchical modules 50 other than the host layer are composed of CMS8S6990 chip, CMS8S6990 chip or BAT32G439 chip and the external circuit of the chip. In this embodiment, the top-level hierarchical module 50 is used as the host layer for explanation; in other embodiments, the host layer can also be set in the hierarchical modules 50 of other layers, such as the middle hierarchical module 50 or the bottom hierarchical module 50.
[0040] Please combine Figure 1 and Figure 2 , further illustrating this embodiment, the hierarchy modification method provided in this embodiment can be applied to a structure having multiple layers of hierarchy modules 50, and the steps of the hierarchy modification method are as follows:
[0041] S100, obtaining the hierarchical information of the current layer, and determining whether the current layer has a next-level hierarchical module according to the hierarchical information of the current layer;
[0042] Specifically, when the hierarchical modification is started, the hierarchical module 50 of the current layer will obtain the hierarchical information of the current layer, and determine whether there is a hierarchical module 50 of the next layer according to the hierarchical information of the current layer. The hierarchical information of the current layer includes information on whether there is a hierarchical module of the next layer. In this embodiment, the host layer as the first layer will obtain the hierarchical information of the current layer, and determine whether there is a hierarchical module 50 of the next layer below it. If there is no next layer, the hierarchical modification ends, because if there is no next layer, then the whole machine does not need to proceed to the next hierarchical modification step.
[0043] S110, if there is a next-level module, wake up the next-level module;
[0044] Specifically, when it is determined that there is a next-level hierarchical module 50, the next-level hierarchical module 50 is awakened by the current-level hierarchical module 50. In this embodiment, after awakening, the current-level hierarchical module 50 will also obtain the reporting information of the next-level hierarchical module 50 and send the reporting information of the next-level hierarchical module 50 to the host layer. The reporting information of the next-level hierarchical module 50 is the module information of the next-level hierarchical module 50 itself, which includes the device type of the next-level hierarchical module 50 itself and whether there is an n+1-level hierarchical module 50. That is, the host layer can know the device type of the next-level hierarchical module 50 itself and whether there is an n+1-level hierarchical module 50. Among them, the next-level hierarchical module is the n-th hierarchical module, and n is greater than or equal to 2. In addition, the n-th hierarchical module 50 itself or the host layer can judge whether there is a next-level hierarchical module 50, that is, the n+1-th hierarchical module 50.
[0045] S120, modifying the address of the next level module;
[0046] Specifically, after waking up the hierarchical module 50 of a certain layer, the hierarchical module of the layer can be woken up. In this embodiment, after the nth hierarchical module is woken up, the host layer will send an instruction to modify the address of the nth hierarchical module. Of course, in addition to modifying the address, the number of the nth hierarchical module can also be modified.
[0047] S130, turning off the wake-up module of the nth level;
[0048] Specifically, after the modification is completed, the awakened level module 50 can be turned off and awakened, and in actual execution, it can also be selected not to turn off and awaken the n-level level module 50, so that multiple levels are in the awake state at the same time, and the host layer turns off and awakens the n-level level module 50. That is, step S120 can be skipped, and the host layer can turn off or not turn off and awaken the n-level level module 50.
[0049] Of course, in step S110, there may be no next-level module. If not, the process will proceed to step S140: if there is no next-level module, the wake-up will be stopped and the level modification will be completed. Specifically, when the host layer or the nth level module determines that there is no next-level module, the level wake-up and level modification will be completed at this time, and no subsequent modification work is required, and the process ends.
[0050] Of course, steps S100-S130 can be looped until the last level determines that there is no next level, and the level modification is completed.
[0051] In other embodiments, steps S120 and S130 can be interchanged, that is, it can be determined whether there is an n+1th level first, and then the nth level can be closed. And n≥2, that is, n=2,3,4,5,6...; the value of n can be adjusted according to the actual application of the user.
[0052] Further, in this embodiment, please refer to Figure 1-3 , to illustrate the situation when there are 4 levels of hierarchy. When the hierarchy modification method is applied to the hierarchy module 50 with 4 levels, there are the following steps:
[0053] A. Level 1 determines whether there is a next level in this layer;
[0054] Specifically, in this embodiment, the first level is the host layer, and the host layer will obtain the level information of this layer, and determine whether this layer has a next-level level module according to the level information of this layer. The host layer will determine whether there is a next-level level module 50 below it, that is, the second level. If there is no second level, the level modification ends, because if there is no second level, then there is no need to proceed to the next level modification step.
[0055] B. When the host layer determines that there is a next level, the host layer wakes up the second level.
[0056] Specifically, when the host layer determines that there is level 2, the host layer will wake up level 2. After waking up, level 2 will send its own reporting information to the host layer, so that the host layer can obtain the reporting information of level 2. The host layer can then know the device type of level 2 itself and whether there is level 3.
[0057] C. Modify the address or number of the second level;
[0058] Specifically, after waking up the second level, the address or number of the second level can be modified. In practical applications, if the second level is cascaded in an extended manner, Figure 3If the whole device is in the second level, the address or number of the second level must be modified to match the expanded whole device. Therefore, the second level can be modified after waking up the second level, such as changing the address from 1000 to 0002 and the number from 4096 to 2.
[0059] D. The host layer turns off the wake-up level 2;
[0060] Specifically, the host layer may choose to disable or not disable wake-up level 2.
[0061] E. Obtain the hierarchical information of the second level, that is, the reporting information of the second level, and determine whether there is a third level according to the reporting information of the second level;
[0062] Specifically, the current level 2 or host layer will determine whether there is a level 3 based on the reported information of the level 2. If there is no level 3, the level modification ends.
[0063] F. If there is a level 3, then wake up the level 3, and the level 3 will send its own reporting information to the host layer.
[0064] Specifically, if the second level or the host layer determines that there is a third level, the host layer controls the second level to wake up the third level, and after the third level is awakened, it sends its own reporting information to the host layer.
[0065] G. Modify the address or number of level 3;
[0066] Specifically, after waking up the third level, the address or number of the third level can be modified.
[0067] H. Host layer closes wake-up level 3;
[0068] Specifically, the host layer can choose to turn off or not turn off wake-up level 3.
[0069] I. Obtain the hierarchical information of level 3, i.e., the reporting information of level 3, and determine whether there is a level 4 according to the reporting information of level 3;
[0070] Specifically, the current level 3 or host layer will determine whether there is a level 4 based on the reported information of the level 3. If there is no level 4, the level modification ends.
[0071] J. If there is a level 4, wake up the level 4, and the level 4 will send its own reporting information to the host layer.
[0072] K. Modify the address or number of level 4;
[0073] L, host layer close wake-up level 4;
[0074] Specifically, the host layer can choose to turn off or not turn off wake-up level 4.
[0075] M. Obtain the level information of level 4, that is, the reporting information of level 4, and determine whether there is a level 5 according to the reporting information of level 4;
[0076] Specifically, the current level 4 or host layer will determine whether there is a level 5 based on the reported information of the level 4. If there is no level 5, the level modification ends.
[0077] N. There is no fifth level, and the level modification is completed.
[0078] Specifically, the above steps can be extended to a structure of a hierarchical module 50 having any number of layers, 5, 6, 7, ..., until a level is determined to have no next level, and the hierarchical modification is completed.
[0079] Therefore, according to such a hierarchical modification method, the number or address of any hierarchical module in the whole machine structure can be modified, and any number of cascaded hierarchical modules 50 can be determined. In addition, during the wake-up process, the reporting information of each level will be obtained, and the type of equipment at each level can be obtained from these reporting information, so that different types of modules can be arbitrarily expanded, and the corresponding module function output can be activated at the same time, with high freedom of expansion, high flexibility, low cost and high reliability.
[0080] In addition, in actual application, the method can also modify the hierarchy starting from the hierarchical module 50 other than the top layer, that is, the bottom hierarchical module 50 can be set as the host layer, and any hierarchical module 50 between the top layer and the bottom layer can also be set as the host layer. Figure 4 and Figure 5 The level modification can be started from the bottom level module 50, or from any level module 50 between the top and bottom levels. The only difference is the direction and number of level modifications, which will not be described in detail here.
[0081] In this embodiment, if Figure 6 As shown, the hierarchy modification method can realize specific process control based on this hierarchy modification circuit. Figure 3 Each level module 50 in the hierarchy is provided with the hierarchy modification circuit.
[0082] The hierarchical modification circuit includes: an input circuit 10, an output circuit 20 and an MCU chip 30, wherein for the host layer, the MCU chip 30 is a GD32F303 chip; the MCU chip in the hierarchical module 50 outside the host layer is a CMS8S6990 chip, a CMS8S699 chip or a BAT32G439 chip, and of course, it can also be a chip of other models.
[0083] The input circuit 10 includes: an input interface unit 11, a pull-up unit 12 and a first protection unit 13; the output circuit 20 includes: an output interface unit 21, a pull-down unit 22 and a second protection unit 23. The input circuit 10 has a first network port MCU_IO1 and a second network port MCU_IO2, and the output circuit 20 has a third network port MCU_IO3. The first network port MCU_IO1, the second network port MCU_IO2 and the third network port MCU_IO3 are all connected to the input and output interface IO of the MCU chip 30.
[0084] Specifically, the input interface unit 11 is provided with an input communication unit 111, and the output interface unit 21 is provided with an output communication unit 211. The input communication unit 111 and the output communication unit 211 are communication tools of each hierarchical module 50, and are used to communicate between each hierarchical module 50. Level conversion will occur in the input interface unit 11 and the output interface unit 21, and the MCU chip 30 judges the state of the hierarchical module 50 by reading and identifying the level signal conversion of the input interface unit 11 and the output interface unit 21. The MCU chip 30 can also control the state of the hierarchical module 50 by controlling the level signals of the input interface unit 11 and the output interface unit 21.
[0085] When the hierarchical modules 50 are cascaded, the input circuit 10 of the current hierarchical module 50 is connected to the output circuit 20 of the previous hierarchical module 50; the output circuit 20 of the current hierarchical module 50 is connected to the input circuit 10 of the next hierarchical module;
[0086] The current layer level module 50 communicates with the previous or next layer level module 50 through the input interface unit 11 and the output interface unit 21 .
[0087] Specifically, the input interface unit 11 is provided with an input communication unit 111, and the output interface unit 21 is provided with an output communication unit 211. The input communication unit 111 and the output communication unit 211 are communication tools of each hierarchical module 50, and are used to communicate with the hierarchical module 50 of the previous layer or the next layer to realize communication between each hierarchical module 50. When cascading, the output communication unit 211 of the hierarchical module 50 of the previous layer and the input communication unit 111 of the hierarchical module of the next layer communicate to judge the device type of the hierarchical module of the next layer. In addition, level conversion will occur in the input interface unit 11 and the output interface unit 21, and the MCU chip 30 of this layer judges the state of the hierarchical module 50 of the current layer by reading and identifying the level signal conversion of the input interface unit 11 and the output interface unit 21. The MCU chip 30 can also control the state of the hierarchical module 50 by controlling the level signal of the input interface unit 11 and the output interface unit 21.
[0088] After the modules 50 of each level are cascaded, for the input interface unit 11 and the output interface unit 21 of a level module 50, the input interface unit 11 of this level is connected to the output interface unit 21 of the previous level, and the output interface unit 21 of this level is connected to the input interface unit 11 of the next level. Figure 3 For example, in the third level module 50, in the third level, the input interface unit 11 of the third level is connected to the output interface unit 21 of the second level, and the output interface unit 21 of the third level is connected to the input interface unit 11 of the fourth level. Of course, it can be understood that if the current level module 50 has no upper level, such as being at the top level, the input interface unit 11 of the current level does not need to be connected to the output interface unit 21 of other levels; if the current level module 50 has no lower level, such as being at the bottom level, the output interface unit 21 of the current level does not need to be connected to the input interface unit 11 of other levels.
[0089] Further, in the input circuit 10, the first protection unit 13 is respectively connected to the first network port MCU_IO1 and the second network port MCU_IO2 and is connected to the pull-up unit 12, so as to protect the input circuit 10 and limit the voltage in the level modification circuit to a safe range; the pull-up unit 12 is also respectively connected to the first network port MCU_IO1 and the second network port MCU_IO2, and is respectively connected to the first protection unit 13 and the input interface unit 11.
[0090] Furthermore, in the output circuit 20, the second protection unit 23 is connected to the third network port MCU_IO3 for protecting the output circuit 20 and limiting the voltage in the circuit within a safe range; the pull-down unit 22 is connected to the second protection unit 23 and the output interface unit 21 respectively.
[0091] Please continue to refer to Figure 3 and Figure 6 . When the modules 50 of each level are cascaded, after the input interface unit 11 of this level is connected to the output interface unit 21 of the previous level, the input interface unit 11 will have a level change due to the presence of the pull-down unit 22 of the previous level, and the MCU chip 30 of this level will read that the second network port MCU_IO2 is pulled down from the default high level to a low level. Therefore, the MCU chip 30 of this level can determine whether the upper level module 50 is cascaded by reading the change of the high and low levels of the second network port MCU_IO2. When the MCU chip 30 reads that the high level of the input interface unit changes to a low level through the second network port MCU_IO2, it can be known that the upper level module 50 is cascaded.
[0092] And the MCU chip 30 can control the wake-up activation of the next-level hierarchical module 50 through the third network port MCU_IO3. The MCU chip 30 in this level can choose whether to activate the next-level hierarchical module 50 by controlling the level change of the third network port MCU_IO3, and the MCU chip 30 in this level can also judge whether it has been activated by the previous-level hierarchical module 50 through the level change of the first network port MCU_IO1. After the current-level hierarchical module 50 is activated, the level signal of the input interface unit 11 will also change. When the MCU chip 30 in this level reads that the first network port MCU_IO1 is pulled from a high level to a low level, it can be known that the current-level hierarchical module 50 has been activated.
[0093] Furthermore, after the output interface unit 21 of this level is connected to the input interface unit 11 of the next level, the output interface unit 21 will have a level change due to the existence of the pull-up unit 12 of the next level, and the MCU chip 30 of this level will read that the third network port MCU_IO3 is pulled up from the default low level to the high level. Therefore, the MCU chip 30 of this level can judge whether the next level module 50 is cascaded by reading the change of the high and low levels of the third network port MCU_IO3. When the MCU chip 30 reads that the third network port MCU_IO3 changes from a low level to a high level, it can be known that the upper level module 50 is cascaded.
[0094] And when cascading, the input communication unit 111 of this level will also send and receive data to communicate with the upper module, automatically identify the type of the upper module, and implement the corresponding function; the output communication unit 211 of this level will also communicate and send data to identify the type of the lower module.
[0095] In this way, the hierarchy modification circuit can achieve the following functions:
[0096] 1. The current level module 50 reads the level status of the second network port MCU_IO2 through the MCU chip 30 to determine whether there is an upper level module 50 at the current level;
[0097] 2. The current level module 50 reads the level status of the third network port MCU_IO3 through the MCU chip 30 to determine whether there is a lower level module 50 at this level;
[0098] 3. The current level module 50 reads the level status of the first network port MCU_IO1 through the MCU chip 30 to determine whether the current level is awakened and activated by the upper level module 50;
[0099] 4. The current level module 50 controls the level conversion of the third network port MCU_IO3 through the MCU chip 30 to select whether to wake up the lower level module 50 .
[0100] In this way, through the hierarchy modification circuit, the hierarchy modules 50 of each layer can be awakened, and after awakening, the addresses or numbers of the hierarchy modules 50 of other levels can be modified through the hierarchy module 50 of the host layer.
[0101] In this way, through the hierarchical modification circuit, the hierarchical modification method of this embodiment can modify the address or number of each hierarchical module, and automatically identify the number and type of cascaded modules. Different types of modules can also be expanded arbitrarily, and at the same time, the activation of the corresponding module function output can be achieved, thereby achieving a high degree of freedom of expansion, high flexibility, low cost and high reliability.
[0102] Example 2
[0103] The present invention also uses a mobile charging device to which the level modification method described in Example 1 is applied. This embodiment is a specific application embodiment of the level modification method in Example 1 to further illustrate the level modification method.
[0104] like Figure 7As shown, the environment includes one or more mobile charging devices 300, and the user can charge one or more power-consuming devices through the mobile charging device 300. The power-consuming devices to be charged can be large power-consuming devices such as new energy vehicles, lathes, power-consuming robots, and televisions, and can also be commonly used power-consuming devices in life such as lighting equipment, mobile phones, computers, and speakers.
[0105] The mobile charging device 300 is cascaded with multiple hierarchical modules 50, and different hierarchical modules 50 are electrically and structurally connected to each other. Each hierarchical module 50 can be set to a different functional module structure, such as a host, a battery pack, an interface layer, etc. The number of hierarchical modules 50 of the mobile charging device 300 can also be adjusted according to actual conditions, and the hierarchical modules 50 can be increased or decreased accordingly.
[0106] Specifically, the mobile charging device 300 is stacked with four level modules 50 in order from top to bottom: a host layer 310 , an inverter layer 320 , a solar charging module layer 330 , and a battery pack layer 340 .
[0107] Among them, the signal of the MCU chip in the host layer 310 is GD32F303, the signal of the MCU chip 30 in the inverter layer 320 is BAT32G439, and the signal of the MCU chip 30 in the solar charging module layer 330 is CMS8S6990.
[0108] When the level modification method is applied to the mobile charging device 300, the application process is as follows:
[0109] The host layer 310 obtains the hierarchical information of the current host layer 310, and determines whether there is a next-level hierarchical module 50 below it according to the hierarchical information. The host layer 310 determines that there is a next-level hierarchical module 50 below it, and wakes up and activates the inverter layer 320;
[0110] After the inverter layer 320 is awakened, the host layer 310 can modify the address or number of the inverter layer 320. The host layer 310 will obtain the hierarchical information of the inverter layer 320 - the reporting information of the inverter layer 320 itself, and send it to the host layer 310. The reporting information of the inverter layer 320 includes the information that the inverter layer 320 itself is the inverter layer 320, that is, the device information of the hierarchical module 50 of the next level of the host layer 310 is the inverter, and the reporting information also includes that the inverter layer 320 also has the next level module 50, that is, the solar charging module layer 330;
[0111] The host layer 310 shuts down and wakes up the inverter layer 320. Of course, if it is needed, the inverter layer 320 may not be shut down and woken up;
[0112] The host layer 310 controls the inverter layer 320 to wake up the solar charging module layer 330. After the solar charging module layer 330 is awakened, the host layer 310 can modify the address or number of the inverter layer 320. Similarly, the host layer 310 will obtain the self-reporting information sent by the solar charging module layer 330 after being awakened;
[0113] The host layer 310 shuts down and wakes up the solar charging module layer 330. Of course, if it is needed, the solar charging module layer 330 may not be shut down and woken up;
[0114] The host layer 310 controls the solar charging module layer 330 to wake up the battery pack layer 340. After the battery pack layer 340 is awakened, the host layer 310 can modify the address or number of the battery pack layer 340. The host layer 310 will obtain the self-reporting information sent by the battery pack layer 340 after being awakened. Of course, at this time, the reporting information includes information that there is no next level in the battery pack layer 340.
[0115] The host layer 310 turns off and wakes up the battery pack layer 340. Of course, if it is needed, the battery pack layer 340 may not be turned off and woken up;
[0116] The level modification is completed.
[0117] In this way, after executing the hierarchy modification method, the mobile charging device 300 can modify the hierarchy module 50 whose address or number needs to be modified; and can know that it has functional modules such as inverter, solar charging and battery pack; and can determine the number of hierarchy modules 50 cascaded by itself, that is, four levels; and when applied, it can also wake up and use only the hierarchy modules 50 that need to be used. The effect of effectively improving resources and increasing the degree of freedom of expansion is achieved.
[0118] In addition, based on the above-mentioned hierarchical modification method, the present invention also provides a hierarchical modification device, which includes: an acquisition unit, used to acquire the hierarchical information of the current layer; a judgment unit, used to judge whether the current layer has a next-level hierarchical module based on the hierarchical information of the current layer; a wake-up unit, used to wake up the next-level hierarchical module when the judgment unit judges that the current layer has a next-level hierarchical module; a modification unit, used to modify the address of the next-level hierarchical module.
[0119] In addition, the present invention also provides a computer-readable storage medium, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the hierarchy modification method are implemented, as specifically described in the above method.
[0120] In summary, the present invention provides a level modification method, device, mobile charging device battery and storage medium, which have the following beneficial effects:
[0121] The present invention wakes up the next-level module by judging whether there is a next-level module in the current layer, and after waking up, modifies the address or number of the module, without modifying it by hardware or re-modifying all the modules of the whole machine, thereby achieving the effect of increasing flexibility. In this way, each module in the sub-device can be cascaded arbitrarily without considering the problem of being unable to modify the address, which facilitates the subsequent host to perform point-to-multipoint and point-to-point precise control of the cascaded devices, with high flexibility, convenient operation, and automatic modification of the number or address of the cascaded level.
[0122] Furthermore, each level module can determine whether there is a lower level module, and can obtain the device type of each level module based on the reported information of the level module. In this way, the number and type of cascade modules can be automatically identified, and the corresponding module function output can be activated at the same time, which has the effect of high degree of freedom of expansion.
[0123] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A level modification method, specifically relating to a level modification method for a mobile charging device, characterized in that: It includes: The host layer obtains the level information of the current layer, and determines whether the current layer has a next-level level module based on the level information of the current layer; If there is a next-level module, the next-level module is awakened, and the next-level module is the inverter layer; the reporting information of the next-level module is obtained and the reporting information that the next-level module is the inverter layer is sent to the host layer; after the inverter layer is awakened, the host layer sends an instruction to modify the address or number of the next-level module, that is, the inverter layer, to match the expanded whole device; The current layer module itself or the host layer can judge whether there is a next layer module, and the next layer module is a solar charging module layer; Turn off the hierarchical module that wakes up the inverter layer; The host layer controls the solar charging module layer to wake up; the host layer sends an instruction, and the host layer modifies the address or number of the solar charging module layer to match the expanded whole device; the host layer obtains the self-reporting information sent by the solar charging module layer after being awakened; the next layer of hierarchical module is the battery pack layer; Turn off the layer module that wakes up the solar charging module layer; The host layer controls the battery pack layer to be awakened, and after the battery pack layer is awakened, the host layer modifies the address or number of the battery pack layer; the host layer obtains the reporting information sent by the battery pack layer after being awakened; If the battery pack layer does not have a next-level hierarchical module, the wake-up is stopped and the hierarchical modification ends.
2. The level modification method according to claim 1, characterized in that: The hierarchical information of the current layer includes module information of the hierarchical module of the current layer itself.
3. The hierarchy modification method according to claim 1, characterized in that: The hierarchy modification method performs hierarchy modification from the top-level hierarchy module.
4. A hierarchy modification device for implementing the hierarchy modification method according to any one of claims 1 to 3, characterized in that: include: An acquisition unit, used to acquire the level information of the current layer; A judging unit, used to judge whether there is a next-level hierarchical module in the current layer according to the hierarchical information of the current layer; A wake-up unit, configured to wake up the next-level module when the judgment unit judges that there is a next-level module in the current layer; The modification unit is used to modify the address of the next level module.
5. A mobile charging device, characterized in that: It comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the hierarchical modification method described in any one of claims 1 to 3 when executing the computer program; the mobile charging device has a plurality of hierarchical modules, which are stacked with: a host layer, an inverter layer, a solar charging module layer and a battery pack layer, and each layer of the hierarchical modules is cascaded with each other.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the hierarchy modification method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
RS485 cascaded multi-user electric energy meter and data transmission mode thereof
CN111323648A