Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No Marek BABIUCH *, Martin HNIK **

Similar documents
Transactions of the VŠB Technical University of Ostrava, Mechanical Series. article No. 2002

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No. 1710

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2008, vol. LIV, article No. 1612

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 1, 2010, vol. LVI article No. 1752

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No. 1694

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 1, 2009, vol. LV article No. 1674

SELECTION OF WHEEL CHASSIS FOR MOBILE ROBOTS IN COURSE OF PRODUCTION PROCESSES AUTOMATIZATION

1 INTRODUCTION. Technical University of Ostrava, 17.listopadu 15, Ostrava-Poruba, tel. (+420) ,

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No. 1701

Control System for the Prototype of Hydrogen Powered Car

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No Pavel SMUTNÝ *

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2010, vol. LVI article No. 1794

System for measuring a radiation pattern of the light source

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No. 1686

THE GROUP OF IP TELEPHONY IN CESNET2 NETWORK

Analysis of Broadcast Authentication Mechanism in Selected Network Topologies

S u p p l e m e n t TQS3 MODBUS. Description of product modification with MODBUS RTU. 31. March 2008 w w w. p a p o u c h.

INNOVATIVE ACCESS TO SOLUTION "TWO-DIMENSIONAL" CUTTING PROBLEM IN METALLURGICAL OPERATIONS. Martin LAMPA, Kamila JANOVSKÁ, Petr BESTA

Web Services Introduction to Web Services Web Services can convert your applications into Web-applications. Web Services are published, found, and

The Precision Simulation of the First Generation Matrix Converter M. Bednář

TEST BENCHES COMPUTER CONTROL SOFTWARE TOOLS DEVELOPMENT

EK307 Lab: Microcontrollers

Information system of railway undertakings train track requirements

ICT Support of PV Education and PV Data Web Presentation at FEE CTU in Prague

1 NEW FACE OF MICROSOFT VISUAL STUDIO 2005

THE COMPUTER SIMULATION FOR INVESTMENT CASTING FROM SUPER-ALLOYS NI Ing. Aleš Herman *

KANGO-VLAK NEW SYSTEM OF TRAINS ORDERING

We recommend you review this before taking an ActiveVOS course or before you use ActiveVOS Designer.

(9A05803) WEB SERVICES (ELECTIVE - III)

Mobile Policy in Enterprise Information System

Basic Profile 1.0. Promoting Web Services Interoperability Across Platforms, Applications and Programming Languages

Chapter 2 Introduction

COURSE 20487B: DEVELOPING WINDOWS AZURE AND WEB SERVICES

Analysis and Selection of Web Service Technologies

Technical Overview. Access control lists define the users, groups, and roles that can access content as well as the operations that can be performed.

Distributed System for Remote Monitoring and Control Greenhouse Environment

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS ELECTRICAL ENGINEERING DEPARTMENT

Finite State Automata as a Data Storage

APPROACHES TO THE PROCESS CAPABILITY ANALYSIS IN THE CASE OF NON- NORMALLY DISTRIBUTED PRODUCT QUALITY CHARACTERISTIC

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No. 1711

Evolutionary Algorithms Selected Basic Topics and Terms

Title of the Paper (Style Heading)

Title of the paper (Style Heading)

Traditional Web Based Systems

Crop Production Recognize Frameworks using Mobile Enterprise Application

IEEE Standard and XML Web Services: a Powerful Combination to Build Distributed Measurement and Control Systems

Sborník vědeckých prací Vysoké školy báňské - Technické univerzity Ostrava číslo 1, rok 2006, ročník LII, řada strojní článek č.

Recruitment Agency Based on SOA and XML Web Services

Web Services and SOA. The OWASP Foundation Laurent PETROQUE. System Engineer, F5 Networks

SOAP Specification. 3 major parts. SOAP envelope specification. Data encoding rules. RPC conventions

Microsoft.NET: The Overview

Web Services in Cincom VisualWorks. WHITE PAPER Cincom In-depth Analysis and Review

Information management software White paper. IBM Informix portfolio: executive overview.

INTEGRATION OF AD HOC WIRELESS SENSOR NETWORKS IN A VIRTUAL INSTRUMENTATION CONFIGURATION

Type-2 fuzzy controller in ZigBee network

User Interface Modelling Based on the Graph Transformations of Conceptual Data Model

XML Web Services Basics

SIMULINK AS A TOOL FOR PROTOTYPING RECONFIGURABLE IMAGE PROCESSING APPLICATIONS

Implementing a Ground Service- Oriented Architecture (SOA) March 28, 2006

Sriram Krishnan, Ph.D. NBCR Summer Institute, August 2010

METADATA INTERCHANGE IN SERVICE BASED ARCHITECTURE

Differentiating Parameters for Selecting Simple Object Access Protocol (SOAP) vs. Representational State Transfer (REST) Based Architecture

Data-and-Compute Intensive Processing: Middle-tier or Database? Trade-Offs and Case Study. Kuassi Mensah Marcelo Ochoa Oracle

Advanced Programming Using Visual Basic 2008

Triadic Formal Concept Analysis within Multi Agent Systems

Developing Windows Azure and Web Services

XML Web Service? A programmable component Provides a particular function for an application Can be published, located, and invoked across the Web

Applying Microservices in Webservices, with An Implementation Idea

Development of Equipment for 3-D Picturing and Measurement of the Brain Ventricles

bold The requirements for this software are: Software must be able to build, debug, run, and col ect data from Discrete Event Simulation models

Incorporating applications to a Service Oriented Architecture

Web Services. Brian A. LaMacchia. Software Architect Windows Trusted Platform Technologies Microsoft Corporation

Mobile Communications Client Server System for Stock Exchange e-services Access

INFORMATION SYSTEM FOR MANAGEMENT AND ANALYSIS OF MEDICAL DATA

EtherCAT with MORPHEE 2, D2T s Automation System A fast and reliable communication with the test bed

WWW, REST, and Web Services

The Design of The Integration System for OTOP Products Data Using Web Services Technology, Thailand

Sql Server 2005 Transfer Schema Ownership

A short introduction to Web Services

Distributed Systems. Web Services (WS) and Service Oriented Architectures (SOA) László Böszörményi Distributed Systems Web Services - 1

Virtual Credit Card Processing System

Transport (http) Encoding (XML) Standard Structure (SOAP) Description (WSDL) Discovery (UDDI - platform independent XML)

Boost Accuracy & Productivity

[MS20487]: Developing Windows Azure and Web Services

CHAPTER IV Computerized Data-acquisition Systems

THE INFORMATION CONTAINED IN THIS DOCUMENT IS CONFIDENTIAL AND PROPRIETARY TO TRAVELPORT.

OPC AND ITS STRATEGIES FOR REDUNDANCY. Pavan Kumar Pendli, Vadim Gorbatchev, Michael Schwarz, Josef Börcsök

Introduction to Autodesk MapGuide EnterpriseChapter1:

WSDL Interface of Services for Distributed Search in Databases

INFLUENCE OF INITIAL SETUP OF PARTS BEFORE ROUGHNESS EVALUATION

Automatic Classification of Attacks on IP Telephony

Configuring Communication Services

Project Final Report Internet Ready Refrigerator Inventory Control System

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies

SOLVING PROBLEMS ON THE TEACHING METHODS OF LINEAR ALGEBRA THROUGH TECHNOLOGY PLATFORM DOT.NET

Introduction to Autodesk MapGuide EnterpriseChapter1:

I R TECHNICAL RESEARCH REPORT. An XML-Based Approach to Integrating Semiconductor Process Information. by Jing Chen, Raymond A. Adomaitis TR

Perceptive Document Composition

Layout of hierarchical flow charts

BRA BIHAR UNIVERSITY, MUZAFFARPUR DIRECTORATE OF DISTANCE EDUCATION

Transcription:

Transactions of the VŠB Technical University of Ostrava, Mechanical Series No. 2, 2009, vol. LV, article No. 1680 Marek BABIUCH *, Martin HNIK ** USING TECHNOLOGY OF.NET WEB SERVICES IN THE AREA OF AUTOMATION VYUŽITÍ TECHNOLOGIE.NET WEBOVÝCH SLUŽEB V PROSTŘEDÍ AUTOMATIZACE Abstract This work deals with a technology for data exchange XML Web Services and its application to specific tasks. One of the applications created allows you to monitor and control the real thermal process through a number of client devices, independent of the operating system, the type or their location. The thermal process can be controlled, for example, by another process, a website or a mobile phone. The system is designed from its base and contains three main parts. The hardware part consists from a measuring card, actuators and temperature sensors. The core application is a server that is running the XML Web Service, Windows Service and SQL Server. Client software for mobile phones and web sites was also created. Abstrakt Tato práce se zabývá technologií pro výměnu dat XML Web Services a jejím uplatnění na konkrétních úlohách. Jedna z vytvořených aplikací umožňuje monitorovat a ovládat reálný tepelný proces pomocí mnoha klientských zařízení nezávislých na použitém operačním systému, druhu nebo např. poloze. Tepelný proces tak může být ovládán např. jiným procesem, webovou stránkou nebo mobilním telefonem. Systém je vytvořen od základu a obsahuje tři hlavní části. Hardwarová část je realizovaná pomocí měřicí karty, akčních členů a teplotních senzorů. Jádrem aplikace je server, na kterém běží XML Web Service, Windows Service a SQL Server. Byl vytvořen také klientský software pro mobilní telefony a webové stránky. 1 INTRODUCTION A Web service is a tool for communication and exchange of information in the Internet environment. This tool is open to a wide range of different applications communicating with each other. Web service clients may not know the detailed description of the service, but they can find it out at any time. A binary form of data transmission may not be identical for all various operating systems. On the other hand, the Web services using XML allows uniform data transition, regardless of the client operating system. [Kačmář, 2001]. If we want to communicate with a Web service, it is just a matter of a simple sending the appropriate XML message via HTTP protocol. Since each device that is designed to support Internet HTTP protocol, and because many of the programming languages allow you to access XML parser, the restrictions on the types of applications that can use Web services is reduced. In fact, most programming environments contain a set of tools of high levels that make communication with the Web service as easy as calling a local function [MacDonald and others 2006]. * Ing., Ph.D., Department ATŘ-352, Faculty of Mechanical Engineering VŠB Technical University of Ostrava, 17. listopadu 15, 708 33 Ostrava - Poruba, Czech Republic, (+420) 59 732 4173, e-mail marek.babiuch@vsb.cz ** Ing.(student graduated 2009), Department ATŘ-352, Faculty of Mechanical Engineering VŠB Technical University of Ostrava, 17. listopadu 15, 708 33 Ostrava - Poruba, Czech Republic, (+420) 59 732 4173, e- mail hnik.martin@gmail.com 1

2 PRINCIPLE OF A WEB SERVICES AND ITS STANDARDS With the help of Web services it can be relatively easy to apply business logic of someone else. This methodology is similar to the methodologies used by programmers in the case of API libraries, classes and components. The main difference is that Web services can be located on a remote server and administrated by another company [MacDonald and others 2006]. The key to the success of Web services is that they are based on open standards, and that these standards are accepted by large companies as Microsoft, IBM, Sun and others. When building web services several specifications are used: Web Service Discovery UDDI (Universal Description, Discovery and Integrating) Description of Web Services (Web Services Description Language) SOAP Web Service Call XML, XML Scheme Data Coding HTTP, SMTP Data Transport Standard for trade register creating, in which companies and web services are registered with corresponding URL address and WSDL contact. Creating of web services interface definition. WSDL document announces known methods, parameters and returned values and way of communication to the client. Format of the message, which is used for information coding (for example data values) before their delivering to web service. All communication with web services is executed through this protocol. SOAP messages are transmitted via HTTP channels. Fig. 1 Web services standards 3 APPLICATION OF WEB SERVICES IN AUTOMATION The power of Web services is primarily in their universality and independence from the terminal device. Speed of a Web service response is directly proportional to the speed of a response between a terminal client and a transfer rate of a XML document, thus the volume of transmitted data. Since the XML format is designed in a similar way as a text format, more data is transmitted than for the binary format file transfer. Disadvantage may then be when compared to the other solutions the transferring larger volume of data. Thanks to the advances in data transfer rates is this disadvantage becoming less significant. This technology finds an application in technological processes and measurements, which do not require the system response in milliseconds, but the response is sufficient in seconds or even tens of seconds. The XML format also allows storing binary files and therefore the picture. A typical example of using it may be a system for data acquisition from the production line, monitoring lines using a webcam, the measurement of temperature in operation, the control of incineration of biomass, etc. An example of a simple scheme of a Web services application can be as following: 2

Fig. 2 Application of thermal process monitoring 4 SYSTEM APPLICATION FOR TEMPERATURE MONITORING As a result of a temperature system monitoring task is the application that measures data, evaluates them and saves them in a database and using Web services provides the data to the client applications. Using Web services this application will ensure seamless communication among all possible types of clients. A part of the task is also a design of individual thermometers for measured values acquisition and a client for mobile devices. 4.1 A measured process The task of this layer is to capture analog values of variables. In this case it is a task of temperature monitoring using four analog thermometers LM35D. With the thermometer a linear characteristic of measured temperature is obtained depending on the output voltage. This system is powered by a data acquisition card. A data acquisition card LABJACK UE9 also records the output voltage. The card can communicate with the server in several ways through a USB port or using Ethernet. A cheaper option for this system is to use Ethernet, mainly due to the possibility of having significantly greater distance between the measuring card and the server. 4.2 The server The processing, storing and providing data to clients is on the server using Web services. For these purposes a process solution was developed called WebM (see Chapter 5), including an application for communicating with SQL Server, a Window system service application for easy management of Windows services, the installation package and a Web service. The advantage of having only one system solution is easy scalability of the system. This is because different applications share common parts among themselves and each of them exist in this system solution only once. If the system needs to be modified, for example, for another data acquisition card, it is possible to change only one class within the entire system solution and the other parts will not be 3

affected by this change. An application on the server side (WebM) is created using Microsoft. Net Framework in C # language. 4.3 Client In this layer the system has been running for just displaying the measured data, or further processing by other Web services. Clients can communicate with the server using a Web service by HTTP or SMTP protocol. A part of the system is an example client for mobile and portable devices (see a client application for mobile devices). 5 APPLICATION IMPLEMENTATION The solution on a server side was designed as the part of a system for temperature measurement and has several important tasks: Communication with a data acquisition card LabJack UE9, Processing measured values, Conversion of measured voltage into degrees of Celsius, Storing values into SQL database, Providing data to clients, etc. As a database server the Microsoft SQL Server 2008 was selected, on which a database is located. The database server is configured for remote connections. The server must handle client requests coming from the Internet. Requirement processing is controlled by Microsoft IIS (Internet Information Server). It was necessary to configure it and maintain its security. The application was created as a solution built on the Microsoft. Net Framework version 3.5. As a common programming language for all applications the C # language was selected and the solution was developed using Microsoft Visual Studio 2008. The application is located in the namespace called WebM and individual applications share among themselves their components and classes. The different parts of the application are shown in the following diagram: Fig. 3 Architecture of Monitoring Application 4

A client application for mobile devices, such as an example of a client consuming a Web service, was prepared for an application for mobile devices. The application is built on technology, Adobe Flash Lite 2.0. This was chosen primarily for its versatility. The new component is completely rewritten from the previous version and uses the new improved algorithms for drawing; it has a smaller size and is processing with a multiple-higher speed. The application allows running in two modes XML Web Service and the so-called quick mode. Control functions are enabled using a mobile phone keypad. The left and right arrows the program toggles the selected sensor, keys 1 to 4 select the sensor directly. The user interface software for mobile devices is shown in the following Figure. Selection of Sensor Fig. 4 Mobile Client consuming web services 6 CONCLUSION This contribution described a method of resolving temperature monitoring application using the latest IT technologies. The application is divided into three main parts. The first one named as the hardware layer had the task of selecting and constructing an appropriate set of thermometers. The resulting connection of LM35DZ thermometers is suitable for measurements at greater distances and for stabilizing time of thermometer about 8s. Another layer of this system is a solution on the server side. For this purpose a complete solution called WebM is implemented in C # shared by all the other parts of the system. This solution is advanced using the latest developer component WebM of Microsoft technology. A result of this WebM component application is an effective work in a code and easy extension of a system. The last part of the application is a creation of a client for mobile devices. The result is a functional application for mobile phones, which plots a current course of the measured data and allows you to switch between the 4 heat sensors. ACKNOWLEDGEMENT The paper is supported by grant project of MŠMT ČR SPECIFIC RESEARCH No. 2101/352. REFERENCES [1] ADOBE SYSTEMS. 2007. Getting started with Flash Lite 2.x. [Online] 2007. http://livedocs.adobe.com/flash/9.0/main/flashlite2_gettingstarted.pdf. [2] DUTHIE, G. A. 2003. ASP.NET Krok za krokem. Praha : Mobil Media, 2003. p. 512. ISBN 80-86593-33-9. 5

[3] HW SERVER. 2005. USB/Ethernet měřicí karta LabJack UE9. [Online] 2005. http://hw.cz/produkty/obecne-produkty/art1349-usb-ethernet-merici-karta-labjack- UE9.html. [4] HYDE, J. Learning USB by Doing. [Online] 2006. http://www.devasys.com/pd11x/jhwp. pdf. [5] KAČMÁŘ, D. 2001. Programujeme.NET aplikace ve Visual Studiu.NET. Praha : Computer Press, 2001. ISBN 80-7226-569-5. [6] LABJACK CORPORATION. LabJack UE9. [Online] [Citace: 4. 11. 2008] http://www.labjack.com/labjack_ue9.php?prodid=56. [7] MACDONALD, M. & SZPUSZTA, M. 2006. ASP.NET 2.0 a C# - tvorba dynamických stránek profesionálně. Praha : Zoner Press, 2006. ISBN 80-86815-38-2. [8] MICROSOFT CORPORATION. System.IO.Ports Namespace. [Online] http://msdn2.microsoft.com/en-us/library/system.io.ports.aspx. [9] PROSISE, J. 2003. Programování v Microsoft..NET. Praha : Computer Press, 2003. p. 736. ISBN 80-7226-879. Fig. 5 Remote temperature monitoring 6