CN112559201B - Communication method for interconnection and intercommunication of client and server data - Google Patents

Communication method for interconnection and intercommunication of client and server data Download PDF

Info

Publication number
CN112559201B
CN112559201B CN202011351211.1A CN202011351211A CN112559201B CN 112559201 B CN112559201 B CN 112559201B CN 202011351211 A CN202011351211 A CN 202011351211A CN 112559201 B CN112559201 B CN 112559201B
Authority
CN
China
Prior art keywords
data
client
server
information
real
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.)
Active
Application number
CN202011351211.1A
Other languages
Chinese (zh)
Other versions
CN112559201A (en
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.)
Hangzhou Kaida Electric Power Construction Co ltd Automation Operation And Maintenance Branch
Hangzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Hangzhou Kaida Electric Power Construction Co ltd Automation Operation And Maintenance Branch
Hangzhou Power Supply Co of State Grid Zhejiang Electric Power 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 Hangzhou Kaida Electric Power Construction Co ltd Automation Operation And Maintenance Branch, Hangzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical Hangzhou Kaida Electric Power Construction Co ltd Automation Operation And Maintenance Branch
Priority to CN202011351211.1A priority Critical patent/CN112559201B/en
Publication of CN112559201A publication Critical patent/CN112559201A/en
Application granted granted Critical
Publication of CN112559201B publication Critical patent/CN112559201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Abstract

The invention discloses a communication method for data interconnection and intercommunication between a client and a server, which comprises the following steps: establishing connection: the client initiates a communication connection request to the server, and after the communication link connection is established, the client automatically sends login information to the server for identity recognition, and the server checks the received login information; and (3) information transmission: after the client side logs in successfully, reporting the real-time information of the charging pile to the server side; reporting statistical data: and transmitting the statistical data of the client to the server. In the communication method, in the exchange of the client and the server of various data, the transmission efficiency, the response speed and the processing speed of data transmission are improved, the feedback of data processing response is more reasonable and efficient, and the mechanisms for judging, storing, extracting and reporting abnormal and error information are more reasonable and efficient.

Description

Communication method for interconnection and intercommunication of client and server data
Technical Field
The invention relates to the technical field of data communication, in particular to a communication method for data interconnection and intercommunication between a client and a server.
Background
At present, new energy electric vehicles are increasingly widely used for traveling, and how to realize the technical implementation of charging and exchanging public data information, service exchange information, data transmission and safety of the electric vehicles is very critical. And the data interconnection and intercommunication of the charging pile operators, the clients of the new energy automobiles and the server platform are realized, and the interconnection and intercommunication of the information business process interaction is realized by the interface conversion among different systems, interaction modes and standard protocols. The method solves the problems that the data transmission efficiency of the client and the server is low, and abnormal and error information in transmission cannot be checked in the subsequent process.
Disclosure of Invention
The invention provides a communication method for interconnection and intercommunication of data between a client and a server, which aims to solve the problems that the data transmission efficiency between the client and the server is low, and abnormal and error information in transmission cannot be checked in the subsequent process in the prior art.
The technical scheme adopted for overcoming the technical problems is as follows:
a communication method for interconnection and intercommunication of data between a client and a server comprises the following steps:
establishing connection: the client initiates a communication connection request to the server, and after the communication link connection is established, the client automatically sends login information to the server for identity recognition, and the server checks the received login information; after receiving the response instruction of the server, the client completes the login transmission; when the client does not receive a response instruction within a preset time, logging again every N minutes, if the logging is repeated for 3 times continuously and no response exists, continuously re-linking after the interval of M minutes, and after successful linking, sending unsuccessful data stored in the client before successful linking to the server;
and (3) information transmission: after the client side logs in successfully, reporting the real-time information of the charging pile to the server side;
when the client reports the charging pile information to the server, the server checks the received data, and when the checking is correct, the server makes a correct response; when the error is checked, the server side makes an error response, and then the client side resends the real-time information of the vehicle, resends the real-time information once every P minutes, and does not send the real-time information after failing for 3 times; if the data transmitted by the terminal is in an encrypted state, the client firstly decrypts the data and then transmits the decrypted data to the server after re-encryption, and if the transmission between the client and the server has no encryption requirement, re-encryption is not needed;
reporting statistical data: and transmitting the statistical data of the client to the server.
Further, in the connection establishment process, when the server side checks the received login information, the check specifically includes:
when the verification is correct, the server returns a successful response;
when the error is checked, the server stores the error data and notifies the client.
Further, in the information transmission process, when the client reports information to the server, reporting including driving motor data, whole vehicle data, fuel cell data, engine data, vehicle position data, extremum data and alarm data is at least completed according to actual conditions.
Further, in the information transmission process, when the exchange data and/or the user-defined data exist, the client is further configured to complete reporting of the exchange data and/or the user-defined data.
Further, in the information transmission process, when an alarm occurs to the vehicle, the client reports data of 30 seconds before and after the occurrence time point of the fault to the server, and the sampling period of the data information is not more than 1 second, wherein the data before the occurrence of the fault is transmitted in a complementary form.
Further, n=1, m=30, p=1.
Further, in the process of reporting the statistic data, the statistic data of the client is transmitted to the server in an FTP, HTTP or HTTPs mode.
Further, the hair-supplementing device also comprises a hair-supplementing mechanism, wherein the hair-supplementing mechanism specifically comprises:
when the data communication link is abnormal, the client side locally stores the real-time reported data, and after the data communication link is recovered to be normal, the client side completes the repeated storage of the reported data in the idle time for sending the real-time reported data, wherein the repeated storage of the reported data is the data stored in the abnormal period of the communication link within 7 days.
Further, in the reissue mechanism, the data format of reissued report data is the same as the data format of real-time report data, and the reissued report data is identified as reissue information report.
Further, in the information transmission process, the method further comprises a situation of disconnection, wherein the disconnection is specifically:
when the TCP connection is interrupted, the server breaks the session connection with the client; or alternatively, the first and second heat exchangers may be,
when the TCP connection is normal but no response is received after the number of retransmission times is reached, the server disconnects the session connection with the client.
The beneficial effects of the invention are as follows:
according to the communication method for interconnection and intercommunication of the client and the server, in the exchange of the client and the server of various data, the transmission efficiency, the response speed and the processing speed of data transmission are improved, the feedback of data processing response is more reasonable and efficient, and the mechanism for judging, storing, extracting and reporting abnormal and error information is more reasonable and efficient.
Detailed Description
The present invention will be further described in detail by way of specific examples, which are given by way of illustration only and are not intended to limit the scope of the present invention, in order to facilitate a better understanding of the present invention to those skilled in the art.
The embodiment of the invention discloses a communication method for data interconnection and intercommunication between a client and a server, which comprises the following steps:
step one, establishing connection:
specifically, the client initiates a communication connection request to the server, after the communication link connection is established, the client automatically sends login information to the server for identity recognition, the server checks the received login information, specifically, when the verification is correct, the server returns a successful response, and when the verification is incorrect, the server stores error data and notifies the client;
after receiving the response instruction of the server, the client completes the login transmission; if the client does not receive the response instruction within the preset time, logging again every N minutes, in this embodiment, N is preferably 1 minute, and if logging is continuously repeated for 3 times and no response is performed, M is preferably 30 minutes after M minutes, the client continues to be linked again, and after the linking is successful, unsuccessful data stored in the client before the linking is successful is sent to the server.
Step two, information transmission: and after the client logs in successfully, reporting the real-time information of the charging pile to the server.
Specifically, when the client reports the charging pile information to the server, the server checks the received data: when the verification is correct, the server side makes a correct response; when checking errors, the server side makes error response, and then the client side resends the real-time information of the vehicle, resends the real-time information every P minutes, and in the embodiment, P is preferably 1 minute, and the client side does not send the real-time information after failing for 3 times;
if the data sent by the terminal is in an encrypted state, the client firstly decrypts the data and sends the decrypted data to the server after re-encryption; if no encryption requirement exists in the transmission between the client and the server, re-encryption is not needed.
Further, in the information transmission process, when the client reports information to the server, reporting including driving motor data, whole vehicle data, fuel cell data, engine data, vehicle position data, extremum data and alarm data is at least completed according to actual conditions. Furthermore, when the exchange data and/or the user-defined data exist, the client is also used for completing the reporting of the exchange data and/or the user-defined data.
As a preferred embodiment, in the information transmission process, when an alarm occurs on the vehicle, the client reports data of 30 seconds before and after the occurrence time point of the fault to the server, and the sampling period of the data information is not more than 1 second, wherein the data before the occurrence of the fault is transmitted in a complementary form.
In addition, the data transfer protocol in this embodiment uses network byte order in big-end mode to transfer words and doublewords.
The transmitted data packet structure consists of a start character, a command unit, an identification code, a data encryption mode, a data unit length, a data unit and a check code.
Step three, reporting statistical data: and transmitting the statistical data of the client to the server.
Specifically, in the process of reporting the statistical data, the statistical data of the client is transmitted to the server in an FTP, HTTP or HTTPs mode.
As a preferable scheme of the embodiment, the method further includes a hair-supplementing mechanism, where the hair-supplementing mechanism specifically includes:
when the data communication link is abnormal, the client side locally stores the real-time reported data, and after the data communication link is recovered to be normal, the client side completes the repeated storage of the reported data in the idle time for sending the real-time reported data, wherein the repeated storage of the reported data is the data stored in the abnormal period of the communication link within 7 days.
In this embodiment, the data format of the reissued report data is the same as the data format of the real-time report data, and the reissued report data is identified as reissued information report.
As a further preferable scheme of this embodiment, in the information transmission process, a connection disconnection situation is further included, where the connection disconnection is specifically:
when the TCP connection is interrupted, the server breaks the session connection with the client; or alternatively, the first and second heat exchangers may be,
when the TCP connection is normal but no response is received after the number of retransmission times is reached, the server disconnects the session connection with the client.
According to the communication method for interconnection and intercommunication of the client and the server, in the exchange of the client and the server of various data, the transmission efficiency, the response speed and the processing speed of data transmission are improved, the feedback of data processing response is more reasonable and efficient, and the mechanism for judging, storing, extracting and reporting abnormal and error information is more reasonable and efficient.
The foregoing has described only the basic principles and preferred embodiments of the present invention, and many variations and modifications will be apparent to those skilled in the art in light of the above description, which variations and modifications are intended to be included within the scope of the present invention.

Claims (8)

1. A communication method for interconnection and intercommunication of data between a client and a server is characterized by comprising the following steps:
establishing connection: the client initiates a communication connection request to the server, and after the communication link connection is established, the client automatically sends login information to the server for identity recognition, and the server checks the received login information; after receiving the response instruction of the server, the client completes the login transmission; when the client does not receive a response instruction within a preset time, logging again every N minutes, if the logging is repeated for 3 times continuously and no response exists, continuously re-linking after the interval of M minutes, and after successful linking, sending unsuccessful data stored in the client before successful linking to the server;
and (3) information transmission: after the client side logs in successfully, reporting the real-time information of the charging pile to the server side; in the information transmission process, when an alarm occurs to a vehicle, the client reports data of 30 seconds before and after the occurrence time point of the fault of the server, and the sampling period of the data information is not more than 1 second, wherein the data before the occurrence of the fault is transmitted in a complementary form;
when the client reports the charging pile information to the server, the server checks the received data, and when the checking is correct, the server makes a correct response; when the error is checked, the server side makes an error response, and then the client side resends the real-time information of the vehicle, resends the real-time information once every P minutes, and does not send the real-time information after failing for 3 times; if the data transmitted by the terminal is in an encrypted state, the client firstly decrypts the data and then transmits the decrypted data to the server after re-encryption, and if the transmission between the client and the server has no encryption requirement, re-encryption is not needed;
reporting statistical data: the statistical data of the client is input to the server;
the hair-supplementing system also comprises a hair-supplementing mechanism, wherein the hair-supplementing mechanism specifically comprises the following steps: when the data communication link is abnormal, the client side locally stores the real-time reported data, and after the data communication link is recovered to be normal, the client side completes the repeated storage of the reported data in the idle time for sending the real-time reported data, wherein the repeated storage of the reported data is the data stored in the abnormal period of the communication link within 7 days.
2. The communication method for interconnecting and interworking between client and server according to claim 1, wherein, in the process of establishing a connection, when the server checks the received login information, the verification specifically includes:
when the verification is correct, the server returns a successful response;
when the error is checked, the server stores the error data and notifies the client.
3. The method for interconnecting and communicating data between a client and a server according to claim 1, wherein in the process of information transmission, when the client reports information to the server, reporting including driving motor data, whole vehicle data, fuel cell data, engine data, vehicle position data, extremum data and alarm data is at least completed according to actual conditions.
4. The method for interconnecting and interworking between client and server according to claim 3, wherein the client is further configured to complete reporting of the exchange data and/or the user-defined data when the exchange data and/or the user-defined data exists during the information transmission process.
5. The communication method of data interconnection between a client and a server according to claim 1, wherein n=1, m=30, and p=1.
6. The communication method of interconnection and interworking between a client and a server according to claim 1, wherein in the process of reporting the statistics data, the statistics data of the client is transmitted to the server in an FTP, HTTP or HTTPs manner.
7. The method for interconnecting and communicating data between a client and a server according to any one of claims 1 to 6, wherein in the reissue mechanism, a data format of reissued report data is the same as a data format of data reported in real time, and the reissued report data is identified as reissued information.
8. The method for interconnecting and communicating data between a client and a server according to any one of claims 1 to 6, further comprising a disconnection condition during the information transmission process, wherein the disconnection condition is specifically: when the TCP connection is interrupted, the server breaks the session connection with the client; or alternatively, the first and second heat exchangers may be,
when the TCP connection is normal but no response is received after the number of retransmission times is reached, the server disconnects the session connection with the client.
CN202011351211.1A 2020-11-26 2020-11-26 Communication method for interconnection and intercommunication of client and server data Active CN112559201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011351211.1A CN112559201B (en) 2020-11-26 2020-11-26 Communication method for interconnection and intercommunication of client and server data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011351211.1A CN112559201B (en) 2020-11-26 2020-11-26 Communication method for interconnection and intercommunication of client and server data

Publications (2)

Publication Number Publication Date
CN112559201A CN112559201A (en) 2021-03-26
CN112559201B true CN112559201B (en) 2024-04-16

Family

ID=75046028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011351211.1A Active CN112559201B (en) 2020-11-26 2020-11-26 Communication method for interconnection and intercommunication of client and server data

Country Status (1)

Country Link
CN (1) CN112559201B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117439941A (en) * 2023-12-20 2024-01-23 厦门金龙联合汽车工业有限公司 Multilink data transmission method and system oriented to unmanned vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357633A (en) * 2016-09-07 2017-01-25 惠州市德赛西威汽车电子股份有限公司 Method and device for protecting car TCU data
CN107786548A (en) * 2017-10-13 2018-03-09 北京佰才邦技术有限公司 Charging management method and device, server and computer-readable recording medium
WO2018161970A1 (en) * 2017-03-09 2018-09-13 北京佰才邦技术有限公司 Charging pile management method and charging pile management client terminal, and management server
CN109376889A (en) * 2018-10-31 2019-02-22 广州小鹏汽车科技有限公司 Electric car and its charging management method, device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357633A (en) * 2016-09-07 2017-01-25 惠州市德赛西威汽车电子股份有限公司 Method and device for protecting car TCU data
WO2018161970A1 (en) * 2017-03-09 2018-09-13 北京佰才邦技术有限公司 Charging pile management method and charging pile management client terminal, and management server
CN107786548A (en) * 2017-10-13 2018-03-09 北京佰才邦技术有限公司 Charging management method and device, server and computer-readable recording medium
CN109376889A (en) * 2018-10-31 2019-02-22 广州小鹏汽车科技有限公司 Electric car and its charging management method, device

Also Published As

Publication number Publication date
CN112559201A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112422396B (en) TCP network transmission acceleration method and system based on SSLVPN channel
CN110753327B (en) Terminal object connection system based on wireless ad hoc network and LoRa
US20060268916A1 (en) Reliable short messaging service
CN101527729A (en) Reliable IKE message negotiation method, device and system thereof
CN112559201B (en) Communication method for interconnection and intercommunication of client and server data
CN101827020B (en) Method and system for speeding up built persistent connection without disconnection
CN103546427B (en) Method and system for realizing high availability of encryption machine application
CN107135228B (en) Authentication system and authentication method based on central node
CN112055088B (en) Optical shutter-based file reliable transmission system and method thereof
CN109560928A (en) A kind of encryption method based on state's net cryptographic protocol
CN114157509B (en) Encryption method and device with SSL and IPsec based on cryptographic algorithm
CN107819597B (en) Network data transmission method and front-end processor
CN102710666B (en) RADIUS (remote authentication dial in user service) client overtime treating method in WLAN (wireless local area network) system
CN109194490B (en) Power distribution network communication security authentication system and method
CN114125583B (en) Communication control method of distributed control network
CN111367477B (en) 3D printing device, connection method, data processing device, control method and medium
CN116094692A (en) Inter-chip secure communication method and system in vehicle-mounted intelligent ECU
CN114024712B (en) Authentication method, authentication device, computer equipment and storage medium
CN114449062B (en) Interactive system and method of QKD key management system
CN114866623B (en) Nuclear power station laser real-time data unidirectional feedback-free transmission method and system
CN114070605A (en) Master station downlink data security verification method
CN112953919B (en) Data acquisition method and system
CN1547346A (en) An open method and system for ultra-remote industrial monitoring information integration
CN117176831A (en) Controller network communication method, system, equipment and medium
CN106656973A (en) CAN card and server SOCKET data transmission algorithm

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
GR01 Patent grant