Download presentation
Presentation is loading. Please wait.
Published byCameron Alexander Modified over 9 years ago
1
DIIRT distribution services: Web PODS - PVA PODS Gabriele Carcassi
2
DIIRT PODS – Protocol Oriented Distribution Services Distribute data gathered by diirt (pvmanager) through a specific protocol – Web: WebSocket + JSON – PVA: PVAccess + PVData
3
DIIRT PODS – Protocol Oriented Distribution Services Client-side formula Mappings configurationServer-side mapping Authorization Publish/subscribe Ch Access datasources support PV AccessWeb PodsFileLocal… Datasource configuration WebSocket implementation Web authentication
4
Datasource configuration In the process of externalizing all the configuration – $DIIRT_HOME datasources – file – ca – pva One set of instruction to configure CS-Studio, WebPods and PvaPods
5
File datasource example >cat.diirt/datasources/file/file.xml <!-- By default, file notifications are done with the watch service only, which works for most cases. In others, OS notification are not available (e.g. network file systems), so in this case we provide polling as a fallback. Use with caution as too many concurrent polling may create performance problems. For this reason, intervals shorter than 1 second are not supported. The unit for interval is seconds and must be an integer. --> -->
6
Mapping configuration WebPods configuration allows to – map incoming namespace (the one the client sees) to outgoing namespace (the one the server sees) through regular expressions and regular expression substitutions – map incoming names to formulas (“averagepv” -> “=(‘pv1’+’pv2’)/2”) – decide the level of access (READ_WRITE, READ_ONLY, NO_ACCESS) – limit access through user authentication See default configuration: https://github.com/diirt/diirt/blob/master/pods/web- pods/src/main/resources/org/diirt/pods/web/mapping s.default.xml https://github.com/diirt/diirt/blob/master/pods/web- pods/src/main/resources/org/diirt/pods/web/mapping s.default.xml
7
Default mapping configuration --> --> -->
8
Client-side formula WebPods allows client side formulas Use cases: – Rules (led widget is on if pv1 > 3) – Change of units – Data manipulation (create a histogram, join tables, vector operation, pick the highest alarm or value)
9
Client-side formula Client-side formula works even if namespace maps to a formula on the server becomes =100+'pv1'+'pv2'
10
DIIRT PODS – Protocol Oriented Distribution Services Client-side formula Mappings configurationServer-side mapping Authorization Publish/subscribe Ch Access datasources support PV AccessWeb PodsFileLocal… Datasource configuration WebSocket implementation Web authentication
11
DIIRT PODS – Protocol Oriented Distribution Services Client-side formula Mappings configurationServer-side mapping Authorization Publish/subscribe Ch Access datasources support PV AccessWeb PodsFileLocal… Datasource configuration PVA PODS configuration PVA server implementation PVA authentication
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.