An intelligent socket, a charging control method and a computer-readable storage medium
By integrating relays, relay control units and SOC controllers in shared smart sockets, combining voltage and current sampling, precise control of electric vehicle charging time and power is achieved, solving the problem of low intelligence in existing shared smart sockets and reducing the electricity cost of high-power loads.
Patent Information
- Application Number
- CN202110257214.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-09
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-03-09
AI Technical Summary
The existing shared smart sockets are low in intelligence and cannot accurately control the charging time and charging amount. Especially for high-power loads, the electricity costs are high, and the interests of operators are not guaranteed.
It adopts smart sockets, including relays, relay control units, SOC controllers and wireless communication modules, by collecting the power supply voltage and load current during charging of electric vehicles, combined with the order information or control instructions of cloud servers, accurately control the on-off state of the relay, and achieve accurate control of the charging time and charging amount.
It realizes precise control of the charging time and charging amount of electric vehicles, improves user experience, reduces the electricity bill cost of high-power loads, and protects the interests of operators.
Smart Images

Figure CN113036544B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent socket applications, and particularly to an intelligent socket, a charging control method, and a computer-readable storage medium. Background Art
[0002] Electric vehicles have gradually become popular in people's daily lives due to their convenience, flexibility, and low cost, and have become a means of transportation for many office workers and rural families. With the popularization of electric vehicles, the charging problems of electric vehicles have attracted more and more attention, including difficult charging, difficult management, and difficult charging fees.
[0003] With the increasing demand for electric vehicle charging in public places, ordinary sockets only provide power interfaces and do not have the ability to turn on and off regularly or receive command to turn on and off. To meet the increasing charging demand, shared intelligent sockets have emerged.
[0004] Existing shared intelligent sockets usually refer to sockets with built-in wifi modules that perform function operations through the client of an intelligent terminal. Such sockets can only issue specific commands through the operations of users on the client, and they do not have the functions of analysis and judgment, with low intelligence level, single control function, and poor user experience.
[0005] There are also some intelligent sockets that only charge according to time, such as 1 yuan for 3 hours or 1 yuan for 4 hours. This kind of intelligent socket charging scheme is fixed. For low-power loads, the electricity cost is relatively low, but for high-power loads, the electricity cost is relatively high, and the interests of operators cannot be guaranteed, and the charging duration and charging amount cannot be accurately controlled.
[0006] Therefore, the existing technology still needs to be improved and developed. Summary of the Invention
[0007] The technical problem to be solved by the present invention is that, aiming at the defects of the existing technology, the present invention provides an intelligent socket, a charging control method, and a computer-readable storage medium to control the charging duration and charging amount of a shared charging socket in an intelligent charging manner, so as to solve the problem of the control accuracy of the charging duration and charging amount in the existing charging method.
[0008] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0009] In a first aspect, the present invention provides an intelligent socket, which includes: a relay, a relay control unit, an SOC controller, a wireless communication module for receiving order information or control instructions sent by a cloud server, and a sampling module for collecting the supply voltage and load current when an electric vehicle is charging.
[0010] The wireless communication module, the sampling module, and the relay control unit are respectively connected to the SOC controller; the relay is connected to the relay control unit;
[0011] Wherein, the SOC controller sends corresponding driving instructions to the relay control unit according to the order information, the power supply voltage, and the load current, or sends corresponding driving instructions to the relay control unit according to the control instructions, so as to control the on / off state of the relay through the relay control unit.
[0012] In one embodiment, the sampling module includes: a voltage sampling unit and a current sampling unit;
[0013] When the electric vehicle is charging, one end of the voltage sampling unit is connected to the charging unit of the electric vehicle to collect the power supply voltage during the charging of the electric vehicle; the other end of the voltage sampling unit is connected to the SOC controller to send the collected power supply voltage to the SOC controller;
[0014] One end of the current sampling unit is connected to the charging unit of the electric vehicle to collect the load current during the charging of the electric vehicle; the other end of the current sampling unit is connected to the SOC controller to send the collected load current to the SOC controller.
[0015] In one embodiment, the SOC controller includes a meter, and the SOC controller is connected to the voltage sampling unit through the meter, and the SOC controller is connected to the current sampling unit through the meter; the meter is used to measure the power supply voltage in the voltage sampling unit and the load current in the current sampling unit.
[0016] In one embodiment, the relay control unit includes: a relay driver chip, and the relay driver chip is connected to the relay to control the on / off state of the relay.
[0017] In a second aspect, the present invention provides a charging control method based on the intelligent socket described in the first aspect, wherein the charging control method includes the following steps:
[0018] Receive the reservation closing time and the reservation opening time sent by the cloud server, and calculate the allowed charging duration according to the reservation closing time and the reservation opening time;
[0019] Obtain the allowed charging power according to the allowed charging duration;
[0020] Monitor the current charging power or the current charging duration of the electric vehicle, and enter the corresponding charging mode according to the current charging power or the current charging duration;
[0021] Control the relay to cut off power according to the charging mode.
[0022] In one embodiment, monitoring the current charging power or the current charging duration of the electric vehicle and entering the corresponding charging mode according to the current charging power or the current charging duration specifically includes:
[0023] Obtain the charging parameters and the current charging duration when the electric vehicle is charging;
[0024] Calculate the current charging power according to the charging parameters and the current charging duration;
[0025] Enter the fixed - quantity charging mode according to the current charging power, or enter the timed charging mode according to the current charging duration.
[0026] In one embodiment, the obtaining the charging parameters and the current charging duration when the electric vehicle is charging specifically includes:
[0027] Obtain the current charging duration according to the scheduled closing time and the current system time;
[0028] Sample the supply voltage through a voltage sampling unit at a preset sampling frequency to obtain a supply voltage sampling value, and sample the load current through a current sampling unit at a preset sampling frequency to obtain a load current sampling value;
[0029] Calculate the active power when the electric vehicle is charging according to the supply voltage sampling value and the load current sampling value;
[0030] Calculate the current charging power according to the active power and the current charging duration.
[0031] In one embodiment, the controlling the relay to cut off power according to the charging mode specifically includes:
[0032] When entering the fixed - quantity charging mode, monitor the current charging power of the electric vehicle and determine whether the current charging power reaches the allowed charging power;
[0033] When the current charging power reaches the allowed charging power, control the relay to cut off power through a relay control unit.
[0034] In one embodiment, the controlling the relay to cut off power according to the charging mode further includes:
[0035] When entering the timed charging mode, monitor the current charging duration of the electric vehicle and determine whether the current charging duration reaches the allowed charging duration;
[0036] When the current charging duration reaches the allowable charging duration, the relay is controlled to cut off the power through the relay control unit.
[0037] In a third aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a charging control program, which is used to implement the charging control method as described in the second aspect when the charging control program is controlled to run by a processor.
[0038] The present invention adopts the above technical solutions and has the following effects:
[0039] The present invention controls the on-off state of the relay by collecting the supply voltage and load current during the charging of the electric vehicle and combining the order information or control instructions sent by the cloud server, so as to accurately control the charging duration and charging power of the electric vehicle. Description of the Drawings
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on the structures shown in these drawings.
[0041] Figure 1 It is a schematic structural diagram of an intelligent socket in an implementation manner of the present invention.
[0042] Figure 2 It is a flowchart of a charging control method in an implementation manner of the present invention.
[0043] Figure 3 It is a flowchart of a charging monitoring method in an implementation manner of the present invention.
[0044] In the figure: 100, wireless communication module; 200, SOC controller; 300, voltage sampling unit; 400, current sampling unit; 500, relay control unit; 600, relay; 700, power supply unit.
[0045] The realization, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the drawings. Detailed Embodiments
[0046] To make the object, technical solutions and advantages of the present invention clearer and more definite, the following further describes the present invention in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0047] Existing shared intelligent sockets usually refer to sockets with built-in Wi-Fi modules that are operated through the client of an intelligent terminal. Such sockets can only issue specific instructions through the user's operation on the client, and they do not have the functions of analysis and judgment themselves, with low intelligence, single control function, and poor user experience. Moreover, there are significant drawbacks in the charging management of some shared intelligent sockets. The charging standards for small-power electric vehicles and large-power electric vehicles are the same, resulting in higher costs for large-power ones and the interests of operators not being guaranteed.
[0048] In view of the above problems, the inventor proposes an intelligent socket, a charging control method, and a computer-readable storage medium. The charging duration and charging amount can be determined according to the user's order. When the electric vehicle is charging, the charging voltage of the electric vehicle is collected through a voltage sampling circuit, and the load current of the electric vehicle is collected through a current sampling circuit to determine the active power during the charging of the electric vehicle. Then, a corresponding charging scheme is selected according to the active power of the electric vehicle to control the charging duration and charging amount of the shared charging socket in an intelligent charging manner, improving the control accuracy of the charging duration and charging amount of the electric vehicle.
[0049] Exemplary device
[0050] As Figure 1 shown, in an embodiment of the present invention, an intelligent socket is provided. The intelligent socket can be a dedicated charging socket for an electric vehicle or a dedicated charging socket for intelligent devices such as mobile phones and tablets.
[0051] Taking the shared intelligent socket dedicated to electric vehicle charging as an example, the intelligent socket includes: a wireless communication module 100, a sampling module (not labeled), a relay 600, a relay control unit 500, and an SOC controller 200. Among them, the wireless communication module 100, the sampling module, and the relay control unit 500 are respectively connected to the SOC controller 200; the relay 600 is connected to the relay control unit 500.
[0052] The wireless communication module 100 is used to receive order information or control instructions sent by the cloud server. Among them, the order information includes: the reserved closing time (i.e., the closing time of the relay 600) and the reserved tripping time (i.e., the opening time of the relay 600); the sampling module is used to collect the supply voltage and load current during the charging of the electric vehicle; the SOC controller 200 analyzes and calculates based on the order information, the supply voltage, and the load current to obtain the current charging power or the current charging duration of the electric vehicle, and sends corresponding driving instructions to the relay control unit 500 according to the current charging power or the current charging duration, so as to control the on-off state of the relay 600 through the relay control unit 500; alternatively, the SOC controller 200 sends corresponding driving instructions to the relay control unit 500 according to the control instructions, so as to control the on-off state of the relay 600 through the relay control unit 500.
[0053] Further, among the components of the smart socket, the wireless communication module 100 includes: a WiFi module, an NB-IOT module, and a 4G / 5G module, etc.; the wireless communication module 100 is mainly used to receive order information and control instructions sent by the cloud server, and send the order information and the control instructions to the SOC controller 200 through a wired transmission method; among them, the order information includes: the reserved closing time (i.e., the closing time of the relay 600) and the reserved tripping time (i.e., the opening time of the relay 600); the control instructions include: a closing instruction and an opening instruction, and the on-off state of the relay 600 in the smart socket can be directly controlled through the closing instruction and the opening instruction.
[0054] The SOC controller 200 is the processor of the smart socket. It collects the supply voltage and load current during the charging of the electric vehicle through the sampling module, and then calculates the electrical parameters and power information during the charging process of the electric vehicle according to the supply voltage and the load current; finally, according to the order information, the electrical parameters, and the power information, it sends relay control instructions to the relay control unit 500; thus, under the control of the relay control unit 500, the on-off state of the relay 600 is controlled.
[0055] Specifically, in this embodiment, when the user needs to charge the electric vehicle, the order information can be set through the mobile terminal APP; after the user sets the order information, the mobile terminal sends the order information to the cloud server, and the cloud server forwards it to the corresponding smart socket; the smart socket can receive the order information sent by the cloud server through the wireless communication module, and then obtain the closing time and the opening time in the order information for controlling the on-off state of the relay 600.
[0056] Certainly, in another implementation of this embodiment, the user can also set the control instruction through the mobile terminal APP. The control instruction includes: a closing instruction and a disconnecting instruction; the SOC controller 200 directly controls the state of the relay 600 in the smart socket through the closing instruction and the disconnecting instruction.
[0057] The present invention receives the order information through the wireless communication module, and then performs a timed closing operation on the relay 600 according to the scheduled closing time in the order, and performs a timed opening operation on the relay 600 according to the scheduled opening time in the order; realizing an intelligent charging method, avoiding the user from manually performing a closing operation on the mobile terminal APP, which brings convenience to the user.
[0058] Further, among the components of the smart socket, the sampling module includes: a voltage sampling unit 300; when the electric vehicle is charging, the voltage sampling unit 300 is used to collect the supply voltage in the charging circuit of the electric vehicle; one end of the voltage sampling unit 300 is connected to the charging unit of the electric vehicle through a port or interface to collect the supply voltage when the electric vehicle is charging; the other end of the voltage sampling unit 300 is connected to the SOC controller 200 to send the collected supply voltage to the SOC controller 200.
[0059] Further, among the components of the smart socket, the sampling module further includes: a current sampling unit 400; when the electric vehicle is charging, the current sampling unit 400 is used to collect the load current in the charging circuit of the electric vehicle; one end of the current sampling unit 400 is connected to the charging unit of the electric vehicle through a port or interface to collect the load current when the electric vehicle is charging; the other end of the current sampling unit 400 is connected to the SOC controller 200 to send the collected load current to the SOC controller 200.
[0060] Further, among the components of the smart socket, the SOC controller 200 includes a meter (not shown), and the meter is used to count the supply voltage collected by the voltage sampling unit 300 and the load current collected by the current sampling unit 400; the SOC controller 200 is connected to the voltage sampling unit 300 through the meter, and the SOC controller 200 is connected to the current sampling unit 400 through the meter.
[0061] Further, among the components of the smart socket, the smart socket further includes: a power supply unit 700; the power supply unit 700 is connected to the SOC controller 200 to output a first preset voltage to the SOC controller 200, where the first preset voltage may be a 3.3V voltage. By outputting the first preset voltage, the voltage required for the normal operation of the SOC controller 200 can be provided. The relay control unit 500 includes: a relay driver chip (not shown), and the relay driver chip is connected to the relay 600 for controlling the on / off state of the relay 600. The power supply unit 700 is connected to the relay driver chip to output a second preset voltage to the relay driver chip, where the second preset voltage may be a 12V voltage. By outputting the second preset voltage, the voltage required for the normal operation of the relay driver chip can be provided.
[0062] Further, among the components of the smart socket, the relay driver chip includes: a BL8023D type driver chip.
[0063] Further, among the components of the smart socket, the smart socket further includes: a charging interface (not shown) and a housing (not shown); the charging interface is fixedly connected to the housing; the wireless communication module 100, the sampling module, the relay 600, the relay control unit 500, and the SOC controller 200 are all disposed in the housing.
[0064] In this embodiment, by collecting the supply voltage and load current during the charging of the electric vehicle and combining with the order information or control instructions sent by the cloud server, the on / off state of the relay is controlled, so as to accurately control the charging duration and charging power of the electric vehicle.
[0065] Exemplary method
[0066] As Figure 2 shown, based on the above smart socket, an embodiment of the present invention further provides a charging control method, and the charging control method includes the following steps:
[0067] Step S100, receiving the reservation closing time and reservation opening time sent by the cloud server, and calculating the allowable charging duration according to the reservation closing time and the reservation opening time.
[0068] In this embodiment, the charging control method is applied to a smart socket, and the smart socket may be a shared smart socket or a household smart socket; among them, the shared smart socket may be a dedicated charging socket for an electric vehicle or a dedicated charging socket for smart devices such as mobile phones and tablets.
[0069] Taking the shared intelligent socket dedicated to electric vehicle charging as an example, the intelligent socket includes: a wireless communication module, an SOC controller, a voltage sampling unit, a current sampling unit, a relay control unit, a relay, a power supply unit, and a memory; among them, the wireless communication module, the voltage sampling unit, the current sampling unit, the relay control unit, the power supply unit, and the memory are respectively connected to the SOC controller, and the relay is connected to the relay control unit.
[0070] Among the components of the intelligent socket, the wireless communication module can be a WiFi module, or an NB-IOT module, a 4G module, etc. This wireless communication module is mainly used to receive the reservation closing time, reservation opening time, and control instructions sent by the cloud server, and send the data (reservation closing time, reservation opening time, control instructions) to the SOC controller by means of wired transmission; the SOC controller is the processor of the intelligent socket, which collects data through the voltage sampling unit and the current sampling unit, calculates the charging parameters and power information during the electric vehicle charging process, and sends corresponding control instructions to the relay control unit according to the received data and power information; thus, under the control of the relay control unit, the on-off state of the relay is controlled; the power supply unit can provide working voltage for the SOC controller and the relay control unit.
[0071] Specifically, in this embodiment, when the user needs to charge the electric vehicle, the order information can be set through the mobile terminal APP. Among them, the order information includes: the reservation closing time (i.e., the closing time of the relay) and the reservation tripping time (i.e., the opening time of the relay); after the user sets the order information, the mobile terminal sends the order information to the cloud server; after the cloud server receives it, it sends the reservation closing time and reservation tripping time in the order information to the corresponding intelligent socket; the intelligent socket can receive the reservation closing time and reservation tripping time sent by the cloud server through the wireless communication module.
[0072] Specifically, before the intelligent socket receives the data from the cloud server, it also needs to be connected to the cloud server through the wireless communication module; when the cloud server sends data, the intelligent socket receives the reservation closing time and reservation opening time sent by the cloud server through the wireless communication module, and determines the charging start time based on the reservation closing time, and determines the charging end time based on the reservation opening time; then, the allowable charging duration can be calculated according to the charging start time and the charging end time; among them, the allowable charging duration is the duration from the reservation closing time to the reservation opening time. For example, if the reservation closing time is 10:00 and the reservation opening time is 11:00, then the allowable charging duration is one hour.
[0073] The present invention receives the scheduled closing time and the scheduled opening time sent by the cloud server connection through the wireless communication module, and performs a timed closing operation on the relay according to the scheduled closing time, and a timed opening operation on the relay according to the scheduled opening time; realizing an intelligent charging method, avoiding the user from manually performing a closing operation on the mobile terminal APP, which brings convenience to the user.
[0074] As Figure 2 shown, in an implementation manner of the embodiment of the present invention, the charging control method further includes the following steps:
[0075] Step S200, obtaining the allowable charging power according to the allowable charging duration.
[0076] In this embodiment, after determining the allowable charging duration, the smart socket obtains the allowable charging power according to the allowable charging duration; the allowable charging power is the product of the allowable charging duration and the preset power, where the preset power can be set by the operator in the cloud server.
[0077] In this embodiment, the calculation method of the allowable charging power is:
[0078] W allow = P pre * T allow ;
[0079] where, W allow is the allowable charging power;
[0080] P pre is the preset power;
[0081] T allow is the allowable charging duration.
[0082] The present invention obtains the allowable charging power according to the allowable charging duration, and can automatically switch the charging mode (timed mode or quantitative mode) according to the power of the charging electric vehicle, so as to realize an intelligent charging method.
[0083] As Figure 2 shown, in an implementation manner of the embodiment of the present invention, the charging control method further includes the following steps:
[0084] Step S300, monitoring the current charging power or the current charging duration of the electric vehicle, and entering the corresponding charging mode according to the current charging power or the current charging duration.
[0085] In this embodiment, after detecting that the electric vehicle is charging, it is necessary to monitor the current charging power or the current charging duration of the electric vehicle in real time, and based on the current charging power or the current charging duration; when monitoring the current charging power of the electric vehicle, it is necessary to obtain the charging parameters during the charging of the electric vehicle, and then calculate the current charging power according to the charging parameters and the current charging duration; after determining the current charging duration of the electric vehicle, it is necessary to judge whether the current charging duration is less than the allowable charging duration. If the current charging duration is less than the allowable charging duration, enter the timed charging mode; after determining the current charging power of the electric vehicle, it is necessary to judge whether the current charging power is less than the allowable charging power. If the current charging power is less than the allowable charging power, enter the quantitative charging mode.
[0086] It can be understood that in this embodiment, the quantitative charging mode is mainly effective when charging high-power electric vehicles. Taking the allowable charging power as the billing standard, when the charging power of the high-power electric vehicle reaches the allowable charging power, the relay is controlled to open the switch to stop charging; while the timed charging mode is mainly effective when charging low-power electric vehicles. Taking the allowable charging duration (i.e., the duration from the reserved closing time to the reserved tripping time) as the billing standard, when the charging duration of the low-power electric vehicle reaches the allowable charging duration, the relay is controlled to open the switch to stop charging.
[0087] That is, in one implementation manner of this embodiment, the step S200 specifically includes the following steps:
[0088] Step S310, obtain the charging parameters and the current charging duration when the electric vehicle is charging;
[0089] Step S320, calculate the current charging power according to the charging parameters and the current charging duration;
[0090] Step S330, enter the quantitative charging mode according to the current charging power, or enter the timed charging mode according to the current charging duration.
[0091] In this embodiment, when obtaining the current charging duration when the electric vehicle is charging, the current charging duration can be obtained according to the reserved closing time and the current system time; while when obtaining the charging parameters when the electric vehicle is charging, it is necessary to obtain the preset sampling frequency. For example, the preset sampling frequency is 7.2KHz; at this preset sampling frequency, the smart socket samples through the voltage sampling unit and the current sampling unit to obtain the current power supply voltage sampling value and the load current sampling value of the electric vehicle; then, calculate the effective value P of the active power when the electric vehicle is charging according to the current power supply voltage sampling value and the load current sampling value RMS , the calculation period is 1s; then, accumulate the calculated effective value of the active power to obtain the current charging power; among them, the calculation method of the effective value of the load active power is:
[0092]
[0093] Among them, u(n) is the voltage sampling value at the nth sampling point;
[0094] i(n) is the current sampling value at the nth sampling point;
[0095] N is the number of sampling points within a period;
[0096] K p is the power conversion coefficient.
[0097] After calculating the active power during the electric vehicle charging, the current charging power of the electric vehicle can be calculated based on this active power; among them, the calculation method of the current charging power is as follows:
[0098] W = P RMS *t;
[0099] Among them, W is the charging power;
[0100] P RMS is the effective value of the active power;
[0101] t is the duration (i.e., the current charging duration).
[0102] It can be understood that in this embodiment, the charging power of the electric vehicle within the calculation period is determined by collecting the supply voltage and load current, and then the current charging power of the electric vehicle is obtained by accumulating the calculated charging power, so as to determine whether the current user order can be ended according to the current charging duration or the current charging power.
[0103] That is, in one implementation manner of this embodiment, the step S201 specifically includes the following steps:
[0104] Step S311, obtaining the current charging duration according to the scheduled closing time and the current system time; Step S312, sampling the supply voltage by the voltage sampling unit at a preset sampling frequency to obtain the supply voltage sampling value, and sampling the load current by the current sampling unit at a preset sampling frequency to obtain the load current sampling value;
[0105] Step S313, calculating the active power during the electric vehicle charging according to the supply voltage sampling value and the load current sampling value;
[0106] Step S314, calculating the current charging power according to the active power and the current charging duration.
[0107] The present invention precisely measures the supply voltage, load current, and active power in the charging circuit, calculates the electricity consumption of the load based on the active power and time, and then determines whether to end the current order according to the current electricity consumption and the current charging time.
[0108] As Figure 2 shown, in an implementation manner of an embodiment of the present invention, the charging control method further includes the following steps:
[0109] Step S400, controlling the relay to cut off the power according to the charging mode.
[0110] In this embodiment, after entering different charging modes, the smart socket monitors the charging status of the electric vehicle according to the selected charging mode and controls the relay to cut off the power according to the charging status.
[0111] Specifically, in the fixed - quantity charging mode, the smart socket takes the allowed charging electricity as the allowed charging amount. If the current electricity consumption of the load exceeds the allowed charging amount, it controls the relay to trip to end the order; that is, it monitors the current charging electricity of the electric vehicle, determines whether the current charging electricity reaches the allowed charging amount. If the current charging electricity reaches the allowed charging amount, the smart socket controls the relay to cut off the power through the relay control unit to end the current order.
[0112] That is, in an implementation manner of this embodiment, when entering the fixed - quantity charging mode, step S400 specifically includes the following steps:
[0113] Step S411, when entering the fixed - quantity charging mode, monitor the current charging electricity of the electric vehicle and determine whether the current charging electricity reaches the allowed charging amount;
[0114] Step S412, when the current charging electricity reaches the allowed charging amount, control the relay to cut off the power through the relay control unit.
[0115] In this embodiment, in the timed - charging mode, the smart socket converts the reserved tripping time into the allowed charging duration, then counts down the allowed charging duration. When the allowed charging duration is 0, it controls the relay to trip to end the order.
[0116] In this timed mode, it monitors the current charging duration of the electric vehicle, determines whether the current charging duration reaches the allowed charging duration. If it does not reach the allowed charging duration, it continues to monitor the charging status of the electric vehicle; if the current charging duration reaches the allowed charging duration, it controls the relay to cut off the power through the relay control unit to end the current order.
[0117] That is, in one implementation manner of this embodiment, when entering the timed charging mode, step S400 specifically includes the following steps:
[0118] Step S421, when entering the timed charging mode, monitor the current charging duration of the electric vehicle, and determine whether the current charging duration reaches the allowed charging duration;
[0119] Step S422, when the current charging duration reaches the allowed charging duration, control the relay to cut off the power through the relay control unit.
[0120] As Figure 3 shown, in another implementation manner of this embodiment, the current charging duration and the current charging power of the electric vehicle can be monitored simultaneously, and then the order can be ended according to the monitored current charging power or current charging duration.
[0121] The specific steps are as follows:
[0122] Step S31, obtain order information;
[0123] Step S32, determine whether the allowed charging duration ≤ 0; if yes, execute step S36; if no, execute step S33;
[0124] Step S33, subtract 1 s from the allowed charging duration;
[0125] Step S34, calculate the power consumption of the load;
[0126] Step S35, determine whether the current power ≥ the allowed charging power; if yes, execute step S36; if no, execute step S32;
[0127] Step S36, the order ends and the relay trips.
[0128] It can be understood that this simultaneous monitoring method does not need to distinguish whether the electric vehicle being charged is a low-power or high-power electric vehicle. Only the current charging duration and the current charging power of the electric vehicle need to be obtained. When the current charging duration or the current charging power meets the order end condition, the current order can be ended.
[0129] In another implementation manner of this embodiment, in addition to controlling the smart socket to charge through the order information, the relay of the smart socket can also be controlled to close or trip through a control instruction; wherein, the control instruction includes: a closing instruction and a disconnecting instruction.
[0130] That is, in another implementation manner of the embodiment of the present invention, the charging control method further includes the following steps:
[0131] Step S500: Receive the control instruction sent by the cloud server through the wireless communication module, and control the on / off state of the relay based on the control instruction.
[0132] Specifically, the control instruction can be sent to the cloud server through the mobile terminal APP. For example, the control instruction is sent to the cloud server through the closing button or tripping button in the APP. After receiving the control instruction, the cloud server forwards the control instruction to the smart socket. The smart socket can receive the control instruction sent by the cloud server through the wireless communication module, and then control the on / off state of the relay based on the control instruction to achieve the control of closing or tripping the smart socket.
[0133] The present invention can accurately measure the power supply voltage, load current, and active power in the charging circuit, and calculate the electricity consumption of the load according to the active power and time. After determining the electricity consumption of the load, according to the scheduled tripping time and preset base power value in the order information, calculate the allowable charging electricity for this order, and convert the scheduled tripping time in the order information into the allowable charging duration, so that the smart socket can perform the tripping operation on the relay according to the allowable charging electricity and allowable charging duration.
[0134] Moreover, the present invention can simultaneously execute the time-based charging scheme and the electricity-based charging scheme, and can charge electric vehicles with different powers. If the charging power of the electric vehicle is less than the set threshold, the time-based charging scheme is used for charging. If the charging power of the electric vehicle exceeds the set threshold, the electricity-based charging scheme is used for charging, and the intelligence of the smart socket is realized in the form of automatically switching the charging scheme.
[0135] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a charging control program, which is used to implement the charging control method as described above when the charging control program is controlled by a processor to run; specifically as described above.
[0136] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to the memory, storage, database, or other media used in the various embodiments provided by the present invention can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory.
[0137] In summary, the present invention provides an intelligent socket, a charging control method, and a computer-readable storage medium. The intelligent socket includes: a relay, a relay control unit, an SOC controller, a wireless communication module, and a sampling module; the wireless communication module, the sampling module, and the relay control unit are respectively connected to the SOC controller; the relay is connected to the relay control unit; wherein, the SOC controller sends corresponding driving instructions to the relay control unit according to the order information, the supply voltage, and the load current, or sends corresponding driving instructions to the relay control unit according to the control instructions, so as to control the on-off state of the relay through the relay control unit. The present invention controls the on-off state of the relay by collecting the supply voltage and the load current during the charging of the electric vehicle, and combining the order information or the control instructions sent by the cloud server, thereby accurately controlling the charging duration and the charging power of the electric vehicle.
[0138] It should be understood that the application of the present invention is not limited to the above examples. For those of ordinary skill in the art, improvements or transformations can be made according to the above description, and all such improvements and transformations should fall within the protection scope of the appended claims of the present invention.
Claims
1. An intelligent socket, characterized in that, Including: a relay, a relay control unit, an SOC controller, a wireless communication module for receiving order information or control instructions sent by a cloud server, and a sampling module for collecting the supply voltage and load current during the charging of an electric vehicle; the wireless communication module, the sampling module, and the relay control unit are respectively connected to the SOC controller; the relay is connected to the relay control unit; wherein, the SOC controller sends corresponding driving instructions to the relay control unit according to the order information, the supply voltage, and the load current, or sends corresponding driving instructions to the relay control unit according to the control instructions, so as to control the on-off state of the relay through the relay control unit, and the order information includes a scheduled closing time and a scheduled opening time; the SOC controller sending corresponding driving instructions to the relay control unit according to the order information, the supply voltage, and the load current includes: analyzing and calculating based on the scheduled closing time, the scheduled opening time, the supply voltage, and the load current to obtain the current charging power or the current charging duration of the electric vehicle, and sending corresponding driving instructions to the relay control unit according to the current charging power or the current charging duration; the control instructions include a closing instruction and an opening instruction, and sending corresponding driving instructions to the relay control unit according to the control instructions to control the on-off state of the relay through the relay control unit includes: directly controlling the on-off state of the relay in the smart socket through the closing instruction and the opening instruction; The charging control method includes the following steps: receiving the scheduled closing time and the scheduled opening time sent by the cloud server, and calculating the allowed charging duration according to the scheduled closing time and the scheduled opening time; obtaining the allowed charging power according to the allowed charging duration; monitoring the current charging power or the current charging duration of the electric vehicle, and entering a corresponding charging mode according to the current charging power or the current charging duration; controlling the relay to cut off the power according to the charging mode; the monitoring the current charging power or the current charging duration of the electric vehicle, and entering a corresponding charging mode according to the current charging power or the current charging duration specifically includes: obtaining the charging parameters and the current charging duration during the charging of the electric vehicle; calculating the current charging power according to the charging parameters and the current charging duration; entering a quantitative charging mode according to the current charging power, or entering a timed charging mode according to the current charging duration.
2. The intelligent socket according to claim 1, wherein The sampling module includes: a voltage sampling unit and a current sampling unit; When the electric vehicle is charging, one end of the voltage sampling unit is connected to the charging unit of the electric vehicle to collect the supply voltage during the charging of the electric vehicle; the other end of the voltage sampling unit is connected to the SOC controller to send the collected supply voltage to the SOC controller; One end of the current sampling unit is connected to the charging unit of the electric vehicle to collect the load current during charging of the electric vehicle; the other end of the current sampling unit is connected to the SOC controller to send the collected load current to the SOC controller.
3. The intelligent socket according to claim 2, wherein The SOC controller includes a meter. The SOC controller is connected to the voltage sampling unit through the meter, and the SOC controller is connected to the current sampling unit through the meter; the meter is used to measure the supply voltage in the voltage sampling unit and the load current in the current sampling unit.
4. The intelligent socket according to claim 1, wherein The relay control unit includes: a relay driver chip, and the relay driver chip is connected to the relay to control the on / off state of the relay.
5. A charging control method for the intelligent socket according to any one of claims 1-4, characterized in that, Obtaining the charging parameters and the current charging duration when the electric vehicle is charging specifically includes: Obtaining the current charging duration according to the scheduled closing time and the current system time; Sampling the supply voltage at a preset sampling frequency through the voltage sampling unit to obtain a supply voltage sampling value, and sampling the load current at a preset sampling frequency through the current sampling unit to obtain a load current sampling value; Calculating the active power during charging of the electric vehicle according to the supply voltage sampling value and the load current sampling value; Calculating the current charging power according to the active power and the current charging duration.
6. The charging control method according to claim 5, wherein Controlling the relay to cut off the power according to the charging mode specifically includes: When entering the fixed-quantity charging mode, monitoring the current charging power of the electric vehicle and judging whether the current charging power reaches the allowed charging power; When the current charging power reaches the allowed charging power, controlling the relay to cut off the power through the relay control unit.
7. The charging control method according to claim 5, wherein Controlling the relay to cut off the power according to the charging mode further includes: When entering the timed charging mode, monitoring the current charging duration of the electric vehicle and judging whether the current charging duration reaches the allowed charging duration; When the current charging duration reaches the allowed charging duration, controlling the relay to cut off the power through the relay control unit.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a charging control program, which is used to implement the charging control method according to any one of claims 5-7 when the charging control program is controlled by a processor to run.
Citation Information
Patent Citations
Intelligent socket
CN214379128U