Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and
It is not used in the restriction present invention.
Fig. 1 is the indicative flowchart of the charging function method of testing of expense control electric energy meter of an embodiment.As shown in figure 1,
The charging function method of testing of the expense control electric energy meter in the present embodiment includes step:
S1, to take control electric energy meter send remote recharge instruction, read described expense control electric energy meter remote recharge instruction is held
Row information;Described execution information is compared with default remote recharge information;Judge to take control electric energy meter according to comparison result
Whether remote recharge function is qualified;
In the present embodiment, before step S1, also need the expense control pattern that the electric energy meter of check fee control in advance is current;If non-local
Take control pattern, then expense control electric energy meter is switched to local charge control pattern;Expense control electric energy meter is set to test key state, and
Under test key, described expense control electric energy meter is carried out purse initialised, with the preset amount of setup fee control electric energy meter, the warning amount of money
And hoard amount of money limit value etc., and set time.Prepare for test.
As a preferred implementation, the embodiment of step S1 includes following part:
S1-1, expense control electric energy meter is set to formal key state, under formal key state and remotely do not open an account
Take control electric energy meter and send correct remote recharge instruction;Obtain described expense control electric energy meter this correct remote recharge instruction is held
Row information, this execution information is compared with default first remote recharge information, and first to judge expense control electric energy meter is remote
Whether journey supplements subfunction with money qualified;Wherein, described correct remote recharge instructs and is:Table number, customer number, power purchase number of times, plan
The power purchase amount of money all correctly instructs.
S1-2, to expense control electric energy meter remotely opened an account, to expense control that is under formal key state and remotely having opened an account electricity
Correct remote recharge instruction can be sent by table;Obtain the described control electric energy meter that take and execute letter to what this correct remote recharge instructed
Breath;This execution information is compared with default second remote recharge information, is remotely filled with judging that expense controls the second of electric energy meter
Whether value subfunction is qualified.
S1-3, to expense control electric energy meter remotely opened an account, to expense control that is under formal key state and remotely having opened an account electricity
Wrong remote recharge instruction can be sent by table;Obtain the described control electric energy meter that take and execute letter to what this wrong remote recharge instructed
Breath;This execution information is compared with default 3rd remote recharge information, is remotely filled with judging that expense controls the 3rd of electric energy meter
Whether value subfunction is qualified;Wherein, the remote recharge of described mistake instructs and is:Table number, customer number, power purchase number of times, plan power purchase
The instruction of at least one mistake in the amount of money.
If S1-1, S1-2, S1-3 any portion testing result is unqualified, it is judged as the long-range of described expense control electric energy meter
Charging function is unqualified;If it is qualified that the testing result of S1-1, S1-2, S1-3 tri- part is, just it is judged as described expense control electric energy
The remote recharge function of table is qualified.
Wherein, the execution sequence of above-mentioned S1-1, S1-2, S1-3 part is not limited to its number order, and also interchangeable execution is suitable
Sequence.
S2, the expense of acquisition control the execution information that electric energy meter is supplemented with money to power purchase card;This execution information is locally supplemented with money letter with default
Breath is compared;Judge according to comparison result whether the local charging function of expense control electric energy meter is qualified;
In the present embodiment, before step S2, also need the expense control pattern that the electric energy meter of check fee control in advance is current;If non-local
Take control pattern, then expense control electric energy meter is switched to local charge control pattern;Expense control electric energy meter is set to test key state, and
Under test key, described expense control electric energy meter is carried out purse initialised, with the preset amount of setup fee control electric energy meter, the warning amount of money
And hoard amount of money limit value etc., and set time.Prepare for test.
As a preferred implementation, the specific embodiment of step S2 may include following part:
It is in formal key state and correct to the parameter of insertion under local state of not opening an account that S2-1, the expense of acquisition control electric energy meter
The Card Reader of power purchase card and response message;This Card Reader and response message are compared with the default first local charging information, with
Judge expense control electric energy meter whether first locally to supplement subfunction with money qualified;Wherein, parameter correct power purchase card is table number, Ke Hubian
Number, power purchase number of times, intend all correct power purchase card of the power purchase amount of money.
S2-2, obtain expense control electric energy meter and in formal key state and locally open an account and the parameter of insertion is correctly purchased under state
The Card Reader of electric card and response message;This Card Reader and response message are compared with the default second local charging information, to sentence
Whether the second of disconnected expense control electric energy meter locally supplements subfunction with money qualified;
S2-3, obtain expense control electric energy meter and in formal key state and locally open an account the purchase of the parameter error to insertion under state
The Card Reader of electric card and response message;This Card Reader and response message are compared with default 3rd local charging information, to sentence
Whether the 3rd of disconnected expense control electric energy meter locally supplements subfunction with money qualified;Wherein, the power purchase card of parameter error is table number, Ke Hubian
Number, power purchase number of times, intend at least one wrong power purchase card of the power purchase amount of money.
If the arbitrary testing result of S2-1, S2-2, S2-3 is unqualified, it is judged as locally supplementing with money of described expense control electric energy meter
Function is unqualified;If it is qualified that the testing result of S2-1, S2-2, S2-3 is, it is judged as locally filling of described expense control electric energy meter
Value function is qualified.Wherein, the execution sequence of above-mentioned S2-1, S2-2, S2-3 part is not limited to its number order, also interchangeable execution
Sequentially.
S3, the interactive terminal passing through to simulate send to expense control electric energy meter and supplement instruction with money, and acquisition takes controls electric energy meter to interaction eventually
The execution information supplementing instruction with money at end;Supplement letter by getting the execution information supplementing instruction with money to interactive terminal with default terminal with money
Breath is compared;Judge according to comparison result whether the interactive terminal charging function of expense control electric energy meter is qualified.
In the present embodiment, before step S3, also need the expense control pattern that the electric energy meter of check fee control in advance is current;If non-local
Take control pattern, then expense control electric energy meter is switched to local charge control pattern;Expense control electric energy meter is set to test key state, and
Under test key, described expense control electric energy meter is carried out purse initialised, with the preset amount of setup fee control electric energy meter, the warning amount of money
And hoard amount of money limit value etc., and set time.Prepare for test.
As a preferred implementation, the specific embodiment of step S3 may include following part:
S3-1, by interactive terminal to formal key state and state of not opening an account expense control electric energy meter send correctly supplement with money
Instruction;Acquisition described expense control electric energy meter supplements the execution information of instruction with money to this, by the execution information getting and default first
Terminal charging information is compared, and whether qualified supplements subfunction with money with the first terminal judging expense control electric energy meter;Wherein, correctly
Supplement with money and instruct the instruction inserting generation in the case of parameter correct power purchase card for interactive terminal, parameter correct power purchase card is table
Number, customer number, power purchase number of times, intend all correct power purchase card of the power purchase amount of money.
S3-2, by interactive terminal, described expense control electric energy meter is remotely opened an account, by described interactive terminal to formal
The expense control electric energy meter of key state and state of remotely opening an account sends and correctly supplements instruction with money;Obtain described expense control electric energy meter this is filled
The execution information of value instruction, the execution information getting is compared with default second terminal charging information, to judge expense
Whether the second terminal of control electric energy meter supplements subfunction with money qualified;
S3-3, the expense control electric energy meter of state of to formal key state and remotely being opened an account by described interactive terminal send mistake
Supplement instruction with money;Obtain described expense control electric energy meter and the execution information of instruction supplemented with money to this, by the execution information getting with default
Third terminal charging information compare, whether to judge expense to control the third terminal of electric energy meter, to supplement subfunction with money qualified;Wherein,
The instruction generating in the case of the power purchase card of parameter error, the power purchase card of parameter error are inserted in the instruction of supplementing with money of mistake for interactive terminal
For table number, customer number, power purchase number of times, intend at least one wrong power purchase card of the power purchase amount of money.
If any portion of testing result of S3-1, S3-2, S3-3 is unqualified, it is judged as the friendship of described expense control electric energy meter
Mutually terminal charging function is unqualified;If it is qualified that the testing result of S3-1, S3-2, S3-3 tri- part is, it is judged as described expense
The interactive terminal charging function of control electric energy meter is qualified.Wherein, the execution sequence of above-mentioned S3-1, S3-2, S3-3 part is not limited to it
Number order, also interchangeable execution sequence.
If the arbitrary judged result of S4 above-mentioned steps S1~S3 is unqualified it is determined that controlling supplementing with money of electric energy meter for described expense
Function is unqualified;If the judged result of above-mentioned steps S1~S3 be qualified it is determined that for described expense control electric energy meter supplement work(with money
Can be qualified.
Table in the present embodiment, if the table number in instruction/power purchase card is inconsistent with table number in table, in instruction/power purchase card
Number mistake;If the power purchase number of times > in power purchase number of times or instruction/power purchase card in the power purchase number of times≤table in instruction/power purchase card
Power purchase number of times+2 in table, then the power purchase number of times mistake in instruction/power purchase card;If the plan power purchase amount of money in instruction/power purchase card is more than
Default when hoarding amount of money limit value, then the plan power purchase amount of money mistake in instruction/power purchase card.Power purchase card is also included:If power purchase
Table number in card is inconsistent with table number in table, then the table number mistake in power purchase card.
In the present embodiment, the execution information of supplementing with money of expense control electric energy includes but is not limited to:Take the tired of control electric energy meter remaining sum
Plus information, power purchase card return write information, parameter update status, expense control electric energy meter power purchase record and logout, supplement with money after expense control
Switching on status number of electric energy meter etc..
It should be noted that the execution sequence of above-mentioned steps S1~S3 is not only restricted to its number order in the present embodiment, also
Interchangeable execution sequence, for example, also can first carry out step S2, then execution step S1;Or first carry out step S3, then execution step
S2 etc..
Charging function method of testing below by the expense control electric energy meter to the present invention for the specific example is further described.
Wherein, the to be tested control electric energy meter that takes takes control electric energy meter for bimodulus, and its charging function is only applicable to local charge control pattern, can pass through
Remote recharge order, power purchase card are supplemented with money or are supplemented realization with money by interactive terminal, and wherein remote recharge is led to by RS485 or carrier wave etc.
Road transmits, and power purchase card is supplemented with money and need to be implemented using solid state medium (RF IC card), is supplemented with money by interactive terminal, solid state medium (to penetrate
Frequency IC-card) and virtual medium (passage such as RS485 or carrier wave) combine development.And, it is supplemented with money and requires to include under normal circumstances:
1) bimodulus expense control electric energy meter is not opened an account state, does not accept to supplement operation with money;2) bimodulus expense control electric energy meter should be first before supplementing with money
Judge the concordance of customer number;3) concordance of table number should be judged using power purchase card before supplementing with money;4) when the power purchase in power purchase card
Number of times or to supplement the power purchase number of times that power purchase number of times in instruction takes in control electric energy meter than bimodulus with money big by 1, and intend the power purchase amount of money and be less than etc.
In default hoard the amount of money limit value when, can supplement with money;5) for the bimodulus expense control electric energy meter remotely opened an account but locally do not open an account,
Unusable power purchase card is supplemented with money.Additionally, the concordance of CPU card serial number also can be judged using power purchase card before supplementing with money.
In the present embodiment, the execution information of supplementing with money of expense control electric energy includes but is not limited to:Bimodulus takes control electric energy meter remaining sum
Accumulation information, power purchase card return write information, parameter update status, bimodulus expense control electric energy meter power purchase record and logout, fill
After value, bimodulus takes switching on status number of control electric energy meter etc..
Separately below remote recharge, power purchase card are supplemented with money or three kinds of bimodulus expenses supplemented with money under situation are supplemented with money by interactive terminal
The charging function test of control electric energy meter is specifically described.
1. " remote recharge " Function detection idiographic flow comprises the following steps:
Step 11:Check that bimodulus takes the expense control mode state of control electric energy meter, if not local charge control pattern, be then set to local
Take control pattern;Execute purse initialised under test key, setting preset amount and pair when.
Step 12:Test bimodulus expense control electric energy meter is not opened an account state under, to correctly remote in formal key state and remotely
Journey supplements the response situation of instruction with money;
In the present embodiment, if in this step bimodulus take control electric energy meter return execution information be default exception response or
It is determined that being qualified for step 12 test result, otherwise, step 12 test result is unqualified to the information of remote recharge failure.
Step 13:Bimodulus is taken with control electric energy meter remotely opened an account.Test bimodulus takes control electric energy meter to parameter error (client
Numbering mistake, the mistake such as power purchase number of times mistake) the response situation that instructs of remote recharge;
If the execution information that this step bimodulus takes control electric energy meter return is default exception response or remote recharge failure
Information it is determined that for step 13 test result be qualified, otherwise, step 13 test result be unqualified.
Step 14:Amount of money limit value is hoarded in setting.Test bimodulus takes control electric energy meter and correct remote recharge is instructed with (plan power purchase
Amount of money < hoards amount of money limit value) implementation status, including acknowledgement command, security module power purchase message file update, power purchase record;
In the present embodiment, if the execution information getting all consistent with default normal remote recharge information it is determined that being
Step 14 test result is qualified, if any of which information is inconsistent with default normal remote recharge information, step 14 detects
Conclusion is unqualified.
Step 15:Test bimodulus takes control electric energy meter and the remote recharge of wrong parameter is instructed (in instruction power purchase number of times and table
Power purchase number of times is equal) implementation status, including acknowledgement command, security module power purchase message file update, power purchase record;
In the present embodiment, if the execution information getting all consistent with the information of default remote recharge failure it is determined that
It is qualified for step 15 test result, if any of which information is inconsistent with the information of default remote recharge failure, step 15
Test result is unqualified.
Step 16:Test bimodulus expense control electric energy meter instructs to wrong remote recharge (to be intended power purchase amount of money > and hoards amount of money limit
Value) implementation status, include acknowledgement command, security module power purchase message file renewal, power purchase record;
In the present embodiment, if the execution information getting all consistent with the information of default remote recharge failure it is determined that
It is qualified for step 16 test result, if any of which information is inconsistent with the information of default remote recharge failure, step 16
Test result is unqualified.
Step 17:The detection case of checking step 12~16, if either step detection is not passed through, overall test result is
" unqualified ", only when step 12~16 5 step all detects that by overall test result side be " qualified ".
2. " power purchase card is supplemented with money " Function detection idiographic flow comprises the following steps:
Step 21:Check that bimodulus takes the expense control mode state of control electric energy meter, if not local charge control pattern, be then set to local
Take control pattern;Execute purse initialised under test key, setting preset amount, the amount of money and hoard amount of money limit value etc. of reporting to the police, go forward side by side
During row pair.
Step 22:Bimodulus is taken with control electric energy meter remotely opened an account.Test bimodulus takes control electric energy meter in formal key state
And locally do not open an account under state, to bimodulus take control electric energy meter insert correct power purchase card, obtain bimodulus take control electric energy meter Card Reader and
Responsive status;
In the present embodiment, if the execution information of the bimodulus expense control electric energy meter getting in this step is Card Reader success and power purchase
It is determined that being qualified for step 22 test result, otherwise, step 22 test result is unqualified to the information of failure.
Step 23:Bimodulus is taken with control electric energy meter initialize.Test bimodulus take control electric energy meter in formal key state and
Do not open an account locally state under remotely and all, take control electric energy meter to bimodulus and insert correct power purchase card, acquisition bimodulus takes controls electric energy meter
Card Reader and responsive status;
In the present embodiment, if the execution information of the bimodulus expense control electric energy meter getting in this step is Card Reader success and power purchase
It is determined that being qualified for step 23 test result, otherwise, step 23 test result is unqualified to the information of failure.
Step 24:Bimodulus is taken with control electric energy meter remotely opened an account and supplement with money, then locally opened an account again.Test bimodulus
Expense control electric energy meter is in formal key state and long-range and locally all opened an account under state, take to bimodulus and controls electric energy meter inserting error and join
Power purchase card (power purchase number of times+2, the power purchase card in power purchase number of times in power purchase card power purchase number of times≤table, power purchase card power purchase number of times > table of number
Customer number mistake is inconsistent etc. with table), obtain Card Reader and the execution information that bimodulus takes control electric energy meter, including:Card reading status
Prompting, power purchase condition prompting, the renewal of security module power purchase message file, power purchase record, abnormal plug-in card total degree, abnormal plug-in card note
Record etc.;
In the present embodiment, if the Card Reader getting and execution information are all consistent with default normally local charging information,
It is qualified for being defined as step 24 test result, if any of which information is inconsistent with default normally local charging information, step
24 test results are unqualified.
Step 25:Amount of money limit value is hoarded in setting.Take control electric energy meter insertion parameter correct power purchase card to bimodulus and (intend power purchase gold
Volume < hoards amount of money limit value), obtain Card Reader and the execution information that bimodulus takes control electric energy meter, including:Card reading status prompting, power purchase shape
State prompting, security module power purchase message file update, power purchase record;
In the present embodiment, if the Card Reader getting and execution information are all consistent with default normally local charging information,
It is qualified for being defined as step 25 test result, if any of which information is inconsistent with default normally local charging information, step
25 test results are unqualified.
Step 26:The power purchase card taking control electric energy meter insertion parameter error to bimodulus (is intended power purchase amount of money > and is hoarded amount of money limit
Value), obtain bimodulus and take control electric energy meter Card Reader and implementation status, including card reading status prompting, the purchase of power purchase condition prompting, security module
Electrical information file updates, power purchase record;
In the present embodiment, if the Card Reader getting and execution information are all consistent with the default information supplementing failure with money, really
It is qualified for being set to step 26 test result, if any of which information is inconsistent with the default information supplementing failure with money, step 26 is examined
It is unqualified for surveying conclusion.
Step 27:The detection case of checking step 22~26, if either step detection is not passed through, overall test result is
" unqualified ", only when step 22~26 5 step all detects that by overall test result side be " qualified ".
3. " supplement " Function detection idiographic flow with money to comprise the following steps by interactive terminal:
Step 31:Check that bimodulus takes the expense control mode state of control electric energy meter, if not local charge control pattern, be then set to local
Take control pattern;Execute purse initialised under test key, arrange preset amount, pair when.
Step 32:Test bimodulus expense control electric energy meter is not opened an account state under, in interactive terminal in formal key state and remotely
The correct power purchase card of upper brush, interactive terminal is taken control electric energy meter to bimodulus and is sent command adapted thereto, obtains bimodulus and takes control electric energy meter to this
The response situation of instruction;
In the present embodiment, if in this step bimodulus take control electric energy meter return response message be default exception response or
It is determined that being qualified for step 32 test result, otherwise, step 32 test result is unqualified to the information of remote recharge failure.
Step 33:By interactive terminal, bimodulus expense control electric energy meter is remotely opened an account and supplemented with money.Then in interactive terminal
The power purchase card of upper brush wrong parameter (customer number mistake, table number mistake, power purchase number of times mistake etc.), obtains bimodulus and takes control electric energy meter
Response situation;
If the response message that this step bimodulus takes control electric energy meter return is default exception response or remote recharge failure
Information it is determined that for step 33 test result be qualified, otherwise, step 33 test result be unqualified.
Step 34:Amount of money limit value is hoarded in setting.On interactive terminal, brush parameter correct power purchase card (is intended power purchase amount of money > to store up
Long-pending amount of money limit value), obtain bimodulus expense control electric energy meter supplements implementation status with money, updates including security module power purchase message file, purchases
Electrographic recording;
In the present embodiment, if the execution information getting all consistent with default normal remote recharge information it is determined that being
Step 34 test result is qualified, if any of which information is inconsistent with default normal remote recharge information, step 34 detects
Conclusion is unqualified.
Step 35:Power purchase card (power purchase card power purchase number of times and the power purchase number of times phase in table of brush wrong parameter on interactive terminal
Deng), obtain the implementation status that bimodulus takes control electric energy meter, including the renewal of security module power purchase message file, power purchase record etc.;
In the present embodiment, if the execution information getting all consistent with default normal remote recharge information it is determined that being
Step 35 test result is qualified, if any of which information is inconsistent with default normal remote recharge information, step 35 detects
Conclusion is unqualified.
Step 36:On interactive terminal, the power purchase card (intend power purchase amount of money > and hoard amount of money limit value) of brush parameter error, obtains
Bimodulus takes the implementation status of control electric energy meter, including acknowledgement command, the renewal of security module power purchase message file, power purchase record etc.;
In the present embodiment, if the execution information getting all consistent with the default information supplementing failure with money it is determined that for step
Rapid 36 test results are qualified, if any of which information is inconsistent with the default information supplementing failure with money, step 36 test result
For unqualified.
Step 37:The detection case of checking step 32~36, if either step detection is not passed through, overall test result is
" unqualified ", only when step 32~36 5 step all detects that by overall test result side be " qualified ".
In the present embodiment, when the test result of above-mentioned three parts is " qualified ", just determine supplementing with money of expense control electric energy meter
Functional test is passed through, otherwise, it determines not passing through for the charging function test of expense control electric energy meter.
The charging function method of testing taking control electric energy meter of above-described embodiment, takes control electric energy meter by first to be detected backward
Send remote recharge order, power purchase card inserts message, supplement instruction with money in the case of brush power purchase card on corresponding interactive terminal, obtain
Take the execution information of expense control electric energy meter to be detected charging function in all cases, by the execution information getting with default
Corresponding information is compared, as all consistent with corresponding preset situation in the implementation status in the case of each, then be judged as charging function
Qualified, if the implementation status under either case is inconsistent with corresponding preset situation, it is judged as that charging function is unqualified, thus
Can comprehensively and effectively check fee control electric energy meter charging function it is adaptable to constituent parts to expense control electric energy meter charging function comment
Valency, the suitability is wide.
It should be noted that for aforesaid embodiment of the method, for easy description, it is all expressed as a series of dynamic
Combine, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because foundation
The present invention, some steps can be carried out using other orders or simultaneously.
Based on above-described embodiment in the charging function method of testing identical thought taking control electric energy meter, the present invention also carries
For taking the charging function test system of control electric energy meter, this system can be used for executing the charging function test side of above-mentioned expense control electric energy meter
Method.For convenience of description, take control electric energy meter charging function test system embodiment structural representation in figure, illustrate only with
The related part of the embodiment of the present invention, it will be understood by those skilled in the art that the restriction of schematic structure not structure paired systems, can
Illustrate more or less of part to include ratio, or combine some parts, or different part arrangements.
Fig. 2 is the schematic diagram of the charging function test system taking control electric energy meter of one embodiment of the invention;As Fig. 2
Shown, the charging function test system of the expense control electric energy meter of the present embodiment includes:Remote testing module 210, local test module
220th, interactive terminal test module 230 and judge module 240, details are as follows for each module:
Described remote testing module 210, for taking control electric energy meter transmission remote recharge instruction, reading is described to take control electric energy
The execution information that table instructs to remote recharge;Described execution information is compared with default remote recharge information;According to comparison
Result judges whether the remote recharge function of expense control electric energy meter is qualified;
Described local test module 220, for obtaining the execution information that expense control electric energy meter is supplemented with money to power purchase card;This is executed
Information is compared with default local charging information;Whether closed according to the local charging function that comparison result judges expense control electric energy meter
Lattice;
Described interactive terminal test module 230, supplements finger with money for sending to expense control electric energy meter by the interactive terminal of simulation
Order, obtains the expense control execution information supplementing instruction with money to interactive terminal for the electric energy meter;By getting with money instruction is supplemented to interactive terminal
Execution information compare with default terminal charging information;Supplemented with money according to the interactive terminal that comparison result judges expense control electric energy meter
Whether function is qualified;
Described judge module 240, if the judged result for any of the above-described test module is unqualified it is determined that being described
The charging function taking control electric energy meter is unqualified;If the judged result of above-mentioned test module is qualified it is determined that controlling for described expense
The charging function of electric energy meter is qualified.
As a preferred implementation, the charging function test system of described expense control electric energy meter also includes:Initial setting up mould
Block (not shown), for check fee control electric energy meter current take control pattern;If non-local take control pattern, then will take control electricity
Local charge control pattern can be switched to by table;It is additionally operable to for expense control electric energy meter to be set to test key state, and right under test key
Described expense control electric energy meter carries out purse initialised, and sets time.
As a preferred implementation, described remote testing module 210 specifically includes:
First submodule, for expense control electric energy meter is set to formal key state, under formal key state and not
The expense control electric energy meter remotely opened an account sends correct remote recharge instruction;Obtain described expense control electric energy meter this is correctly remotely filled
The execution information of value instruction, this execution information is compared with default first remote recharge information, to judge expense control electric energy
Whether the first remote recharge subfunction of table is qualified;
Second submodule, for remotely being opened an account to expense control electric energy meter, under formal key state and remotely opened
The control electric energy meter that takes at family sends correct remote recharge instruction;Obtain the described control electric energy meter that takes to this correct remote recharge instruction
Execution information;This execution information is compared with default second remote recharge information, to judge that expense controls the of electric energy meter
Whether two remote recharge subfunctions are qualified;
3rd submodule, for sending the remote of mistake to expense control electric energy meter that is under formal key state and remotely having opened an account
Journey supplements instruction with money;Obtain the described execution information taking the remote recharge instruction wrong to this of control electric energy meter;By this execution information with
Default 3rd remote recharge information is compared, with judge expense control electric energy meter the 3rd remote recharge subfunction whether qualified;
And, the 4th submodule, if the testing result for any of the above-described submodule is unqualified, it is judged as described expense
The remote recharge function of control electric energy meter is unqualified;If it is qualified that the testing result of above-mentioned submodule is, it is judged as described expense control
The remote recharge function of electric energy meter is qualified;
Wherein, described correct remote recharge instructs and is:Customer number, power purchase number of times, the plan power purchase amount of money all correctly refer to
Order;The remote recharge of described mistake instructs and is:The instruction of at least one mistake in customer number, power purchase number of times, the plan power purchase amount of money.
If the customer number in instruction is inconsistent with customer number in table, the customer number mistake in instruction;If the power purchase in instruction
Power purchase number of times+2 in power purchase number of times > table in power purchase number of times or instruction in number of times≤table, then the power purchase in instructing time miscounts
By mistake;If the plan power purchase amount of money in instruction is more than plan power purchase amount of money mistake when hoarding amount of money limit value, in instruction.
As a preferred implementation, described local test module 220 specifically includes:
First ground submodule, in formal key state and does not locally open an account under state to inserting for obtaining expense control electric energy meter
The Card Reader of parameter correct power purchase card entering and response message;This Card Reader and response message and default first are locally supplemented with money letter
Breath is compared, with judge expense control electric energy meter whether first locally to supplement subfunction with money qualified;
Second local submodule, in formal key state and locally opens an account under state to insertion for obtaining expense control electric energy meter
The Card Reader of parameter correct power purchase card and response message;By this Card Reader and response message and default second local charging information
Compare, with judge expense control electric energy meter whether second locally to supplement subfunction with money qualified;
3rd local submodule, in formal key state and locally opens an account under state to insertion for obtaining expense control electric energy meter
The Card Reader of power purchase card of parameter error and response message;By this Card Reader and response message and default 3rd local charging information
Compare, with judge expense control electric energy meter whether the 3rd locally to supplement subfunction with money qualified;
And, the 4th local submodule, if the testing result for arbitrary local submodule is unqualified, it is judged as institute
The local charging function that expense of stating controls electric energy meter is unqualified;If all the testing result of local submodule is qualified, it is judged as
Described take control electric energy meter local charging function qualified;
Wherein, parameter correct power purchase card is table number, customer number, power purchase number of times, intends all correct power purchase of the power purchase amount of money
Card;The power purchase card of parameter error is table number, customer number, power purchase number of times, plan at least one wrong power purchase card of the power purchase amount of money.If
Power purchase number of times+2 in the power purchase number of times > table of power purchase number of times or power purchase card in the power purchase number of times≤table of power purchase card, then power purchase card
Power purchase number of times mistake;If the table number of power purchase card is inconsistent with table number in table, the table number mistake of power purchase card;If the visitor of power purchase card
, the then customer number mistake of power purchase card inconsistent with customer number in table is numbered at family;If the plan power purchase amount of money of power purchase card is more than storing up
During long-pending amount of money limit value, then the plan power purchase amount of money mistake of power purchase card.
As a preferred implementation, described interactive terminal test module 230 specifically includes:
First terminal submodule, for by interactive terminal to formal key state and state of not opening an account expense control electric energy meter
Send and correctly supplement instruction with money;Obtain the execution information that described expense control electric energy meter supplements instruction with money to this, execute letter by get
Breath is compared with default first terminal charging information, supplements whether subfunction closes with money with the first terminal judging expense control electric energy meter
Lattice;
Second terminal submodule, for remotely being opened an account to described expense control electric energy meter by interactive terminal, by described
To formal key state and remotely the open an account expense control electric energy meter of state of interactive terminal sends and correctly supplements instruction with money;Obtain described expense
The execution information that control electric energy meter supplements instruction with money to this, the execution information getting is carried out with default second terminal charging information
Compare, subfunction is supplemented with money with the second terminal judging expense control electric energy meter whether qualified;
Third terminal submodule, for the expense control of state of to formal key state and remotely being opened an account by described interactive terminal
What electric energy meter transmission was wrong supplements instruction with money;Acquisition described expense control electric energy meter supplements the execution information of instruction with money to this, by get
Execution information is compared with default third terminal charging information, supplements subfunction with money with the third terminal judging expense control electric energy meter
Whether qualified;
And, the 4th terminal submodule, if the testing result for any terminal submodule is unqualified, it is judged as institute
The interactive terminal charging function that expense of stating controls electric energy meter is unqualified;If it is qualified that the testing result of whole terminal submodules is, sentence
It is qualified for the interactive terminal charging function of described expense control electric energy meter to break;
Wherein, correctly supplement with money and instruct the instruction inserting generation in the case of parameter correct power purchase card for interactive terminal, ginseng
The correct power purchase card of number is table number, all correct power purchase card of customer number, power purchase number of times, the plan power purchase amount of money;Mistake supplement finger with money
Make and insert the instruction generating in the case of the power purchase card of parameter error for interactive terminal, the power purchase card of parameter error is table number, client
Numbering, power purchase number of times, plan at least one wrong power purchase card of the power purchase amount of money.
The charging function test system taking control electric energy meter of above-described embodiment, covers technical standard with regard to expense control electric energy meter
Every technical requirements of charging function, content of the test is comprehensive;It is applied to constituent parts and bimodulus is taken with control electric energy meter charging function enforcement
Evaluate, the suitability is wide;Clear process, step clearly, are easy to testing crew operation
It should be noted that in the embodiment of charging function test system taking control electric energy meter of above-mentioned example, each mould
The contents such as the information exchange between block, implementation procedure, due to being based on same design with preceding method embodiment of the present invention, it brings
Technique effect identical with preceding method embodiment of the present invention, particular content can be found in the narration in the inventive method embodiment,
Here is omitted.
Additionally, in the embodiment of charging function test system taking control electric energy meter of above-mentioned example, each functional module
Logical partitioning is merely illustrative of, can as needed in practical application, such as configuration requirement for corresponding hardware or soft
The convenient consideration of the realization of part, above-mentioned functions distribution is completed by different functional modules, described expense will control filling of electric energy meter
The internal structure of value function test system is divided into different functional modules, to complete all or part of work(described above
Energy.Wherein each function mould both can be to be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.
It will appreciated by the skilled person that realizing all or part of flow process in above-described embodiment method, it is can
Completed with the hardware instructing correlation by computer program, described program can be stored in an embodied on computer readable storage and be situated between
In matter, as independent production marketing or use.Described program upon execution, can perform as above-mentioned each method embodiment complete
Portion or part steps.Wherein, described storage medium can be magnetic disc, CD, read-only memory (Read-Only
Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiments.It is appreciated that term " first " used in it, " second " etc. are at this
It is used for distinguishing object in literary composition, but these objects should not be limited by these terms.
Embodiment described above only have expressed the several embodiments of the present invention it is impossible to be interpreted as to the scope of the claims of the present invention
Restriction.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise,
Some deformation can also be made and improve, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention
Should be defined by claims.