PGU + Netris3

Description of the device
The model PGU2x.100 pressure gauge in combination with the model NETRIS®3 radio unit is used wherever web-based remote monitoring of the process pressure is desired in addition to on-site indication. The model PGU2x.100 combines a mechanical measuring system with electronic signal processing and is intended for connection to the WIKA model NETRIS®3 radio unit. In this way, cloud based process and plant monitoring can be realised in industrial applications. Condition-based and preventive maintenance through centralised big data analysis is thus possible. The model PGU2x.100 pressure gauge fulfils safety-rrequirements of the relevant standards and regulations for the on-site indication of the operating pressure of pressure vessels. The model PGU2x is based upon a model 2xx.30 high-quality, safety pressure gauge with a nominal size of 100, which corresponds to the S3 safety version of the EN 837-1. The WIKA measuring instrument PGU2x.100 is part of the WIKA IIoT solution. With this, WIKA offers a holistic solution for your digitalisation strategy.
For more information see product site.
PGU + Netris3 Parser Quick Start
Parser API
All functions are pure (no global mutation) except adjustMeasuringRange which updates internal range configuration for subsequent decodes.
Types:
Input types:
interface UplinkInput {
fPort: number // LoRaWAN FPort
bytes: number[] // Raw payload as array of unsigned bytes (0-255)
recvTime?: string // Optional ISO timestamp (if your LNS provides it)
}
interface HexUplinkInput {
fPort: number // LoRaWAN FPort
bytes: string // Raw payload as hex-encoded string (case-insensitive, even length)
recvTime?: string // Optional ISO timestamp (if your LNS provides it)
}Return type (shared by all decode helpers):
type Result = {
data: Record<string, any> // Parsed key/value pairs
warnings?: string[] // Non-fatal anomalies
} | {
errors: string[] // Fatal or structural issues only
}To understand the data field, take a look at the examples and the schema definition.
Supported channels to identify different sensors by:
// Is used in the returned data
type ChannelName = 'pressure' | 'device temperature'Channels that support adjusting the measurement range:
type AdjustableChannelName = 'pressure' | 'device temperature'Channel Configuration
| Channel Name | Min Value | Max Value | Unit | Configurable |
|---|---|---|---|---|
| pressure | 0 | 10 | bar / psi / MPa | ✓ |
| device temperature | -40 | 60 | °C / °F | ✓ |
decodeUplink(input)
function decodeUplink(input: UplinkInput): ResultdecodeHexUplink(input)
function decodeHexUplink(input: HexUplinkInput): Resultbytes must have even length; case-insensitive.
adjustMeasuringRange(channel, range)
// Will throw on invalid channel name or if the channel disallows range updates
function adjustMeasuringRange(
channelName: AdjustableChannelName,
range: {
start: number
end: number
}
): voidApplies to future decodes only.
adjustRoundingDecimals(decimals)
// Smartly adjust number of decimals for rounded values
// Impacts all numeric values in all outputs
// Default is 4
function adjustRoundingDecimals(decimals: number): voidApplies to future decodes only.
Verifying Ranges
Both channels on the PGU are configurable. You must verify the actual measurement ranges from your device specifications or identification frames. The parser defaults shown in the table above may not match your device configuration.
Using Identification Frames
This device supports both TULIP2 and TULIP3 protocols. Each sends identification frames containing channel configuration:
TULIP3 (Message Type 20):
{
"data": {
"messageType": 20,
"channelId": 0,
"channelName": "pressure",
"measurementRangeStart": 0,
"measurementRangeEnd": 16
}
}TULIP2 (Message Type 6):
{
"data": {
"messageType": 6,
"channelId": 0,
"channelName": "pressure",
"measurementRangeStart": 0,
"measurementRangeEnd": 16
}
}Use measurementRangeStart and measurementRangeEnd to configure the parser before decoding data messages.
Quick Start
- Check your device's actual measurement ranges from purchase configuration, device specifications, or identification frames (see above)
- Add configuration code below at the bottom of your parser file
- Add wrapper function if your network server is non-compliant:
function decode(input) { return decodeUplink(input) }
Configuration code (add at bottom of parser file):
// Replace values with your device's actual measurement ranges from specifications or identification frames
adjustMeasuringRange('pressure', { start: 0, end: 16 })NPM Module Inclusion
| Device | Included | Factory function |
|---|---|---|
| PGU+NETRIS3 | ❌ | ❌ |
