CN108897708A - A kind of multi-controller communication system physical address determines method and device - Google Patents
A kind of multi-controller communication system physical address determines method and device Download PDFInfo
- Publication number
- CN108897708A CN108897708A CN201811044892.XA CN201811044892A CN108897708A CN 108897708 A CN108897708 A CN 108897708A CN 201811044892 A CN201811044892 A CN 201811044892A CN 108897708 A CN108897708 A CN 108897708A
- Authority
- CN
- China
- Prior art keywords
- controller
- physical address
- electrical device
- voltage
- communication system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000006854 communication Effects 0.000 title claims abstract description 49
- 238000004891 communication Methods 0.000 title claims abstract description 48
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000003860 storage Methods 0.000 claims abstract description 18
- 230000009467 reduction Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 4
- 230000000704 physical effect Effects 0.000 claims 1
- 238000009434 installation Methods 0.000 abstract description 6
- 238000004519 manufacturing process Methods 0.000 abstract description 5
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 10
- 230000005611 electricity Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000006837 decompression Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000052 comparative effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000003466 welding Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1668—Details of memory controller
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/06—Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
- G06F12/0615—Address space extension
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
Abstract
This application provides a kind of multi-controller communication system physical address to determine method, is applied to controller, including:Obtain the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity;The multiple between the voltage and preset standard voltage is calculated, obtains fold values;The address number of contemplated electrical device is determined using fold values;The physical address of controller is determined using the corresponding relationship between address number and preset address number and physical address.Contemplated electrical device does not need installation addresses toggle switch or address resistance in this method, and each contemplated electrical device is identical, production is more easier, and reduces costs, and the problems such as address is arranged in omission can be less prone to according to its link position automatic identification address.The application also provides a kind of multi-controller communication system physical address determining device and computer readable storage medium, all has above-mentioned beneficial effect.
Description
Technical field
This application involves electronic equipment physical address to confirm technical field, in particular to a kind of multi-controller communication system object
Reason address determines method, apparatus and computer readable storage medium.
Background technique
For multi-controller serial bus communication, controller often needs to determine the physical address of controller for controlling
In device communication process processed.Currently, controller determines that the process of the physical address of controller is:Identify the target being connected with controller
Address code corresponding with controller on electronic device;Since address code is associated with the physical address of controller, and then controlled
The physical address of device processed.Wherein, address code is set to method common on contemplated electrical device is pacified on contemplated electrical device
The address resistance of address toggle switch or different resistance values is filled, and each contemplated electrical device is connected in parallel, then by controller
To identify.Wherein, as shown in FIG. 1, FIG. 1 is address electric-resistivity method physical address to determine for installation addresses resistance on contemplated electrical device
Apparatus structure schematic diagram;The installation addresses toggle switch on contemplated electrical device is as shown in Fig. 2, Fig. 2 is address toggle switch method
Physical address determining device structural schematic diagram.Address toggle switch is although easy to use, but there are the bigger needs of address range to account for
With the more problem of the input port of controller and higher cost;There is also the bigger needs of address range to occupy control for address electric-resistivity method
The more problem of the input port of device processed, cost is also higher, and needs according to actual needs to when productive target electronic device
In the unified resistance welding to contemplated electrical device of different number type, production management is complicated, low efficiency.
Therefore, how lower cost determines that the physical address of controller is that those skilled in the art need the technology solved to ask
Topic.
Summary of the invention
The purpose of the application is to provide a kind of multi-controller communication system physical address and determines that method, apparatus and computer can
Read storage medium, can lower cost and according to contemplated electrical device link position automatically flexibly determine controller physically
Location.
In order to solve the above technical problems, the application, which provides a kind of multi-controller communication system physical address, determines method, answer
For controller, including:Obtain the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity;Wherein, described
Electronic device chain is composed in series by the contemplated electrical device, each corresponding controller of the contemplated electrical device,
The two poles of the earth correspondence of the electronic device chain is connect with power supply device the two poles of the earth, the two poles of the earth of the power supply device be respectively high potential pole with
Low potential pole;The multiple between the voltage and preset standard voltage is calculated, obtains fold values;It is true using the fold values
The address number of the fixed contemplated electrical device;Utilize pair between the address number and preset address number and physical address
It should be related to the physical address for determining the controller.
Preferably, the address number that the contemplated electrical device is determined using the fold values, including:
The processing that rounds up is carried out to the fold values, obtains the corresponding integer of the fold values;
The integer is determined as the address number.
Preferably, the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity is obtained in the controller
Later, further include:
Proportion of utilization reduction voltage circuit is depressured the voltage scale.
Preferably, when the contemplated electrical device be diode socket device when, the numerical value of the normal voltage with it is described
The numerical value of the tube voltage drop of diode is equal in diode socket device.
The application also provides a kind of multi-controller communication system physical address determining device, including:Electronic device chain and control
Device processed;Wherein, the electronic device chain is composed in series by contemplated electrical device, each corresponding institute of the contemplated electrical device
State controller;
The two poles of the earth correspondence of the electronic device chain is connect with power supply device the two poles of the earth;Wherein, the two poles of the earth of the power supply device point
It Wei not high potential pole and low potential pole;
The both ends of each controller respectively with the high potential pole of corresponding contemplated electrical device and the electronic device chain
Low potential pole connection, or respectively with the high potential pole of the low potential pole of corresponding contemplated electrical device and the electronic device chain
Connection, for obtaining the voltage of the contemplated electrical device and the electronic device chain not between homopolarity, using the voltage with
Preset standard voltage determines the address number of the contemplated electrical device and the physical address of the controller.
Preferably, the electronic device chain further includes:
With the concatenated redundant electronic device of the contemplated electrical device.
Preferably, which further includes:
The current-limiting resistance being connect respectively with the electronic device chain and the power supply device.
Preferably, which further includes:
Connect respectively with the MCU chip in the contemplated electrical device and the controller, to the voltage scale into
The ratio reduction voltage circuit of row decompression.
Preferably, memory and processor are equipped in the controller;Wherein, the memory is for storing computer journey
Sequence, the processor is for realizing that multi-controller communication system physical address described above is true when executing the computer program
The step of determining method.
The application also provides a kind of computer readable storage medium, and the computer-readable recording medium storage has computer
Program, the computer program realize multi-controller communication system physical address determination side described above when being executed by processor
The step of method.
A kind of multi-controller communication system physical address provided herein determines method, is applied to controller, including:
Obtain the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity;Wherein, the electronic device chain is by described
Contemplated electrical device is composed in series, each corresponding controller of the contemplated electrical device, the electronic device chain
The two poles of the earth correspondence is connect with power supply device the two poles of the earth, and the two poles of the earth of the power supply device are respectively high potential pole and low potential pole;Calculate institute
The multiple between voltage and preset standard voltage is stated, obtains fold values;The target electronic is determined using the fold values
The address number of device;Using described in the corresponding relationship determination between the address number and preset address number and physical address
The physical address of controller.
As it can be seen that this method utilizes the voltage and preset standard voltage between contemplated electrical device and electronic device chain not homopolarity
Between multiple proportion, determine the address number of contemplated electrical device, and then determine the physical address of controller.Mesh in this method
Mark electronic device does not need installation addresses toggle switch or address resistance, and each contemplated electrical device is identical, and production is more
It is easy to add, and reduces costs, and can be less prone to omission setting address etc. according to its link position automatic identification address and ask
Topic.The application also provides a kind of multi-controller communication system physical address determining device and computer readable storage medium, has
There is above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is address electric-resistivity method physical address determining device structural schematic diagram;
Fig. 2 is address toggle switch method physical address determining device structural schematic diagram;
Fig. 3 determines the process of method for a kind of multi-controller communication system physical address provided by the embodiment of the present application
Figure;
Fig. 4 is that the first structure of multi-controller communication system physical address determining device provided by the embodiment of the present application is shown
It is intended to;
Fig. 5 is that multi-controller communication system physical address second of structure of determining device provided by the embodiment of the present application is shown
It is intended to;
Fig. 6 is that diode socket device multi-controller communication system physical address provided by the embodiment of the present application determines dress
Set the first structural schematic diagram;
Fig. 7 is resistance socket device multi-controller communication system physical address determining device provided by the embodiment of the present application
The first structural schematic diagram.
Specific embodiment
The core of the application is to provide a kind of multi-controller communication system physical address and determines that method, apparatus and computer can
Read storage medium, can lower cost and according to contemplated electrical device link position automatically flexibly determine controller physically
Location.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 3, Fig. 3 is a kind of multi-controller communication system physical address determination side provided by the embodiment of the present application
The flow chart of method, this method specifically include:
S301, the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity is obtained.
The executing subject of the present embodiment is controller, and during determining the physical address of controller, controller is obtained
Corresponding contemplated electrical device and electronic device the chain not voltage between homopolarity.Wherein, electronic device chain is by contemplated electrical device
It is composed in series and the two poles of the earth of electronic device chain correspondence is connect with power supply device the two poles of the earth, the corresponding control of each contemplated electrical device
Device.As for contemplated electrical device it is specially which kind of electronic device is not limited thereto, such as can is diode plug-in unit seat device, electricity
Hinder socket device.
Multiple between S302, calculating voltage and preset standard voltage, obtains fold values.
After controller obtains the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity, calculate voltage with
Multiple between preset standard voltage, obtains fold values.Specific value of preset standard voltage is not construed as limiting at this, Ying You
Those skilled in the art make corresponding setting, the numerical value and single target electronic device of usual normal voltage according to the actual situation
Voltage between high low potential pole is equal, so that the fold values obtained are approximately positive integer.Further, when target electronic device
When part is diode socket device, the numerical value and the numerical value phase of the tube voltage drop of diode in diode socket device of normal voltage
Deng, and the numerical value of usually tube voltage drop is labeled on diode socket device, without measuring.
S303, the address number that contemplated electrical device is determined using fold values.
Controller determines the address number of contemplated electrical device using fold values, theoretically after obtaining fold values
Fold values are usually and address number is equal.But in a practical situation, since conducting wire can also have resistance, so even if standard
Voltage between the numerical value of voltage and the high low potential pole of single target electronic device is equal, and the fold values obtained usually compare theory
On fold values it is bigger than normal.Since this error is that inevitable errors not can avoid this error, various technology hands can only be passed through
Section reduces this error.In order to reduce this error, controller would generally carry out the processing that rounds up to fold values, obtain again
The corresponding integer of number numerical value, then the integer is determined as address number.
S304, the object that controller is determined using the corresponding relationship between address number and preset address number and physical address
Manage address.
Which kind of corresponding relationship corresponding relationship between address number and physical address is specially, and is not limited thereto, Ying You
Those skilled in the art make corresponding setting according to the actual situation.Since each contemplated electrical device corresponds to a controller,
So controller usually after determining the address number of contemplated electrical device, determines the physical address and target electronic device of controller
The address number of part is equal.
The present embodiment using between contemplated electrical device and electronic device chain not homopolarity voltage and preset standard voltage it
Between multiple proportion, determine the address number of contemplated electrical device, and then determine the physical address of controller.Target in this method
Electronic device does not need installation addresses toggle switch or address resistance, and each contemplated electrical device is identical, and production is more
It is easy, reduces costs, and can be less prone to omission setting address etc. according to its link position automatic identification address and ask
Topic.
Based on the above embodiment, corresponding contemplated electrical device and electronic device chain are obtained not in controller in the present embodiment
After voltage between homopolarity, also typically include:Proportion of utilization reduction voltage circuit is depressured voltage scale.It can prevent electricity
The damage greatly to component in circuit is pressed through, security risk is reduced, avoids unnecessary loss.
It below can to multi-controller communication system physical address determining device provided by the embodiments of the present application and computer
It reads storage medium to be introduced, multi-controller communication system physical address determining device described below and computer-readable deposit
Storage media determines that method can correspond to each other reference with above-described multi-controller communication system physical address.
Fig. 4 and Fig. 5 are please referred to, Fig. 4 is that multi-controller communication system physical address provided by the embodiment of the present application determines
The first structural schematic diagram of device, Fig. 5 are that multi-controller communication system physical address provided by the embodiment of the present application determines dress
Set second of structural schematic diagram.The multi-controller communication system physical address determining device, including:Electronic device chain 400 and control
Device 500 processed;Wherein, electronic device chain 400 is composed in series by contemplated electrical device, the corresponding control of each contemplated electrical device
Device, such as the corresponding controller 501 of contemplated electrical device 401;The two poles of the earth of electronic device chain 400 are corresponding to be connected with power supply device the two poles of the earth
It connects.Wherein, the two poles of the earth of power supply device are respectively high potential pole and low potential pole.The both ends of each controller respectively with corresponding target
The high potential pole of electronic device and the low potential pole connection of electronic device chain 400, as shown in Figure 4;Or the both ends of each controller point
It is not connected with the low potential pole of corresponding contemplated electrical device and the high potential pole of electronic device chain, as shown in Figure 5.More controls
Two kinds of structures of device communication system physical address determining device can be used in obtaining contemplated electrical device and electronic device chain not
Voltage between homopolarity determines the address number of contemplated electrical device and the physics of controller using voltage and preset standard voltage
Address.
In the present embodiment, electronic device chain 400 is composed in series by contemplated electrical device, and specific value is not limited thereto,
Corresponding setting should be made according to the actual situation by those skilled in the art.It is specially which kind of electronics device as contemplated electrical device
Part is also not construed as limiting herein, such as can be diode plug-in unit seat device, resistance socket device.Wherein, in diode socket device
Diode the two poles of the earth resistance for being connected respectively to two of diode socket device to external wiring terminal, in resistance socket device
The two poles of the earth be connected respectively to two of resistance socket device to external wiring terminal.Due to the corresponding control of each contemplated electrical device
Device processed, so contemplated electrical device is consistent with the quantity of controller.
The two poles of the earth correspondence of electronic device chain 400 is connect with power supply device the two poles of the earth, does not make to have to the type of power supply device at this
Body limits, and can be continuous-current plant, can also be ac power supply apparatus.Further, if electric current tends to be constant, direct current
Source device is direct current continuous current device, and ac power supply apparatus is exchange constant-current supply device.The two poles of the earth of power supply device are respectively
High potential pole and low potential pole, for different types of power supply device, the object that high potential pole refers to is different, low potential pole
The object of reference also can be corresponding different.For example, for continuous-current plant, the object of high potential pole and the reference of low potential pole
Respectively anode and cathode;For ac power supply apparatus, the object that high potential pole and low potential pole refer to is respectively firewire and zero
Line.The type of contemplated electrical device in electronic device chain 400 need to be considered generally for the selection of current device, such as when target electricity
When sub- device is resistance socket device, power supply device is usually constant-current supply device, preferably voltage-stabilizing constant-source device.Its
In, continuous current device includes above-mentioned direct current continuous current device and exchange constant-current supply device.The two of electronic device chain 400
Pole connect with power supply device the two poles of the earth usually it is also contemplated that in electronic device chain 400 contemplated electrical device type, such as work as target
When electronic device is diode socket device, due to the unilateral conduction of diode, so the height electricity of electronic device chain 400 at this time
Gesture pole need to connect the high potential pole of power supply device, and the low potential pole of electronic device chain 400 need to connect the low potential pole of power supply device.
Further, the multi-controller communication system physical address determining device also typically include respectively with electronic device chain 400 and electricity
The current-limiting resistance of source device connection, can be effectively prevented that electric current in circuit is excessive to burn out contemplated electrical device.For current-limiting resistance
Quantity and model be not construed as limiting herein, corresponding setting should be made according to the actual situation by those skilled in the art.
Electronic device chain 400 is composed in series by contemplated electrical device in the present embodiment, thus each contemplated electrical device with
There is no voltage and the corresponding controller of each contemplated electrical device between homopolarity in electronic device chain 400, controller can be with
Above-mentioned voltage is obtained, voltage and preset standard voltage is recycled to determine the address number of contemplated electrical device and the physics of controller
Address.Since contemplated electrical device does not need installation addresses toggle switch or address resistance, and each contemplated electrical device is complete
Identical, production is more easier, and reduces costs, and can be less prone to omission according to its link position automatic identification address
The problems such as address is set.
Based on the above embodiment, in the present embodiment electronic device chain 400 also typically include it is concatenated with contemplated electrical device
Redundant electronic device, redundant electronic device are the contemplated electrical device not connected with corresponding controller.Having in user needs
Redundant electronic device can be connected with corresponding controller when asking, redundant electronic devices transition is contemplated electrical device at this time,
The presence of redundant electronic device can satisfy user and not plant demand, more convenient, humanized, improve user experience.For superfluous
The quantity of remaining electronic device and the position in electronic device chain 400 are not construed as limiting herein, should be by those skilled in the art
Corresponding setting is made according to the actual situation.
Based on the above embodiment, multi-controller communication system physical address determining device also typically includes in the present embodiment:
It is connected respectively with MCU (micro-control unit, the Micro controller Unit) chip in contemplated electrical device and controller,
The ratio reduction voltage circuit that voltage scale is depressured.Further, ratio reduction voltage circuit by signal wire respectively with target
Electronic device and MCU chip connection, model and type for signal wire are not construed as limiting, and generally select PTY23 signal cable
As signal wire.It is not especially limited in the type of this comparative example reduction voltage circuit, is selected generally according to different types of current device
Different types of ratio reduction voltage circuit is selected, such as constant-current supply device, ratio reduction voltage circuit can be resistor voltage divider circuit.
In addition, for two kinds of structures of Fig. 4 and multi-controller communication system physical address determining device shown in fig. 5, ratio decompression electricity
The connection on road is also classified into two kinds of situations:For structure shown in Fig. 4, ratio reduction voltage circuit is electric with the height of contemplated electrical device respectively
MCU chip connection in gesture pole and controller;For structure shown in fig. 5, ratio reduction voltage circuit respectively with contemplated electrical device
Low potential pole and controller in MCU chip connection.
Based on the above embodiment, contemplated electrical device is diode socket device in the present embodiment;Wherein, diode socket
The two poles of the earth of diode in device are connected respectively to two of diode socket device to external wiring terminal.For the type of diode
It number is not limited thereto, corresponding setting should be made according to the actual situation by those skilled in the art, usual diode is
HER208 high efficiency rectification diode.As shown in fig. 6, Fig. 6 is that diode socket device provided by the embodiment of the present application controls more
The first structural schematic diagram of device communication system physical address determining device.It will be appreciated from fig. 6 that processor is MCU in controller at this time
Chip, contemplated electrical device are diode socket device, the controller low potential pole and two with diode socket device chain respectively
The high potential pole of pole pipe socket device connects, and the high low potential pole of diode socket device chain is low with current-limiting resistance and power supply respectively
The connection of potential pole.
Further, in this embodiment multi-controller communication system physical address determining device also typically includes:Work as target
When electronic device is resistance socket device, the constant-current circuit device that is connect respectively with electronic device chain 400 and power supply device;Its
In, the two poles of the earth of the resistance in resistance socket device are connected respectively to two of resistance socket device to external wiring terminal.For electricity
Type, shape, model and the resistance value of resistance for hindering socket device is not especially limited, should by those skilled in the art according to
Actual conditions make corresponding setting, usually KNP resistance.The type of constant-current circuit device is not also limited specifically herein
Fixed, usually AZ431 constant-current circuit device, is a kind of easy to use, widely used constant-current circuit device.As shown in fig. 7, figure
7 be the first structure of resistance socket device multi-controller communication system physical address determining device provided by the embodiment of the present application
Schematic diagram.As shown in Figure 7, processor is MCU chip in controller at this time, and contemplated electrical device is resistance socket device, control
Device is connect with the high potential pole of the low potential pole of resistance socket device chain and resistance socket device respectively, resistance socket device chain
High low potential pole is connect with constant-current circuit device and power supply low potential pole respectively.
Based on the above embodiment, multi-controller communication system physical address determining device in the present embodiment, also typically includes:
The connector being connect respectively with contemplated electrical device and ratio reduction voltage circuit.Herein for the type of connector, shape, model with
And resistance value is not especially limited, and corresponding setting should be made according to the actual situation by those skilled in the art, can be SMA-
JB3-2 connector.In addition, for two kinds of knots of Fig. 4 and multi-controller communication system physical address determining device shown in fig. 5
Structure, the connection of connector are also classified into two kinds of situations:For structure shown in Fig. 4, connector respectively with the height of contemplated electrical device
Potential pole and the connection of ratio reduction voltage circuit;For structure shown in fig. 5, connector respectively with the low potential pole of contemplated electrical device
And ratio reduction voltage circuit connection.
Based on the above embodiment, contemplated electrical device can be backboard in the present embodiment, for communicating rectification power system
The determination of middle fairing address.It is possible to further install diode and resistance on backboard, at this to diode and resistance
Type, model and shape be not especially limited, corresponding setting should be made according to the actual situation by those skilled in the art.
Based on above-mentioned any embodiment, memory and processor are typically provided in the present embodiment in controller.Wherein, it stores
Device is used to realize that the multi-controller of above-mentioned any embodiment is logical when executing computer program for storing computer program, processor
The step of letter system physical address determines method.Model and type at this to memory and processor are not construed as limiting, storage
Device can be AT24C02 storage chip, and processor can be STM32 series monolithic.
The application also provides a kind of computer readable storage medium, and computer-readable recording medium storage has computer journey
Sequence realizes the multi-controller communication system physical address determination side of above-mentioned any embodiment when computer program is executed by processor
The step of method.
The computer readable storage medium may include:USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For embodiment provide system and
Speech, since it is corresponding with the method that embodiment provides, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Method, apparatus and calculating are determined to a kind of multi-controller communication system physical address provided herein above
Machine readable storage medium storing program for executing is described in detail.Specific case used herein carries out the principle and embodiment of the application
It illustrates, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for
For those skilled in the art, under the premise of not departing from the application principle, if can also be carried out to the application
Dry improvement and modification, these improvement and modification are also fallen into the protection scope of the claim of this application.
Claims (10)
1. a kind of multi-controller communication system physical address determines method, it is applied to controller, which is characterized in that including:
Obtain the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity;Wherein, the electronic device chain by
The contemplated electrical device is composed in series, each corresponding controller of the contemplated electrical device, the electronic device
The two poles of the earth correspondence of chain is connect with power supply device the two poles of the earth, and the two poles of the earth of the power supply device are respectively high potential pole and low potential pole;
The multiple between the voltage and preset standard voltage is calculated, obtains fold values;
The address number of the contemplated electrical device is determined using the fold values;
The object of the controller is determined using the corresponding relationship between the address number and preset address number and physical address
Manage address.
2. multi-controller communication system physical address according to claim 1 determines method, which is characterized in that the utilization
The fold values determine the address number of the contemplated electrical device, including:
The processing that rounds up is carried out to the fold values, obtains the corresponding integer of the fold values;
The integer is determined as the address number.
3. multi-controller communication system physical address according to claim 1 determines method, which is characterized in that in the control
After device processed obtains the voltage of corresponding contemplated electrical device and electronic device chain not between homopolarity, further include:
Proportion of utilization reduction voltage circuit is depressured the voltage scale.
4. multi-controller communication system physical address according to any one of claims 1 to 3 determines that method, feature exist
In, when the contemplated electrical device is diode socket device, the numerical value of the normal voltage and the diode socket device
The numerical value of the tube voltage drop of diode is equal in part.
5. a kind of multi-controller communication system physical address determining device, which is characterized in that including:Electronic device chain and control
Device;Wherein, the electronic device chain is composed in series by contemplated electrical device, and each contemplated electrical device corresponds to described in one
Controller;
The two poles of the earth correspondence of the electronic device chain is connect with power supply device the two poles of the earth;Wherein, the two poles of the earth of the power supply device are respectively
High potential pole and low potential pole;
The both ends of each controller are low with the high potential pole of corresponding contemplated electrical device and the electronic device chain respectively
The connection of potential pole, or connect respectively with the low potential pole of corresponding contemplated electrical device and the high potential pole of the electronic device chain
It connects, for obtaining the voltage of the contemplated electrical device and the electronic device chain not between homopolarity, utilizes the voltage and pre-
If normal voltage determines the address number of the contemplated electrical device and the physical address of the controller.
6. multi-controller communication system physical address determining device according to claim 5, which is characterized in that the electronics
Device chain further includes:
With the concatenated redundant electronic device of the contemplated electrical device.
7. multi-controller communication system physical address determining device according to claim 5, which is characterized in that further include:
The current-limiting resistance being connect respectively with the electronic device chain and the power supply device.
8. multi-controller communication system physical address determining device according to claim 5, which is characterized in that further include:
It is connect respectively with the MCU chip in the contemplated electrical device and the controller, the voltage scale is dropped
The ratio reduction voltage circuit of pressure.
9. according to the described in any item multi-controller communication system physical address determining devices of claim 5 to 8, feature exists
In equipped with memory and processor in the controller;Wherein, the memory is for storing computer program, the processing
Such as Claims 1-4 described in any item multi-controller communication system physicals are realized when device is for executing the computer program
Address determines the step of method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey
Sequence realizes such as Claims 1-4 described in any item multi-controller communication systems when the computer program is executed by processor
Physical address determines the step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811044892.XA CN108897708A (en) | 2018-09-07 | 2018-09-07 | A kind of multi-controller communication system physical address determines method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811044892.XA CN108897708A (en) | 2018-09-07 | 2018-09-07 | A kind of multi-controller communication system physical address determines method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108897708A true CN108897708A (en) | 2018-11-27 |
Family
ID=64359217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811044892.XA Pending CN108897708A (en) | 2018-09-07 | 2018-09-07 | A kind of multi-controller communication system physical address determines method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108897708A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110061732A (en) * | 2019-04-25 | 2019-07-26 | 东莞铭普光磁股份有限公司 | Support the level shifting circuit and level conversion method of SPI communication |
WO2020113389A1 (en) * | 2018-12-03 | 2020-06-11 | Astec International Limited | Switched mode power supplies with configurable communication addresses |
CN112327690A (en) * | 2020-10-30 | 2021-02-05 | 科华恒盛股份有限公司 | Multi-module physical address sampling system |
CN113721148A (en) * | 2020-05-25 | 2021-11-30 | 蓝谷智慧(北京)能源科技有限公司 | Addressing circuit system and energy management system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060164907A1 (en) * | 2003-07-22 | 2006-07-27 | Micron Technology, Inc. | Multiple flash memory device management |
CN102436192A (en) * | 2011-12-30 | 2012-05-02 | 华为技术有限公司 | Method and related device for sampling power module address |
CN103365225A (en) * | 2012-04-06 | 2013-10-23 | 精工爱普生株式会社 | Sensor system and sensor module identification method |
CN104636279A (en) * | 2015-02-10 | 2015-05-20 | 华为技术有限公司 | Address assignment identification method and address assignment identification circuit |
CN105808406A (en) * | 2014-12-31 | 2016-07-27 | 联想(北京)有限公司 | Monitoring method and electronic equipment |
CN105930278A (en) * | 2015-02-26 | 2016-09-07 | 爱思开海力士有限公司 | Data storage device and operating method thereof |
CN107368432A (en) * | 2017-07-14 | 2017-11-21 | 上海冉能自动化科技有限公司 | logical address allocation method |
CN107769250A (en) * | 2017-11-07 | 2018-03-06 | 华为数字技术(苏州)有限公司 | Physical address determines method, apparatus, equipment and storage medium |
CN208596373U (en) * | 2018-09-07 | 2019-03-12 | 东莞铭普光磁股份有限公司 | A kind of multi-controller communication system physical address determining device |
-
2018
- 2018-09-07 CN CN201811044892.XA patent/CN108897708A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060164907A1 (en) * | 2003-07-22 | 2006-07-27 | Micron Technology, Inc. | Multiple flash memory device management |
CN102436192A (en) * | 2011-12-30 | 2012-05-02 | 华为技术有限公司 | Method and related device for sampling power module address |
CN103365225A (en) * | 2012-04-06 | 2013-10-23 | 精工爱普生株式会社 | Sensor system and sensor module identification method |
CN105808406A (en) * | 2014-12-31 | 2016-07-27 | 联想(北京)有限公司 | Monitoring method and electronic equipment |
CN104636279A (en) * | 2015-02-10 | 2015-05-20 | 华为技术有限公司 | Address assignment identification method and address assignment identification circuit |
CN105930278A (en) * | 2015-02-26 | 2016-09-07 | 爱思开海力士有限公司 | Data storage device and operating method thereof |
CN107368432A (en) * | 2017-07-14 | 2017-11-21 | 上海冉能自动化科技有限公司 | logical address allocation method |
CN107769250A (en) * | 2017-11-07 | 2018-03-06 | 华为数字技术(苏州)有限公司 | Physical address determines method, apparatus, equipment and storage medium |
CN208596373U (en) * | 2018-09-07 | 2019-03-12 | 东莞铭普光磁股份有限公司 | A kind of multi-controller communication system physical address determining device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020113389A1 (en) * | 2018-12-03 | 2020-06-11 | Astec International Limited | Switched mode power supplies with configurable communication addresses |
US10958100B2 (en) | 2018-12-03 | 2021-03-23 | Astec International Limited | Switched mode power supplies with configurable communication addresses |
US11557917B2 (en) | 2018-12-03 | 2023-01-17 | Astec International Limited | Switched mode power supplies with configurable communication addresses |
CN110061732A (en) * | 2019-04-25 | 2019-07-26 | 东莞铭普光磁股份有限公司 | Support the level shifting circuit and level conversion method of SPI communication |
CN110061732B (en) * | 2019-04-25 | 2023-05-26 | 东莞铭普光磁股份有限公司 | Level conversion circuit and level conversion method supporting SPI communication |
CN113721148A (en) * | 2020-05-25 | 2021-11-30 | 蓝谷智慧(北京)能源科技有限公司 | Addressing circuit system and energy management system |
CN112327690A (en) * | 2020-10-30 | 2021-02-05 | 科华恒盛股份有限公司 | Multi-module physical address sampling system |
CN112327690B (en) * | 2020-10-30 | 2022-08-09 | 科华恒盛股份有限公司 | Multi-module physical address sampling system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108897708A (en) | A kind of multi-controller communication system physical address determines method and device | |
CN103107575B (en) | Charging method, mobile device, charging device and charging system | |
JP6176497B2 (en) | Control device for switching current and electronic device | |
CN104935072A (en) | Switch control method and apparatus for reserve power supply | |
CN106774801A (en) | A kind of hard disk is avoided the peak hour activation system | |
CN104701583A (en) | Battery charging method based on USB interface, adapter, electric equipment and system | |
WO2018149153A1 (en) | Flexible charging control system and method, and flexible charging system | |
WO2018072443A1 (en) | Charging method, apparatus, and data storage medium | |
CN110989818A (en) | PSU power supply method, system, equipment and computer readable storage medium | |
CN106340948B (en) | A kind of three power supply automatic switchover circuits | |
CN111475008A (en) | Control method for working mode of power supply module | |
CN208596373U (en) | A kind of multi-controller communication system physical address determining device | |
CN104092240A (en) | Method and system for recognizing connection mode of photovoltaic modules | |
CN204391741U (en) | Surge protection circuit | |
CN106301804B (en) | A kind of server that realizing Wake on LAN, system and method | |
CN104821575A (en) | Anti-misconnection output circuit for series batteries | |
CN106972558A (en) | A kind of charge control method and electronic equipment | |
CN106055062B (en) | A kind of charging management method and electronic equipment of USB interface | |
CN214479810U (en) | Battery management system and device | |
CN112485696B (en) | Power supply testing device and method and server | |
CN106033200A (en) | Control method and power supply equipment | |
CN202721690U (en) | Bus coupler | |
CN107425570A (en) | Charging method, system and the device of terminal device | |
CN202183077U (en) | Multi-source power system | |
CN205210256U (en) | A device for expanding chroma 3380p test platform's function |
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 |