Fan address writing method and fan address writing system
The automatic address writing method for FFUs addresses the challenges of manual address setting by using a host computer to sequentially set addresses for multiple FFUs through RS485 communication, enhancing convenience and accuracy.
Patent Information
- Application Number
- CN202411746880.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-12-02
AI Technical Summary
The existing method of manually setting addresses for multiple Fan Filter Units (FFUs) is prone to errors and inconvenient due to the need for on-site personnel to wear protective clothing and navigate complex environments, leading to difficulties in troubleshooting and maintenance.
A method and system for automatic address writing that involves a host computer sending initial address information and write instructions to a fan group, where each fan in the group sequentially sets its address based on the previous fan's information, using RS485 communication and a microcontroller unit (MCU) to process signals and generate address information.
This approach improves the convenience and accuracy of address setting for multiple FFUs by allowing automatic addressing without manual intervention, reducing errors and simplifying the process for construction personnel.
Smart Images

Figure CN119232707A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of wind turbine address control, and in particular to a wind turbine address writing method and a wind turbine address writing system. Background Art
[0002] Fan Filter Unit (FFU) is an air filtration device widely used in clean rooms, laboratories, hospitals and other places to provide a clean and healthy air environment.
[0003] To support the production of high-tech products, a large number of dust-free workshops are being built and used across the country, among which FFU is widely used. In order to facilitate factory monitoring of clean rooms, the most common practice is to connect a large number of FFUs together through RS-485 and Ethernet, and control them through computers in the central control room. In this way, each FFU needs to be given a unique address so that it can correspond one to one on the computer interface.
[0004] When writing addresses to FFUs, on-site construction personnel are required to carry a handheld device close to the FFU to set addresses for each FFU one by one, that is, to write the address of the FFU into the controller of the FFU. However, when setting addresses, it is easy to have repeated address settings or missed addresses, resulting in difficulties in troubleshooting and maintenance. In addition, the controller inside the FFU is generally installed in the technical mezzanine of the clean room. Due to the large number of equipment pipelines in the technical mezzanine, it is very inconvenient for personnel to move. On-site construction personnel need to wear stuffy dust-proof clothing to avoid the dust-free environment of the dust-free workshop, and they also need to climb to the side of the FFU one by one, making it difficult for construction personnel to write addresses for multiple FFUs.
[0005] Therefore, how to improve the convenience and accuracy of address writing for multiple FFUs has become a technical problem that needs to be solved urgently. Summary of the invention
[0006] In view of the above problems, the embodiments of the present application provide a fan address writing method and a fan address writing system, which are used to solve the problems in the prior art that it is difficult to write addresses for multiple FFUs and address writing is prone to errors.
[0007] According to one aspect of an embodiment of the present application, a fan addressing method is provided, which is applied to a fan group, wherein the fan group establishes a communication connection with a host computer, and the fan group includes n fans arranged in sequence, where n is an integer greater than 1, and the fan addressing method includes: the first fan among the n fans receives the initial address information and the first write instruction sent by the host computer; the i-th fan among the n fans performs the following steps, wherein i is sequentially taken from 1 to n: in response to the i-th write instruction sent by the i-1th fan, the i-th address information is set to the local address number of the i-th fan, wherein the i-th address information is generated by the i-1th fan or the i-th fan according to the i-1th address information, the 0th fan is taken as the host computer, and the 0th address information is taken as the initial address information; if i does not get n, then the i+1th write instruction is generated, and the i+1th write instruction is sent to the i+1th fan; if i gets n, the address writing of the fan group is completed.
[0008] Preferably, the n wind turbines each include a first network port, a second network port, a microcontroller unit MCU and a 485 communication circuit module; the first network port of the first wind turbine and the second network port of the nth wind turbine are both connected to a host computer via a communication network cable, and when i is greater than 1, the first network port of the i-th wind turbine and the second network port of the i-1th wind turbine are connected to a communication network cable; the communication network cable includes an RS485 communication cable and a first signal cable, the communication network cable is used to transmit signals between two devices, the RS485 communication cable is used to transmit RS485 signals so that the two devices establish a 485 connection, and the first signal cable is used to transmit level signals so that the two devices establish a first communication connection; a 485 connection is established between the host computer and the n wind turbines; the first network port of the wind turbine is connected to the first communication network cable, and is used to receive the RS485 signal and the level signal transmitted by the first communication network cable, and transmit the received level signal to the MCU of the wind turbine, and transmit the received The RS485 signal is transmitted to the 485 communication circuit module of the fan; the 485 communication circuit module is connected to the MCU, and is used to process the received RS485 signal and send it to the MCU; the MCU is used to process the received level signal and / or RS485 signal, and generate the level signal and / or the initial RS485 signal; the MCU is also used to transmit the generated initial RS485 signal to the 485 communication circuit module, and transmit the generated level signal to the second network port; the 485 communication circuit module is also used to generate an RS485 signal according to the initial RS485 signal, and send the generated RS485 signal to the second network port; the second network port is connected to the second communication network cable, and is used to transmit the level signal generated by the MCU to the first signal line of the second communication network cable, and transmit the RS485 signal generated by the 485 communication circuit module to the RS485 communication line of the second communication network cable.
[0009] Preferably, before the first fan among the n fans receives the initial address information and the first write instruction sent by the host computer, the fan address writing method also includes: the n fans receive the address writing instruction sent by the host computer through a 485 connection, and enter the address writing mode in response to the address writing instruction; after responding to the i-th write instruction sent by the i-1th fan, setting the i-th address information to the local address number of the i-th fan, the fan address writing method also includes: sending the i-th address information to the host computer through a 485 connection; and exiting the address writing mode.
[0010] Preferably, the i-th address information is generated by the i-1th wind machine according to the i-1th address information, and the first address information is the initial address information; before responding to the i-th write instruction sent by the i-1th wind machine and setting the i-th address information to the local address number of the i-th wind machine, the wind machine address writing method further includes: receiving the i-th write instruction and the i-th address information sent by the i-1th wind machine through the first communication connection; responding to the i-th write instruction sent by the i-1th wind machine, setting the i-th address information to the local address number of the i-th wind machine, and further The method includes: in response to the i-th write instruction, setting the i-th address information as the local address number of the i-th fan through the MCU of the i-th fan; if i does not get n, generating the i+1-th write instruction, and sending the i+1-th write instruction to the i+1-th fan, and further including: if i does not get n, generating the i+1-th write instruction through the MCU of the i-th fan, and generating the i+1-th address information according to the i-th address information; sending the i+1-th write instruction and the i+1 address information to the i+1-th fan through the first communication connection.
[0011] Preferably, the MCU includes a cache space, and the i-th address information is generated for the i-th fan according to the i-1th address information; before responding to the i-th write instruction sent by the i-1th fan, setting the i-th address information to the local address number of the i-th fan, the fan address writing method also includes: receiving the i-1th address information sent by the i-1th fan through a 485 connection, refreshing the cache space and storing the i-1th address information in the cache space; receiving the i-th write instruction sent by the i-1th fan through the first communication connection; responding to the i-th write instruction sent by the i-1th fan, setting the i-th address information to the local address number of the i-th fan, and further including: responding to the i-th write instruction, The MCU of the i-th fan reads the i-1th address information of the cache space, generates the i-th address information according to the read i-1th address information, and sets the i-th address information as the local address number of the i-th fan; if i does not get n, then generates the i+1th write instruction, and sends the i+1th write instruction to the i+1th fan, further including: if i does not get n, then generates the i+1th write instruction through the MCU of the i-th fan; broadcasts the i-th address information through the 485 communication circuit module, so that the cache space of at least n-1 fans including the i+1th fan is updated to the i-th address information; sends the i+1th write instruction to the i+1th fan through the first communication connection.
[0012] According to another aspect of an embodiment of the present application, a fan address writing method is provided, which is applied to a host computer, and a communication connection is established between the host computer and a fan group. The fan group includes n fans arranged in sequence, where n is an integer greater than 1. The fan address writing method includes: in response to an address writing operation, obtaining initial address information and generating a first write instruction; sending the initial address information and the first write instruction to the first fan among the n fans, so that the i-th fan writes the i-th address information corresponding to the i-th fan, wherein the i-th address information is related to the initial address information, and i is taken from 1 to n in sequence.
[0013] Preferably, the n wind turbines each include a first network port and a second network port; the host computer is respectively connected to the first network port of the first wind turbine and the second network port of the nth wind turbine with a communication network cable, and when i is greater than 1, the first network port of the i-th wind turbine and the second network port of the i-1th wind turbine are connected to the communication network cable; the communication network cable includes an RS485 communication cable and a first signal line, the communication network cable is used to transmit signals between two devices, the RS485 communication cable is used to transmit RS485 signals so that the two devices establish a 485 connection, and the first signal line is used to transmit a level signal so that the two devices establish a first communication connection; a 485 connection is established between the host computer and the n wind turbines.
[0014] Preferably, after sending the initial address information and the first write instruction to the first fan among the n fans, the fan address writing method also includes: receiving the i-th address writing information corresponding to the i-th fan sent by the i-th fan through the 485 connection, wherein the i-th address writing information is used to characterize that the i-th fan has completed address writing; and judging whether all wind turbine groups have completed address writing according to the i-th address writing information.
[0015] Preferably, the i-th address writing information includes the i-th address information, and the address information interval between two adjacent fans is a preset number of digits; before judging whether the fan groups have all completed address writing according to the i-th address writing information, the fan address writing method also includes: determining the initial n-th address information of the n-th fan according to the initial address information and the preset number of digits; judging whether the fan groups have all completed address writing according to the i-th address writing information, including: comparing the initial n-th address information and the received i-th address writing information to see if they are consistent, and if the initial n-th address information and the received i-th address writing information are consistent, then determining that the fan groups have all completed address writing Complete address writing; or, receive the i-th address writing information corresponding to the i-th fan sent by the i-th fan through the 485 connection, and also include: receive the i-th address writing information corresponding to the i-th fan sent by the i-th fan through the 485 connection; record the i-th time when the i-th address writing information is received; write the i-th time into the i-th address writing information; determine whether all wind turbine groups have completed address writing according to the i-th address writing information, further including: read the i-th time of the i-th address writing information, if there is no other address writing information after the preset time length of the i-th time, it is determined that all wind turbine groups have completed address writing.
[0016] According to another aspect of the embodiment of the present application, a wind turbine address writing system is provided, the wind turbine address writing system includes a host computer and a wind turbine group, the host computer and the wind turbine group have a communication connection, the wind turbine group includes n wind turbines arranged in sequence, n is an integer greater than 1; the host computer is used to respond to the address writing operation, obtain initial address information and generate a first write instruction; the host computer is also used to send the initial address information and the first write instruction to the first wind turbine among the n wind turbines, so that the i-th wind turbine writes the i-th address information corresponding to the i-th wind turbine, wherein the i-th address information is related to the initial address information, and i is sequentially taken from 1 to n; the first wind turbine among the n wind turbines is used to receive the upper The invention discloses a method for preparing an upper computer for transmitting the initial address information and the first write instruction sent by the upper computer; n fans, the i-th fan among the n fans is used to perform the following steps, and i is sequentially taken from 1 to n: in response to the i-th write instruction sent by the i-1-th fan, the i-th address information is set to the local address number of the i-th fan, wherein the i-th address information is generated for the i-1-th fan or the i-th fan according to the i-1-th address information, the 0th fan is taken as the upper computer, and the 0th address information is taken as the initial address information; if i does not get n, the i+1-th write instruction is generated, and the i+1-th write instruction is sent to the i+1-th fan; if i gets n, the address writing of the fan group is completed.
[0017] The fan addressing method applied to a fan group provided in the embodiment of the present application sets each of the n fans to respond in turn to the i-th write instruction sent by the i-1th fan (the previous fan) for controlling the addressing of the fan itself, and sets the i-th address information to the local address number of the i-th fan to complete the automatic addressing of the n fans. In addition, the first fan responds to the write instruction sent by the host computer, so that the fan group can start the automatic addressing program of the fan group through the host computer. After starting the automatic addressing program of the fan group, multiple fans of the fan group can automatically complete the address writing one by one. Therefore, in actual use, construction personnel can operate a host computer to write the address of a fan group, thereby improving the convenience of addressing multiple FFUs. Moreover, the addressing of multiple fans is completed automatically without manual setting, thereby improving the accuracy of addressing multiple FFUs.
[0018] The fan addressing method applied to the host computer provided in the embodiment of the present application obtains the initial address information and generates the first write instruction in response to the addressing operation, and sends the initial address information and the first write instruction to the first fan among n fans, so that the i-th fan writes the i-th address information corresponding to the i-th fan, so that the n fans automatically complete the addressing one by one, thereby improving the convenience and accuracy of addressing multiple FFUs.
[0019] The fan addressing system provided in the embodiment of the present application obtains the initial address information and generates the first write instruction in response to the addressing operation by the upper computer, and sends the initial address information and the first write instruction to the first fan among n fans to trigger automatic addressing of the fan group, thereby improving the convenience of addressing multiple FFUs; through each fan of the fan group, it responds in turn to the i-th write instruction sent by the previous fan for controlling the addressing of the current fan, and sets the i-th address information to the local address number of the i-th fan to realize automatic addressing of n fans, thereby improving the accuracy of addressing multiple FFUs.
[0020] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings: Figure 1 A schematic diagram of an application scenario of the wind turbine address writing method provided in an embodiment of the present application is shown; Figure 2 A schematic diagram of pin connections of a fan in a fan unit provided in an embodiment of the present application is shown; Figure 3 A schematic diagram of the flow of a wind turbine address writing method provided in an embodiment of the present application is shown; Figure 4 A schematic diagram of a flow chart of a wind turbine address writing method provided by another embodiment of the present application is shown; Figure 5 A schematic diagram of a flow chart of a wind turbine address writing method provided by another embodiment of the present application is shown; Figure 6 A schematic diagram showing a flow chart of a wind turbine address writing method provided in another embodiment of the present application Figure 7 A schematic structural diagram of a wind turbine address writing system provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0022] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.
[0023] This application is applicable to addressing an FFU fan group composed of multiple FFUs, and is also applicable to addressing multiple fans of other types, for example, addressing a BFU fan group composed of multiple BFUs (Blowing Filter Units), or addressing a fan group composed of multiple FFUs and BFU fans.
[0024] Figure 1 A schematic diagram showing an application scenario of the wind turbine address writing method provided in an embodiment of the present application is shown. Figure 1 , n wind turbines all include a first network port, a second network port, a microcontroller unit MCU and a 485 communication circuit module; the first network port of the first wind turbine and the second network port of the n-th wind turbine are both connected to the host computer via a communication network cable, and when i is greater than 1, the first network port of the i-th wind turbine and the second network port of the i-1-th wind turbine are connected to a communication network cable.
[0025] The host computer may be a handheld device that can be used to set the fan.
[0026] The communication network cable includes an RS485 communication cable and a first signal cable. The communication network cable is used to transmit signals between two devices. The RS485 communication cable is used to transmit RS485 signals so that the two devices establish a 485 connection. The first signal cable is used to transmit a level signal so that the two devices establish a first communication connection. A 485 connection is established between the host computer and the n wind turbines. Specifically, the communication network cable is connected to the RJ45 port of the host computer.
[0027] The communication network cable is preferably a Category 5e network cable, and the two core wires of any pair of twisted pair cables in the Category 5e network cable are respectively used as the communication line of communication port A and the communication line of communication port B that comply with the RS485 communication protocol to realize 485 connection. Specifically, blue and blue-white twisted pair cables can be selected as 485 communication lines and set up in accordance with the TIA / EIA-568B international standard; any one of the remaining twisted pair cables in the Category 5e network cable is used as a communication signal line (that is, the first signal line) to realize the automatic addressing function, and of course multiple cables can be used.
[0028] Furthermore, the internal structure of each fan is described.
[0029] The first network port of the fan is connected to the first communication network cable, and is used to receive the RS485 signal and the level signal transmitted by the first communication network cable, and transmit the received level signal to the MCU of the fan, and transmit the received RS485 signal to the 485 communication circuit module of the fan.
[0030] The MCU communicates with the first network port through PIN3 of the Category 5e network cable and communicates with the second network port through PIN4. After receiving the level signal from the host computer, PIN3 is set high.
[0031] The 485 communication circuit module is connected to the MCU and is used to process the received RS485 signal and send it to the MCU.
[0032] The MCU is used to process the received level signal and / or RS485 signal, and to generate the level signal and / or the initial RS485 signal, and is also used to transmit the generated initial RS485 signal to the 485 communication circuit module, and transmit the generated level signal to the second network port.
[0033] When the generated level signal is transmitted to the second network port, PIN4 is set high.
[0034] The 485 communication circuit module is also used to generate an RS485 signal according to the initial RS485 signal, and send the generated RS485 signal to the second network port.
[0035] The second network port is connected to the second communication network cable, and is used to transmit the level signal generated by the MCU to the first signal line of the second communication network cable, and to transmit the RS485 signal generated by the 485 communication circuit module to the RS485 communication line of the second communication network cable.
[0036] The 485 communication circuit modules of multiple fans form a parallel structure. When the host computer is electrically connected to the parallel structure, after the host computer sends the RS485 signal, the 485 communication circuit modules of n fans can all receive the RS485 signal sent by the host computer.
[0037] Please combine Figure 1 and Figure 2 , the specific structures of the first network port, the second network port, the micro control unit MCU and the 485 communication circuit module are described. Figure 2 P1 shows a specific structural diagram of the MCU, P2 shows a specific structural diagram of the 485 communication circuit module, P3 shows a circuit connection diagram for realizing the communication function between the MCU and the network port, and P4 shows a specific structural diagram of the first network port.
[0038] The PB04 pin and the PB06 pin of the MCU are respectively connected to the D1 pin and the RO pin of the 485 communication circuit module to respectively realize the sending signal function of 485TX and the receiving signal function of 485RX.
[0039] The PB03 pin of the MCU is connected to the port 5 and the port 13 of the first network port to realize the level signal transmission function of S1. The circuit structure for realizing the signal transmission between the PB03 pin and the port 5 and the port 13 can be specifically referred to as P3.
[0040] Port A of the 485 communication circuit module is connected to port 7 and port 15 of network port 1 to realize communication of communication port A of the 485 connection; port B of the 485 communication circuit module is connected to port 3 and port 11 of network port 1 to realize communication of communication port B of the 485 connection.
[0041] It should be noted that the specific structure of the second network port is similar to that of the first network port. Therefore, the structure of the second network port to implement communication can refer to the above description of the first network port, which will not be repeated here.
[0042] In actual use, since the fan group is connected through the 485 bus in a hand-in-hand structure, the two core wires of any pair of twisted pairs in the Category 5e network cable are actually used as A and B of 485, and the remaining twisted pairs are non-functional. For the convenience of explanation, we use blue and blue-white twisted pairs as 485 communication lines. According to the TIA / EIA-568B international standard, these are PIN4 and PIN5, which we can name D1 / D2 respectively. Our innovation is to use any one of the remaining twisted pairs as the communication signal line of the automatic dialing function. Of course, multiple pairs can also be used. The principle is the same. Here, for the convenience of description, we use PIN1 orange and white as the automatic dialing communication line; since the fan group is connected through the 485 bus in a hand-in-hand structure, each fan must have two RJ45 ports, one as the input port and the other as the output port, and in order to facilitate the construction of on-site workers, the definition of these two input and output ports is arbitrary. In this way, there will be pins corresponding to the twisted pair PIN1 on both RJ45 ports, which are defined as P1 and P9 for the convenience of description. In the PCB board design, the communication chip has two GPIO ports D3 and D4, which are connected to P1 and P9 respectively. In this way, the communication chip has pins D1 and D2 corresponding to 485+ and 485- respectively, and pins D3 and D4 corresponding to P1 and P9 of the RJ45 port respectively. When the fan unit is connected to the network cable, P1 and P9 are connected to the orange and white wires of PIN1 of the network cable. When the network cable is also inserted into the RJ45 port of the handheld, all the hardware for the write address function is ready: P1 of the handheld is connected to D3 of the fan controller chip through PIN1 of the network cable.
[0043] Embodiment 1: Figure 3 A schematic diagram showing the flow of the wind turbine address writing method provided in the embodiment of the present application is shown. Figure 3 The fan addressing method is applied to a fan group. The fan group has a communication connection with a host computer. The fan group includes n fans arranged in sequence, where n is an integer greater than 1. The fan addressing method includes: S110, the first wind turbine among the n wind turbines receives the initial address information and the first write instruction sent by the host computer.
[0044] The initial address information may include group information and number information, such as "G1F1 (group 1, number 1)".
[0045] The host computer, in response to the address writing operation, obtains the initial address information and generates the first write instruction, and sends the initial address information and the first write instruction to the first fan among the n fans, so that the i-th fan writes the i-th address information corresponding to the i-th fan, wherein the i-th address information is related to the initial address information, and i is taken from 1 to n in sequence.
[0046] The construction personnel trigger the address writing operation on the host computer. The initial address information may be the address information independently input by the user through the buttons or touch screen on the host computer, or may be generated by the host computer itself in response to the address writing operation.
[0047] S120, the i-th wind turbine among the n wind turbines executes the following steps, wherein i is sequentially incremented from 1 to n.
[0048] S121, in response to the i-th write instruction sent by the i-1th wind machine, set the i-th address information to the local address number of the i-th wind machine, wherein the i-th address information is generated by the i-1th wind machine or the i-th wind machine according to the i-1th address information, the 0th wind machine is taken as the host computer, and the 0th address information is taken as the initial address information.
[0049] For example, the first address information of the first fan is G1F1, and the second address information can be obtained by performing character operation on G1F1, and the second address information of the second fan can be G1F2.
[0050] S122, if i does not get n, generate the i+1th write instruction, and send the i+1th write instruction to the i+1th wind turbine.
[0051] After S122 is executed, i is incremented by 1 and the process jumps to S121.
[0052] S123, if i gets n, the address writing of the fan group is completed.
[0053] To save the operating cost of the system, preferably, before S110, the fan address writing method further includes: S101, n fans receive address writing instructions sent by a host computer through 485 connection, and enter address writing mode in response to the address writing instructions.
[0054] After S121, the fan address writing method further includes: S121a, sending the i-th address information to the host computer via the 485 connection.
[0055] S121b, exit the address writing mode.
[0056] The fan enters the address writing mode through the address writing instruction, and the fan exits the address writing mode after completing the address writing, which can save the operating cost of the system.
[0057] Based on the first embodiment, the present application further provides a second embodiment and a third embodiment, so as to implement the wind turbine address writing method provided in the first embodiment by utilizing different communication modes in the communication network cable.
[0058] Among them, embodiment 2: Specifically, Figure 4A schematic diagram showing a flow chart of a wind turbine address writing method provided by another embodiment of the present application is shown. Figure 4 , the fan addressing methods include: S210, n fans receive address writing instructions sent by the host computer through 485 connection, and enter address writing mode in response to the address writing instructions.
[0059] S220, the i-th wind turbine among the n wind turbines performs the following steps, wherein i is sequentially incremented from 1 to n: S231, receiving the i-th write instruction and the i-th address information sent by the i-1-th wind machine through the first communication connection, wherein the first address information is the initial address information, and the 0th wind machine is taken as the host computer.
[0060] S232 , in response to the i th write instruction, the i th address information is set as the local address number of the i th fan through the MCU of the i th fan.
[0061] S233, sending the i-th address information to the host computer via the 485 connection.
[0062] S234, exit the address writing mode.
[0063] S235, if i does not get n, then generate the i+1th write instruction through the MCU of the i-th wind turbine, and generate the i+1th address information according to the i-th address information, and send the i+1th write instruction and the i+1th address information to the i+1th wind turbine through the first communication connection.
[0064] S236, if i gets n, the address writing of the fan group is completed.
[0065] Among them, embodiment three: Specifically, the MCU includes a cache space, Figure 5 A schematic diagram showing a flow chart of a wind turbine address writing method provided by another embodiment of the present application is shown. Figure 5 , the fan addressing methods include: S310, n fans receive address writing instructions sent by the host computer through 485 connection, and enter address writing mode in response to the address writing instructions.
[0066] S320, the i-th wind turbine among the n wind turbines performs the following steps, wherein i is sequentially incremented from 1 to n: S331, receiving the i-1th address information sent by the i-1th wind machine through the 485 connection, refreshing the cache space and storing the i-1th address information in the cache space, wherein the 0th address information is the initial address information, and the 0th wind machine is taken as the host computer.
[0067] S332: Receive the i-th write instruction sent by the i-1-th wind turbine through the first communication connection.
[0068] S333, in response to the i-th write instruction, read the i-1th address information of the cache space through the MCU of the i-th fan, generate the i-th address information according to the read i-1th address information, and set the i-th address information to the local address number of the i-th fan.
[0069] S334, sending the i-th address information to the host computer via the 485 connection.
[0070] S335, exit the address writing mode.
[0071] S336, if i does not get n, then generate the i+1th write instruction through the MCU of the i-th fan, broadcast the i-th address information through the 485 communication circuit module, so that the cache space of at least n-1 fans including the i+1th fan is updated to the i-th address information, and send the i+1th write instruction to the i+1th fan through the first communication connection.
[0072] S337, if i gets n, the address writing of the fan group is completed.
[0073] Acquiring the i-th address based on the broadcasting method of 485 connection can improve the speed and stability of address writing.
[0074] Combining Example 1, Example 2 and Example 3, the fan addressing system provided in the embodiment of the present application obtains the initial address information and generates the first write instruction in response to the addressing operation by the upper computer, and sends the initial address information and the first write instruction to the first fan among n fans to trigger automatic addressing of the fan group, thereby improving the convenience of addressing multiple FFUs; through each fan of the fan group, responding in turn to the i-th write instruction sent by the previous fan for controlling the addressing of the current fan, the i-th address information is set to the local address number of the i-th fan to realize automatic addressing of n fans, thereby improving the accuracy of addressing multiple FFUs.
[0075] According to another aspect of an embodiment of the present application, a method for writing an address to a fan is provided. The method for writing an address to a fan is applied to a host computer. The host computer has a communication connection with a fan group. The fan group includes n fans arranged in sequence, where n is an integer greater than 1. The method for writing an address to a fan includes: S410, in response to the address writing operation, obtaining initial address information and generating a first writing instruction; S420, sending initial address information and a first write instruction to the first wind machine among the n wind machines, so that the ith wind machine writes the ith address information corresponding to the ith wind machine, wherein the ith address information is related to the initial address information, and i is sequentially taken from 1 to n.
[0076] The implementation of S410 and S420 may refer to the above description and will not be described in detail here.
[0077] Preferably, after S420, the wind turbine address writing method further includes: S430, receiving the i-th address writing information corresponding to the i-th wind machine sent by the i-th wind machine through the 485 connection, wherein the i-th address writing information is used to indicate that the i-th wind machine has completed address writing.
[0078] S440, judging whether all wind turbine groups have completed address writing according to the i-th address writing information.
[0079] If it is determined that all fan groups have completed address writing (that is, the nth fan has completed address writing), the host computer can prompt the user that writing is complete, for example, by voice broadcast or display; further, the host computer can also enter a shutdown state.
[0080] In S440, whether all wind turbines have completed address writing, in an optional manner, The i-th address writing information includes the i-th address information, and the address information interval between two adjacent wind turbines is a preset number of digits; Prior to S440, the fan address writing method also included: S431, determining the initial nth address information of the nth wind turbine according to the initial address information and the preset number of bits; S433, judging whether all wind turbine groups have completed address writing according to the i-th address writing information, including: S435, comparing the initial nth address information and the received ith writing address information to see if they are consistent. If the initial nth address information and the received ith writing address information are consistent, it is determined that the wind turbine groups have completed address writing.
[0081] For example, the wind turbine group includes 30 wind turbines, the initial address information is G1F1, the first address information of the first wind turbine is G1F1, the second address information of the second wind turbine is G1F2, and the third address information of the third wind turbine is G1F3. The upper computer can determine that the initial nth address information is G1F30. When the upper computer receives G1F30, it determines that the address writing of the 30th wind turbine has been completed, that is, the wind turbine group has completed the address writing.
[0082] In another optional manner, S430 further includes: S432, receiving the i-th address writing information corresponding to the i-th wind machine sent by the i-th wind machine through the 485 connection.
[0083] S434, recording the i-th time when the i-th address writing information is received.
[0084] S436, writing the i-th time into the i-th writing address information.
[0085] S440, further comprising: S442, reading the i-th time of the i-th address writing information, if there is no other address writing information after a preset time length of the i-th time, it is determined that the wind turbine groups have completed address writing.
[0086] The addresses of n fans in the fan group are written in sequence according to the arrangement order. If the host computer still does not receive new address information after a preset time interval, for example, 3 seconds, it can be assumed that the address writing of the nth fan has been completed, that is, the address writing of the fan group has been completed.
[0087] The fan addressing method applied to the host computer provided in the embodiment of the present application obtains the initial address information and generates the first write instruction in response to the addressing operation, and sends the initial address information and the first write instruction to the first fan among n fans, so that the i-th fan writes the i-th address information corresponding to the i-th fan, so that the n fans automatically complete the addressing one by one, thereby improving the convenience and accuracy of addressing multiple FFUs.
[0088] According to another aspect of the embodiment of the present application, a wind turbine address writing system 500 is further provided. The wind turbine address writing system 500 includes a host computer 510 and a wind turbine group. The host computer 510 establishes a communication connection with the wind turbine group. The wind turbine group includes n wind turbines 520 arranged in sequence, where n is an integer greater than 1. The host computer 510 includes a response module 511 and a sending module 512 .
[0089] The response module 511 is used for obtaining initial address information and generating a first write instruction in response to the address writing operation.
[0090] The sending module 512 is used to send initial address information and a first write instruction to the first fan among n fans, so that the ith fan writes the ith address information corresponding to the ith fan, wherein the ith address information is related to the initial address information, and i is sequentially taken from 1 to n.
[0091] The wind turbine 520 includes a receiving module 521 and a writing module 522 .
[0092] The receiving module 521 of the first wind turbine among the n wind turbines is used to receive the initial address information and the first write instruction sent by the host computer.
[0093] The write module 522 of n wind machines is used for the i-th wind machine among the n wind machines to execute the following steps, and i is sequentially taken from 1 to n: in response to the i-th write instruction sent by the i-1-th wind machine, the i-th address information is set to the local address number of the i-th wind machine, wherein the i-th address information is generated by the i-1-th wind machine or the i-th wind machine according to the i-1-th address information, the 0th wind machine is taken as the upper computer, and the 0th address information is taken as the initial address information; if i does not get n, then generate the i+1-th write instruction, and send the i+1-th write instruction to the i+1-th wind machine; if i gets n, the address writing of the wind machine group is completed.
[0094] The fan addressing system provided in the embodiment of the present application obtains the initial address information and generates the first write instruction in response to the addressing operation by the upper computer, and sends the initial address information and the first write instruction to the first fan among n fans to trigger automatic addressing of the fan group, thereby improving the convenience of addressing multiple FFUs; through each fan of the fan group, it responds in turn to the i-th write instruction sent by the previous fan for controlling the addressing of the current fan, and sets the i-th address information to the local address number of the i-th fan to realize automatic addressing of n fans, thereby improving the accuracy of addressing multiple FFUs.
[0095] The algorithm or display provided here are not inherently related to any specific computer, virtual system or other equipment. Various general systems can also be used together with the teaching based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present application described here, and the above description of specific languages is to disclose the best mode of implementation of the present application.
[0096] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0097] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed application requires more features than those explicitly recited in each claim.
[0098] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0099] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for writing addresses to a fan, characterized in that: Applied to a fan group, the fan group has a communication connection with a host computer, the fan group includes n fans arranged in sequence, n is an integer greater than 1, and the fan address writing method includes: The first wind turbine among the n wind turbines receives the initial address information and the first write instruction sent by the host computer; The i-th wind turbine among the n wind turbines performs the following steps, wherein i is sequentially incremented from 1 to n: In response to the i-th write instruction sent by the i-1-th wind machine, the i-th address information is set to the local address number of the i-th wind machine, wherein the i-th address information is for the i-1-th wind machine or is generated by the i-th wind machine according to the i-1-th address information, the 0th wind machine is taken as the host computer, and the 0th address information is taken as the initial address information; If i does not get n, then generate the i+1th write instruction, and send the i+1th write instruction to the i+1th wind turbine; If i gets to n, the address writing of the fan group is completed.
2. The method for writing addresses to a fan according to claim 1, characterized in that: The n wind turbines each include a first network port, a second network port, a micro control unit MCU and a 485 communication circuit module; The first network port of the first wind turbine and the second network port of the nth wind turbine are both connected to the host computer via a communication network cable. When i is greater than 1, the first network port of the i-th wind turbine and the second network port of the i-1th wind turbine are connected to a communication network cable. The communication network cable includes an RS485 communication line and a first signal line, the communication network cable is used to transmit signals between two devices, the RS485 communication line is used to transmit RS485 signals so that the two devices establish a 485 connection, and the first signal line is used to transmit a level signal so that the two devices establish a first communication connection; A 485 connection is established between the host computer and the n fans; The first network port of the wind turbine is connected to the first communication network cable, and is used to receive the RS485 signal and the level signal transmitted by the first communication network cable, and transmit the received level signal to the MCU of the wind turbine, and transmit the received RS485 signal to the 485 communication circuit module of the wind turbine; The 485 communication circuit module is connected to the MCU and is used to process the received RS485 signal and send it to the MCU; The MCU is used to process the received level signal and / or RS485 signal, and generate the level signal and / or the initial RS485 signal; The MCU is further used to transmit the generated initial RS485 signal to the 485 communication circuit module, and transmit the generated level signal to the second network port; The 485 communication circuit module is further used to generate an RS485 signal according to the initial RS485 signal, and send the generated RS485 signal to the second network port; The second network port is connected to the second communication network cable, and is used to transmit the level signal generated by the MCU to the first signal line of the second communication network cable, and to transmit the RS485 signal generated by the 485 communication circuit module to the RS485 communication line of the second communication network cable.
3. The method for writing address of a fan according to claim 2, characterized in that: Before the first wind turbine among the n wind turbines receives the initial address information and the first write instruction sent by the host computer, the wind turbine address writing method further includes: The n wind turbines receive the address writing instruction sent by the host computer through the 485 connection, and enter the address writing mode in response to the address writing instruction; After the i-th address information is set as the local address number of the i-th wind machine in response to the i-th write instruction sent by the i-1-th wind machine, the wind machine address writing method further includes: Sending the i-th address information to the host computer via the 485 connection; Exit the write addressing mode.
4. The method for addressing a fan according to claim 3, characterized in that: The i-th address information is generated by the i-1-th wind turbine according to the i-1-th address information, and the first address information is the initial address information; Before setting the i-th address information as the local address number of the i-th wind machine in response to the i-th write instruction sent by the i-1-th wind machine, the wind machine address writing method further includes: receiving, through the first communication connection, an i-th write instruction and an i-th address information sent by an i-1-th wind turbine; The step of setting the i-th address information to the local address number of the i-th wind machine in response to the i-th write instruction sent by the i-1-th wind machine further comprises: In response to the i-th write instruction, the i-th address information is set as the local address number of the i-th fan through the MCU of the i-th fan; If i does not get n, then generating the i+1th write instruction, and sending the i+1th write instruction to the i+1th wind turbine, further comprising: If i does not get n, then the MCU of the i-th wind turbine generates an i+1th write instruction, and generates i+1th address information according to the i-th address information; The i+1th write instruction and the i+1th address information are sent to the i+1th wind turbine through the first communication connection.
5. The wind turbine address writing method according to claim 3, characterized in that: The MCU includes a cache space, and the i-th address information is generated by the i-th wind turbine according to the i-1-th address information; Before setting the i-th address information as the local address number of the i-th wind machine in response to the i-th write instruction sent by the i-1-th wind machine, the wind machine address writing method further includes: receiving the i-1th address information sent by the i-1th wind turbine through the 485 connection, refreshing the cache space and storing the i-1th address information in the cache space; receiving, through the first communication connection, an i-th write instruction sent by an i-1-th wind turbine; The step of setting the i-th address information to the local address number of the i-th wind machine in response to the i-th write instruction sent by the i-1-th wind machine further comprises: In response to the i-th write instruction, the i-1th address information of the cache space is read by the MCU of the i-th wind turbine, the i-th address information is generated according to the read i-1th address information, and the i-th address information is set as the local address number of the i-th wind turbine; If i does not get n, then generating the i+1th write instruction, and sending the i+1th write instruction to the i+1th wind turbine, further comprising: If i does not get n, then the i+1th write instruction is generated by the MCU of the i-th wind turbine; Broadcast the i-th address information through the 485 communication circuit module, so that the cache space of at least n-1 wind turbines including the i+1-th wind turbine is updated to the i-th address information; The (i+1)th write instruction is sent to the (i+1)th wind turbine through the first communication connection.
6. A method for writing addresses to a fan, characterized in that: Applied to a host computer, the host computer establishes a communication connection with a fan group, the fan group includes n fans arranged in sequence, n is an integer greater than 1, and the fan address writing method includes: In response to the address writing operation, initial address information is obtained and a first writing instruction is generated; Sending initial address information and a first write instruction to the first wind machine among n wind machines enables the ith wind machine to write the ith address information corresponding to the ith wind machine, wherein the ith address information is related to the initial address information, and i is sequentially taken from 1 to n.
7. The method for writing addresses to a fan according to claim 6, characterized in that: The n wind turbines each include a first network port and a second network port; The host computer is respectively connected to the first network port of the first wind turbine and the second network port of the nth wind turbine by a communication network cable. When i is greater than 1, the first network port of the i-th wind turbine is connected to the second network port of the i-1th wind turbine by a communication network cable. The communication network cable includes an RS485 communication line and a first signal line, the communication network cable is used to transmit signals between two devices, the RS485 communication line is used to transmit RS485 signals so that the two devices establish a 485 connection, and the first signal line is used to transmit a level signal so that the two devices establish a first communication connection; A 485 connection is established between the host computer and the n fans.
8. The method for writing addresses to a fan according to claim 7, characterized in that: After sending the initial address information and the first write instruction to the first wind turbine among the n wind turbines, the wind turbine address writing method further includes: Receiving, via the 485 connection, the i-th address writing information corresponding to the i-th wind machine and sent by the i-th wind machine, wherein the i-th address writing information is used to indicate that the i-th wind machine has completed address writing; It is determined whether all the wind turbine groups have completed address writing according to the i-th address writing information.
9. The method for writing addresses to a fan according to claim 8, characterized in that: The i-th address writing information includes the i-th address information, and the address information interval between two adjacent wind turbines is a preset number of digits; Before judging whether all the wind turbine groups have completed address writing according to the i-th address writing information, the wind turbine address writing method further includes: Determine the initial nth address information of the nth wind turbine according to the initial address information and the preset number of bits; The step of judging whether all the wind turbine groups have completed address writing according to the i-th address writing information includes: Compare the initial nth address information and the received ith writing address information to see if they are consistent, If the initial nth address information is consistent with the received ith address writing information, it is determined that the wind turbine groups have completed address writing; or, The receiving, through the 485 connection, the i-th writing address information corresponding to the i-th wind machine and sent by the i-th wind machine further includes: Receiving, via the 485 connection, the i-th address writing information corresponding to the i-th fan sent by the i-th fan; Recording the i-th time when the i-th address writing information is received; Writing the i-th writing address information into the i-th time; The step of judging whether all the wind turbine groups have completed address writing according to the i-th address writing information further includes: The i-th time of the i-th address writing information is read. If there is no other address writing information after a preset time length of the i-th time, it is determined that the address writing of the wind turbine groups has been completed.
10. A wind turbine address writing system, characterized in that: The fan address writing system includes a host computer and a fan group, the host computer and the fan group have a communication connection, and the fan group includes n fans arranged in sequence, where n is an integer greater than 1; The host computer is used to obtain initial address information and generate a first write instruction in response to the address writing operation; The host computer is further used to send initial address information and a first write instruction to the first wind machine among the n wind machines, so that the i-th wind machine writes the i-th address information corresponding to the i-th wind machine, wherein the i-th address information is related to the initial address information, and i is sequentially taken from 1 to n; The first wind turbine among the n wind turbines is used to receive the initial address information and the first write instruction sent by the host computer; The n fans are used for the i-th fan among the n fans to perform the following steps, i is sequentially taken from 1 to n: In response to the i-th write instruction sent by the i-1-th wind machine, the i-th address information is set to the local address number of the i-th wind machine, wherein the i-th address information is for the i-1-th wind machine or is generated by the i-th wind machine according to the i-1-th address information, the 0th wind machine is taken as the host computer, and the 0th address information is taken as the initial address information; If i does not get n, then generate the i+1th write instruction, and send the i+1th write instruction to the i+1th wind turbine; If i gets to n, the address writing of the fan group is completed.
Citation Information
Patent Citations
Fan group control address automatic allocation method based on position information
CN111147612A
Method and device for automatically setting equipment communication address
CN112055096A
Automatic fan address writing method and address control system
CN113867207A
Automatic networking method and communication method of intelligent equipment
CN117640592A
FFU or BFU fan group control system address automatic coding system and method thereof
CN118524083A
