CN113382094A - Module address determination method and device, power module and communication network - Google Patents

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

Info

Publication number
CN113382094A
CN113382094A CN202110552203.1A CN202110552203A CN113382094A CN 113382094 A CN113382094 A CN 113382094A CN 202110552203 A CN202110552203 A CN 202110552203A CN 113382094 A CN113382094 A CN 113382094A
Authority
CN
China
Prior art keywords
module
bar code
code information
bus
address
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.)
Granted
Application number
CN202110552203.1A
Other languages
Chinese (zh)
Other versions
CN113382094B (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 Electric Co ltd
Original Assignee
Xi'an Megmeet Electric 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 Electric Co ltd filed Critical Xi'an Megmeet Electric 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

Images

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, bar code information is arranged in each module, the bar code information in different modules is different, the method comprises the steps of sending the bar code information to the bus, delaying for a first preset time if the bar code information of the module is not received, stopping sending the bar code information to the bus at the moment when the first preset time is finished, determining the address of the module as a first preset value, and determining the address of the module according to the received bar code information of the module if the bar code information of the module is received. By the mode, the automatic determination of the module address can be realized, and the reliability is high.

Description

Module address determination 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
High-power and high-current power supplies have become a development trend, and the basis for realizing the high-power and the high-current is the parallel connection of a plurality of power supply modules. After the power supply modules are connected in parallel, the module communication lines are hung on the same communication bus, and each module has a unique fixed address which is the basis for communication between the power supply monitoring software and each module. An address must be set for each power module.
In the prior art, the method for setting the power address generally adopts a dial switch, that is, a dial switch is added on a panel of a power module, and the dial switch is used for determining the address of the module in a binary form.
However, this method requires a person familiar with the operation to confirm the module address, which is inconvenient and requires a certain technical requirement for the installer, and the operation is troublesome.
Disclosure of Invention
The embodiment of the application aims to provide a module address determination method and device, a power module and a communication network, which can realize automatic determination of a 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 each of the modules is provided with barcode information, 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 module is not received, delaying for a first preset time;
at the moment when the first preset duration is finished, stopping sending the bar code information to the bus, and determining the address of the module as a first preset value;
and if at least one piece of bar code information of the non-local module is received, determining the address of the local module according to the received at least one piece of bar code information of the non-local module.
In an optional manner, before the sending the barcode information to the bus, the method further includes:
setting the address of the module as the first preset value, and sending a bar code information request instruction to the bus;
and if a bar code information request instruction of a module on the bus is received, the step of sending bar code information to the bus is executed.
In an optional manner, the method further comprises:
if a bar code information request instruction of a module on the bus, which is not the module, is not received, delaying a second preset time;
and stopping sending the bar code information request instruction to the bus at the moment when the second preset time length is finished, and executing the step of sending the bar code information to the bus.
In an optional manner, the determining an address of the local module according to the received barcode information of the at least one non-local module includes:
storing the bar code information of the non-local module;
and determining the address of the module according to the bar code information of the module and the bar code information of the module.
In an optional manner, the determining an address of the module according to the barcode information of the module and the barcode information of the module includes:
judging whether at least one bar code information corresponding number is smaller than the bar code information of the module corresponding number in each bar code information of the module;
if so, traversing each bar code information, and if the number corresponding to the 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, the address of the module is kept unchanged.
In an optional manner, after determining the address of the module according to the barcode information of the non-local module and the barcode information of the local 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 so, stopping sending the bar code information of the module to the bus;
if not, returning to the step of storing the bar code information of the module.
In a second aspect, an embodiment of the present application provides a module address determining apparatus, which is applied to a communication network, where the communication network includes at least one module, and the modules are connected by a bus, where each of the modules is provided with barcode information, 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 barcode information of the non-local module is not received;
the first address determining unit is used for stopping sending a bar code information request instruction to the bus at the moment when the first preset duration is finished, 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-local module if the bar code information of the non-local module is received.
In a third aspect, an embodiment of the present application provides a power module, including:
a control processing unit comprising:
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 a method as described above.
In a fourth aspect, an embodiment of the present application provides a communication network, including at least one power module as described above;
and all the power modules are connected through a bus.
In a fifth aspect, the present application provides a non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when executed by a power module, causes the power module to perform the method described above.
The beneficial effects of the embodiment of the application are that: the method for determining the module address comprises the steps of sending bar code information to a bus, delaying a first preset time if bar code information of a non-local module is not received, stopping sending the bar code information to the bus at the moment when the first preset time is ended, determining the address of the module to be a first preset value, and determining the address of the module according to the received at least one piece of bar code information of the non-local module if at least one piece of bar code information of the non-local module is received.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic diagram of parallel connection of modules in the prior art;
fig. 2 is a flowchart of a module address determination method according to an embodiment of the present application;
FIG. 3 is a flowchart of steps performed prior to sending barcode information to a bus as provided by an embodiment of the present application;
fig. 4 is a flowchart of a method for determining an address of a local module according to barcode information of the local module and barcode information of a non-local module provided in the 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 determination 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
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of modules connected in parallel in the prior art. As shown in fig. 1, there are a total of 7 modules connected in parallel in order from left to right, module a1, module a2, module A3, module a4, module a5, module a6, and module a 7.
In this prior art, 5 dials 1, 2, 3, 4, 5 are provided on each module, and according to the binary principle, in each dial, an upward dial represents a binary "1", no dial (i.e., held at a lower position) represents a binary "0", and from left to right, 5 dials represent 1, 2, 4, 8, 16 in decimal, respectively. Thus, by making different dial settings for different modules so that the addresses of different modules are different, the actual address of each module can be determined. For example, in block a1, if only the switch corresponding to 5 is toggled up, the address of block 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 turned up, the address corresponding to the module A3 is 01+ 02-03; in block a4, the switch corresponding to block a4 is toggled up, and the value corresponding to block a4 is 04; in the module A5, the switch corresponding to 3 and 5 is pushed up, and the value corresponding to the module A5 is 05; in the module 6, the switches corresponding to 3 and 4 are pushed up, so that the value corresponding to the module A6 is 06; in block a7, if the switches corresponding to 3, 4, and 5 are toggled up, the value corresponding to block a7 is 07.
However, in the above manner, after the installation of each module on site is completed, a person familiar with the operation is required to complete the confirmation of the module address. On the one hand, need carry out manual operation, can bring inconvenience in the operation, on the other hand needs to have certain technical requirement to installer, is unfavorable for the later stage to maintain.
Based on this, the application provides a module address determination method, and the method can perform the automatic identification process of the module address by utilizing the self-carried bar code information of each module when the module leaves the factory, does not need manual intervention, has simpler operation, and brings convenience for adding or reducing modules in the later period.
It can be understood that the barcode information carried by each module when the module leaves the factory is unique barcode information, that is, the barcode information between each two modules is different.
Fig. 2 is a flowchart of a module address determining method provided in the present application, where the method is applied to a communication network, the communication network includes at least one module, and the modules are connected by 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 the bar code information to the bus.
After each module is connected to the bus, the first step is that the barcode information of the module is sent to the bus, so that other modules except the module can acquire the barcode 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 a short term for Controller Area Network (CAN), and is one of the most widely used field buses internationally.
Further, in an embodiment, before the step of sending the barcode information to the bus is performed, the module address determination method further includes the steps of:
301: and 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 initialized to a first preset value, for example, the address of the module is initialized to 1. Meanwhile, the module can actively send a bar code information request instruction to the bus, namely, requests to acquire the bar code information sent on the bus by other modules except the module. And, if in the application of the power module, the sending period of the barcode information request command can be set to 400 ms.
302: and if a bar code information request instruction of a module on the bus is received, the step of sending bar code information to the bus is executed.
If a bar code information request command which is not the module can be received from the bus, it is indicated that other modules are connected to the bus except the module, and since the other modules need to know the bar code information of the module and can determine the addresses of the modules, the module needs to send the bar code information of the module to the bus. In addition, if the power module is applied, the transmission cycle for transmitting the barcode information of the power module may be set to 400 ms.
It is understood that in all embodiments of the present application, other modules or other modules generally refer to modules other than the present module that are connected to a bus. And the present module refers to any one of all modules connected to the bus.
303: and if the bar code information request instruction of the module on the bus is not received, delaying a second preset time.
304: and stopping sending the bar code information request instruction to the bus at the moment when the second preset duration is finished, and executing the step of sending the bar code information to the bus.
And if the module does not receive the bar code information request instruction from other modules from the bus, delaying a second preset time. And at the moment when the second preset time length is finished, the module stops sending the bar code information request instruction to the bus and starts sending the bar code information of the module to the bus. For example, if the second preset time is 3S, if the module does not receive the instruction of requesting the barcode information from another module on the bus, after 3S, the module stops initiating 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 present application is applied to a power module, the period for sending the barcode information of the present module may be set to 400 ms.
In summary, after each module is successfully powered on and establishes communication, the module address of each module is initialized to a first preset value, and each module actively sends an instruction for requesting barcode information to the bus. If a bar code request instruction which is not the module can be received, which indicates that at least two modules are connected to the bus, each module is required to send bar code information of the module to the bus. If a request barcode instruction which is not the module is not received, it is very likely that only one module is connected to the bus, the barcode information may be sent to the bus, or not sent, and no limitation is made here.
202: and if the bar code information of the non-module is not received, delaying the first preset time.
203: and at the moment when the first preset duration is finished, stopping sending the bar code information to the bus, and determining the address of the module as a first preset value.
After sending the bar code information request instruction to the bus, if the bar code information of other modules is not received, only the module is determined to be connected to the bus, and then the bar code information can be stopped from being sent to the bus. And then delaying the first preset time, stopping sending the bar code information to the bus at the moment when the first preset time is finished, and directly setting the address of the module as a first preset numerical value.
In conjunction with the above embodiments, the first preset value is 1 for example. After the modules are powered on and communication is established, the addresses of the initialized modules are all 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 be 1 after the bar code information is stopped being sent to the bus. It should be understood that before sending the barcode information to the bus, if a barcode request instruction from another module is received, the address of the module may also be actively reset to 1, so as to ensure that the initial value of the module is 1.
204: and if at least one piece of bar code information of the non-local module is received, determining the address of the module according to the received at least one piece of bar code information of the non-local module.
Suppose that the module receives bar code information of N non-modules (other modules), where N is a natural number greater than 0. Firstly, the N pieces of bar code information are stored in the corresponding memory space of the module so as to be used for determining the address of the module subsequently. Then, the N pieces of bar code information can be combined with the bar code information of the module to determine the address of the module.
Specifically, in an embodiment, the following method is adopted to determine the address of the module through the N pieces of bar code information and the bar code information of the module, as shown in fig. 4, the method includes:
401: and judging whether the bar code information of the module has bar code information of which the number corresponding to at least one bar code information is smaller than the number corresponding to the bar code information of the module.
402: if yes, traversing each bar code information, and if the number corresponding to the bar code information is smaller than the number corresponding to the bar code information of the module, adding a second preset numerical value to the address of the module.
403: if not, the address of the module is kept unchanged.
In the module, the stored numbers corresponding to the barcode information of the other modules and the numbers corresponding to the barcode information of the module are sorted in size, so that the situation that the numbers corresponding to the barcode information are smaller than the K pieces of barcode information of the numbers corresponding to the barcode information of the module in the N pieces of barcode information of the other modules can be determined, wherein K is a natural number which is smaller than or equal to N and larger than or equal to 0.
If K is larger 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 there is a number corresponding to a piece of barcode information smaller than a number corresponding to the barcode information of the module, the address of the module is added with a second preset value on the basis of the initial address (i.e., the first preset value in the above embodiment); and 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 a second preset value on the basis of the initial address. In other words, for each bar code information, if the number corresponding to the bar code information is smaller than the number corresponding to the bar code information of the module, the address of the module is added with a second preset numerical value.
When K is 0, the address of the module is still kept as the 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, wherein each module is connected to a bus L. Assume that the numbers corresponding to the barcode information of the module M1, the module M2, the module M3, the module M4, the module M5 and the module M6 are 10, 20, 30, 40, 50 and 60, respectively, and assume that the first preset value is 1 and the second preset value is 2.
Specifically, the module M3 will be described as an example of the present module. The module M3 acquires 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, which is smaller than the number 30 corresponding to the barcode information of the module M3, the address of the module M3 is changed to 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 is 2+1 — 3. And the numbers corresponding to the barcode information of the module M4, the module M5 and the module M6 are all larger than the numbers corresponding to the barcode 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 is not described herein again.
It is understood that in other embodiments, other methods may be used to determine the address of the module by using 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 second preset value is added to the address of the module.
Meanwhile, in another embodiment, after the address of the module is determined by the above method, it is further determined whether a time period from a time when the step of sending the barcode information to the bus is started to a current time is longer than a third preset time period. That is, timing is started when the module sends the barcode information to the bus, and whether the timing duration is longer than a third preset duration is judged in real time, wherein the third preset duration is a preset value of a user and is usually determined by the user according to actual use conditions, and the third preset duration is usually required to be longer than or equal to the total time of all modules for completing address determination. In general, in the application of the power supply module, it can be set to 9s, that is, the determination of the address of each power supply module is completed within 9 s.
When the timing duration is longer than the third preset duration, all the modules do not send the bar code information to the bus any more, and the address of each module is determined at the moment. Of course, when the timing duration is less than the third preset duration, the step of not determining each barcode information of the module in the above embodiment is returned, and the step of determining the address of the module according to each barcode information of the module and the barcode information of the module is continuously executed until the timing duration is greater than or equal to the third preset 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 the modules are powered on and establish communication, the address of each module is initialized to 1, and each module actively sends a barcode request instruction to the bus. If the module receives a bar code request instruction of other modules from the bus, the module resets the address of the module to be a first preset value and simultaneously sends bar code information to the bus. If the bar code information request instructions of other modules are not received from the bus, delaying a second preset time, stopping sending the bar code information request instructions 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 in size. If the number corresponding to the bar code information of other modules is larger than the number corresponding to the bar code information of the module, the address of the module is kept unchanged to be the first preset numerical 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 module in other modules, adding a second preset numerical 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 over, and simultaneously directly determining the address of the module as a first preset numerical value.
All the steps need to be completed within a third preset time, and after the third preset time is finished, each module does not send barcode information to the bus any more, and the address of each module is determined.
Meanwhile, if the existing module on the bus finishes the determination of the address and a new module is connected to the bus, the new module sends a bar code information request instruction. When the existing module on the bus receives the barcode information request command sent by the new module, all modules (including the existing module and the new module) on the bus restart the address determination process, i.e., execute the steps shown in fig. 2 to fig. 4. Therefore, no matter all the modules are powered on simultaneously or all the modules are powered on sequentially, the method provided by the application can automatically determine the addresses of all the modules, reduces the limitation in use and has high adaptability. Meanwhile, manual operation is not needed, and the reliability of the product can be improved. Moreover, with respect to the prior art, the related circuit structure (for example, a dial switch) can be omitted, so that the cost can be reduced.
It is understood that, in the above-described embodiment, the address of each module is determined by the barcode information unique to each module. In other embodiments, the address of each module may also be determined by other unique identifiers of each module, for example, the ID number of each module, and the specific implementation process is similar to that in the above embodiments of the present application, which is within the scope easily understood by those skilled in the art, and is not described here again.
Fig. 6 is a schematic structural diagram of a module address determination apparatus according to an embodiment of the present invention, where the module address determination apparatus 600 is applied to a communication network, the communication network includes at least one module, and the modules are connected by a bus, where each of the modules is provided with barcode information, and the barcode information in different modules is different. As shown in fig. 6, the module address determining apparatus 600 includes an instruction sending 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 time if the barcode information of the non-local module is not received. The first address determining unit 603 is configured to stop sending the barcode information request instruction to the bus at the time when the first preset duration ends, and determine that the address of the module is the first preset value. The second address determining unit 604 is configured to determine the address of the module according to the received barcode information of the at least one non-local module if the barcode information of the at least one non-local module is received.
Since the apparatus embodiment and the method embodiment are based on the same concept, the contents of the apparatus embodiment may refer to the method embodiment on the premise that the contents do not conflict with each other, and are not described herein again.
Fig. 7 is a schematic structural diagram of a power module according to an embodiment of the present invention. As shown in fig. 7, the power module 700 includes one or more processors 701 and a memory 702. In fig. 7, one processor 701 is taken as an example.
The processor 701 and the memory 702 may be connected by a bus or other means, such as the bus connection shown in fig. 7.
The memory 702, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules (e.g., the units shown in fig. 6) corresponding to the module address determination method in the embodiment of the present invention. The processor 701 executes various functional applications and data processing of the module address determination apparatus by executing the nonvolatile software program, instructions, and modules stored in the memory 702, that is, implements the functions of the module address determination method in the above-described method embodiment and the various 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, which may be connected to processor 701 via 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 stored in the memory 702, when executed by the one or more processors 701, perform the module address determination method in any of the method embodiments described above, e.g., perform the various steps shown in fig. 2, 3, and 4 described above; the functions of the various elements described in fig. 6 may also be implemented.
An embodiment of the present application further provides a communication network, where the communication network includes at least one power module as in any of the above embodiments, where the power modules are connected to each other through a bus.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a power module, the power module is caused to perform the method in any of the above embodiments.
Embodiments of the present invention 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 above embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; within the context of the present application, where technical features in the above embodiments or in different embodiments can also be combined, the steps can be implemented in any order and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A module address determination method is applied to a communication network, the communication network comprises at least one module, the modules are connected through a bus, bar code information is arranged in each module, and the bar code information in different modules is different, the method comprises the following steps:
sending bar code information to the bus;
if the bar code information of the module is not received, delaying for a first preset time;
at the moment when the first preset duration is finished, stopping sending the bar code information to the bus, and determining the address of the module as a first preset value;
and if at least one piece of bar code information of the non-local module is received, determining the address of the local module according to the received at least one piece of bar code information of the non-local module.
2. The method of claim 1, wherein prior to 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;
and if a bar code information request instruction of a module on the bus is received, the step of sending bar code information to the bus is executed.
3. The method of claim 2, further comprising:
if a bar code information request instruction of a module on the bus, which is not the module, is not received, delaying a second preset time;
and stopping sending the bar code information request instruction to the bus at the moment when the second preset time length is finished, and executing the step of sending the bar code information to the bus.
4. The method of claim 1, wherein the determining the address of the local module according to the received barcode information of the at least one non-local module comprises:
storing the bar code information of the non-local module;
and determining the address of the module according to the bar code information of the module and the bar code information of the module.
5. The method of claim 4, wherein determining the address of the module according to the barcode information of the non-local module and the barcode information of the local module comprises:
judging whether at least one bar code information corresponding number is smaller than the bar code information of the module corresponding number in each bar code information of the module;
if so, traversing each bar code information, and if the number corresponding to the 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, the address of the module is kept unchanged.
6. The method according to claim 4 or 5, wherein after determining the address of the module according to the barcode information of the non-local module and the barcode information of the local 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 so, stopping sending the bar code information of the module to the bus;
if not, returning to the step of storing the bar code information of the module.
7. A module address determination device is applied to a communication network, the communication network comprises at least one module, the modules are connected through a bus, bar code information is arranged in each module, the bar code information in different modules is different, and the device comprises:
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 barcode information of the non-local module is not received;
the first address determining unit is used for stopping sending a bar code information request instruction to the bus at the moment when the first preset duration is finished, 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-local module if the bar code information of the non-local module is received.
8. A power module, comprising:
a control processing unit comprising:
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 of claims 1-6.
9. A communication network comprising at least one power module according to claim 8;
and all the power modules are connected through a bus.
10. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a power module, cause the power module to perform the method of any of claims 1-6.
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 true CN113382094A (en) 2021-09-10
CN113382094B 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 (2)

* Cited by examiner, † Cited by third party
Title
朱清祥等: "基于TMS320F2812的CAN总线通信研究", 《中国科技信息》 *
朱清祥等: "基于TMS320F2812的CAN总线通信研究", 《中国科技信息》, no. 18, 15 September 2007 (2007-09-15) *

Also Published As

Publication number Publication date
CN113382094B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
US11080404B2 (en) Firmware upgrade method, slave station of robot, and machine readable storage medium
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
CN109428773B (en) Communication method and device
CN112804730B (en) Equipment interconnection method, device, server, intelligent equipment and storage medium
EP3993338A1 (en) Device binding method and apparatus, and electronic device
CN112020050A (en) Networking method of wireless device, gateway device and storage medium
JP6115482B2 (en) Electronic control unit
CN112822300B (en) RDMA (remote direct memory Access) -based data transmission method and device and electronic equipment
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
CN111796844B (en) Firmware upgrading method and device based on Bluetooth network topology and Bluetooth network topology
CN113382094B (en) Module address determining method and device, power module and communication network
CN112822299B (en) RDMA (remote direct memory Access) -based data transmission method and device and electronic equipment
CN113961497A (en) Communication circuit system, method, chip and storage medium
CN112261512B (en) Master station remote control method, device, storage medium and equipment of unbalanced polling protocol
CN115080091A (en) Method and system for upgrading MCU firmware on line by satellite communication equipment
CN107147552A (en) The method and apparatus that letter reading is returned in a kind of remote control
CN109714785B (en) Network access method, device, network equipment and storage medium
CN110647330B (en) Web-oriented just-in-time compiling method and tool
CN113625580A (en) Device control method, device, electronic device, control system and storage medium
CN102891888B (en) A kind of data access method and relevant device, system
KR102054144B1 (en) Method and Apparatus for Control Terminals in IoT Service
CN113886296B (en) Data transmission method, device, equipment and storage medium
CN111294374A (en) Heterogeneous equipment starting system, method and device and electronic equipment
CN103164369A (en) Control method and device for data transmission
CN108196869A (en) A kind of EMMC firmwares start method and apparatus

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