A charging gun still gun detection method of a charging gun still gun detection system

By using a data communication server and intelligent detection module based on the Java open-source high-concurrency non-blocking Socket framework, combined with ModBus RTU and TCP/IP protocols, the data processing and remote transmission of the charging gun return detection system were realized. This solved the problem of insufficient data processing and transmission capabilities in existing technologies, standardized user return behavior, and improved operational efficiency and security.

CN117261666BActive Publication Date: 2026-06-02ZHUHAI TITANS TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHUHAI TITANS TECH
Filing Date
2023-11-16
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

The existing charging operation system cannot effectively integrate with the charging pile data interface for data processing, has insufficient remote network data transmission capabilities, cannot push messages to users through SMS and subscription message interfaces, and fails to regulate users' gun return behavior.

Method used

It adopts a data communication server based on Java open-source high-concurrency non-blocking Socket frameworks such as ZooKeeper, Kafka, and Netty, combined with smart terminal devices and intelligent detection modules. It realizes data communication through ModBus RTU and TCP/IP protocols, uses a 4G communication module for remote data transmission, and pushes messages through SMS and subscription message interfaces. Combined with business logic processing, it makes full use of data for calculation and analysis.

Benefits of technology

The system has improved the data processing capabilities of the charging gun return detection system, enhanced the remote network data transmission capabilities, standardized user return behavior, improved operational efficiency and user compliance, and reduced equipment damage and safety hazards caused by human error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117261666B_ABST
    Figure CN117261666B_ABST
Patent Text Reader

Abstract

The application aims to provide a charging gun returning detection system and a charging gun returning detection method, which can effectively combine the charging pile data interface for data processing, have good network remote data transmission capability, push messages to users through SMS and subscription message interface, fully utilize data for calculation and analysis through business logic processing, and standardize and simplify the charging user gun returning behavior. The application comprises a data communication server, a smart terminal device and a smart detection module, the smart terminal device and the smart detection module are both independently connected with the data communication server for communication, and the application is applied to the technical field of computer data processing and charging piles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention applies to the technical fields of computer data processing and charging piles, and particularly relates to a charging gun return detection method for a charging gun return detection system. Background Technology

[0002] With the development of charging infrastructure for new energy electric vehicles, the daily maintenance and management of charging piles face significant challenges. The charging operation system plays a crucial role in reminding and guiding users, while also standardizing the correct use of charging piles. Among the maintenance aspects of charging piles, the maintenance of the charging gun accounts for a large proportion, mainly due to the failure to return the charging gun promptly after charging. Traditional charging operation systems and charging piles primarily employ two methods for user return of the charging gun: The first method involves installing a return detection module on the charging pile to acquire the return status signal and display it on the charging pile's screen. However, since the charging pile does not interact with the charging operation system, the system fails to remind and guide users to return the gun. Typically, in manned charging stations, charging workers reset the charging gun; in unmanned stations, users must wait for inspection personnel to arrive. The second method involves installing a return detection module with an Ethernet interface on the charging pile to acquire the return status signal. This module initiates a socket connection to the charging operation system via the TCP / IP protocol provided by the Ethernet module, sending the return status signal to the system through the communication interface. The charging operation system parses this data and stores it on the server. Operators can check the charging station's charging gun status in real time through the operation system. If they find that the charging gun has not been reset, they can use environmental monitoring cameras and charging operation system data to identify the user information and then contact customer service to remind them to comply with the site equipment usage specifications.

[0003] Currently, the charging operation system obtains the charging gun return status signal via socket connection only for data display and simple reminders, failing to effectively integrate with the charging pile data interface for data processing. The implementation class lacks specific business processing functions. Furthermore, the Ethernet interface communication of the current charging gun return detection module has significant limitations, primarily relying on transparent data transmission between RJ45 and RS485 or RS232, with insufficient capabilities in WIFI and 4G communication, failing to meet the needs of application scenarios without wired network access. It also lacks support for DHCP+DNS resolution, hindering the implementation of remote network data transmission. Therefore, it is necessary to provide a charging gun return detection method for a charging gun return detection system that can effectively integrate with the charging pile data interface for data processing, has good remote network data transmission capabilities, pushes messages to users via SMS and subscription message interfaces, fully utilizes data for calculation and analysis through business logic processing, and standardizes and simplifies the charging user's charging gun return behavior. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a charging gun return detection method for a charging gun return detection system that can effectively combine charging pile data interface for data processing, has good network remote data transmission capability, pushes messages to users through SMS and subscription message interfaces, makes full use of data for calculation and analysis through business logic processing, and standardizes and simplifies the charging user return behavior.

[0005] The technical solution adopted in this invention is as follows: the charging gun return detection system includes a data communication server, a smart terminal device, and a smart detection module, wherein the smart terminal device and the smart detection module are independently connected and communicate with the data communication server;

[0006] The intelligent terminal equipment includes DC charging piles and AC charging piles;

[0007] The intelligent detection module, including the charging gun holder, is used to initiate a connection request to the data communication server, and after the data communication server accepts the connection request, it sends the data that needs to be uploaded to the data communication server.

[0008] The data communication server includes a charging operation system for implementing concurrent non-blocking Socket communication connections, data processing, and business processing functions.

[0009] As can be seen from the above scheme, this invention is a data communication server based on Java open-source high-concurrency non-blocking Socket frameworks such as ZooKeeper, Kafka, and Netty, targeting smart terminal devices and intelligent detection modules with circuit detection. It provides a data communication interface, fully utilizing data for computational analysis through business logic processing to maximize the development of data functionality. It records data such as register point tables, 4G communication module device addresses, function codes, IP addresses, port numbers, data acquisition times, 4G DTU object IDs, and charging pile numbers from a MySQL database, ensuring a reliable data storage record. Through in-depth data analysis and visualization, it opens access interfaces for various businesses. It calls the front-end interface to initiate business processes, pushing messages to users via SMS and subscription message interfaces to optimize operations and improve service. Simultaneously, it combines the cumulative calculation of charging pile occupancy fees with the front-end settlement and payment interface, regulating the use of smart terminal devices through fee collection. Through data-driven insights and support for charging user return data, it compiles a user return list, analyzes and filters user return events, ensuring authorized user use and restricting repeated violations. It maximizes the development of data potential, providing valuable information and insights to support various business decisions and operational optimization.

[0010] A preferred embodiment is a charging / returning detection method for a charging gun return detection system, the method comprising the following steps:

[0011] Step 1: Install a charging gun socket with a circuit detection unit on the outside of the charging pile. When the charging gun is inserted back into the charging gun socket or pulled out of the charging gun socket, the circuit detection unit sends a charging gun insertion / removal signal.

[0012] Step 2: Inside the charging pile, connect the RS485 communication line of the charging gun holder to the industrial 4G DTU RS485 to 4G communication module, and connect the power line, shielding line, etc. to the communication terminal interface.

[0013] Step 3: Remotely configure the industrial 4G DTU RS485 to 4G communication module, set the RS485 serial port communication parameters, set the Socket connection parameters of the TCP / IP protocol started by the client, set the communication protocol to use the ModBus RTU protocol, and set the transparent forwarding data transmission mode;

[0014] Step 4: Configure the ModBus RTU protocol register point table, 4G communication module device address, function code, IP address, port number, data acquisition time, 4GDTU object ID, and charging pile number of the intelligent monitoring and alarm device in the charging operation system database.

[0015] Step 5: The charging operation system defines IRpcService as the unified interface class for data acquisition and provides a unique abstract message processing method handleRpc;

[0016] Step 6: The charging operation system creates a ModBus RTU communication protocol module;

[0017] Step 7: The charging operation system establishes a TCP / IP protocol data acquisition channel;

[0018] Step 8: The charging operation system's data acquisition server starts a TCP / IP protocol socket listener;

[0019] Step 9: The 4GDTU RS485 to 4G communication module connects to the server of the charging operation system via TCP / IP and sends messages;

[0020] Step 10: The charging operation system finds the register data of the charging gun socket corresponding to each charging pile based on the device communication address and function code message sent by the 4GDTU RS485 to 4G communication module.

[0021] Step 11: Based on the retrieved register data of the charging gun holder, obtain the charging gun holder's return status by parsing the remote signaling status data;

[0022] Step 12: The charging operation system combines the electric vehicle's charging gun disconnection status and the charging gun socket's return status, and makes a judgment based on the data acquisition time and status data, and records the time taken for the electric vehicle to insert the charging gun back into the charging gun socket after disconnecting the charging gun.

[0023] Step 13: The charging operation system sets a reminder for the charging gun return time. Through a phased reminder mode, if the first return time is exceeded in the first phase, a message push and SMS reminder will be sent to the charging user via the front-end mini program or app. If the return time is exceeded in the second phase, the operation customer service personnel will be notified via SMS to follow up with the charging user to understand the situation and remind them to return the gun. If the customer service personnel do not follow up with the charging user in time or the charging user still does not return the gun after being reminded, and the return time is exceeded in the third phase, the maintenance and after-sales personnel will be notified via SMS to go to the designated site to check the situation.

[0024] Step 14: The charging operation system sets a strategy that links the charging station occupation fee with the gun return timeout fee, sets a fee for the gun return timeout stage, and calculates it cumulatively with the charging station occupation fee;

[0025] Step 15: After the charging user unplugs the charging gun, the charging operation system receives the charging bill information from the charging pile. Combined with the charging gun return status information, the system pushes a consumption order to the charging user for charging settlement. If the charging is completed and the charging gun has been unplugged, and the unreturned status exceeds a certain stage, the system will accumulate the occupancy fee in real time. After the charging gun is returned, the charging operation system stops calculating the occupancy fee, pushes the bill information, and awaits settlement and order termination.

[0026] Step 16: The charging operation system sets a count of the number of times a charging user returns the charging gun after the set number of times. If the number of times the charging gun is returned after the set number of times is exceeded, the charging user will be automatically added to the blacklist.

[0027] A preferred solution is that step 1 solves the communication compatibility problem of charging piles acquiring charging gun plug-in / plug-out signals, regardless of the type or manufacturer of the charging pile, and adopts the standard ModBus RTU protocol, which greatly reduces the development workload of the charging operation system.

[0028] As a further optimization, step 12 enriches the business data of the charging operation system, enabling the storage and utilization of charging pile plug-in / plug-out records that were not expected to be achieved in the past.

[0029] As a further optimization, step 13 addresses the business process from reminding users to handling unreturned charging guns, improves the speed of charging gun return resolution and the orientation of responsibility, and strengthens the operation and maintenance management of charging stations and the standardization of charging gun usage.

[0030] As a further optimization, step 14, starting from the concerns of charging users, formulates a method to increase the importance that charging users attach to returning the charging gun, which is combined with the cost of occupying the charging station.

[0031] As a further optimization, step 15 effectively guides charging users' daily habits and behavioral norms for returning the charging gun.

[0032] As a further optimization, step 16 involves statistical analysis to automatically create a blacklist, reducing the workload of customer service personnel and preventing and reducing equipment damage and safety hazards caused by human error. Attached Figure Description

[0033] Figure 1 This is a communication diagram of a data communication server, a smart terminal device, and a smart detection module based on a TCP / IP protocol socket connection provided in this embodiment of the invention.

[0034] Figure 2 This is a communication flowchart of the intelligent terminal device, intelligent detection module and data communication server provided in the embodiment of the present invention;

[0035] Figure 3 This is a flowchart of the data processing of the data communication server provided in this invention.

[0036] Figure 4 This is a flowchart of the data communication server for charging users provided in this invention. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0038] I. Introduction to the Communication Methods of Intelligent Terminal Devices, Intelligent Detection Modules, and Data Communication Servers

[0039] Figure 1 This is a communication diagram of a data communication server, a smart terminal device, and a smart detection module based on the TCP / IP protocol, provided by an embodiment of the present invention. Figure 1 As shown, it includes:

[0040] Reference numerals 101-103 in the attached diagram refer to smart terminal devices;

[0041] Reference numerals 104-106 in the attached diagram refer to the intelligent detection module;

[0042] Figure 107: refers to the data communication server;

[0043] Attached diagram labels 108-110: refer to charging users;

[0044] In steps 101 to 103: this indicates one or more DC charging piles or AC charging piles;

[0045] In steps 104 to 106, "one or more charging gun sockets" refers to one or more charging gun sockets.

[0046] Step 107 is a high-concurrency, non-blocking Socket gateway data communication server based on Java open-source technologies such as ZooKeeper, Kafka, and Netty;

[0047] In steps 108-110, "users" refers to one or more front-end charging users using the mini-program.

[0048] II. Communication Flowchart between Intelligent Terminal Device, Intelligent Detection Module, and Data Communication Server

[0049] Figure 2 This is a communication flowchart of the intelligent terminal device, intelligent detection module, and data communication server provided in this invention, including:

[0050] Step 201 indicates that an intelligent detection module is installed in the intelligent terminal device;

[0051] Step 202 indicates that the intelligent terminal device and the intelligent detection module send a message;

[0052] Step 203 indicates that the data communication server configures the smart terminal device and the smart detection module protocol model;

[0053] Step 204 indicates that the data communication server publishes the data acquisition interface class;

[0054] Step 205 indicates that the data communication server starts the socket server to listen for message data;

[0055] Step 206 indicates that the data communication server extracts the valid data fields from the verification-matched response message and stores them as a bit stream. Then, it converts this bit stream into the corresponding bit field structure type. After the type conversion is complete, control information can be directly used by manipulating the bit field variables. In step 203, the protocol register point table of the connected smart terminal device and smart detection module, the 4G communication module device address, function code, IP address, port number, data acquisition time, 4GDTU object ID, charging pile number, etc., are configured in the MySQL database and parsed into the corresponding database list.

[0056] III. Data Communication Server Data Processing Flowchart

[0057] Figure 3 This is a data processing flowchart of the data communication server provided in this invention. The data acquisition interface class provides the core business data source, and the data communication server performs business processing on the data. It includes:

[0058] Step 301 indicates that data from the smart terminal device is acquired in real time. When the charging end status of the smart terminal device is acquired and the charging gun has been unplugged from the electric vehicle, the data time point is stored in the database to record the current charging end and charging gun unplugging time.

[0059] Step 302 means that, under the premise of step 301, when the intelligent detection module is in the unreturned state, the data time point is stored in the database to record the current charging end time and the charging gun return time.

[0060] Step 303 involves real-time analysis of the charging gun's return status, analyzing data from the time the message was received to the time the charging gun was unplugged from the electric vehicle. The time taken to return the charging gun after unplugging it is read from the database and calculated, creating a time data tag and recording the time data in real time.

[0061] Step 304 indicates that the data communication server creates a data primary key, sets data associations such as stage, time, and duration, and configures the return time stage business process.

[0062] IV. Data Communication Server Service Flowchart for Charging Users

[0063] Figure 4 This invention provides a data communication server service flow diagram for charging users, including:

[0064] Step 401 indicates that the data communication server reads the list records from the MySQL database and subtracts the historical data from the time taken to return the gun after it was removed from the real-time monitoring of the electric vehicle. This yields the real-time gun return time. The process then uses the stage defined in step 304 to determine the current stage and whether the gun return time has reached the set first stage time.

[0065] Step 402 indicates that, based on the stage feedback information obtained in step 401, when the first stage of gun return is reached, the data communication server will call the mini-program's openapi.subscribeMessage.send interface method to push gun return subscription messages, call the SMS module's sendTemplateSMS interface to send SMS messages, and other methods to remind the charging user to perform the gun return operation.

[0066] Step 403 indicates that the data communication server reads the list records from the MySQL database and subtracts the historical data from the time taken to return the gun after it was removed from the real-time monitoring of the electric vehicle. This yields the real-time gun return time. The process then uses the stage defined in step 304 to determine the current stage and whether the gun return time has reached the set second stage time.

[0067] Step 404 indicates that, based on the stage feedback information obtained in step 403, when the second stage of gun return is reached, the data communication server will call the SMS module sendTemplateSMS interface to send an SMS message to notify the operation and customer service personnel to revisit the charging user to understand the situation and remind them to return the gun.

[0068] Step 405 indicates that the data communication server reads the list records from the MySQL database and subtracts the historical data from the time taken to return the gun after it was removed from the real-time monitoring of the electric vehicle. This yields the real-time gun return time. The process flow set in step 304 is then used to determine the current stage of the time taken, and it is judged whether the gun return time has reached the set third stage time.

[0069] Step 406 indicates that, based on the stage feedback information obtained in step 405, when the third stage of gun return is reached, the data communication server will call the SMS module sendTemplateSMS interface to send an SMS message to the maintenance and after-sales personnel to go to the designated site to check the gun return status, and the maintenance and after-sales personnel will repair the gun return operation on site.

[0070] Step 407 indicates that the data communication server sets a fee for each timeout period based on the charging station occupancy fee and the gun return overtime fee strategy, which is then accumulated with the occupancy fee. When the charging gun is unplugged after charging, the data communication server receives the charging bill information. Combining this with the gun return information from steps 401-406, the server accumulates the occupancy fee in real-time according to the overtime policy. The data communication server stops calculating the occupancy fee after the charging gun is returned. The bill data is pushed to the mini-program interface via a POST request, allowing the charging user to settle the payment. The server records the user's gun return status, analyzes historical gun return overtime records, and determines whether the user is blacklisted.

Claims

1. A charging and returning detection method for a charging gun returning detection system, characterized in that: The charging gun return detection system includes a data communication server, a smart terminal device, and a smart detection module. The smart terminal device and the smart detection module are independently connected and communicate with the data communication server. The intelligent terminal equipment includes DC charging piles and AC charging piles; The intelligent detection module includes a charging gun holder, both of which are used to initiate a connection request to the data communication server, and after the data communication server accepts the connection request, send the data that needs to be uploaded to the data communication server. The data communication server includes a charging operation system for implementing concurrent non-blocking Socket communication connections, data processing, and business processing functions. The method includes the following steps: Step 1: Install a charging gun socket with a circuit detection unit on the outside of the charging pile. When the charging gun is inserted back into the charging gun socket or pulled out of the charging gun socket, the circuit detection unit sends a charging gun insertion / removal signal. Step 2: Inside the charging pile, connect the RS485 communication line of the charging gun holder to the industrial 4G DTU RS485 to 4G communication module, and connect the power line and shielding line to the communication terminal interface. Step 3: Remotely configure the industrial 4G DTU RS485 to 4G communication module, set the RS485 serial port communication parameters, set the Socket connection parameters of the TCP / IP protocol started by the client, set the communication protocol to use the ModBus RTU protocol, and set the transparent forwarding data transmission mode; Step 4: Configure the ModBus RTU protocol register point table, 4G communication module device address, function code, IP address, port number, data acquisition time, 4GDTU object ID, and charging pile number of the intelligent monitoring and alarm device in the charging operation system database. Step 5: The charging operation system defines IRpcService as the unified interface class for data acquisition and provides a unique abstract message processing method handleRpc; Step 6: The charging operation system creates a ModBus RTU communication protocol module; Step 7: The charging operation system establishes a TCP / IP protocol data acquisition channel; Step 8: The charging operation system's data acquisition server starts a TCP / IP protocol socket listener; Step 9: The 4GDTU RS485 to 4G communication module connects to the server of the charging operation system via TCP / IP and sends messages; Step 10: The charging operation system finds the register data of the charging gun socket corresponding to each charging pile based on the device communication address and function code message sent by the 4GDTU RS485 to 4G communication module. Step 11: Based on the retrieved register data of the charging gun holder, obtain the charging gun holder's return status by parsing the remote signaling status data; Step 12: The charging operation system combines the electric vehicle's charging gun disconnection status and the charging gun socket's return status, and makes a judgment based on the data acquisition time and status data, and records the time taken for the electric vehicle to insert the charging gun back into the charging gun socket after disconnecting the charging gun. Step 13: The charging operation system sets a reminder for the charging gun return time. Through a phased reminder mode, if the first return time is exceeded in the first phase, a message push and SMS reminder will be sent to the charging user via the front-end mini program or app. If the return time is exceeded in the second phase, the operation customer service personnel will be notified via SMS to follow up with the charging user to understand the situation and remind them to return the gun. If the customer service personnel do not follow up with the charging user in time or the charging user still does not return the gun after being reminded, and the return time is exceeded in the third phase, the maintenance and after-sales personnel will be notified via SMS to go to the designated site to check the situation. Step 14: The charging operation system sets a strategy that links the charging station occupation fee with the gun return timeout fee, sets a fee for the gun return timeout stage, and calculates it cumulatively with the charging station occupation fee; Step 15: After the charging user unplugs the charging gun, the charging operation system receives the charging bill information sent by the charging pile, and, in conjunction with the charging gun return status information, pushes a consumption order to the charging user for charging settlement.

2. The charging and return gun detection method according to claim 1, characterized in that: If the charging gun is removed after charging is complete, and the charging gun is not returned for more than a certain period, the charging station occupancy fee will be accumulated in real time according to the phase strategy. After the charging gun is returned, the charging operation system will stop calculating the occupancy fee, push the bill information and wait for settlement and order termination. Step 16: The charging operation system sets a count of the number of times a charging user returns the charging gun after the set number of times. If the number of times the charging gun is returned after the set number of times is exceeded, the charging user will be automatically added to the blacklist.