CN108268383A - Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium - Google Patents

Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium Download PDF

Info

Publication number
CN108268383A
CN108268383A CN201711385722.3A CN201711385722A CN108268383A CN 108268383 A CN108268383 A CN 108268383A CN 201711385722 A CN201711385722 A CN 201711385722A CN 108268383 A CN108268383 A CN 108268383A
Authority
CN
China
Prior art keywords
control equipment
addressing
currently
information
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711385722.3A
Other languages
Chinese (zh)
Inventor
王潘
郑旭涵
张小妹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Bak Battery Co Ltd
Original Assignee
Shenzhen Bak Battery 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 Shenzhen Bak Battery Co Ltd filed Critical Shenzhen Bak Battery Co Ltd
Priority to CN201711385722.3A priority Critical patent/CN108268383A/en
Publication of CN108268383A publication Critical patent/CN108268383A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

Include the present invention provides a kind of automatic addressing and data distributing method, main control device, from control equipment and computer readable storage medium, method:If receiving the addressing request of host computer transmission, from respectively being selected from control currently from control, to currently addressing message is sent from control, addressing message is included for currently from the logical address of control distribution and the battery information of required acquisition;If being received in preset time currently from the feedback information of control, feedback information is parsed, judges currently whether to address successfully from control and whether data distribution succeeds;Feedback information includes the addressed state information from control and the battery information from control acquisition;If addressing successfully and data being allocated successfully, respectively reselect currently from control, return to currently the step of addressing message is sent from control, until all complete addressing and data distribution from control from control from residue.The present invention can be automatically, from control distribution address and data, to simplify from control installation process in bus, being conducive to production line production.

Description

Automatic addressing and data distributing method, device, main control device, from control equipment and calculating Machine readable storage medium storing program for executing
Technical field
The invention belongs to field of computer technology more particularly to a kind of automatic addressing and data distributing method, device, master controls Equipment, from control equipment and computer readable storage medium.
Background technology
Cell management system of electric automobile employs graded manaegment system, and the system is by main control device, a Duo Gecong Control equipment and corresponding harness composition.Wherein, pass through CAN bus real-time Communication for Power between main control device and multiple equipment from control.Electricity Electrical automobile battery management system must first distribute each distribution from control equipment into row address and data before being taken into use.Currently The battery management system that batteries of electric automobile packet uses is using addressing method to each from control equipment distribution address and data, installation When need by distributed data from control equipment be installed on corresponding position, be unfavorable for production line in this way and produced.
Invention content
In view of this, the present invention provides a kind of automatic addressing and data distributing method, device, main control device, set from control Standby and computer readable storage medium, with solve it is above-mentioned using addressing method to from control equipment distribution address and data, during installation Need by distributed data from control equipment be installed on corresponding position, be unfavorable for the problem of production line is produced.
The first aspect of the present invention provides a kind of automatic addressing and data distributing method, including:
If receiving the addressing request of host computer transmission, from respectively being selected from control equipment currently from control equipment, to described Addressing message currently is sent from control equipment, the addressing message is included for the currently logical address from control equipment distribution and the institute The battery information that need to be acquired;
If received in preset time it is described currently from control equipment feedback information, parse the feedback information, sentence It is disconnected described currently whether to be addressed successfully from control equipment and whether data distribution succeeds;The feedback information is set described in including from control Standby addressed state information and the battery information from control equipment acquisition;
If addressing successfully and data being allocated successfully, respectively reselect currently from control equipment, return from control equipment from remaining Described the step of currently sending addressing message from control equipment is backed towards, until all complete addressing and data distribution from control equipment.
The second aspect of the present invention provides a kind of automatic addressing and data distributing method, including:
If receiving the addressing message of main control device transmission, the addressing message is parsed, the addressing message Including for currently from the logical address of control equipment distribution and the battery information of required acquisition;
Adopting for address calibration and battery information is carried out according to the battery information of the logical address and required acquisition that parse Collection;
After the completion of address calibration and the acquisition of battery information, corresponding feedback information, institute are sent to the main control device State the battery information that feedback information includes addressed state information and acquisition.
The third aspect of the present invention provides a kind of automatic addressing and data distribution device, including:
Address packet sending unit, if for receive host computer transmission addressing request, from respectively from control equipment in select It selects currently from control equipment, currently sends addressing message from control equipment to described, the addressing message includes being described currently from control The logical address of equipment distribution and the battery information of required acquisition;
Feedback information processing unit, if for received in preset time it is described currently from control equipment feedback information, Then parse the feedback information, judge it is described currently from control equipment whether address successfully and data distribution whether succeed;It is described Feedback information includes the addressed state information from control equipment and the battery information from control equipment acquisition;
If loop control unit for addressing successfully and data are allocated successfully, respectively selects again from remaining from control equipment It selects currently from control equipment, returns to described the step of currently sending addressing message from control equipment, until all complete from control equipment Into addressing and data distribution.
The fourth aspect of the present invention provides a kind of automatic addressing data distribution device, including:
Message receiving unit is addressed, if for receiving the addressing message of main control device transmission, to the addressing message It is parsed, the addressing message is included for currently from the logical address of control equipment distribution and the battery information of required acquisition;
Message process unit is addressed, for the battery information according to the logical address that parses and required acquisition into row address Calibration and the acquisition of battery information;
Feedback information transmitting element, for address calibration and battery information acquisition after the completion of, to the main control device Corresponding feedback information is sent, the feedback information includes the battery information of addressed state information and acquisition.
The fifth aspect of the present invention provides a kind of main control device, including memory, processor and is stored in described deposit In reservoir and the computer program that can run on the processor, which is characterized in that the processor performs the computer It is realized during program such as the step of above-mentioned first aspect the method.
Sixth aspect present invention provides one kind from control equipment, including memory, processor and is stored in the storage In device and the computer program that can run on the processor, which is characterized in that the processor performs the computer journey The step of above-mentioned second aspect the method is realized during sequence.
The seventh aspect of the present invention provides a kind of computer readable storage medium, and the computer readable storage medium is deposited Computer program is contained, wherein, it is realized when the computer program is executed by processor such as above-mentioned first aspect the method Step.
Eighth aspect present invention provides a kind of computer readable storage medium, the computer-readable recording medium storage There is computer program, which is characterized in that the computer program realizes above-mentioned second aspect the method when being executed by processor The step of.
The beneficial effects of the invention are as follows:
The present invention due to by using main control device when receiving addressing request, from respectively from control equipment in select currently from Equipment is controlled, currently logical address and data is distributed from control equipment to be described, is receiving currently the patrolling from control equipment feedback When information successfully being allocated successfully with data demarcate in volume address, selected in equipment currently from residue from controlling from controlling equipment progress again Logical address and data distribution, until all complete the distribution of address label fixed sum data from control equipment, so as to so that master control is set Standby is automatically multiple from control equipment distribution address and data in bus, simplifies the installation process from control equipment, is conducive to give birth to Producing line produces.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the topological diagram of main control device provided in an embodiment of the present invention when in use;
Fig. 2 is the realization flow diagram of automatic addressing and data distributing method provided in an embodiment of the present invention;
Fig. 3 is the realization flow diagram of the automatic addressing that another embodiment of the present invention provides and data distributing method;
Fig. 4 is the structure diagram of automatic addressing and data distribution device provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of the automatic addressing that another embodiment of the present invention provides and data distribution device;
Fig. 6 is the structure diagram of main control device provided in an embodiment of the present invention;
Fig. 7 is the structure diagram provided in an embodiment of the present invention from control equipment.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specifically The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 is the topological diagram of main control device provided in an embodiment of the present invention when in use.It only shows for convenience of description With relevant part of the embodiment of the present invention.
It is shown in Figure 1, the topological diagram include host computer 30, main control device 10 and it is multiple from control equipment 20.On described Position machine 30 is connect by CAN bus with main control device 10, and the main control device 10 is by CAN bus respectively with the multiple from control Equipment 20 connects, and the main control device 10 is also connect by address signal line with the multiple from control equipment 20.Wherein, it is described from Control equipment 20 is used to monitor the status information of the single battery corresponding to it.The status information of the single battery includes but unlimited The information such as voltage, temperature in single battery.
Based on topological diagram shown in FIG. 1, below in conjunction with specific embodiment to self-service addressing provided in an embodiment of the present invention It is described in detail with data distributing method:
It is shown in Fig. 2 Fig. 2 shows the realization flow of automatic addressing provided in an embodiment of the present invention and data distributing method In embodiment, the executive agent of flow is the main control device 10 in Fig. 1.Details are as follows for the realization flow of this method:
Step S201, if receive host computer transmission addressing request, from respectively from control equipment 20 in select currently from control Equipment 20 currently sends addressing message to described from control equipment 20, and the addressing message is included to be described currently from control equipment 20 The logical address of distribution and the battery information of required acquisition.
In the present embodiment, addressing request is sent to the main control device 10 by CAN bus from the host computer 30, institute Main control device 10 is stated after the addressing request is received, is selected from each equipment 20 from control being connect with it by CAN bus It selects currently from control equipment 20.Wherein, by CAN bus connect with the main control device 10 it is each from control equipment 20 in sequence Be numbered, the main control device 10 according to respectively from control equipment 20 number according to sequence from small to large successively from it is described respectively from It is selected in control equipment 20 currently from control equipment 20.
It in the present embodiment, can will be with institute after the main control device 10 has selected current equipment 20 from control to be calibrated It states the level of I/O port currently connected from control equipment 20 to draw high, currently to send addressing message from control equipment 20 to described.Wherein, The addressing message is included to be described currently from the logical address of the control distribution of equipment 20 and the battery information of required acquisition, described The logical address included in the addressing message and institute currently can be being parsed after receiving the addressing message from control equipment 20 Then the logical address parsed is demarcated as the logical address of itself, and according to required acquisition by the battery information that need to be acquired Battery information carries out the acquisition of data.
In the present embodiment, the battery information includes but not limited to the temperature of battery, current information etc..It is described currently from It, can be according to the institute parsed after control equipment 20 parses the main control device 10 as the battery information data of acquisition needed for its distribution The battery information that need to be acquired, is monitored battery.
Step S202 if being received in preset time described currently from the feedback information of control equipment, is parsed described anti- Feedforward information, judge it is described currently from control equipment whether address successfully and data distribution whether succeed;The feedback information includes The addressed state information from control equipment and the battery information from control equipment acquisition.
In the present embodiment, the main control device judges described current according to the addressed state information from control equipment Whether success is addressed from control equipment.
In the present embodiment, the addressed state includes original state, calibration state, demarcates successfully and demarcate failure. Described from control equipment 20, addressed state information is original state before logical address calibration is not carried out, is calibration in calibration process State, failure two states are demarcated successfully or demarcated to addressed state information is after the completion of calibration.The addressed state information To be used to represent the information of the addressed state from control equipment 20.Preferably, in the present embodiment, addressed state information includes four Kind:00b, 01b, 10b and 11b, wherein 00b represent original state, and 01b expressions are marking, and 10b expressions mark successfully, 11b tables Indicating note failure.
In the present embodiment, the main control device 10 is parsing the addressed state information fed back from control equipment 20 Afterwards, you can described currently from control equipment to obtain according to the correspondence between preset addressed state information and addressed state 20 current addressed state, so judge it is described currently from control equipment 20 logical address whether demarcate success.
In the present embodiment, the main control device 10 is parsing the battery information currently reported from control equipment 20 Afterwards, it can judge whether described currently distributed from the data of control equipment 20 succeeds according to the battery information, specifically:The master control Equipment 10 can be sent to according to before it is described currently from control equipment 20 distribution data come judge its acquire battery information whether Correctly, if correctly, data are allocated successfully;Otherwise, data distribution failure.Such as:In a specific implementation example, if the master Control equipment 10 is acquisition battery voltage information and temperature information for the data currently distributed from control equipment 20;It is if described current From control equipment 20 return be battery current information and temperature information, then illustrate data distribution failure;It is if described currently from control What equipment 20 returned is the information of voltage and temperature information of battery, then data are allocated successfully.
In the present embodiment, the value range of the preset time is 0~5s.Preferably, in the present embodiment, it is described pre- If the time is 4s.
Step S203, if addressing successfully and data are allocated successfully, from it is remaining respectively reselected from control equipment currently from Control equipment, return to it is described currently from control equipment send addressing message the step of, until it is all from control equipment complete addressing and Data are distributed.
In the present embodiment, if described currently address successfully and data are allocated successfully from control equipment 20, the master control is set Standby 10 according to respectively from the number order of control equipment 20 select it is next from control equipment 20 as currently from controlling equipment 20, and by described in Addressing message in logical address add after one to reselect it is current from control equipment 20 send the addressing message, repeat Above-mentioned flow until after the completion of all address label fixed sum data distribution from control equipment 20, terminates flow.
Preferably, in the present embodiment, it is further included after step S202:
If addressing failure or data distribution failure are returned to the step that addressing message is currently sent from control equipment Suddenly, to described currently addressing message is sent from control equipment again.
In the present embodiment, if described currently lose from the addressed state information that control equipment 20 returns for logical address calibration It loses, then currently sends addressing message from control equipment 20 to described again, to carry out address calibration from control equipment 20 to described again. The reliability of automatic addressing can be improved in this way.
In the present embodiment, if the main control device 10 divides the battery information currently returned from control equipment 20 After analysis, the conclusion obtained is data distribution failure, then the main control device 10 is currently sought again to described from the control transmission of equipment 20 Location message, to be that the current device distributes data again.The reliability of data distribution can be improved in this way.
Further, in the present embodiment, it is described currently to be set from control if after repeatedly transmission addressing message reaches preset times Standby 20 remain as addressing failure or data distribution failure, then the output prompt message from control 20 failure of equipment.Wherein, institute Stating preset times can be preset by related personnel.Preferably, in the present embodiment, the preset times are 3 times.
Preferably, in the present embodiment, it is further included after step S201:
If not received in preset time described currently from the feedback information of control equipment, export and described currently set from control The fault cues information of standby addressing time-out.
In the present embodiment, if the main control device 10 to it is described currently from control equipment 20 send addressing message after, Do not received in the preset time it is described currently from control equipment 20 feedback information, then illustrate addressing exception, it is described to be set from control Standby 20 may break down, and the main control device 10 can export corresponding fault cues information at this time, so that related personnel is timely It takes measures, ensures that addressing is smoothed out with what data were distributed.
Above as can be seen that automatic addressing provided in this embodiment and data distributing method are due to by using main control device 10 when receiving addressing request, from respectively selecting to be currently described from equipment 20 is controlled from control equipment 20 currently from control equipment 20 Logical address and data are distributed, are successfully distributed receiving described currently demarcated from the logical address of the control feedback of equipment 20 with data During successful information, select currently to carry out logical address and data distribution from control equipment 20 again from control equipment 20 from residue, Until all complete the distribution of address label fixed sum data from control equipment 20, so as to so that main control device 10 is in bus automatically It is multiple to distribute address and data from control equipment 20, the installation process from control equipment 20 is simplified, is conducive to production line production.
Fig. 3 is the realization flow diagram of the automatic addressing that another embodiment of the present invention provides and data distributing method. In embodiment illustrated in fig. 3, the executive agent of flow in Fig. 1 from control equipment 20.Details are as follows for the realization flow of this method:
Step S301 if receiving the addressing message of main control device transmission, parses the addressing message, described Message is addressed to include for currently from the logical address of control equipment distribution and the battery information of required acquisition.In the present embodiment, if The addressing message that the transmission of main control device 10 is received from control equipment 20 can then parse the addressing message, To obtain in the addressing message as the logical address of its distribution and the battery information of required acquisition.
Step S302 carries out address calibration and battery according to the battery information of the logical address and required acquisition parsed The acquisition of information.
In the present embodiment, it is described from equipment 20 is controlled after the logical address in parsing the addressing message, oneself can be incited somebody to action The default value of body address is revised as the logical address.It is described from control equipment 20 when not carrying out logical address calibration, address It is defaulted as 0.
In the present embodiment, the addressed state includes original state, calibration state, demarcates successfully and demarcate failure. Described from control equipment 20, addressed state information is original state before logical address calibration is not carried out, the addressing shape after the completion of calibration Failure two states are demarcated successfully or demarcated to state information is.
The addressed state information is the information for representing the addressed state from control equipment 20.Preferably, in this implementation In example, addressed state information includes four kinds:00b, 01b, 10b and 11b, wherein 00b represent original state, and 01b expressions are being marked Note, 10b expressions mark successfully, and 11b represents label failure.
In the present embodiment, it is described from equipment 20 is controlled after logical address calibration is completed, it determines whether to demarcate successfully, root It is judged that result by corresponding to it addressed state change after calibrated addressed state.
In the present embodiment, the battery information from the required acquisition in data distribution information is parsed of control equipment 20 Afterwards, i.e., can corresponding battery information be acquired according to analysis result, wherein the battery information includes but not limited to the temperature of battery Information, information of voltage and current information etc..
Step S303 after the completion of address calibration and the acquisition of battery information, is sent corresponding anti-to the main control device Feedforward information, the feedback information include the battery information of addressed state information and acquisition.
In the present embodiment, it is described from control equipment logical address calibration after the completion of and battery information acquisition after the completion of, The battery information of itself updated addressed state information and acquisition can be back to main control device so that main control device according to Whether its feedback information returned judges currently to address successfully from control equipment and whether data distribution is correct.The feedback information Form be " logical address:Addressed state information, the battery information of acquisition ".For example, in a specific implementation example, it is described anti- Feedforward information is " xxid:10b, 5v, 10 DEG C ", wherein xxid represent the logical address from control equipment, and 10b expressions address successfully, 5v Represent the information of voltage from the control collected battery of equipment, 10 DEG C of temperature informations represented from the control collected battery of equipment.
Above as can be seen that self-service addressing provided in this embodiment exists with data distributing method due to using from control equipment 20 After receiving addressing message, logical address and data in addressing message are parsed, and the logical address parsed is demarcated as The logical address of itself;After the distribution data for receiving and parsing through out the transmission of main control device 10, carried out according to the distribution data The acquisition of battery information, and collected battery information is back to main control device 10, judge its data point for main control device 10 With whether correct, so as to sample can make it is described realize automatic addressing from control equipment 20, simplify the installation process from control equipment 20, Be conducive to production line production.
Fig. 4 is the structure diagram of automatic addressing and data distribution device provided in an embodiment of the present invention.The device application In 10 side of main control device, part related to the present embodiment illustrate only for convenience of description.
Shown in Figure 4, automatic addressing provided in this embodiment includes with data distribution device 4:
The third aspect of the present invention provides a kind of automatic addressing and data distribution device 4, including:
Address packet sending unit 41, if for receive host computer transmission addressing request, from respectively from control equipment in Selection currently from control equipment, to it is described currently from control equipment send addressing message, it is described addressing message include for it is described currently from Control the logical address of equipment distribution and the battery information of required acquisition;
Feedback information processing unit 42, if described currently from the feedback letter of control equipment for being received in preset time Breath, then parse the feedback information, judge it is described currently from control equipment whether address successfully and data distribute whether succeed;Institute It states feedback information and includes the addressed state information from control equipment and the battery information from control equipment acquisition;
Loop control unit 43, if for addressing successfully and data are allocated successfully, from it is remaining respectively from control equipment again Selection currently from control equipment, is returned to described the step of currently sending addressing message from control equipment, until all equal from control equipment Complete addressing and data distribution.
Preferably, the automatic addressing is further included with data distribution device 4:
It addresses message and repeats transmitting element 44, if for addressing failure or data distribution failure, return and work as to described It is preceding to send the step of addressing message from control equipment, again currently addressing message is sent from control equipment to described.
Preferably, the automatic addressing is further included with data distribution device 4:
Fault cues unit 45, if for do not received in preset time it is described currently from control equipment feedback information, It then exports described currently from the fault cues information of control equipment addressing time-out.
It should be noted that each unit in above device provided in an embodiment of the present invention, due to the method for the present invention Embodiment is based on same design, and the technique effect brought is identical with the method for the present invention embodiment, and particular content can be found in this hair Narration in bright embodiment of the method, details are not described herein again.
Thus, it will be seen that automatic addressing provided in this embodiment and data distribution device are also due to by using master Equipment 10 is controlled when receiving addressing request, from respectively being selected from control equipment 20 currently from control equipment 20, to be described currently from control Equipment 20 distributes logical address and data, and successfully sum number is demarcated receiving the logical address currently fed back from control equipment 20 During according to the information being allocated successfully, select currently to carry out logical address and data from control equipment 20 again from control equipment 20 from residue Distribution, until all complete the distribution of address label fixed sum data from control equipment 20, so as to so that main control device 10 is automatically total It is multiple from control equipment 20 distribution address and data on line, the installation process from control equipment 20 is simplified, is conducive to production line life Production.
Fig. 5 is the structure diagram of the automatic addressing that another embodiment of the present invention provides and data distribution device.The device Applied to from 20 side of control equipment, part related to the present embodiment illustrate only for convenience of description.
It is shown in Figure 5, automatic addressing provided in this embodiment and data distribution device 5, which is characterized in that including:
Message receiving unit 51 is addressed, if for receiving the addressing message of main control device transmission, the addressing is reported Text is parsed, and the addressing message is included for currently from the logical address of control equipment distribution and the battery information of required acquisition;
Message process unit 52 is addressed, for carrying out ground according to the logical address and the battery information of required acquisition that parse Location is demarcated and the acquisition of battery information;
Feedback information transmitting element 53, for after the completion of address calibration and the acquisition of battery information, being set to the master control Preparation send corresponding feedback information, and the feedback information includes the battery information of addressed state information and acquisition.
It should be noted that each unit in above device provided in an embodiment of the present invention, due to the method for the present invention Embodiment is based on same design, and the technique effect brought is identical with the method for the present invention embodiment, and particular content can be found in this hair Narration in bright embodiment of the method, details are not described herein again.
Above as can be seen that it is provided in this embodiment it is self-service addressing with data distribution device also due to using from control equipment 20 after addressing message is received, and parses the logical address in addressing message, and the logical address parsed is demarcated as certainly The logical address of body;After the distribution data for receiving the transmission of main control device 10, battery information is carried out according to the distribution data Acquisition, and collected battery information is back to main control device 10, whether just judges the distribution of its data for main control device 10 Really, so as to sample can make it is described realize automatic addressing from control equipment 20, simplify the installation process from control equipment 20, be conducive to give birth to Producing line produces.
It should be understood that the size of the serial number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without coping with the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
Fig. 6 is the schematic diagram of main control device 10 provided in an embodiment of the present invention.As shown in fig. 6, the master control of the embodiment is set Standby 10 include:It processor 100, memory 101 and is stored in the memory 101 and can be transported on the processor 100 Capable computer program 102.The processor 100 realizes that method shown in above-mentioned Fig. 2 is implemented when performing the computer program 102 Step in example, such as step S201 to S203 shown in Fig. 2.Alternatively, the processor 100 performs the computer program The function of each module/unit in above-mentioned each device embodiment, such as the function of module 41 to 43 shown in Fig. 4 are realized when 102.
Illustratively, the computer program 102 can be divided into one or more module/units, it is one or Multiple module/the units of person are stored in the memory 101, and are performed by the processor 100, to complete the present invention.Institute It can be the series of computation machine program instruction section that can complete specific function to state one or more module/units, the instruction segment For describing implementation procedure of the computer program 102 in the main control device 10/ from equipment 20 is controlled.For example, the meter Calculation machine program 102 can be divided into addressing packet sending unit 41, feedback information processing unit 42 and loop control unit 43, wherein each unit concrete function is as follows:
Address packet sending unit 41, if for receive host computer transmission addressing request, from respectively from control equipment in Selection currently from control equipment, to it is described currently from control equipment send addressing message, it is described addressing message include for it is described currently from Control the logical address of equipment distribution and the battery information of required acquisition;
Feedback information processing unit 42, if described currently from the feedback letter of control equipment for being received in preset time Breath, then parse the feedback information, judge it is described currently from control equipment whether address successfully and data distribute whether succeed;Institute It states feedback information and includes the addressed state information from control equipment and the battery information from control equipment acquisition;
Loop control unit 43, if for addressing successfully and data are allocated successfully, from it is remaining respectively from control equipment again Selection currently from control equipment, is returned to described the step of currently sending addressing message from control equipment, until all equal from control equipment Complete addressing and data distribution.
Fig. 7 is the schematic diagram provided in an embodiment of the present invention from control equipment 20.As shown in fig. 7, the embodiment is set from control Standby 20 include:It processor 200, memory 201 and is stored in the memory 201 and can be transported on the processor 200 Capable computer program 202.The processor 200 realizes that method shown in above-mentioned Fig. 3 is implemented when performing the computer program 202 Step in example, such as step S301 to S303 shown in Fig. 3.Alternatively, the processor 200 performs the computer program The function of each module/unit in above-mentioned each device embodiment, such as the function of module 51 to 53 shown in Fig. 5 are realized when 202.
Illustratively, the computer program 202 can be divided into one or more module/units, it is one or Multiple module/the units of person are stored in the memory 201, and are performed by the processor 200, to complete the present invention.Institute It can be the series of computation machine program instruction section that can complete specific function to state one or more module/units, the instruction segment For describing implementation procedure of the computer program 202 in the main control device 10/ from equipment 20 is controlled.For example, the meter Calculation machine program 202 can be divided into addressing message receiving unit 51, addressing message process unit 52 and feedback information and send Unit 53, wherein each unit concrete function are as follows:
Message receiving unit 51 is addressed, if for receiving the addressing message of main control device transmission, the addressing is reported Text is parsed, and the addressing message is included for currently from the logical address of control equipment distribution and the battery information of required acquisition;
Message process unit 52 is addressed, for carrying out ground according to the logical address and the battery information of required acquisition that parse Location is demarcated and the acquisition of battery information;
Feedback information transmitting element 53, for after the completion of address calibration and the acquisition of battery information, being set to the master control Preparation send corresponding feedback information, and the feedback information includes the battery information of addressed state information and acquisition.
Alleged processor 100/200 can be central processing unit (Central Processing Unit, CPU), may be used also To be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 101/201 can be internal storage unit of the main control device 10/ from control equipment 20, such as main Equipment 10/ is controlled from the hard disk or memory of control equipment 20.The memory 101 can also be the main control device 10/ from control equipment 20 External memory equipment, such as the plug-in type hard disk that the main control device 10/ is equipped with from control equipment 20, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Into One step, the memory 101 can also both include the main control device 10/ from the internal storage unit of control equipment 20 and also including External memory equipment.The memory 101/201 is used to store the computer program and other journeys needed for the terminal Sequence and data.The memory 101/201 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that each unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above system The specific work process of middle unit, module can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function can have other dividing mode in actual implementation, such as Multiple units or component may be combined or can be integrated into another system or some features can be ignored or does not perform.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or the INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and be independent product sale or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter can include:Can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of automatic addressing and data distributing method, which is characterized in that including:
If receiving the addressing request of host computer transmission, from respectively being selected from control equipment currently from control equipment, to described current Addressing message is sent from control equipment, and the addressing message includes currently from the logical address of control equipment distribution and required adopting to be described The battery information of collection;
If received in preset time it is described currently from control equipment feedback information, parse the feedback information, judge institute State currently whether equipment addresses successfully and whether data distribution succeeds from controlling;The feedback information is including described in from control equipment Addressed state information and the battery information from control equipment acquisition;
If addressing successfully and data being allocated successfully, respectively reselected from control equipment currently from control equipment from remaining, return to Described the step of currently sending addressing message from control equipment, until all complete addressing and data distribution from control equipment.
2. automatic addressing as described in claim 1 and data distributing method, which is characterized in that if described be inscribed in preset time Receive it is described currently from control equipment feedback information, then parse the feedback information, judge it is described currently from control equipment whether seek It is further included after whether location success and data distribution are successful:
If addressing failure or data distribution failure are returned to described the step of currently sending addressing message from control equipment, weight Newly currently addressing message is sent from control equipment to described.
3. automatic addressing as described in claim 1 and data distributing method, which is characterized in that if receiving addressing request, From respectively from control equipment in select currently from control equipment, to it is described currently from control equipment send addressing message after further include:
If do not received in preset time it is described currently from control equipment feedback information, export it is described currently from control equipment seek The fault cues information of location time-out.
4. a kind of automatic addressing and data distributing method, which is characterized in that including:
If receiving the addressing message of main control device transmission, the addressing message is parsed, the addressing message includes For currently from the logical address of control equipment distribution and the battery information of required acquisition;
Address calibration and the acquisition of battery information are carried out according to the battery information of the logical address and required acquisition parsed;
After the completion of address calibration and the acquisition of battery information, corresponding feedback information is sent to the main control device, it is described anti- Feedforward information includes the battery information of addressed state information and acquisition.
5. a kind of automatic addressing and data distribution device, which is characterized in that including:
Packet sending unit is addressed, if for receiving the addressing request of host computer transmission, from respectively selection is worked as from control equipment It is preceding from control equipment, to it is described currently from control equipment send addressing message, it is described addressing message include for it is described currently from control equipment The logical address of distribution and the battery information of required acquisition;
Feedback information processing unit if described currently from the feedback information of control equipment for being received in preset time, solves Analyse the feedback information, judge it is described currently from control equipment whether address successfully and data distribution whether succeed;The feedback Information includes the addressed state information from control equipment and the battery information from control equipment acquisition;
If loop control unit for addressing successfully and data are allocated successfully, is worked as from remaining respectively reselected from control equipment It is preceding from control equipment, return to it is described currently from control equipment send addressing message the step of, until it is all from control equipment complete to seek Location and data distribution.
6. a kind of automatic addressing data distribution device, which is characterized in that including:
Message receiving unit is addressed, if for receiving the addressing message of main control device transmission, the addressing message is carried out Parsing, the addressing message are included for currently from the logical address of control equipment distribution and the battery information of required acquisition;
Message process unit is addressed, for carrying out address calibration according to the logical address and the battery information of required acquisition that parse And the acquisition of battery information;
Feedback information transmitting element, for after the completion of address calibration and the acquisition of battery information, being sent to the main control device Corresponding feedback information, the feedback information include the battery information of addressed state information and acquisition.
7. a kind of main control device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claims 1 to 3 when performing the computer program The step of any one the method.
8. a kind of from control equipment, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized as claimed in claim 4 when performing the computer program The step of method.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of realization such as any one of claims 1 to 3 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In the step of computer program realizes method as claimed in claim 4 when being executed by processor.
CN201711385722.3A 2017-12-20 2017-12-20 Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium Pending CN108268383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711385722.3A CN108268383A (en) 2017-12-20 2017-12-20 Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711385722.3A CN108268383A (en) 2017-12-20 2017-12-20 Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108268383A true CN108268383A (en) 2018-07-10

Family

ID=62772377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711385722.3A Pending CN108268383A (en) 2017-12-20 2017-12-20 Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108268383A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109100978A (en) * 2018-09-20 2018-12-28 中航锂电技术研究院有限公司 A kind of setting of battery management system address and method of calibration
CN110290231A (en) * 2019-06-24 2019-09-27 广东美的暖通设备有限公司 Distribution method, distributor, central air conditioner system and storage medium
CN111190850A (en) * 2020-01-06 2020-05-22 盐城国投中科新能源科技有限公司 BMS automatic addressing method
CN111431785A (en) * 2020-06-11 2020-07-17 南京北路自动化系统有限责任公司 CAN bus node ad hoc network method
CN112771753A (en) * 2018-09-21 2021-05-07 罗伯特·博世有限公司 Battery system and method for operating a battery system
CN113014686A (en) * 2021-02-07 2021-06-22 上海埃斯凯变压器有限公司 Method and system for automatically addressing multiple devices and electronic device
CN115865866A (en) * 2022-12-13 2023-03-28 厦门海辰储能科技股份有限公司 Address allocation method and device
CN116007201A (en) * 2022-12-14 2023-04-25 珠海格力电器股份有限公司 Control method for pairing internal and external machines, water heater and computer readable storage medium
CN117499369A (en) * 2023-12-28 2024-02-02 杭州华塑科技股份有限公司 Automatic addressing method and device for battery management system and battery management system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109100978A (en) * 2018-09-20 2018-12-28 中航锂电技术研究院有限公司 A kind of setting of battery management system address and method of calibration
CN112771753A (en) * 2018-09-21 2021-05-07 罗伯特·博世有限公司 Battery system and method for operating a battery system
CN110290231A (en) * 2019-06-24 2019-09-27 广东美的暖通设备有限公司 Distribution method, distributor, central air conditioner system and storage medium
CN111190850A (en) * 2020-01-06 2020-05-22 盐城国投中科新能源科技有限公司 BMS automatic addressing method
CN111431785A (en) * 2020-06-11 2020-07-17 南京北路自动化系统有限责任公司 CAN bus node ad hoc network method
CN113014686A (en) * 2021-02-07 2021-06-22 上海埃斯凯变压器有限公司 Method and system for automatically addressing multiple devices and electronic device
CN115865866A (en) * 2022-12-13 2023-03-28 厦门海辰储能科技股份有限公司 Address allocation method and device
CN115865866B (en) * 2022-12-13 2023-12-22 厦门海辰储能科技股份有限公司 Address allocation method and device
WO2024125122A1 (en) * 2022-12-13 2024-06-20 厦门海辰储能科技股份有限公司 Address allocation method and apparatus
CN116007201A (en) * 2022-12-14 2023-04-25 珠海格力电器股份有限公司 Control method for pairing internal and external machines, water heater and computer readable storage medium
CN117499369A (en) * 2023-12-28 2024-02-02 杭州华塑科技股份有限公司 Automatic addressing method and device for battery management system and battery management system
CN117499369B (en) * 2023-12-28 2024-03-26 杭州华塑科技股份有限公司 Automatic addressing method and device for battery management system and battery management system

Similar Documents

Publication Publication Date Title
CN108268383A (en) Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium
DE112011105767B4 (en) network power consumer device
CN108365967A (en) Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter
CN107438833A (en) A kind of data-updating method, device, system and server
CN106760969A (en) A kind of intelligent bicycle lock low battery alarm method, device and intelligent bicycle lock
CN109813982A (en) Charging pile down Monitor Unit method, apparatus and charging pile manage platform, storage medium
CN107734202B (en) Breakpoint calling-out method, electronic device and computer readable storage medium
CN102842939A (en) Battery management system and battery management method
CN109218080A (en) A kind of method, monitoring system and the terminal device of automatic drafting network topology architecture
CN109064104A (en) Material equipment management method, system and terminal device
CN110021792A (en) Charge control method, device, terminal device and computer storage medium
CN103164232B (en) Update method, system and the computer of intelligent terminal operation system
CN106017514B (en) Air conditioner charging system
CN108183814A (en) The malfunction elimination method and apparatus of the communication channel of power information acquisition system
CN114528951A (en) Distribution network line single line diagram abnormity diagnosis and analysis method, system and device
CN108228785A (en) The check method and check device of device parameter
CN110620674B (en) Configuration method of monitoring system and computer equipment
CN110135814A (en) The correlating method of BIM and project data, system and terminal device
CN108806071A (en) Self-service dispenser management method, self-service dispenser managing device and electronic equipment
CN116698446A (en) Whole vehicle electrostatic current testing method, device, system and storage medium
CN114285692B (en) Communication control system, identity determination method, distribution method and equipment
CN109614285A (en) Configuring management method for comprehensively modularized avionics system
CN104779621A (en) Intelligent decision making aiding method for circuit breaking power supply limitation
CN109066419B (en) Diagnosis method and system for secondary equipment maintenance safety measure operation and terminal equipment
CN114900429A (en) Equipment communication parameter configuration method and system

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