CN104333592A - Servitization method of electromagnetic terminal - Google Patents

Servitization method of electromagnetic terminal Download PDF

Info

Publication number
CN104333592A
CN104333592A CN201410612646.5A CN201410612646A CN104333592A CN 104333592 A CN104333592 A CN 104333592A CN 201410612646 A CN201410612646 A CN 201410612646A CN 104333592 A CN104333592 A CN 104333592A
Authority
CN
China
Prior art keywords
service
request
data
terminal
electromagnetism
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
CN201410612646.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.)
CETC 2 Research Institute
Southwest China Research Institute Electronic Equipment
Original Assignee
CETC 2 Research Institute
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 CETC 2 Research Institute filed Critical CETC 2 Research Institute
Priority to CN201410612646.5A priority Critical patent/CN104333592A/en
Publication of CN104333592A publication Critical patent/CN104333592A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a servitization method of an electromagnetic terminal. The servitization method comprises the steps of designing each function of the electromagnetic terminal into RESTful Web Service with a standardized access interface and marking each service by use of a URI, after the electromagnetic terminal receives an HTTP request, analyzing the URI from the request and then distributing the request to specific Web Service running on a service architecture, designing the access mode of each specific function of the electromagnetic terminal into a standardized HTTP request method, and after the electromagnetic terminal receives the HTTP request, analyzing an HTTP method type from the request and determining the access mode to the specific function; the service response of the electromagnetic terminal comprises a data request service, a service control service and a working state service. The servitization method of the electromagnetic terminal is used for solving the standardized integration problem of the heterogeneous electromagnetic terminal in a large-sized electromagnetic network system.

Description

A kind of service method of electromagnetism terminal
Technical field
The invention belongs to electronic technology field, be specifically related to a kind of service method of electromagnetism terminal.
Background technology
The microminiaturized electromagnetism terminal possessing simple electromagnetism transmitting-receiving ability and disposal ability is in a large number comprised in radio sensing network environment.Under prior art system, these terminals do not have directly perceived, standardized access interface, practicality, durability are poor, are difficult to form loose coupling of certain scale, the electromagnetism group network system of scalable, easy expansion, cannot form unified professional ability in electromagnetic application field.
It is more that current civilian internet arena applies RESTful Web Service on PC hardware platform, but have no the application to this technology on this microminiaturized hardware platform of electromagnetism field of terminal.
Summary of the invention
In order to overcome the above-mentioned shortcoming of prior art, the invention provides a kind of service method of electromagnetism terminal, by electromagnetism terminal is expressed as RESTful Web Service, the electromagnetism terminal of resource-constrained realizes RESTful service framework, make the terminal under different application scene possess unified control interface, use identical Data Serialization agreement.
The technical solution adopted for the present invention to solve the technical problems is: a kind of service method of electromagnetism terminal, comprises following two parts:
One, electromagnetism Terminal Service maps:
1) by each function in electromagnetism terminal, be designed to the RESTful Web Service having standardized access interface, identify each service by URI; After electromagnetism terminal receives HTTP request, from request, parse URI, and then by Requests routing on the particular Web Service operated on service framework;
2) by the access mode of specific function each in electromagnetism terminal, standardized HTTP request method is designed to; After electromagnetism terminal receives HTTP request, from request, parse HTTP Method type, determine the access mode to specific function;
Two, electromagnetism Terminal Service response: comprise data request service, Service control service and operating state service, wherein:
1) data request service receives external user data acquisition, state acquisition request, and the environment electromagnetics data collected are returned to requestor;
2) Service control service reception external user function access, parameter control request, according to the content of request, complete and start or stop corresponding function, change the runtime parameter of appointed function module run, and return user operation by synchronous or asynchronous mode and whether successfully respond;
3) request of operating state service reception external user start/stop terminal, complete operation also returns operating result.
Compared with prior art, good effect of the present invention is: the invention provides a kind of REST style service method realized in electromagnetism terminal, terminal is expressed as the RESTful Web Service following http protocol, it is made to possess standard, flexible, easy-to-use interface, slitless connection can be carried out with the many existing ripe programming techniques of civilian software field, make the integrated convenient, quick of secondary development and extensive electromagnetism group network system.User even can directly be conducted interviews to terminal by general purpose Web browser and control.
Electromagnetism Terminal Service method provided by the invention can bring following benefit: the integrated efficiency improving large-scale distributed electromagnetism group network system, reduces system development costs; Dynamic retractility when supporting the operation of isomery electromagnetism terminal group network system; Make underlying basis technology developer and electromagnetism service design person can be absorbed in respective field, promote the Parallel Development in different technologies field.
Electromagnetism terminal is embodied as the RESTful Web Service possessing unified, flexible, easy-to-use interface by the present invention, and the standardization solving isomery electromagnetism terminal in large-scale electromagnetism group network system is integrated, can make following contribution for large-scale electromagnetism group network system:
1) electromagnetism terminal can dynamically add when system cloud gray model and exit, and makes electromagnetism group network system can dynamic retractility;
2) standardized control interface, data-interface make electromagnetism terminal can be adapted to different Distributed Application scenes, make business function dynamic scalable;
3) same electromagnetism terminal can share by multiple different system, improve resource utilization;
4) electromagnetism terminal dynamically can be replaced when system cloud gray model, and elevator system fault-tolerant ability makes system possess high availability;
5) electromagnetism terminal can carry out the update of separation of software and hardware, can promote electromagnetism terminal capability sooner, and be conducive to the Parallel Development of each major field.
Accompanying drawing explanation
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is the hardware comprising modules figure of electromagnetism terminal;
Fig. 2 is the software architecture schematic diagram of electromagnetism terminal;
Fig. 3 is the flow chart of the inventive method.
Embodiment
In electromagnetic space safety and protection field, distributed micro electromagnetic termination function is very simple, generally only carries out electromagnetic reception, transmitting, and some simple data processings.As shown in Figure 1, the hardware platform of electromagnetism terminal comprises: embedded CPU module, FPGA module, RF module, Anneta module and communication module etc., wherein:
Embedded CPU module radio frequency front end and FPGA control; FPGA module mainly realizes the code and decode of VITA 49 standard and the control of radio frequency module; RF module and Anneta module mainly carry out A/D, D/A conversion; Communication module externally provides the access interface of standard.
As shown in Figure 2, the present invention, by realizing the code and decode of VITA 49 standard on FPGA, realizes the standardized data transmission of FPGA module, RF module; Embedded CPU module realizes RESTful service framework, this framework externally provides support the access of REST style of HTTP standard operation (GET, POST, PUT, DELETE etc.) and control interface, receive the carrier data such as function, parameter meeting VITA 49/JSON/XML Data Serialization agreement, these carrier data will be turned to the message meeting VITA 49 consensus standard by sequence, be issued to FPGA and RF front end and carry out function access and state modulator.
The electromagnetism Terminal Service method that the present invention proposes, as shown in Figure 3, comprises following two parts:
One, electromagnetism Terminal Service maps:
1) by each function (such as electromagnetic data collection, electromagnetic signal emitting etc.) in electromagnetism terminal, be designed to the RESTful Web Service having standardized access interface, identify each service by URI; After electromagnetism terminal receives HTTP request, from request, parse URI, and then by Requests routing on the particular Web Service operated on service framework;
2) by the access mode of specific function each in electromagnetism terminal, standardized HTTP request method is designed to; After electromagnetism terminal receives HTTP request, from request, parse HTTP Method type, determine the access mode to specific function.
Achieve the access interface of electromagnetism terminal standard like this, can, by HTTP request access terminal as access Web, can be integrated in large scale system easily.
Two, electromagnetism Terminal Service response:
Comprise data request service, Service control service and operating state service, wherein:
1) data request service receives the requests such as external user data acquisition, state acquisition, and the environment electromagnetics data collected are returned to requestor:
The electromagnetic data received by front-end collection is directly or after carrying out simple process, sequence turns to standardized data (such as VITA 49, XML, jason etc.), according to the concrete size of memory capacity, the historical data of the corresponding time span of buffer memory in memory, when external data requestor initiates request of data, the respective service run reads data from buffer memory, by HTTP Response, data is returned to external data requestor by service framework;
Meanwhile, the data message of collection also can after serializing completes, and other modes accepted by external users directly carry out data-pushing;
2) request such as the access of Service control service reception external user function, state modulator, according to request content, complete startup, stop corresponding function, whether change the operations such as the runtime parameter of the appointed function module run, returning user operation by synchronous or asynchronous mode successfully responds;
3) request of operating state service reception external user start/stop terminal, complete operation also returns operating result.
In time finding that certain Web Service can not meet service logic needs, only needing on service framework, develop the Web Service made new advances, the replacement on software being carried out to terminal, without the need to redesigning hardware.In time finding that the fractional hardware module of certain terminal cannot meet performance need, only need to design the stronger hardware module of performance and replace original module, without the need to redesigning software.

Claims (2)

1. a service method for electromagnetism terminal, is characterized in that: comprise following two parts:
One, electromagnetism Terminal Service maps:
1) by each function in electromagnetism terminal, be designed to the RESTful Web Service having standardized access interface, identify each service by URI; After electromagnetism terminal receives HTTP request, from request, parse URI, and then by Requests routing on the particular Web Service operated on service framework;
2) by the access mode of specific function each in electromagnetism terminal, standardized HTTP request method is designed to; After electromagnetism terminal receives HTTP request, from request, parse HTTP Method type, determine the access mode to specific function;
Two, electromagnetism Terminal Service response: comprise data request service, Service control service and operating state service, wherein:
1) data request service receives external user data acquisition, state acquisition request, and the environment electromagnetics data collected are returned to requestor;
2) Service control service reception external user function access, parameter control request, according to the content of request, complete and start or stop corresponding function, change the runtime parameter of appointed function module run, and return user operation by synchronous or asynchronous mode and whether successfully respond;
3) request of operating state service reception external user start/stop terminal, complete operation also returns operating result.
2. the service method of a kind of electromagnetism terminal according to claim 1, is characterized in that: the described mode environment electromagnetics data collected being returned to requestor comprises:
1) electromagnetic data received by front-end collection is directly or after carrying out simple process, sequence turns to standardized data, then according to the concrete size of memory capacity, and the historical data of the corresponding time span of buffer memory in memory; When external data requestor initiates request of data, the respective service of operation reads data from buffer memory, by HTTP Response, data is returned to external data requestor by service framework;
2) data message gathered is after serializing completes, and the mode accepted by external users directly carries out data-pushing.
CN201410612646.5A 2014-11-04 2014-11-04 Servitization method of electromagnetic terminal Pending CN104333592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410612646.5A CN104333592A (en) 2014-11-04 2014-11-04 Servitization method of electromagnetic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410612646.5A CN104333592A (en) 2014-11-04 2014-11-04 Servitization method of electromagnetic terminal

Publications (1)

Publication Number Publication Date
CN104333592A true CN104333592A (en) 2015-02-04

Family

ID=52408241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410612646.5A Pending CN104333592A (en) 2014-11-04 2014-11-04 Servitization method of electromagnetic terminal

Country Status (1)

Country Link
CN (1) CN104333592A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070153501A1 (en) * 2002-09-19 2007-07-05 Kinsman William E Hands free magnification eyewear
CN103002047A (en) * 2012-12-19 2013-03-27 上海斐讯数据通信技术有限公司 RPC (Remote Procedure Call) type WEB SOA (Service-Oriented Architecture) method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070153501A1 (en) * 2002-09-19 2007-07-05 Kinsman William E Hands free magnification eyewear
CN103002047A (en) * 2012-12-19 2013-03-27 上海斐讯数据通信技术有限公司 RPC (Remote Procedure Call) type WEB SOA (Service-Oriented Architecture) method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程冬梅等: "基于REST架构风格的物联网服务平台研发", 《计算机工程与应用》 *

Similar Documents

Publication Publication Date Title
Distefano et al. A utility paradigm for IoT: The sensing Cloud
CN108449418B (en) Hybrid cloud platform management system and method
Khan et al. Wireless sensor network virtualization: early architecture and research perspectives
KR101531834B1 (en) System for Resource Management in Mobile Cloud computing and Method thereof
US11172008B2 (en) Data annotation as a service for IoT systems
Pizzolli et al. Cloud4iot: A heterogeneous, distributed and autonomic cloud platform for the iot
US20150074173A1 (en) Generic distributed processing for multi-agent systems
CN103414579A (en) Cross-platform monitoring system applicable to cloud computing and monitoring method thereof
CN102368716A (en) Data acquisition method of network configuration protocol and network configuration server
KR101602099B1 (en) System for Service inter-working based REST in Internet of Things and Method thereof
CN106412009A (en) Interface calling method and device
KR20130079864A (en) Hierarchical scheduling apparatus and method for cloud computing
CN114374602B (en) Master control equipment configuration method and device, cloud server and storage medium
Mineraud et al. Contemporary internet of things platforms
CN104268143A (en) XML (extensible markup language) data processing method and device
CN102375894A (en) Method for managing different types of file systems
CN103581273A (en) Service executing method, device and system for distributed system
Distefano et al. A hypervisor for infrastructure-enabled sensing clouds
CN104333592A (en) Servitization method of electromagnetic terminal
CN105070002A (en) Electricity information acquisition terminal and implementation method thereof
Jayavel et al. Survey of migration, integration and interconnection techniques of data centric networks to internet-towards Internet of Things (IoT)
Zhou et al. Mobile transparent computing: A novel user-centric approach to unify device, edge, and cloud
KR20160119370A (en) System for interoperation network of IoT and network of Zigbee based DDS and Method thereof
Li An integrated web service framework for mobile device hosted web service and its performance analysis
CN109597679A (en) A kind of distributed computing processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150204