CN113515070A - Motor equipment address processing method and device, storage medium and motor controller - Google Patents

Motor equipment address processing method and device, storage medium and motor controller Download PDF

Info

Publication number
CN113515070A
CN113515070A CN202110786350.5A CN202110786350A CN113515070A CN 113515070 A CN113515070 A CN 113515070A CN 202110786350 A CN202110786350 A CN 202110786350A CN 113515070 A CN113515070 A CN 113515070A
Authority
CN
China
Prior art keywords
motor
address
equipment address
utilization rate
new
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110786350.5A
Other languages
Chinese (zh)
Inventor
吴文贤
王腾飞
全威
李季
潘宗荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110786350.5A priority Critical patent/CN113515070A/en
Publication of CN113515070A publication Critical patent/CN113515070A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The invention provides a motor equipment address processing method, a device, a storage medium and a motor controller, wherein the method comprises the following steps: determining whether to change the current equipment address of the motor; if the equipment address needs to be changed, a new equipment address is allocated to the motor; and storing the new equipment address into a memory chip of a controller of the motor. The scheme provided by the invention can effectively solve the problem of absolute motor address, and can change the address for many times according to the requirement.

Description

Motor equipment address processing method and device, storage medium and motor controller
Technical Field
The invention relates to the field of control, in particular to a motor equipment address processing method and device, a storage medium and a motor controller.
Background
The existing motor control scene mostly adopts a one-to-one control mode, and the single motor control mostly adopts infrared and radio frequency control. Although the infrared control improves the unattractive appearance of the cable in a wired mode to a certain extent, the infrared remote control is adaptive and often has the phenomenon of undervoltage. In some scenes, the identification for multiple motors is a mode of setting different equipment addresses of the motors by adopting the combination of dial switches, and although the dial switches effectively solve the defect of distinguishing different equipment addresses, the problem that the motor controller needs to be dismounted once the address is changed again after the motor controller is installed. This kind of mode sets up loaded down with trivial details, can destroy motor and electrical apparatus box after the machine is torn open, and secondary reducibility is extremely poor, and very big probability can cause the influence to the performance of motor. The other mode is a mode of using an external E2PROM of a controller mounting plate, which can solve the problem of address change, but the mode is consistent with a dial switch mode, certain hardware cost needs to be increased, and more IO resources of a motor controller are occupied, which causes waste.
Disclosure of Invention
The present invention is mainly intended to overcome the defects of the prior art, and provide a method and an apparatus for processing an address of a motor device, a storage medium, and a motor controller, so as to solve the problem of complexity in changing the address of the motor device in a motor control scenario in the prior art.
The invention provides a motor equipment address processing method on one hand, which comprises the following steps: determining whether to change the current equipment address of the motor; if the equipment address is determined to be changed, a new equipment address is allocated to the motor; and storing the new equipment address into a memory chip of a controller of the motor.
Optionally, storing the new device address in the memory chip includes: under the condition that the utilization rate of the storage space of the storage chip is greater than a preset utilization rate, storing the new equipment address in a sector at the middle position of the storage space; and under the condition that the utilization rate of the storage space of the storage chip is less than or equal to a preset utilization rate, storing the new equipment address in the last sector of the storage space.
Optionally, comprising: the preset utilization rate is 50%.
Optionally, the method further comprises: before storing the new device address into the memory chip, judging whether the new device address is used; and if the new equipment address is judged to be used, a new equipment address is allocated to the motor again.
In another aspect, the present invention provides an address processing apparatus for an electric machine, including: the determining unit is used for determining whether the current equipment address of the motor is changed; the allocation unit is used for allocating a new equipment address to the motor if the determination unit determines that the equipment address is changed; and the storage unit is used for storing the new equipment address into a storage chip of a controller of the motor.
Optionally, the storing, by the storage unit, the new device address to the memory chip includes: under the condition that the utilization rate of the storage space of the storage chip is greater than a preset utilization rate, storing the new equipment address in a sector at the middle position of the storage space;
and under the condition that the utilization rate of the storage space of the storage chip is less than or equal to a preset utilization rate, storing the new equipment address in the last sector of the storage space.
Optionally, the preset utilization rate is 50%.
Optionally, the method further comprises: a judging unit, configured to judge whether the new device address is used before storing the new device address in the memory chip; the allocation unit is further configured to: and if the judging unit judges that the new equipment address is used, a new equipment address is allocated to the motor again.
A further aspect of the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.
A further aspect of the invention provides a motor controller comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods described above when executing the program.
In another aspect, the present invention provides a motor controller, including any one of the motor device address processing apparatus described above.
According to the technical scheme of the invention, when the physical address of the motor is written into a storage chip (such as an on-chip FLASH) of the motor controller in the factory, and the motor address needs to be changed, the address of the motor equipment is inquired, and the equipment address is redistributed according to the field requirement. After the new motor equipment address is determined, the address is written into a storage chip (such as an on-chip FLASH) of the motor controller, the new equipment address is returned after the motor controller is refreshed, the motor equipment address can be changed for many times, the problem of the absolute motor address can be effectively solved, the traditional dialing switch and plug-in E2PROM mode are abandoned, the hardware cost problem of a plug-in E2PROM circuit in the motor controller can be effectively reduced, and the IO resource of the controller is wasted.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic method diagram of an embodiment of an address processing method for an electromechanical device provided by the present invention;
FIG. 2 illustrates a schematic connection of an electric machine to a physical device according to an embodiment of the present invention;
FIG. 3 illustrates an electromechanical device address storage flow diagram in accordance with one embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an address processing method for an electric machine according to an embodiment of the present invention;
fig. 5 is a block diagram of an embodiment of an address processing apparatus for a motor device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The invention provides an address processing method of motor equipment. The device address of the motor is stored in a memory chip of a controller of the motor. The device address may specifically be a physical address of the motor. The method may be implemented by software or by a physical device. When implemented in software, may be implemented in a motor controller. When the motor controller is realized through the entity device, the entity device is connected with the motor controller through the communication interface. For example, via a 485 communication interface, a CAN communication interface, or a SPI communication interface. For example, fig. 2 shows a schematic diagram of a motor and physical device connection according to an embodiment of the invention. As shown in fig. 2, the motor and the device are connected by a communication line. For example, the two are connected in a 485 communication interface mode and communicate; or in the form of a non-polar communication interface in the form of a power carrier in which the communication line is combined with the power line. Optionally, under the condition of connection and communication in a 485 communication interface mode, the communication protocol may adopt a variant structure of ModBus, so that the application scenario can be better adapted.
Fig. 1 is a schematic method diagram of an embodiment of an address processing method for a motor device according to the present invention.
As shown in fig. 1, according to one embodiment of the present invention, the device address processing method includes at least step S110, step S120, and step S130.
And step S110, determining whether to change the current equipment address of the motor.
Specifically, when the method is implemented by a physical device, the device extracts information such as equipment address and the like from the motor. For example, the entity device issues a command to the motor controller to query the device address of the motor, and the motor replies to the current default device address. When the method is realized through software, the information such as the equipment address stored in the storage chip of the controller of the motor can be read. If the default equipment address is replied, the equipment address is proved to be factory setting, and if the equipment address is not changed, the equipment address can be changed.
And step S120, if the equipment address is determined to be changed, a new equipment address is allocated to the motor.
Specifically, whether the equipment address of the motor is changed or not is confirmed, and if the equipment address of the motor is not changed, a motor parameter checking option is entered; if the address is changed, a new equipment address is issued. The assigned new device addresses may be sequentially incremented. For example, the device addresses that can be changed are sequentially determined in a question-and-answer manner according to a preset protocol.
And step S130, storing the new equipment address into a storage chip of a controller of the motor.
In one specific embodiment, the memory space of the memory chip of the controller of the electric machine is divided into memory areas. The storage space utilization is divided into two cases: a case where the utilization rate does not exceed a preset utilization rate (e.g., 50%, i.e., half) and a case where the utilization rate exceeds the preset utilization rate. Under the condition that the utilization rate of the storage space of the storage chip is greater than a preset utilization rate, storing the new equipment address in a sector at the middle position of the storage space; and under the condition that the utilization rate of the storage space of the storage chip is less than or equal to a preset utilization rate, storing the new equipment address in the last sector of the storage space.
The existing motor controller is generally a flash memory with large capacity, after the function of the motor is realized, the occupied space of the code is far smaller than the maximum capacity of the storage space, namely, the utilization rate of the storage space (the ratio of the motor function code to the size of the chip storage space) is low or even half of the storage space is not available, and great waste is caused. In addition, parameters such as motor addresses and the like are generally not larger than the minimum erasing unit in the storage space due to small data quantity, and all the parameters are operated according to the minimum erasing unit, and the data is obtained according to a controller chip manual.
The storage space utilization is divided into two cases: a case where the utilization rate does not exceed a preset utilization rate (e.g., 50%, i.e., half) and a case where the utilization rate exceeds the preset utilization rate. Under the condition that the utilization rate of the storage space of the storage chip of the motor is greater than a preset utilization rate, the equipment identifier of the electric appliance is stored in a sector at the middle position of the storage space; and under the condition that the utilization rate of the storage space of the storage chip of the motor is less than or equal to the preset utilization rate, storing the equipment identification of the electric appliance in the last sector of the storage space.
Fig. 3 shows a motor apparatus address storage flowchart according to an embodiment of the present invention. Specifically, in the case where the storage space utilization rate does not exceed the preset utilization rate (50% in fig. 3), a sector is divided in the storage space near the middle position (total storage space/2 ═ middle position) to store the device information (including at least the device identification, such as the physical address). The original data is stored in the middle position without considering parameters such as physical addresses and the like, and the storage quantity is large. And under the condition that the utilization rate of the storage space exceeds the preset utilization rate, storing the equipment information in the last sector of the storage space.
Optionally, when the existing controller chip stores information, in order to protect data from being deleted by mistake and from being unlocked by default, before storing the information, necessary operations such as unlocking, erasing and the like need to be performed on the sector (the operation information can be determined according to a motor controller chip manual). The stored device information comprises a physical address and can also comprise a back electromotive force parameter of the motor, a resistance inductance coefficient of the motor, the number of punching sheets of the stator and the rotor and the like.
In the case that the memory space utilization rate does not exceed the preset utilization rate, the FLASH memory device can be operated to store the device information after the first address is determined by looking up the first address of the last sector in the FLASH list (the FLASH memory configuration word is cleared by performing the page erase operation on the last page of most controller chips, thereby enabling code protection) which depends on the chip used and can be queried in the specification or specification of the chip. The reason why the last sector is determined is mainly because performing a page erase operation on the last page of most existing controller chips clears the flash configuration word, thereby enabling code protection. Therefore, performing a page erase operation on the last page of the program memory should be avoided.
Optionally, before storing the new device address in the memory chip, determining whether the new device address is used; and if the new equipment address is judged to be used, a new equipment address is allocated to the motor again.
For example, the written device address may be memorized, and if the written device address is written here, a new device address may be reassigned. When the method is executed by the entity device, the entity device has a memory function for the written equipment address, and when the written equipment address is written again, a new equipment address is reallocated and prompting can be performed. The phenomenon that the same equipment address exists in the same network and the out-of-control phenomenon occurs in motor control can be avoided to a certain extent.
When the device adopts the 485 communication interface to be in communication connection with the motor, the problem of cost increase caused by the fact that the motor needs to be provided with dial switches or FLASH outside the chip due to different equipment addresses can be solved based on the communication mode characteristic that only one host computer and a plurality of slave computers are arranged in a 485 bus.
For clearly explaining the technical solution of the present invention, the following describes an execution flow of the device address processing method provided by the present invention with a specific embodiment.
Fig. 4 is a schematic method diagram of a device address processing method according to an embodiment of the present invention. As shown in fig. 4, first, the entity apparatus issues a command for querying an apparatus address of the motor, and the motor replies to a current default apparatus address (the default apparatus address is factory setting, on one hand, it can be confirmed that the apparatus has not been changed, and on the other hand, it can be confirmed that the apparatus can be changed). The device confirms whether the equipment address of the motor is changed, if not, the device can enter a parameter option for checking the motor and check other data; if the address is changed, a new device address is issued, and the motor stores the new device address according to the method in the foregoing embodiment, so as to subsequently send an instruction with the new device address. The above process is based on the ModBus protocol with a variant structure, each communication is replied, and whether the communication is successful can be judged according to replied information. Alternatively, the addresses are assigned, for example, sequentially. And in the case that the issued new device address is used by other motors, another new device address is reallocated for writing. The entity device has a storage and memory function for written equipment addresses, and prompts when the written equipment addresses are written again, so that the phenomenon that the same equipment addresses exist in the same network and the motor control is out of control can be avoided to a certain extent.
The invention also provides an address processing device of the motor equipment. The device address of the motor is stored in a memory chip of a controller of the motor. The device address may specifically be a physical address of the motor. The apparatus may be implemented by software or in a physical device. When implemented in software, may be implemented in a motor controller. When the motor controller is realized through the entity device, the entity device is connected with the motor controller through the communication interface. For example, via a 485 communication interface, a CAN communication interface, or a SPI communication interface. For example, fig. 2 shows a schematic diagram of a motor and physical device connection according to an embodiment of the invention. As shown in fig. 2, the motor and the device are connected by a communication line. For example, the two are connected in a 485 communication interface mode and communicate; or in the form of a non-polar communication interface in the form of a power carrier in which the communication line is combined with the power line. Optionally, under the condition of connection and communication in a 485 communication interface mode, the communication protocol may adopt a variant structure of ModBus, so that the application scenario can be better adapted.
Fig. 5 is a block diagram of an embodiment of an address processing apparatus for a motor device according to the present invention. As shown in fig. 5, the motor device address processing apparatus 100 includes a determination unit 110, an assignment unit 120, and a storage unit 130.
A determining unit 110, configured to determine whether to change a current device address of the motor;
specifically, the determination unit 110 first determines whether or not the device address can be changed, and extracts information such as the device address for the motor. For example, a command for inquiring the device address of the motor is issued to the motor controller, and the motor returns to the current default device address. When implemented by software, the determination unit 110 may read information such as a device address stored in a memory chip of a controller of the motor. If the default equipment address is replied, the equipment address is proved to be factory setting, and if the equipment address is not changed, the equipment address can be changed.
An assigning unit 120, configured to assign a new device address to the motor if the determining unit 110 determines to change the device address.
Specifically, whether the equipment address of the motor is changed or not is confirmed, and if the equipment address of the motor is not changed, a motor parameter checking option is entered; if the address is changed, a new equipment address is issued. The assigned new device addresses may be sequentially incremented. For example, the device addresses that can be changed are sequentially determined in a question-and-answer manner according to a preset protocol.
The storage unit 130 is used to store the new device address into a memory chip of the controller of the motor.
In one specific embodiment, the memory space of the memory chip of the controller of the electric machine is divided into memory areas. The storage space utilization is divided into two cases: a case where the utilization rate does not exceed a preset utilization rate (e.g., 50%, i.e., half) and a case where the utilization rate exceeds the preset utilization rate. Under the condition that the utilization rate of the storage space of the storage chip is greater than a preset utilization rate, storing the new equipment address in a sector at the middle position of the storage space; and under the condition that the utilization rate of the storage space of the storage chip is less than or equal to a preset utilization rate, storing the new equipment address in the last sector of the storage space.
The existing motor controller is generally a flash memory with large capacity, after the function of the motor is realized, the occupied space of the code is far smaller than the maximum capacity of the storage space, namely, the utilization rate of the storage space (the ratio of the motor function code to the size of the chip storage space) is low or even half of the storage space is not available, and great waste is caused. In addition, parameters such as motor addresses and the like are generally not larger than the minimum erasing unit in the storage space due to small data quantity, and all the parameters are operated according to the minimum erasing unit, and the data is obtained according to a controller chip manual.
The storage space utilization is divided into two cases: a case where the utilization rate does not exceed a preset utilization rate (e.g., 50%, i.e., half) and a case where the utilization rate exceeds the preset utilization rate. Under the condition that the utilization rate of the storage space of the storage chip of the motor is greater than a preset utilization rate, the equipment identifier of the electric appliance is stored in a sector at the middle position of the storage space; and under the condition that the utilization rate of the storage space of the storage chip of the motor is less than or equal to the preset utilization rate, storing the equipment identification of the electric appliance in the last sector of the storage space.
Specifically, in the case where the storage space utilization does not exceed the preset utilization, a sector is divided in the storage space near the middle position to store the device information (including at least the device identification, such as a physical address). The original data is stored in the middle position without considering parameters such as physical addresses and the like, and the storage quantity is large.
Optionally, when the existing controller chip stores information, in order to protect data from being deleted by mistake and from being unlocked by default, before storing the information, necessary operations such as unlocking, erasing and the like need to be performed on the sector (the operation information can be determined according to a motor controller chip manual). The stored device information comprises a physical address and can also comprise a back electromotive force parameter of the motor, a resistance inductance coefficient of the motor, the number of punching sheets of the stator and the rotor and the like.
In the case that the memory space utilization rate does not exceed the preset utilization rate, the FLASH memory device can be operated to store the device information after the first address is determined by looking up the first address of the last sector in the FLASH list (the FLASH memory configuration word is cleared by performing the page erase operation on the last page of most controller chips, thereby enabling code protection) which depends on the chip used and can be queried in the specification or specification of the chip. The reason why the last sector is determined is mainly because performing a page erase operation on the last page of most existing controller chips clears the flash configuration word, thereby enabling code protection. Therefore, performing a page erase operation on the last page of the program memory should be avoided.
Optionally, based on the above embodiment, the apparatus 100 further includes: a judging unit (not shown). A judging unit configured to judge whether the new device address is used before the storing unit stores the new device address in the memory chip; the allocating unit 130 is further configured to: and if the judging unit judges that the new equipment address is used, a new equipment address is allocated to the motor again.
For example, the written device address may be memorized, and if the written device address is written here, a new device address may be reassigned. When the method is executed by the entity device, the entity device has a memory function for the written equipment address, and when the written equipment address is written again, a new equipment address is reallocated and prompting can be performed. The phenomenon that the same equipment address exists in the same network and the out-of-control phenomenon occurs in motor control can be avoided to a certain extent.
The invention also provides a storage medium corresponding to the motor device address processing method, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program realizes the steps of any one of the methods.
The invention also provides a motor controller corresponding to the motor device address processing method, which comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of any one of the methods.
The invention also provides a motor controller corresponding to the motor equipment address processing device, which comprises any one of the motor equipment address processing devices.
Therefore, according to the scheme provided by the invention, the physical address of the motor is written into a storage chip (such as an on-chip FLASH) of the motor controller when the motor is shipped, and when the motor address needs to be changed, the address of the motor equipment is inquired, and the equipment address is redistributed according to the field requirement. After the new motor equipment address is determined, the address is written into a storage chip (such as an on-chip FLASH) of the motor controller, and the new equipment address is returned after the motor controller is refreshed, so that the motor equipment address can be changed for many times, and the problem of motor address absolute can be effectively solved; the traditional dial switch and plug-in E2PROM modes are abandoned, the hardware cost problem of the plug-in E2PROM circuit in the motor controller can be effectively reduced, and the IO resources of the controller are wasted.
The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Other examples and implementations are within the scope and spirit of the invention and the following claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwired, or a combination of any of these. In addition, each functional unit may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and the parts serving as the control device may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. An address processing method for a motor device, comprising:
determining whether to change the current equipment address of the motor;
if the equipment address is determined to be changed, a new equipment address is allocated to the motor;
and storing the new equipment address into a memory chip of a controller of the motor.
2. The method of claim 1, wherein storing the new device address in the memory chip comprises:
under the condition that the utilization rate of the storage space of the storage chip is greater than a preset utilization rate, storing the new equipment address in a sector at the middle position of the storage space;
and under the condition that the utilization rate of the storage space of the storage chip is less than or equal to a preset utilization rate, storing the new equipment address in the last sector of the storage space.
3. The method of claim 1, comprising:
the preset utilization rate is 50%.
4. The method according to any one of claims 1-3, further comprising:
before storing the new device address into the memory chip, judging whether the new device address is used;
and if the new equipment address is judged to be used, a new equipment address is allocated to the motor again.
5. An address processing apparatus of a motor device, the apparatus comprising:
the determining unit is used for determining whether the current equipment address of the motor is changed;
the allocation unit is used for allocating a new equipment address to the motor if the determination unit determines that the equipment address is changed;
and the storage unit is used for storing the new equipment address into a storage chip of a controller of the motor.
6. The apparatus of claim 5, wherein the storage unit stores the new device address in the memory chip, and comprises:
under the condition that the utilization rate of the storage space of the storage chip is greater than a preset utilization rate, storing the new equipment address in a sector at the middle position of the storage space;
and under the condition that the utilization rate of the storage space of the storage chip is less than or equal to a preset utilization rate, storing the new equipment address in the last sector of the storage space.
7. The apparatus of claim 6, wherein the preset utilization rate is 50%.
8. The apparatus of any one of claims 5-7, further comprising:
a judging unit, configured to judge whether the new device address is used before storing the new device address in the memory chip;
the allocation unit is further configured to: and if the judging unit judges that the new equipment address is used, a new equipment address is allocated to the motor again.
9. A storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
10. A motor controller comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 4 when executing the program or comprising the motor apparatus address processing means according to any one of claims 5 to 8.
CN202110786350.5A 2021-07-12 2021-07-12 Motor equipment address processing method and device, storage medium and motor controller Pending CN113515070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110786350.5A CN113515070A (en) 2021-07-12 2021-07-12 Motor equipment address processing method and device, storage medium and motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110786350.5A CN113515070A (en) 2021-07-12 2021-07-12 Motor equipment address processing method and device, storage medium and motor controller

Publications (1)

Publication Number Publication Date
CN113515070A true CN113515070A (en) 2021-10-19

Family

ID=78067367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110786350.5A Pending CN113515070A (en) 2021-07-12 2021-07-12 Motor equipment address processing method and device, storage medium and motor controller

Country Status (1)

Country Link
CN (1) CN113515070A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807171A (en) * 2010-02-04 2010-08-18 青岛海信电器股份有限公司 Method and device for setting identifier of household appliance
US20120198137A1 (en) * 2009-04-20 2012-08-02 Imation Corp. Logical-to-Physical Address Translation for a Removable Data Storage Device
CN107506308A (en) * 2017-06-30 2017-12-22 杭州旗捷科技有限公司 A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment
CN108319433A (en) * 2018-03-19 2018-07-24 艾体威尔电子技术(北京)有限公司 The memory management method of the NOR Flash of small memory microcontroller
CN111061649A (en) * 2019-10-28 2020-04-24 宁波三星智能电气有限公司 Self-adaptive allocation method for storage space of memory

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120198137A1 (en) * 2009-04-20 2012-08-02 Imation Corp. Logical-to-Physical Address Translation for a Removable Data Storage Device
CN101807171A (en) * 2010-02-04 2010-08-18 青岛海信电器股份有限公司 Method and device for setting identifier of household appliance
CN107506308A (en) * 2017-06-30 2017-12-22 杭州旗捷科技有限公司 A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment
CN108319433A (en) * 2018-03-19 2018-07-24 艾体威尔电子技术(北京)有限公司 The memory management method of the NOR Flash of small memory microcontroller
CN111061649A (en) * 2019-10-28 2020-04-24 宁波三星智能电气有限公司 Self-adaptive allocation method for storage space of memory

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
EP1956758B1 (en) Method and apparatus for automatically recognizing a connection of a device to a building management system
US20150106914A1 (en) Remote control system, and method thereof
CN110247829A (en) Appliances equipment control method, device, electronic equipment and storage medium
CN101986665B (en) Internet protocol version 6 (IPV6) address allocating method and system
CN104955045A (en) Access control method, device, terminal and system
CN101958732B (en) System, method, and apparatus for data communication
CN103795759A (en) Method and system for scheduling virtual machine mirror image file
CN109556229B (en) Control method of air conditioning equipment and air conditioning equipment
KR20070055590A (en) Method of managing a distributed storage system
CN107612941B (en) Authority management method, device, equipment and storage medium
US7305458B2 (en) System and method for auto-configuring stackable network devices
CN107566518B (en) Method and device for managing equipment information in file installation process
JP4257238B2 (en) Automatic IP address assignment method / program / recording medium / device / system, chassis management device, control card
US11388274B2 (en) Method for implementing high availability of bare metal node based on OpenStack and electronic device using the same
CN105827745A (en) Addressing communication method based on media access control address and addressing communication device thereof
CN110762604A (en) Indoor unit, pairing method and device of indoor unit and wired controller, storage medium and air conditioner
CN111130962A (en) Automatic configuration method, equipment, system and storage medium for switch
CN104461705A (en) Service access method, storage controllers and cluster storage system
CN113515070A (en) Motor equipment address processing method and device, storage medium and motor controller
CN102186257A (en) Communication method of wireless terminal and host equipment, wireless terminal and host equipment
CN107659516B (en) Function control method and device for broadband remote access server BRAS
CN117255018A (en) Network configuration method and device for bare metal instance and computer equipment
CN113381916A (en) CAN bus intelligent household management method, device, equipment and storage medium
CN112526891A (en) Intelligent switch key control system and method

Legal Events

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