CN106331207A - Android system-based multiple-IP Addresses setting method - Google Patents

Android system-based multiple-IP Addresses setting method Download PDF

Info

Publication number
CN106331207A
CN106331207A CN201610157564.5A CN201610157564A CN106331207A CN 106331207 A CN106331207 A CN 106331207A CN 201610157564 A CN201610157564 A CN 201610157564A CN 106331207 A CN106331207 A CN 106331207A
Authority
CN
China
Prior art keywords
adaptation unit
adaptive
unit bar
sdcard
performs
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.)
Pending
Application number
CN201610157564.5A
Other languages
Chinese (zh)
Inventor
范五
范五一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huashengpuxun Technology Co Ltd
Original Assignee
Beijing Huashengpuxun Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Huashengpuxun Technology Co Ltd filed Critical Beijing Huashengpuxun Technology Co Ltd
Priority to CN201610157564.5A priority Critical patent/CN106331207A/en
Publication of CN106331207A publication Critical patent/CN106331207A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

With the increasingly wide application of the Android operating system on mobile devices such as smart phones and tablet PCs, the role of network communications in the mobile devices is enhanced. Only a single IP address can be set for an existing Android device, so that the existing Android device can carry out single-network segment communication, and the single-network segment communication of a smart phone and a tablet PC does not satisfy needs in some industries, it is hoped that the smart phone or tablet PC can be like a computer so that multiple IP addresses can be set for the smart phone or tablet PC, and the smart phone or tablet PC can carry out multi-network segment communication. The invention discloses an Android system-based multiple-IP Addresses setting method. With the method of the invention adopted, IP Addresses of multiple network segments can be set for an Android device, such as a smart phones and a tablet PC, and therefore, requirements of the video monitoring industry or other industries can be satisfied.

Description

A kind of multiple IP addressing methods based on android system
Technical field
The present invention relates to the network communication field of android system, be particularly well-suited to mobile phone or flat board can be as computer Carry out multiple IP address and the situation carrying out multiple network segment communicating is set.The method that the present invention provides is capable of Android device (mobile phone or flat board) carries out multiple IP address and arranges, and completes the concurrent communication of multiple network segment, thus meet Video Surveillance Industry or The communication requirement of person's other industry.
Background technology
Along with Android operating system is in mobile device, such as the extensive application on smart mobile phone and panel computer, network Communication acts in a mobile device to be strengthened day by day.Current Android device itself can only carry out single ip address setting, carries out Single network segment communicating, and dispatch field in video conference or video directing, when carrying out the collection of cross-network segment IP Camera, Ren Mengeng Wishing that mobile phone or flat board can carry out multiple IP address as computer and arrange, an IP address carries out local terminal Sign-On services Device, another one IP address is used for cross-network segment camera collection.Additionally carry out such as the Android device cross-network segment such as flat board or mobile phone Share print time, cross-network segment carry out multiple IP address set the most indispensable, otherwise, cannot complete at all cross-network segment share beat Print.Also having cross-network segment file-sharing, only cross-network segment to carry out multiple IP address to set, the file of Android device could be total to Enjoy or be transferred to client's use of multiple network segment.IP phone proportion in we live is increasingly heavier, in Android device Cross-network segment carries out IP phone communication and is also increasingly becoming focus of concern.
Summary of the invention
In order to overcome above-mentioned deficiency, the embodiment of the present invention provides a kind of multiple IP addresses based on android system to set Method, makes Android device (mobile phone or flat board) carry out multiple IP address and arranges, complete the concurrent communication of multiple network segment, thus Solve the network collection of some special industry such as video conference or video monitoring, cross-network segment is shared and is printed or cross-network segment file-sharing Etc. particular demands, Android device is made to develop towards diversification and extensibility direction;
The technology design of the present invention is to arrange so that Android device (mobile phone or flat board) carries out multiple IP address, complete Become the concurrent communication of multiple network segment, on the one hand, we implant adaptive control machine in init.rc script file and start order, with Trigger adaptive control machine to start.On the other hand, Android device SDcard is previously implanted adapted receptacles, i.e. adaptation unit The aggregation of bar, adaptation unit bar is inserted suitable according to certain rule by Android application interface by its configuration process one by one Dispensing container, in Android device start-up course, after SDcard is ready, opens adapted receptacles, and serialization performs adaptation Adaptation unit bar in container, completes the setting of multiple network ip address;
Technical scheme is as follows:
Multiple IP addressing methods based on android system in the present invention are achieved, it is characterised in that include following Step:
Step 1. realizes multiple IP addressing method based on android system, and required basic equipment consists of: Android device (mobile phone or flat board), adaptive control machine module, adapted receptacles module, adapted receptacles configuration tool;
Step 2. realizes multiple IP addressing methods of android system in Android device, by init.rc foot Implant adaptive control machine in Ben and start order, trigger adaptive control machine and start.The major function of adaptive control machine module:
1) adaptive control: detect SDcard carry situation, ready state in its life cycle;
2) adaptive diagnosis: through whole adaptive control machine overall process, for diagnosing the exception in adaptive control machine running Problem;
3) adaptive execution: open adapted receptacles, in new subprocess, serialization performs adaptation unit bar, does not produces main thread Block;
4) adaptive tracking: the execution process of the adaptation unit bar in adapted receptacles is tracked, ensures, ensures its stability;
Step 3. is previously implanted adapted receptacles, the i.e. aggregation of adaptation unit bar in Android device SDcard, its configuration Adaptation unit bar is inserted adapted receptacles, adapted receptacles mould according to certain rule by adapted receptacles configuration tool by process one by one The major function of block:
1) it is prone to read-write: adaptation unit bar is according to certain rules integration to together, and compact conformation, read-write property is strong;
2) it is prone to amendment: in order, orderliness is clear at adaptation unit bar interval, and amendment is convenient;
3) concurrency: adaptation unit bar can add multiple, and work simultaneously;
4) independence: separate between each adaptation unit bar, does not interfere with each other;
The major function of adapted receptacles configuration tool:
1) one by one adaptation unit bar is inserted adapted receptacles according to certain rule;
2) simplify the task complexity of adapted receptacles configuration, improve the ease for operation of configuration work;
3) avoid the error rate of adapted receptacles configuration, configure process programming, format module.
Accompanying drawing explanation
Fig. 1 is that Android device adaptation of the present invention controls machine startup order implantation schematic diagram;
Fig. 2 is that Android device SDcard adapted receptacles of the present invention implants schematic diagram;
Fig. 3 is that adaptation of the present invention controls machine module diagram;
Fig. 4 is adapted receptacles module diagram of the present invention;
Fig. 5 is adaptation unit bar module diagram of the present invention.
Fig. 6 is Android device many IP setting model figure.

Claims (18)

1. multiple IP addressing methods based on android system, it is characterised in that including:
Android device is in start-up course, and the adaptive control machine in init.rc script that performs starts order, triggers adaptation control Machine processed starts;
Android device is in start-up course, after SDcard is ready, opens the adapted receptacles being previously implanted SDcard, Serialization performs the adaptation unit bar in adapted receptacles, completes the setting of multiple network ip address;Meet Video Surveillance Industry or The setting demand of person other industry multisegment IP address.
Method the most according to claim 1, described " Android device is in start-up course ", it is further characterized in that, In Android device start-up course, run first process or Root process that the i.e. Android device of init process starts.
Method the most according to claim 2, described " the adaptive control machine in init.rc script that performs starts order, triggers Adaptive control machine starts ", it is further characterized in that:
Init process is carried out init.rc script as Root process or the parent process of process, its function;
Init process is mount directory as Root process or the parent process of process, its function, such as/Sdcard;
Init process is as Root process or the parent process of process, and its function is to start service, such as network communication services.
Method the most according to claim 1, described " the adaptive control machine in init.rc script that performs starts order, triggers Adaptive control machine starts ", it is further characterized in that, including: adaptation controls, adaptation diagnosis, adaptive execution, adaptive tracking.
Method the most according to claim 1, described " the adaptive control machine in init.rc script that performs starts order, triggers Adaptive control machine starts ", it is further characterized in that, for init.rc file, have at the beginning of specific form and rule i.e. Android Beginningization language.
Method the most according to claim 1, described " SDcard is ready ", it is further characterized in that, hot plug is monitored, many Zone configuration, multi partition carry.
Method the most according to claim 1, described " being previously implanted the adapted receptacles of SDcard ", it is characterised in that including: By interface configurations by the adapted receptacles needing the information write SDcard such as the adaptation unit bar of configuration:
Adapted receptacles is as the aggregation of adaptation unit bar, by adaptation unit bar according to certain rules integration to together, it is easy to Read-write;
Adapted receptacles is put in order clear as the aggregation of adaptation unit bar, the adaptation unit rule, it is easy to amendment;
Adapted receptacles can add multiple as the aggregation of adaptation unit bar, adaptation unit bar, and work simultaneously;
Adapted receptacles is as the aggregation of adaptation unit bar, separate between each adaptation unit bar, does not interfere with each other.
Method the most according to claim 1, described " serialization performs the adaptation unit bar in adapted receptacles ", its feature exists In, according to the adaptation unit bar in rhythm one by one order execution adapted receptacles, it is ensured that the stability of adapted receptacles and adaptation unit The execution efficiency of bar.
9. according to the method described in claim 1 and claim 2, described " adaptation unit bar ", it is characterised in that including: IP address, subnet mask, gateway address, dns server.
Method the most according to claim 3, described " adaptive control ", it is characterised in that:
When adaptive control module is run, periodically detection SDcard carry situation;
When adaptive control module is run, the ready state of capture SDcard;
The life cycle of adaptive control module is until SDcard carry completes, ready.
11. methods according to claim 3, described " adaptive diagnosis ", it is characterised in that:
Adaptive diagnosis is for diagnosing the abnormal problem in adaptive control machine running;
The log pattern comprised in adaptive diagnosis, can be explicitly described the root of abnormal generation, it is simple to solve;
Adaptive diagnosis is through whole adaptive control machine overall process, and beneficially system problem investigation, stablizes whole system and have Vital effect.
12. methods according to claim 3, described " adaptive execution ", it is characterised in that:
The adaptive prime responsibility performing module is to open adapted receptacles, and serialization performs adaptation unit bar;
The adaptive module that performs is run in the subprocess newly opened, and main thread does not produce obstruction;
Adaptive execution modular structure is single, functional independence, and stability is high.
13. methods according to claim 3, described " adaptive tracking ", it is characterised in that:
The execution process of the adaptation unit bar in adapted receptacles is tracked, ensures by adaptive tracking;
Adaptive tracking can learn the exception of adaptation unit bar at first, it is simple to adopts remedial measures early;
Adaptive tracking through whole adapted receptacles all the time, has an overall prison to the execution process of whole adapted receptacles Survey, ensure its stability.
14. methods according to claim 4, described " Android initializes language ", it is characterised in that by four major types Statement composition, i.e. Actions(action), Commands(order), Services(service) and Options(option).
15. methods according to claim 5, described " hot plug monitoring ", it is characterised in that:
Hot plug monitoring improves the system foundation stone recovery capability to disaster;
Hot plug monitoring improves autgmentability and the motility of system, has more ensured the safety of system;
The reliability of hot plug part promotes, it is simple to system does accident analysis, reduces cost.
16. methods according to claim 5, described " multi partition configuration ", it is characterised in that:
Multi partition configuration is write flexibly, can write according to the needs of oneself, not fix;
Multi partition configuration is write and need to be followed the form of google vold startup file code and write;
Multi partition configuration can be with print tracking, for the investigation of problem.
17. methods according to claim 5, described " multi partition carry ", it is characterised in that:
Android system carries out multi partition carry to SDcard, has its distinctive carry form;
Android system carries out multi partition carry to SDcard, must squeeze into carry label;
Android system carries out multi partition carry to SDcard, it is necessary to possess mount point.
18. according to the method described in claim 1 and claim 5, described " serialization execution ", it is characterised in that:
Adaptation unit bar serialization performs, it is to avoid resource contention each other and conflict;
Adaptation unit bar serialization performs, and decreases unnecessary resource consumption, beneficially system stability;
Adaptation unit bar serialization performs, and performs in strict accordance with order, does not haves the phenomenon not performing or jumping execution;
Adaptation unit bar serialization performs, it is simple to control to perform rhythm.
CN201610157564.5A 2016-03-21 2016-03-21 Android system-based multiple-IP Addresses setting method Pending CN106331207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610157564.5A CN106331207A (en) 2016-03-21 2016-03-21 Android system-based multiple-IP Addresses setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610157564.5A CN106331207A (en) 2016-03-21 2016-03-21 Android system-based multiple-IP Addresses setting method

Publications (1)

Publication Number Publication Date
CN106331207A true CN106331207A (en) 2017-01-11

Family

ID=57725805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610157564.5A Pending CN106331207A (en) 2016-03-21 2016-03-21 Android system-based multiple-IP Addresses setting method

Country Status (1)

Country Link
CN (1) CN106331207A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113211A (en) * 2019-05-10 2019-08-09 深圳市智微智能科技开发有限公司 Realize method, system, advertisement machine and the storage medium of the double network segments of Android advertisement machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306237A (en) * 2011-07-13 2012-01-04 东北大学 Internet-based interactive digital media terminal device
CN104168309A (en) * 2014-07-24 2014-11-26 深圳天珑无线科技有限公司 Data backup and operation method based on cloud service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306237A (en) * 2011-07-13 2012-01-04 东北大学 Internet-based interactive digital media terminal device
CN104168309A (en) * 2014-07-24 2014-11-26 深圳天珑无线科技有限公司 Data backup and operation method based on cloud service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CSDN论坛: "Android双IP", 《CSDN论坛》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113211A (en) * 2019-05-10 2019-08-09 深圳市智微智能科技开发有限公司 Realize method, system, advertisement machine and the storage medium of the double network segments of Android advertisement machine

Similar Documents

Publication Publication Date Title
US20220179682A1 (en) Task processing method, apparatus, and system based on distributed system
CN102377814B (en) Remote assistance service method aiming at embedded operation system
CN105357266A (en) Universal SOCKET communication and process management platform applied to multiple scenes and method
CN109347675A (en) Server configuration method, device and electronic equipment
CN103841179A (en) Cloud desktop system
CN104778121A (en) Game program test method, device and system
CN103051470B (en) The control method of a kind of cluster and magnetic disk heartbeat thereof
CN105245386B (en) The automatic positioning method and system of server connection relation
CN105530220B (en) The interface method of two kinds of different agreement system communications is realized based on OPC
CN103607296A (en) Virtual machine fault processing method and equipment thereof
CN105162703A (en) Multi-level network topology intelligent discovery and generation method and system based on hybrid protocol
CN105490861A (en) System and method of management of network management device
CN102437921B (en) Memory method and network device of configuration information
CN101964923A (en) Configuration system and method for interactive commands
CN106027305A (en) Method for hot standby of dual servers using same IP based on ARM
CN106331207A (en) Android system-based multiple-IP Addresses setting method
CN106464541B (en) Fault handling method and equipment based on network function virtualization
CN103747115A (en) Method of discovering IP (Internet Protocol) address of virtual machine based on virtual network interface card
CN104092661A (en) Serial port communication method and apparatus of virtual machines
CN109445384A (en) A kind of more apparatus control systems
CN101277247B (en) Real-time communication system
CN106375324B (en) Network communication system and method based on TCP/IP communication protocol
CN108089968A (en) A kind of method of host's machine monitoring virtual-machine data storehouse state
CN104021196A (en) I/O multiplexing method for System V message queue
CN109788034B (en) Configuration method for gateway access equipment, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170111

WD01 Invention patent application deemed withdrawn after publication