Charging pile remote control method and system based on CAN protocol

By adopting a remote control method based on the CAN protocol in the charging pile system, the problem of transmission deviation and unclear result feedback of the charging pile remote operation protocol in the prior art is solved, and a more stable and accurate remote operation function is achieved, which is suitable for large, medium and small charging pile switching devices.

CN119967035AInactive Publication Date: 2025-05-09STATE GRID ELECTRIC VEHICLE SERVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411869705.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-05-09
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing remote operation protocol of charging piles has problems such as transmission deviation and unclear results feedback, which cannot meet the remote operation function of large switching equipment.

Method used

The remote control method of charging piles based on the CAN protocol is adopted, and the remote interaction protocol is formulated through the platform, remote command frames are sent to the charging pile, and remote operation is realized through the charging pile.

Benefits of technology

It improves the stability of communication and the accuracy of transmission, ensures that the time of command issuance and execution is clear, and obtains clear feedback on the execution results, and is compatible with the remote control of large, medium and small charging pile switching devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967035A_ABST
    Figure CN119967035A_ABST
Patent Text Reader

Abstract

The invention provides a charging pile remote control method and system based on a CAN protocol. The method comprises the steps that a remote interaction protocol is formulated through a platform; sending a remote command frame to a charging pile based on the remote interaction protocol; and the charging pile executes operation based on the remote command frame and replies a command response frame to realize remote operation. According to the method, the communication is more reliable by utilizing the property that CAN communication is more stable, and meanwhile, the message content of the remote control process of the charging pile is optimized by formulating a remote interaction protocol, so that the transmission accuracy is further improved, the command issuing and executing time can be known more clearly, and a clearer execution result feedback can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of charging piles, and in particular to a charging pile remote control method and system based on the CAN protocol. Background Art

[0002] The rapid growth of the number of charging piles has brought great challenges to on-site operation and maintenance. When a charging pile fails, it often receives complaints from users, and the operation and maintenance personnel need to go to the site for maintenance. Some charging stations are located in remote locations and far away, and the staff takes a long time to travel. Maintenance requires a lot of manpower and material resources. If the charging pile can be remotely operated, such as remote unlocking and remote restart, it can solve the on-site problems reported by some users in a timely manner, reduce user complaints, and improve service satisfaction. In view of the fact that there are certain transmission deviations and unclear result feedback in the remote operation protocols of various platforms, and it cannot meet the remote operation functions of large switches such as circuit breaker electric operation, it is necessary to propose a new protocol control method with stable communication, clear feedback, and wide functional coverage. Summary of the invention

[0003] In order to solve the problem that the remote operation protocols of various platforms currently have certain transmission deviations and unclear result feedback, and cannot meet the remote operation function of large switches such as circuit breaker electric operation, the present invention proposes a charging pile remote control method based on the CAN protocol, including:

[0004] Develop remote interaction protocols through the platform;

[0005] Sending a remote command frame to the charging pile based on the remote interaction protocol;

[0006] The remote operation is achieved by the charging pile performing an operation based on the remote command frame and replying a command response frame.

[0007] Optionally, formulating a remote interaction protocol through the platform includes:

[0008] Set the remote command frame and response frame priority to be higher than the highest priority in the set standard;

[0009] Set up the message according to the multi-frame format specified in the standard.

[0010] Optionally, setting the message according to the multi-frame format specification in the standard includes:

[0011] The first byte of each frame in the multi-frame message is used as the message sequence number, and increases in order from small to large;

[0012] The total number of bytes from the second byte of each frame message in the multi-frame message to the last byte of the cumulative check code is taken as the number of message bytes;

[0013] Define valid data based on remote command frame and remote command response frame;

[0014] The cumulative sum of all data values ​​from the message byte number to the valid data N is used as the cumulative check code;

[0015] The remote interaction protocol includes: message sequence number, message byte number, valid data and accumulated check code.

[0016] Optionally, the defining of valid data based on the remote command frame and the remote command response frame includes:

[0017] The first 8 bytes of valid data in the remote command frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, and the 17th byte is the content of the operation instruction;

[0018] The first 8 bytes of valid data in the remote command response frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, the 17th byte is the operation instruction content, the 18th byte adds the reply result, and the 19th byte is the reason for failure.

[0019] Optionally, the sending a remote command frame to the charging pile based on the remote interaction protocol includes:

[0020] Each bit of the "operation instruction" byte in the remote command frame corresponds to the output level of the charging pile controller chip. The lower four bits control the PD1-PD4 pins of the charging pile controller chip to output the instantaneous level of 1S respectively, and the upper four bits control the pin PD5 or PD6 of a charging pile controller chip to continuously generate a high level or stop outputting a high level.

[0021] Transmit each bit of the "operation instruction" byte in the remote command to the corresponding pin of the charging pile controller chip.

[0022] Optionally, the remote operation is realized by the charging pile performing an operation based on the remote command frame and replying a command response frame, including:

[0023] When bit1 of the "operation instruction" byte in the remote command frame received by the charging pile is 1, the PD1 pin of the charging pile controller chip generates a high level for 1S, and the D01+ of the charging pile controller connected to the PD1 generates an output voltage of 1S; similarly, when bit2 is 1, the DO2+ of the charging pile controller connected to the PD2 pin generates an output voltage of 1S; when bit3 is 1, the DO3+ of the charging pile controller connected to the PD3 pin outputs an output voltage of 1S; when bit4 is 1, the DO4+ of the charging pile controller connected to the PD4 pin generates an output voltage of 1S; byte When bit5 is 1, D05+ of the charging pile controller connected to the PD5 pin generates a continuous output voltage; when the byte bit6 is 1, the PD5 pin of the charging pile controller chip stops outputting a high level, and the D05+ of the charging pile controller connected to PD5 stops outputting voltage; when bit7 is 1, the charging pile control chip PD6 continuously outputs a high level, and the DO6+ of the charging pile controller connected to the PD6 generates a continuous output voltage; when bit8 is 1, the PD6 pin of the charging pile controller chip stops outputting a high level, and the output voltage of DO6+ of the charging pile controller connected to the PD6 disappears;

[0024] The output voltage of D01+ to D06+ of the charging pile controller is used to control the relay coil connected to D01+ to D06+ to be energized, thereby controlling the state of the relay to realize remote operation.

[0025] Optionally, it also includes:

[0026] Bit1-Bit8 in the 18th byte of the operation instruction corresponds to the working status of the charging pile controller chip pins PD7-PD12. At the same time, PD7-PD12 corresponds to DO7+-DO12+ of the charging pile controller respectively, and the relay connected to DO7+-DO12+ of the charging pile controller is remotely controlled.

[0027] On the other hand, the present invention also provides a charging pile remote control system based on the CAN protocol, comprising:

[0028] A platform for formulating a remote interaction protocol and sending a remote command frame to a charging pile based on the remote interaction protocol;

[0029] The charging pile performs operations based on the remote command frame and replies with a command response frame to achieve remote operation.

[0030] Optionally, the charging pile is specifically used for:

[0031] When bit1 of the "operation instruction" byte in the remote command frame received by the charging pile is 1, the PD1 pin of the charging pile controller chip generates a high level for 1S, and the D01+ of the charging pile controller connected to the PD1 generates an output voltage of 1S; similarly, when bit2 is 1, the DO2+ of the charging pile controller connected to the PD2 pin generates an output voltage of 1S; when bit3 is 1, the DO3+ of the charging pile controller connected to the PD3 pin outputs an output voltage of 1S; when bit4 is 1, the DO4+ of the charging pile controller connected to the PD4 pin generates an output voltage of 1S; byte When bit5 is 1, D05+ of the charging pile controller connected to the PD5 pin generates a continuous output voltage; when the byte bit6 is 1, the PD5 pin of the charging pile controller chip stops outputting a high level, and the D05+ of the charging pile controller connected to PD5 stops outputting voltage; when bit7 is 1, the charging pile control chip PD6 continuously outputs a high level, and the DO6+ of the charging pile controller connected to the PD6 generates a continuous output voltage; when bit8 is 1, the PD6 pin of the charging pile controller chip stops outputting a high level, and the output voltage of DO6+ of the charging pile controller connected to the PD6 disappears;

[0032] The output voltage of D01+ to D06+ of the charging pile controller is used to control the relay coil connected to D01+ to D06+ to be energized, thereby controlling the state of the relay to realize remote operation.

[0033] Optionally, the implementation steps of formulating the remote interaction protocol in the platform include:

[0034] Set the remote command frame and response frame priority to be higher than the highest priority in the set standard;

[0035] Set up the message according to the multi-frame format specified in the standard.

[0036] Optionally, the platform sets the message according to the multi-frame format specified in the standard, and the specific implementation steps include:

[0037] The first byte of each frame in the multi-frame message is used as the message sequence number, and increases in order from small to large;

[0038] The total number of bytes from the second byte of each frame message in the multi-frame message to the last byte of the cumulative check code is taken as the number of message bytes;

[0039] Define valid data based on remote command frame and remote command response frame;

[0040] The cumulative sum of all data values ​​from the message byte number to the valid data N is used as the cumulative check code;

[0041] The remote interaction protocol includes: message sequence number, message byte number, valid data and accumulated check code.

[0042] Optionally, the implementation steps of defining valid data based on the remote command frame and the remote command response frame in the platform include:

[0043] The first 8 bytes of valid data in the remote command frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, and the 17th byte is the content of the operation instruction;

[0044] The first 8 bytes of valid data in the remote command response frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, the 17th byte is the operation instruction content, the 18th byte adds the reply result, and the 19th byte is the reason for failure.

[0045] Optionally, the step of sending a remote command frame to a charging pile based on the remote interaction protocol in the platform includes:

[0046] Each bit of the "operation instruction" byte in the remote command frame corresponds to the output level of the charging pile controller chip, wherein the lower four bits bit1-bit4 correspond to the four pins PD1-PD4 of the charging pile controller chip in turn, controlling the four pins PD1-PD4 to output an instantaneous high level of 1S, and the upper four bits bit5 and bit6 correspond to the PD5 pin of the charging pile controller chip, respectively controlling PD5 to output a continuous high level and stop outputting a continuous high level, and the upper four bits bit7 and bit8 correspond to the PD6 pin of the charging pile controller chip, respectively controlling PD6 to output a continuous high level and stop outputting a continuous high level;

[0047] Transmit each bit of the "operation instruction" byte in the remote command to the corresponding pin of the charging pile controller chip.

[0048] Optionally, the platform further includes: an expansion module;

[0049] The expansion module is used to correspond Bit1-Bit8 in the 18th byte of the operation instruction to the working status of the charging pile controller chip pins PD7-PD12, and at the same time, correspond PD7-PD12 to DO7+-DO12+ of the charging pile controller respectively, and remotely control the relay connected to DO7+-DO12+ of the charging pile controller.

[0050] In another aspect, the present application further provides an electronic device, comprising: at least one processor and a memory; the memory and the processor are connected via a bus;

[0051] The memory is used to store one or more programs;

[0052] When the one or more programs are executed by the at least one processor, a charging pile remote control method based on the CAN protocol as described above is implemented.

[0053] On the other hand, the present application also provides a readable storage medium having an execution program stored thereon, and when the execution program is executed, a charging pile remote control method based on the CAN protocol as described above is implemented.

[0054] Compared with the prior art, the present invention has the following beneficial effects:

[0055] The present invention proposes a remote control method for a charging pile based on the CAN protocol, comprising: formulating a remote interaction protocol through a platform; sending a remote command frame to the charging pile based on the remote interaction protocol; and performing an operation based on the remote command frame and replying a command response frame by the charging pile to realize remote operation. The present invention utilizes the more stable nature of CAN communication itself to make communication more reliable. At the same time, by formulating a remote interaction protocol, the message content of the remote control process of the charging pile is optimized, the transmission accuracy is further improved, the time of command issuance and execution can be more clearly known, and clearer feedback on execution results can be obtained. At the same time, the protocol includes and is compatible with remote control of large, medium and small switching devices of various charging piles. Remote control alleviates complaints caused by the inability to unlock, AC circuit failure and various faults that can be solved by restarting on site to a certain extent, improves user satisfaction, solves the problems of high operation and maintenance costs and slow solution speed, improves the intelligent operation and maintenance level of charging piles, and plays a positive role in the development of the entire electric facility industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 This is a flow chart of a charging pile remote control method based on CAN protocol of the present invention;

[0057] Figure 2 This is a diagram showing the correspondence between the operation instruction bytes and the chip pins of the present invention;

[0058] Figure 3 A schematic diagram of the circuit structure of PD1 of the present invention is provided;

[0059] Figure 4 This is a schematic diagram of the electric control system of the charger AC circuit breaker of the present invention;

[0060] Figure 5 A diagram showing a charger receiving a remote operation instruction during charging of the charger of the present invention;

[0061] Figure 6 This is a response diagram of the charging pile of the present invention after detecting that the main AC switch is disconnected;

[0062] Figure 7The charger shutdown module of the present invention loses power, and the remote operation instruction diagram is received again after 3 minutes;

[0063] Figure 8 This is a response diagram of the charging pile of the present invention after detecting that the AC main switch is closed;

[0064] Fig. 9 A diagram of a remote operation instruction received during charging of the charging pile of the present invention;

[0065] Fig.10 The charger of the present invention refuses to operate after receiving the command and replies with a response diagram;

[0066] Fig.11 The figure is a schematic diagram of the structure of an electronic device of the present invention. DETAILED DESCRIPTION

[0067] The present invention utilizes the reliability and accuracy of CAN communication to provide a charging pile remote control method based on the CAN protocol. A remote interaction protocol is formulated, which includes and is compatible with the remote control of various charging pile switch devices. When the charging pile needs to be remotely controlled, the platform sends a remote command frame. After receiving the command, the charging pile executes the operation and replies to the remote command response frame. The charging pile controller chip outputs the corresponding pin level according to the bit position of the key byte of the transmission message, so that the controller opens the output to generate voltage to control the corresponding relay action and realize remote operation.

[0068] In order to better understand the present invention, the content of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0069] Embodiment 1:

[0070] A charging pile remote control method based on CAN protocol, such as Figure 1 As shown, including:

[0071] Step 1: Develop remote interaction protocols through the platform;

[0072] Step 2: Sending a remote command frame to the charging pile based on the remote interaction protocol;

[0073] Step 3: The charging pile performs an operation based on the remote command frame and replies with a command response frame to achieve remote operation.

[0074] The specific contents of step 1 are as follows:

[0075] (1) Message format and content

[0076] Since the message is more than 8 bytes, according to the SAE J1939 protocol and the internal communication protocol of the charger, the remote command frame and the response frame are both in multi-frame format. In this embodiment, the internal communication protocol of the charger refers to the multi-frame format in the standard "Q / GDW10233-2021". The current protocol stipulates that the highest priority in the CAN communication message of the charging controller is 04, so the remote command frame priority is set to 03, which is higher than 04, and the PGN is defined as 256, that is, 0C01; the response frame priority is also 03, and the PGN is defined as 512, that is, 0C02. The message data format is as follows:

[0077]

[0078]

[0079] Message sequence number: According to the CAN multi-frame transmission protocol, the first byte of each frame in the multi-frame message is the message sequence number, and it increases in sequence from 01, 02, 03...;

[0080] Number of bytes in message: the total number of bytes from this byte to the last byte of the cumulative check code (excluding the message sequence number of each line). The maximum number in this message is 255, which is convenient for message data verification.

[0081] Cumulative checksum: the sum of all data values ​​from the number of message bytes to the valid data N, with the low byte first, to prevent data errors during transmission. If the checksum is wrong, the data is considered invalid.

[0082] Valid data: Content definition is shown in Table 1:

[0083] Table 1 Remote command frame

[0084]

[0085] Table 2 Remote command response frame

[0086]

[0087]

[0088] The first 8 bytes of valid data in the remote command frame are the number of the charging pile on the platform. The numbers of different platforms are different. The length and content of the pile number can be defined by yourself, which is convenient for corresponding to a certain charging pile on the platform; the 9th byte is the gun number of the charging pile. The command is specific to each charging gun of the charging pile, occupying 1 byte; the 10th to 16th bytes are timestamps. Both remote commands and response frames send the current time as a record of the command issuance and execution time. The CP56time2a format is used and occupies 7 bytes; the 17th byte is the operation instruction content, which is a specific command implemented on the remote charging pile, occupying 1 byte. The operation instruction bytes can be further expanded in this format as needed;

[0089] The first 17 bytes of the remote command response frame are consistent with the content of the remote command frame. The 18th byte adds the reply result, and replies to the platform whether the operation result is successful. If successful, reply 00 in the failure reason in the 19th byte. If failed, reply the specific reason for failure in the 19th byte: When in high-power charging state, receiving commands such as electronic lock unlocking and controller restarting should reply "operation prohibited" for safety reasons; if the charging pile executes the command but fails to execute successfully due to other problems such as lines and devices, it should reply "other".

[0090] Step 2 specifically includes: each bit of the "operation instruction" byte in the remote command frame corresponds to the output level of the charging pile controller chip, wherein the lower four bits bit1-bit4 correspond to the four pins PD1-PD4 of the charging pile controller chip in turn, and control the four pins PD1-PD4 to output an instantaneous high level of 1S, and the upper four bits bit5 and bit6 correspond to the PD5 pin of the charging pile controller chip, and respectively control PD5 to output a continuous high level and stop outputting a continuous high level, and the upper four bits bit7 and bit8 correspond to the PD6 pin of the charging pile controller chip, and respectively control PD6 to output a continuous high level and stop outputting a continuous high level;

[0091] Transmit each bit of the "operation instruction" byte in the remote command to the corresponding pin of the charging pile controller chip.

[0092] Step 3 specifically includes:

[0093] (2) Remote control implementation method

[0094] Each bit of the "operation instruction" byte in the remote command frame corresponds to the output level of the charging pile controller chip. When it is 1, it means that this bit is effective, and when it is 0, it means that it is ineffective. The lower four bits control the instantaneous level of the four pins PD1-PD4 to output 1S respectively, and the upper four bits control one pin PD5 or PD6 to continuously generate or stop level output. The specific corresponding relationship is as follows Figure 2As shown, the lower four bits bit1-bit4 correspond to the four pins PD1-PD4 of the charging pile controller chip in turn, and can control the corresponding pins to output an instantaneous high level of 1S; the upper four bits bit5 control the PD5 pin of the charging pile controller chip to output a continuous high level, and bit6 stops the continuous high level of this pin; bit7 controls the PD6 pin to output a continuous high level, and bit8 stops the continuous high level of this pin;

[0095] The six pins PD1-PD6 of the charging pile controller chip are connected to the six open ports DO1+-DO6+ of the charging pile controller through an open circuit;

[0096] When the bit 1 of the "operation instruction" byte in the remote command frame received by the charging pile is 1, that is, the byte is 01, the PD1 pin of the charging pile controller chip generates a high level for 1S, the Q16 transistor is turned on within 1S, the 5V power supply supplies power to the RL8 relay coil, the contacts are closed, DO1+ and DCP12V+ are turned on, the charging pile controller opens the output DO1+ to generate 12V voltage, and the high level of the PD1 pin disappears after 1S, and DO1+ stops outputting 12V voltage. Similarly, when the bit 2 of the "operation instruction" byte in the message received by the charging pile is 1, that is, the byte is 02, DO2+ generates 12V voltage for 1S; when bit 3 is 1, that is, the byte is 04, DO3+ outputs 12V voltage for 1S; when bit 4 is 1, that is, the byte is 08, DO4+ generates 12V voltage for 1S.

[0097] When the received "operation instruction" byte bit5 is 1, that is, the byte is 10, the PD5 pin of the charging pile controller chip generates a continuous high level, and the open outlet DO5+ generates a continuous 12V voltage; when bit6 is 1, that is, the byte is 20, the PD5 pin of the charging pile controller chip stops outputting a high level, and the 12V voltage of the open outlet DO5+ disappears. Similarly, when bit7 is 1, that is, the byte is 40, the open outlet DO6+ generates a continuous 12V voltage; when bit8 is 1, that is, the byte is 80, the PD5 pin of the charging pile controller chip stops outputting a high level, and the 12V voltage of the open outlet DO6+ disappears.

[0098] The 18th byte of the operation instruction can be further expanded as needed. Bit1-Bit8 corresponds to the working status of the chip pins PD7-PD12, and corresponds to the charging pile controller opening outputs DO7+-DO12+. The working principle is the same as the above principle.

[0099] The output circuit connecting the chip pin PD1 and the charging pile controller output DO1+ is as follows Figure 3As shown, the rest of the pins are the same, where R1 and R2 are current limiting resistors, Q1 is a transistor, C_D01 can control the conduction of the 5V circuit through Q1, D1 is an anti-reverse diode, RL1 is a relay, and after the 5V circuit is turned on, 12V+ and DO1+ can be turned on. C_D01, C_D02, C_D03, C_D04, C_D05, and C_D06 correspond to the charging pile controller outlets DO1+, DO2+, DO3+, DO4+, DO5+, and DO6+.

[0100] By using the charging pile controller to open ports DO1+-DO4+, the 1S 12V characteristic can be output, so that the DO1+, DO2+, and DO3+ ports are connected to the AC circuit breaker electrical disconnect relay, AC circuit breaker electrical closing relay, and delay relay intermediate relay of the charging pile, respectively, and these three relays are used to control the circuit breaker electrical disconnect circuit, closing circuit, and delay relay working circuit. Similarly, the DO4+ port can be connected to other intermediate relays that need to be restored by themselves to control other switching devices. You can connect external devices as needed and supplement the reserved bit content in the protocol or continue to expand the next byte operation instruction content.

[0101] By utilizing the characteristics of the charging pile opening DO5+ and DO6+ that can continuously output 12V, the DO5+ port can directly control the electronic lock coil. Similarly, the DO6+ port can be directly used to remotely control the charging pile DC contactor coil, auxiliary power relay coil and other switching devices that need to power the coil for a long time. You can connect external devices as needed and supplement the reserved bit content in the protocol or continue to expand the next byte operation instruction content.

[0102] The present invention provides a charging pile remote control method based on the CAN protocol, which utilizes the more stable nature of CAN communication itself to make communication more reliable, and optimizes the message content of the charging pile remote control process, further improving the transmission accuracy, and can more clearly know the time of command issuance and execution, and can obtain clearer feedback on execution results. At the same time, the protocol includes and is compatible with the remote control of various types of large, medium and small switching devices of charging piles. Remote control alleviates complaints caused by the inability to unlock, AC circuit failure and various faults that can be solved by restarting on site to a certain extent, improves user satisfaction, solves the problems of high operation and maintenance costs and slow resolution speed, and improves the intelligent operation and maintenance level of charging piles, which plays a positive role in the development of the entire electric facilities industry.

[0103] Example 2

[0104] Based on a 360kW dual-gun charging pile, the number is set to "11 22 33 44 55 66 77 88", the address of the billing control unit communicating with the background is 8a, the address of the target 1-gun charging controller is e1, and the method described in this article is used for remote control.

[0105] Scenario 1: A module failure occurs during charging and the AC side needs to be powered on again

[0106] The main switch of the AC main circuit of the charging pile uses an AC circuit breaker with an electric control. The opening and closing circuits of the electric control are controlled by two intermediate relays KA8 and KA7 respectively. The coils of the intermediate relays are connected to the charging pile controller DO1+, DO2+ and the common 12V negative pole of the charging pile. The system schematic diagram is as follows Figure 4 As shown, DCP12V- is the 12V- of the charging controller power supply, all DO ports share the negative pole, A, B, C, N are the three-phase live wire and N line of the charger main AC circuit respectively, 2QF is the AC main circuit breaker with an electric operating mechanism, KA7 is the intermediate relay of the electric closed circuit, and KA8 is the intermediate relay of the electric open circuit.

[0107] When the charger receives a remote operation command during charging, Figure 5 shown.

[0108] The command requires the AC main circuit to be disconnected. After receiving the command, the PD1 pin of the charging pile controller outputs a high level for 1S, the DO1+ output outputs a 12V voltage, the intermediate relay KA8 coil is instantly energized, the contacts are closed, the disconnect circuit of the electric operator is turned on, and the AC main switch is disconnected. After 1S, the 12V of DO1+ disappears, the KA8 coil loses power and disconnects, and the state is restored. After the charging pile detects that the AC main switch is disconnected, it replies as follows Figure 6 shown.

[0109] The charger shutdown module loses power and receives a remote operation command again after 3 minutes. Figure 7 shown.

[0110] The command requires the AC main circuit to be closed. The PD2 pin of the charging pile controller outputs a high level for 1S, DO2+ opens and generates a 12V voltage, the intermediate relay KA7 coil is instantly energized, the contacts are closed, the closed circuit of the electric operator is turned on, and the AC main switch is closed again. After 1S, the 12V of DO2+ disappears, the KA7 coil loses power and disconnects, and the state is restored. After the charging pile detects that the AC main switch is closed, it replies as follows Figure 8 shown.

[0111] Scenario 2: Charging The platform sends an unlock command while charging

[0112] When the charging pile receives a remote operation command during charging, Fig. 9 shown.

[0113] The command requires the electronic lock to be unlocked. Since unlocking during charging may cause safety risks, the charger refuses to operate after receiving the command and replies as follows: Fig.10 shown.

[0114] Example 3

[0115] The present invention based on the same inventive concept also provides a charging pile remote control system based on the CAN protocol, including:

[0116] A platform for formulating a remote interaction protocol and sending a remote command frame to a charging pile based on the remote interaction protocol;

[0117] The charging pile performs operations based on the remote command frame and replies with a command response frame to achieve remote operation.

[0118] Optionally, the charging pile is specifically used for:

[0119] When bit1 of the "operation instruction" byte in the remote command frame received by the charging pile is 1, the PD1 pin of the charging pile controller chip generates a high level for 1S, and the D01+ of the charging pile controller connected to the PD1 generates an output voltage of 1S; similarly, when bit2 is 1, the DO2+ of the charging pile controller connected to the PD2 pin generates an output voltage of 1S; when bit3 is 1, the DO3+ of the charging pile controller connected to the PD3 pin outputs an output voltage of 1S; when bit4 is 1, the DO4+ of the charging pile controller connected to the PD4 pin generates an output voltage of 1S; byte When bit5 is 1, D05+ of the charging pile controller connected to the PD5 pin generates a continuous output voltage; when the byte bit6 is 1, the PD5 pin of the charging pile controller chip stops outputting a high level, and the D05+ of the charging pile controller connected to PD5 stops outputting voltage; when bit7 is 1, the charging pile control chip PD6 continuously outputs a high level, and the DO6+ of the charging pile controller connected to the PD6 generates a continuous output voltage; when bit8 is 1, the PD6 pin of the charging pile controller chip stops outputting a high level, and the output voltage of DO6+ of the charging pile controller connected to the PD6 disappears;

[0120] The output voltage of D01+ to D06+ of the charging pile controller is used to control the relay coil connected to D01+ to D06+ to be energized, thereby controlling the state of the relay to realize remote operation.

[0121] Optionally, the implementation steps of formulating the remote interaction protocol in the platform include:

[0122] Set the remote command frame and response frame priority to be higher than the highest priority in the set standard;

[0123] Set up the message according to the multi-frame format specified in the standard.

[0124] Optionally, the platform sets the message according to the multi-frame format specified in the standard, and the specific implementation steps include:

[0125] The first byte of each frame in the multi-frame message is used as the message sequence number, and increases in order from small to large;

[0126] The total number of bytes from the second byte of each frame message in the multi-frame message to the last byte of the cumulative check code is taken as the number of message bytes;

[0127] Define valid data based on remote command frame and remote command response frame;

[0128] The cumulative sum of all data values ​​from the message byte number to the valid data N is used as the cumulative check code;

[0129] The remote interaction protocol includes: message sequence number, message byte number, valid data and accumulated check code.

[0130] Optionally, the implementation steps of defining valid data based on the remote command frame and the remote command response frame in the platform include:

[0131] The first 8 bytes of valid data in the remote command frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, and the 17th byte is the content of the operation instruction;

[0132] The first 8 bytes of valid data in the remote command response frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, the 17th byte is the operation instruction content, the 18th byte adds the reply result, and the 19th byte is the reason for failure.

[0133] Optionally, the step of sending a remote command frame to a charging pile based on the remote interaction protocol in the platform includes:

[0134] Each bit of the "operation instruction" byte in the remote command frame corresponds to the output level of the charging pile controller chip, wherein the lower four bits bit1-bit4 correspond to the four pins PD1-PD4 of the charging pile controller chip in turn, controlling the four pins PD1-PD4 to output an instantaneous high level of 1S, and the upper four bits bit5 and bit6 correspond to the PD5 pin of the charging pile controller chip, respectively controlling PD5 to output a continuous high level and stop outputting a continuous high level, and the upper four bits bit7 and bit8 correspond to the PD6 pin of the charging pile controller chip, respectively controlling PD6 to output a continuous high level and stop outputting a continuous high level;

[0135] Transmit each bit of the "operation instruction" byte in the remote command to the corresponding pin of the charging pile controller chip.

[0136] Optionally, the platform further includes: an expansion module;

[0137] The expansion module is used to correspond Bit1-Bit8 in the 18th byte of the operation instruction to the working status of the charging pile controller chip pins PD7-PD12, and at the same time, correspond PD7-PD12 to the charging pile controller outputs DO7+-DO12+ respectively, and remotely control the relay connected to the charging pile controller outputs DO7+-DO12+.

[0138] Example 3

[0139] like Fig.11 As shown, the present invention also provides an electronic device, which may be a computer device, a single-chip device, an intelligent mobile device, etc. The electronic device in this embodiment may include a processor, a memory, a transceiver component, etc. The memory, the processor, and the transceiver component are connected via a bus; the memory may be used to store an execution program, and an exemplary execution program may include instructions; the processor is used to execute the instructions stored in the memory. The memory may also be used to store data, which may be called and / or modified when the instructions are executed.

[0140] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in a storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of a charging pile remote control method based on the CAN protocol in the above-mentioned embodiment.

[0141] Example 4

[0142] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the storage medium here may include both built-in storage media in electronic devices and, of course, extended storage media supported by electronic devices. The storage medium provides a storage space that stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions may be one or more execution programs (including program codes). It should be noted that the storage medium here may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor loads and executes one or more instructions stored in the storage medium, which can implement the steps of a charging pile remote control method based on the CAN protocol in the above embodiment.

[0143] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0144] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0145] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0147] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A charging pile remote control method based on CAN protocol, characterized in that: include: Develop remote interaction protocols through the platform; Sending a remote command frame to the charging pile based on the remote interaction protocol; The remote operation is achieved by the charging pile performing an operation based on the remote command frame and replying a command response frame.

2. The method according to claim 1, characterized in that The remote interaction protocol is formulated through the platform, including: Set the remote command frame and response frame priority to be higher than the highest priority in the set standard; Set up the message according to the multi-frame format specified in the standard.

3. The method according to claim 2, characterized in that The message is set according to the multi-frame format in the standard, including: The first byte of each frame in the multi-frame message is used as the message sequence number, and increases in order from small to large; The total number of bytes from the second byte of each frame message in the multi-frame message to the last byte of the cumulative check code is taken as the number of message bytes; Define valid data based on remote command frame and remote command response frame; The cumulative sum of all data values ​​from the message byte number to the valid data N is used as the cumulative check code; The remote interaction protocol includes: message sequence number, message byte number, valid data and accumulated check code.

4. The method according to claim 3, characterized in that The valid data is defined based on the remote command frame and the remote command response frame, including: The first 8 bytes of valid data in the remote command frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, and the 17th byte is the content of the operation instruction; The first 8 bytes of valid data in the remote command response frame are the number of the charging pile on the platform, the 9th byte is the gun number of the charging pile, the 10th to 16th bytes are the timestamp, the 17th byte is the operation instruction content, the 18th byte adds the reply result, and the 19th byte is the reason for failure.

5. The method according to claim 1, characterized in that The sending of a remote command frame to the charging pile based on the remote interaction protocol includes: Each bit of the "operation instruction" byte in the remote command frame corresponds to the output level of the charging pile controller chip, wherein the lower four bits bit1-bit4 correspond to the four pins PD1-PD4 of the charging pile controller chip in turn, controlling the four pins PD1-PD4 to output an instantaneous high level of 1S, and the upper four bits bit5 and bit6 correspond to the PD5 pin of the charging pile controller chip, respectively controlling PD5 to output a continuous high level and stop outputting a continuous high level, and the upper four bits bit7 and bit8 correspond to the PD6 pin of the charging pile controller chip, respectively controlling PD6 to output a continuous high level and stop outputting a continuous high level; Transmit each bit of the "operation instruction" byte in the remote command to the corresponding pin of the charging pile controller chip.

6. The method according to claim 1, characterized in that The remote operation is realized by the charging pile performing an operation based on the remote command frame and replying a command response frame, including: When bit1 of the "operation instruction" byte in the remote command frame received by the charging pile is 1, the PD1 pin of the charging pile controller chip generates a high level for 1S, and the D01+ of the charging pile controller connected to the PD1 generates an output voltage of 1S; similarly, when bit2 is 1, the DO2+ of the charging pile controller connected to the PD2 pin generates an output voltage of 1S; when bit3 is 1, the DO3+ of the charging pile controller connected to the PD3 pin outputs an output voltage of 1S; when bit4 is 1, the DO4+ of the charging pile controller connected to the PD4 pin generates an output voltage of 1S; byte When bit5 is 1, D05+ of the charging pile controller connected to the PD5 pin generates a continuous output voltage; when the byte bit6 is 1, the PD5 pin of the charging pile controller chip stops outputting a high level, and the D05+ of the charging pile controller connected to PD5 stops outputting voltage; when bit7 is 1, the charging pile control chip PD6 continuously outputs a high level, and the DO6+ of the charging pile controller connected to the PD6 generates a continuous output voltage; when bit8 is 1, the PD6 pin of the charging pile controller chip stops outputting a high level, and the output voltage of DO6+ of the charging pile controller connected to the PD6 disappears; The output voltage of D01+ to D06+ of the charging pile controller is used to control the relay coil connected to D01+ to D06+ to be energized, thereby controlling the state of the relay to realize remote operation.

7. The method according to claim 4, characterized in that Also includes: Bit1-Bit8 in the 18th byte of the operation instruction corresponds to the working status of the charging pile controller chip pins PD7-PD12. At the same time, PD7-PD12 corresponds to DO7+-DO12+ of the charging pile controller respectively, and the relay connected to DO7+-DO12+ of the charging pile controller is remotely controlled.

8. A charging pile remote control system based on CAN protocol, characterized in that: include: A platform for formulating a remote interaction protocol and sending a remote command frame to a charging pile based on the remote interaction protocol; The charging pile performs operations based on the remote command frame and replies with a command response frame to achieve remote operation.

9. The system according to claim 8, characterized in that The charging pile is specifically used for: When bit1 of the "operation instruction" byte in the remote command frame received by the charging pile is 1, the PD1 pin of the charging pile controller chip generates a high level for 1S, and the D01+ of the charging pile controller connected to the PD1 generates an output voltage of 1S; similarly, when bit2 is 1, the DO2+ of the charging pile controller connected to the PD2 pin generates an output voltage of 1S; when bit3 is 1, the DO3+ of the charging pile controller connected to the PD3 pin outputs an output voltage of 1S; when bit4 is 1, the DO4+ of the charging pile controller connected to the PD4 pin generates an output voltage of 1S; byte When bit5 is 1, D05+ of the charging pile controller connected to the PD5 pin generates a continuous output voltage; when the byte bit6 is 1, the PD5 pin of the charging pile controller chip stops outputting a high level, and the D05+ of the charging pile controller connected to PD5 stops outputting voltage; when bit7 is 1, the charging pile control chip PD6 continuously outputs a high level, and the DO6+ of the charging pile controller connected to the PD6 generates a continuous output voltage; when bit8 is 1, the PD6 pin of the charging pile controller chip stops outputting a high level, and the output voltage of DO6+ of the charging pile controller connected to the PD6 disappears; The output voltage of D01+ to D06+ of the charging pile controller is used to control the relay coil connected to D01+ to D06+ to be energized, thereby controlling the state of the relay to realize remote operation.

10. An electronic device, characterized in that: include: at least one processor and memory; The memory and the processor are connected via a bus; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, a charging pile remote control method based on the CAN protocol as described in any one of claims 1 to 7 is implemented.

11. A readable storage medium, characterized in that: An execution program is stored thereon, and when the execution program is executed, a charging pile remote control method based on the CAN protocol as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data transmission method and system used for CAN bus of charging pile

    CN108128204A

  • New energy automobile charging pile communication method based on cloud platform

    CN110370976A

  • Charging pile CAN protocol penetration test method and system based on fuzzy test, and storage medium

    CN114465938A

  • Ordered charging control system and method for alternating-current charging pile

    WO2022148073A1