CN108712415A - A kind of data transmission method based on android system - Google Patents
A kind of data transmission method based on android system Download PDFInfo
- Publication number
- CN108712415A CN108712415A CN201810472734.8A CN201810472734A CN108712415A CN 108712415 A CN108712415 A CN 108712415A CN 201810472734 A CN201810472734 A CN 201810472734A CN 108712415 A CN108712415 A CN 108712415A
- Authority
- CN
- China
- Prior art keywords
- data
- android
- android terminal
- service routine
- returned
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of data transmission methods based on android system, including:A, APP programs are installed in the first android terminal, service routine is installed in the second android terminal;B, packed data are sent to service routine by the APP programs in the first android terminal;C, service routine after receiving the data, to data judged, processed and handled;D, after to data judged, processed and handled, the data that will be forwarded to sending card are encrypted again and packing processing, are then forwarded to sending card;E, sending card sends returned data to service routine and is verified to returned data after service routine receives returned data, if verification passes through, is encrypted to returned data and packing is handled, packed data are finally transmitted to APP programs again.The present invention can effectively reduce the risk that data are leaked in transmission process.
Description
Technical field
The present invention relates to technical field of data transmission more particularly to a kind of transmission side datas based on android system
Method.
Background technology
Due in the data transmission procedure of sending card, needing to carry out stringent encryption and secrecy.Only make in windows platform
Used time, moreover it is possible to accomplish the confidentiality of transmission data.But to after Android system, due to the specific demand of engineering project, some numbers
After transmission according to needs, midway carries out handling again primary, and data increase much in the possibility of midway leakage.According to routine
Data Transport Protocol and system open source protocol needed in accordance with kernel if data processing service program is placed in kernel
" GPL " agreement, necessity need open source code, will result in Data Transport Protocol and cipher mode leakage in this case.
Therefore, the existing technology needs to be improved and developed.
Invention content
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of data transmissions based on android system
Method, it is intended to solve data transmission method in the prior art and need open source code and cause Data Transport Protocol and encryption side
The problem of formula leaks.
Technical scheme is as follows:
A kind of data transmission method based on android system comprising:
A, APP programs are installed in the first android terminal, service routine is installed in the second android terminal;
B, packed data are sent to the clothes in the second android terminal by the APP programs in the first android terminal
Business program;
C, the service routine in the second android terminal after receiving the data, to data judged, add
Work and processing;
D, after to data judged, processed and handled, the data that will be forwarded to sending card are encrypted again
It is handled with packing, is then forwarded to sending card;
E, service routine of the sending card in the second android terminal sends returned data, the service in the second android terminal
After program receives returned data, returned data is verified, if verification passes through, returned data is encrypted and is beaten
Packet processing, the APP programs being finally transmitted to packed data again in the first android terminal.
Preferably, further include following steps between the step A and step B:
F, according to command protocols, the data in the first android terminal are encrypted and are packaged.
Preferably, the step C specifically comprises the following steps:
Service routine on C1, the second android terminal after receiving the data, carries out data the judgement of data packet, judges
Whether data packet has loss or other exceptions;
C2, a part of data for extracting data packet head, are decrypted and parse;
C3, judge the intention instructed in this data packet;
C4, data packet is further divided according to command protocols content.
Preferably, further include following steps between the step C3 and step C4:
C5, judge whether the content of data packet meets command protocols.
Compared with prior art, data transmission method based on android system provided by the present invention, including:A, first
Android terminal is equipped with APP programs, and service routine is equipped in the second android terminal;B, in the first android terminal
Packed data are sent to the service routine in the second android terminal by APP programs;C, in the second android terminal
Service routine after receiving the data, to data judged, processed and handled;D, data judged,
After processing and processing, the data that will be forwarded to sending card are encrypted again and packing processing, are then forwarded to sending card;E, it sends out
Service routine of the card feed in the second android terminal sends returned data, is returned when the service routine in the second android terminal receives
After returning data, returned data is verified, if verification passes through, returned data is encrypted and packing is handled, finally
Packed data are transmitted to the APP programs in the first android terminal again, by data encryption, command protocols, data
Turn processing and processing, program code is not increased income, and the risk that data are leaked in transmission process can be effectively reduced.
Description of the drawings
Fig. 1 is the flow diagram of the data transmission method preferred embodiment based on android system in the present invention.
Specific implementation mode
The present invention provides a kind of data transmission method based on android system, for make the purpose of the present invention, technical solution and
Effect is clearer, clear, referring to the drawings and gives an actual example that the present invention is described in more detail.It should be appreciated that this place
The specific embodiment of description is only used to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, a kind of data transmission method based on android system that present pre-ferred embodiments provide, packet
It includes:
S100, APP programs are installed in the first android terminal, service routine is installed in the second android terminal;
Packed data are sent in the second android terminal by S200, the APP programs in the first android terminal
Service routine;
S300, the service routine in the second android terminal after receiving the data, data judged,
Processing and processing;
S400, after to data judged, processed and handled, the data that will be forwarded to sending card are added again
Close and packing processing, is then forwarded to sending card;
The service routine of S500, sending card in the second android terminal sends returned data, when in the second android terminal
After service routine receives returned data, returned data is verified, if verification passes through, returned data is encrypted
It is handled with packing, the APP programs being finally transmitted to packed data again in the first android terminal.
When it is implemented, during the first android terminal and the second android terminal establish connection, be required for every time into
Row proof of identity judges whether the terminal for establishing connection is legal.Service routine in second android terminal is put after coding compiling
In the second android terminal library file, be not placed in kernel, source code is not increased income, Android system booting after, directly invoke and
Run the program.Sending card needs to make corresponding parsing to data according to agreement after the data received.
The data transmission method based on android system that present pre-ferred embodiments are provided can accomplish that avoiding kernel opens
The requirement in source effectively avoids data from causing the risk of leakage in transmission process.
Further include following steps between the step S100 and step S200 in the further preferred embodiment of the present invention:
The agreement and Encryption Algorithm that S600, basis define, the data in the first android terminal are encrypted and are packaged.
In the further preferred embodiment of the present invention, the step S300 specifically comprises the following steps:
Service routine on S301, the second android terminal after receiving the data, carries out data the judgement of data packet, sentences
Whether disconnected data packet has loss or other exceptions;
S302, a part of data for extracting data packet head, are decrypted and parse;
S303, judge the intention instructed in this data packet;
S304, data packet is further divided according to command protocols content.
Further include following steps between the step S303 and step S304 in the further preferred embodiment of the present invention:
S305, judge whether the content of data packet meets command protocols.
In conclusion data transmission method based on android system provided by the present invention, including:A, at the first Android end
End is equipped with APP programs, and service routine is equipped in the second android terminal;B, the APP programs in the first android terminal
Packed data are sent to the service routine in the second android terminal;C, the service routine in the second android terminal
After receiving the data, data judged, processed and handled;D, data judged, processed and located
After reason, the data that will be forwarded to sending card are encrypted again and packing processing, are then forwarded to sending card;E, sending card is to
Service routine in two android terminals sends returned data, when the service routine in the second android terminal receives returned data
Afterwards, returned data is verified, if verification passes through, returned data is encrypted and packing is handled, will be finally packaged
Good data are transmitted to the APP programs in the first android terminal again, are processed by data encryption, command protocols, data relay
And processing, program code are not increased income, and the risk that data are leaked in transmission process can be effectively reduced.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect range.
Claims (4)
1. a kind of data transmission method based on android system, which is characterized in that the transmission side data based on android system
Method includes the following steps:
A, APP programs are installed in the first android terminal, service routine is installed in the second android terminal;
B, packed data are sent to the service journey in the second android terminal by the APP programs in the first android terminal
Sequence;
C, the service routine in the second android terminal after receiving the data, data judged, process and
Processing;
D, after to data judged, processed and handled, the data that will be forwarded to sending card are encrypted and beat again
Packet processing, is then forwarded to sending card;
E, service routine of the sending card in the second android terminal sends returned data, the service routine in the second android terminal
After receiving returned data, returned data is verified, if verification pass through, to returned data be encrypted and packing at
Reason, the APP programs being finally transmitted to packed data again in the first android terminal.
2. data transmission method based on android system according to claim 1, which is characterized in that the step A and step
Further include following steps between rapid B:
F, according to command protocols, the data in the first android terminal are encrypted and are packaged.
3. data transmission method based on android system according to claim 1, which is characterized in that the step C is specific
Include the following steps:
Service routine on C1, the second android terminal after receiving the data, carries out data the judgement of data packet, judges data
Whether packet has loss or other exceptions;
C2, a part of data for extracting data packet head, are decrypted and parse;
C3, judge the intention instructed in this data packet;
C4, data packet is further divided according to command protocols content.
4. data transmission method based on android system according to claim 3, which is characterized in that the step C3 and step
Further include following steps between rapid C4:
C5, judge whether the content of data packet meets command protocols.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810472734.8A CN108712415B (en) | 2018-05-17 | 2018-05-17 | Data transmission method based on android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810472734.8A CN108712415B (en) | 2018-05-17 | 2018-05-17 | Data transmission method based on android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108712415A true CN108712415A (en) | 2018-10-26 |
CN108712415B CN108712415B (en) | 2021-08-20 |
Family
ID=63869093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810472734.8A Active CN108712415B (en) | 2018-05-17 | 2018-05-17 | Data transmission method based on android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108712415B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486392A (en) * | 2020-12-02 | 2021-03-12 | 广州朗国电子科技有限公司 | Android main board parameter configuration method, system and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120079129A1 (en) * | 2010-09-24 | 2012-03-29 | Reality Mobile Llc | Distribution and Management of Streamable Data |
CN105260250A (en) * | 2015-09-10 | 2016-01-20 | 烽火通信科技股份有限公司 | Linux system and Android system dual-system communication device |
CN106131801A (en) * | 2016-06-30 | 2016-11-16 | 成都西可科技有限公司 | A kind of based on android system without JA(junction ambient) enciphered data transmission method |
CN107256188A (en) * | 2017-06-30 | 2017-10-17 | 百度在线网络技术(北京)有限公司 | Control method, device, terminal and the storage medium of Android device |
-
2018
- 2018-05-17 CN CN201810472734.8A patent/CN108712415B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120079129A1 (en) * | 2010-09-24 | 2012-03-29 | Reality Mobile Llc | Distribution and Management of Streamable Data |
CN105260250A (en) * | 2015-09-10 | 2016-01-20 | 烽火通信科技股份有限公司 | Linux system and Android system dual-system communication device |
CN106131801A (en) * | 2016-06-30 | 2016-11-16 | 成都西可科技有限公司 | A kind of based on android system without JA(junction ambient) enciphered data transmission method |
CN107256188A (en) * | 2017-06-30 | 2017-10-17 | 百度在线网络技术(北京)有限公司 | Control method, device, terminal and the storage medium of Android device |
Non-Patent Citations (1)
Title |
---|
卢林杰: "基于Android的室内照明控制系统设计与实现", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486392A (en) * | 2020-12-02 | 2021-03-12 | 广州朗国电子科技有限公司 | Android main board parameter configuration method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108712415B (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7305092B2 (en) | Method and system to accelerate cryptographic functions for secure e-commerce applications | |
KR970024734A (en) | Safety network protocol system and method | |
CN113722683B (en) | Model protection method, device, equipment, system and storage medium | |
CN105721443B (en) | A kind of link session cipher negotiating method and device | |
CN103607402A (en) | Online game data encryption and decryption method and equipment | |
CN105721154B (en) | Encryption protection method based on Android platform communication interface | |
CN104780445A (en) | Method and system for preventing set top box software from malicious upgrade | |
CN108712415A (en) | A kind of data transmission method based on android system | |
CN115208705A (en) | Encryption and decryption method and device based on link data self-adaptive adjustment | |
CN114531272A (en) | HTTPS request processing method and device based on national password and international algorithm | |
CN112333144B (en) | Data security system and method of communication module | |
CN106295263A (en) | A kind of method and device realizing application reinforcing | |
KR102358101B1 (en) | A method for applying security program | |
CN115913618A (en) | Method, medium and terminal for guaranteeing TCP communication safety based on hybrid encryption | |
CN111181898A (en) | Data security protection method based on background server and APP client | |
CN111832011B (en) | IAP-based firmware security upgrading method and device | |
CN114611129A (en) | Data privacy protection method and system | |
CN104392153B (en) | A kind of method for protecting software and system | |
CN114065302A (en) | Data processing method, device, equipment, medium and block chain network | |
CN107707521A (en) | A kind of document transmission method and system | |
CN111460464A (en) | Data encryption and decryption method and device, electronic equipment and computer storage medium | |
CN111221764A (en) | Cross-link data transmission method and system | |
CN112187734B (en) | IPSec component architecture and VPN tunnel establishment method | |
CN115543392B (en) | Trusted program upgrading method, device, equipment and storage medium | |
CN112637240B (en) | Protocol message tamper-proof method and system under mimicry environment and readable storage medium |
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 |