Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for calling function containing pointer parameter between different operation platforms

A technology of function calling and operating platform, applied in the direction of program control device, multi-program device, etc., can solve the problems of single cross-platform function and unfavorable technology development, and achieve the effect of strong operability and simple and reasonable method

Inactive Publication Date: 2008-01-09
VIMICRO CORP
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the cross-platform function call in the prior art is only limited to the call of the function that does not contain pointers in the parameter, and the function that can be realized across the platform is single, which is not conducive to the development of technology

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
  • Method for calling function containing pointer parameter between different operation platforms
  • Method for calling function containing pointer parameter between different operation platforms
  • Method for calling function containing pointer parameter between different operation platforms

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0137] Work goal: the sending platform starts the camera on the receiving platform to take pictures.

[0138] Working process: sending platform sending interface function: sendcommand 1. Where 1 is msg. The receiving platform receives and executes the interface function. Find the corresponding function OPENCAMERA(). This function call takes no parameters. Execute directly. After the execution is completed, the interface function execution success information is returned to the sending platform.

example 2

[0140] Work goal: the sending platform calls the function CAMERACAPTURE(Width, Height) on the receiving platform, commands the camera of the receiving platform to capture an image with a size of 300 bytes, and requests to obtain the image data.

[0141] Working process: the sending platform first determines the message number msg=2. Then create a pointer * The memory space pointed to by param is used to store the width value Width and height value Height required by the function, and store the address pointer of image data storage * ptrparam. The data in the memory space is shown in Figure 4. Each of the parameters occupies 4 bytes respectively, * The offset of ptrparam is 8, * The storage space A pointed to by ptrparam occupies 300 bytes.

[0142] Therefore, the sending platform first sends the interface function:

[0143] sendcommand(2, INOUT, 12, 0, IN, 300, 8);

[0144] Then send all 12 bytes of data in that memory space.

[0145]The receiving platform first receiv...

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 method of calling function containing pointer parameter, which points to one memory space in the sending platform, between different operation platforms includes the following steps: 1. for the sending platform to send function calling command and to send at least pointer parameters of the function successively; 2. for the receiving platform to receive the function calling command and open corresponding memory space and sub-memory space; 3. for the receiving platform to receive the said pointer parameters and amend the pointer parameter values for pointing at the sub-memory space; and 4. for the receiving platform to execute the called function. Compared with available technology, the present invention has features of simple and reasonable method and high operation performance. Especially, the present invention makes it possible to realize multifunctional function calling between different platforms without limitation of parameter characteristics.

Description

technical field [0001] The invention relates to a communication method for cross-platform function calling, in particular to a method for calling functions with pointer parameters between different operating platforms. technical background [0002] It is known that several tasks can be processed on one running platform, and the process of processing the tasks is completed by executing functions, and the calling of the functions is realized through the control system of the running platform. If you want to implement function calls between different operating platforms, the sending platform sends the instruction of the function call to the receiving platform, wherein the instruction of the function call includes the function name, the parameters required for the function call, etc. After receiving these instructions, search for the function stored in the platform according to the function name, and use the parameters directly for the execution of the function. However, in the...

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 Patents(China)
IPC IPC(8): G06F9/46G06F9/44
Inventor 占文静游明琦
Owner VIMICRO CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products