CN107528895B - System and method for accessing plug-in to third-party server based on Android system - Google Patents

System and method for accessing plug-in to third-party server based on Android system Download PDF

Info

Publication number
CN107528895B
CN107528895B CN201710708734.9A CN201710708734A CN107528895B CN 107528895 B CN107528895 B CN 107528895B CN 201710708734 A CN201710708734 A CN 201710708734A CN 107528895 B CN107528895 B CN 107528895B
Authority
CN
China
Prior art keywords
module
plug
party
hardware
information
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
Application number
CN201710708734.9A
Other languages
Chinese (zh)
Other versions
CN107528895A (en
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201710708734.9A priority Critical patent/CN107528895B/en
Publication of CN107528895A publication Critical patent/CN107528895A/en
Application granted granted Critical
Publication of CN107528895B publication Critical patent/CN107528895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a system for accessing a plug-in based on an Android system to a third-party server, which comprises a hardware module based on the Android system, a third-party plug-in module and a third-party server module; the hardware module is composed of a plurality of hardware units, and is used for acquiring information data of the hardware units and transmitting the acquired information data to the third-party plug-in module, and meanwhile, the hardware module receives instruction data returned by the third-party plug-in module and executes related instructions; the third-party plug-in module is used for transmitting data information between the hardware module and the third-party server module; and the third-party server module is used for receiving the data information reported by the plug-in module and pushing instruction data to the plug-in module. The system and the method for accessing the plug-in to the third-party server based on the Android system can simply and conveniently access the third-party server, shorten the development period for a third-party company, save the development cost, improve the competitiveness of hardware manufacturers and have better market prospect.

Description

System and method for accessing plug-in to third-party server based on Android system
Technical Field
The invention relates to the technical field of intelligent hardware based on an Android system, in particular to a system and a method for accessing a plug-in to a third-party server based on the Android system.
Background
Due to the demands of business, market and the like, many companies often choose to cooperate with other hardware manufacturers to use the existing scheme in order to shorten the development period and save the development cost. However, most third-party companies with such requirements want to use their own servers, because if cloud docking is adopted or a complicated plug-in is embedded in hardware, the development difficulty and the development period of such third-party companies are increased, which is not favorable for cost control of the third-party companies.
Disclosure of Invention
The invention aims to overcome the defects in the background technology, and provides a system and a method for accessing a plug-in to a third-party server based on an Android system.
In order to achieve the technical effect, the invention discloses a system for accessing a plug-in to a third-party server based on an Android system, which specifically adopts the following technical scheme:
a system for accessing a plug-in to a third-party server based on an Android system comprises a hardware module based on the Android system, a third-party plug-in module and a third-party server module; the hardware module is composed of a plurality of hardware units, the hardware module is used for acquiring information data of the hardware units and transmitting the acquired information data to the third-party plug-in module, and meanwhile, the hardware module receives instruction data returned by the third-party plug-in module and executes related instructions; the third-party plug-in module is used for transmitting data information between the hardware module and the third-party server module; the third-party server module is used for receiving the data information reported by the third-party plug-in module and pushing instruction data to the third-party plug-in module.
Further, the information data of the hardware unit acquired by the hardware module at least includes information data representing parameters and states of the hardware unit.
Further, the system for accessing the plug-in to the third-party server based on the Android system is characterized in that data information is transmitted between the hardware module and the third-party plug-in module in a broadcasting manner.
Further, the third-party plug-in module is an android installation package apk.
Furthermore, the hardware module comprises a hardware unit customized according to the Android system, and the third-party plug-in module can access the network through the hardware module.
Meanwhile, the invention also discloses a method for accessing the plug-in to the third-party server based on the Android system, which comprises a system for accessing the plug-in to the third-party server based on the Android system, an information reporting flow and an instruction executing flow; wherein,
the information reporting process comprises the following steps:
A1. the hardware module acquires information data of each hardware unit, packages the acquired information data into a data packet and transmits the data packet to the third-party plug-in module;
A2. the third-party plug-in module receives the data packet and analyzes the information contained in the data packet, and then reports the information acquired by analysis to the third-party server module;
A3. the third-party server module receives the information reported by the third-party plug-in module and completes corresponding actions;
the execution instruction flow comprises the following steps:
B1. the third-party plug-in module receives and analyzes the instruction data packet pushed by the third-party server module, and packs and transmits the obtained instruction data to the hardware module;
B2. the third-party plug-in module receives and analyzes the instruction data packet pushed by the third-party server module, and packs and transmits the obtained instruction data to the hardware module;
B3. and the hardware module receives and analyzes the data information returned by the third-party plug-in module and executes the instruction obtained according to the analysis.
Further, in step a1, the information data of the hardware unit acquired by the hardware module at least includes information data representing parameters and states of the hardware unit.
Furthermore, data information is transmitted between the hardware module and the third-party plug-in module in a broadcasting mode.
Further, the third-party plug-in module is an android installation package.
Compared with the prior art, the invention has the following beneficial effects: the system and the method for accessing the plug-in to the third-party server based on the Android system can simply and conveniently access the third-party server, shorten the development period for a third-party company, save the development cost, improve the competitiveness of hardware manufacturers and have better market prospect.
Drawings
Fig. 1 is a schematic diagram of an information reporting flow in a method for accessing a plug-in to a third-party server based on an Android system according to an embodiment;
fig. 2 is a schematic diagram of an instruction execution flow in a method for accessing a third-party server by a plug-in based on an Android system according to the embodiment.
Detailed Description
The invention will be further elucidated and described with reference to the embodiments of the invention described hereinafter.
Example (b):
the method for accessing the plug-in based on the Android system to the third-party server is described below with reference to fig. 1 and fig. 2.
As shown in fig. 1 and 2, the method includes a system for accessing a plug-in based on an Android system to a third-party server, where the system includes a hardware module based on the Android system, a third-party plug-in module, and a third-party server module.
Specifically, the hardware module is customized based on the Android system and comprises a plurality of hardware units, the hardware module can acquire information such as various parameters and states of each hardware and transmit the information to the third-party plug-in module through specific broadcast, and the hardware module can also receive the broadcast of the third-party plug-in module and execute instructions contained in the broadcast.
The third-party plug-in module is developed according to the rules of hardware manufacturers, can receive the broadcast sent by the hardware module and analyze the information contained in the broadcast, and reports the information obtained by analysis to the corresponding third-party server module; the third-party plug-in module can also receive the instruction pushed by the server module and propagate the instruction to the hardware module in a broadcast mode.
The third-party server module can receive information reported by the third-party plug-in module or push an instruction to the third-party plug-in module.
Specifically, the method for accessing the plug-in to the third-party server module based on the Android system comprises two processes of information reporting and instruction execution.
The information reporting process specifically comprises the following steps:
firstly, a hardware module needs to acquire information such as parameters and states of hardware and package the information in broadcast information, and then the acquired information is transmitted to a third-party plug-in module through specific broadcast;
secondly, a third-party plug-in module receives the broadcast, analyzes the information contained in the broadcast and reports the information acquired by analysis to a third-party server module;
and thirdly, the third-party server module receives the information reported by the third-party plug-in module and completes corresponding actions.
The instruction execution flow specifically comprises the following steps:
the method comprises the following steps that firstly, a third-party server module pushes an instruction data packet to a third-party plug-in module, wherein the instruction data packet comprises an instruction to be executed by a hardware module;
secondly, the third-party plug-in module receives and analyzes the instruction data packet pushed by the third-party server module, packages and encapsulates the obtained instruction data in broadcast information, and transmits the broadcast information to the hardware module through specific broadcast;
and thirdly, the hardware module receives the broadcast transmitted by the third-party plug-in module, analyzes the information in the broadcast and executes the instruction obtained by analysis.
The hardware module is customized according to an Android system, and is preferably provided with a WiFi or mobile network connection unit, so that the hardware module can provide network access conditions for a third-party plug-in module. And preferably, the third-party plug-in is an android installation package apk.
The information of the hardware sent to the third-party plug-in module by the hardware module and the instruction to be executed sent to the hardware module by the third-party plug-in module are encapsulated in the broadcast information, preferably, different information can be distinguished by naming different broadcast names, the hardware information can also be encapsulated and carried in the broadcast, and the specific mode can be selected according to actual requirements.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (6)

1. A system for accessing a plug-in based on an Android system to a third-party server is characterized by comprising a hardware module based on the Android system, a third-party plug-in module and a third-party server module;
the hardware module is composed of a plurality of hardware units, the hardware module is used for acquiring information data of the hardware units and transmitting the acquired information data to the third-party plug-in module, and meanwhile, the hardware module receives instruction data returned by the third-party plug-in module and executes related instructions;
the third-party plug-in module is used for transmitting data information between the hardware module and the third-party server module;
the third-party server module is used for receiving the data information reported by the third-party plug-in module and pushing instruction data to the third-party plug-in module;
the hardware module and the third-party plug-in module transmit data information in a broadcasting mode; the information data of the hardware unit acquired by the hardware module at least comprises information data representing parameters and states of the hardware unit.
2. The system for accessing the plug-in to the third-party server based on the Android system as claimed in claim 1, wherein the third-party plug-in module is an Android installation package.
3. The system for accessing a third-party server through a plug-in based on an Android system as claimed in claim 1, wherein the hardware module comprises a hardware unit customized according to the Android system, and the third-party plug-in module can access a network through the hardware module.
4. A method for accessing a plug-in to a third-party server based on an Android system is characterized by comprising the system for accessing the plug-in to the third-party server based on the Android system as claimed in claim 1, and further comprising an information reporting process and an instruction execution process; wherein,
the information reporting process comprises the following steps:
A1. the hardware module acquires information data of each hardware unit, packages the acquired information data into a data packet and transmits the data packet to the third-party plug-in module; the information data of the hardware unit acquired by the hardware module at least comprises information data representing parameters and states of the hardware unit;
A2. the third-party plug-in module receives the data packet and analyzes the information contained in the data packet, and then reports the information acquired by analysis to the third-party server module;
A3. the third-party server module receives the information reported by the third-party plug-in module and completes corresponding actions;
the execution instruction flow comprises the following steps:
B1. the third-party server module pushes an instruction data packet to the third-party plug-in module, wherein the instruction data packet comprises an instruction to be executed by a hardware module;
B2. the third-party plug-in module receives and analyzes the instruction data packet pushed by the third-party server module, and packs and transmits the obtained instruction data to the hardware module;
B3. and the hardware module receives and analyzes the data information returned by the third-party plug-in module and executes the instruction obtained according to the analysis.
5. The method for accessing the third-party server through the plug-in based on the Android system as claimed in claim 4, wherein the data information is transmitted between the hardware module and the third-party plug-in module in a broadcast manner.
6. The method for accessing the third-party server through the Android system-based plug-in module according to claim 4, wherein the third-party plug-in module is an Android installation package.
CN201710708734.9A 2017-08-17 2017-08-17 System and method for accessing plug-in to third-party server based on Android system Active CN107528895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710708734.9A CN107528895B (en) 2017-08-17 2017-08-17 System and method for accessing plug-in to third-party server based on Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710708734.9A CN107528895B (en) 2017-08-17 2017-08-17 System and method for accessing plug-in to third-party server based on Android system

Publications (2)

Publication Number Publication Date
CN107528895A CN107528895A (en) 2017-12-29
CN107528895B true CN107528895B (en) 2020-10-23

Family

ID=60681486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710708734.9A Active CN107528895B (en) 2017-08-17 2017-08-17 System and method for accessing plug-in to third-party server based on Android system

Country Status (1)

Country Link
CN (1) CN107528895B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256254A (en) * 2011-01-20 2011-11-23 北京开心人信息技术有限公司 Method and system for securely accessing wireless application protocol (WAP) platform by third-party component
WO2012138046A1 (en) * 2011-04-04 2012-10-11 주식회사 인프라웨어테크놀러지 Terminal device and method for executing an android application on a general-purpose operating system, and computer-readable recording medium for same
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119386A (en) * 2007-07-13 2008-02-06 腾讯科技(深圳)有限公司 System and method for implementing third party client terminal to add to game
CN105045596A (en) * 2015-07-31 2015-11-11 百度在线网络技术(北京)有限公司 Plug-in calling method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256254A (en) * 2011-01-20 2011-11-23 北京开心人信息技术有限公司 Method and system for securely accessing wireless application protocol (WAP) platform by third-party component
WO2012138046A1 (en) * 2011-04-04 2012-10-11 주식회사 인프라웨어테크놀러지 Terminal device and method for executing an android application on a general-purpose operating system, and computer-readable recording medium for same
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system

Also Published As

Publication number Publication date
CN107528895A (en) 2017-12-29

Similar Documents

Publication Publication Date Title
US10469600B2 (en) Local Proxy for service discovery
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN114253793A (en) Dynamic tracking control
CN112583883A (en) Method and apparatus for aggregating telemetry data in a marginal environment
CN110429708B (en) Method and system for realizing plug and play of power distribution equipment
CN111343020A (en) Unified management method and device for multi-protocol Internet of things equipment
CN107179697A (en) Intelligent household equipment control method, device and system
CN105052076B (en) Network element management system and network element management method based on cloud computing
CN110113381A (en) The method and device of theme is subscribed in a kind of block chain
CN104022922A (en) Mobile terminal, heartbeat forwarding server and heartbeat information transmitting method and system
CN104144466A (en) Access method for sensor in Internet of Things, Internet of Things system and server
CN107704365B (en) Monitoring data reporting method and device for mobile terminal hybrid application
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
CN111313933A (en) Meter reading method, device and system
CN110781058A (en) Method, device, equipment and medium for acquiring application performance data of mobile terminal
CN102148702B (en) Method for managing network by utilizing network configuration protocol
CN107528895B (en) System and method for accessing plug-in to third-party server based on Android system
CN112534399A (en) Semantic-based Internet of things equipment data processing related application program installation method and device
CN106302432B (en) A kind of communication device and control method based on car networking
CN110430110B (en) On-site bus gateway and protocol conversion method thereof
CN112749158A (en) Energy system data processing method and device
CN114500508B (en) Gas meter upgrading method and device and electronic equipment
CN103257911B (en) A kind of model testing Tool integration method based on SOA framework
CN114576828B (en) Communication management method, bifurcation box, multi-split air conditioning system and 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