Smart Sensor in Wide Area Network Environment How can sensors - - PowerPoint PPT Presentation

smart sensor in wide area network environment
SMART_READER_LITE
LIVE PREVIEW

Smart Sensor in Wide Area Network Environment How can sensors - - PowerPoint PPT Presentation

Smart Sensor in Wide Area Network Environment How can sensors improve your safety? Tadeusz Pietraszek April 25, 2003 To feel more is to know more Outline Introduction Need for monitoring system Issues of gas detection


slide-1
SLIDE 1

Smart Sensor in Wide Area Network Environment

How can sensors improve your safety?

Tadeusz Pietraszek

April 25, 2003

slide-2
SLIDE 2

“To feel more is to know more”

slide-3
SLIDE 3

Outline

  • Introduction
  • Need for monitoring system
  • Issues of gas detection and measurement systems
  • The concept of distributed monitoring system

– Microprocessor based „Smart” sensor with semiconductor detector – TINI based control station – Utility software – Database for storing measurements

  • Summary and Conclusions?
  • Demo
slide-4
SLIDE 4

Introduction

  • “Smart Sensor in Wide Area Network Environment”
  • Based on M.Sc. Thesis

– Silesian University of Technology – ATEST-Gaz company

  • Involved research

– Gas measurements, signal processing – Monitoring systems – Java embedded systems

  • Practical implications

– Product currently manufactured and sold – National and EU (awaiting) certificate for industrial gas detectors – Entire system working in a prototype installation

slide-5
SLIDE 5

Need for monitoring system (1)

  • Regulations

– Change in regulations for gas monitoring – Need for monitoring systems in new installations – Modernization of existing installations

  • Example applications of gas monitoring systems

– Coal mines – Chemical plants – Industrial plants – Petrol stations – Boiler houses – Underground parking places – Tunnels – Sewage treatment plants – Swimming pools – ...

slide-6
SLIDE 6

Need for monitoring system (2)

  • System Requirements

– Efficient – Reliable (self diagnosis) – Easy to manage – Serviceable (remote access) – Modular – Database aware – Network aware – Secure – Low cost

  • How existing systems satisfy this
  • How this can be changed
slide-7
SLIDE 7

Issues of gas detection and measurement systems

  • Gas detection, signal processing

– Variety of detection elements – Need for universal processing algorithm

  • “In situ” sensor access

– Means of access – Diagnostics and recalibration – Security issues – Compliance with EX regulations

  • Measurement systems

– Communication bus – capabilities and limitations

  • Application of Java based

controller

– Areas of concern

  • Reliability
  • Speed
  • Resources

– Internet technologies - implications on the system

slide-8
SLIDE 8
  • Introduction
  • Need for monitoring system
  • Issues of gas detection and measurement systems
  • The concept of distributed monitoring system

– Microprocessor based „Smart” sensor with semiconductor detector – Java based controller – Utility software – Database for storing measurements

  • Summary and Conclusions
  • Demo
slide-9
SLIDE 9

The concept of distributed monitoring system

Controller

Operator's console

DB Server WEB Server DB Internet

Configuration Calibration

Gas Detectors

slide-10
SLIDE 10
  • Introduction
  • Need for monitoring system
  • Issues of gas detection and measurement systems
  • The concept of distributed monitoring system

– Microprocessor based „Smart” sensor with semiconductor detector – Java based controller – Utility software – Database for storing measurements

  • Summary and Conclusions
  • Demo
slide-11
SLIDE 11

Microprocessor Smart Sensor (1)

Issues of gas detection and measurements

  • Different types of sensors used in measurement systems

– Semiconductor – Electrochemical – Catalytic combustion (pellistor) – ...

  • Analog signal acquisition
  • Signal processing
  • Measurements, threshold detection and output control
  • Data transmission
slide-12
SLIDE 12

Microprocessor Smart Sensor (2)

  • What it is (input, output)
  • Digital signal processing
  • Data acquisition
  • Extraction
  • Prenormalization
  • Environment compensation and normalization
  • Sensor diagnostics, output control
  • Sensor calibration

– Memory map – Storing multiple entries

n [ppm] R [Ω]

slide-13
SLIDE 13

Microprocessor Smart Sensor (3)

Piecewise linear approximation, dynamic data structures

Fixed block

<current> <not active>

<new>

X X Y Y

  • Sensor characteristics approximation
  • Data structures
slide-14
SLIDE 14

Microprocessor Smart Sensor (4)

Communication protocol

  • Communication protocol – Modbus ASCII

– Standard and common protocol – Can be easily integrated with PLC – Easy to implement on microprocessor with limited resources – class0 compliance

  • Modbus memory map

– Allows to identify type of device, product and software version – Sets standard for existing and future devices

slide-15
SLIDE 15

Microprocessor Smart Sensor (5)

Implementation

slide-16
SLIDE 16
  • Introduction
  • Need for monitoring system
  • Issues of gas detection and measurement systems
  • The concept of distributed monitoring system

– Microprocessor based „Smart” sensor with semiconductor detector – Java based controller – Utility software – Database for storing measurements

  • Summary and Conclusions
  • Demo

Controller

slide-17
SLIDE 17

Java based controller (1)

Controller functions

reading sensor states reading sensor states local control local control HTML pages generation HTML pages generation connecting to TCP/IP network connecting to TCP/IP network storing measurements into database storing measurements into database remote sensor (and controller) configuration remote sensor (and controller) configuration Controller

slide-18
SLIDE 18

Java based controller (2)

Architecture

  • Claim: “Java based microcontroller can be successfully applied

in distributed gas detector system with a limited number of sensors, carrying all required functions”

  • Verify the suitability of Java based embedded platform for the

purposes of the system

– feasibility and ease of implementation of required controller functions – system resources – system performance - sensor read frequency (i.e.number of sensors that can be effectively handled, T90 must be ensured) – system reliability

  • System design should ensure features not inherent to the

platform

– detection of missed deadlines – failure of TCP/IP network should not cause the stop of system critical functions

slide-19
SLIDE 19

Java based controller (3)

TINI architecture

  • TINI - Tiny InterNet Interface

– DS80C390 processor (51’ clone) – Operating System with Java VM, Ethernet controller and TCP/IP stack – Two types of memories EEPROM and static RAM

slide-20
SLIDE 20

Java based controller (4)

DSTINI1

  • Proven and fully functional SIMM-sized computer based on TINI

platform

– Ethernet 10 Base – T controller – processor data and address bus available – 2 serial ports – 512kB FlashROM i 1MB SRAM – RTC

slide-21
SLIDE 21

Java based controller (5)

Java Operating System

  • Multitasking
  • Memory filesystem support
  • Standard Java classes

– TCP/IP connections handling – HTTP server – Serial interfaces

  • Other protocols can be easily implemented

– Modbus – XML-RPC

slide-22
SLIDE 22

Java based controller (6)

XML

  • WWW pages in XML format

– Measurement results can be easily extracted and processed – Data can be used by many standard applications – Changes in visualization do not require software modifications

  • Transformation XML + XSL -> HTML

– Can be done in XML compliant browser (e.g. IE 6.0)

  • Java applets and Macromedia Flash applications can be used

– Client side processing – Greater capabilities than XSL

slide-23
SLIDE 23

Java based controller (7)

XML-RPC

  • Cross-platform standard for distributed processing

– Uses XML encoding – HTML-POST envelope – Libraries available for most of operating systems – 80% SOAP’s capabilities – 20% SOAP complexity

  • Great capabilities - limited speed
  • Remote sensor configuration and database access by means of

XML-RPC

– XML-RPC server implementation (remote access) – XML-RPC client implementation (DB)

slide-24
SLIDE 24

Java based controller (8)

Prototype

slide-25
SLIDE 25

Java based controller (8)

Verification

  • Proved feasibility of TCP/IP network and embedded Java

controller in the design of distributed sensor system.

  • The resources of TINI platform limit the number of sensor

devices to approximately 40 pieces (ensuring T90)

  • Prototype system proved to be reliable, however the system

reliability should be supported by other means

– Hardware – Software

slide-26
SLIDE 26
  • Introduction
  • Need for monitoring system
  • Issues of gas detection and measurements
  • The concept of distributed monitoring system

– Microprocessor based „Smart” sensor with semiconductor detector – Java based controller – Utility software – Database for storing measurements

  • Summary and Conclusions
  • Demo

Operator's console

Configuration Calibration

slide-27
SLIDE 27

Utility software (1)

  • Used for sensor’s configuration, calibration and diagnosis
  • Modular architecture

– Handles different sensors with different software versions – Different means of communication

  • Java Swing Application

– Can be integrated with existing code (e.g. TINI software device classes)

slide-28
SLIDE 28

Utility software (2)

SmartSet

Modbus Provider XML-RPC Modbus/TCP Modbus IrDA XML-RPC TINI RS485 Industrial PLC RS485 M O D B U S / T C P RS485 Modbus IrDA

slide-29
SLIDE 29

Utility software (3)

slide-30
SLIDE 30
  • Introduction
  • Need for monitoring system
  • Issues of gas detection and measurements
  • The concept of distributed monitoring system

– Microprocessor based „Smart” sensor with semiconductor detector – Java based controller – Utility software – Database for storing measurements

  • Summary and Conclusions
  • Demo

DB Server WEB Server DB

slide-31
SLIDE 31

Database for storing measurements (1)

Considered architectures

DB DB DB

  • Local sensor databases

– Resources – Communication issues

TINI

DB RS-485, MODBUS

  • Local controller databases

– TINI resources – Communication protocol TINI TINI TINI

TCP/IP

Server DB

  • Global system database

– Another layer required – Security issues

slide-32
SLIDE 32

Database for storing measurements (2)

Architecture

DB DBMS XML-RPC SmartLog JDBC JDBC-driver

TINI TINI XML-RPC

  • Three layer architecture
  • XML-RPC
  • Java and JDBC

technology

  • Acceptable speed
  • Database independent
  • Code reusability
slide-33
SLIDE 33

Database for storing measurements (2)

Sample implementation

slide-34
SLIDE 34

Conclusions?

  • Universal method for gas detector signal processing

– Applicability of piecewise linear approximation on low resources microcontrollers – Measurements and tests for different sensors

  • Measurement systems

– Protocol analysis, capabilities and limitations – Feasibility of implementation

  • Distributed gas measurement systems

– Use of Internet protocols in industrial systems – Application of low cost Java based controller – Remote access

  • Diagnostics, Configuration, Calibration
  • Implementation and testing
  • Areas of future work…
slide-35
SLIDE 35

Summary

  • Need for gas monitoring systems.
  • Ideal system requirements
  • Research areas
  • The concept of distributed monitoring system

– Smart – microprocessor based sensor with semiconductor detector – TINI – the application of Java based controller in the system – SmartSet – utility software – sensor configuration, calibration diagnostics – Database for storing measurement results

slide-36
SLIDE 36

Questions

slide-37
SLIDE 37

END

slide-38
SLIDE 38

Smartset SShot1

slide-39
SLIDE 39

HTML-1

slide-40
SLIDE 40

HTML-2

slide-41
SLIDE 41

Lab view

slide-42
SLIDE 42

Digital Outputs Module DO-8

slide-43
SLIDE 43

Database design

generates is of type contains generated by generates generated by dev1_0_0 sampleNum lifeTime n1 n2 temp g1W1 g1W2 g1Al g2W1 g2W2 g2Al awKryt awNkr eeStatus flagAWKR1 flagAWKR2 flagAWN1 flagAWN2 flagEEPROM flagSTATE vDet1 vDet2 vHeat1 vHeat2 vTemp R1 nR1 Rs01 Rl1 n1_1 n2_1 R2 nR2 Rs02 Rl2 n1_2 n2_2 I I I I I N1 N1 N1 N1 N1 N1 N1 N1 N1 SI SI SI SI SI SI I I I I I I I I I I I I I I I I I <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> <M> GenericDevices idGenericDevice modbusAddress typeNum serialNum softDate softVer <pi> SI I I I A50 A50 <M> <M> <M> <M> <M> <M> KeyGenericDevices <pi> Messages idMessage timeLocal msgText <pi> SI D A255 <M> <M> <M> Key_1 <pi> MsgTypes idMsgType type <pi> SI A50 <M> <M> Key_1 <pi> Readouts idReadout timeLocal timeRemote transmitOk transmitFailed <pi> SI D D I I <M> <M> <M> <M> <M> KeyReadouts <pi> ReadoutsDevices idReadoutDevice readoutsOk readoutsFailed readoutPeriod fullReadout responding <pi> SI I I I N1 N1 <M> <M> <M> <M> <M> <M> KeyReadoutsDevices <pi> Tinis idTini nameTini ipTini <pi> SI A50 A50 <M> <M> <M> KeyTinis <pi>

slide-44
SLIDE 44

TINI architecture

.JAVA .JAVA .JAVA .JAVA .JAVA .JAVA .JAVA .CLASS

Compilation

.TINI

TiniConverter

DS390 .TLIB .TLIB

Execution Libraries

Operating System Operating System JAVA VM JAVA VM API API

slide-45
SLIDE 45

Modbus protocol

Controller QUERY RESPONSE

Transmission OK

Controller QUERY

?

TIMEOUT Exception response

Controller QUERY EXCEPTION-RESPONSE Controller BROADCAST QUERY

Broadcast tranmission

slide-46
SLIDE 46

SB-95 Sensor

slide-47
SLIDE 47

Sensor structure

Sensor A/D Temp vHEAT vDET vTEMP SWITCH PWM Serial U/I 4-20mA

Measurement Head Analog Processing Communication Interface

A B

LED Signalling

RS485 RX TX DIR +5V

uP PIC 16F873