Slave control system of charging pile and control platform of charging pile
By introducing a slave control system, combined with a slave control chip, button module, digital tube display module, and indicator light module, the issues of charging pile hardware cost and applicability have been resolved, achieving a low-cost and easy-to-use charging pile display function.
Patent Information
- Application Number
- CN202520169860.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2035-01-24
AI Technical Summary
Existing charging pile systems cannot balance hardware cost and applicability, especially those that lack a display module and rely on smart devices for operation, or those with large displays that are expensive and susceptible to environmental influences.
The system employs a slave control system, including a slave control chip, a button module, a digital tube display module, and an indicator light module. It uses serial communication to display the charging and usage status, reducing hardware costs and improving applicability.
It enables low-cost display of charging status and usage information without relying on smart devices, thus expanding its applicability and reducing equipment costs.
Smart Images

Figure CN223842336U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging pile control, and in particular to the slave control system and control platform of charging piles. Background Technology
[0002] Currently, the charging method for electric bicycles has gradually shifted to charging at designated charging stations. Using charging stations improves the convenience of residents' lives and eliminates safety hazards. Charging stations typically take the following forms:
[0003] One type only provides a charging interaction device without a display module, requiring users to scan the device's interface to view all operating statuses; the other type provides a large display screen, with operating status displayed based on touch buttons.
[0004] For the first type of charging pile mentioned above, the hardware cost is relatively low, but it requires smart devices to complete the operation, which increases the difficulty of use for some groups who are not used to using smart devices; the hardware cost of the second type of charging pile mentioned above is relatively high, and the touch buttons are unresponsive in some cases (when fingers are wet or skin is dry).
[0005] There is currently no effective solution to the problem that related technologies cannot balance hardware cost and applicability. Utility Model Content
[0006] This embodiment provides a slave control system and a control platform for a charging pile to solve the problem that related technologies cannot balance hardware cost and applicability.
[0007] Firstly, this embodiment provides a slave control system for a charging pile, comprising:
[0008] The system comprises a controller chip, a button module, a digital tube driver module, a digital tube display module, an indicator light driver module, and an indicator light module; among which:
[0009] The slave control chip is connected to one end of the button module, one end of the digital tube driver module, and one end of the indicator light driver module; the slave control chip is also communicatively connected to the main control system of the charging pile;
[0010] The other end of the digital tube driver module is connected to the digital tube display module;
[0011] The other end of the indicator light driver module is connected to the indicator light module;
[0012] The slave control chip is used to send first output data to the digital tube driver module and second output data to the indicator light driver module based on communication with the master control system, and output the key signal sent by the key module to the master control system; the first output data is associated with the charging status of the charging port of the charging pile; the second output data is associated with the usage status of the charging port.
[0013] In some embodiments, the slave control chip is also used to send third output data to the digital tube driver module based on communication with the master control system; the third output data is associated with the charging account information of the charging user.
[0014] In some embodiments, the indicator lights of the indicator light module correspond one-to-one with the charging ports of the charging pile.
[0015] In some embodiments, the indicator light module has multiple display states, and each display state corresponds to a different usage state of the charging port.
[0016] In some embodiments, the buttons of the button module correspond one-to-one with the charging ports of the charging pile.
[0017] In some embodiments, the button module is a button matrix composed of physical buttons; the button module is connected to the GPIO pin of the slave control chip; the slave control chip is used to send the button values pressed by the user in the button module to the master control system during the user's waiting-to-charge phase, so that the master control system can confirm the charging port to be used; and is used to send the button values pressed by the user in the button module to the master control system during the charging phase, so that the master control system can confirm the charging status of the corresponding charging port.
[0018] In some embodiments, the indicator light driving module includes an LED constant current driving chip; the indicator light driving module is used to convert the serial input data of the slave control chip into parallel output data and output it to the indicator light module, and to provide a constant output current to the indicator light module.
[0019] In some embodiments, the digital tube driver module communicates serially with the slave control chip to receive the first output data from the slave control chip and transmit it to the digital tube display module for display.
[0020] In some embodiments, the slave control chip communicates with the master control chip of the master control system based on a serial asynchronous communication protocol.
[0021] Secondly, this embodiment provides a control platform for a charging pile, including a main control system, a cloud server, and the slave control system described in the first aspect above.
[0022] Compared with related technologies, this embodiment provides a slave control system and a control platform for the charging pile. The slave control system of the charging pile includes a digital tube display module and an indicator light module, which have the main display content and device status indication functions for daily use. The digital tube can display the data content of the corresponding port by pressing the button corresponding to each charging port. Its hardware cost is lower than that of large display screens and multi-channel digital tubes in the prior art. It can meet functional requirements, eliminate dependence on smart mobile devices, improve the scope of application, and reduce equipment costs.
[0023] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0025] Figure 1 This is a schematic diagram of the slave control system of the charging pile provided in this embodiment;
[0026] Figure 2 This is a circuit structure diagram of a slave controller chip in this embodiment;
[0027] Figure 3 This is a schematic diagram of a frame format for communication between a slave control chip and a master control chip in this embodiment.
[0028] Figure 4 This is a schematic diagram illustrating the composition of a normal response frame in this embodiment;
[0029] Figure 5 This is a schematic diagram illustrating the composition of an abnormal response frame in this embodiment;
[0030] Figure 6 This is a circuit structure diagram of the button module in this embodiment;
[0031] Figure 7a This is a circuit structure diagram of the digital tube driver module in this embodiment;
[0032] Figure 7b This is a circuit structure diagram of the digital tube display module in this embodiment;
[0033] Figure 8a This is a circuit diagram of the indicator light module in this embodiment;
[0034] Figure 8b This is a circuit structure diagram of the indicator light driver module in this embodiment;
[0035] Figure 9 This is a flowchart of the operation method of each module of the slave control system in this embodiment;
[0036] Figure 10 This is a schematic diagram of the control platform of the charging pile in this embodiment;
[0037] Figure 11 This is a connection diagram of the master control system and slave control system in some embodiments. Detailed Implementation
[0038] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0039] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning as understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these,” used in this application, do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to such processes, methods, products, or devices. The terms “connected,” “linked,” and “coupled,” used in this application, are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. The term “multiple” used in this application refers to two or more. The "and / or" operator describes the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: A alone, A and B simultaneously, and B alone. Typically, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," and "third," etc., used in this application are merely for distinguishing similar objects and do not represent a specific ordering of the objects.
[0040] This embodiment provides a slave control system for a charging pile. Figure 1 This is a schematic diagram of the slave control system 10 of the charging pile provided in this embodiment, as shown below. Figure 1As shown, the slave control system 10 includes: a slave control chip 11, a button module 12, a digital tube driver module 13, a digital tube display module 14, an indicator light driver module 15, and an indicator light module 16; wherein:
[0041] The slave chip 11 is connected to one end of the button module 12, one end of the digital tube driver module 13, and one end of the indicator light driver module 15; the slave chip 11 is also connected to the main control system of the charging pile.
[0042] The other end of the digital tube driver module 13 is connected to the digital tube display module 14;
[0043] The other end of the indicator light driver module 15 is connected to the indicator light module 16;
[0044] The slave control chip 11 is used to send first output data to the digital tube driver module 13 and second output data to the indicator light driver module 15 based on communication with the main control system, and output the key signal sent by the key module 12 to the main control system; the first output data is associated with the charging status of the charging port of the charging pile; the second output data is associated with the usage status of the charging port.
[0045] Specifically, the slave control chip 11 can be a microcontroller acting as a slave controller. It is the core component of the slave control system 10 and communicates with the master control chip (master microcontroller) of the master control system via a serial port. It also communicates with the button module 12, the digital tube driver module 13, and the indicator light driver module 15 within the slave control system 10. On one hand, when the master control chip of the master control system needs to display data, it can periodically send instructions to the slave control chip 11. The instructions contain the digital tube data to be displayed and the display status of the indicator lights. The slave control chip 11 responds promptly to the master control chip and communicates with the corresponding digital tube driver module 13 and indicator light driver module 15 to control the digital tube display module 14 to display the corresponding data and to control the indicator light module 16 to display the corresponding indicator light status. On the other hand, the slave control chip 11 will also periodically scan the button module 12. When the button module 12 reports that a button has been pressed, the slave control chip 11 will receive the corresponding button value and send it to the master control chip in a timely manner. If no response is received from the master control chip, the slave control chip 11 will continue to periodically send the corresponding button value to the master control chip to prevent the master control chip from missing the button value and causing a lack of response, which would result in a negative experience for the user.
[0046] The button module 12 can, on the one hand, confirm the charging port that the user needs to use by pressing the button on the button module 12 when the user is waiting to charge, such as when the user swipes a card at the charging station; on the other hand, the button module can also send a button value to the slave control chip 11 after the user presses a button during the charging process. The slave control chip 11 sends the corresponding button value to the master control chip. The master control chip confirms the charging status of the corresponding charging port (such as the remaining charging time or the remaining chargeable amount) and displays the corresponding data through a digital tube based on the communication with the slave control chip 11.
[0047] The digital tube driver module 13 is connected to the slave control chip 11 and communicates via I2C to receive display content from the slave control chip 11. The digital tube display module 14 may specifically include a 4-digit digital tube, which can display data transmitted from the slave control chip 11. For example, the digital tube display module 14 can display the user's charging account information, such as the charging card balance and the remaining charging time of the currently used charging port. The charging port for which data needs to be displayed can be determined by the button module 12, and then the corresponding data can be displayed by the digital tube display module 14. Optionally, the displayed data will be automatically cleared after a certain period if there is no new button press or card swipe. When a new card swipe or button press occurs, the corresponding content will be displayed again. Based on this, the data of any selected port among all charging ports can be displayed using a 4-digit digital tube, allowing all charging ports to share this set of digital tubes, thereby reducing hardware costs.
[0048] The indicator light driver module 15 includes an LED constant current driver chip, and the indicator light module 16 includes LED indicator lights. The LED constant current driver chip can convert serial input data into parallel output data and provide a constant output current to ensure stable display of the LED indicator lights. The slave control chip 11 communicates with the LED constant current driver chip to control the indicator lights to display the corresponding display states.
[0049] The main control system can handle relay processing at the charging ports, collect power and temperature data from each charging port, and communicate with the cloud server via 4G to enable information exchange between the charging ports. It also performs voice playback processing and NFC card swiping. The slave control chip 11 can connect to the main control system via a connector wiring harness. Compared to charging pile control circuits that integrate all functional modules onto a single circuit board, the slave control system introduced in this embodiment improves the convenience of later maintenance, reduces maintenance costs, and simplifies maintenance. When a module malfunctions, it is not necessary to disassemble and replace the entire mainboard; only the lower-cost slave control system circuitry needs to be replaced, without involving high-voltage wiring harnesses, and the operation is relatively simple. Furthermore, by introducing the slave control system, the hardware size of the main control system can be reduced, lowering hardware costs and improving the aesthetics of the main control system. If the modules were directly connected to the main control chip, additional wiring harnesses would be required, increasing costs and potentially causing poor contact. By introducing a slave controller chip, it is possible to connect to the master controller chip using only four serial port wires: VCC, TX, RX, and GND, which reduces costs and improves connection reliability.
[0050] In addition, the digital tube display module 14 and indicator light module 16 of the slave control system 10 have the main display content and device status indication functions for daily use by consumers. The digital tube can display the data content of the corresponding port by pressing the button corresponding to each charging port. Its hardware cost is lower than that of large display screens and multi-channel digital tubes in the prior art. It can meet the functional requirements, eliminate the dependence on smart mobile devices, improve the scope of application and reduce the cost of equipment.
[0051] The application process of the slave control system 10 in this embodiment will be explained next in the context of a charging pile usage scenario. When a user needs to use the charging pile, a card swiping action will be performed based on the wireless sensing module of the main control system. At this time, the main control system will communicate with the slave control chip 11 to control the digital tube display module 14 to display the remaining amount (in yuan) of the user's charging card. For example, if the digital tube display module 14 displays the number 1000, it means that the charging card has 1000 yuan remaining. When the user needs to select a charging port, they can press the button in the button module 12 corresponding to that charging port. The indicator light in the indicator light module 16 corresponding to the port to be used for charging will flash slowly, indicating that this port has started charging. When the user presses the corresponding button again, the digital tube display module 14 will display the remaining charging time of this port in minutes, such as 1080. If the charging is based on electricity consumption, the remaining rechargeable amount can be displayed in watt-hours (1 kilowatt-hour equals 1000 watt-hours). If the user presses the button directly without swiping the card, the main control system will provide a voice prompt to the user to swipe the card. If a user swipes their card and selects an already used charging port via the button module, the main control system can provide a voice prompt: "The current charging port is in use; please select another charging port." This embodiment provides a very intuitive display of the charging station's status and is easy to use, solving the inconvenience caused by buttonless charging station devices on the market for some people who are not accustomed to using smart devices.
[0052] In one embodiment, the slave chip 11 is also used to send third output data to the digital tube driver module 13 based on communication with the master control system; the third output data is associated with the charging account information of the charging user.
[0053] In another embodiment, the indicator lights of the indicator light module 16 correspond one-to-one with the charging ports of the charging pile. For example, for a charging pile with 12 charging ports, 12 indicator lights can be set, each corresponding to one charging port, to indicate the usage status of the corresponding charging port. Based on this, the port usage status can be displayed intuitively and clearly with lower hardware costs. Compared with the display screens used in the prior art, this approach balances hardware cost and display effect.
[0054] In one embodiment, the indicator light module 16 displays multiple display states, each corresponding to a specific charging port's usage status. Taking a charging pile with 12 charging ports as an example, the indicator lights corresponding to these 12 ports have various states, including constant on, constant off, slow flashing, and fast flashing. The flashing and fast flashing times can be adjusted by the main control chip, with a default slow flashing interval of 1.5 seconds and a default fast flashing interval of 0.5 seconds. When a charging port is constantly on, it indicates that the port is in normal working order and ready for use; constantly off indicates that the port is unusable; slow flashing indicates that the port is in use; and simultaneous fast flashing of all charging port indicator lights indicates that the charging pile is undergoing an upgrade or that the overall temperature of the charging pile is too high.
[0055] In one embodiment, the buttons of the button module 12 correspond one-to-one with the charging ports of the charging pile. For example, for a charging pile with 12 charging ports, 12 buttons can be set accordingly, with each button corresponding to one charging port, so that users can select the charging port they need to use or view information by pressing the button, thereby improving the convenience and efficiency of users in selecting the port.
[0056] In one embodiment, the button module 12 is a button matrix composed of physical buttons; the button module 12 is connected to the GPIO pin of the slave control chip 11; the slave control chip 11 is used to send the button values pressed by the user in the button module 12 to the master control system during the user's waiting charging stage, so that the master control system can confirm the charging port to be used; and is used to send the button values pressed by the user in the button module to the master control system during the charging stage, so that the master control system can confirm the charging status of the corresponding charging port.
[0057] In this embodiment, a matrix keypad is directly connected to the GPIO pins of the slave control chip 11, saving pins on the slave control chip 11. Using physical keys avoids the problem of key insensitivity caused by dry skin or wet fingers. When a key is pressed, the corresponding key value is captured by the slave control chip 11 and promptly sent to the master control chip. After communicating with the cloud backend, the master control chip then sends the corresponding execution command to the slave control chip 11.
[0058] The key press value reception is handled by the slave control chip 11, which then transmits this key press value to the master control chip. The master control chip can communicate with the cloud server via a 4G module, transmitting information such as which charging port the user has selected. The cloud server then controls the charging ports. For example, the cloud server can display which port is currently charging on the consumer's mini-program interface. When a new consumer scans the code again, already used ports will appear grayed out (indicating they are in use and cannot be selected), and the cloud server needs to record information such as the charging time for each port.
[0059] In one embodiment, the indicator light driving module 15 includes an LED constant current driving chip; the indicator light driving module 15 is used to convert the serial input data of the slave chip 11 into parallel output data and output it to the indicator light module 16, and to provide a constant output current to the indicator light module 16.
[0060] In this embodiment, the indicator light driver module 15 uses an LED constant current driver chip to convert serial data into parallel output data, providing a constant output current to ensure stable display of the indicator light, thereby accurately representing the status of the charging port.
[0061] In one embodiment, the digital tube driver module 13 communicates serially with the slave control chip 11 to receive the first output data from the slave control chip 11 and transmit it to the digital tube display module 14 for display. Specifically, the digital tube driver module can be a digital tube driver chip, connected to the slave control chip and communicating via I2C, receiving the first output data from the slave control chip 11 to display the remaining charging time or remaining rechargeable amount at the charging port. It can also receive a third output data from the slave control chip 11 to display the charging card balance information. The digital tube display module 14 can be a 4-digit digital tube.
[0062] In one embodiment, the slave chip 11 communicates with the master chip of the master system based on a serial asynchronous communication protocol. The slave chip 11 can communicate with the master chip using a universal asynchronous transceiver (UART). Figure 2 This is a circuit structure diagram of a slave controller chip 11 in this embodiment, as shown below. Figure 2 As shown, the VDD pin of the slave control chip 11 is connected to the power supply VCC, and the VSS pin is grounded (connected to GND). VDD is also connected to capacitor C3 to CND for power filtering, making the input voltage more stable. VCC and GND come from the circuitry of the master control system, meaning the master control system provides power to the slave control system. The SWDIO and SWCLK pins of the slave control chip 11 are for firmware programming. The USART1_RX pin of the slave control chip 11 is connected to the RX pin of the master control chip, and the USART1_TX pin of the slave control chip is connected to the TX pin of the master control chip, enabling serial communication between them. The slave control chip receives display and response commands from the master control chip and reports response data and key value data.
[0063] Additionally, pins PB4, PC3, and PC4 of slave control chip 11 are connected to rows KeyL1, KeyL2, and KeyL3 of the key module (in this case, a 3-row, 4-column matrix keyboard); pins PA2, PD4, PD1, and PD2 of slave control chip 11 are connected to columns KeyH1, KeyH2, KeyH3, and KeyH4 of the matrix keyboard. Slave control chip 11 assigns a value of 0 (level) to each of the three rows of the matrix keys, and determines the pressed key value by scanning whether the four columns are pulled low. Pins PD6 and PA1 of slave control chip 11 are connected to the DAT and CLK pins of the digital tube driver chip, respectively. Figure 2 The slave controller chip (named CLK1) uses software to simulate I2C communication with the LED driver chip to control the display data of the LED tube. Slave controller chip 11's PC5, PC6, and PC7 respectively communicate with the LED driver chip's LE, CLK (… Figure 2 The controller chip 11 (named CLK2) is connected to the LED driver chip (SDI). The controller chip 11 communicates with the LED driver chip according to a certain timing sequence, thereby controlling the display of 12 LEDs.
[0064] The slave chip can communicate with the master chip based on a certain frame format. Figure 3 This is a schematic diagram of a frame format for communication between a slave control chip and a master control chip in this embodiment, as shown below. Figure 3 As shown, the frame header is 2 bytes of fixed data (including Head1 of frame header 1 and Head2 of frame header 2); the frame length is 2 bytes, with the lower byte length LenL transmitted first, followed by the higher byte length LenH, representing the total byte length from the frame header to the end of frame verification; the frame sequence number is 1 byte, represented as SqNo, incremented by one for each command sent, ranging from 0 to 255, and reset to zero if out of range. The sequence number remains unchanged after retransmission (retransmissions occur 3 times, with an interval of 100ms). The frame sequence number of the ACK acknowledgment command is equal to the frame sequence number of the acknowledged message; the command word Cmd is 1 byte, representing the command function. Yes, for example, the command word for a 12-channel port indicator light is 0x01, the command word for a 4-digit LED display is 0x02, and the command word for a 12-channel keypad is 0x03; the command type CmdType is 1 byte, where 0x00 represents the calling instruction and 0x01 represents the response instruction; the command body CmdInfo is multiple bytes, with a variable length depending on the function corresponding to the command word, and the command body format will differ for different command words; frame verification includes CRCL and CRCH, 2 bytes, where all data from the frame header to the data body is verified by CRC, with the low byte of the result first and the high byte last.
[0065] For each frame of data exchanged between the slave and master control chips, the receiver needs to verify the data. Only when the frame verification result matches the sender's frame verification data is the data considered valid. If a verification error occurs, the receiver replies with an error response, and the sender retransmits the data upon receiving it.
[0066] Whether it is the master control chip or the slave control chip, when a normal data frame is received and the frame format and frame verification are correct, the receiver needs to reply to the sender with a normal acknowledgment frame to indicate that the instruction has been received. After receiving the normal acknowledgment frame, the sender stops the retransmission mechanism. Figure 4 This is a schematic diagram illustrating the composition of a normal response frame in this embodiment, as shown below. Figure 4 As shown, a normal response frame has the following fields: command word Cmd, command type CmdType, and command body CmdInfo, each with a length of 1 byte. The command word is 0x00 or the same as the sender's command word; the command type is 0x01, indicating a response instruction; and the command body CmdInfo is 0x00.
[0067] When the verification result of the data frame received by the receiver is inconsistent with that of the sender, it indicates that the transmitted frame is abnormal. The receiver needs to send an abnormality response frame to the sender. After receiving the abnormality response frame, the sender initiates a retransmission mechanism. Retransmission stops when a normal response frame is received, or if a normal response frame is not received after a limited number of retransmissions, the retransmission mechanism will also stop. Figure 5 This is a schematic diagram illustrating the composition of an abnormal response frame in this embodiment, as shown below. Figure 5 As shown, the exception response field includes the command word Cmd, command type CmdType, command body 1 CmdInfo1, and command body 2 CmdInfo2. Except for command body 1, which is 4 bytes long, all others are 1 byte long. The command word is consistent with the sending end's command word; the command type is 0x01, indicating an acknowledgment instruction; command body 1 CmdInfo is 0xFF 0xFF 0xFF 0xFF, indicating an exception code. The specific exception in command body 2 is 0x01, a checksum error; other content can be set according to actual needs.
[0068] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated in this embodiment.
[0069] Figure 6 This is a circuit structure diagram of the button module 12 in this embodiment, as shown below. Figure 6As shown, button module 12 can be a 12-channel physical button circuit, connected as follows: In the first row, button S1 is connected in series with diode D1, button S4 with diode D2, button S7 with diode D3, and button S10 with diode D4. One end of all diodes (D1, D2, D3, D4) is connected to pin 12 PB4 of the slave control chip. In the second row, button S2 is connected in series with diode D5, button S5 with diode D6, button S8 with diode D7, and button S11 with diode D8. One end of all diodes (D5, D6, D7, D8) is connected to pin 13 PC3 of the slave control chip. In the third row, button S3 is connected in series with diode D9, button S6 with diode D10, button S9 with diode D11, and button S12 with diode D12. One end of all diodes (D9, D10, D11, D12) is connected to pin 12 PB4 of the slave control chip. In the first column, S1, S2, and S3 are connected in parallel with a 100KΩ resistor R1 to the power supply VCC, and simultaneously connected to pin 6 (PA2) of the slave controller chip. In the second column, S4, S5, and S6 are connected in parallel with a 100KΩ resistor R2 to VCC, and simultaneously connected to pin 1 (PD4) of the slave controller chip. In the third column, S7, S8, and S9 are connected in parallel with a 100KΩ resistor R3 to VCC, and simultaneously connected to pin 19 (PD2) of the slave controller chip. In the fourth column, S10, S11, and S12 are connected in parallel with a 100KΩ resistor R4 to VCC, and simultaneously connected to pin 18 (PD1) of the slave controller chip.
[0070] Figure 7a This is a circuit diagram of the digital tube driver module in this embodiment. Figure 7b This is a circuit structure diagram of the digital tube display module in this embodiment. Combined with... Figure 7a and Figure 7b In this embodiment, the digital tube display module can be a 4-digit digital tube. The 4-digit digital tube driving circuit is connected as follows: Pins DIG1, DIG2, DIG3, and DIG4 of the digital tube driver U2 are connected to pins DIG1, DIG2, DIG3, and DIG4 of the digital tube U4, respectively. Pin CLK is connected to pin PA1 (5th pin) of the slave control chip, and pin DAT is connected to pin PD6 (3rd pin) of the slave control chip. The GND pin of the slave control chip is connected to the negative terminal of the power supply, and VCC is connected to the positive terminal of the power supply. Pins A, B, C, D, E, F, G, and DP of U2 are connected to pins A, B, C, D, E, F, G, and DP of the digital tube U4, respectively. Capacitor C5 is a filter capacitor connected to the positive and negative terminals of the power supply and placed near the power supply terminal of U2, with a resistance of 100nF.
[0071] Figure 8a This is a circuit diagram of the indicator light module in this embodiment. Figure 8b This is a circuit structure diagram of the indicator light driver module in this embodiment, combined with... Figure 8a and Figure 8b In this embodiment, the indicator module is a 12-channel LED indicator. The 12-channel port indicator driver circuit is connected as follows: U3 is the LED driver, and the anodes of the 12 LEDs LED1, LED2, LED3, LED4, LED5, LED6, LED7, LED8, LED9, LED10, LED11, and LED12 are respectively connected to OUT5, OUT4, OUT3, OUT2, OUT1, OUT0, OUT8, OUT9, OUT10, OUT11, OUT12, and OUT13 of U3.
[0072] Pin GND of U3 is connected to the power supply ground, VDD is connected to the positive terminal of the power supply, pin 2 SDI is connected to pin 17 PC7 of U1, pin 3 CLK is connected to pin 16 PC6 of U1, and pin 4 LE is connected to pin 15 PC5 of U1. Pin 21 OE / of U3 is connected to a 10K resistor to the power supply ground. Pin 23 R-EXTE of U3 is connected to a 1.8K resistor to the power supply ground for lamp current limiting.
[0073] In conjunction with the aforementioned slave control system for charging piles, this embodiment also provides a method for operating each module of the slave control system. Figure 9 This is a flowchart illustrating the operation method of each module of the slave control system in this embodiment, such as... Figure 9 As shown, the running method includes:
[0074] Step S901: Power on each module of the slave control system; wherein, the power supply is provided by the master control system.
[0075] Step S902, initialize the slave controller chip; this includes initializing the clock, timer, watchdog timer, and serial communication in the slave controller chip.
[0076] Step S903: Initialize the digital tube driver module.
[0077] Step S904: Initialize the indicator light driver module.
[0078] Step S905: Initialize the button module.
[0079] In step S906, all indicator lights are on by default, and the digital tube displays "0000" by default.
[0080] Step S907: Determine whether the serial port has received a message from the main control system; if yes, proceed to step S908; otherwise, proceed to step S909.
[0081] Step S908: Send a response reply to the main control system.
[0082] Step S909: Determine whether the indicator light status needs to be updated; if yes, proceed to step S910; otherwise, proceed to step S911.
[0083] In step S910, the control chip communicates with the indicator light driver chip to update the display status of the indicator light, and then executes step S912; wherein, the display status includes always on, always off, slow flashing (interval of 1.5 seconds), fast flashing (interval of 500 milliseconds), etc.
[0084] Step S911: Keep the indicator light in its current state.
[0085] Step S912: Determine whether the content of the digital tube needs to be updated; if yes, proceed to step S913; otherwise, proceed to step S914.
[0086] Step S913: The slave control chip communicates with the digital tube driver module to control the content displayed on the digital tube, and then executes step S915.
[0087] Step S914: Keep the digital tube displaying the current content.
[0088] Step S915: After a 10-second timeout, the digital tube display is cleared to "0000".
[0089] Step S916: Periodically scan the button module.
[0090] Step S917: Determine whether a button has been pressed; if so, proceed to step S918; otherwise, return to step S907.
[0091] Step S918: Periodically send the pressed button value to the main control system via serial port, and stop sending after receiving a response from the main control system; proceed to step S907.
[0092] This embodiment also provides a control platform for a charging pile. Figure 10 This is a schematic diagram of the control platform 20 of the charging pile in this embodiment, as shown below. Figure 10 As shown, the control platform 20 includes: a main control system 22, a cloud server 24, and a slave control system 10 provided in any of the above embodiments.
[0093] Figure 11 Here is a connection diagram of the master control system and slave control system in some embodiments, such as Figure 11 As shown, the main control system 22 includes a main control chip and various modules of the main control system; the slave control system 26 includes a slave control chip 11, a 12-channel matrix keypad 12, a 4-digit digital tube driver circuit 13, a 4-digit digital tube 14, a 12-channel port indicator light driver circuit 15, and a 12-channel LED light 16.
[0094] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.
[0095] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0096] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.
[0097] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0098] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.
Claims
1. A slave control system for a charging pile, characterized in that, include: The system comprises a controller chip, a button module, a digital tube driver module, a digital tube display module, an indicator light driver module, and an indicator light module; among which: The slave control chip is connected to one end of the button module, one end of the digital tube driver module, and one end of the indicator light driver module; the slave control chip is also communicatively connected to the main control system of the charging pile; The other end of the digital tube driver module is connected to the digital tube display module; The other end of the indicator light driver module is connected to the indicator light module; The slave control chip is used to send first output data to the digital tube driver module and second output data to the indicator light driver module based on communication with the master control system, and output the key signal sent by the key module to the master control system; the first output data is associated with the charging status of the charging port of the charging pile; the second output data is associated with the usage status of the charging port.
2. The slave control system according to claim 1, characterized in that, The slave control chip is also used to send third output data to the digital tube driver module based on communication with the master control system; the third output data is associated with the charging account information of the charging user.
3. The slave control system according to claim 1, characterized in that, The indicator lights of the indicator light module correspond one-to-one with the charging ports of the charging pile.
4. The slave control system according to claim 1, characterized in that, The indicator light module has multiple display states, and each display state corresponds to a different usage state of the charging port.
5. The slave control system according to claim 1, characterized in that, The buttons on the button module correspond one-to-one with the charging ports of the charging pile.
6. The slave control system according to claim 1, characterized in that, The button module is a button matrix composed of physical buttons; the button module is connected to the GPIO pin of the slave control chip; the slave control chip is used to send the button values pressed by the user in the button module to the master control system during the user's waiting charging phase, so that the master control system can confirm the charging port to be used; and is used to send the button values pressed by the user in the button module to the master control system during the charging phase, so that the master control system can confirm the charging status of the corresponding charging port.
7. The slave control system according to claim 1, characterized in that, The indicator light driving module includes an LED constant current driving chip; the indicator light driving module is used to convert the serial input data of the slave control chip into parallel output data and output it to the indicator light module, and to provide a constant output current to the indicator light module.
8. The slave control system according to claim 1, characterized in that, The digital tube driver module communicates serially with the slave control chip to receive the first output data from the slave control chip and transmit it to the digital tube display module for display.
9. The slave control system according to any one of claims 1 to 8, characterized in that, The slave control chip communicates with the master control chip of the master control system based on a serial asynchronous communication protocol.
10. A control platform for a charging pile, characterized in that, It includes a master control system, a cloud server, and a slave control system as described in any one of claims 1 to 9.