CN110459012A - A kind of charge information Time-sharing control method, apparatus and charging show equipment - Google Patents

A kind of charge information Time-sharing control method, apparatus and charging show equipment Download PDF

Info

Publication number
CN110459012A
CN110459012A CN201910643396.4A CN201910643396A CN110459012A CN 110459012 A CN110459012 A CN 110459012A CN 201910643396 A CN201910643396 A CN 201910643396A CN 110459012 A CN110459012 A CN 110459012A
Authority
CN
China
Prior art keywords
charging
flag bit
mark
charge information
multiplexing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910643396.4A
Other languages
Chinese (zh)
Inventor
郭海如
汪佶
熊曾刚
朱三元
李志敏
万兴
甘家梁
刘桂涛
李骥
徐翠琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hubei Engineering University
Original Assignee
Hubei Engineering University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Engineering University filed Critical Hubei Engineering University
Priority to CN201910643396.4A priority Critical patent/CN110459012A/en
Publication of CN110459012A publication Critical patent/CN110459012A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/10Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with alarm or warning devices, e.g. indicating the interrupting of the supply

Abstract

The present invention relates to charge information technical field of automatic control, a kind of charge information Time-sharing control method is provided, device and charging show equipment, its method includes: to show that compound token information is arranged in the key information in equipment according to charging, charging display pattern or charging stealth mode are according to compound token information Time-sharing control charge information, under charging display pattern, charging shows that equipment can provide billing function and display function for charge information, under charging stealth mode, charging shows that equipment can keep billing function and stop providing display function for charge information, stop providing the automation control ability of display function for charge information in the sustained periods of time of billing function so that charging shows that equipment has, charge information intermittent can be in display state, help to shorten the duration that charge information is in display state , active balance user intermittence can be browsed at the habit and charge information of charge information in the duration of display state in charging process.

Description

A kind of charge information Time-sharing control method, apparatus and charging show equipment
Technical field
The present invention relates to charge information technical field of automatic control more particularly to a kind of charge information Time-sharing control sides Method, device and charging show equipment.
Background technique
Charging shows that equipment refers to: the display that can provide the multiple functions such as charging, display and payment for charge information is set It is standby, such as: fuel charger and water vendor etc..
In the related technology, it can show that equipment starts and stops charging function as charge information using Time-sharing control charging by key Can, in billing function out of, sustained periods of time that start to stopping, charging shows that equipment is continuously charge information and provides display function, So that charge information is continuously in display state, user is facilitated persistently to browse charge information.
However, user often follows the habit of intermittent browsing charge information, charging shows that equipment can be in billing function Sustained periods of time in stop display charge information and so that charge information intermittence is in display state can shorten charge information Duration in display state, charging show that equipment shortcoming stops mentioning for charge information in the sustained periods of time of billing function For the automation control ability of display function, cannot stop showing charge information in the sustained periods of time of billing function, it is difficult to In charging process active balance user intermittence browsing charge information habit and charge information be in display state it is lasting when It is long.
Summary of the invention
The technical problem to be solved by the present invention is to show equipment shortcoming in billing function for charging in the prior art Stop providing the automation control ability of display function for charge information in sustained periods of time, it is difficult to have during permanent calculation of fees The habit and charge information of effect balancing user intermittence browsing charge information are in the deficiency of the duration of display state, provide A kind of charge information Time-sharing control method, apparatus and charging show equipment.
The technical scheme to solve the above technical problems is that
According to the present invention in a first aspect, providing a kind of charge information Time-sharing control method, comprising the following steps:
Show that compound token information is arranged in the key information in equipment according to charging;
Charging display pattern or charging stealth mode are according to the compound token information Time-sharing control charge information.
Second aspect according to the present invention provides a kind of charge information Time-sharing control device, comprising:
Compound token information is arranged in information setup module, the key information for being shown in equipment according to charging;
Time-sharing control module, for being in charging display pattern according to the compound token information Time-sharing control charge information Or charging stealth mode.
The third aspect according to the present invention provides a kind of charging display equipment, comprising:
Display is configured as connecting with single chip communication and shows charge information;
Single-chip microcontroller is configured as executing charge information timesharing described in first aspect when charging display control program is arranged Control method.
Charge information Time-sharing control method, apparatus provided by the invention and charging show that the beneficial effect of equipment is: key Information can be to update compound token information, and compound token information can be cut to control charge information from charging display pattern Charging stealth mode is shifted to, under charging display pattern, charging shows that equipment can provide billing function and be shown for charge information Show function, under charging stealth mode, charging shows that equipment can keep billing function and stop providing display for charge information Function, so that charging shows that equipment has oneself for stopping providing display function in the sustained periods of time of billing function for charge information Dynamicization control ability, charge information intermittent can be in display state, facilitate shortening charge information and are in display state Duration can shown at the habit of active balance user intermittence browsing charge information and charge information in charging process Show the duration of state.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of charge information Time-sharing control method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another charge information Time-sharing control method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of charge information Time-sharing control device provided in an embodiment of the present invention;
Fig. 4 is the circuit diagram in a kind of charging display equipment provided in an embodiment of the present invention;
Fig. 5 is the circuit diagram in another charging display equipment provided in an embodiment of the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the invention.
Embodiment one
As shown in Figure 1, the flow diagram for the charge information Time-sharing control method that the embodiment of the present invention one provides, this method Include the following steps: to show that compound token information is arranged in the key information in equipment according to charging;According to compound token information point When control charge information be in charging display pattern or charging stealth mode.
In some embodiments, charging shows that equipment may include processor, display and wireless communication module, display Device is connect with processor communication, and wireless communication module is communicated to connect with processor and wireless control apparatus respectively, and display can be with Including any one of numeral method device and touch control display, wireless communication module may include infrared receiving module, bluetooth Any one of receiving module and wifi module, wireless control apparatus include any one of remote controler, mobile phone and server.
When infrared receiving module and remote controler wirelessly communicate, remote controler sends infrared signal, infrared receiver to timesharing Module receives infrared signal to timesharing and infrared signal timesharing is sent to processor, and processor is to timesharing from infrared signal In parse key assignments to identify physical button on remote controler.
When bluetooth receiving module is communicated with mobile phone wireless, mobile phone sends Bluetooth signal, bluetooth receiving module to timesharing Bluetooth signal is received to timesharing and Bluetooth signal timesharing is sent to processor, and processor is to timesharing according to Bluetooth signal solution The key assignments to identify virtual key on mobile phone is precipitated.
When wifi module and server wirelessly communicate, wifi module timesharing sends key assignments request, and server timesharing receives Key assignments is requested, and location information of the charging starting control on charging display interface is carried in key assignments request, and charging display interface is aobvious Show on touch control display, and timesharing inquiry and the matched key assignments of the location information from the key assignments table prestored, and feedback should Key assignments is to wifi module.
In some embodiments, key information includes at least one key assignments, and compound token information may include English words Any one of symbol string, ASCII coding and binary coding.
In some embodiments, processor runs charging display control program, can be with by charging display control program Bracket operation is carried out to English character string, charging display control program can control charging letter according to the English character string before transposition Breath is in charging display pattern and charging display pattern is switched to charging stealth mode according to the English character string after transposition.
It is exemplary, as shown in Fig. 2, charging display control program controls charging according to ab when English character string is ab Information is in charging display pattern, and charging display control program can replace ab for ba according to key assignments, when English character string is When ba, charging display pattern is switched to by charging stealth mode according to ba, key assignments is avoided and directly believes to Time-sharing control charging Breath is in charging display pattern or charging stealth mode, is in charging by compound token information Time-sharing control charge information and shows Mode or charging stealth mode facilitate charging and show that equipment overcomes a key assignments to be difficult to suitable for only when keeping billing function Vertical control charge information switches to the defect of hidden state from display state.
Charging display pattern refers to that charging display control program can respectively drive processor and provide charging function for charge information Display can and be driven to show the mode of charge information, under charging display pattern, charging shows that equipment has and keeps charging function It can and show the automation control ability of charge information function.
Charging stealth mode refers to that charging display control program can respectively drive processor and provide billing function and drive aobvious Show that device stops the mode of display charge information, under charging stealth mode, charging shows that equipment has and keeps billing function and hidden Hide the automation control ability of charge information.
Key information can be to update compound token information, and compound token information can be to control charge information from meter Expense display pattern switches to charging stealth mode, and under charging display pattern, charging shows that equipment can provide for charge information Billing function and display function, under charging stealth mode, charging shows that equipment can keep billing function and stop being charging Information provides display function, stops providing for charge information in the sustained periods of time of billing function so that charging shows that equipment has The automation control ability of display function, charge information intermittent can be in display state, help to shorten at charge information In display state duration, can in charging process active balance user intermittence browsing charge information habit and meter Charge information is in the duration of display state.
In some embodiments, charging, which is shown, is provided with keyboard in equipment, and keyboard may include nonencoded keyboard, non-volume Code key disk includes four independent keys, and four independent keys are respectively that the first key, the second key, third key and the 4th are pressed Key.
In some embodiments, key information can be preset in charging display control program with sequence form, key letter Breath include to identify the first key assignments of the first key, the second key assignments to identify the second key, to identify third key Third key assignments and the 4th key assignments to identify the 4th key, such as: the first key assignments, the second key assignments, third key assignments and the 4th Key assignments is represented sequentially as key_value=1, key_value=2, key_value=3 and key_value=4.
In some embodiments, compound token information may include flag bit set, and flag bit set may include stream Flag bit, charging flag bit, multiplexing flag bit, second mode flag bit and first mode flag bit are measured, such as: flow mark Position, charging flag bit, multiplexing flag bit, second mode flag bit and first mode flag bit be represented sequentially as EA, flag2, Flag3, flag4 and flag1.
As optional embodiment, show that compound token information is arranged in the key information in equipment according to charging, specifically It include: poll key information;It is tune amount active flag and setting charging mark that flow flag bit, which is respectively set, according to the first key assignments Position is charging active flag;It is that tune amount closes mark, setting charging flag bit that flow flag bit, which is respectively set, according to the second key assignments Mark is closed for charging and inverts multiplexing flag bit, or/and, flow flag bit is respectively set as the closing of tune amount according to charge information Mark and setting charging flag bit are that mark is closed in charging;It is the second mould that second mode flag bit, which is arranged, according to third key assignments timesharing Formula mark or first mode mark;First mode flag bit is inverted according to the 4th key assignments.
In some embodiments, EA=1 indicates that flow flag bit is tune amount active flag, and EA=0 indicates flow mark Position is that tune amount closes mark;Flag2=0 indicates that charging flag bit is charging active flag, and flag2=1 indicates charging flag bit It closes and indicates for charging;Flag3=0 indicates that multiplexing flag bit is the first multiplexing mark, and flag3=1 indicates that multiplexing flag bit is Second multiplexing mark;Flag4=0 indicates that second mode flag bit is first mode mark, and flag4=1 indicates second mode mark Will position is second mode mark;Flag1=0 indicates that first mode flag bit is charge information display mark, and flag1=1 is indicated First mode flag bit is that charge information hides mark.
In some embodiments, charging display control program can be using key_value=1 as EA=1 and flag2= 0 trigger condition, key_value=2 is as EA=0, flag2=1 and flag3=~flag3 trigger condition, key_ Trigger condition of the value=3 as flag4=0 and flag4=1, triggering of the key_value=4 as flag1=~flag1 Condition, the trigger condition compared to same key assignments as simple function, charging display control program help to reinforce same key assignments Reusability, thus, it is possible to improve charging display control program based on different key assignments timesharing setting unlike signal position efficiency.
In some embodiments, charging display control program can be made with the flow in charge information more than given threshold For the trigger condition of synchronous setting EA=0 and flag2=1, given threshold, which can be, to be preset in charging display control program Empirical value, such as: given threshold is 10L or 99.99L etc..
As optional embodiment, poll key information is specifically included: being called at key assignments by principal function Module cycle Manage module;Pass through key assignments processing module recursive call keyboard scan module;By keyboard scan module polls key information, and point When return to the first key assignments, the second key assignments, third key assignments and the 4th key assignments to key assignments processing module.
In some embodiments, charging display control program includes principal function module, key assignments processing module, keyboard scan Module, driver module and charging control module, in principal function module implementation procedure, principal function Module cycle calls key assignments Processing module, charging control module and driver module, so that key assignments processing module, charging control module and display driving mould Block circular flow, during key assignments processing module circular flow, key assignments processing module recursive call keyboard scan module, so that Keyboard scan module timesharing can inquire the first key assignments, the second key assignments, third key assignments and the 4th key assignments from key information, have Help shorten the time that keyboard scan module responds key assignments processing module during multiple key assignments are inquired in timesharing, reduce Operating lag duration, thus, the treatment effeciency of multiple key assignments has been effectively ensured.
It is exemplary, while ()
Key_process();
Display();
Vision()}
Wherein, while () indicates principal function module, and Key_process () indicates key assignments processing module, Display () table Show charging control module, Vision () indicates display driving function, during while () every wheel circulation, can pass through three Thread controls Key_process (), Display () and Vision () synchronous operation.
Exemplary, keyboard scan module includes key_scan () function, and key_scan () function includes that first circulation is sentenced Disconnected function, first circulation discriminant function can be with specifically:
Switch (key_temp) // transfer interface identifier corresponding with the key that is triggered
{
Case 0x0e:Key_value=1;// first interface mark is mapped with the first key assignments
Break;// jump out circulation
Case 0x0d:Key_value=2//second interface mark is mapped with the second key assignments
Break;// jump out circulation
Case 0x0b:Key_value=3//third interface identifier and third key assignments map
Break;// jump out circulation
The interface identifier of Case 0x07:Key_value=4//the 4th and the 4th key assignments map
Break;// jump out circulation
}
Wherein, 0x0e indicates that the first interface to identify first interface identifies, and 0x0d is indicated to identify second interface Second interface mark, 0x0b indicates the third interface identifier to identify third interface, and 0x07 is to identify the 4th interface The 4th interface identifier.
In some embodiments, processor can be electrically connected with the first key by first interface, pass through second interface It is electrically connected with the second key, is electrically connected by third interface with third key and is electrically connected by the 4th interface with the 4th key; When button operation presses the first key, the first key is triggered, and the level value of first interface is to indicate the first key not The high level of triggering is changed into the low level to indicate the triggering of the first key.
It should be pointed out that it should be understood by those skilled in the art that second interface, third interface and the 4th interface and first Technical principle of the interface in terms of level transitions is identical, and details are not described herein again.
Poll goes out the first key assignments, the second key assignments, third key assignments and the 4th key to keyboard scan module respectively from key information Value, specifically includes: cycle detection first interface, second interface, third interface and the corresponding level value of the 4th interface;When When the level value of one interface is low level, Key_value=1 is inquired from first circulation discriminant function according to 0x0e, by 1 time It is adjusted in key assignments processing module;When the level value of second interface is low level, according to 0x0d from first circulation discriminant function Key_value=2 is inquired, 2 are pulled back in key assignments processing module;When the level value of third interface is low level, according to 0x0b inquires Key_value=3 from first circulation discriminant function, and 3 are pulled back in key assignments processing module;When the 4th interface Level value be low level when, Key_value=4 is inquired from first circulation discriminant function according to 0x07, pulls back to key for 4 It is worth in processing module.
In some embodiments, flow flag bit is respectively set according to the first key assignments is that tune amount active flag and setting are counted Taking flag bit is charging active flag, is specifically included: inquiring the first multiplexing condition from key assignments processing module according to the first key assignments; According to the first multiplexing conditional synchronization setting flow flag bit be tune amount active flag and setting charging flag bit is charging starting mark Will.
In some embodiments, key assignments processing module may include second circulation discriminant function, and second circulation judges letter Number can be with specifically:
Switch (keytemp) // transfer the corresponding key assignments of the key that is triggered
{ Case 1:EA=1, Flag2=0;The of // the first key assignments and flow flag bit and charging flag bit co-map One multiplexing condition
Break;// jump out circulation
Case 2:EA=0, flag2=1, flag3=~flag3;// the second key assignments and flow flag bit and charging mark Second multiplexing condition of position co-map
Break;// jump out circulation
Case 3:if (flag3) // third key assignments and price adjustment displacement Multiplexing module mapping, replace Multiplexing module by price adjustment When judgement multiplexing flag bit is true, the second multiplexing submodule is called
{ If (single_price < 10) // judgement unit price is less than preset upper limit unit price
Single_price+=0.01;// with the first setting price adjustment step-length height-regulating unit price
Flag4=1;// second mode flag bit is second mode mark
}
Else//by price adjustment displacement Multiplexing module judge be multiplexed flag bit for fictitious time, calling first be multiplexed submodule
{ If (single_price > 0) // judgement unit price is greater than pre-determined lower limit unit price
Single_price-=0.01;// with the second setting price adjustment step-length height-regulating unit price
Flag4=0;// second mode flag bit is first mode mark
}
Break;// jump out circulation
}
Case 4:flag1=~flag1;What the // the four key assignments and first mode mark mapped negates condition
Break;// jump out circulation
}
In some embodiments, flag3=1 indicates that multiplexing flag bit is that very, flag3=0 indicates that multiplexing flag bit is It is false;First multiplexing submodule and the second multiplexing submodule can be interchanged, and after exchange, the first multiplexing submodule is " If (single_ Price < 10) single_price+=0.01;Flag4=1 ", the second multiplexing submodule is " If (single_price > 0) Single_price-=0.01;Flag4=0 ";First setting price adjustment step-length can not also pass through with the second setting price adjustment step-length, Such as: first setting price adjustment step-length be equal to 0.01 and second setting price adjustment step-length be equal to 0.02.
It is exemplary, the first multiplexing condition is inquired from second circulation discriminant function according to the first key assignments, according to first It is multiplexed conditional synchronization setting EA=1 and Flag2=0, not only facilitates the reusability for reinforcing the first key assignments, but also help to improve flow The setting efficiency of flag bit and charging flag bit.
As optional embodiment, it is that tune amount closes mark, setting that flow flag bit, which is respectively set, according to the second key assignments Charging flag bit is that charging closes mark and inverts multiplexing flag bit, is specifically included: according to the second key assignments from key assignments processing module Middle the second multiplexing of inquiry condition;It is that tune amount closes mark, setting charging according to the second multiplexing conditional synchronization setting flow flag bit Flag bit is that charging closes mark and inverts multiplexing flag bit.
In some embodiments, the second multiplexing condition is inquired from second circulation discriminant function according to the second key assignments, According to the second multiplexing conditional synchronization, EA=0 and Flag2=1 is set;It, will according to the second multiplexing condition and as flag3=0 Flag3=0 inverts as flag3=1, as flag3=1, inverts flag3=1 for flag3=0 according to the second multiplexing condition, Not only facilitate the reusability of the second key assignments of reinforcement, but also help to improve the setting efficiency of flow flag bit and charging flag bit.
In some embodiments, flow flag bit is respectively set according to charge information is that tune amount closes mark and setting is counted Taking flag bit is that mark is closed in charging, is specifically included: calling charging control module by principal function Module cycle;Pass through charging control Molding block transfers flow from charge information;Judge whether flow is greater than or equal to given threshold, if it is not, then keeping flow mark Position is that tune amount opens mark and charging flag bit is that mark is opened in charging, if so, synchronous setting flow flag bit is the closing of tune amount Mark and setting charging flag bit are that mark is closed in charging.
In some embodiments, Display () if (!Flag2) // judge that charging flag bit is false
{ the monovalent product between flow of total_price=total_water*single_price//calculating, obtains Total price
}
Else//judgement charging flag bit is true
{return total_price;
}
If (total_water >=99.99) // judge flow not less than given threshold
{ EA=0;// flow flag bit is that tune amount closes label
Flag2=1;// charging flag bit is that mark is closed in charging
}
Else//judgement flow is less than given threshold
{ EA=1;// flow flag bit is that tune amount opens mark
Flag2=0;// charging flag bit is that mark is opened in charging
}
}
Wherein, Flag2=0 indicates that charging flag bit is vacation, and Flag2=1 indicates that charging flag bit is true;When flow is not small When given threshold, synchronous setting EA=0 and Flag2=1, charging control module stop calculating total price;When flow is less than setting When threshold value, EA=1 and Flag2=0 are kept, charging control module keeps calculating total price.
In the case of the second key is not triggered, flow can be used as more than or equal to given threshold and synchronize automatic setting Flow flag bit is that tune amount closes mark and setting charging flag bit is the trigger condition that mark is closed in charging, and it is aobvious to facilitate charging Show that equipment saves energy consumption.
In some embodiments, second mode flag bit is arranged according to third key assignments timesharing is second mode mark or the One mode flags, specifically include: according to third key assignments, price adjustment displacement Multiplexing module is called in timesharing from key assignments processing module;Pass through Multiplexing flag bit is transferred in price adjustment displacement Multiplexing module timesharing;When being multiplexed flag bit is the first multiplexing mark, according to the first multiplexing Mark calls the first multiplexing submodule from price adjustment displacement Multiplexing module;According to the first multiplexing submodule, second mode mark is set Position is first mode mark;When being multiplexed flag bit is the second multiplexing mark, mark is multiplexed from price adjustment displacement multiplexing according to second The second multiplexing submodule is called in module;It is second mode mark according to the second multiplexing submodule setting second mode flag bit.
In some embodiments, as flag3=0, the first multiplexing submodule is called from price adjustment displacement Multiplexing module, By the first multiplexing submodule, Flag4=0 is set;As flag3=1, the second multiplexing is called from price adjustment displacement Multiplexing module Submodule is arranged Flag4=1 by the second multiplexing submodule, not only facilitates the reusability for reinforcing the 4th key assignments, but also be effectively ensured The reliability of second mode flag bit.
As optional embodiment, the first mode flag bit is inverted according to the 4th key assignments, is specifically included: according to The timesharing inquiry from key assignments processing module of four key assignments negates condition;First mode flag bit is inverted according to the condition timesharing of negating as meter Charge information hides mark and charge information display mark.
In some embodiments, the condition of negating is inquired from second circulation discriminant function according to the 4th key assignments, when When flag1=0, flag1=0 is inverted as flag1=1 according to the condition that negates;It, will according to the condition that negates as flag1=1 Flag1=1 inverts as flag1=0, not only facilitates the reusability for reinforcing the 4th key assignments, but also helps to improve first mode mark The setting efficiency of position.
In some embodiments, sequentially in time, synchronous setting flow flag bit is tune amount active flag and setting Charging flag bit is charging active flag, and synchronous setting flow flag bit is that tune amount closes mark, setting charging flag bit is meter Taking closing mark and being multiplexed flag bit from the first multiplexing traffic sign placement is the second multiplexing mark, and second mode flag bit is arranged For second mode mark, first mode flag bit is shown that mark switches to charge information and hides mark from charge information, by the One mode flags position hides mark from charge information and switches to charge information display mark, and multiplexing flag bit is marked from the second multiplexing Will is set as the first multiplexing mark, sets first mode mark for second mode flag bit, by first mode flag bit from meter Charge information shows that mark switches to charge information and hides mark, realizes multiple flag bits in timesharing setting compound token information.
In some embodiments, sequentially in time, synchronous setting flow flag bit is tune amount active flag and setting Charging flag bit is charging active flag, and first mode flag bit is shown that mark switches to charge information and hides from charge information Mark, synchronous setting flow flag bit are that tune amount closes mark, setting charging flag bit is that charging closes mark and marks multiplexing Will position is the second multiplexing mark from the first multiplexing traffic sign placement, second mode mark is set by second mode flag bit, by the One mode flags position hides mark from charge information and switches to charge information display mark, realizes that compound token information is arranged in timesharing In multiple flag bits.
As optional embodiment, according to compound token information Time-sharing control charge information be in charging display pattern or Charging stealth mode, specifically includes: first mode flag bit is called in timesharing from compound token information;When first mode flag bit When showing mark for charge information, show that mark control charge information is in charging display pattern according to charge information;When first When mode flags position is that charge information hides mark, is hidden according to charge information and indicate that control charge information is in charging and hides mould Formula.
In some embodiments, mark is hidden from charge information when first mode flag bit be switched to charge information show When mark, charging stealth mode is switched into charging display pattern;When first mode flag bit shows that mark is cut from charge information Be changed to charge information hide mark when, charging display pattern is switched into charging stealth mode.
In some embodiments, under charging stealth mode, driver module drive digital tube display extinguishes, or Person, non-charge information is covered on charge information by driver module drive digital tube display, alternatively, driver module Charge information is switched to non-charge information by drive digital tube display;Wherein, non-charge information include water temperature information or/and when Clock information improves display by non-charge information so that charge information and non-charge information timesharing are in display state Reusability shows equipment from charging convenient for user during charging shows that equipment is that charge information persistently provides billing function The upper different types of information of browsing, improves user experience.
As optional embodiment, charging stealth mode includes the first hiding subpattern and the second hiding subpattern, root Mark control charge information is hidden according to charge information and is in charging stealth mode, specifically includes: mark is hidden according to charge information Second mode flag bit is transferred from compound token information;When second mode flag bit is first mode mark, according to first Mode flags control charge information is in the first hiding subpattern;When second mode flag bit is second mode mark, according to Second mode mark control charge information is in the second hiding subpattern.
In some embodiments, vision () if (!Flag2) // judge that charging flag bit is false
{ disput [0]=11;// charactron does not show charge information
Disput [1]=(int) single_price;Integer in // numeral method unit price
Disput [2]=(int) (single_price*10) %10;Ten of decimal in // numeral method unit price
A position of decimal in disput [3]=(int) (single_price*100) %10//numeral method unit price
Disput [4]=(int) total_water/10;Ten of integer in // numeral method flow
Disput [5]=(int) total_water%10;A position of integer in // numeral method flow
Disput [6]=(int) (total_water*10) %10;Ten of decimal in // numeral method flow
Disput [7]=(int) (total_water*100) %10;A position of decimal in // numeral method flow
}
Else//judgement charging flag bit is true
{ disput [0]=11;// charactron does not show charge information
Disput [1]=(int) single_price;Integer in // numeral method unit price
Disput [2]=(int) (single_price*10) %10;Ten of decimal in // numeral method unit price
A position of decimal in disput [3]=(int) (single_price*100) %10//numeral method unit price
Disput [4]=(int) tota_price/10;Ten of integer in // numeral method total price
Disput [5]=(int) total_price%10;A position of integer in // numeral method total price
Disput [6]=(int) (total_price*10) %10;Ten of decimal in // numeral method total price
Disput [7]=(int) (total_price*100) %10;A position of decimal in // numeral method total price
}
If(!Flag1) // judge that first mode flag bit is false
If (i==1 | | i==5) P0=dian [disput [i]];// numeral method decimal point
}
Else//judgement first mode flag bit is true
P0=ofxx//disappear shadow
}
If (flag4) // judge that second mode flag bit is true
{ Display_ds18b20 () // temperature display function
}
Else//judgement second mode flag bit is false
{ Time_proc () // clock display function
}
}
Wherein, Flag1=0 indicates that first mode flag bit is vacation, and Flag1=1 indicates that first mode flag bit is true; Flag4=1 indicates that second mode flag bit is that very, flag4=0 indicates that second mode flag bit is false.
In some embodiments, under the first hiding subpattern, pass through temperature display function drive numeral method device Unit price and total price are replaced with into temperature information, under the second hiding subpattern, pass through clock display function drive numeral method Unit price and flow are replaced with clock information by device.
As optional embodiment, charging control module further includes timer interruption module, is believed according to compound token Breath Time-sharing control charge information is in front of charging display pattern or charging stealth mode, further includes following steps: from compound mark Flow flag bit is transferred in note information;When flow flag bit is that tune amount closes mark, Off Timer interrupt module;Work as flow When flag bit is tune amount active flag, start timer interruption module;By the timer interruption module after starting to set stream Velocity modulation high flow capacity;According to flow set charge information.
In some embodiments, timer interruption module can be with specifically:
{ if (++ num==10) // cycle-index is 10 to timer () interrupt 1
{ num=0;// initial number is 0
Total_water=total_water+0.01;// to set flow velocity cumulative calculation flow
}
}
It is specifically included as optional embodiment according to flow set charge information: Multiplexing module is replaced by price adjustment Multiplexing flag bit is transferred from compound token information;When being multiplexed flag bit is the first multiplexing mark, pass through price adjustment displacement multiplexing Unit price is turned down or be turned up to module with the first setting price adjustment step-length;When being multiplexed flag bit is the second multiplexing mark, set by price adjustment It changes Multiplexing module and is turned up or turns down unit price with the second setting price adjustment step-length;According to unit price and flow set charge information.
In some embodiments, when judging flag3=0 by price adjustment displacement Multiplexing module, according to flag3=0 from tune The first multiplexing submodule is called in valence displacement Multiplexing module, and list is turned down with the first predetermined price adjustment step-length by the first multiplexing submodule Valence;When judge flag3=1 by price adjustment displacement Multiplexing module, is replaced according to flag3=1 from price adjustment and call the in Multiplexing module Unit price is turned up with the second predetermined price adjustment step-length by the second multiplexing submodule, wherein the first predetermined price adjustment step in two multiplexing submodules Long and the second predetermined price adjustment step-length is to be preset at the identical value of price adjustment displacement Multiplexing module, and unit price can be made constant.
As optional embodiment, according to flow set charge information, specifically further include: adjusted from compound token information Take charging flag bit;When charging flag bit is that mark is closed in charging, setting unit price and flow are charge information;When charging mark When position is charging unlatching mark, the product of unit price with flow is calculated, obtains total price, and setting total price and unit price are charge information.
In some embodiments, charging control module transfers Flag2 from compound token information, passes through charging control mould When block judges Flag2=0, indicates that charging flag bit is that mark is opened in charging, then calculate the product of unit price and flow.
In some embodiments, driver module is transferred from compound token information and judges whether Flag2 is 1, If so, indicating that charging flag bit is that mark is closed in charging, then combines unit price and flow is charge information, if it is not, indicating charging mark Will position is that mark is opened in charging, then combines total price and unit price is charge information, in this way, charging shows that equipment can be with various combination It shows charge information, helps to improve charging and show the reusability of equipment and the flexibility of display charge information.
It should be pointed out that can be calculated under charging display pattern or charging stealth mode total price and combination total price and Unit price is charge information, and under charging stealth mode, charge information is not shown.
Embodiment two
As shown in figure 3, a kind of structural schematic diagram of charge information Time-sharing control device of the embodiment of the present invention, comprising: letter Setup module is ceased, compound token information is arranged in the key information for being shown in equipment according to charging;Time-sharing control module, is used for Charging display pattern or charging stealth mode are according to compound token information Time-sharing control charge information.
Embodiment three
As shown in figure 4, a kind of charging of the embodiment of the present invention shows the structural schematic diagram of equipment, comprising: display is matched It is set to and is connect with single chip communication and show charge information;Single-chip microcontroller is configured as holding when charging display control program is arranged Charge information Time-sharing control method described in any embodiment in row embodiment one.
As optional embodiment, as shown in figure 5, display can use numeral method device, numeral method device Charge information or water temperature information or clock information are shown to timesharing;Single-chip microcontroller can use MCU central controller, MCU Center control is electrically connected with numeral method device, and the center MCU is controlled to execute in embodiment one described in any embodiment Charge information Time-sharing control method.
As shown in figure 5, charging show equipment on be additionally provided with the first key being electrically connected respectively with MCU central controller, Second key, third key, the 4th key, temperature sensor, real time clock circuit, photo resistance, relay, buzzer and LED light.
Temperature sensor, to detect the water temperature information in charging display equipment;Real time clock circuit, to detect environment In clock information;MCU central controller also shows charge information or water temperature information to drive digital tube display timesharing Or clock information.
MCU central controller according to water temperature information also to drive buzzer to carry out temperature alarming, and according to identify The first key assignments unlatching of first key can be used to indicate that charging shows that equipment provides the relay of billing function for charge information, with And relay is closed according to the second key assignments to identify the second key.
Photo resistance is to detect the ambient light information in environment, and MCU central controller is also to according to ambient light information Drive LED light;When ambient light information indicates daytime, MCU central controller drives LED light to extinguish, when ambient light information indicates When night, MCU central controller driving LED light is lighted.
Reader should be understood that in the description of this specification, reference term " aspect ", " optional embodiment " or " some The description of specific example " etc. means that specific features, step or feature described in conjunction with this embodiment or example are contained in this hair In at least one bright embodiment or example, term " first " and " second " etc. are used for description purposes only, and should not be understood as referring to Show or imply relative importance or implicitly indicates the quantity of indicated technical characteristic." first " and " are defined as a result, Two " etc. feature can explicitly or implicitly include at least one of the features.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of charge information Time-sharing control method, which comprises the following steps:
Show that compound token information is arranged in the key information in equipment according to charging;
Charging display pattern or charging stealth mode are according to the compound token information Time-sharing control charge information.
2. charge information Time-sharing control method according to claim 1, which is characterized in that according to the compound token information Time-sharing control charge information is in charging display pattern or charging stealth mode, specifically includes:
First mode flag bit is called in timesharing from the compound token information;
When the first mode flag bit is charge information display mark, is shown and indicated described in control according to the charge information Charge information is in the charging display pattern;
When the first mode flag bit is that charge information hides mark, is hidden and indicated described in control according to the charge information Charge information is in the charging stealth mode.
3. charge information Time-sharing control method according to claim 2, which is characterized in that the charging stealth mode includes First hiding subpattern and the second hiding subpattern hide the mark control charge information according to the charge information and are in institute Charging stealth mode is stated, is specifically included:
Mark, which is hidden, according to the charge information transfers second mode flag bit from the compound token information;
When the second mode flag bit is first mode mark, the charge information is controlled according to the first mode mark It is in the described first hiding subpattern;
When the second mode flag bit is second mode mark, the charge information is controlled according to the second mode mark It is in the described second hiding subpattern.
4. charge information Time-sharing control method according to claim 1-3, which is characterized in that according to described multiple It closes mark information Time-sharing control charge information to be in front of charging display pattern or charging stealth mode, further includes following steps:
Flow flag bit is transferred from the compound token information;
When the flow flag bit is that tune amount closes mark, Off Timer interrupt module;
When the flow flag bit is tune amount active flag, start the timer interruption module;
Flow is turned up to set flow velocity by the timer interruption module after starting;
According to charge information described in the traffic generating.
5. charge information Time-sharing control method according to claim 4, which is characterized in that according to the traffic generating Charge information specifically includes:
Multiplexing flag bit is transferred from the compound token information by price adjustment displacement Multiplexing module;
When the multiplexing flag bit is the first multiplexing mark, Multiplexing module is replaced with the first setting price adjustment step by the price adjustment Unit price is turned down or be turned up to length;
When the multiplexing flag bit is the second multiplexing mark, Multiplexing module is replaced with the second setting price adjustment step by the price adjustment It is long to be turned up or turn down the unit price;
According to charge information described in the unit price and the traffic generating.
6. charge information Time-sharing control method according to claim 4, which is characterized in that according to the traffic generating Charge information, specifically further include:
Charging flag bit is transferred from the compound token information;
When the charging flag bit is that mark is opened in charging, the product of the flow and unit price is calculated, obtains total price, and combine The unit price and the flow are the charge information;
When the charging flag bit is that mark is closed in charging, combines the unit price and the total price is the charge information.
7. charge information Time-sharing control method according to claim 1-3, which is characterized in that the compound token Information includes flux scale will position, charging flag bit, is multiplexed flag bit, second mode flag bit and first mode flag bit, according to Charging shows that compound token information is arranged in the key information in equipment, specifically includes:
Key information described in poll, the key information include the first key assignments, the second key assignments, third key assignments and the 4th key assignments;
It is tune amount active flag and the setting charging flag bit that the flow flag bit, which is respectively set, according to first key assignments For charging active flag;
It is that tune amount closes mark, the charging flag bit is arranged is that the flow flag bit, which is respectively set, according to second key assignments Charging closes mark and inverts the multiplexing flag bit, or/and, the flow flag bit is respectively set according to the charge information Closing mark for the tune amount and the charging flag bit is arranged is that mark is closed in the charging;
It is second mode mark or first mode mark that the second mode flag bit, which is arranged, according to the third key assignments timesharing;
The first mode flag bit is inverted according to the 4th key assignments.
8. charge information Time-sharing control method according to claim 7, which is characterized in that key information described in poll, tool Body includes:
Key assignments processing module is called by principal function Module cycle;
Pass through the key assignments processing module recursive call keyboard scan module;
By key information described in the keyboard scan module polls, and timesharing return first key assignments, second key assignments, The third key assignments and the 4th key assignments are to the key assignments processing module;
It is tune amount active flag and the setting charging flag bit that the flow flag bit, which is respectively set, according to first key assignments For charging active flag, specifically include:
The first multiplexing condition is inquired from the key assignments processing module according to first key assignments;
It is the tune amount active flag and the setting meter that the flow flag bit, which is arranged, according to the first multiplexing conditional synchronization Taking flag bit is the charging active flag;
It is that tune amount closes mark, the charging flag bit is arranged is that the flow flag bit, which is respectively set, according to second key assignments Charging closes mark and inverts the multiplexing flag bit, specifically includes:
The second multiplexing condition is inquired from the key assignments processing module according to second key assignments;
The flow flag bit is arranged according to the second multiplexing conditional synchronization to be tune amount closing mark, the charging is arranged Flag bit is that the charging closes mark and inverts the multiplexing flag bit;
The flow flag bit is respectively set according to the charge information to be tune amount closing mark and the charging mark is arranged Will position is that mark is closed in the charging, is specifically included:
Charging control module is called by the principal function Module cycle;
Flow is transferred from the charge information by the charging control module;
Judge whether the flow is greater than or equal to given threshold, if it is not, then keeping the flow flag bit is that the tune amount is opened It opens mark and the charging flag bit is that mark is opened in charging, if so, synchronous be arranged the flow flag bit as tune amount pass It closes mark and the setting charging flag bit is that mark is closed in the charging;
It is second mode mark or first mode mark, tool that the second mode flag bit, which is arranged, according to the third key assignments timesharing Body includes:
According to the third key assignments, price adjustment displacement Multiplexing module is called in timesharing from the key assignments processing module;
Multiplexing module timesharing, which is replaced, by the price adjustment transfers the multiplexing flag bit;
When the multiplexing flag bit is the first multiplexing mark, multiplexing mould is replaced from the price adjustment according to the first multiplexing mark The first multiplexing submodule is called in block;
It is the first mode mark that the second mode flag bit, which is arranged, according to the first multiplexing submodule;
When the multiplexing flag bit is the second multiplexing mark, multiplexing mould is replaced from the price adjustment according to the second multiplexing mark The second multiplexing submodule is called in block;
It is second mode mark that the second mode flag bit, which is arranged, according to the second multiplexing submodule;
The first mode flag bit is inverted according to the 4th key assignments, is specifically included:
According to the 4th key assignments, timesharing inquiry negates condition from the key assignments processing module;
To negate condition timesharing to invert the first mode flag bit be that charge information hides mark and charge information is aobvious according to described Indicating will.
9. a kind of charge information Time-sharing control device characterized by comprising
Compound token information is arranged in information setup module, the key information for being shown in equipment according to charging;
Time-sharing control module, by be according to the compound token information Time-sharing control charge information charging display pattern or based on Take stealth mode.
10. a kind of charging shows equipment characterized by comprising
Display is configured as connecting with single chip communication and shows charge information;
Single-chip microcontroller is configured as the perform claim when charging display control program is arranged and requires the described in any item charging letters of 1-8 Cease Time-sharing control method.
CN201910643396.4A 2019-07-17 2019-07-17 A kind of charge information Time-sharing control method, apparatus and charging show equipment Pending CN110459012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910643396.4A CN110459012A (en) 2019-07-17 2019-07-17 A kind of charge information Time-sharing control method, apparatus and charging show equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910643396.4A CN110459012A (en) 2019-07-17 2019-07-17 A kind of charge information Time-sharing control method, apparatus and charging show equipment

Publications (1)

Publication Number Publication Date
CN110459012A true CN110459012A (en) 2019-11-15

Family

ID=68481699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910643396.4A Pending CN110459012A (en) 2019-07-17 2019-07-17 A kind of charge information Time-sharing control method, apparatus and charging show equipment

Country Status (1)

Country Link
CN (1) CN110459012A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2468020Y (en) * 2001-02-22 2001-12-26 耿惊涛 Magnetic card type digital gasometer
CN101071554A (en) * 2006-05-08 2007-11-14 富士通西门子电脑股份有限公司 Visual display device and method for switching a visual display device to an energy-saving state
CN101178839A (en) * 2007-12-05 2008-05-14 上海电器科学研究所(集团)有限公司 Intelligent remote controller and dynamic state update apparatus information method thereof
CN101419508A (en) * 2008-12-11 2009-04-29 深圳华为通信技术有限公司 Input device and terminal equipment
CN202259962U (en) * 2011-02-01 2012-05-30 盛文远 Household power supply wiring board with power consumption measuring function
CN103677239A (en) * 2012-09-24 2014-03-26 联想(北京)有限公司 Wireless display terminal control method and device
CN104035670A (en) * 2013-03-06 2014-09-10 联想(北京)有限公司 Switching method, switching device and electronic device
CN104581327A (en) * 2014-12-19 2015-04-29 深圳创维数字技术有限公司 Remote control method and equipment
CN105049886A (en) * 2015-07-10 2015-11-11 Tcl集团股份有限公司 Method and system for reporting infrared remote controller events
US9588659B2 (en) * 2010-06-18 2017-03-07 Kazark, Inc. Information display
CN106775282A (en) * 2016-11-10 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Operate the method and device of terminal
JP2018044995A (en) * 2016-09-12 2018-03-22 カシオ計算機株式会社 Information display device
CN108495161A (en) * 2018-03-26 2018-09-04 广州视源电子科技股份有限公司 Button processing method, device, storage medium and computer equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2468020Y (en) * 2001-02-22 2001-12-26 耿惊涛 Magnetic card type digital gasometer
CN101071554A (en) * 2006-05-08 2007-11-14 富士通西门子电脑股份有限公司 Visual display device and method for switching a visual display device to an energy-saving state
CN101178839A (en) * 2007-12-05 2008-05-14 上海电器科学研究所(集团)有限公司 Intelligent remote controller and dynamic state update apparatus information method thereof
CN101419508A (en) * 2008-12-11 2009-04-29 深圳华为通信技术有限公司 Input device and terminal equipment
US9588659B2 (en) * 2010-06-18 2017-03-07 Kazark, Inc. Information display
CN202259962U (en) * 2011-02-01 2012-05-30 盛文远 Household power supply wiring board with power consumption measuring function
CN103677239A (en) * 2012-09-24 2014-03-26 联想(北京)有限公司 Wireless display terminal control method and device
CN104035670A (en) * 2013-03-06 2014-09-10 联想(北京)有限公司 Switching method, switching device and electronic device
CN104581327A (en) * 2014-12-19 2015-04-29 深圳创维数字技术有限公司 Remote control method and equipment
CN105049886A (en) * 2015-07-10 2015-11-11 Tcl集团股份有限公司 Method and system for reporting infrared remote controller events
JP2018044995A (en) * 2016-09-12 2018-03-22 カシオ計算機株式会社 Information display device
CN106775282A (en) * 2016-11-10 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Operate the method and device of terminal
CN108495161A (en) * 2018-03-26 2018-09-04 广州视源电子科技股份有限公司 Button processing method, device, storage medium and computer equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
刘建清: "《轻松玩转51单片机C语言》", 31 March 2011 *
刘桂涛: "楼宇设备电气系统节能控制器的优化设计", 《现代电子技术》 *
王洪庆: "低功耗预付费智能燃气表的研制", 《制造业自动化》 *
闵永智: "《高等学校仪器科学与技术"十三五"规划教材 电气测试技术》", 31 October 2017 *

Similar Documents

Publication Publication Date Title
US9886058B2 (en) Links
CN200973703Y (en) Physiological signal monitoring device
CN105790783A (en) Group movement bracelet system for scenic area
CN201188936Y (en) Automatic help and position crutch
CN110459012A (en) A kind of charge information Time-sharing control method, apparatus and charging show equipment
CN106601142A (en) Intelligent chest card
CN108734805A (en) A kind of SCM Based garment enterprise parts counter
CN110033257A (en) A kind of intelligence payment bracelet and its payment system based on wireless communication technique
CN207411527U (en) A kind of intelligent heating clothes
CN205750914U (en) Basketball Match control system based on Internet of Things
CN113159824B (en) Advertisement media control system based on face recognition
CN206294228U (en) Cell-phone cover
CN206880227U (en) A kind of intelligent bracelet of calling out the numbers
CN208080758U (en) Instruction basket based on ZigBee technology
CN208607267U (en) Intelligent electric energy meter door displays
CN206292945U (en) Intelligent key chain
CN208133890U (en) Multifunctional operation ticket clip and managing and control system
CN109360346A (en) A kind of Left baggage method and deposit controller
CN217605005U (en) Bicycle bluetooth wireless stopwatch
CN213109657U (en) Bicycle handlebar stands based on big dipper location
CN220137562U (en) Intelligent watch circuit capable of turning wrist to lighten screen
CN207352491U (en) A kind of circuit for intelligent control water dispenser
CN208506562U (en) One kind is swiped the card type electric iron control circuit
CN218788183U (en) Auxiliary game equipment
CN2253205Y (en) Automatic alarm for medical infusion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191115

RJ01 Rejection of invention patent application after publication