CN110708307A - Transcoder generation method and apparatus, electronic device, and storage medium - Google Patents

Transcoder generation method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
CN110708307A
CN110708307A CN201910932213.0A CN201910932213A CN110708307A CN 110708307 A CN110708307 A CN 110708307A CN 201910932213 A CN201910932213 A CN 201910932213A CN 110708307 A CN110708307 A CN 110708307A
Authority
CN
China
Prior art keywords
protocol
transcoder
generating
standard file
signal
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.)
Granted
Application number
CN201910932213.0A
Other languages
Chinese (zh)
Other versions
CN110708307B (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.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System 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 Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN201910932213.0A priority Critical patent/CN110708307B/en
Publication of CN110708307A publication Critical patent/CN110708307A/en
Application granted granted Critical
Publication of CN110708307B publication Critical patent/CN110708307B/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/03Protocol definition or specification 
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The application provides a transcoder generation method and device, an electronic device and a storage medium, and relates to the technical field of transcoder generation. In the application, firstly, an operation instruction is generated in response to an operation of a user on a preset protocol template based on a protocol specification file. And secondly, generating a protocol standard file based on the operation instruction and the protocol template. And then, processing the protocol standard file through a protocol analyzer to generate a transcoder matched with the protocol standard file, wherein the transcoder is used for transcoding the signal to be processed. By the method, the problems of large workload and low efficiency of developers in the existing transcoder generation technology can be solved.

Description

Transcoder generation method and apparatus, electronic device, and storage medium
Technical Field
The present application relates to the field of transcoder generation technologies, and in particular, to a transcoder generation method and apparatus, an electronic device, and a storage medium.
Background
In order to realize transmission and use of signals, transcoding processing (such as encoding processing or decoding processing) is generally performed on the signals. Wherein, for different types of signals, the transcoding process is performed based on different transcoders. Therefore, the development of transcoders for different signals is an indispensable link.
The inventor researches and discovers that in the existing transcoder development technology, developers generally develop respectively based on different types of signals directly, and therefore, the workload of the developers is large, and the efficiency of transcoder development is low.
Disclosure of Invention
In view of the above, an object of the present application is to provide a transcoder generation method and apparatus, an electronic device, and a storage medium, so as to solve the problems of the existing transcoder generation technology, such as large workload of developers and low efficiency.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
a transcoder generation method comprising:
responding to the operation of a user on a preset protocol template based on the protocol specification file, and generating an operation instruction;
generating a protocol standard file based on the operation instruction and the protocol template;
and processing the protocol standard file through a protocol analyzer to generate a transcoder matched with the protocol standard file, wherein the transcoder is used for transcoding the signal to be processed.
In a preferred option of the embodiment of the present application, in the transcoder generation method, the step of generating a protocol standard file based on the operation instruction and the protocol template includes:
and generating corresponding information for the part which is the null value in the protocol template based on the operation instruction to obtain a protocol standard file.
In a preferred option of the embodiment of the present application, in the transcoder generating method, before the step of generating an operation instruction in response to an operation of a user on a preset protocol template based on a protocol specification file, the method further includes:
and generating the protocol template according to the signal to be processed.
In a preferred option of the embodiment of the present application, in the transcoder generating method, the step of generating the protocol template according to the signal to be processed includes:
acquiring the field name and the data type of each field in the signal to be processed;
and aiming at each field, establishing an association relationship between the field name and the data type of the field and the information to be generated with the field as a null value so as to form the protocol template.
In a preferred option of the embodiment of the present application, in the transcoder generation method, the step of generating the protocol template according to the signal to be processed further includes:
and for each field, establishing an association relationship between the description information of the field and the field name, the data type and the information to be generated of the field, wherein the description information is used for identifying the information to be generated with the association relationship.
In a preferred option of the embodiment of the present application, in the method for generating a transcoder, the step of processing the protocol standard file by a protocol parser to generate a transcoder matched with the protocol specification file includes:
determining an analytic logic based on a preset data model;
and processing the protocol standard file through a protocol analyzer according to the analysis logic to generate a transcoder matched with the protocol specification file.
In a preferred option of this embodiment, in the transcoder generation method, the data model includes a pure signal data model and a packet data model, where a data packet in the pure signal data model is composed of N signals arranged according to a fixed sequence, and a data packet in the packet data model is composed of M data groups, and each data group is composed of N signals.
An embodiment of the present application further provides a transcoder generating apparatus, including:
the operation instruction generating module is used for responding to the operation of a user on a preset protocol template based on the protocol specification file and generating an operation instruction;
the standard file generation module is used for generating a protocol standard file based on the operation instruction and the protocol template;
and the transcoder generation module is used for processing the protocol standard file through a protocol analyzer and generating a transcoder matched with the protocol standard file, wherein the transcoder is used for transcoding the signal to be processed.
On the basis of the foregoing, embodiments of the present application further provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the computer program implements the transcoder generation method described above when running on the processor.
On the basis of the foregoing, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the program, when executed, implements the transcoder generation method described above.
According to the transcoder generation method and device, the electronic device and the storage medium, a user (i.e., a developer) can operate a preset protocol template based on a protocol specification file after acquiring the protocol specification file (with information of a signal to be processed) so as to generate an operation instruction on corresponding equipment, so that the equipment can automatically generate a protocol standard file based on the operation instruction and the protocol template, and then generate a transcoder based on the protocol standard file. Therefore, the problems of large workload and low efficiency caused by directly compiling the protocol standard file based on the acquired protocol standard file by the user can be avoided, and the method has higher practical value.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 2 is an application interaction diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating a transcoder generation method according to an embodiment of the present application.
Fig. 4 is a block diagram illustrating functional modules included in a transcoder generation apparatus according to an embodiment of the present application.
Icon: 10-an electronic device; 12-a memory; 14-a processor; 16-a communication unit; 100-transcoder generating means; 110-an operation instruction generation module; 120-standard file generation module; 130-transcoder generation module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, an electronic device 10 according to an embodiment of the present disclosure may include a memory 12 and a processor 14, where the memory 12 may have a transcoder generation apparatus 100 disposed therein.
In detail, the memory 12 and the processor 14 are electrically connected directly or indirectly to enable data transmission or interaction. For example, they may be electrically connected to each other via one or more communication buses or signal lines. The transcoder generation means 100 comprise at least one software function which may be stored in the memory 12 in the form of software or firmware (firmware). The processor 14 is configured to execute an executable computer program stored in the memory 12, for example, a software functional module and a computer program included in the transcoder generation apparatus 100, so as to implement the transcoder generation method provided by the embodiment of the present application, and generate a transcoder capable of transcoding a signal to be processed.
The Memory 12 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The Processor 14 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a System on Chip (SoC), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
It will be appreciated that the configuration shown in FIG. 1 is merely illustrative and that the electronic device 10 may include more or fewer components than shown in FIG. 1 or may have a different configuration than shown in FIG. 1. For example, in conjunction with fig. 2, the electronic device 10 may further include a communication unit 16 for exchanging information with other devices (e.g., a device for storing the transcoder generated by the transcoder generation method described above).
For example, in an alternative example, the electronic device 10 may be communicatively connected with a storage device (such as some server with data storage function) through the communication unit 16 described above.
Wherein the electronic device 10 may send the transcoder to the storage device for storage after generating the transcoder based on the transcoder production method described above.
In practical application, for example, in the field of internet of things, after the sensor collects a signal, the signal is sent to the internet of things equipment in communication connection. After the internet of things device is in communication connection with the storage device, a transcoder (such as an encoder included in the transcoder) stored by the storage device can be loaded to encode the received signal to obtain a data message, and then the data message can be sent to an application device in communication connection (in the field of internet of things, the application device can be a platform end in communication connection with the internet of things device). After the application device is in communication connection with the storage device, a transcoder (e.g., a decoder included in the transcoder) stored in the storage device may also be loaded to decode the data packet to obtain a corresponding signal, so as to perform corresponding processing based on the signal, for example, perform visualization processing to implement functions such as monitoring.
With reference to fig. 3, an embodiment of the present application further provides a transcoder generation method applicable to the electronic device 10. Wherein the method steps defined by the transcoder generation method related flow may be implemented by the electronic device 10. The specific flow shown in fig. 3 will be described in detail below.
Step S110, responding to the operation of the user on the preset protocol template based on the protocol specification file, and generating an operation instruction.
In this embodiment, the protocol specification file is generated based on the signal to be processed. That is, the protocol specification file has information of the signal to be processed therein.
In this way, after acquiring the protocol specification file generated by the client for the signal to be processed, the user (i.e., the developer) may perform an operation (e.g., input of information) on the protocol template based on the protocol specification file, so that the electronic device 10 may generate a corresponding operation instruction based on the operation.
And step S120, generating a protocol standard file based on the operation instruction and the protocol template.
In this embodiment, after the operation instruction is generated in step S110, the protocol standard file may be generated based on the operation instruction and the protocol template. For example, modification, supplementation, etc. of the information in the protocol template may be performed based on the operation instruction, so that the protocol template is completed, thereby obtaining the protocol standard file.
Step S130, processing the protocol standard file by a protocol parser, and generating a transcoder matched with the protocol standard file.
In this embodiment, after the protocol standard file is generated based on step S120, the protocol standard file may be parsed based on a preset protocol parser, so as to generate a corresponding transcoder.
The transcoder is generated based on analyzing the protocol standard file, the protocol standard file is generated based on the protocol specification file, and the protocol specification file has the information of the signal to be processed, so that the transcoder can effectively transcode the signal to be processed.
Based on the above method, after acquiring the protocol specification file (having the information of the signal to be processed), the user (i.e., the developer) may operate the preset protocol template based on the protocol specification file to generate a corresponding operation instruction on the electronic device 10, so that the electronic device 10 may automatically generate the protocol standard file based on the operation instruction and the protocol template, and then generate the transcoder based on the protocol standard file. Therefore, the problems of large workload and low efficiency caused by directly compiling the protocol standard file based on the acquired protocol standard file by the user can be avoided, and the method has higher practical value.
Optionally, the specific manner of executing step S110 to generate the operation instruction is not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, when the protocol standard file needs to be generated based on the protocol specification file, the electronic device 10 may display a preset protocol template based on a user operation, so that the user may perform corresponding information input and the like based on the content that needs to be modified or supplemented in the protocol template.
Optionally, the specific manner of executing step S120 to generate the protocol standard file is not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, step S120 may include the following sub-steps:
and generating corresponding information for the part which is the null value in the protocol template based on the operation instruction to obtain a protocol standard file.
That is, some parts with null values are stored in the protocol template, so that a user (i.e., a developer) can fill in the parts with null values in the protocol template based on the information about the signal to be processed in the protocol specification file, thereby obtaining the protocol standard file.
Optionally, the specific manner of generating the transcoder by performing step S130 is not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, step S130 may include the following sub-steps:
firstly, the analytic logic can be determined based on a preset data model; secondly, the protocol standard file can be processed through a protocol analyzer according to the analysis logic, and a transcoder matched with the protocol standard file is generated.
That is, after the protocol standard file is generated based on step S120, a preset data model may be obtained, and then a corresponding parsing logic may be determined based on the data model. After obtaining the parsing logic, the protocol parser may parse the protocol standard file based on the parsing logic, so as to generate a transcoder matched with the protocol standard file (i.e., a protocol specification file), so that the transcoder may transcode the signal to be processed corresponding to the protocol specification file.
It should be noted that, in the above steps, the specific manner of processing the protocol standard file by the protocol parser according to the parsing logic to generate the transcoder is not limited, for example, some existing protocol parsers may be used for processing, and are not limited specifically herein.
In this embodiment, the parsing logic is determined based on a preset data model, so as to avoid the problems of large workload and low development efficiency in the prior art due to the fact that a user needs to write a corresponding parsing logic code.
The number of the data models is also not limited, and can be selected according to the actual application requirements, for example, one or more data models may be used.
It is to be understood that, when there are a plurality of data models, before determining the parsing logic based on the data models, one data model needs to be selected from the plurality of data models to determine the parsing logic based on the selected data model.
The mode of selecting one data model from the plurality of data models is not limited, and the data model can be selected according to the actual application requirements.
For example, in an alternative example, a plurality of data models may be identified based on some information in the protocol standard file, and one data model may be selected based on the identification result.
For another example, in another alternative example, one data model may be selected from a plurality of data models based on a user operation. That is, the user may select one data model based on different types of signals to be processed.
The specific type of the data model is also not limited, and may be selected according to the actual application requirements, and may include, for example, but not limited to, a pure signal data model and a packet data model.
In detail, one data packet in the pure signal data model may be composed of N signals arranged in a fixed order. One data packet in the packet data model may be composed of M data groups, and each data group may be composed of N signals.
In the pure signal data model, each signal has a fixed Byte Offset (Byte Offset) and bit Offset (bit Offset) in the data message, which are used to represent the position of the signal. For example, in one specific application example, the pure signal data model may be as follows:
signal 1
Signal 2
Signal 3
...
Signal N
In the packet data model, each packet may fixedly include two signals, a "group ID" signal and a "length" signal. Wherein the length of the "group ID" signal is fixed for uniquely identifying a packet. The length of the "length" signal is also fixed and defines the length of the packet in bytes.
Each packet may also include N other signals, each having a fixed Byte Offset (Byte Offset) and bit Offset (bit Offset) in the packet that is used to represent the location of the signal. For example, in one specific example of an application, the packet data model may be as shown in the following table:
Group1
Group2
Group3
...
GroupM
wherein, the grouping for Group 1 can be shown as the following table:
group ID
length
signal 1
Signal 2
Signal 3
...
Signal N
It should be noted that, based on the above analysis, it is known that there may be a plurality of preset data models in some cases, and a data model needs to be selected from the plurality of data models for determining the parsing logic for parsing the protocol standard file, so that, after the step S120 is performed to generate the protocol standard file and select one data model, the protocol standard file and the selected data model may be further associated to avoid the problem that the transcoder cannot be effectively generated due to parsing the protocol standard file based on an incorrect data model.
In detail, in an alternative example, the protocol standard file and the selected data model may be stored in a protocol dictionary, and when step S130 is executed, only the protocol dictionary needs to be called, and then the parser performs parsing processing.
In consideration of the fact that in practical applications, more transcoders may need to be generated based on the transcoder generation method to process different signals to be processed. Therefore, the protocol dictionary may further include a protocol identifier generated in advance for the protocol standard file.
In addition, in order to facilitate that, after the transcoder is generated based on the transcoder generation method, the corresponding internet of things device can load the transcoder, the protocol dictionary may further have a device identifier of the internet of things device, so as to perform a binding process.
Further, considering that when step S110 is executed, an operation instruction needs to be generated based on the protocol template so as to generate the protocol standard file, before step S110 is executed, the transcoder generation method may further include the following steps: and generating the protocol template according to the signal to be processed.
That is to say, the protocol template may be generated for a to-be-processed signal to be processed by the generated transcoder, so that a protocol standard file generated based on the protocol template has information of the to-be-processed signal, thereby ensuring that the transcoder generated based on the protocol standard file can transcode the to-be-processed signal.
It should be noted that, because the protocol template needs to be suitable for multiple signals to be processed or multiple protocol specification files, some basic information of the signals to be processed (which various signals to be processed have) and some information to be generated (which individual signals to be processed have) that is null may be included in the protocol template. Thus, in an alternative example, the step of generating the protocol template may comprise the sub-steps of:
firstly, the field name and the data type of each field in the signal to be processed can be obtained; secondly, for each field, an association relationship is established between the field name and the data type of the field and the information to be generated, of which the field is a null value, so as to form the protocol template.
Wherein the format of the protocol template is not limited. For example, in an alternative example, in order to reduce the requirement of the user for knowledge level of generating operation instructions, so that the transcoder generation method is more applicable, the protocol template may be stored and displayed based on an Excel file format.
In detail, in a specific application example, the protocol template may be as shown in the following table:
name of field Data type Information to be generated
SignalName Character string
ByteOffset Integer number of
BitOffset Integer number of
ByteOrder Character string
TypeName Character string
GroupCode Character string
Further, in order to make the transcoder generating method more widely used, the protocol template may further include description information for identifying the description information, and therefore, the step of generating the protocol template may further include the following sub-steps:
and aiming at each field, establishing association relationship between the description information of the field and the field name, the data type and the information to be generated of the field.
Thus, on the basis of the above table, in an alternative example, the protocol template may be as shown in the following table:
in this way, after acquiring the protocol template shown in the above table, the user (i.e., developer) may fill in the information to be generated based on the description information having the association relationship in each field.
With reference to fig. 4, an embodiment of the present application further provides a transcoder generation apparatus 100 that can be applied to the electronic device 10. The transcoder generating apparatus 100 may include an operation instruction generating module 110, a standard file generating module 120, and a transcoder generating module 130.
The operation instruction generating module 110 is configured to respond to an operation of a user on a preset protocol template based on a protocol specification file, and generate an operation instruction. In this embodiment, the operation instruction generating module 110 may be configured to execute step S110 shown in fig. 3, and reference may be made to the foregoing description of step S110 for relevant contents of the operation instruction generating module 110.
The standard file generating module 120 is configured to generate a protocol standard file based on the operation instruction and the protocol template. In this embodiment, the standard file generating module 120 may be configured to execute step S120 shown in fig. 3, and reference may be made to the foregoing description of step S120 for relevant contents of the standard file generating module 120.
The transcoder generating module 130 is configured to process the protocol standard file through a protocol parser, and generate a transcoder matched with the protocol standard file, where the transcoder is configured to transcode a signal to be processed. In this embodiment, the transcoder generating module 130 may be configured to execute step S130 shown in fig. 3, and reference may be made to the foregoing description of step S130 for relevant contents of the transcoder generating module 130.
In an embodiment of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program executes the steps of the transcoder generation method when running.
Here, the steps executed when the computer program runs are not described in detail, and reference may be made to the explanation of the transcoder generation method above.
Also, the computer-readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
To sum up, according to the transcoder generation method and apparatus, the electronic device, and the storage medium provided by the present application, a user (i.e., a developer) may operate a preset protocol template based on a protocol specification file (with information of a signal to be processed) to generate an operation instruction on a corresponding device after acquiring the protocol specification file, so that the device may automatically generate a protocol standard file based on the operation instruction and the protocol template, and then generate a transcoder based on the protocol standard file. Therefore, the problems of large workload and low efficiency caused by directly compiling the protocol standard file based on the acquired protocol standard file by the user can be avoided, and the method has higher practical value.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A transcoder generation method, comprising:
responding to the operation of a user on a preset protocol template based on the protocol specification file, and generating an operation instruction;
generating a protocol standard file based on the operation instruction and the protocol template;
and processing the protocol standard file through a protocol analyzer to generate a transcoder matched with the protocol standard file, wherein the transcoder is used for transcoding the signal to be processed.
2. The transcoder generation method of claim 1, wherein the step of generating a protocol standard file based on the operation instruction and the protocol template comprises:
and generating corresponding information for the part which is the null value in the protocol template based on the operation instruction to obtain a protocol standard file.
3. The transcoder generation method of claim 2, wherein prior to the step of generating the operation instruction in response to the user operating the preset protocol template based on the protocol specification file, the method further comprises:
and generating the protocol template according to the signal to be processed.
4. The transcoder generation method of claim 3, wherein the step of generating the protocol template from the signal to be processed comprises:
acquiring the field name and the data type of each field in the signal to be processed;
and aiming at each field, establishing an association relationship between the field name and the data type of the field and the information to be generated with the field as a null value so as to form the protocol template.
5. The transcoder generation method of claim 4, wherein the step of generating the protocol template from the signal to be processed further comprises:
and for each field, establishing an association relationship between the description information of the field and the field name, the data type and the information to be generated of the field, wherein the description information is used for identifying the information to be generated with the association relationship.
6. The method as claimed in any one of claims 1 to 5, wherein the step of processing the protocol standard file by a protocol parser to generate a transcoder matching the protocol specification file comprises:
determining an analytic logic based on a preset data model;
and processing the protocol standard file through a protocol analyzer according to the analysis logic to generate a transcoder matched with the protocol specification file.
7. The transcoder generation method of claim 6, wherein the data model comprises a pure signal data model in which a data packet is composed of N signals arranged in a fixed order, and a packet data model in which a data packet is composed of M data groups, each of which is composed of N signals.
8. A transcoder generation apparatus, comprising:
the operation instruction generating module is used for responding to the operation of a user on a preset protocol template based on the protocol specification file and generating an operation instruction;
the standard file generation module is used for generating a protocol standard file based on the operation instruction and the protocol template;
and the transcoder generation module is used for processing the protocol standard file through a protocol analyzer and generating a transcoder matched with the protocol standard file, wherein the transcoder is used for transcoding the signal to be processed.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, the computer program, when running on the processor, implementing the transcoder generation method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed, implements the transcoder generation method of any of claims 1 to 7.
CN201910932213.0A 2019-09-29 2019-09-29 Transcoder generation method and apparatus, electronic device, and storage medium Active CN110708307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910932213.0A CN110708307B (en) 2019-09-29 2019-09-29 Transcoder generation method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910932213.0A CN110708307B (en) 2019-09-29 2019-09-29 Transcoder generation method and apparatus, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN110708307A true CN110708307A (en) 2020-01-17
CN110708307B CN110708307B (en) 2021-12-07

Family

ID=69197222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910932213.0A Active CN110708307B (en) 2019-09-29 2019-09-29 Transcoder generation method and apparatus, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN110708307B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464565A (en) * 2020-05-13 2020-07-28 中国科学院自动化研究所 Intelligent decoding method and decoder following general information exchange protocol specification
CN111510159A (en) * 2020-05-13 2020-08-07 中国科学院自动化研究所 Intelligent coding method and coder following general information exchange protocol specification
CN112068817A (en) * 2020-08-19 2020-12-11 天翼物联科技有限公司 Code generation method, system, device and medium for terminal side of Internet of things
CN115373655A (en) * 2022-10-25 2022-11-22 中国人民解放军国防科技大学 Information protocol code automatic generation method based on standardized template

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526054A (en) * 1995-03-27 1996-06-11 International Business Machines Corporation Apparatus for header generation
US6356950B1 (en) * 1999-01-11 2002-03-12 Novilit, Inc. Method for encoding and decoding data according to a protocol specification
CN1842081A (en) * 2005-03-30 2006-10-04 华为技术有限公司 ABNF character string mode matching and analyzing method and device
CN102123058A (en) * 2011-01-19 2011-07-13 北京神州绿盟信息安全科技股份有限公司 Test equipment and method for testing network protocol decoder
CN108040040A (en) * 2017-11-30 2018-05-15 北京锐安科技有限公司 A kind of automation analysis method and device of application protocol message
CN109408247A (en) * 2018-09-17 2019-03-01 天津龙拳风暴科技有限公司 Interaction data processing method and device
CN109561104A (en) * 2018-12-28 2019-04-02 深圳市创梦天地科技有限公司 A kind of communication protocol conversion method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526054A (en) * 1995-03-27 1996-06-11 International Business Machines Corporation Apparatus for header generation
US6356950B1 (en) * 1999-01-11 2002-03-12 Novilit, Inc. Method for encoding and decoding data according to a protocol specification
CN1842081A (en) * 2005-03-30 2006-10-04 华为技术有限公司 ABNF character string mode matching and analyzing method and device
CN102123058A (en) * 2011-01-19 2011-07-13 北京神州绿盟信息安全科技股份有限公司 Test equipment and method for testing network protocol decoder
CN108040040A (en) * 2017-11-30 2018-05-15 北京锐安科技有限公司 A kind of automation analysis method and device of application protocol message
CN109408247A (en) * 2018-09-17 2019-03-01 天津龙拳风暴科技有限公司 Interaction data processing method and device
CN109561104A (en) * 2018-12-28 2019-04-02 深圳市创梦天地科技有限公司 A kind of communication protocol conversion method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464565A (en) * 2020-05-13 2020-07-28 中国科学院自动化研究所 Intelligent decoding method and decoder following general information exchange protocol specification
CN111510159A (en) * 2020-05-13 2020-08-07 中国科学院自动化研究所 Intelligent coding method and coder following general information exchange protocol specification
CN111464565B (en) * 2020-05-13 2021-09-28 中国科学院自动化研究所 Intelligent decoding method and decoder following general information exchange protocol specification
CN111510159B (en) * 2020-05-13 2022-03-08 中国科学院自动化研究所 Intelligent coding method and coder following general information exchange protocol specification
CN112068817A (en) * 2020-08-19 2020-12-11 天翼物联科技有限公司 Code generation method, system, device and medium for terminal side of Internet of things
CN112068817B (en) * 2020-08-19 2024-03-12 天翼物联科技有限公司 Code generation method, system, device and medium for terminal side of Internet of things
CN115373655A (en) * 2022-10-25 2022-11-22 中国人民解放军国防科技大学 Information protocol code automatic generation method based on standardized template
CN115373655B (en) * 2022-10-25 2023-02-07 中国人民解放军国防科技大学 Information protocol code automatic generation method based on standardized template

Also Published As

Publication number Publication date
CN110708307B (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN110708307B (en) Transcoder generation method and apparatus, electronic device, and storage medium
CN109324996B (en) Log file processing method, device, computer equipment and storage medium
CN110445860B (en) Message sending method, device, terminal equipment and storage medium
CN111241182A (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN114500690B (en) Interface data processing method and device, electronic equipment and storage medium
US9467166B2 (en) Enhanced compression, encoding, and naming for resource strings
CN111131403A (en) Message coding and decoding method and device for Internet of things equipment
CN112333186A (en) Data communication method, device, equipment and storage medium
US20160203152A1 (en) Enhanced compression, encoding, and naming for resource strings
US10467001B2 (en) Enhanced compression, encoding, and naming for resource strings
CN114020272A (en) Serialized encoding and decoding methods and devices and electronic equipment
CN108509774B (en) Data processing method and device, electronic equipment and storage medium
CN112822265A (en) Data encoding method, device, equipment end and storage medium
CN111078529B (en) Client writing module testing method and device and electronic equipment
CN113296785A (en) Document generation method, system, device and readable storage medium
CN109309670B (en) Data stream decoding method and system, electronic device and computer readable storage medium
CN112788078B (en) Data transmission method, receiving device, sending device and computer equipment
CN108462553B (en) Data transmission method and device and electronic equipment
CN112787978B (en) Data acquisition method and device, computer equipment and computer-readable storage medium
CN109670152B (en) HL7V3 analysis method, storage medium, electronic equipment and system
CN109992293B (en) Method and device for assembling Android system component version information
CN106933856B (en) Webpage updating request generation method and device
CN111178008A (en) Digital character-oriented data encoding method, digital character-oriented data analyzing method and digital character-oriented data encoding system
CN106933852B (en) Webpage updating request generation method and device and response method and device thereof
CN105204937A (en) Kernel function call method, device and operation system

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