Packaging-unpacking program generation method and packaging-unpacking program generation device

A program generation and unpacking technology, applied in the direction of program control devices, etc., can solve the problems of not being able to adapt to changes in time, unable to realize unpacking programs, and developers unable to design and generate unpacking programs.

Active Publication Date: 2014-04-02
BEIJING RUNKE GENERAL TECH
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1) Different unpacking and unpacking programs need to be developed for different ICDs of the tested systems, resulting in the inability to implement common unpacking and unpacking programs for different tested systems
[0006] 2) When the ICD of the system under test is changed, the unpacking program corresponding to the system under test needs to be redesigned according to the changed ICD, which cannot adapt to the change in time
[0007] 3) When it is necessary to keep the ICD of the system under test confidential in order to ensure the security of the ICD of the system under test, the developer cannot design and generate the corresponding unpacking program according to the ICD of the system under test

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Packaging-unpacking program generation method and packaging-unpacking program generation device
  • Packaging-unpacking program generation method and packaging-unpacking program generation device
  • Packaging-unpacking program generation method and packaging-unpacking program generation device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 1 This is a flowchart of a method for generating an unpacking program provided in Embodiment 1 of the present application.

[0048] like figure 1 As shown, the method includes:

[0049] S101. Receive an ICD that includes at least one message and is input by a user.

[0050] In the embodiment of the present application, preferably, the received ICD input by the user includes: at least one message, the total length of the message corresponding to each message, the variables included in each message, and the Each variable corresponds to the variable length, variable type, variable unit, etc.

[0051] In the method for generating an unpacking program provided by the embodiment of the present application, preferably, an ICD interface is preset, and a user can use the ICD interface to directly import an ICD containing at least one message by importing the ICD, or, in the In addition to the pre-set ICD interface, an ICD definition interface is also pre-set, and the ...

Embodiment 2

[0070] figure 2 The second embodiment of the present application provides a flow chart of a method for defining a bit field structure for each message in the ICD.

[0071] like figure 2 As shown, the method includes:

[0072] S201. Assign a unique bit field structure name to each message in the ICD.

[0073] In the embodiment of the present application, in the process of defining a bit field structure for each message in the ICD, it is first necessary to assign a unique bit field structure name to each message contained in the ICD, preferably Yes, the name of each message included in the ICD input by the user is unique, and the name of the bit field structure allocated to each message is the same as the name of the corresponding message.

[0074] S202. Define structure members for each variable in each message.

[0075] In the embodiment of the present application, after assigning a unique bit field structure name to each message in the ICD, it is also necessary to defin...

Embodiment 3

[0083] image 3 This is a schematic structural diagram of an apparatus for generating an unpacking and unpacking program provided in Embodiment 3 of the present application.

[0084] like image 3 As shown, the device includes: an ICD receiving unit 1, a bit-field structure definition unit 2, an unpacking function generating unit 3, and an unpacking and unpacking program generating unit 4, wherein the ICD receiving unit 1, the bit-field structure definition unit 2 , the unpacking function generating unit 3 and the unpacking and unpacking program generating unit 4 are sequentially connected.

[0085] The ICD receiving unit 1 is mainly used for receiving an ICD inputted by a user and containing at least one message.

[0086] The bit field structure definition unit 2 is connected with the ICD receiving unit 1, and the bit field structure definition unit 2 is used to define a bit field structure for each message in the ICD respectively.

[0087] The unpacking function generatio...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a packaging-unpacking program generation method and a packaging-unpacking program generation device. The packaging-unpacking program generation method comprises the following steps of firstly receiving an ICD (interface control document) which is inputted by a user and contains at least one message, defining a bit field structural body for each message in the ICD, respectively generating a packaging-unpacking function corresponding to each bit field structural body by utilizing a preset packaging-unpacking function generation rule, then by utilizing each bit field structural body, compiling the generated packaging-unpacking function corresponding to each bit field structural body, generating a packaging-unpacking program, defining the bit field structural body of each received message in the ICD inputted by the user in the process, and finally automatically generating a packaging-unpacking program corresponding to the ICD according to the defined bit field structural body and the preset packaging-unpacking function generation rule, so that on the basis of guaranteeing the safety of the tested system ICD, the universality of the packaging-unpacking program is satisfied, and the instant applicability of the packaging-unpacking program can be improved.

Description

technical field [0001] The present application relates to the technical field of system testing, and in particular, to a method and device for generating an unpacking and unpacking program. Background technique [0002] In the field of system testing, the system under test is often composed of multiple devices that are cross-linked with each other, and we call these devices the participating devices. Communication is required between the devices under test in the system under test. In order for the communication information between the devices under test to be recognized by the other party, the interface type, communication logic, and communication method between the devices under test in the system under test are required. Communication parameters such as communication protocol and / or data specification should be unified, and the above communication parameters are unified mainly through the messages in the ICD (Interface Control Document, interface control file) in the syst...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 刘佳伦黄丽桃
Owner BEIJING RUNKE GENERAL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products