Summary of the invention
The object of the present invention is to provide a kind of test device of communication performance, can accurately test out charger or
Total inorganic nitrogen, message real-time performance and the message consistency of BMS is the maintenance and dimension of charger and the communication performance of BMS
Shield offers convenience.
In order to solve the above technical problems, the present invention provides a kind of test device of communication performance, including processor, bus
Transceiver, data transmission bus and power module;
The bus transceiver is connect with the processor and the data transmission bus respectively, the data transmission bus
It is also connect with tested communication apparatus, the power module is connected to the processor;
The processor, for being set by the bus transceiver and the data transmission bus to the tested communication
Preparation sending test packet data, and be tested communication according to the back message data test that the tested communication apparatus is sent and set
Standby total inorganic nitrogen, message real-time performance and message consistency;
Wherein, the tested communication apparatus is charger or battery management system BMS.
Preferably, which further includes for selecting to send the test packet data type and/or control test
Beginning and stopping human-computer interaction module;
The human-computer interaction module is connected to the processor.
Preferably, which further includes for prompting the total inorganic nitrogen, the message real-time performance and described
The suggestion device of message consistency;
The suggestion device is connected to the processor.
Preferably, the suggestion device includes:
First cue module, for prompting the total inorganic nitrogen, the message real-time performance and the message consistency;
Second cue module, for prompting the waveform diagram of the total inorganic nitrogen under the control of the processor.
Preferably, the test data message includes forward data and reverse data.
Preferably, which further includes the measurement module of the charging current and charging voltage for measuring battery;
The measurement module is connect with the processor and the battery respectively;
Then whether within a preset range the processor is also used to judge the charging current and the charging voltage, and
It is prompted by the suggestion device.
Preferably, the measurement module is power analyzer.
Preferably, which further includes the protection for cutting off the charge circuit between the charger and the battery
Module;
The protective module is connect with the charge circuit and the processor respectively;
Then the processor is also used to when the charging voltage and/or the charging current be not in the preset range
It controls the protective module and cuts off the charge circuit.
Preferably, the protective module is relay.
Preferably, communication apparatus is tested described in the back message data test sent according to the tested communication apparatus
Total inorganic nitrogen, message real-time performance and message consistency specifically:
The data word joint number S for including according to i-th of messagei, message i number of fillers Tbmax, default bus position pass
Defeated time τbit, message i sending cycle TiAnd the calculation formula of total inorganic nitrogenIt calculates
Total inorganic nitrogen out;
If the practical sending time R of i-th of messageiLongest no more than i-th of message postpones time limit Di, then described tested
The message real-time performance of communication apparatus is qualified;
If tested communication apparatus can normally handle the test packet data, the message of the tested communication system is consistent
Property it is qualified.
The present invention provides a kind of test devices of communication performance, including processor, bus transceiver, data transmission bus
And power module;Bus transceiver is connect with processor and data transmission bus respectively, and data transmission bus also leads to tested
Equipment connection is interrogated, power module is connect with processor;Processor, for passing through bus transceiver and data transmission bus to quilt
It surveys communication apparatus and sends test packet data, and the tested communication of the back message data test sent according to tested communication apparatus is set
Standby total inorganic nitrogen, message real-time performance and message consistency;Wherein, being tested communication apparatus is charger or battery management
System BMS.
As it can be seen that processor can pass through bus transceiver and data in the test device of the communication performance in the present invention
Transfer bus sends test packet data to tested communication apparatus and is surveyed according to the back message data that tested communication apparatus is sent
Try total inorganic nitrogen, message real-time performance and the message consistency of tested communication apparatus, and total inorganic nitrogen, message real-time performance with
And message consistency is research significance bigger technical indicator when considering charging system communication performance, is provided through the invention
Test device can accurately assess charger or the communication performance of BMS, be the maintenance of charger and the communication performance of BMS
And maintenance offers convenience.
Specific embodiment
Core of the invention is to provide a kind of test device of communication performance, can accurately test out charger or
Total inorganic nitrogen, message real-time performance and the message consistency of BMS is the maintenance and dimension of charger and the communication performance of BMS
Shield offers convenience.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of structural schematic diagram of the test device of communication performance provided by the invention, including place
Manage device 1, bus transceiver 2, data transmission bus 3 and power module 4;
Bus transceiver 2 is connect with processor 1 and data transmission bus 3 respectively, and data transmission bus 3 also leads to tested
Equipment connection is interrogated, power module 4 is connect with processor 1;
Processor 1, for sending test report to tested communication apparatus by bus transceiver 2 and data transmission bus 3
Literary data, and according to total inorganic nitrogen, the message of the tested communication apparatus of back message data test that tested communication apparatus is sent
Real-time and message consistency;
Wherein, being tested communication apparatus is charger or BMS.
In view of the technical problem in above-mentioned background technique, in the embodiment of the present invention, processor 1 can be received and dispatched by bus
Device 2 and data transmission bus 3 are returned to tested communication apparatus transmission test packet data, and according to what tested communication apparatus was sent
Message data is answered to test total inorganic nitrogen, message real-time performance and the message consistency of tested communication apparatus, three above technology
Index is to consider the more great technical indicator of research significance of charger or BMS communication performance, by these three technologies
The judgement of index can completely determine the communication performance of tested communication apparatus, can tested communication apparatus maintenance and
It works in maintenance process, compensates for blank in the prior art.
Specifically, the test packet data that processor 1 is sent can be pre-set test packet data, tested
After journey starts, processor 1 just executes this process automatically, until going out the total of tested communication apparatus by back message data test
Until linear load rate, message real-time performance and message consistency.
Certainly, test packet data are other than pre-set, or staff passes through external equipment master
The test packet data of dynamic selection input, the embodiment of the present invention is it is not limited here.
Specifically, data transmission bus 3 can be multiple types, can between charger and BMS common CAN
(Controller Area Network, controller local area network) bus, correspondingly, bus transceiver 2 can be received using CAN
Device is sent out, certainly, data transmission bus 3 and bus transceiver 2 can also use other types, and the embodiment of the present invention is not done herein
It limits.
Specifically, power module 4 can be a plurality of types of power modules 4, it is therefore intended that electric energy is provided for processor 1,
The embodiment of the present invention is it is not limited here.
Wherein, the test device in the embodiment of the present invention is in addition to that can be tested communication apparatus according to back message data test
Total inorganic nitrogen, outside message real-time performance and message consistency, other technologies relevant to communication performance can also be tested
Index, the embodiment of the present invention is it is not limited here.
The present invention provides a kind of test devices of communication performance, including processor, bus transceiver, data transmission bus
And power module;Bus transceiver is connect with processor and data transmission bus respectively, and data transmission bus also leads to tested
Equipment connection is interrogated, power module is connect with processor;Processor, for passing through bus transceiver and data transmission bus to quilt
It surveys communication apparatus and sends test packet data, and the tested communication of the back message data test sent according to tested communication apparatus is set
Standby total inorganic nitrogen, message real-time performance and message consistency;Wherein, being tested communication apparatus is charger or battery management
System BMS.
As it can be seen that processor can pass through bus transceiver and data in the test device of the communication performance in the present invention
Transfer bus sends test packet data to tested communication apparatus and is surveyed according to the back message data that tested communication apparatus is sent
Try total inorganic nitrogen, message real-time performance and the message consistency of tested communication apparatus, and total inorganic nitrogen, message real-time performance with
And message consistency is research significance bigger technical indicator when considering charging system communication performance, is provided through the invention
Test device can accurately assess charger or the communication performance of BMS, be the maintenance of charger and the communication performance of BMS
And maintenance offers convenience.
On the basis of the above embodiments:
Embodiment as one preferred, the test device further include for select send test packet data type and/
Or control the beginning of test and the human-computer interaction module 5 of stopping;
Human-computer interaction module 5 is connect with processor 1.
Specifically, staff can different situations such as the type of tested communication apparatus according to different requirements, benefit
Specific test packet data type is selected to be sent to tested communication apparatus with the human-computer interaction module 5 in the embodiment of the present invention,
So that the communication performance to tested communication apparatus is tested, flexibility and independence are higher, and staff can also basis
The different situations generated in test control the beginning and stopping of test using human-computer interaction module 5.
Wherein, other than above-mentioned function, man-machine interface can also be configured the parameter of bus transceiver 2.
Specifically, human-computer interaction module 5 can be there are many type, such as man-machine interface or computer etc., the present invention is real
Apply example it is not limited here.
Embodiment as one preferred, the test device further include for prompt total inorganic nitrogen, message real-time performance with
And the suggestion device 6 of message consistency;
Suggestion device 6 is connect with processor 1.
Specifically, processor 1 can control suggestion device 6 and prompt total inorganic nitrogen, message real-time in the embodiment of the present invention
Property and message consistency, user can get the concrete outcome of the indices measured in real time by suggestion device 6, so as to
In further maintenance or maintenance work.
Specifically, the suggestion device 6 in the embodiment of the present invention can be multiple types, for example, display device or voice
Suggestion device 6 etc., the embodiment of the present invention is it is not limited here.
Wherein, suggestion device 6 can also to charging communication process in test packet data and back message data into
Row prompt, can also prompt the state of charging, and human-computer interaction module 5 can also be to the test report in charging communication process
Literary data and back message data are managed, and the embodiment of the present invention is it is not limited here.
Specifically, the data transmission bus 3 in the embodiment of the present invention may include USBCAN-2I, processing can connect
Device 1 and bus receiver, data transmission bus 3 can be connect with the other end of bus receiver and tested communication apparatus,
After test starts:
(1) parameter of bus receiver can be set by human-computer interaction module 5: selecting the port for needing to connect first,
It is defaulted as " 0 port ";Configuration of baud rate is consistent with tested communication equipment baud rate, simultaneously, " timer 0 " and " timer
1 " value can be revised as the corresponding value of selected baud rate automatically;It is respectively set as needed and checks and accepts code, mask off code, filtering mode etc.
Parameter.After carrying out parameter setting to bus receiver, left mouse button clicks " opening ", and the Close button becomes after equipment is opened
Bright, open button is graying.It clicks a " connect " button, bus receiver is successfully accessed tested communication system.
(2) selection of testing scheme.After bus receiver is connect with tested communication apparatus, testing scheme is selected.Selection
As analog end, such as when test device connect with charger, selection simulation BMS is communicated for one end of test device simulation, is tested and is filled
It sets and selects imitating charger communication when connecting with BMS.
(3) test packet data management.After selecting testing scheme for " simulation BMS communication ends ", by human-computer interaction circle
Face selects test packet data, and when carrying out message consistency positive test, " BMS forward data is popped up in left click " positive test "
Management " window;When carrying out message consistency negative testing, " management of BMS reverse data " window is popped up in left click " reverse data "
Mouthful.After selecting testing scheme for " imitating charger communication ends ", in human-computer interaction interface analogue communication data, when carrying out message
" management of Charger forward data " window is popped up in consistency positive test, left click " positive test ";When progress message consistency
When negative testing, left click " reverse data " pop-up " management of Charger reverse data " window, when progress test packet data edition
Afterwards, in the simulated test packet data of " sending buffer area " display.
(4) after the testing scheme of selection " analogue communication end ", " starting to test " starting is clicked in human-computer interaction interface and is surveyed
Process is tried, when charging process to be stopped, " stopping test " is clicked and then starts abort communication process.
(5) the transmitting-receiving message data in communication process can carry out real-time display in suggestion device 6.It can be by man-machine
Interactive module 5 saves communication data and error message in test process in the form of text.It can also empty in communication data
The communication data of viewing area.The filename that file can be saved with self-setting by human-computer interaction module 5 is regular, under default situations
File can be named with saving time when file.It can be with " charge " in suggestion device 6 in test process
It indicates that communications status is in the charging stage at this time, and the parameter configuration stage is completed.Suggestion device 6 can also prompt communication process
The error message and treatment measures of middle appearance.Human-computer interaction device can also empty the error message occurred in test process,
For follow-up test preparation.
(6) test software can be handled test data in real time, graphical display communication bus load factor: can be passed through
Human-computer interaction module 5 clicks " load factor " button and pops up load factor waveform diagram window.
(7) processor 1 can complete display, analysis to measurement data, and final test result is come out, is worked
Personnel can pass through the storing data as needed of human-computer interaction module 5.
Embodiment as one preferred, suggestion device 6 include:
First cue module 61, for prompting total inorganic nitrogen, message real-time performance and message consistency;
Second cue module 62, for prompting the waveform diagram of total inorganic nitrogen under the control of processor 1.
Specifically, in the embodiment of the present invention, total inorganic nitrogen can also be converted into waveform diagram by processor 1, and control the
Two cue modules 62 prompt the waveform diagram of total inorganic nitrogen, and user can get the waveform by the second cue module 62
The case where scheming, capable of being intuitive to see total inorganic nitrogen, allows user more promptly to recognize the total of tested communication apparatus
The integral status of linear load rate.
Certainly, other than total inorganic nitrogen is converted into waveform diagram and is prompted, the processor 1 in the embodiment of the present invention is also
Total inorganic nitrogen can be converted into other kinds of figure to prompt, the embodiment of the present invention is it is not limited here.
Embodiment as one preferred, test data message include forward data and reverse data.
Specifically, forward data refers to the test packet data of load communication protocol requirements, and reverse data refers to
The test packet data for not meeting communication protocol requirements, from meeting communication protocol requirements and do not meet communication protocol requirements two
Aspect tests the message consistency of tested communication apparatus, and test result can be made more accurate, comprehensively analyzed tested
The message consistency of communication apparatus.
Wherein, for the concrete type of forward data and reverse data, the embodiment of the present invention is it is not limited here.
Embodiment as one preferred, the test device further include the charging current and charging electricity for measuring battery
The measurement module 7 of pressure;
Measurement module 7 is connect with processor 1 and battery respectively;
Then whether within a preset range processor 1 is also used to judge charging current and charging voltage, and passes through prompt dress
6 are set to be prompted.
Specifically, charger is during charging the battery, it may occur that overvoltage, overcurrent, under-voltage or
The case where undercurrent, the measurement module 7 in the embodiment of the present invention can be located in the charging current and charging voltage for measuring battery
Charging current can be compared by reason device 1 with preset current range, and charging voltage and preset voltage range are compared
Compared with, whether in the normal range to judge charging current and charging voltage, and judging result is prompted by suggestion device 6,
User can learn rapidly whether charging current and charging voltage are normal, improve the safety of charging by suggestion device 6.
Certainly, in the embodiment of the present invention, charging current and charging voltage directly can also be passed through prompt dress by processor 1
It sets 6 to be prompted, whether in the normal range user can independently judge charging current and charging voltage, the embodiment of the present invention
It is not limited here.
Embodiment as one preferred, measurement module 7 are power analyzer.
Specifically, power analyzer has many advantages, such as that measurement result is accurate, powerful and cost performance is high.
Certainly, other than power analyzer, measurement module 7 can also be other types, and the embodiment of the present invention is not done herein
It limits.
Embodiment as one preferred, the test device further include for controlling the charge circuit between charger and battery
The protective module of on-off;
Protective module is connect with charge circuit and processor respectively;
Then processor be also used to charging voltage and/or charging current not within a preset range when control protective module cutting
Charge circuit.
In order to be preferably illustrated to the embodiment of the present invention, referring to FIG. 2, Fig. 2 is provided by the invention another logical
Believe performance test device structural schematic diagram, including processor 1, bus transceiver 2, data transmission bus 3, power module 4,
Human-computer interaction module 5, the suggestion device 6 including the first cue module 61 and the second cue module 62, measurement module 7 and guarantor
Protect module 8.
In view of when charging current and charging voltage are abnormal, user needs to find what suggestion device 6 prompted
Unusual condition and reply can also be made, these require the time, and there is very big uncertainty, in the embodiment of the present invention
Processor 1 can when judging charging current or charging voltage not within a preset range, control protective module 8 cutting charging
Circuit further increases safety to guarantee the safety of charging system.
Embodiment as one preferred, protective module 8 are relay.
Specifically, relay has many advantages, such as that cheap, structure is simple and is quick on the draw.
Certainly, other than relay, protective module 8 can also be other types, and the embodiment of the present invention is it is not limited here.
Embodiment as one preferred, the tested communication of the back message data test sent according to tested communication apparatus are set
Standby total inorganic nitrogen, message real-time performance and message consistency specifically:
The data word joint number S for including according to i-th of messagei, message i number of fillers Tbmax, default bus position pass
Defeated time τbit, message i sending cycle TiAnd the calculation formula of total inorganic nitrogenIt calculates
Total inorganic nitrogen out;
If the practical sending time R of i-th of messageiLongest no more than i-th of message postpones time limit Di, then it is tested communication
The message real-time performance of equipment is qualified;
If tested communication apparatus can normally handle test packet data, the message consistency for being tested communication system is qualified.
Specifically, can use the thought of " the worst-case response time analytic approach " in the embodiment of the present invention, analysis bus exists
The worst case being likely to occur at any time when work, if the test result under worst case is still able to satisfy communication system
Design requirement, then illustrate the communication system meet in practical work process traffic load rate requirement, it is considered herein that every
When the filler maximum of transmitting message, bus is in the transmission situation of worst.
Specifically, in charging system for electric automobile, communication information has its corresponding longest delay time limit, this most
In the long delay time limit, message, which is successfully received, calculates effective message, if message is not received within the longest delay time limit, is recognized
It is to send failure or invalid packet.
Specifically, for the message uniformity test for having developed traffic carried system " positive test " can be used
The testing scheme that " negative testing " combines.So-called " positive test " refers to using test software as tested communication system
Communication object, send message to tested communication system according to communication protocol requirements, test the back message of tested communication system
And communication process.If tested communication system can keep normal communication according to the requirement of communication protocol and test software, and at the same time
Meet the requirement of total inorganic nitrogen and message real-time performance, then it represents that the positive test of tested communication system consistency is qualified.If surveying
Examination software does not receive the reply message of communication system to be measured, or the content of reply message does not meet protocol requirement, then it represents that
The message consistency for surveying charging system is undesirable, needs to carry out application layer program improvement to it." negative testing " is also benefit
Use test software as the communication object of tested communication system, unlike positive test, test software is set in negative testing
Fixed communication process is not carried out according to communication protocol requirements, to test the change of the back message and communication process of tested communication system
Change situation.If the message consistency of tested communication system is good, tested communication system, which must can accurately identify, to be received
Non- protocol massages, should handle mistake in time, such as send a warning message or abort communication, to maintain the safe operation of charging system;
Otherwise it is assumed that tested communication system message consistency is unqualified.
Certainly, other than the method for above-mentioned test total inorganic nitrogen, message real-time performance and the message consistency enumerated, also
It can complete to test using other methods, the embodiment of the present invention is it is not limited here.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.It should also be noted that, in this theory
In bright book, relational terms such as first and second and the like be used merely to by an entity or operation with another entity or
Operation distinguishes, without necessarily requiring or implying between these entities or operation there are any this actual relationship or
Sequentially.Moreover, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that
Process, method, article or equipment including a series of elements not only includes those elements, but also including being not explicitly listed
Other element, or further include for elements inherent to such a process, method, article, or device.Do not limiting more
In the case where system, the element that is limited by sentence "including a ...", it is not excluded that including process, method, the object of the element
There is also other identical elements in product or equipment.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.