440 likes | 581 Views
HydroLynx ALERT2 Training. How to upgrade your HydroLynx transmitter to use the ALERT2 protocol. ALERT2 Advantages. Data rate increase from 300 to 4800 baud Data error detection and correction Data collision avoidance using TDMA Data resolution increase from 0-2047
E N D
HydroLynx ALERT2 Training How to upgrade your HydroLynx transmitter to use the ALERT2 protocol
ALERT2 Advantages • Data rate increase from 300 to 4800 baud • Data error detection and correction • Data collision avoidance using TDMA • Data resolution increase from 0-2047 • Data calibration in engineering units • Station ID range expanded • Transmitter time set from GPS • Test mode sets flag for test data transmit
5096 Transmitter Upgrade • ALERT2 modem board • GPS antenna • Drill hole in canister top for GPS antenna • Upgrade firmware • Setup transmitter
50386 Transmitter Upgrade • ALERT2 modem board • GPS antenna • Drill hole in canister top for GPS antenna • Upgrade application program • Setup transmitter with ScadaLynx Toolbox
ALERT2 General Sensor Report • ALERT2 uses the station ID and sensor ID together to identify a sensor data value • Station ID range: 1 – 65534 • Sensor ID range: 0 – 254
ALERT2 Multi-Sensor Report • The multi-sensor report compresses several sensors in an efficient packet • Eight general sensor reports of two byte data takes 32 bytes • One multi-sensor report containing 8 sensor readings takes 13 bytes • Rain gauge uses the tipping bucket report • English or metric units
ALERT2 Tipping Bucket Report • The tipping bucket report compresses several rain gauge tip reports into one packet. • Timing of rain gauge tips stored to nearest second. • Base station software will file each rain gauge tip at the time it occurred. • Data receive delays due to TDMA do not effect rainfall data analysis.
ALERT2 Concentrator Report • Receive ALERT1 - Transmit ALERT2 • ALERT1 sensor reports are compressed into an ALERT2 concentrator report • Sensor ID • Sensor Data • Time Offset up to 255 • Compression efficiency • ALERT1 report 133 milliseconds • ALERT2 Concentrator report 43 milliseconds
Sensor data changes • Wind speed is computed as an average over time • Combined wind run/direction no longer used • 32 bit integer data range: -2147483648 – 2147483647 • 4 Byte floating point data range
5096 Sensor Setup Changes SET-AN sn,id,msr,ti,si,cgt,evth,a,b,c,d SET-EV sn,id,msr,ti,si,cgt,evth,a,b,c,d,ev,mode SET-GPS sn,id,msr,ti,si,cgt,evth,a,b,c,d (NEW) SET-PK sn,id,msr,ti,si,cgt,evth,a,b,c,d SET-ST sn,id,msr,ti,si,cgt,evth,a,b,c,d SET-WI sn,id,msr,ti,si,cgt,evth,a,b,c,d,ev,we,pdc • Set ALERT2 sensor ID, id, (0-254) instead of ALERT1 ID • Set position in multi-sensor or tipping bucket report, msr (0=disabled) • All sensors have transmit interval, ti, followed by sample interval, si • All sensor have change for transmit, cgt, and event threshold, evth • Calibration has added the decimal digits display, d • Each status sensor (1-8) setup and transmitted individually • Event sensor has event enable, ev, and mode as last parameters • Wind sensor transmit event, ev, we parameter: 0=transmit counter, 1=compute wind speed, and predivide counter as last parameters
5096 Floating point data display • Set the decimal digit parameter to display and transmit floating point data • Set the decimal digit to 0 to display and transmit integer data • For example set battery voltage calibration a,b,c,d as: 156.77,10000,0.00,2 • Battery voltage data display: 12.71
5096 Logged data display • 5096 logged data is displayed as station ID, sensor ID, date, time, data • Data display will show decimal point if calibration has non zero decimal digits • For station ID 7030 and rain sensor 0, battery sensor 8 as 10/11/2012 13:00:00: • 7030 0 2012 10 11 13 00 00 35 • 7030 8 2012 10 11 13 00 00 12.71
5096 Setup Changes • READ-TIME • Read the GPS time and set 5096 time. • SET-A2 • Send all parameters to ALERT2 encoder. • SET-BAUD baud • Communication baud rate is limited to 9600 • SET-STAID staid • Sets the station ID (1-65534) • SET-MANT hoplimit,addpath,adddest,destid,indts • Sets the ALERT2 encoder GPS parameters • SET-RF pwr,car,agc,tail,mod,fec,pre • Sets the ALERT2 encoder radio parameter • SET-TDMA en,frame,len,off,del,ctr • Sets the ALERT2 encoder TDMA parameters • SET-TZ tzname,tzoffset,dstname,dsten • Set the local time zone parameters • TEST-MODE state,reset • Set test flag in ALERT2 data transmission when enable, disable after reset interval
ALERT2 Encoder Radio Parameters • RF pwr • Radio power up time in milliseconds before transmission • Range: 0 - 2000 milliseconds, Default: 750 milliseconds • RF car • Transmit carrier only time in milliseconds • Range: 5 – 1000 milliseconds, Default: 10 milliseconds • RF agc • Automatic gain control (preamble) in milliseconds • Range: 5 – 1000 milliseconds, Default: 25 milliseconds • RF tail • Radio transmit time in milliseconds at end of transmission frame • Range: 0 – 100 milliseconds, Default: 5 milliseconds • RF mod • Modulation inverted: 0=normal, 1=inverted, Default: 0=normal • RF fec • Forward Error Control (FEC) type: 0=normal, 1=future, Default: 0=normal • RF pre • Audio preload time in milliseconds before transmitter key on • Range: 0 – power up time, Default: 100 milliseconds
ALERT2 Encoder MANT Parameters • SERV hoplimit • The maximum hops before the packet is discarded (not repeated) • Range: 0 – 7 (0=no repeat, 7=disable limit) • SERV addpath (Add Path Service Request) • Add repeater station ID to the packet MANT header: 0=disable, 1=enable • SERV adddest • Add destination station ID to packet MANT header: 0=disable, 1=enable • SERV destid • Destination station ID • Range: 1-65534, Default: 9999 • SERV indts • ALERT2 encoder will add timestamp to packet PDU header: 0=disable, 1=enable • Disable for HydroLynx transmitters, they add timestamps to PDU packets.
ALERT2 Message Length Block 1 Block 2 • First block transmits 24 data bytes in 288 milliseconds • Airlink header 2 bytes • MANT header 6 bytes • App header 5 bytes with timestamp • App data reports 11 bytes • Second block transmits 32 data bytes in 160 milliseconds • App data reports 32 bytes for a total of 43 data report bytes • Total packet length is 448 milliseconds • Fits in 500 millisecond slot
ALERT2 Message Data Packets • Tipping Bucket Rain Gauge Report • TBR header, 2 bytes • TBR sensor data reports • Sensor ID, data type, and data length: 2 bytes • Accumulator: 2 bytes • Variable number of tip time offset, 1 byte • Total of 5 mm tips/minute = 12in/hr in 10 bytes • or 5 0.01in tips/minute = 3in/hr in 11 bytes • Multi-Sensor Report for Full Weather Station • MSR header, 3 bytes • MSR sensor data reports • Up to 8 sensor data in 12 data bytes, 15 MSR bytes • General Sensor Report • GSR header, 2 bytes • GSR sensor data reports • Sensor ID, data type, and data length: 2 bytes • Variable number of data bytes, typically 2 bytes • Total of 1 sensor data report in 6 bytes • All three reports in one packet • TBR 1 mm report, 11 bytes • MSR report, 15 bytes • GSR report, 6 bytes • Total App data 31 bytes +11 bytes MANT/APP header = 43 bytes
ALERT2 Maximum Message Block 1 Block 2 Block 3 … Up to Block 32 • First block transmits 24 data bytes in 288 milliseconds • Block 2 through block 32 transmits 32 data bytes in 160 milliseconds • App layer message 24 + 31 * 32 bytes for a total of 1016 bytes • 32 block packet length is 1016 bytes in 5248 milliseconds (> 5 secs) • 30 block packet length is 952 bytes in 4928 milliseconds (< 5 secs)
ALERT2 Repeater Packets • Append ALERT2 station packets in repeater packet • Airlink header only used once, 2 bytes • Append MANT/App header and ALERT2 data • 2 byte Airlink header +22 MANT packets of 43 bytes = 948 bytes < 952 bytes in 5 second repeater slot • Append ALERT1 data reports in repeater packet • Airlink, MANT, APP header only used once • Append compressed ALERT1 data reports with time offset • 10 byte Airlink/MANT/App header +235 ALERT1 packets of 4 bytes = 950 bytes < 952 bytes in 5 second repeater slot
ALERT2 TDMA • ALERT2 transmitters only transmit during assigned time slot • Each station and repeater are assigned unique time slots • Station time slots are 500-1000 milliseconds • Repeater time slots are up to 5 seconds • Frame length sets transmit interval • 1 minute frame allows transmit every 1 minute • Transmit every minute not required.
ALERT2 TDMA Parameters • TDMA en • Enable TDMA for ALERT2 transmissions • Range: 0=disabled, 1=enabled. Default: 1=enabled • TDMA frame • Frame length in milliseconds • Range: 5000 – 3,600,000 milliseconds. Default: 60,000 milliseconds • TDMA len • Slot length in milliseconds • Range: 250 – 10,000 milliseconds. Default: 500 milliseconds • TDMA off • Slot start offset in milliseconds • Range: 0 – (frame length - slot length). Default: 0 milliseconds • TDMA del • Transmit delay in slot in milliseconds, when center not enabled • Range: 25 – 250 milliseconds. Default: 25 milliseconds • TDMA ctr • Center transmission in time slot • Range: 0=disabled, 1=enabled. Default: 0=disabled
ALERT2 TDMA 1 Minute Frame • ALERT2 transmitters only • 1 Minute Frame • Minimum slot length 500ms • Maximum slot length 1000ms • 120 500ms slots available • No repeater slots assigned
ALERT2 TDMA 1 Minute Mixed • ALERT2 transmitter and repeater slots • 1 Minute Frame • Repeater slot length 5000ms • Station slot length 500 or 1000ms • 4 Repeater slots • 80 Station slots • 20 Stations repeated per repeater slot < 5 seconds
ALERT2 Base Station Software • NovaStar 5 supports ALERT2 data collection for all Application layer protocols • NovaStar 4 does not support ALERT2; an upgrade to NovaStar 5 is required • Contact other base station software manufacturers to verify ALERT2 data collection support
NovaStar5 ALERT2 Setup • Add an alert data collection port in the configuration table to receive ALERT2 data • The alert_port2 row has option –G alert2 to define ALERT2 data collection
NovaStar 5 ALERT Sensor Setup • Set ALERT2 station ID as Remote Tag in station table • Set ALERT2 Sensor and MSR number in point table
Migrating from ALERT1 to ALERT2 • Radio frequency • Best to use a new radio frequency for ALERT2 stations • Mixing ALERT and ALERT2 stations on the same frequency will result in data collisions • ALERT data loss and errors • ALERT2 data loss but errors are rejected • TDMA will have to be disabled
Migrating from ALERT1 to ALERT2 • Station ID numbers • ALERT rain gauge ID can be used as ALERT2 station ID • This frees other sensor IDs at station to be used at new ALERT2 stations • Coordinate ALERT2 station IDs regionally • Station ID ranges may be assigned by global position • Use NHWC ALERT2 station ID web page registry
Step 1: ALERT2 Base Station Receiver Upgrade • Upgrade base station to receive ALERT2 • Receiver must be close to antenna • Decoder must be close to receiver to prevent signal loss on audio tone range • Provide for network connection between base station computer and ALERT2 decoder • Upgrade base station ALERT1 connection • Move ALERT1 decoder close to ALERT1 receiver • Provide for network connection between base station computer and ALERT1 decoder • Base station receives ALERT1 and ALERT2 • Upgrade base station software for ALERT2 support
Step 1: ALERT2 Base Station Receiver Upgrade ALERT2 ALERT1 X ALERT1 NovaStar 5 Base Station ALERT1 Transmitter Move ALERT1 Decoder close to Receiver Audio X X Serial X ALERT1 Receiver ALERT1 Decoder Audio X Audio ALERT2 Decoder ALERT2 Receiver Serial ALERT2 Decoder must be installed next to Receiver Network
Step 1: ALERT2 Base Station Receiver Upgrade ALERT2 ALERT1 ALERT1 NovaStar 5 Base Station ALERT1 Transmitter Audio Network ALERT1 Decoder ALERT1 Receiver ALERT2 Receiver Audio ALERT2 Decoder Network
Step 2: Repeater Upgrade to ALERT2 Concentrator • Upgrade all repeaters to transmit ALERT2 to the base station • The 50386 ALERT2 receiver/repeater can receive ALERT1 data and repeat ALERT2 protocol • Base station can receiver ALERT1 and ALERT2
Step 2: Repeater Upgrade to ALERT2 Concentrator ALERT2 ALERT1Transmitter ALERT2 ALERT1 ALERT1 NovaStar 5 Base Station ALERT1 Transmitter ALERT1 Receive ALERT2 Transmit ALERT1Transmitter ALERT2 Concentrator ALERT1 Network ALERT2 ALERT1 ALERT1 ALERT1Transmitter ALERT1 Receiver Network ALERT1 Transmitter ALERT1 Decoder ALERT2 Receiver ALERT1 ALERT1 Receive ALERT2 Transmit ALERT1 Transmitter ALERT2 Concentrator Network ALERT2 Decoder
Step 3: Common Receiver Upgrade to ALERT2 • Upgrade ALERT1 transmitters to ALERT2 that report directly to base station • Base station is ready to receive ALERT2 • Upgrade ALERT2 concentrator to ALERT2 repeater • Repeater can receive ALERT1 and ALERT2 then repeat ALERT2 • Upgrade ALERT1 transmitters to ALERT2 that report to the this ALERT2 repeater
Step 3: Common Receiver Upgrade to ALERT2 ALERT2 ALERT2 ALERT2 ALERT1 ALERT2 ALERT2 Transmitter NovaStar 5 Base Station ALERT2 Transmitter ALERT2 Receive ALERT2 Transmit ALERT2 Transmitter Network ALERT2 Repeater ALERT2 ALERT2 ALERT1 ALERT2 Transmitter ALERT1 Receiver Network ALERT1 ALERT1 Transmitter ALERT1 Decoder ALERT2 Receiver ALERT1 ALERT1 Receive ALERT2 Transmit Network ALERT1 Transmitter ALERT2 Decoder ALERT2 Concentrator
Step 4: Finish ALERT System Upgrade to ALERT2 • Upgrade all ALERT2 concentrators to ALERT2 repeater • Repeater can ALERT2 then repeat ALERT2 • Upgrade all ALERT1 transmitters to ALERT2 • Remove all ALERT1 receiver equipment
Step 4: Finish ALERT System Upgrade to ALERT2 ALERT2 ALERT2 X ALERT2 ALERT1 ALERT2 ALERT2 Transmitter NovaStar 5 Base Station ALERT2 Transmitter ALERT2 Receive ALERT2 Transmit ALERT2 Transmitter Network ALERT2 Repeater ALERT2 X ALERT2 Transmitter ALERT1 Receiver Network X ALERT2 ALERT2 ALERT1 Decoder ALERT2 Transmitter ALERT2 Receiver ALERT2 Receive ALERT2 Transmit Network ALERT2 Transmitter ALERT2 Decoder ALERT2 Repeater
Step 5: Add Multi-path Redundancy to ALERT2 Radio Network • Add multi-path equipment to ALERT2 repeaters • Cellular gateways • Satellite gateways • Microwave gateways
Step 5: Add Multi-path Redundancy to ALERT2 Radio Network ALERT2 ALERT2 ALERT2 ALERT2 ALERT2 Transmitter NovaStar 5 Base Station ALERT2 Transmitter ALERT2 Receive ALERT2 Transmit ALERT2 Transmitter Network ALERT2 Repeater ALERT2 ALERT2 Transmitter ALERT2 ALERT2 Receiver ALERT2 ALERT2 Transmitter Network ALERT2 Decoder ALERT2 Receive ALERT2 Transmit ALERT2 Transmitter ALERT2 Repeater Cellular Gateway
Thank you • Contact HydroLynx at our booth for a copy and this training presentation HydroLynx Systems, Inc. 950 Riverside Pkwy., #10 West Sacramento, CA 95605 916-374-1800 hydro@hydrolynx.com www.hydrolynx.com