CN110112815B - Control method and controller for sharing charging wire and sharing charging wire - Google Patents

Control method and controller for sharing charging wire and sharing charging wire Download PDF

Info

Publication number
CN110112815B
CN110112815B CN201910392387.2A CN201910392387A CN110112815B CN 110112815 B CN110112815 B CN 110112815B CN 201910392387 A CN201910392387 A CN 201910392387A CN 110112815 B CN110112815 B CN 110112815B
Authority
CN
China
Prior art keywords
charging
time
voltage
terminal
charging wire
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.)
Active
Application number
CN201910392387.2A
Other languages
Chinese (zh)
Other versions
CN110112815A (en
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.)
Wuhan Sensor Electronics Co ltd
Original Assignee
Wuhan Sensor Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Sensor Electronics Co ltd filed Critical Wuhan Sensor Electronics Co ltd
Priority to CN201910392387.2A priority Critical patent/CN110112815B/en
Publication of CN110112815A publication Critical patent/CN110112815A/en
Application granted granted Critical
Publication of CN110112815B publication Critical patent/CN110112815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention relates to the field of shared charging wires, in particular to a control method, a controller and a shared charging wire for the shared charging wire. In the process of charging the terminal by sharing the charging wire, the condition of mains supply power failure may occur. In order to reduce the trouble and economic loss of a user to scan a code again to open the charging wire. According to the scheme, the remaining time is read when the shared charging wire is connected to the 220V commercial power again, and the remaining time is found, so that the power failure in the last charging process is judged. And further detecting the current voltage and comparing and judging the voltage stored before the power failure, judging whether a terminal is accessed when the power is re-powered, and sequentially determining whether the electronic switch is automatically switched on if the re-powered terminal is not the terminal before the power failure. The shared charging line is automatically opened through comparison of the remaining time and the voltage, so that the trouble of scanning codes again by a user and the economic loss of paying again are avoided. When also avoiding automatic opening the charging wire, what insert is different terminals, influences operator's interests.

Description

Control method and controller for sharing charging wire and sharing charging wire
Technical Field
The invention relates to the field of shared charging wires, in particular to a control method, a controller and a shared charging wire for the shared charging wire.
Background
A business store, a bubble bar, or other scene, may forget to take a charging cord or a charging treasure, and various shared charging devices have appeared in the market to provide solutions, such as: sharing treasured, sharing charging wire charge. The existing shared charging wire, whether in a key type or other modes, controls the on and off of an electronic switch to control the charging of an external terminal. Basically, the timing mode of the charging time is selected through WeChat, Payment treasures or APP code scanning payment. An external terminal such as a mobile phone, a tablet computer, or a wearable electronic device.
However, in the charging process, abnormal situations, such as power failure, adapter plug looseness, abnormal fluctuation of a power grid and the like, can be avoided, the charging line is restarted, the output state is changed, the terminal to be charged cannot be charged continuously, and a user can use the charging line again only by scanning codes again and paying. This causes inconvenience and economic loss to the user.
Disclosure of Invention
And the present invention is intended to solve this problem, a control method is provided according to a first aspect of the present invention.
A method of controlling shared charging lines, comprising:
reading a first time saved last time, wherein the first time is a charging remaining time;
and judging that the last charging task is not finished according to the fact that the read first time is larger than 0, starting charging, and continuing to count down by taking the read first time as a starting point.
In the normal charging process, the charging remaining time of the terminal is saved at intervals. And if the power failure occurs in the middle, when the shared charging wire is electrified again, reading the charging remaining time stored last time, namely the remaining time stored last time before the power failure. If the read remaining time is larger than 0, the electronic switch is automatically turned on to start charging, and counting down is continued from the read last stored charging remaining time. If the read remaining time is 0, namely no remaining time exists, the last charging task is judged to be normally finished.
According to the scheme, the remaining time is read after the shared charging wire is connected to the 220V mains supply again, the remaining time is found, the power failure in the last charging process is judged, and the shared charging wire is automatically started to continue charging the terminal. The trouble that the user scans the codes again and the economic loss of paying again are avoided, the user is prevented from being unaware of abnormal power failure in the charging process and delaying the use of the user, the benefit of the user is guaranteed, the user experience is improved, and the customer complaint is reduced.
For the operator, it is not desirable that the next user can continue to use the remaining time that the previous user did not use after the previous user left the remaining time that was not used up, and therefore, there is a further need to identify whether the remaining time that was not used up is of the same user or of the same type or of the same handset. For this reason, a further need exists to detect the recharged terminal.
Further, when the first time of reading is greater than 0, reading a first voltage stored last time, wherein the first voltage is a voltage detected before the first time is stored;
detecting a second voltage, which is a currently detected voltage;
and judging that the current terminal is the terminal which has not finished the last charging task according to the fact that the second voltage is approximately equal to the first voltage, starting charging, and starting countdown by taking the read first time as a starting point.
And according to the fact that the second voltage is not approximately equal to the first voltage, judging that the current terminal is not the terminal which is not finished by the last charging task, and clearing and storing the reading time.
The terminals of different models are connected into the charging wire, and the equivalent input impedance is different. By utilizing the phenomenon, when the terminal is connected into the charging wire, the detection voltage can distinguish different terminals. In the scheme, the terminal is connected into the shared charging wire, before the terminal is charged, the voltage of the terminal when the terminal is connected into the shared charging wire can be detected, and the detected voltage value is stored when the electronic switch is switched on to start charging. And when the power supply is powered on after the power failure, reading the remaining time and the voltage saved before the power failure, and if the remaining time is still available and the voltage detected again is almost the same as the voltage detected before the power failure, judging that the terminal is the same terminal, and automatically continuing to charge.
According to a second aspect of the present solution, a controller is provided.
A controller comprising a memory and a processor, disposed in a shared charging line, the memory for storing instructions for controlling the processor to operate to perform a method comprising as described in the first aspect, and data comprising the time and voltage involved in the first aspect.
According to a third aspect of the present solution a shared charging cable is provided.
A shared charging cable comprising a controller as described in the second aspect.
Further, the controller comprises a voltage acquisition circuit.
Drawings
Fig. 1, a preferred embodiment disclosed according to the first aspect of the present invention.
Detailed Description
In order to make the implementation, technical solutions and advantages of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings. It is to be understood that the embodiments selected may be preferred embodiments, but that not all embodiments are possible. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present specification.
Fig. 1, a preferred embodiment disclosed according to the first aspect of the present invention.
S01: the last saved first time Tr, which is the charge remaining time, is read.
The charging remaining time is a dynamic time in the charging process, and is the remaining charging time collected at fixed time intervals or a certain frequency, for example: the charging time selected by the user is 2 hours, and the charging remaining time is stored every 20 minutes, then the data are stored in sequence: 120 minutes, 100 minutes, 80 minutes, 60 minutes, 40 minutes, 20 minutes, 0 minute. This example is illustrative and not limiting as the scheme is to preserve the remaining time at this frequency. If power failure occurs in the charging process, when the 220V mains supply is accessed when the power is on and started, the first time Tr stored last time is read, and the last remaining time Tr stored before the power failure occurs is read.
S02: determine if Tr > 0?
And judging that the last charging task is not finished according to the fact that the read first time is larger than 0, starting charging, and starting to count down by taking the read first time as a starting point.
And judging that the last charging task is finished according to the read first time of 0, and waiting for an instruction, wherein the instruction is a charging starting instruction triggered according to user operation.
For example: reading the last stored charging remaining time as 60 minutes, considering that the power failure occurs when the remaining time is 60 minutes, automatically switching on the electronic switch without any operation of a user, and continuously counting down the charging with the remaining time taking 60 minutes as a starting point. The actual time error is ignored in this scheme. For example: the user selects the charging time to be 2 hours, the shared charging line stores the residual charging time every 20 minutes, the power failure occurs when the user charges for 30 minutes, the stored data is 140, and after the power is re-electrified, the residual charging time is 140 and is unrelated to the middle power failure time. And judging whether power failure occurs or not according to whether the residual time is read during power-on, if the residual time is read, determining that the power failure occurs, automatically switching on the electronic switch, avoiding the user from operating again, and continuously counting down the residual time from the read time, so as to avoid the loss of the user caused by the power failure.
It is undesirable for the operator that the next user can continue to use the remaining time that the previous user did not use after the previous user left the unused time. For example: the first user selects the charging time to be 2 hours, the power is cut off after the charging is carried out for 20 minutes, and the user dials away the terminal to leave. And after the call comes, the second user accesses the terminal, the shared charging line reads the stored residual 140 minutes, and the second user can use the residual time of the first user without any operation. To avoid this, it is further desirable to identify whether the unspent remaining time is for the same user or the same type or the same handset.
S03: reading a last saved first voltage Vs when the read first time Tr > 0, the first voltage Vs being a voltage detected before saving the first time;
s04: detecting a second voltage Vc, wherein the second voltage Vc is the currently detected voltage;
and judging that the current terminal is the terminal which has not finished the last charging task according to the fact that the second voltage is approximately equal to the first voltage, starting charging, and starting countdown by taking the read first time as a starting point.
And according to the fact that the second voltage is not approximately equal to the first voltage, judging that the current terminal is not the terminal which is not finished by the last charging task, and clearing and storing the reading time.
When step S02 is executed, the power-down problem can be solved, and the benefit of the user can be ensured. Further, in order to guarantee the benefit of an operator, when the reading Tr is larger than 0, the situation that power failure occurs in the charging process is judged, and a terminal identification step is added before the automatic conduction of the electronic switch is executed to start charging. The charging wire is connected to the terminals of different models, and equivalent input impedance is different. By utilizing the rule, when the terminals are connected into the shared charging wire, different terminals can be distinguished by comparing the detected voltages. According to the scheme, the storage terminal is connected to the shared charging line and starts the voltage Vs detected before charging. When the power is on after the power failure, reading the remaining time Tr stored before the power failure and the currently detected voltage Vc, if the remaining time exists and the voltage Vc detected again is almost the same as the voltage Vs stored before the power failure, judging that the terminal is the same terminal, automatically continuing charging, and if the difference between Vc and Vs is larger, judging that the terminal is not the same terminal, clearing and storing the read time.
In this control scheme, the method further comprises the steps of:
s05, starting charging and counting down by taking the read first time as a starting point;
storing the current charging remaining time according to a set frequency;
when the current charging remaining time is 0, the countdown is finished,
and closing charging and waiting for an instruction, wherein the instruction is a charging opening instruction triggered according to user operation.
Further, when charging is started, the read remaining time of the last storage is continued, and the current remaining time of charging is continuously stored according to the set frequency. And when the countdown is finished, the charging is closed, and the next user is waited to scan the code and start the charging.
S06: upon receipt of the instruction;
saving a second time Te, wherein the second time Te is the charging time selected by the user operation, and counting down the second time;
detecting the current voltage;
and according to the detected current voltage being greater than 0, judging that a terminal is accessed to the shared charging line, starting charging, storing the current voltage value, and storing the charging remaining time according to the set frequency.
Judging whether a non-terminal accesses the shared charging wire according to the detected current voltage not greater than 0, storing the charging remaining time according to the set frequency and detecting the current voltage;
and if the current voltage is detected to be greater than 0 before the residual time is over, judging that a terminal is accessed to the shared charging wire, starting charging, storing the current voltage value, and storing the residual time of charging according to the set frequency.
Further, when a charging starting instruction is received, the charging time selected by a user is saved, if voltage is detected, a terminal is accessed, charging is started, and the detected voltage and the charging remaining time are saved. If no voltage is detected, no terminal is connected, and the voltage is detected circularly and the remaining time is saved until the detection state is changed. That is, after the user has scanned the code for payment, the countdown is performed regardless of whether the user has accessed the terminal. For example: the user scans the code for 2 hours, fills 30 minutes, dials out the terminal, accesses the terminal after 30 minutes, and the remaining time is 1 hour.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope of the invention. The scope of the invention is limited only by the appended claims.

Claims (6)

1. A control method for sharing charging wires is characterized by comprising the following steps:
reading a first time saved last time, wherein the first time is a charging remaining time; when the first time of reading is greater than 0, reading a first voltage stored last time, wherein the first voltage is detected before the first time is stored;
detecting a second voltage, which is a currently detected voltage;
according to the fact that the second voltage is approximately equal to the first voltage, the current terminal is judged to be the terminal which is not finished in the last charging task, charging is started again, and countdown is started by taking the read first time as a starting point;
and according to the fact that the second voltage is not approximately equal to the first voltage, judging that the current terminal is not the terminal which is not finished by the last charging task, and clearing and storing the reading time.
2. The control method according to claim 1, characterized in that:
starting charging, and starting countdown by taking the read first time as a starting point;
storing the current charging remaining time according to a set frequency;
when the current charging remaining time is 0, the countdown is finished,
and closing charging and waiting for an instruction, wherein the instruction is a charging opening instruction triggered according to user operation.
3. The control method according to claim 2, characterized in that:
upon receipt of the instruction;
saving a second time, wherein the second time is the charging time selected by the user operation, and counting down the second time;
detecting the current voltage;
and according to the detected current voltage being greater than 0, judging that a terminal is accessed to the shared charging line, starting charging, storing the current voltage value, and storing the charging remaining time according to the set frequency.
4. The control method according to claim 3, characterized in that:
judging whether a non-terminal accesses the shared charging wire according to the detected current voltage not greater than 0, storing the charging remaining time according to the set frequency and detecting the current voltage;
and if the current voltage is detected to be greater than 0 before the residual time is over, judging that a terminal is accessed to the shared charging wire, starting charging, storing the current voltage value, and storing the residual time of charging according to the set frequency.
5. A controller comprises a memory and a processor, is arranged in a shared charging wire, and the shared charging wire is a charging wire which controls the charging of an external terminal by controlling an electronic switch to be switched on and off, and is characterized in that: the memory is for storing instructions for controlling the processor to operate to perform the method according to claims 1-4 and data comprising the time and voltage as described in claims 1-4.
6. A shared charging cord, characterized by: comprising a controller according to claim 5, comprising a voltage acquisition circuit.
CN201910392387.2A 2019-05-13 2019-05-13 Control method and controller for sharing charging wire and sharing charging wire Active CN110112815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910392387.2A CN110112815B (en) 2019-05-13 2019-05-13 Control method and controller for sharing charging wire and sharing charging wire

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910392387.2A CN110112815B (en) 2019-05-13 2019-05-13 Control method and controller for sharing charging wire and sharing charging wire

Publications (2)

Publication Number Publication Date
CN110112815A CN110112815A (en) 2019-08-09
CN110112815B true CN110112815B (en) 2021-07-27

Family

ID=67489547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910392387.2A Active CN110112815B (en) 2019-05-13 2019-05-13 Control method and controller for sharing charging wire and sharing charging wire

Country Status (1)

Country Link
CN (1) CN110112815B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015053747A (en) * 2013-09-05 2015-03-19 東名通信工業株式会社 Battery degradation-determining application program
CN107658648A (en) * 2017-08-28 2018-02-02 南京理工大学 Charging socket for electric vehicle based on Quick Response Code
CN107972520A (en) * 2017-12-25 2018-05-01 芜湖雪影实业有限公司 A kind of charging station
CN108317675A (en) * 2017-12-26 2018-07-24 珠海派诺科技股份有限公司 Air Conditioner Remote method and conversion equipment based on WIFI and infrared combination

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3048755B2 (en) * 1992-07-10 2000-06-05 三洋電機株式会社 Rechargeable battery charger
CN103901352B (en) * 2014-04-10 2019-04-02 努比亚技术有限公司 Show the method and device of battery of mobile terminal remaining capacity
CN108769130A (en) * 2018-05-03 2018-11-06 武汉盛硕电子有限公司 A kind of management-control method of intelligent socket monitoring load access

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015053747A (en) * 2013-09-05 2015-03-19 東名通信工業株式会社 Battery degradation-determining application program
CN107658648A (en) * 2017-08-28 2018-02-02 南京理工大学 Charging socket for electric vehicle based on Quick Response Code
CN107972520A (en) * 2017-12-25 2018-05-01 芜湖雪影实业有限公司 A kind of charging station
CN108317675A (en) * 2017-12-26 2018-07-24 珠海派诺科技股份有限公司 Air Conditioner Remote method and conversion equipment based on WIFI and infrared combination

Also Published As

Publication number Publication date
CN110112815A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
US8239148B2 (en) State switching device for switching states of electronic device by detecting battery voltage of the electronic device and method thereof
AU723280B2 (en) Method and device for controlling the power source of a portable radio transceiver
US5932989A (en) Method for an electronic device to detect the presence of a battery charger
CN107454639B (en) Network automatic switching method, mobile terminal and storage medium
US9524216B2 (en) Method, device and mobile terminal for information backup
JP3174482U (en) Energy equipment
CN101997326A (en) Charging circuit
CN103532211A (en) Terminal and charging control method
EP3876381B1 (en) Charge and discharge control method and apparatus for terminal
CN106303096B (en) Electronic equipment and method for adjusting power management strategy thereof
CN110112815B (en) Control method and controller for sharing charging wire and sharing charging wire
CN110416643A (en) A kind of processing method, device and electronic equipment
JP4561620B2 (en) Mobile communication terminal device, information transfer control method, and information transfer control program
CN103905642B (en) A kind of method for terminal storing information and device
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal
JPH0984101A (en) Mobile telephone set and its termination processing circuit
CN107819335B (en) Charging control method and device and terminal
CN112448448A (en) Charging control method and device, earphone, electronic equipment and readable storage medium
CN209748233U (en) sharing charging wire of distinguishable terminal
CN118232445A (en) Mobile terminal, discharging circuit of mobile terminal, control method and storage medium
CN116774092B (en) Battery detection method, circuit, device, chip and readable storage medium
CN112449330A (en) Mobile terminal communication method, mobile terminal and storage medium
CN110602774A (en) Personal hotspot management method and mobile terminal
CN113541291B (en) Terminal with battery switching function
CN110783984B (en) Charging cartridge, charging control method thereof, and readable storage medium

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
GR01 Patent grant
GR01 Patent grant