Summary of the invention
In view of this; The invention provides a kind of power consumption test system of power information acquisition system communication module, in order to solve the technical matters that accurately to measure the power consumption number of power information acquisition system communication module under the airborne wave communication stationary state of carrier communication emission state.
For realizing above-mentioned purpose, the present invention provides following technical scheme:
A kind of power consumption test system of power information acquisition system communication module comprises measurement module and control module, wherein:
Said measurement module, current value, the magnitude of voltage of tested communication module under carrier communication emission state and carrier communication stationary state that is used for respectively needs are carried out power consumption test carries out data sampling;
Said control module; Be used to receive the interactive instruction of user's input; Said measurement module is carried out the measurement control of data sampling according to said interactive instruction; Read the sampled data under carrier communication emission state and carrier communication stationary state of the tested communication module of said measurement module measurement, and calculate the power consumption number of the said tested communication module of acquisition under carrier communication emission state and carrier communication stationary state in the sampled data under carrier communication emission state and the carrier communication stationary state according to said tested communication module.
Said system, preferably, said system also comprises power module:
Said power module is used to said measurement module and said control module provides working power.
Said system, preferably, said system also comprises application module:
Said application module is used to receive the interactive instruction of user's input, and said interactive instruction is sent to the measurement control that said control module realizes said measurement module is carried out data sampling, receives sampled data and power consumption number that said control module is sent.
Said system, preferably, said system also comprises memory module;
Said memory module, the sampled data and the power consumption number that are used for said control module is obtained tested communication module are stored.
Said system, preferably, said system also comprises potentiometer:
Said potentiometer is used to regulate the WV of said tested communication module under carrier communication emission state and carrier communication stationary state.Can know through above-mentioned technical scheme; Compared with prior art; The invention provides a kind of power consumption test system of power information acquisition system communication module, this system receives the exchange instruction of user's input, through current value and the magnitude of voltage of tested communication module under carrier communication emission state and carrier communication stationary state carried out data sampling; Obtain sampled data, and obtain the power consumption number of tested communication module under carrier communication emission state and carrier communication stationary state according to said sampling.Can measure electric current, the real time data of voltage under above-mentioned two kinds of duties of said communication module thus exactly through power consumption test provided by the invention system; Obtain its power consumption number, thereby can't study the carrier chip performance and assessment provides data support and scientific basis exactly for power industry.
Certainly, arbitrary product of enforcement the application might not reach above-described all advantages simultaneously.
Embodiment
To combine the accompanying drawing among the application embodiment below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the application's protection.
Embodiment one
Be depicted as power consumption test system embodiment one structural representation of a kind of power information acquisition system communication module provided by the invention with reference to figure 1, said system comprises measurement module 101 and control module 102, wherein:
Said measurement module 101, current value, the magnitude of voltage of tested communication module under carrier communication emission state and carrier communication stationary state that is used for respectively needs are carried out power consumption test carries out data sampling.
Wherein, concentrator carrier communication module, collector carrier communication module and any communication module of electric energy meter carrier communication module in the communication module of the said tested communication module power information acquisition system that can be set to test.
Said control module 102; Be used to receive the interactive instruction of user's input; Said measurement module 101 is carried out the measurement control of data sampling according to said interactive instruction; Read the sampled data under carrier communication emission state and carrier communication stationary state of the tested communication module of said measurement module 101 measurements, and calculate the power consumption number of the said tested communication module of acquisition under carrier communication emission state and carrier communication stationary state in the sampled data under carrier communication emission state and the carrier communication stationary state according to said tested communication module.
Have and above-mentionedly know; The invention provides a kind of power consumption test system embodiment of power information acquisition system communication module; This system embodiment receives the exchange instruction of user's input; Through concentrator carrier communication module, collector carrier communication module or electric energy meter carrier communication module current value and the magnitude of voltage under carrier communication emission state and carrier communication stationary state carried out data sampling; Obtain sampled data, and obtain the power consumption number of tested communication module under carrier communication emission state and carrier communication stationary state according to said sampling.Can measure electric current, the real time data of voltage under above-mentioned two kinds of duties of concentrator carrier communication module, collector carrier communication module and electric energy meter carrier communication module thus exactly through power consumption test provided by the invention system; Obtain its power consumption number, thereby data support and scientific basis exactly are provided for power industry research carrier chip performance and assessment.
Embodiment two
Be depicted as the power consumption test system embodiment two of a kind of power information acquisition system communication module provided by the invention with reference to figure 2, said system comprises measurement module 101, control module 102, application module 103 and power module 104, wherein:
Said measurement module 101, current value, the magnitude of voltage of tested communication module under carrier communication emission state and carrier communication stationary state that is used for respectively needs are carried out power consumption test carries out data sampling.
Wherein, concentrator carrier communication module, collector carrier communication module and any communication module of electric energy meter carrier communication module in the communication module of the said tested communication module power information acquisition system that can be set to test.
Said measurement module 101 can be provided with analog to digital converter, and said analog to digital converter can be selected chip CS5550.CS5550 is a integrated analog to digital converter of height that comprises two analog to digital converters (ADC) and a serial line interface.The road ADC interface of CS5550 is used to measure the current value of tested communication; Be connected to the output terminal of analog switch; Other one road ADC interface is used to measure the magnitude of voltage of tested communication module, and the mode through divider resistance is connected on the supply voltage of tested communication module.The serial line interface of CS5550 is connected on the interface of said control module 102.
Said measurement module 101 can also be provided with analog switch, and said analog switch can be selected 74HC4052D, and it is a 4 to select 1 analog switch, and employing ± 5V power supply has the conducting resistance that is low to moderate 60 ohm.When said measurement module 101 carries out a plurality of tested communication modules when measuring; 74HC4052D is under the control of said control module 102, and the current signal (having converted voltage into) that the tested communication module of multichannel is switched in timesharing carries out current value and voltage value data measurement to CS5550.
Said measurement module 101 can also be provided with voltage-reference, and said voltage-reference can be selected ADR431BR, and it is a high precision 2.5V voltage-reference, has low noise, high precision and low temperature drift performance.The 2.5V benchmark of ADR431 output is that the high-acruracy survey of CS5550 is given security.
Said control module 102; Be used to receive the interactive instruction of user's input; Said measurement module 101 is carried out the measurement control of data sampling according to said interactive instruction; Read the sampled data under carrier communication emission state and carrier communication stationary state of the tested communication module of said measurement module 101 measurements, and calculate the power consumption number of the said tested communication module of acquisition under carrier communication emission state and carrier communication stationary state in the sampled data under carrier communication emission state and the carrier communication stationary state according to said tested communication module.
Said application module 103; Be used to receive the interactive instruction of user's input; And said interactive instruction is sent to the measurement control that said control module realizes said measurement module is carried out data sampling, receive the sampled data that said control module sends and power consumption number is analyzed and obtain the power consumption curve map according to said analysis data.
Wherein, said application module 103 can pass through PC (Personal Computer, PC), realizes its function.
Said control module 102 can be provided with central processing unit; Said central processing unit can select to use LPC2378; LPC2378 has 4 UART (Universal AsynchronousReceiver/Transmitter; Universal asynchronous reception/dispensing device) interface, two SSP ((Synchronous Serial Port, synchronous serial protocol) interfaces etc.When said measurement module 101 carries out a plurality of tested communication modules when measuring; 4 UART interfaces can be connected respectively to 3 tested communication modules and said application module 103 simultaneously: the UART interface that is connected to said concentrator carrier module is used to simulate the communication protocol of said concentrator carrier communication; The UART interface that is connected to said collector carrier module is used to simulate the communication protocol of said collector carrier communication module; The UART interface that is connected to said electric energy meter carrier communication module is used to simulate the communication protocol of said electric energy meter carrier communication module, thereby reaches the said tested communication module analog transceiver data of control.The UART interface that is connected to said application module 103 receives the instruction interaction of said application module 103, reaches control survey and reads the purpose of measurement data.The SSP interface of LPC2378 is connected to CS5550, the sequential of control survey with read measurement result.
Said power module 104 is used to said measurement module 101 and said control module 102 working power is provided.Said power module also is included as said application module 103 simultaneously provides working power.
Wherein, said voltage module 104 can also adjust 8~18V that said measurement of power loss system needs, 5V, 3.3V ,-voltage of 5V, and guarantee enough electric current output.
From the above; The invention provides a kind of power consumption test system embodiment of power information acquisition system communication module; This system embodiment receives the exchange instruction of user's input; Measurement control through LPC2378; Through high-precision processor CS5550 concentrator carrier communication module, collector carrier communication module or electric energy meter carrier communication module current value and the magnitude of voltage under carrier communication emission state and carrier communication stationary state carried out data sampling; Obtain sampled data, and obtain the power consumption number of tested communication module under carrier communication emission state and carrier communication stationary state, said sampled data and power consumption number are sent to application module analysis according to said sampling; Can also obtain the power consumption curve map according to said analysis data; Can measure electric current, the real time data of voltage under above-mentioned two kinds of duties of concentrator carrier communication module, collector carrier communication module and electric energy meter carrier communication module thus through power consumption test provided by the invention system exactly, obtain its power consumption number, thereby data support and scientific basis exactly are provided for power industry research carrier chip performance and assessment.
Embodiment three
Be depicted as the power consumption test system embodiment three of a kind of power information acquisition system communication module provided by the invention with reference to figure 3, based on the embodiment of the invention two, said system also comprises potentiometer 105 and memory module, wherein:
Said potentiometer 105 is used to regulate the WV of said tested communication module under carrier communication emission state and carrier communication stationary state.
Wherein, the range of adjustment of 105 pairs of WVs of said potentiometer is 8~18V.
Said memory module 106, the sampled data and the power consumption number that are used for said control module 102 is obtained tested communication module are stored.
Wherein, Said memory module 106 can be selected IS63WV1288; It is SRAM (the Static Random Access Memory of 128Kbyte; Static random access memory), is connected to 8 the asynchronous memory interface of LPC2378, is used for preserving the sampled data of measuring process and the power consumption number that obtains.
From the above; The invention provides a kind of power consumption test system embodiment of power information acquisition system communication module; This system embodiment receives the exchange instruction of user's input; Measurement control through LPC2378; Regulate the WV of tested communication module by potentiometer; Through high-precision processor CS5550 concentrator carrier communication module, collector carrier communication module or electric energy meter carrier communication module current value and the magnitude of voltage under a plurality of WVs under carrier communication emission state and the carrier communication stationary state carried out data sampling, obtain sampled data, and obtain the power consumption number of tested communication module under carrier communication emission state and carrier communication stationary state according to said sampling; Application module is stored and sent to said sampled data and power consumption number store and analyze, can also obtain the power consumption curve map according to said analysis data.Can measure electric current, the real time data of voltage under above-mentioned two kinds of duties of concentrator carrier communication module, collector carrier communication module and electric energy meter carrier communication module thus exactly through power consumption test provided by the invention system; Obtain its power consumption number, thereby data support and scientific basis exactly are provided for power industry research carrier chip performance and assessment.
Embodiment four
Be depicted as the power consumption test system embodiment four of a kind of power information acquisition system communication module provided by the invention with reference to figure 4, based on the system framework figure of embodiment three in practical application.
Present embodiment four is to be put in concentrator carrier communication module, collector carrier communication module and electric energy meter carrier communication module under the test environment simultaneously; In measuring process, pass through analog switch 74HC4052D under the control of said control module 102, the current signal (having converted voltage into) that three road tested communication modules are switched in timesharing carries out current value and voltage value data measurement to CS5550.
Said control module 102 can adopt uC/OS II (Micro Control Operation SystemII; Micro-control operating system II) as operating system; It is one and can has highly portable based on ROM (Read OnlyMemory, read-only storage) operation, can reduce, preemptive type real-time multi-task kernel; Be particularly suitable for microprocessor and controller, be and the suitable real time operating system of a lot of commercial operation system performances.For realizing the function of said control module; Said operating system can be provided with 5 tasks; Comprise: CS5550 measures control task, PC interactive task, concentrator carrier communication module simulation task, collector carrier communication module simulation task and electric energy meter carrier communication module simulation task, wherein:
CS5550 measures control task: consider the transient data of wanting to obtain accurately in real time voltage, electric current, sampling rate need reach 1kHz, and wants continuous sampling 15S.When carrying out 1kHz sampling reading of data, guarantee serial ports again in operate as normal, so must adopt the mode of interrupting, in interruption, read sampled data.
Be the power characteristic of the tested communication module of real reaction, embodiment of the invention SF is set to 1KHZ, and measuring accuracy reaches 0.1%.
Present embodiment carries out the data sampling process to tested communication module and comprises:
Said application module 103 receives the detecting information of user's input, is converted into interactive instruction and sends to said control module 102, comprises information such as the type of tested communication module, current test mode in the said interactive instruction;
After said control module 102 receives said interactive instruction; Start 101 pairs of tested communication modules of said measurement module according to said interactive instruction information and carry out operations such as data sampling, Data Update, can also control sampling through the counter that is arranged at inside and whether stop, after counter judges that sampling finishes; Said control module 102 reads said sampled data; And obtain power consumption number, and being back to said application module 103, said application module 103 is analyzed according to the data that receive; Can also be depicted as the power consumption curve map, make things convenient for watching of user.
Wherein, in carrying out the data sampling process, CS5550 measures control task and carries out obtaining of sampled data through the mode that task adds the terminal, adds the control flow chart of interruption for task with reference to figure 5:
CS5550 measures control task and at first CS5550 is configured to one second once sampling, upgrades the data of primary voltage to guarantee per second, can give said control module 102 Reductions of Students' Study Load again.
When obtaining the semaphore of high-speed sampling, CS5550 is configured to sampling in a second 1000 times, and starts sampling, interruption.
At this moment rise, read and adopt the task of data all to give interruption, reading of data and deposit external memory in interrupting, as shown in Figure 6, when sampling number reaches specified quantity, stop to interrupt, send and measure end signal.
The CS5550 task is just waited for the end signal amount always after starting high-speed sampling, after obtaining this semaphore, notify PC, and CS5550 is reconfigured for one second once sampling, guarantees to read voltage.
When obtaining correction amount signal, stop to interrupt, and start calibration.The data that read after the calibration are stored, and notice is PC simultaneously, at last CS5550 is reconfigured for one second once sampling, guarantee to read voltage.
With reference to shown in Figure 7, be the PC interactive task process flow diagram of the embodiment of the invention:
The PC interactive task behind the initialization serial ports, due-in data mailboxes such as mode just to block.
After the PC interactive task receives mailbox, at first carry out CRC, the resolve command word provides response at last then, sends to PC.
With reference to shown in Figure 8, be the process flow diagram of sampled data transmission in the interruption of the embodiment of the invention:
In the in commission disconnected process, after receiving each data, judge whether to be frame head, postamble sign, be combined as a complete packet thus.After receiving a complete packet, the transmitting and receiving data mailbox is to PC.
To sum up can know; The invention provides a kind of power consumption test system embodiment of power information acquisition system communication module; This system embodiment receives the exchange instruction of user's input; Measurement control through LPC2378; Regulate the WV of tested communication module by potentiometer; Through high-precision processor CS5550 concentrator carrier communication module, collector carrier communication module or electric energy meter carrier communication module current value and the magnitude of voltage under a plurality of WVs under carrier communication emission state and the carrier communication stationary state carried out data sampling, obtain sampled data, and obtain the power consumption number of tested communication module under carrier communication emission state and carrier communication stationary state according to said sampling through interrupt mode; Application module is stored and sent to said sampled data and power consumption number store and analyze, can also obtain the power consumption curve map according to said analysis data.Can measure electric current, the real time data of voltage under above-mentioned two kinds of duties of concentrator carrier communication module, collector carrier communication module and electric energy meter carrier communication module thus exactly through power consumption test provided by the invention system; Obtain its power consumption number, thereby data support and scientific basis exactly are provided for power industry research carrier chip performance and assessment.
More than the power consumption test system of a kind of power information acquisition system communication module that the application provided has been carried out detailed introduction; Used concrete example among this paper the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.