CN116192892A - Charging station communication method, charging station communication device, computer equipment and storage medium - Google Patents

Charging station communication method, charging station communication device, computer equipment and storage medium Download PDF

Info

Publication number
CN116192892A
CN116192892A CN202310007441.3A CN202310007441A CN116192892A CN 116192892 A CN116192892 A CN 116192892A CN 202310007441 A CN202310007441 A CN 202310007441A CN 116192892 A CN116192892 A CN 116192892A
Authority
CN
China
Prior art keywords
charging
charging terminal
terminals
terminal
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310007441.3A
Other languages
Chinese (zh)
Inventor
王力
赵庆龙
周经中
傅启健
罗俊平
郭小凯
陈磊
李勋
葛静
张国翊
朱海龙
张金磊
刘涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonglian Smart Energy Technology Changshu Co ltd
China Southern Power Grid Industry Investment Group Co ltd
Electric Vehicle Service of Southern Power Grid Co Ltd
Original Assignee
Yonglian Smart Energy Technology Changshu Co ltd
China Southern Power Grid Industry Investment Group Co ltd
Electric Vehicle Service of Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonglian Smart Energy Technology Changshu Co ltd, China Southern Power Grid Industry Investment Group Co ltd, Electric Vehicle Service of Southern Power Grid Co Ltd filed Critical Yonglian Smart Energy Technology Changshu Co ltd
Priority to CN202310007441.3A priority Critical patent/CN116192892A/en
Publication of CN116192892A publication Critical patent/CN116192892A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application relates to a charging station communication method, a charging station communication device, a charging station communication computer device, a charging station storage medium and a charging station communication program product, and relates to the technical field of communication. The method comprises the following steps: acquiring configuration information of each charging terminal in a charging station; according to the configuration information, determining a master charging terminal and a slave charging terminal from all the charging terminals; collecting state information of the slave charging terminal through the master charging terminal, and sending the state information to a charging pile management platform; the main charging terminal acquires a heartbeat frame of the slave charging terminal through the controller area network bus, determines state information based on the heartbeat frame, and both the main charging terminal and the slave charging terminal send the heartbeat frame to the controller area network bus. By adopting the method, the communication management of the charging station or the charging terminal can be realized more conveniently.

Description

Charging station communication method, charging station communication device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a charging station communication method, apparatus, computer device, storage medium, and computer program product.
Background
At present, most charging piles in a charging station realize data communication with a charging pile management platform by using 4G or a network port, and basically each charging pile (including an alternating current charging pile/a direct current charging pile) is provided with a 4G module or a network port interface.
However, in the current communication mode of the charging pile and the charging pile management platform, if a 4G module is provided for the charging pile, the flow of the internet of things card needs to be regularly recharged, and even the internet of things card needs to be replaced; if the charging pile is provided with the network port interface, a router or a switch is additionally arranged to realize expansion of the network port. Both of the two methods have the problems of high cost and inconvenient management.
Disclosure of Invention
Based on this, there is a need to provide a charging station communication method, apparatus, computer device, computer readable storage medium and computer program product for the technical problem that communication between a charging post and a charging post management platform is inconvenient for application.
In a first aspect, the present application provides a charging station communication method. The method comprises the following steps:
acquiring configuration information of each charging terminal in a charging station;
according to the configuration information, determining a master charging terminal and a slave charging terminal from the charging terminals;
collecting state information of the secondary charging terminal through the primary charging terminal, and sending the state information to a charging pile management platform;
the master charging terminal acquires a heartbeat frame of the slave charging terminal through a controller area network bus, the state information is determined based on the heartbeat frame, and the master charging terminal and the slave charging terminal both send the heartbeat frame to the controller area network bus.
In one embodiment, the configuration information includes hardware network interface information and physical address information, and the determining, according to the configuration information, a master charging terminal and a slave charging terminal from the respective charging terminals includes:
according to the hardware network interface information in the configuration information, selecting a charging terminal with a hardware network interface from the charging terminals as a candidate terminal;
screening a target charging terminal from the candidate terminals according to the physical address information in the configuration information;
the target charging terminal is determined as a master charging terminal, and the remaining individual charging terminals are determined as slave charging terminals.
In one embodiment, the slave charging terminals include a standby master charging terminal and a general slave charging terminal, and the determining each remaining charging terminal as a slave charging terminal includes:
determining the rest candidate terminals except the target charging terminal as the standby main charging terminal;
and determining the rest terminals which do not belong to the candidate terminals as the common slave charging terminals.
In one embodiment, after determining the master charging terminal and the slave charging terminal from the respective charging terminals according to the configuration information, the method further includes:
When a new charging terminal in the charging station joins in communication, acquiring configuration information of the new charging terminal;
and re-determining the master charging terminal and the slave charging terminals from the new charging terminals and the charging terminals according to the configuration information of the new charging terminals and the configuration information of the charging terminals.
In one embodiment, after the determining the master charging terminal and the slave charging terminal, the method further includes:
acquiring the current data flow and the highest data flow of the controller area network bus;
determining the busyness of the controller area network bus according to the current data flow and the highest data flow;
and controlling the data transmission parameters of the charging terminals for transmitting data to the controller area network bus according to the busyness.
In one embodiment, the data transmission parameters include a data transmission rate and a data transmission priority, and the controlling the data transmission parameters of the respective charging terminals to transmit data to the controller area network bus according to the busy degree includes:
for each charging terminal, if the busy degree reaches a preset condition, reducing the data sending rate of each charging terminal for sending data to the controller area network bus;
And if the busyness degree does not reach the preset condition, determining the current running state of each charging terminal, and controlling the data transmission priority of each charging terminal for transmitting data to the controller area network bus according to the current running state.
In one embodiment, the controlling the data transmission priority of the respective charging terminals to transmit data to the controller area network bus according to the current operation state includes:
for each charging terminal, if the current running state of the charging terminal is a working state, the data transmission priority of the charging terminal for transmitting data to the controller area network bus is improved;
and if the current running state of the charging terminal is an idle state, reducing the data transmission priority of the charging terminal for transmitting data to the controller area network bus.
In a second aspect, the present application also provides a charging station communication device. The device comprises:
the configuration information acquisition module is used for acquiring configuration information of each charging terminal in the charging station;
the master-slave terminal determining module is used for determining a master charging terminal and a slave charging terminal from the charging terminals according to the configuration information;
The state information sending module is used for collecting the state information of the secondary charging terminal through the primary charging terminal and sending the state information to the charging pile management platform;
the master charging terminal acquires a heartbeat frame of the slave charging terminal through a controller area network bus, the state information is determined based on the heartbeat frame, and the master charging terminal and the slave charging terminal both send the heartbeat frame to the controller area network bus.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring configuration information of each charging terminal in a charging station;
according to the configuration information, determining a master charging terminal and a slave charging terminal from the charging terminals;
collecting state information of the secondary charging terminal through the primary charging terminal, and sending the state information to a charging pile management platform;
the master charging terminal acquires a heartbeat frame of the slave charging terminal through a controller area network bus, the state information is determined based on the heartbeat frame, and the master charging terminal and the slave charging terminal both send the heartbeat frame to the controller area network bus.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring configuration information of each charging terminal in a charging station;
according to the configuration information, determining a master charging terminal and a slave charging terminal from the charging terminals;
collecting state information of the secondary charging terminal through the primary charging terminal, and sending the state information to a charging pile management platform;
the master charging terminal acquires a heartbeat frame of the slave charging terminal through a controller area network bus, the state information is determined based on the heartbeat frame, and the master charging terminal and the slave charging terminal both send the heartbeat frame to the controller area network bus.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring configuration information of each charging terminal in a charging station;
according to the configuration information, determining a master charging terminal and a slave charging terminal from the charging terminals;
Collecting state information of the secondary charging terminal through the primary charging terminal, and sending the state information to a charging pile management platform;
the master charging terminal acquires a heartbeat frame of the slave charging terminal through a controller area network bus, the state information is determined based on the heartbeat frame, and the master charging terminal and the slave charging terminal both send the heartbeat frame to the controller area network bus.
According to the charging station communication method, the device, the computer equipment, the storage medium and the computer program product, the main charging terminal and the auxiliary charging terminal are determined from all the charging terminals, then the local area network is built based on the controller local area network bus, the data transmitted by all the auxiliary charging terminals are collected through the main charging terminal in the local area network and then are sent to the charging pile management platform outside the local area network through the main charging terminal, so that the number of the charging terminals directly communicated with the charging pile management platform can be reduced, the cost of a communication interface is further reduced, and meanwhile, more systematic and convenient communication management on the charging terminals is realized.
Drawings
FIG. 1 is an application environment diagram of a charging station communication method in one embodiment;
FIG. 2 is a flow chart of a charging station communication method in one embodiment;
FIG. 3 is a flow chart of the steps of determining a master charging terminal and a slave charging terminal in one embodiment;
FIG. 4 is a flow chart of the steps of determining data transmission parameters in one embodiment;
FIG. 5 is a flow chart of a charging station communication method in another embodiment;
FIG. 6 is a flow diagram of charging station networking communications in one embodiment;
FIG. 7 is a flow chart illustrating determining a state of a charging terminal in one embodiment;
FIG. 8 is a block diagram of a charging station communication device in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The charging station communication method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the charging terminals 102 in the charging station communicate with each other through the controller area network bus. Determining a master charging terminal and a slave charging terminal according to configuration information of each charging terminal, and transmitting data from the slave charging terminal to the charging pile management platform 104 through the master charging terminal; the master charging terminal communicates with the charging stake management platform 104 via a communication network. The charging terminal 102 may be a charging post in a charging station. The communication network may be a wireless network communication or a wired network communication.
In one embodiment, as shown in fig. 2, a charging station communication method is provided, and the charging terminal 102 in fig. 1 is taken as an example to illustrate that the method is applied, and the method includes the following steps:
step 201, acquiring configuration information of each charging terminal in a charging station.
Wherein the configuration information includes hardware information and communication address information of the charging terminal.
Illustratively, each of the charging terminals 102 in the charging station periodically transmits respective configuration information into the local area network, and receives configuration information transmitted by other charging terminals from the local area network. Further, each charging terminal 102 needs to reach the preset times to receive the configuration information sent by the same charging terminal, and then considers that the receiving is successful; meanwhile, when the configuration information of the new charging terminal is not received any more in the preset time, the configuration information of all the charging terminals is considered to be collected. For example, there are A, B and C charging terminals in the charging station, the charging terminal a receives the configuration information sent by the charging terminal B3 times under the condition that the interval is not more than 10s each time, and receives the configuration information sent by the charging terminal C3 times under the condition that the interval is not more than 10s each time, and does not receive the configuration information of other charging terminals within 10s after receiving the configuration information of the charging terminals B and C, then the terminal a completes the collection of the configuration information.
Step 202, determining a master charging terminal and a slave charging terminal from all the charging terminals according to the configuration information.
Illustratively, after each charging terminal 102 completes the collection of configuration information, each charging terminal 102 determines a respective master-slave type based on all of the configuration information. The main charging terminal is in charge of communicating with the nodes outside the local area network, and the slave charging terminal does not directly communicate with the nodes outside the local area network; therefore, the master-slave type needs to be determined based on the hardware information in the configuration information (specifically according to the networking requirement in the actual operation), and meanwhile, the master-slave type of the charging terminal with the same hardware information needs to be determined according to the communication address information in the configuration information (specifically can be customized by a user).
Step 203, collecting state information of the slave charging terminal through the master charging terminal, and sending the state information to the charging pile management platform; the main charging terminal acquires a heartbeat frame of the slave charging terminal through the controller area network bus, determines state information based on the heartbeat frame, and both the main charging terminal and the slave charging terminal send the heartbeat frame to the controller area network bus.
Wherein the controller area network (Controller Area Network, CAN) is a bus area network.
The heartbeat frame is a self-defined data frame for informing the opposite side of the state of the user at fixed time.
For example, after each charging terminal 102 determines the master-slave type, the master charging terminal receives the heartbeat frame of the slave charging terminals, determines the state information of each slave charging terminal, and then sends the state information of all the charging terminals including itself to the charging pile management platform outside the local area network, so as to facilitate the charging pile management platform to manage the charging piles. Simultaneously, each charging terminal sends respective heartbeat frames to a controller area network bus; when any charging terminal can not receive all heartbeat frames sent by other charging terminals, the charging terminal determines that the connection with the local area network is abnormal, and reinitializes a management module connected with the local area network.
According to the charging station communication method, the main charging terminal and the auxiliary charging terminals are determined from the charging terminals, then the local area network is built based on the controller local area network bus, data transmitted by the auxiliary charging terminals are collected through the main charging terminals in the local area network and then sent to the charging pile management platform outside the local area network through the main charging terminals, so that the number of the charging terminals directly communicated with the charging pile management platform can be reduced, the cost of a communication interface is further reduced, and meanwhile, more systematic and convenient communication management of the charging terminals is realized.
In one embodiment, the configuration information includes hardware network interface information and physical address information, as shown in fig. 3, the step 202 of determining, from each charging terminal, a master charging terminal and a slave charging terminal according to the configuration information may also be implemented by the following steps:
step 301, according to the hardware network interface information in the configuration information, a charging terminal with a hardware network interface is selected from the charging terminals as a candidate terminal.
And 302, screening out target charging terminals from the candidate terminals according to the physical address information in the configuration information.
In step 303, the target charging terminal is determined as a master charging terminal, and the remaining respective charging terminals are determined as slave charging terminals.
In an exemplary embodiment, each charging terminal screens out a charging terminal having a hardware network interface as a candidate terminal according to the hardware network interface information (the network interface includes a 4G network interface or a wired network interface) in all the configuration information, that is, a charging terminal that can communicate with a node outside the local area network through the hardware network interface. And then determining target charging terminals from the candidate terminals according to physical address information (namely MAC address information) in the configuration information by adopting conditions preset by a user, wherein each charging terminal determines the target charging terminal as a master charging terminal and determines the rest charging terminals as slave charging terminals. The predetermined condition for the user may be that all charging terminals are ordered according to the physical address information, and the candidate charging terminal with the smallest serial number is determined as the target charging terminal. Further, all charging terminals can record their respective serial numbers for marking each other.
In this embodiment, the master charging terminal and the slave charging terminal are determined according to the configuration information of all the charging terminals, and the master charging terminal communicates with the node outside the local area network, so that the configuration of the hardware interfaces and the arrangement of related devices can be reduced while the communication between all the charging terminals and the node outside the local area network is realized, and the fund cost and the management cost of the charging station communication are reduced.
In one embodiment, the slave charging terminals include a standby master charging terminal and a general slave charging terminal, and the above step 303 of determining each remaining charging terminal as a slave charging terminal may be further implemented by the following steps:
step one, determining the rest candidate terminals except the target charging terminal in the candidate terminals as standby main charging terminals;
and step two, determining the rest terminals which do not belong to the candidate terminals as common slave charging terminals.
Illustratively, each charging terminal, after determining the master charging terminal, determines the remaining charging terminals among the candidate terminals as standby master charging terminals among the slave charging terminals, and determines the remaining charging terminals not belonging to the candidate terminals as general slave charging terminals among the slave charging terminals. Because the standby main charging terminal also has a hardware network interface, the standby main charging terminal executes a data backup task and can replace the original main charging terminal when the main charging terminal cannot communicate with a node outside the local area network, thereby becoming a new main charging terminal and realizing breakpoint continuous transmission with the node outside the local area network. Further, when the main charging terminal is abnormal and there are a plurality of standby main charging terminals, a new main charging terminal may be determined from the plurality of standby charging terminals based on the same determination condition as the original main charging terminal.
In this embodiment, by setting the standby main charging terminal to take over as a new main charging terminal when the original main charging terminal is abnormal, breakpoint continuous transmission under the abnormal condition is realized, adverse effects caused by the breakpoint continuous transmission are reduced, and maintenance cost is reduced.
In one embodiment, after determining the master charging terminal and the slave charging terminal from the respective charging terminals according to the configuration information in step 202, the method specifically further includes the following steps:
step one, when a new charging terminal in a charging station joins in communication, acquiring configuration information of the new charging terminal;
and step two, re-determining the master charging terminal and the slave charging terminals from the new charging terminals and the charging terminals according to the configuration information of the new charging terminals and the configuration information of the charging terminals.
When a charging terminal is newly added in the charging station and the new charging terminal needs to join in the original local area network communication, all charging terminals including the new charging terminal resend respective configuration information and receive configuration information of other charging terminals, and a new master charging terminal and a new slave charging terminal are determined again based on all the configuration information.
In one embodiment, as shown in fig. 4, after determining the master charging terminal and the slave charging terminal in the step 202, the method specifically further includes the following steps:
step 401, obtaining the current data flow and the highest data flow of a controller area network bus;
step 402, determining the busyness of the controller area network bus according to the current data traffic and the highest data traffic;
and step 403, controlling data transmission parameters of each charging terminal for transmitting data to the controller area network bus according to the busyness.
Each charging terminal periodically monitors current data traffic in the controller area network bus, acquires highest data traffic that the controller area network bus can transmit, and determines the busyness in the current controller area network bus according to the percentage value of the current data traffic relative to the highest data traffic. And each charging terminal controls the data transmission parameters of the data to be transmitted by the controller area network bus according to the calculated controller area network bus busyness.
In this embodiment, each charging terminal monitors the busyness of the controller area network bus, so as to control the data sending parameters of the data sent to the controller area network bus, thereby realizing flow management and congestion adjustment, and achieving a better communication management effect.
In one embodiment, the data transmission parameters include a data transmission rate and a data transmission priority, and the step 403 controls the data transmission parameters of each charging terminal to transmit data to the controller area network bus according to the busy degree, which may be further implemented by the following steps:
step one, if the busyness reaches a preset condition, reducing the data transmission rate of each charging terminal for transmitting data to the controller area network bus;
and step two, if the busyness degree does not reach the preset condition, determining the current running state of each charging terminal, and controlling the data transmission priority of each charging terminal for transmitting data to the controller local area network bus according to the current running state.
The data transmission priority controls the sequence of sending data to the controller area network bus by different charging terminals.
Illustratively, when each charging terminal determines that the busyness of the controller area network bus is higher than a set threshold, calculating a data transmission rate threshold of each current data transmission to the controller area network bus, and then reducing the transmission rate threshold to reduce the data transmission rate; when the busyness of the controller area network bus is not higher than the set threshold, each charging terminal respectively determines the current running state of each charging terminal, and controls the data transmission priority of each charging terminal for transmitting data to the controller area network bus according to the current running state.
In the same embodiment, the operation states include an operation state and an idle state, and the step two controls the data transmission priority of each charging terminal to transmit data to the controller area network bus according to the current operation state, and may also be implemented by the following steps:
step one, aiming at each charging terminal, if the current running state of the charging terminal is a working state, improving the data transmission priority of the charging terminal for transmitting data to a controller local area network bus;
and step two, if the current running state of the charging terminal is an idle state, reducing the data transmission priority of the charging terminal for transmitting data to the controller area network bus.
In an exemplary embodiment, each charging terminal, when determining that the operation state is the working state, increases a data transmission priority for transmitting data to the controller area network bus; and when the running state is determined to be the idle state, reducing the data transmission priority of transmitting data to the controller area network bus. The controller area network bus adopts a serial data transmission mode, so that when a plurality of nodes send data to the controller area network bus at the same time, each node can perform priority arbitration, and when the priority of the data sent by other nodes is higher than the priority of the data sent by the node, the node stops sending the current data and waits for the next idle state of the controller area network bus. Therefore, each charging terminal adjusts the data transmission priority according to the respective running state, so that the priority arbitration function of the controller area network bus is utilized for traffic management.
In the embodiment, the data sending rate of each charging terminal for sending data to the controller area network bus is controlled according to the busyness in the controller area network bus, so that flow management and congestion adjustment are realized; and determining the running state of each charging terminal, adjusting the priority of each transmitting data, and considering the real-time performance of the data transmission of the charging terminal in the working state under the condition of realizing flow management.
In another embodiment, as shown in fig. 5, there is provided a charging station communication method including the steps of:
when the charging terminals in the charging station perform initial networking or a new charging terminal is added into the original networking, each charging terminal executes the following steps:
step 501, obtaining configuration information of each charging terminal in a charging station;
step 502, according to the hardware network interface information in the configuration information, selecting a charging terminal with a hardware network interface from all the charging terminals as a candidate terminal;
step 503, screening out target charging terminals from the candidate terminals according to the physical address information in the configuration information;
step 504, determining the target charging terminal as the main charging terminal; determining the rest candidate terminals except the target charging terminal in the candidate terminals as standby main charging terminals; determining the rest terminals which do not belong to the candidate terminals as common slave charging terminals;
After the initialization networking or the re-networking is completed:
step 505 and step 506 are steps performed synchronously;
step 505, collecting state information of other charging terminals through the main charging terminal, and sending the state information to the charging pile management platform; the main charging terminal acquires heartbeat frames of the rest charging terminals through the controller area network bus, determines state information based on the heartbeat frames, and all the charging terminals send the heartbeat frames to the controller area network bus;
step 506, obtaining the current data flow and the highest data flow of the controller area network bus;
step 507, determining the busyness of the controller area network bus according to the current data flow and the highest data flow;
step 508, if the busyness reaches the preset condition, reducing the data sending rate of each charging terminal for sending data to the controller area network bus;
or, in step 509, if the busyness degree does not reach the preset condition, determining the current running state of each charging terminal;
step 510, if the current running state of the charging terminal is a working state, increasing the data transmission priority of the charging terminal for transmitting data to the controller area network bus;
Or, in step 511, if the current running state of the charging terminal is the idle state, the data transmission priority of the charging terminal for transmitting data to the controller area network bus is reduced.
In this embodiment, the master charging terminal and the slave charging terminals are determined from each charging terminal, then a local area network is constructed based on the controller local area network bus, data transmitted by each slave charging terminal is collected in the local area network through the master charging terminal, and then the data is sent to the charging pile management platform outside the local area network through the master charging terminal, so that the number of charging terminals directly communicating with the charging pile management platform can be reduced, and further the cost of a communication interface is reduced. The method is not only suitable for initializing networking, but also suitable for newly-added charging terminals to be re-networked, and is more beneficial to communication management of charging stations. Meanwhile, the busyness of the controller area network bus is monitored, each charging terminal is taken as an execution main body, the flow management and congestion control of the controller area network bus are realized, the self-contained priority arbitration function of the controller area network bus is relied on, and the communication instantaneity of the charging terminal in a working state is considered.
In order to facilitate understanding of embodiments of the present application by those skilled in the art, the present application is described below in connection with specific examples. In this example, the communication protocol of the controller area network bus (Controller Area Network, CAN bus) is layered into a physical layer, a network layer, a transport layer, a session layer, and an application layer. Wherein, the liquid crystal display device comprises a liquid crystal display device,
Physical layer: charging terminals (including alternating current charging terminals and direct current charging terminals) in the charging station are all hung on the same CAN bus, and form a physical layer foundation through the CAN bus and a terminal resistor, so as to provide a transmission medium and a reliable environment foundation for data communication between the terminals.
Network layer: and providing blocking control for data transmission, and preventing data congestion on the CAN bus on the premise of ensuring data timeliness.
Transmission layer: the transmission layer realizes single-frame or multi-frame transmission of the message, and the frame receiving data check sum is addressed according to the frame ID. The reliability of data transmission is ensured to the application layer.
The method specifically comprises the steps of sending and receiving single-frame or multi-frame data, checking the safety of the multi-frame data, judging the source of the data through a frame ID domain, realizing the directional or broadcast data sending through the ID domain, and the like; as shown in table 1 below, the composition of the ID field,
TABLE 1 composition of ID fields
Figure BDA0004037553340000121
Session layer: the basic functions of networking are realized, including initializing networking, intermediate off-network, re-networking and the like. The terminal number of the charging terminal (MAC address) in the current CAN bus, namely the logic number, is determined by the physical address of the charging terminal, and an addressing direction is provided for application layer data transmission.
Application layer: the user-level transmission is realized, the data frame format and the frame ID CAN be customized, but the data frame format and the frame ID cannot conflict with the CMD command word of the CAN bus.
As shown in fig. 6, in this example, a flow chart of initializing networking of a charging terminal and re-networking of a newly added charging terminal in a charging station specifically includes: each charging terminal obtains configuration information from a respective memory (the memory may be a charged erasable programmable read only memory); the networking handshake information is sent at regular time according to the configuration information, wherein the handshake information comprises a master-slave code, a command code (01), a source address, a destination address and MAC information; when each charging terminal receives handshake information of other charging terminals, the handshake information of the same charging terminal is required to be received for three times, and each time interval does not exceed 10s, the handshake information of the charging terminal is considered to be collected; after receiving handshake information of the rest charging terminals, detecting whether the MAC address information conflicts, if so, notifying a user to adjust, and if not, determining a host, a standby host and a slave (at least determining one host) according to configuration information; finally, if the charging terminals initialize networking, the determined host and the standby host need to record the information of all the charging terminals locally, and the slave only needs to record the information of the slave locally; if the newly added charging terminal is re-networked, the original host and the standby host need to be re-created and record the charging terminal information.
Fig. 7 is a schematic flow chart of determining states of the remaining charging terminals by the charging terminals according to the heartbeat frame after networking is completed in this example, which specifically includes: each charging terminal sends a heartbeat frame of the charging terminal, wherein the heartbeat frame comprises information such as heartbeat count, fault identification and the like; each charging terminal continuously receives heartbeat frames sent by other n charging terminals, counts the heartbeat frame receiving time intervals of other charging terminals, marks off-grid of the charging terminal if the heartbeat frame of one charging terminal is not received over time, and counts +1 of off-grid terminals; when the number of the off-network terminals reaches n-1, the CAN connection of the charging terminal is considered to be abnormal, and the CAN connection module of the charging terminal is reinitialized. Further, if the host detects the off-network terminal, the off-network information is reported to a terminal management platform outside the CAN bus, and MAC information of the off-network terminal is recorded locally, so that the user CAN inquire conveniently; correspondingly, if the host receives the heartbeat frame sent by the off-network terminal, the off-network terminal is considered to resume connection.
In this embodiment, local automation networking is performed through the CAN bus, so as to achieve local interconnection of one master with multiple slaves or multiple masters with multiple slaves, achieve information sharing of each terminal, and transmit data to the terminal management platform through the host, so that power management and control, equipment safety management, charging control and data safety management of the charging station or the charging terminal are more conveniently achieved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a charging station communication device for realizing the charging station communication method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more charging station communication devices provided below may refer to the limitation of the charging station communication method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 8, there is provided a charging station communication device including: a configuration information acquisition module 801, a master-slave terminal determination module 802, and a status information transmission module 803, wherein:
a configuration information obtaining module 801, configured to obtain configuration information of each charging terminal in the charging station;
a master-slave terminal determining module 802, configured to determine a master charging terminal and a slave charging terminal from each charging terminal according to the configuration information;
the state information sending module 803 is configured to collect state information of the slave charging terminal through the master charging terminal, and send the state information to the charging pile management platform;
the main charging terminal acquires a heartbeat frame of the slave charging terminal through the controller area network bus, determines state information based on the heartbeat frame, and both the main charging terminal and the slave charging terminal send the heartbeat frame to the controller area network bus.
In one embodiment, the configuration information includes hardware network interface information and physical address information, and the master-slave terminal determining module 802 is further configured to screen, according to the hardware network interface information in the configuration information, a charging terminal having a hardware network interface from among the charging terminals as a candidate terminal; screening target charging terminals from the candidate terminals according to the physical address information in the configuration information; the target charging terminal is determined as a master charging terminal, and the remaining individual charging terminals are determined as slave charging terminals.
In one embodiment, the slave charging terminals include a standby master charging terminal and a general slave charging terminal, and the master-slave terminal determining module 802 is further configured to determine the remaining candidate terminals except the target charging terminal as the standby master charging terminal; the remaining terminals that do not belong to the candidate terminal are determined as the general slave charging terminals.
In one embodiment, the master-slave terminal determining module 802 is further configured to obtain configuration information of a new charging terminal when the new charging terminal joins the communication in the charging station; and re-determining the master charging terminal and the slave charging terminals from the new charging terminals and the charging terminals according to the configuration information of the new charging terminals and the configuration information of the charging terminals.
In one embodiment, the charging station communication device further includes a flow control module, configured to obtain a current data flow and a highest data flow of the controller area network bus; determining the busyness of the controller local area network bus according to the current data flow and the highest data flow; and controlling the data transmission parameters of each charging terminal to transmit data to the controller area network bus according to the busyness.
In one embodiment, the data transmission parameters include a data transmission rate and a data transmission priority, and the flow control module is further configured to reduce a data transmission rate of each charging terminal for transmitting data to the controller area network bus when the busy degree reaches a preset condition; and under the condition that the busyness degree does not reach the preset, determining the current running state of each charging terminal, and controlling the data transmission priority of each charging terminal for transmitting data to the controller area network bus according to the current running state.
In one embodiment, the current running state includes a working state and an idle state, and the flow control module is further configured to increase a data transmission priority of the charging terminal for transmitting data to the controller area network bus when the current running state of the charging terminal is the working state; and under the condition that the current running state of the charging terminal is an idle state, reducing the data transmission priority of the charging terminal for transmitting data to the controller area network bus.
The respective modules in the charging station communication device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a charging terminal, and an internal structure diagram thereof may be as shown in fig. 9. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a charging station communication method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (11)

1. A charging station communication method, the method comprising:
acquiring configuration information of each charging terminal in a charging station;
according to the configuration information, determining a master charging terminal and a slave charging terminal from the charging terminals;
collecting state information of the secondary charging terminal through the primary charging terminal, and sending the state information to a charging pile management platform;
The master charging terminal acquires a heartbeat frame of the slave charging terminal through a controller area network bus, the state information is determined based on the heartbeat frame, and the master charging terminal and the slave charging terminal both send the heartbeat frame to the controller area network bus.
2. The method of claim 1, wherein the configuration information includes hardware network interface information and physical address information, and wherein the determining a master charging terminal and a slave charging terminal from the respective charging terminals according to the configuration information includes:
according to the hardware network interface information in the configuration information, selecting a charging terminal with a hardware network interface from the charging terminals as a candidate terminal;
screening a target charging terminal from the candidate terminals according to the physical address information in the configuration information;
the target charging terminal is determined as a master charging terminal, and the remaining individual charging terminals are determined as slave charging terminals.
3. The method of claim 2, wherein the slave charging terminals include a standby master charging terminal and a generic slave charging terminal, and wherein the determining each remaining charging terminal as a slave charging terminal comprises:
Determining the rest candidate terminals except the target charging terminal as the standby main charging terminal;
and determining the rest terminals which do not belong to the candidate terminals as the common slave charging terminals.
4. The method of claim 1, further comprising, after said determining a master charging terminal and a slave charging terminal from said respective charging terminals based on said configuration information:
when a new charging terminal in the charging station joins in communication, acquiring configuration information of the new charging terminal;
and re-determining the master charging terminal and the slave charging terminals from the new charging terminals and the charging terminals according to the configuration information of the new charging terminals and the configuration information of the charging terminals.
5. The method of claim 1, further comprising, after the determining the master charging terminal and the slave charging terminal:
acquiring the current data flow and the highest data flow of the controller area network bus;
determining the busyness of the controller area network bus according to the current data flow and the highest data flow;
And controlling the data transmission parameters of the charging terminals for transmitting data to the controller area network bus according to the busyness.
6. The method of claim 5, wherein the data transmission parameters include a data transmission rate and a data transmission priority, and wherein the controlling the data transmission parameters of the respective charging terminals to transmit data to the controller area network bus according to the busyness comprises:
if the busyness reaches a preset condition, reducing the data sending rate of sending data to the controller area network bus by each charging terminal;
and if the busyness degree does not reach the preset condition, determining the current running state of each charging terminal, and controlling the data transmission priority of each charging terminal for transmitting data to the controller area network bus according to the current running state.
7. The method of claim 6, wherein the current operating state includes an operating state and an idle state, wherein the controlling the data transmission priority of the respective charging terminals to transmit data to the controller area network bus according to the current operating state includes:
For each charging terminal, if the current running state of the charging terminal is a working state, the data transmission priority of the charging terminal for transmitting data to the controller area network bus is improved;
and if the current running state of the charging terminal is an idle state, reducing the data transmission priority of the charging terminal for transmitting data to the controller area network bus.
8. A charging station communication device, the device comprising:
the configuration information acquisition module is used for acquiring configuration information of each charging terminal in the charging station;
the master-slave terminal determining module is used for determining a master charging terminal and a slave charging terminal from the charging terminals according to the configuration information;
the state information sending module is used for collecting the state information of the secondary charging terminal through the primary charging terminal and sending the state information to the charging pile management platform;
the master charging terminal acquires a heartbeat frame of the slave charging terminal through a controller area network bus, the state information is determined based on the heartbeat frame, and the master charging terminal and the slave charging terminal both send the heartbeat frame to the controller area network bus.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310007441.3A 2023-01-04 2023-01-04 Charging station communication method, charging station communication device, computer equipment and storage medium Pending CN116192892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310007441.3A CN116192892A (en) 2023-01-04 2023-01-04 Charging station communication method, charging station communication device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310007441.3A CN116192892A (en) 2023-01-04 2023-01-04 Charging station communication method, charging station communication device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116192892A true CN116192892A (en) 2023-05-30

Family

ID=86439629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310007441.3A Pending CN116192892A (en) 2023-01-04 2023-01-04 Charging station communication method, charging station communication device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116192892A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116527439A (en) * 2023-07-05 2023-08-01 广州疆海科技有限公司 Data communication method, device, computer equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116527439A (en) * 2023-07-05 2023-08-01 广州疆海科技有限公司 Data communication method, device, computer equipment and computer readable storage medium
CN116527439B (en) * 2023-07-05 2023-10-17 广州疆海科技有限公司 Data communication method, device, computer equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11469949B2 (en) Hierarchical configuration of networked communication devices
JP2021520748A (en) Model update method and equipment, and system
JP6067365B2 (en) MiAN, system and partner discovery method in the system
CN103874134A (en) Flow control method and device
CN116192892A (en) Charging station communication method, charging station communication device, computer equipment and storage medium
EP4280685A1 (en) Information transmission method and device thereof
US20230216758A1 (en) Information acquisition method and apparatus, storage medium, and electronic apparatus
CN102404710B (en) Method, device and system for contract signing data management of machine type communication device
CN103731294A (en) Method, device and system for two-machine hot-standby communication
WO2019192271A1 (en) Access control information transmission method, apparatus, and network side device
CN107566156B (en) Power-saving mode switching method and device
CN103973565A (en) Routing domain selecting method, device and system
CN102984739A (en) Breakdown information processing method and processing device
CN104079663A (en) Distributed type real-time synchronizing network system and data annunciating method thereof
WO2019010799A1 (en) Internet of things terminal migration method and gateway
CN104022910B (en) A kind of parameter consultation method and its device
CN104517440B (en) Traffic data processing method and equipment
JP2017069863A (en) Communication system, communication method, and program
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN113535376A (en) Calculation power scheduling method, centralized control equipment and calculation power application equipment
CN105101445A (en) Time scheduling method and electronic equipment
CN116527439B (en) Data communication method, device, computer equipment and computer readable storage medium
CN114356830B (en) Bus terminal control method, device, computer equipment and storage medium
CN106211330A (en) The method of resource distribution, Apparatus and system
CN110839034B (en) Communication connection control method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511458 room 409-a156, a157, No. 1, Mingzhu 1st Street, Hengli Town, Nansha District, Guangzhou City, Guangdong Province

Applicant after: China Southern Power Grid Industry Investment Group Co.,Ltd.

Applicant after: Southern Power Grid Electric Vehicle Service Co.,Ltd.

Applicant after: Yonglian Technology (Changshu) Co.,Ltd.

Address before: 511458 room 409-a156, a157, No. 1, Mingzhu 1st Street, Hengli Town, Nansha District, Guangzhou City, Guangdong Province

Applicant before: China Southern Power Grid Industry Investment Group Co.,Ltd.

Applicant before: Southern Power Grid Electric Vehicle Service Co.,Ltd.

Applicant before: Yonglian smart energy technology (Changshu) Co.,Ltd.