CN110012002B - Message analysis method and device, server and computer readable storage medium - Google Patents

Message analysis method and device, server and computer readable storage medium Download PDF

Info

Publication number
CN110012002B
CN110012002B CN201910249762.8A CN201910249762A CN110012002B CN 110012002 B CN110012002 B CN 110012002B CN 201910249762 A CN201910249762 A CN 201910249762A CN 110012002 B CN110012002 B CN 110012002B
Authority
CN
China
Prior art keywords
message
information
charging pile
parameter
tcp
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
CN201910249762.8A
Other languages
Chinese (zh)
Other versions
CN110012002A (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.)
Shenzhen Zhilian Iot Technology Co ltd
Original Assignee
Shenzhen Zhilian Iot Technology 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 Shenzhen Zhilian Iot Technology Co ltd filed Critical Shenzhen Zhilian Iot Technology Co ltd
Priority to CN201910249762.8A priority Critical patent/CN110012002B/en
Publication of CN110012002A publication Critical patent/CN110012002A/en
Application granted granted Critical
Publication of CN110012002B publication Critical patent/CN110012002B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application is suitable for the technical field of charging piles, and discloses a message analysis method, a message analysis device, a server and a computer-readable storage medium, wherein the method comprises the following steps: acquiring a TCP message uploaded by a charging pile; searching message parameter information of the charging pile, which is configured in advance, wherein the message parameter information comprises parameter type information, parameter initial frame information and parameter length information; and analyzing the TCP message according to the message parameter information to obtain a message analysis result. According to the embodiment of the application, the relevant parameters of the TCP messages of the charging piles are configured in advance, the TCP messages of the charging piles are analyzed according to the configured message parameter information, namely the TCP messages of the charging piles are analyzed in a parameter configuration mode, so that when parameters are modified or new charging pile equipment needs to be accessed, source codes do not need to be edited or corresponding message analysis protocols do not need to be re-developed, the flexibility is high, the workload is low, and the maintenance is easy.

Description

Message analysis method and device, server and computer readable storage medium
Technical Field
The application belongs to the technical field of charging piles, and particularly relates to a message parsing method and device, a server and a computer readable storage medium.
Background
With the continuous development of science and technology and society, the application of new energy technology is also more and more extensive, and electric motor car and electric pile are an important direction of new energy technology.
In recent years, with the increasing number of electric vehicles, the number of charging piles is also increasing. Each charging pile needs to perform data interaction with a background so as to complete corresponding operations of order payment, data reporting, power supply and the like. In general, the charging pile performs data interaction with the background through a TCP message, that is, the charging pile actively uploads a corresponding message, the background receives an uplink message of the device and analyzes the uplink message to obtain corresponding data, and then sends a downlink message according to a control requirement. The existing common TCP message analysis mode of the charging pile background is mostly based on a hard coding mode, hard coding data modification can be usually only carried out by editing source codes and recompiling executable files, and flexibility is poor.
That is to say, a hard-coded message analysis mode is used, so that the device types and device parameters cannot be flexibly increased and modified in the charging pile background, and when a new set of charging pile device is added, a corresponding TCP message analysis protocol needs to be additionally developed, so that the workload is high and the maintenance is difficult.
Disclosure of Invention
In view of this, embodiments of the present application provide a message parsing method and apparatus, a server, and a computer-readable storage medium, so as to solve the problem that the existing charging pile background TCP message parsing method is relatively poor in flexibility.
A first aspect of the embodiments of the present application provides a method for parsing a packet, including:
acquiring a TCP message uploaded by a charging pile;
searching message parameter information of the charging pile, which is configured in advance, wherein the message parameter information comprises parameter type information, parameter initial frame information and parameter length information;
and analyzing the TCP message according to the message parameter information to obtain a message analysis result.
With reference to the first aspect, in a feasible implementation manner, before the acquiring the TCP packet uploaded by the charging pile, the method further includes:
acquiring TCP message configuration information of the charging pile, which is input by a user;
and storing the TCP message configuration information and the equipment information of the charging pile in an associated manner to obtain the message parameter information.
With reference to the first aspect, in a feasible implementation manner, after the associating and storing the TCP packet configuration information and the device information of the charging pile to obtain the packet parameter information, the method further includes:
and generating a message parameter configuration template according to the message parameter information and the equipment information of the charging pile.
With reference to the first aspect, in a feasible implementation manner, before the obtaining the TCP packet configuration information of the charging pile, the method further includes:
judging whether a pre-stored target configuration template exists or not according to the equipment information of the charging pile;
when the target configuration template exists, automatically performing message parameter configuration operation on the charging pile according to the target configuration template;
and when the target configuration template does not exist, entering the step of acquiring the TCP message configuration information of the charging pile input by the user.
With reference to the first aspect, in a feasible implementation manner, after analyzing the TCP packet according to the packet parameter information to obtain a packet analysis result, the method further includes:
converting the data format of the message analysis result into a preset format;
and transmitting the message analysis result in the preset format to a service layer.
A second aspect of the embodiments of the present application provides a packet parsing apparatus, including:
the message acquisition module is used for acquiring a TCP message uploaded by the charging pile;
the searching module is used for searching message parameter information of the charging pile, which is configured in advance, wherein the message parameter information comprises parameter type information, parameter starting frame information and parameter length information;
and the analysis module is used for analyzing the TCP message according to the message parameter information to obtain a message analysis result.
With reference to the second aspect, in one possible implementation manner, the method further includes:
the configuration information acquisition module is used for acquiring TCP message configuration information of the charging pile, which is input by a user;
and the association storage module is used for associating and storing the TCP message configuration information and the equipment information of the charging pile to obtain the message parameter information.
With reference to the second aspect, in one possible implementation manner, the method further includes:
and the template generating module is used for generating a message parameter configuration template according to the message parameter information and the equipment information of the charging pile.
With reference to the second aspect, in one possible implementation manner, the method further includes:
the judging module is used for judging whether a pre-stored target configuration template exists or not according to the equipment information of the charging pile;
the automatic configuration module is used for automatically configuring message parameters of the charging pile according to the target configuration template when the target configuration template exists;
and the entering module is used for entering the step of acquiring the TCP message configuration information of the charging pile, which is input by the user, when the target configuration template does not exist.
With reference to the second aspect, in one possible implementation manner, the method further includes:
the format conversion module is used for converting the data format of the message analysis result into a preset format;
and the transmission module is used for transmitting the message analysis result in the preset format to a service layer.
A third aspect of embodiments of the present application provides a server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method according to any one of the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to any one of the above first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: by pre-configuring relevant parameters of TCP messages of the charging piles and analyzing the TCP messages of the charging piles according to the configured message parameter information, namely analyzing the TCP messages of the charging piles in a parameter configuration mode, when parameters are modified or new charging pile equipment needs to be accessed, source codes do not need to be edited or corresponding message analysis protocols do not need to be re-developed, and the charging pile equipment is high in flexibility, small in workload and easy to maintain.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic block diagram of an architecture of a charging pile power supply system according to an embodiment of the present application;
fig. 2 is a schematic block diagram of a flow of a message parsing method according to an embodiment of the present application;
fig. 3 is another schematic flow chart of a message parsing method according to an embodiment of the present application;
fig. 4 is a block diagram schematically illustrating a structure of a message parsing apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Before describing a specific technical solution of the embodiment of the present application, an application scenario that may be involved in the embodiment of the present application is described first.
Referring to fig. 1, a schematic block diagram of an architecture of a charging pile power supply system is shown, and the system includes at least one charging pile 11, a charging pile management platform 12, a device access platform 13, and an intelligent mobile terminal 14. The charging pile management platform is in communication connection with the equipment access platform, the equipment access platform is in communication connection with at least one charging pile, and the intelligent mobile terminal can be in communication connection with the charging pile management platform and the charging pile.
The equipment access platform is used for accessing each charging pile equipment, receiving the message uploaded by each charging pile, analyzing the message according to message configuration information to obtain an analysis result, and transmitting the analysis result to the charging pile management platform; the command or the message issued by the charging pile management platform can also be forwarded; and message configuration information sent by the charging pile management platform can be received, and message configuration is carried out according to the message configuration information. Of course, the device access platform may also have other functions, which are not limited herein.
Fill electric pile management platform can be used for filling each electric pile and manage, for example, the order payment that charges, fill electric pile power supply control etc.. The smart mobile terminal may be, for example, but not limited to, a mobile phone, a tablet computer, and the like, and the mobile terminal may implement functions of scanning payment, order generation, order payment, and the like.
The data interaction between the equipment access platform and the charging piles is realized through message protocols, and the message protocols adopted between the equipment access platform and the charging piles of different types are different. At present, in a hard-coded message analysis mode, if a new charging pile device needs to be accessed and the newly accessed charging pile device is different from a previously accessed charging pile, a developer needs to develop a new set of message protocol again to ensure normal data interaction between the newly accessed charging pile device and a background. In addition, if the message parameters need to be modified or other parameters need to be modified, the source code needs to be edited again.
In a charging scene, a charging vehicle owner can scan a two-dimensional code on a charging pile through a mobile phone and enter a charging order interface, the charging vehicle owner can fill in related information such as charging time, charging amount and the like in the charging order interface, then a charging order is generated and uploaded to a server, and the server finishes order payment through interaction with the mobile phone; then, the server can control the corresponding charging pile to execute power supply operation; the charging car owner can be connected to the plug of the charging pile through a charging adapter and the like to charge, in the charging process, the charging pile can report charging data such as charging current, charging voltage and the like to the equipment access platform in a message mode, the equipment access platform analyzes the message according to message configuration information to obtain a message analysis result, and then the message analysis result is transmitted to the charging pile management platform.
It should be noted that the above mentioned application scenarios are only some exemplary scenarios and do not limit the specific scenarios in the embodiments of the present application.
After the application scenarios that may be related to the embodiments of the present application are introduced, detailed descriptions of the technical solutions provided in the embodiments of the present application will be provided below. In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Example one
In this embodiment, a description will be given of a message parsing method performed by a slave device access platform.
Referring to fig. 2, a schematic flow chart of a message parsing method provided in the embodiment of the present application is shown, where the method may include the following steps:
step S201, obtaining a TCP message uploaded by a charging pile.
It can be understood that the type of the TCP message may be any type, that is, the TCP message may be any message transmitted between the charging pile and the device access platform, for example, a login message, a telemetry message, and the like. The binary system of the TCP packet may be any, that is, the packet may be a 16-binary system packet, or may be a packet of other binary systems, which is not limited herein.
Step S202, searching for preconfigured message parameter information of the charging pile, wherein the message parameter information comprises parameter type information, parameter start frame information and parameter length information.
The parameter type information is information indicating what kind of parameter the parameter is, that is, related information such as a name of the corresponding parameter can be known from the parameter type information. The parameter start frame information refers to information indicating which frame the start frame of the parameter in the message is. The parameter length information refers to information representing the length of the parameter in the message.
The message parameter information is obtained by the equipment access platform receiving and storing the configuration information issued by the charging pile management platform. Specifically, a user can input corresponding message configuration parameters through a management page of the management platform, then the charging pile management platform issues the configuration information to the equipment access platform according to the configuration information of the user, the equipment access platform can store the configuration information and the corresponding charging pile in an associated manner, after receiving a message uploaded by the charging pile, the equipment access platform can search the configuration information of the charging pile according to the equipment information of the charging pile, and analyze the message according to the configuration information.
The searching process of the message parameter information of the charging pile can specifically be through the equipment information of the charging pile, and the equipment information of the charging pile can specifically be the unique ID of the charging pile and the like.
And step S203, analyzing the TCP message according to the message parameter information to obtain a message analysis result.
Specifically, after the message parameter information is found, all parameters included in the TCP message may be analyzed according to the configured information such as the parameter name, the parameter start frame, and the parameter length. The message parsing result includes values of each parameter.
Therefore, TCP message analysis of the charging pile is carried out in a parameter configuration mode, when parameters are modified or new charging pile equipment needs to be accessed, source codes do not need to be edited or corresponding message analysis protocols do not need to be developed again, and the charging pile is high in flexibility, small in workload and easy to maintain.
Example two
Referring to fig. 3, another schematic flow chart of a message parsing method according to an embodiment of the present application is shown, where the method includes the following steps:
step S301, judging whether a pre-stored target configuration template exists according to the equipment information of the charging pile; when the target configuration template exists, the step S302 is entered; when the target configuration template does not exist, the process proceeds to step S303.
Specifically, through equipment information such as the unique ID of the charging pile, the equipment access platform searches whether a configuration template corresponding to the charging pile exists locally. The configuration template corresponding to the charging pile can be a configuration template corresponding to the charging pile, namely, a corresponding message parameter configuration template is preset for the charging pile; or a configuration template corresponding to the charging pile. If the corresponding configuration template can be found, the parameter configuration can be automatically carried out according to the configuration template without manual configuration of a user, and if the corresponding configuration template cannot be found, the manual configuration of the user is required.
The target configuration template refers to a configuration template corresponding to the charging pile, and the configuration template may include, but is not limited to, parameter configuration information such as a parameter name, a parameter start frame, and a parameter length.
And S302, automatically performing message parameter configuration operation on the charging pile according to the target configuration template.
And step S303, acquiring TCP message configuration information of the charging pile, which is input by a user.
Specifically, a user can set a message parameter of the charging pile device according to the type and the like of the charging pile device through a management page of the charging pile management platform, and the charging pile management platform can issue the configuration information of the user to the device access platform after acquiring the configuration information.
The TCP packet configuration information includes, but is not limited to, a parameter name, a parameter length, a parameter start frame, and other related information.
And S304, storing the TCP message configuration information and the equipment information of the charging pile in an associated manner to obtain message parameter information.
Specifically, after receiving the TCP packet configuration information, the device access platform may manage and store the TCP packet configuration information and the device information of the charging pile to obtain the identifier packet parameter information.
And S305, generating a message parameter configuration template according to the message parameter information and the equipment information of the charging pile.
Specifically, after the user completes configuration of a certain charging pile or a certain type of charging pile, the equipment access platform can automatically generate a configuration template according to the configuration of the user, so that the configuration template can be automatically called to perform parameter configuration at the moment when the user encounters the charging pile of the certain type later, manual configuration by the user is not needed, and the efficiency of parameter configuration and the experience of the user are improved.
And S306, acquiring the TCP message uploaded by the charging pile.
Step S307, searching for preconfigured message parameter information of the charging pile, wherein the message parameter information includes parameter type information, parameter start frame information and parameter length information.
And step S308, analyzing the TCP message according to the message parameter information to obtain a message analysis result.
It should be noted that steps S306 to S308 are the same as steps S201 to S203 of the first embodiment, and for related description, please refer to the corresponding contents above, which is not described herein again.
Step S309, converting the data format of the message parsing result into a preset format.
Specifically, after the device access platform obtains the message analysis result, the message analysis result may be transmitted to the service layer, so that the service layer performs a corresponding service processing operation according to the result. The service layer generally has certain requirements on the data format, so that the data format can be converted before transmission.
Specifically, the message parsing result is organized in a key-value form into a data format that can be processed by the service. The preset format may be determined according to a service layer to be transmitted, and is not limited herein.
Step S310, transmitting the message analysis result in the preset format to a service layer.
It should be noted that, in some embodiments, steps S301 to S305, and steps S308 to S309 are optional.
It can be seen that, in the embodiment, TCP message analysis of the charging pile is performed in a parameter configuration mode, and when parameters are modified or a new charging pile device needs to be accessed, source codes do not need to be edited or a corresponding message analysis protocol does not need to be re-developed, so that the charging pile device is high in flexibility, low in workload and easy to maintain. In addition, the parameter configuration can be automatically carried out according to the configuration template, and the configuration template can be automatically generated according to the user configuration, so that the efficiency of parameter configuration and the user experience are improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
Referring to fig. 4, a schematic block diagram of a structure of a message parsing apparatus provided in an embodiment of the present application is shown, where the apparatus may include:
the message acquisition module 41 is configured to acquire a TCP message uploaded by the charging pile;
the searching module 42 is configured to search preconfigured message parameter information of the charging pile, where the message parameter information includes parameter type information, parameter start frame information, and parameter length information;
and the analysis module 43 is configured to analyze the TCP packet according to the packet parameter information to obtain a packet analysis result.
In a possible implementation manner, the apparatus may further include:
the configuration information acquisition module is used for acquiring TCP message configuration information of the charging pile input by a user;
and the association storage module is used for associating and storing the TCP message configuration information and the equipment information of the charging pile to obtain message parameter information.
In a possible implementation manner, the apparatus may further include:
and the template generating module is used for generating a message parameter configuration template according to the message parameter information and the equipment information of the charging pile.
In a possible implementation manner, the apparatus may further include:
the judging module is used for judging whether a pre-stored target configuration template exists or not according to the equipment information of the charging pile;
the automatic configuration module is used for automatically configuring message parameters of the charging pile according to the target configuration template when the target configuration template exists;
and the entering module is used for entering the step of acquiring the TCP message configuration information of the charging pile, which is input by the user, when the target configuration template does not exist.
In a possible implementation manner, the apparatus may further include:
the format conversion module is used for converting the data format of the message analysis result into a preset format;
and the transmission module is used for transmitting the message analysis result in the preset format to the service layer.
It should be noted that the message parsing apparatus of this embodiment corresponds to the above embodiments of the message parsing method one to one, and for related or similar descriptions, refer to the above corresponding contents, which are not described herein again.
It can be seen that, in the embodiment, TCP message analysis of the charging pile is performed in a parameter configuration mode, and when parameters are modified or a new charging pile device needs to be accessed, source codes do not need to be edited or a corresponding message analysis protocol does not need to be re-developed, so that the charging pile device is high in flexibility, low in workload and easy to maintain.
Example four
Fig. 5 is a schematic diagram of a server according to an embodiment of the present application. As shown in fig. 5, the server 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50 executes the computer program 52 to implement the steps in the above-mentioned message parsing method embodiments, such as steps S201 to S203 shown in fig. 2. Alternatively, the processor 50, when executing the computer program 52, implements the functions of each module or unit in each device embodiment described above, for example, the functions of the modules 41 to 43 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules or units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more modules or units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the server 5. For example, the computer program 52 may be divided into a message acquisition module, a lookup module, and a parsing module, and each module has the following specific functions:
the message acquisition module is used for acquiring a TCP message uploaded by the charging pile; the searching module is used for searching message parameter information of a pre-configured charging pile, wherein the message parameter information comprises parameter type information, parameter initial frame information and parameter length information; and the analysis module is used for analyzing the TCP message according to the message parameter information to obtain a message analysis result.
One or more of the servers 5 may constitute the above-mentioned device access platform. The server may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a server 5 and does not constitute a limitation of server 5 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the server may also include input output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the server 5, such as a hard disk or a memory of the server 5. The memory 51 may also be an external storage device of the server 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the server 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the server 5. The memory 51 is used for storing the computer program and other programs and data required by the server. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus, server and method may be implemented in other ways. For example, the above-described apparatus and server embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules or units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (8)

1. A message parsing method is characterized by comprising the following steps:
judging whether a pre-stored target configuration template exists or not according to the equipment information of the charging pile;
when the target configuration template exists, automatically performing message parameter configuration operation on the charging pile according to the target configuration template;
when the target configuration template does not exist, acquiring TCP message configuration information of the charging pile input by a user;
storing the TCP message configuration information and the equipment information of the charging pile in an associated manner to obtain the message parameter information;
acquiring a TCP message uploaded by the charging pile;
searching message parameter information of the charging pile configured in advance according to the equipment information of the charging pile, wherein the message parameter information comprises parameter type information, parameter initial frame information and parameter length information;
and analyzing the TCP message according to the message parameter information to obtain a message analysis result.
2. The message parsing method according to claim 1, wherein after the TCP message configuration information and the device information of the charging pile are stored in association to obtain the message parameter information, the method further comprises:
and generating a message parameter configuration template according to the message parameter information and the equipment information of the charging pile.
3. The message parsing method according to any one of claims 1 to 2, wherein after parsing the TCP message according to the message parameter information to obtain a message parsing result, the method further comprises:
converting the data format of the message analysis result into a preset format;
and transmitting the message analysis result in the preset format to a service layer.
4. A message parsing apparatus, comprising:
the judging module is used for judging whether a pre-stored target configuration template exists or not according to the equipment information of the charging pile;
the automatic configuration module is used for automatically configuring message parameters of the charging pile according to the target configuration template when the target configuration template exists;
the configuration information acquisition module is used for acquiring TCP message configuration information of the charging pile, which is input by a user, when the target configuration template does not exist;
the association storage module is used for associating and storing the TCP message configuration information and the equipment information of the charging pile to obtain the message parameter information;
the message acquisition module is used for acquiring the TCP message uploaded by the charging pile;
the searching module is used for searching preconfigured message parameter information of the charging pile according to the equipment information of the charging pile, wherein the message parameter information comprises parameter type information, parameter starting frame information and parameter length information;
and the analysis module is used for analyzing the TCP message according to the message parameter information to obtain a message analysis result.
5. The message parsing device according to claim 4, further comprising:
and the template generating module is used for generating a message parameter configuration template according to the message parameter information and the equipment information of the charging pile.
6. The message parsing device according to claim 4, further comprising:
the format conversion module is used for converting the data format of the message analysis result into a preset format;
and the transmission module is used for transmitting the message analysis result in the preset format to a service layer.
7. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 3 are implemented when the computer program is executed by the processor.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
CN201910249762.8A 2019-03-29 2019-03-29 Message analysis method and device, server and computer readable storage medium Active CN110012002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910249762.8A CN110012002B (en) 2019-03-29 2019-03-29 Message analysis method and device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910249762.8A CN110012002B (en) 2019-03-29 2019-03-29 Message analysis method and device, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110012002A CN110012002A (en) 2019-07-12
CN110012002B true CN110012002B (en) 2021-08-13

Family

ID=67168930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910249762.8A Active CN110012002B (en) 2019-03-29 2019-03-29 Message analysis method and device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110012002B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493332A (en) * 2019-08-14 2019-11-22 广东省安心加科技有限公司 A kind of charging pile message processing method and its system
CN110933095A (en) * 2019-12-04 2020-03-27 锐捷网络股份有限公司 Message parsing method and device
CN113676437B (en) * 2020-05-14 2023-08-18 ***通信集团云南有限公司 Parameter acquisition method, parameter setting method and device
CN112035040B (en) * 2020-08-31 2023-04-07 北京润科通用技术有限公司 Interface variable information processing method and device
CN112140936A (en) * 2020-09-29 2020-12-29 中国铁塔股份有限公司 Charging monitoring method, system and storage medium
CN112291202B (en) * 2020-10-09 2023-09-26 腾讯科技(深圳)有限公司 Message data visualization method, device and computer readable storage medium
CN112769866B (en) * 2021-02-02 2022-11-01 珠海驿联新能源汽车有限公司 Multi-protocol adaptation system and method for charging pile
CN114124857A (en) * 2021-11-23 2022-03-01 青岛特来电新能源科技有限公司 Charging station message management system and method and electronic equipment
CN114257663A (en) * 2021-11-30 2022-03-29 神彩科技股份有限公司 Data analysis method and device, computer equipment and storage medium
CN114172979A (en) * 2021-12-02 2022-03-11 上海电力设计院有限公司 Message parsing method, platform, gateway and storage medium
CN115065736A (en) * 2022-03-29 2022-09-16 兰州乐智教育科技有限责任公司 Message processing method and device, electronic equipment and storage medium
CN114679504B (en) * 2022-05-27 2022-09-06 成都数联云算科技有限公司 UDP message parsing method and device and computer equipment
CN117014352A (en) * 2023-01-16 2023-11-07 国网北京市电力公司 Encryption detection method, encryption detection device, computer readable storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511910A (en) * 2015-11-30 2016-04-20 北京新能源汽车股份有限公司 Interface configuration method and device
CN105721402A (en) * 2014-12-04 2016-06-29 北京航管科技有限公司 Method and apparatus for analyzing SITA message
CN107566377A (en) * 2017-09-11 2018-01-09 北京智芯微电子科技有限公司 The method and charging device of multi-protocols adaptation are carried out to charging device
CN108243168A (en) * 2016-12-27 2018-07-03 比亚迪股份有限公司 Packet parsing, group packet method and apparatus and message handling system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9620970B2 (en) * 2011-11-30 2017-04-11 The Regents Of The University Of California Network based management for multiplexed electric vehicle charging
KR101401731B1 (en) * 2012-07-24 2014-05-30 충북대학교 산학협력단 Network access device and method for processing data thereof
WO2014077978A1 (en) * 2012-11-14 2014-05-22 Apple Inc. High voltage charging for a portable device
TWI479772B (en) * 2013-02-21 2015-04-01 台達電子工業股份有限公司 Charging system for electric vehicle and charging method thereof
WO2015167377A1 (en) * 2014-04-30 2015-11-05 Telefonaktiebolaget L M Ericsson (Publ) Method and device of a policy control and charging (pcc) system in a communication network
CN107404493A (en) * 2017-08-21 2017-11-28 广州快充网络有限公司 New-energy automobile vehicle data packet parsing component and analytic method
CN108387796A (en) * 2018-01-29 2018-08-10 中国电力科学研究院有限公司 A kind of electric vehicle electrically-charging equipment cloud detection service system and implementation method
CN108494808A (en) * 2018-05-30 2018-09-04 国网冀北电力有限公司电力科学研究院 Charger communication protocol detection device
CN108738058A (en) * 2018-06-13 2018-11-02 上海电享信息科技有限公司 A kind of method and system of configuration charging equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721402A (en) * 2014-12-04 2016-06-29 北京航管科技有限公司 Method and apparatus for analyzing SITA message
CN105511910A (en) * 2015-11-30 2016-04-20 北京新能源汽车股份有限公司 Interface configuration method and device
CN108243168A (en) * 2016-12-27 2018-07-03 比亚迪股份有限公司 Packet parsing, group packet method and apparatus and message handling system
CN107566377A (en) * 2017-09-11 2018-01-09 北京智芯微电子科技有限公司 The method and charging device of multi-protocols adaptation are carried out to charging device

Also Published As

Publication number Publication date
CN110012002A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110012002B (en) Message analysis method and device, server and computer readable storage medium
CN103428671A (en) Application hosting method and system, mobile terminals and server
CN109733233B (en) Charging pile power supply method, device and system, charging pile and storage medium
CN111060832B (en) Electric vehicle battery aging identification method and device, terminal equipment and storage medium
CN112512038B (en) Method and device for generating session key, electronic equipment and readable storage medium
CN109714369B (en) Communication method of distributed charging pile communication system, charging pile and networking device
CN110266653B (en) Authentication method, system and terminal equipment
CN111002859A (en) Method and device for identifying private patch board of charging pile, terminal equipment and storage medium
CN111832273A (en) Method and device for determining destination message, storage medium and electronic device
CN111055725B (en) Electric vehicle battery aging identification method and device, terminal equipment and storage medium
CN115600558A (en) Configuration file importing method and device, terminal equipment and storage medium
CN111186333B (en) Electric vehicle charging identification method and device, terminal equipment and storage medium
CN114363341A (en) Robot scheduling method, device, equipment and storage medium based on gateway
CN114979974A (en) Wireless control method, device and equipment
CN111064675A (en) Access flow control method, device, network equipment and storage medium
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN114338847B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN112765185B (en) Data updating method, device, equipment and storage medium for vehicle-mounted equipment
CN117407454A (en) Data processing method, device, computer equipment and readable storage medium
CN112398837B (en) Data authorization method, right confirming platform, operator platform and system
CN112039729B (en) Device identification method, server, electronic device, and storage medium
CN113852919B (en) Method and device for generating early warning message, storage medium and electronic device
CN114928834B (en) Method for downloading user identification card profile of communication module, device, equipment and medium thereof
CN106375459B (en) Mass data analysis device and method in isolation network
CN115630044A (en) Data migration method and device between heterogeneous databases

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