Unlock instant, AI-driven research and patent intelligence for your innovation.

Implementation method of communication mechanism between java module and c module in osgi environment

A technology of implementation method and communication mechanism, applied in the field of computer communication, can solve problems such as uncertainty and implementation dependence, and achieve the effect of simple coding, saving a lot of time, and reliable library support

Active Publication Date: 2018-04-06
宋易霄
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But JNI itself is just a series of common interfaces, and its implementation depends on the designer's own technical solutions, so it brings uncertainty
[0012] To sum up, the existing solutions have different operating environments and have their own advantages and disadvantages. Some run on different hosts, and some run on JVM

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
  • Implementation method of communication mechanism between java module and c module in osgi environment
  • Implementation method of communication mechanism between java module and c module in osgi environment
  • Implementation method of communication mechanism between java module and c module in osgi environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.

[0034] It should be noted that the diagrams provided in this embodiment are only schematically illustrating the basic idea of ​​the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the components in actual implementation. Dimensional drawing, the type, quantity and proportion of each component can be changed arbitrarily during actual implementation, and the...

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 present invention provides an implementation method of a communication mechanism between Java and C under an OSGi environment. The Java program runs under the OSGi framework, and the C program runs on the linux system. The implementation method at least includes: registering a transfer message Bundle under the OSGi environment, Enable the Java program to use the message service and respond to the message sent by the C program; the C program establishes a communication socket with the transfer message Bundle, or the Java program initiates a communication request to the transfer message Bundle, and the transfer message Bundle establishes a socket with the C program ; The C program communicates with the Java program by sending and receiving socket messages through the relay message Bundle; the Java program communicates with the C program through the message service of the relay message Bundle. The implementation method of the communication mechanism of Java and C under the OSGi environment of the present invention has the high efficiency and security of communication concurrently; Save a large amount of time of developing JNI, provide reliable storehouse support for JAVA and C communication at the same time, for C It has built a good bridge with the Java communication environment.

Description

technical field [0001] The invention relates to the technical field of computer communication, in particular to a method for realizing the communication mechanism of Java and C under the OSGi environment. Background technique [0002] The Java language is very powerful, but not omnipotent. In the Java language, pointers, a powerful language tool that interacts closely with the underlying layer, are discarded. From the perspective of efficiency alone, compared with Java and C, the execution efficiency of Java is far lower than that of C. For some algorithms with relatively high requirements, Java is not the best choice. Java is an object-oriented language. In all kinds of complicated APP applications, Java is highly praised and has a good reputation. This brings about the problem of Java and C coexistence and cooperation. The creators of Java have considered this at the beginning of development, and provided a programming interface with C / C++ in Java, which is the Java na...

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): H04L29/06
Inventor 倪同贵邓兵施晨
Owner 宋易霄