CN104184618B - Android terminal and its method for realizing TR069 network management agents - Google Patents
Android terminal and its method for realizing TR069 network management agents Download PDFInfo
- Publication number
- CN104184618B CN104184618B CN201410394932.9A CN201410394932A CN104184618B CN 104184618 B CN104184618 B CN 104184618B CN 201410394932 A CN201410394932 A CN 201410394932A CN 104184618 B CN104184618 B CN 104184618B
- Authority
- CN
- China
- Prior art keywords
- android
- module
- local
- proxy service
- aidl
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of Android terminal and its method for realizing TR069 network management agents, this method is as follows:The TR069 protocol processing units of the local module of c codes and the network management platform of network side in former Linux platform is adopted to interact, adopt the local information administrative unit in former Linux platform suitable for Android environment to safeguard local information library, utilize the proxy service module corresponding with Android versions and AIDL server modules of written in Java and interacting for user side Android application programs;Wherein, proxy service module and AIDL server modules are mutually called by JNI and TR069 protocol processing units, realize that system configuration reports calling for registration, system configuration renewal and Android application program correlation functions.The present invention makes full use of the JNI mechanism of android system, realizes that Java and mutually calling for local C code realize TR069 network management agents;Overcome the shortcoming of android system fragmentation;And can the existing Linux platform C of directly transplanting scheme.
Description
Technical field
The present invention relates to network user's lateral terminal equipment (CPE) management domain, and in particular to Android terminal and its realization
The method of TR069 network management agents.
Background technology
With the popularization and the development of technology of broadband network, telecom operators large-scale promotion using gateway and
The user side such as IPTV set top box terminal device (CPE), and operating system used in such terminal device is also from embedded
Linux is gradually transitions android system, more intelligent with the interface using android system opening there is provided more diversified
Application.At present, operator is mainly based upon TR069 agreements for CPE management and is managed collectively, and have accumulated
Abundant managerial experiences.
Network management agent refers to be present in CPE, coordinates the network management platform (ACS) positioned at network side, realizes to terminal
The parameter and business of equipment such as are configured, inquired about at the service routine of function.The existing terminal based on embedded Linux platform is set
It is standby that generally there is TR069 network management agent functions so that it can be uniformly included under the management of terminal network management platform.
However, as terminal device is further shifted from Linux to Android intelligent platforms, how based on Android
TR069 network management agents are realized in the terminal device of intelligent platform so that existing terminal Unified network management platform can also manage this
The problem of a little intelligent terminals turn into the urgent need to address.
The content of the invention
The technical problems to be solved by the invention are how to be realized on the terminal device based on Android intelligent platforms
TR069 network management agents cause the problem of existing terminal Unified network management platform can also manage these intelligent terminals.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is to provide a kind of Android terminal, including
System platform, the system platform includes Android operation system, Android radio receivers, corresponding to Android versions
Proxy service module and local module and AIDL server modules;The local module includes adopting former Linux platform c generations
The TR069 protocol processing units and local information administrative unit of code;
The Android operation system, which is used to send to Android radio receivers, broadcasts the message and receives the agency
The broadcast message of service module transmission simultaneously performs associative operation;
The Android radio receivers are used to monitoring and receiving Android operation system broadcast message, according to described
Android operation system broadcast calls relevant service interface to start the proxy service module;
The proxy service module is used to send broadcast message to the Android operation system and received and parsed through described
Android operation system broadcast message content, and call using JNI the TR069 protocol processing units of the local module;
The TR069 protocol processing units of the local module are interacted for the local module with ACS, and are utilized
JNI calls the proxy service module;The local information administrative unit is used to local information library is safeguarded or passed through
The TR069 protocol processing units perform ACS orders and local information library are updated;
The AIDL server modules are used to realize AIDL interface services, pass through AIDL interfaces and processing Android
Application program, and call the proxy service module or the local module to realize Android application program correlation functions.
Present invention also offers a kind of method that Android terminal realizes TR069 network management agents, concrete methods of realizing is such as
Under:
The network management platform for adopting the TR069 protocol processing units in former Linux platform and network side is interacted, and is prolonged
Local information library is safeguarded with the local information administrative unit in former Linux platform suitable for Android environment, utilized
The proxy service module corresponding with Android versions and AIDL server modules of written in Java are applied with user side Android
Program is interacted;
Wherein, proxy service module and AIDL server modules carry out phase intermodulation by JNI and TR069 protocol processing units
With realizing that system configuration reports that registration, system configuration are updated and Android application program correlation functions are called.
In the above-mentioned methods, the communication mechanism that former Linux platform can be continuing with Android environment is adopted.
In the above-mentioned methods, system configuration report registration include user terminal start report registration with configuration change report note
Volume;
The user terminal start reports registration to comprise the following steps that:
Step S11, Android terminal start;
Step S12, Android radio receiver is monitored and receives Android terminal start message;
Step S13, Android radio receiver calls startService interfaces, to start proxy service module;
Step S14, proxy service module carry out initial work, and call the corresponding interface of local module to open using JNI
Dynamic Tr069 protocol processing units;
After step S15, Tr069 protocol processing unit starts, set up TCP with ACS and be connected;
Step S16, the device parameter and business configuration parameter for reporting to ACS Android terminal, complete start-up logging;
The configuration change reports registration to comprise the following steps that:
Step S21, when user by set operation interface change configuration when, Android radio receivers can be received
The configuration change broadcast message that the setup module of Android operation system is sent;
Step S22, proxy service module parsing configuration change broadcast message, obtain configuration change content;
Step S23, proxy service module call the corresponding interface of local module by JNI mechanism, open tr069 agreements;
Step S24, configuration change content reported to the network management platform of network side by tr069 agreements.
In the above-mentioned methods, system configuration updates and comprised the following steps:
Step S31, ACS issues new configuration order;
Step S32, TR069 protocol processing unit receives and parses through new configuration order, obtains new configuration parameter;
Step S33, TR069 protocol processing unit calls the control of local information administrative unit to obtain new configuration parameter to local
Information bank is updated;
Step S34, TR069 protocol processing unit calls proxy service module using JNI;
Step S35, proxy service module send new configuration broadcast message to Android operation system;
Step S36, Android operation system receive the broadcast message, and perform configuration parameter renewal operation;
Step S37, ends with system config update;
In step S34, other modules are notified by sending broadcast if necessary to proxy service module, then agency's clothes
Module of being engaged in sends broadcast message to corresponding module, and corresponding module carries out relevant treatment to this message, completes configuration take-effective.
In the above-mentioned methods, calling for Android application programs correlation function comprises the following steps:
The AIDL interface Android application programs of step S41, AIDL server module;
Step S42, AIDL server module calls proxy service module, completes Android application programs correlation function and adjusts
With;
Step S43, judge whether to need to call local module to continue to complete correlation function by JNI, if it is desired, then hold
Row step S44;Otherwise step S46 is performed;
Step S44, proxy service module call local module by JNI;
Step S45, local module continue to complete correlation function and called;
Step S46, end functions calling process.
The present invention, makes full use of JNI (Java is locally called) mechanism of android system, realizes Java and local C/C++
Mutually calling for code, TR069 protocol analysis and funcall are completed using C language, are imitated with providing more effective protocol analysis
Rate and easily safeguard method;And Java layers complete the function related to android system and are adapted to, such as system message connects
Receive, interacting etc. between Android application programs, clear in structure;And it need to only change java section and difference can be achieved
Adaptation between Android versions, overcomes the shortcoming of android system fragmentation;Native code portion can also complete with
The adaptation of different ACS platforms, can the existing Linux platform C/C++ of directly transplanting scheme, due to Android to Linux after
Holding property, related work is also relatively simple.
Brief description of the drawings
Fig. 1 is the system platform structured flowchart of the Android terminal of the present invention;
Fig. 2 reports register flow path figure for user terminal start in the present invention in the present invention;
Fig. 3 reports register flow path figure for configuration change in the present invention;
Fig. 4 issues new configuration for ACS in the present invention and carries out system configuration renewal flow chart;
Fig. 5 is the flow chart that Android application programs correlation function is called in the present invention.
Embodiment
The present invention is described in detail with reference to Figure of description and specific embodiment.
As shown in figure 1, the Android terminal that the present invention is provided includes system platform, the system platform includes Android
Operating system 10, Android radio receivers 20, proxy service module 30 corresponding with Android versions and local module
40 and AIDL server modules 50;Local module 40 includes TR069 protocol processing units 41 and local information administrative unit 42;
Android operation system 10, which is used to send to Android radio receivers 20, broadcasts the message and receives the agency
The broadcast message of the transmission of service module 30 simultaneously performs associative operation;
Android radio receivers 20 are used for the system broadcast message for monitoring and receiving the transmission of Android operation system 10,
And call relevant service interface to start proxy service module 30 according to the system broadcasts;
Proxy service module 30 is used to send to Android operation system 10 to broadcast the message and parse Android and operate
Unite 10 broadcast message contents, and call using JNI the TR069 protocol processing units 31 of local module 40;
The TR069 protocol processing units 41 of local module 40 are interacted for local module 40 and ACS, and utilize JNI
Call proxy service module 30;Local information administrative unit 42 is used to safeguard local information library or assist by TR069
View processing unit 41 performs ACS orders and local information library is updated;
AIDL server modules 50 are used to realize AIDL interface services, should by AIDL interfaces and processing Android
With program, and by calling proxy service module 30 or local module 40 to realize Android application program correlation functions.
The Android terminal that the present invention is provided realizes that the method for TR069 network management agents is as follows:
The network management platform for adopting the TR069 protocol processing units in former Linux platform and network side is interacted, and is prolonged
Local information library is safeguarded with the local information administrative unit in former Linux platform suitable for Android environment, utilized
The proxy service module corresponding with Android versions and AIDL server modules of written in Java are applied with user side Android
Program is interacted;The efficient network service of c codes and analytical capabilities are so not only made full use of, are based on while also assures that
Android agency service can be interacted normally with the network management platform (ACS) of original network side based on Linux.
Wherein, proxy service module and AIDL server modules by JNI (Java Native Interface) with
TR069 protocol processing units are mutually called, and realize that system configuration reports registration, system configuration to update and Android applications
Program correlation function is called.
System configuration reports registration to include:Android terminal start reports registration and configuration change to report registration.
In the present invention, the communication mechanism that former Linux platform can be continuing with Android environment can also be adopted,
The communication mechanism is interacted using JNI by proxy service module interface with android system operating system;Pass through TR069
Protocol processing unit is interacted with ACS.
Fig. 2 reports registration for user terminal start in the present invention, specifically includes following steps:
Step S11, Android terminal start;
Step S12, Android radio receiver is monitored and receives Android terminal start message (BOOT_
COMPLETED);
Step S13, Android radio receiver calls startService interfaces, to start proxy service module;
Step S14, proxy service module carry out initial work, and call the corresponding interface of local module to open using JNI
Dynamic Tr069 protocol processing units;
After step S15, Tr069 protocol processing unit starts, set up TCP with ACS and be connected;
Step S16, the device parameter and business configuration parameter for reporting to ACS Android terminal, complete start-up logging.
Fig. 3 reports registration for configuration change in the present invention, specifically includes following steps:
Step S21, when user by set operation interface change configuration when, Android radio receivers can be received
The configuration change broadcast message that the setup module of Android operation system is sent;
Step S22, proxy service module parse configuration change broadcast message, obtain configuration change content;
Step S23, proxy service module call the corresponding interface of local module by JNI mechanism, open at TR069 agreements
Manage the tr069 protocol processes threads in unit;
Step S24, configuration change content reported to ACS by tr069 agreements.
It is that the network management platform (ACS) of network side issues and is newly allocated to network user's lateral terminal equipment that system configuration, which updates,
(CPE), former configuration parameter is updated to new configuration parameter by network user's lateral terminal equipment.
As shown in figure 4, comprising the following steps in present system config update:
Step S31, ACS issues new configuration order;
Step S32TR069 protocol processing units receive and parse through new configuration order, obtain new configuration parameter;
Step S33, TR069 protocol processing unit calls the control of local information administrative unit to obtain new configuration parameter to local
Information bank is updated;
Step S34, TR069 protocol processing unit calls proxy service module using JNI;
Step S35, proxy service module send new configuration broadcast message to Android operation system;
Step S36, Android operation system receive the broadcast message, and perform configuration parameter renewal operation;
Step S37, ends with system config update;
In step S34, other modules (such as video is notified by sending broadcast if necessary to proxy service module
Playing module, setup module etc.), then proxy service module sends broadcast message to corresponding module, and corresponding module enters to this message
Row relevant treatment, completes configuration take-effective.
As shown in figure 5, it is by specifying AIDL (Android that Android application programs correlation function, which is called, in the present invention
Interface Definition Language) interface interchange set, inquiry etc. function, specifically include following steps:
The AIDL interface Android application programs of step S41, AIDL server module;
Step S42, AIDL server module calls proxy service module, completes Android application programs correlation function and adjusts
With;
Step S43, judge whether to need to call local module to continue to complete correlation function by JNI, if it is desired, then hold
Row step S44;Otherwise step S46 is performed;
Step S44, proxy service module call local module by JNI;
Step S45, local module continue to complete correlation function and called;
Step S46, end functions calling process.
By AIDL interface interchange Android application programs (APK), to realize the function of service end, complete to answer with other
With the interprocess communication between program, it is ensured that security.
Embodiment described above is only a kind of example of the present invention, is not intended to limit the invention, all in essence of the invention
Any modifications, equivalent substitutions and improvements done within refreshing and principle etc., are contained within protection scope of the present invention.
Claims (5)
1. a kind of Android terminal, including system platform, it is characterised in that the system platform includes Android and operates system
System, Android radio receivers, proxy service module corresponding with Android versions and local module and AIDL service ends
Module;The local module includes the TR069 protocol processing units for adopting former Linux platform c codes and local information management is single
Member;
The Android operation system, which is used to send to Android radio receivers, broadcasts the message and receives the agency service
The broadcast message of module transmission simultaneously performs associative operation;
The Android radio receivers are used to monitoring and receiving Android operation system broadcast message, according to described
Android operation system broadcast calls relevant service interface to start the proxy service module;
The proxy service module is used to send broadcast message to the Android operation system and received and parsed through described
Android operation system broadcast message content, and locally call using Java JNI to call the TR069 agreements of the local module
Processing unit;
The TR069 protocol processing units of the local module are interacted for the local module with network management platform ACS,
And locally call JNI to call the proxy service module using JAVA;The local information administrative unit is used for local information
Safeguarded or ACS orders are performed by the TR069 protocol processing units and local information library is updated in storehouse;
The AIDL server modules are used to realize Android IDL AIDL interface services, are connect by AIDL interfaces
Receive and processing Android application programs, and call the proxy service module or the local module to realize that Android is applied
Program correlation function;
Wherein, Android application programs correlation functions is called specially:
The AIDL interface Android application programs of the AIDL server modules;The AIDL server modules call institute
Proxy service module is stated, Android application program correlation functions is completed and calls;
The AIDL server modules judge whether to need to call local module to continue to complete correlation function by JNI, if needed
Will, proxy service module calls local module by JNI;Otherwise, local module continues to complete correlation function and called.
2. a kind of method that Android terminal realizes TR069 network management agents, it is characterised in that concrete methods of realizing is as follows:
The network management platform for adopting the TR069 protocol processing units in former Linux platform and network side is interacted, and adopts original
Local information administrative unit in Linux platform suitable for Android environment is safeguarded to local information library, is compiled using Java
The proxy service module corresponding with Android versions and AIDL server modules write and user side Android application programs
Interact;
Wherein, the proxy service module and the AIDL server modules are locally called by JAVA at JNI and TR069 agreements
Reason unit is mutually called, and realizes that system configuration reports registration, system configuration to update and Android application program correlation functions
Call;
Calling for Android application program correlation functions comprises the following steps:
The AIDL interface Android application programs of step S41, AIDL server module;
Step S42, AIDL server module calls proxy service module, completes Android application program correlation functions and calls;
Step S43, judge whether to need to call local module to continue to complete correlation function by JNI, if it is desired, then perform step
Rapid S44;Otherwise step S46 is performed;
Step S44, proxy service module call local module by JNI;
Step S45, local module continue to complete correlation function and called;
Step S46, end functions calling process.
3. method as claimed in claim 2, it is characterised in that adopting former Linux platform can continue to make under Android environment
Communication mechanism.
4. method as claimed in claim 2, it is characterised in that system configuration reports registration to include user terminal start and reports note
Volume and configuration change report registration;
The user terminal start reports registration to comprise the following steps that:
Step S11, Android terminal start;
Step S12, Android radio receiver is monitored and receives Android terminal start message;
Step S13, Android radio receiver calls startService interfaces, to start proxy service module;
Step S14, proxy service module carry out initial work, and locally call using JAVA JNI to call the phase of local module
Interface is answered to start TR069 protocol processing units;
After step S15, TR069 protocol processing unit starts, set up TCP with ACS and be connected;
Step S16, the device parameter and business configuration parameter for reporting to ACS Android terminal, complete start-up logging;
The configuration change reports registration to comprise the following steps that:
Step S21, when user by set operation interface change configuration when, Android radio receivers can receive Android
The configuration change broadcast message that the setup module of operating system is sent;
Step S22, proxy service module parsing configuration change broadcast message, obtain configuration change content;
Step S23, proxy service module call the corresponding interface of local module by the local call-by mechanisms of JAVA, open TR069
Agreement;
Step S24, configuration change content reported to the network management platform of network side by TR069 agreements.
5. method as claimed in claim 2, it is characterised in that system configuration, which updates, to be comprised the following steps:
Step S31, ACS issues new configuration order;
Step S32, TR069 protocol processing unit receives and parses through new configuration order, obtains new configuration parameter;
Step S33, TR069 protocol processing unit calls the control of local information administrative unit to obtain new configuration parameter to local information
Storehouse is updated;
Step S34, TR069 protocol processing unit calls proxy service module using JNI;
Step S35, proxy service module send new configuration broadcast message to Android operation system;
Step S36, Android operation system receive the broadcast message, and perform configuration parameter renewal operation;
Step S37, ends with system config update;
In step S34, other modules are notified by sending broadcast if necessary to proxy service module, then agency service mould
Block sends broadcast message to corresponding module, and corresponding module carries out relevant treatment to this message, completes configuration take-effective.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410394932.9A CN104184618B (en) | 2014-08-12 | 2014-08-12 | Android terminal and its method for realizing TR069 network management agents |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410394932.9A CN104184618B (en) | 2014-08-12 | 2014-08-12 | Android terminal and its method for realizing TR069 network management agents |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104184618A CN104184618A (en) | 2014-12-03 |
CN104184618B true CN104184618B (en) | 2017-11-07 |
Family
ID=51965378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410394932.9A Active CN104184618B (en) | 2014-08-12 | 2014-08-12 | Android terminal and its method for realizing TR069 network management agents |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104184618B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681736A (en) * | 2016-12-30 | 2017-05-17 | 深圳Tcl数字技术有限公司 | Method and device for implementing Linux system service in Android system |
CN107391272A (en) * | 2017-06-26 | 2017-11-24 | 北京五八信息技术有限公司 | The method and terminal of multi-process data interaction |
CN107368311B (en) * | 2017-07-10 | 2021-07-23 | 武汉斗鱼网络科技有限公司 | Method and system for communication among multiple fragments |
CN110569130B (en) | 2019-07-29 | 2021-12-14 | 华为技术有限公司 | Cross-process communication method, device and equipment |
CN112910884B (en) * | 2021-01-28 | 2023-04-18 | 北京直真科技股份有限公司 | Method for realizing interaction between APK and ACS through packaging TR069 message |
CN113783961B (en) * | 2021-09-14 | 2024-05-31 | 深圳通康创智技术有限公司 | Remote terminal management method, device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141418A (en) * | 2006-09-08 | 2008-03-12 | 中国电信股份有限公司 | Strategy based family network service identifying system and method |
CN101783737A (en) * | 2009-01-21 | 2010-07-21 | 华为终端有限公司 | Reporting method, acquiring method and device of configuration order application result |
CN102082676A (en) * | 2009-11-26 | 2011-06-01 | 中国电信股份有限公司 | Method and system for realizing remote configuration of customer premises equipment (CPE) service parameters by TR069 |
-
2014
- 2014-08-12 CN CN201410394932.9A patent/CN104184618B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141418A (en) * | 2006-09-08 | 2008-03-12 | 中国电信股份有限公司 | Strategy based family network service identifying system and method |
CN101783737A (en) * | 2009-01-21 | 2010-07-21 | 华为终端有限公司 | Reporting method, acquiring method and device of configuration order application result |
CN102082676A (en) * | 2009-11-26 | 2011-06-01 | 中国电信股份有限公司 | Method and system for realizing remote configuration of customer premises equipment (CPE) service parameters by TR069 |
Non-Patent Citations (1)
Title |
---|
基于TR069的智能机顶盒远程升级系统的设计与实现;李劲松;《万方学位论文》;20131231;正文第三、四章节 * |
Also Published As
Publication number | Publication date |
---|---|
CN104184618A (en) | 2014-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104184618B (en) | Android terminal and its method for realizing TR069 network management agents | |
US20140215046A1 (en) | Device management server, device management client, and method for locating a target operation object | |
CN106911502B (en) | A kind of upgrade method and system of intelligent home gateway equipment | |
US20120089717A1 (en) | Method and system for performing remote network management on a voice home gateway terminal | |
CN102262560A (en) | Calling method, device and system for remote service | |
CN106331135B (en) | A kind of part interface update method, system, client and server-side | |
US20110145809A1 (en) | Method and apparatus for upgrading software in customer premise equipment | |
CN101877650A (en) | Method and system for updating software version automatically | |
EP2404405A1 (en) | Managing network elements | |
CN107637110B (en) | Method for loading configuration files | |
US20120278456A1 (en) | Method and apparatus for data configuration | |
CN101009588B (en) | Method and system for configuring the distributed proxy server information | |
US20120066348A1 (en) | Device Management Using a RESTful Interface | |
CN105610883A (en) | Policy file synchronization management method, policy synchronization server and management device | |
CN101686253A (en) | Service selecting method, device and system thereof | |
CN101997721A (en) | System, method and corresponding device for managing telecommunication network | |
US20150223142A1 (en) | Method, apparatus and system for obtaining error code information | |
CN102215118B (en) | Method, device and system for realizing device management services | |
CN101212346B (en) | Software version management method and device for network element management system | |
CN108600841B (en) | Parameter operation method of set top box | |
CN102377647A (en) | Internet-protocol-television-based routing configuration method and system | |
US20090193408A1 (en) | Interface and method for interfacing element management server in wireless telecommunication system | |
US20140047100A1 (en) | Adaptive centralized collection of performance management data using a metamodel | |
CN104426883A (en) | User digit map transmission processing method, device and system | |
US20090111449A1 (en) | System apparatus and method for updating communication services |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |