CN113382094B - Module address determining method and device, power module and communication network - Google Patents

Module address determining method and device, power module and communication network Download PDF

Info

Publication number
CN113382094B
CN113382094B CN202110552203.1A CN202110552203A CN113382094B CN 113382094 B CN113382094 B CN 113382094B CN 202110552203 A CN202110552203 A CN 202110552203A CN 113382094 B CN113382094 B CN 113382094B
Authority
CN
China
Prior art keywords
module
bar code
code information
address
bus
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.)
Active
Application number
CN202110552203.1A
Other languages
Chinese (zh)
Other versions
CN113382094A (en
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.)
Xi'an Megmeet Electrical Co ltd
Original Assignee
Xi'an Megmeet Electrical Co ltd
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 Xi'an Megmeet Electrical Co ltd filed Critical Xi'an Megmeet Electrical Co ltd
Priority to CN202110552203.1A priority Critical patent/CN113382094B/en
Publication of CN113382094A publication Critical patent/CN113382094A/en
Application granted granted Critical
Publication of CN113382094B publication Critical patent/CN113382094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a module address determining method and device, a power module and a communication network, wherein the module address determining method is applied to the communication network, the communication network comprises at least one module, the modules are connected through a bus, wherein bar code information is arranged in each module, bar code information in different modules is different. By the method, the module address can be automatically determined, and the reliability is high.

Description

Module address determining method and device, power module and communication network
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for determining a module address, a power module, and a communications network.
Background
The high-power and high-current power supply has become a trend of development, and the basis for realizing the high-power and high-current power supply is the parallel connection of a plurality of power supply modules. After the power modules are connected in parallel, the module communication lines are connected to the same communication bus in a hanging mode, and each module has a unique fixed address which is the basis that power monitoring software can communicate with each module. An address must be set for each power module.
In the prior art, a method for setting a power address is generally a method of using a dial switch, that is, adding a dial switch to a power module panel, and determining the address of the module in a binary form using the dial switch.
However, this method requires a person familiar with the operation to complete the confirmation of the module address, is inconvenient to operate, has a certain technical requirement for the installer, and is cumbersome to operate.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for determining a module address, a power module and a communication network, which can realize automatic determination of the module address and have higher reliability.
In order to achieve the above object, in a first aspect, the present application provides a module address determining method, applied to a communication network, where the communication network includes at least one module, and the modules are connected by a bus, where barcode information is disposed in each module, and barcode information in different modules is different, the method includes:
sending bar code information to the bus;
if the bar code information of the non-self module is not received, delaying a first preset duration;
stopping sending bar code information to the bus at the moment when the first preset duration is over, and determining the address of the module as a first preset value;
if at least one piece of bar code information of the non-self module is received, determining the address of the self module according to the received at least one piece of bar code information of the non-self module.
In an alternative way, before said sending barcode information to said bus, said method further comprises:
setting the address of the module as the first preset value, and sending a bar code information request instruction to the bus;
if a bar code information request instruction of a non-self module on a bus is received, the step of sending bar code information to the bus is executed.
In an alternative, the method further comprises:
if the bar code information request instruction of the non-self module on the bus is not received, delaying a second preset duration;
and stopping sending the bar code information request instruction to the bus at the moment when the second preset time period is over, and executing the step of sending the bar code information to the bus.
In an optional manner, the determining the address of the present module according to the received barcode information of the at least one non-present module includes:
storing bar code information of a non-self module;
and determining the address of the module according to the bar code information of the non-module and the bar code information of the module.
In an optional manner, the determining the address of the present module according to each piece of barcode information of the non-present module and the barcode information of the present module includes:
judging whether each piece of bar code information of the non-self module has at least one piece of bar code information of which the number corresponding to the bar code information is smaller than that of the bar code information of the self module;
if yes, traversing each piece of bar code information, and if the number corresponding to each piece of bar code information is smaller than the number corresponding to the bar code information of the module, adding a second preset value to the address of the module;
if not, keeping the address of the module unchanged.
In an optional manner, after determining the address of the present module according to each barcode information of the non-present module and the barcode information of the present module, the method further includes:
judging whether the time length from the moment of executing the step of sending the bar code information to the bus to the current moment is greater than or equal to a third preset time length or not;
if yes, stopping sending the bar code information of the module to the bus;
if not, returning to execute the step of storing the bar code information of the non-self module.
In a second aspect, an embodiment of the present application provides a module address determining apparatus, applied to a communication network, where the communication network includes at least one module, and the modules are connected by a bus, where barcode information is provided in each module, and barcode information in different modules is different, and the apparatus includes:
the instruction sending unit is used for sending bar code information to the bus;
the time delay unit is used for delaying a first preset time length if the bar code information of the non-self module is not received;
the first address determining unit is used for stopping sending the bar code information request instruction to the bus at the moment when the first preset duration is over, and determining the address of the module as a first preset value;
and the second address determining unit is used for determining the address of the module according to the received bar code information of at least one non-self module if the bar code information of the at least one non-self module is received.
In a third aspect, an embodiment of the present application provides a power module, including:
a control processing unit including:
at least one processor and a memory communicatively coupled to the at least one processor, the memory storing instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
In a fourth aspect, embodiments of the present application provide a communications network comprising at least one power module as described above;
the power supply modules are connected through buses.
In a fifth aspect, an embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions that, when executed by a power module, cause the power module to perform a method as described above.
The embodiment of the application has the beneficial effects that: the method for determining the module address comprises the steps of sending bar code information to a bus, delaying a first preset time period if the bar code information of a non-self module is not received, stopping sending the bar code information to the bus at the moment when the first preset time period is finished, determining the address of the self module as a first preset value, and determining the address of the self module according to the received at least one bar code information of the non-self module if the bar code information of the non-self module is received, so that the address of the self module can be automatically determined through the at least one bar code information of the non-self module, and the address determination process of each module, namely the automatic determination of the module address, is realized by software without manual operation, and has higher reliability.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a schematic diagram of a prior art parallel connection of modules;
FIG. 2 is a flowchart of a method for determining a module address according to an embodiment of the present application;
FIG. 3 is a flowchart of steps performed prior to sending bar code information to a bus, in accordance with an embodiment of the present application;
FIG. 4 is a flowchart of a method for determining an address of a module according to bar code information of the module and bar code information of a non-module according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a communication network according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a module address determining apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a power module according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a schematic diagram of parallel connection of modules in the prior art. As shown in fig. 1, a total of 7 modules are connected in parallel in the order from left to right, and the 7 modules are respectively a module A1, a module A2, a module A3, a module A4, a module A5, a module A6 and a module A7.
In this prior art, 5 dial switches of 1, 2, 3, 4, 5 are provided on each module, in each of which the dial up code represents a binary "1", the no dial (i.e. held in the lower position) represents a binary "0", and the 5 dial switches from left to right represent decimal 1, 2, 4, 8, 16, respectively, according to the binary principle. Therefore, by performing different dialing settings on different modules so that the addresses of the different modules are different, the actual addresses of the modules can be determined. For example, in the module A1, only the switch corresponding to 5 is pulled up, and the address of the module A1 is 01; in the module A2, only the switch corresponding to 4 is dialed up, and the address corresponding to the module A2 is 02; in the module A3, when the switches corresponding to 4 and 5 are dialed up, the address corresponding to the module A3 is 01+02=03; in the module A4, the switch corresponding to 3 is dialed up, and the value corresponding to the module A4 is 04; in the module A5, the corresponding switches of 3 and 5 are upwards dialed, and the corresponding value of the module A5 is 05; in the module 6, the corresponding switches of 3 and 4 are upwards dialed, and the corresponding value of the module A6 is 06; in the module A7, when the switches corresponding to 3, 4, and 5 are pushed up, the value corresponding to the module A7 is 07.
However, with the above-described approach, after the respective modules are installed on site, a person familiar with the operation is required to complete the confirmation of the module addresses. On the one hand, manual operation is needed, so that operation inconvenience is brought, and on the other hand, a certain technical requirement is needed for an installer, so that later maintenance is not facilitated.
Based on the method, the method can automatically identify the module address by utilizing the bar code information of each module when leaving the factory, is free from manual intervention, is simple to operate, and brings convenience for adding or reducing modules in the later period.
It can be understood that the bar code information carried by each module when leaving the factory is unique bar code information, namely the bar code information between every two modules is different.
Fig. 2 is a flowchart of a method for determining a module address, which is provided by the present application, and is applied to a communication network, where the communication network includes at least one module, and the modules are connected through a bus, where each module is provided with barcode information, and the barcode information in different modules is different. The method comprises the following steps:
201: and sending bar code information to the bus.
After each module is connected to the bus, the first step is that the bar code information of the module is sent to the bus, so that other modules except the module can acquire the bar code information of other modules from the bus.
In this embodiment, the bus may refer to a CAN bus, and each module may refer to a power module, that is, each power module is connected through the CAN bus and communicates through the CAN bus. CAN is an abbreviation for controller area network (Controller Area Network, CAN), which is one of the most widely used internationally used fieldbuses.
Further, in an embodiment, before performing the step of sending barcode information to the bus, the module address determination method further comprises the steps of:
301: setting the address of the module as a first preset value, and sending a bar code information request instruction to the bus.
The specific operation is as follows: after the module is powered on for communication, the address of the module is often initialized and set to a first preset value, for example, the address of the module is initialized to 1. Meanwhile, the module actively sends a bar code information request instruction to the bus, namely, requests to acquire bar code information sent by other modules except the module on the bus. And, if in the application of the power module, the transmission period of the barcode information request command may be set to 400ms.
302: if a bar code information request instruction of a non-self module on the bus is received, the step of sending bar code information to the bus is executed.
If the bar code information request instruction of the non-self module can be received from the bus, other modules besides the self module are described as being connected to the bus, and the other modules can determine the address of the self module as the other modules also need to know the bar code information of the self module, so that the self module needs to send the bar code information of the self module to the bus at the moment. And, if in the application of the power module, the transmission period of the barcode information of the module can be set to 400ms.
It is to be understood that in all embodiments of the application, other modules or other modules are typically referred to as modules other than the present module being connected to the bus. And this module refers to any one of all modules connected to the bus.
303: and if the bar code information request instruction of the non-self module on the bus is not received, delaying a second preset time length.
304: and stopping sending the bar code information request instruction to the bus at the moment when the second preset time period is over, and executing the step of sending the bar code information to the bus.
If the module does not receive the bar code information request instruction from other modules on the bus, delaying a second preset time length. And stopping sending the bar code information request instruction to the bus by the module at the moment when the second preset time period is over, and starting to send the bar code information of the module to the bus. For example, if the second preset duration is 3S, if the module does not receive the instruction of requesting the barcode information of other modules on the bus, after 3S, the module stops starting the instruction of requesting the barcode information and starts to send the barcode information of the module to the bus. Similarly, when the method provided by the application is applied to the power module, the period for transmitting the bar code information of the module can be set to 400ms.
In summary, after each module is successfully powered on and establishes communication, the module address of the module is initialized to a first preset value, and each module actively sends an instruction for requesting bar code information to the bus. If the bar code request instruction of the non-self module can be received, which means that at least two modules are connected to the bus, each module is required to send the bar code information of the module to the bus. If the bar code request command of the non-self module is not received, it indicates that only one module is likely to be connected to the bus, bar code information can be sent to the bus, or the bar code information can be sent to the bus without limitation, but in the embodiment of the application, after the second preset time is delayed, the bar code request command of the self module is stopped, but the bar code information of the self module is still sent, so that when a new module is accessed subsequently, the new module can directly acquire the bar code information of the self module from the bus, thereby being beneficial to improving the efficiency.
202: if the bar code information of the non-self module is not received, delaying the first preset time length.
203: and stopping sending bar code information to the bus at the moment when the first preset duration is over, and determining the address of the module as a first preset value.
After the bar code information request instruction is sent to the bus, if the bar code information of other modules is not received, it can be determined that only the module is connected to the bus, and then the bar code information sending to the bus can be stopped. And further, delaying the first preset time, stopping sending the bar code information to the bus at the moment when the first preset time is ended, and simultaneously, directly setting the address of the module to be a first preset value.
In combination with the above embodiments, the first preset value is taken as 1 as an example for explanation. After each module is powered on and communication is established, initializing the address of each module to be 1. And then, sending the bar code information of the module to the bus, and if the bar code information of other modules is not received, directly setting the address of the module to 1 after stopping sending the bar code information to the bus. It should be understood that, before sending the bar code information to the bus, if a bar code request instruction of other modules is received, the address of the module may be actively reset to 1, so as to ensure that the initial value of the module is 1.
204: if at least one piece of bar code information of the non-self module is received, the address of the self module is determined according to the received at least one piece of bar code information of the non-self module.
Assume that the present module receives barcode information of N non-present modules (other modules), where N is a natural number greater than 0. The N bar code information is firstly stored in a memory space corresponding to the module, so as to be used for determining the address of the module subsequently. Then, the address of the module can be determined by combining the N bar code information and the bar code information of the module.
Specifically, in one embodiment, the following method is adopted to determine the address of the present module through the N pieces of barcode information and the barcode information of the present module, as shown in fig. 4, and the method includes:
401: judging whether at least one bar code information corresponding to the bar code information is smaller than the bar code information corresponding to the bar code information of the module in each bar code information of the non-module.
402: if yes, traversing each piece of bar code information, and if the number corresponding to each piece of bar code information is smaller than the number corresponding to the bar code information of the module, adding a second preset value to the address of the module.
403: if not, keeping the address of the module unchanged.
In the module, the numbers corresponding to the stored bar code information of other modules and the numbers corresponding to the bar code information of the module are ordered, so that the K bar code information of which the numbers corresponding to the bar code information are smaller than the K bar code information of the numbers corresponding to the bar code information of the module in the N bar code information of the other modules can be determined, wherein K is a natural number which is smaller than or equal to N and is larger than or equal to 0.
If K is greater than 0, the address of the module is added with K times of a second preset value. For example, when K is 1, it indicates that a number corresponding to the bar code information is smaller than a number corresponding to the bar code information of the module, and then the address of the module is added with a second preset value based on the initial address (i.e., the first preset value in the above embodiment); when K is 2, the number corresponding to the two bar code information is smaller than the number corresponding to the bar code information of the module, and the address of the module is added with twice of the second preset value on the basis of the initial address. In other words, for each piece of barcode information, if the number corresponding to the barcode information is smaller than the number corresponding to the barcode information of the module, the address of the module is added with the second preset value.
When K is 0, the address of the module is still kept to be a first preset value.
Taking the communication network shown in fig. 5 as an example, in fig. 5, the communication network includes a module M1, a module M2, a module M3, a module M4, a module M5 and a module M6, where each module is connected to the bus L. Assume that the numbers corresponding to the bar code information of the module M1, the module M2, the module M3, the module M4, the module M5 and the module M6 are respectively 10, 20, 30, 40, 50 and 60, and the first preset value is 1, and the second preset value is 2.
Specifically, the module M3 is taken as an example of the present module. The module M3 obtains barcode information of other modules (module M1, module M2, module M4, module M5 and module M6) from the bus L. The initialization address of the module M1 is 1, and since the number corresponding to the barcode information of the module M1 is 10 and is smaller than the number 30 corresponding to the barcode information of the module M3, the address of the module M3 becomes 1+1=2; further, since the number corresponding to the barcode information of the module M2 is 20 and is smaller than the number 30 corresponding to the barcode information of the module M3, the address of the module M3 becomes 2+1=3. And the numbers corresponding to the bar code information of the module M4, the module M5 and the module M6 are larger than the numbers corresponding to the bar code information of the module M3, and the address of the module M3 is kept to be 3. In the same manner, the addresses of the module M1, the module M2, the module M4, the module M5 and the module M6 may be obtained, which will not be described herein.
It will be appreciated that in other embodiments, other methods may be used to determine the address of the module from the N bar code information and the bar code information of the module. For example, in the above embodiment, by traversing each barcode information and for each barcode information, if the number corresponding to the barcode information is greater than the number corresponding to the barcode information of the module, the address of the module is added with the second preset value.
Meanwhile, in another embodiment, after the address of the present module is determined by the above method, it is further determined whether the duration from the time when the step of sending the barcode information to the bus is performed to the current time is greater than a third preset duration. Namely, when the module sends bar code information to the bus to start timing and judges whether the timing time length is longer than a third preset time length in real time, wherein the third preset time length is a preset value of a user, the user usually depends on the actual use condition, and the third preset time length is usually longer than or equal to the total time for all the modules to finish determining the address. Typically in power module applications, it may be set to 9s, that is to say the determination of the address of each power module is done within 9 s.
When the timing duration is longer than the third preset duration, all modules do not send bar code information to the bus any more, and at the moment, the fact that the addresses of all the modules are completely determined is indicated. Of course, when the above-mentioned time duration is less than the third preset time duration, the step of returning to the step of not obtaining the bar code information of the present module in the above-mentioned embodiment, and continuing to perform the step of determining the address of the present module according to the bar code information of the present module and the bar code information of the present module until the time duration is greater than or equal to the third preset time duration.
In this embodiment, the timing is started from the transmission of the barcode information to the bus, but in other embodiments, the timing may be started from the transmission of the barcode information request command to the bus.
In summary, first, after each module completes power-up and establishes communication, each module initializes the address of each module to 1, and each module actively transmits a barcode request instruction to the bus. If the module receives bar code request instructions of other modules from the bus, the module resets the address of the module to a first preset value and simultaneously sends bar code information to the bus. If the bar code information request instruction of other modules is not received from the bus, delaying the second preset time, stopping sending the bar code information request instruction after the second preset time, and sending the bar code information to the bus.
If the module receives the bar code information of other modules, the bar code information is stored in the module, and the numbers corresponding to the bar code information of other modules are compared with the numbers corresponding to the bar code information of the module one by one. If the number corresponding to the bar code information of the other modules is larger than the number corresponding to the bar code information of the module, the address of the module is kept unchanged as a first preset value. If the number corresponding to the bar code information of one module is smaller than the number corresponding to the bar code information of the other module, adding a second preset value to the address of the module.
If the module does not receive the bar code information of other modules, delaying the first preset time, stopping sending the bar code information to the bus at the moment when the first preset time is ended, and simultaneously, directly determining the address of the module as a first preset value.
All the steps are required to be completed within a third preset time period, and after the third preset time period is finished, each module does not send bar code information to the bus any more, and the addresses of each module are determined.
Meanwhile, if the existing module on the bus has completed the determination of the address and a new module is connected to the bus, the new module will send a bar code information request instruction. When the existing module on the bus receives the bar code information request instruction sent by the new module, all the modules on the bus (including the existing module and the new module) restart the address determining process, i.e. execute the steps shown in fig. 2-4. Therefore, whether all the modules are powered on simultaneously or all the modules are powered on sequentially, the address of each module can be automatically determined by the method provided by the application, the limit in use is reduced, and the adaptability is higher. Meanwhile, manual operation is not needed, and the reliability of the product can be improved. Further, it is now possible to omit related circuit structures (e.g., dial switches) with respect to the prior art, thereby reducing costs.
It will be appreciated that in the above embodiments, the address of each module is determined by bar code information unique to each module. In other embodiments, the address of each module may be determined by other unique identifiers of each module, for example, the ID number of each module, which is similar to the above embodiments of the present application, and is not repeated herein, insofar as it is easily understood by those skilled in the art.
Fig. 6 is a schematic structural diagram of a module address determining apparatus according to an embodiment of the present application, where the module address determining apparatus 600 is applied to a communication network, and the communication network includes at least one module, and the modules are connected by a bus, where barcode information is disposed in each module, and barcode information in different modules is different. As shown in fig. 6, the module address determining apparatus 600 includes an instruction transmitting unit 601, a delay unit 602, a first address determining unit 603, and a second address determining unit 604.
The instruction sending unit 601 is configured to send barcode information to the bus. The delay unit 602 is configured to delay a first preset duration if barcode information of a non-self module is not received. The first address determining unit 603 is configured to stop sending the bar code information request instruction to the bus at a time when the first preset duration ends, and determine that the address of the module is a first preset value. The second address determining unit 604 is configured to determine the address of the present module according to the received barcode information of the at least one non-present module if the barcode information of the at least one non-present module is received.
Since the apparatus embodiments and the method embodiments are based on the same concept, on the premise that the contents do not conflict with each other, the contents of the apparatus embodiments may refer to the method embodiments, which are not described herein.
Fig. 7 is a schematic structural diagram of a power module according to an embodiment of the application. As shown in fig. 7, the power module 700 includes one or more processors 701 and a memory 702. In fig. 7, a processor 701 is taken as an example.
The processor 701 and the memory 702 may be connected by a bus or otherwise, for example in fig. 7.
The memory 702 is used as a non-volatile computer readable storage medium for storing a non-volatile software program, a non-volatile computer executable program, and modules, such as program instructions/modules (e.g., the respective units described in fig. 6) corresponding to the module address determination method in the embodiment of the present application. The processor 701 executes various functional applications and data processing of the module address determining apparatus by running the nonvolatile software programs, instructions, and modules stored in the memory 702, that is, implements the module address determining method in the above-described method embodiment and functions of the respective modules and units of the above-described apparatus embodiment.
The memory 702 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701, such remote memory being connectable to processor 701 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules are stored in the memory 702 and when executed by the one or more processors 701 perform the module address determination method in any of the method embodiments described above, for example, performing the steps shown in fig. 2, 3 and 4 described above; the functions of the individual units described in fig. 6 can also be implemented.
The embodiment of the application also provides a communication network, which comprises at least one power module in any of the above embodiments, wherein the power modules are connected through a bus.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a power module, cause the power module to perform a method as in any of the embodiments above.
Embodiments of the present application also provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any of the embodiments above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the application, the steps may be implemented in any order, and there are many other variations of the different aspects of the application as described above, which are not provided in detail for the sake of brevity; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (7)

1. A method for determining a module address, which is applied to a communication network, wherein the communication network comprises at least one module, and the modules are connected through a bus, wherein bar code information is arranged in each module, and the bar code information in different modules is different, and the method comprises:
setting the address of the module as a first preset value, and sending a bar code information request instruction to the bus;
if a bar code information request instruction of a non-self module on a bus is received, bar code information is sent to the bus;
if the bar code information request instruction of the non-self module on the bus is not received, delaying a second preset duration;
stopping sending a bar code information request instruction to the bus at the moment when the second preset duration is over, and sending bar code information to the bus or determining that the address of the module is the first preset value;
after the bar code information is sent to the bus, if the bar code information of the non-self module is not received, delaying a first preset duration;
stopping sending bar code information to the bus at the moment when the first preset duration is over, and determining the address of the module as a first preset value;
if at least one piece of bar code information of the non-self module is received, determining the address of the self module according to the received at least one piece of bar code information of the non-self module.
2. The method of claim 1, wherein determining the address of the module based on the received barcode information of the at least one non-module comprises:
storing bar code information of a non-self module;
and determining the address of the module according to the bar code information of the non-module and the bar code information of the module.
3. The method according to claim 2, wherein determining the address of the present module according to each barcode information of the non-present module and the barcode information of the present module comprises:
judging whether each piece of bar code information of the non-self module has at least one piece of bar code information of which the number corresponding to the bar code information is smaller than that of the bar code information of the self module;
if yes, traversing each piece of bar code information, and if the number corresponding to each piece of bar code information is smaller than the number corresponding to the bar code information of the module, adding a second preset value to the address of the module;
if not, keeping the address of the module unchanged.
4. A method according to claim 2 or 3, wherein after determining the address of the present module from the barcode information of the present module and the barcode information of the non-present module, the method further comprises:
judging whether the time length from the moment of executing the step of sending the bar code information to the bus to the current moment is greater than or equal to a third preset time length or not;
if yes, stopping sending the bar code information of the module to the bus;
if not, returning to execute the step of storing the bar code information of the non-self module.
5. A power module, comprising:
a control processing unit including:
at least one processor and a memory communicatively coupled to the at least one processor, the memory storing instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
6. A communication network comprising at least one power module according to claim 5;
the power supply modules are connected through buses.
7. A non-transitory computer readable storage medium storing computer executable instructions which, when executed by a power module, cause the power module to perform the method of any of claims 1-4.
CN202110552203.1A 2021-05-20 2021-05-20 Module address determining method and device, power module and communication network Active CN113382094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110552203.1A CN113382094B (en) 2021-05-20 2021-05-20 Module address determining method and device, power module and communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110552203.1A CN113382094B (en) 2021-05-20 2021-05-20 Module address determining method and device, power module and communication network

Publications (2)

Publication Number Publication Date
CN113382094A CN113382094A (en) 2021-09-10
CN113382094B true CN113382094B (en) 2023-09-12

Family

ID=77571462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110552203.1A Active CN113382094B (en) 2021-05-20 2021-05-20 Module address determining method and device, power module and communication network

Country Status (1)

Country Link
CN (1) CN113382094B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586269A (en) * 1989-09-18 1996-12-17 Matsushita Electric Industrial Co., Ltd. Communication control device and method for automatically determining a self-address
WO2010009584A1 (en) * 2008-07-21 2010-01-28 Johnson Controls Technology Company Method and system for smart address assignment based on serial bus
CN105812496A (en) * 2014-12-30 2016-07-27 深圳奥特迅电力设备股份有限公司 Power module address automatic setting method and system
CN105812504A (en) * 2016-04-18 2016-07-27 常州格力博有限公司 Intelligent communication address coding method
CN106131240A (en) * 2016-08-09 2016-11-16 郑州市茂辰电子科技有限公司 A kind of CAN address distribution method based on daisy chaining and communication system
CN107026919A (en) * 2017-03-23 2017-08-08 珠海格力电器股份有限公司 A kind of method, node device and control system for determining the node device network address
CN108965489A (en) * 2018-06-13 2018-12-07 厦门拓宝科技有限公司 A kind of module automatic management method based on 485 bus apparatus
CN110519412A (en) * 2019-09-09 2019-11-29 新华三信息安全技术有限公司 A kind of Internet of Things module loading method and device
CN111182086A (en) * 2018-11-13 2020-05-19 南京南瑞继保电气有限公司 CAN bus address allocation method and device based on one-master multi-slave module
CN112272243A (en) * 2020-10-10 2021-01-26 深圳市科信通信技术股份有限公司 Address allocation method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586269A (en) * 1989-09-18 1996-12-17 Matsushita Electric Industrial Co., Ltd. Communication control device and method for automatically determining a self-address
WO2010009584A1 (en) * 2008-07-21 2010-01-28 Johnson Controls Technology Company Method and system for smart address assignment based on serial bus
CN105812496A (en) * 2014-12-30 2016-07-27 深圳奥特迅电力设备股份有限公司 Power module address automatic setting method and system
CN105812504A (en) * 2016-04-18 2016-07-27 常州格力博有限公司 Intelligent communication address coding method
CN106131240A (en) * 2016-08-09 2016-11-16 郑州市茂辰电子科技有限公司 A kind of CAN address distribution method based on daisy chaining and communication system
CN107026919A (en) * 2017-03-23 2017-08-08 珠海格力电器股份有限公司 A kind of method, node device and control system for determining the node device network address
CN108965489A (en) * 2018-06-13 2018-12-07 厦门拓宝科技有限公司 A kind of module automatic management method based on 485 bus apparatus
CN111182086A (en) * 2018-11-13 2020-05-19 南京南瑞继保电气有限公司 CAN bus address allocation method and device based on one-master multi-slave module
CN110519412A (en) * 2019-09-09 2019-11-29 新华三信息安全技术有限公司 A kind of Internet of Things module loading method and device
CN112272243A (en) * 2020-10-10 2021-01-26 深圳市科信通信技术股份有限公司 Address allocation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于TMS320F2812的CAN总线通信研究;朱清祥等;《中国科技信息》;20070915(第18期);全文 *

Also Published As

Publication number Publication date
CN113382094A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN109428773B (en) Communication method and device
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
CN110687820B (en) Control method and device of intelligent household equipment, terminal equipment and storage medium
CN112804730B (en) Equipment interconnection method, device, server, intelligent equipment and storage medium
EP3993338A1 (en) Device binding method and apparatus, and electronic device
CN105527881A (en) Command processing method and device
CN112822300B (en) RDMA (remote direct memory Access) -based data transmission method and device and electronic equipment
JP6115482B2 (en) Electronic control unit
CN113382094B (en) Module address determining method and device, power module and communication network
CN110830334B (en) Household appliance control method, device, system, server and household appliance
WO2020073614A1 (en) Communication method and device for air conditioner, outdoor unit, indoor unit, and air conditioner
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
CN109067735B (en) Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
CN109634902B (en) Data transmission method, device and system suitable for PCIE bus
CN107147552B (en) Method and device for remotely controlling return letter reading
US20150281370A1 (en) Apparatus, communication control system, and communication control method
WO2017066988A1 (en) Mobile phone internet of things control method and system
CN109951255A (en) A kind of data transmission method based on TCP, system, source device and target device
CN112822299A (en) RDMA (remote direct memory Access) -based data transmission method and device and electronic equipment
CN112261512B (en) Master station remote control method, device, storage medium and equipment of unbalanced polling protocol
CN113961497A (en) Communication circuit system, method, chip and storage medium
CN115080091A (en) Method and system for upgrading MCU firmware on line by satellite communication equipment
CN109714785B (en) Network access method, device, network equipment and storage medium
CN109089250B (en) Bluetooth communication method and device based on gateway scheduling
CN103164369A (en) Control method and device for data transmission

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
GR01 Patent grant
GR01 Patent grant