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

Method for cross-platform communication of mobile terminal

A mobile terminal, cross-platform technology, applied in the field of communication, can solve problems such as troublesome JAVA programs, achieve the effect of improving security and efficiency, reducing the time consumed by the conversion of secure data formats and establishing communication, and reducing difficulty

Inactive Publication Date: 2018-11-20
AMICRO SEMICON CORP
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] As we all know, JAVA is famous for its cross-platform, which is why many programmers like JAVA, but JAVA also has its shortcomings. Its communication with hardware devices has always been realized by using JNI to call .dll / .so shared class library. If programmers use JNI technology to call .dll / .so files, they first need to write an additional .dll / .so shared library to call the functions published in the .dll / .so file, which calls the native functions in the dll / .so library The JAVA program of the function is very troublesome, so for programmers, they will not use JNI technology easily if they have to.

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 cross-platform communication of mobile terminal
  • Method for cross-platform communication of mobile terminal
  • Method for cross-platform communication of mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The technical solutions in the embodiments of the present invention will be described in detail below with reference to the drawings in the embodiments of the present invention. It should be understood that the specific embodiments described below are only used to explain the present invention, not to limit the present invention.

[0024] The implementation of the present invention provides a method for mobile terminal cross-platform communication, combining figure 1 and figure 2 , the access methods include:

[0025] Step A, the mobile terminal creates a sending process through the message management class of the C++ / C part of the designated platform, and sends the obtained source information to the message channel; before the step A, it also includes: respectively pre-creating the C++ / C part on the designated platform Create a Java local interface for message conversion with the message management class of the Java part on the localization platform.

[0026] Speci...

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 relates to a method for cross-platform communication of a mobile terminal. The access method comprises the following steps: A, creating a sending process to send source information by using a C++ / C message management class written by a specified platform by the mobile terminal; B, calling a pre-created Java local interface to convert from the specified platform to the localization platform; C, creating a receiving process by the message management class written in Java in the localization platform, reloading the message listener interface pre-created in the Java part as an encrypted data access interface, and performing the encryption operation; and D, sending the message management class written by Java in the localization platform to the corresponding independent processingobject according to the message type of the encrypted source information, correspondingly converting the processing result from the localization platform to the specified platform through the Java local interface, and returning a response signal to complete communication. Compared with the prior art, the invention reduces the time for establishing communication in a weak security environment, andreduces the difficulty of cross-platform development.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method for cross-platform communication of a mobile terminal. Background technique [0002] At present, most of the business modules are implemented in C / C++ language, and the logic involved is relatively complicated. It is not easy to develop and migrate directly to the Java platform, and it also involves a full amount of functional coverage testing. The requirements for development and testing capabilities are relatively high. As an integral part of the Java platform, JNI allows Java code to interact with code modules written in other languages. JNI was designed from the beginning to be a native language, especially for C / C++ module communication. Using JNI, Java can interact with compiled code modules in the local environment. First of all, Java can call local C / C++ module components through JNI. On the other hand, local C / C++ code modules can also call Java code. ...

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): H04L29/08G06F9/448
CPCG06F9/4482H04L67/34
Inventor 肖刚军
Owner AMICRO SEMICON 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