Skip to content
Circular 10 Datalogger & EMS 10 min read

Envisoft Monitoring Software: Datalogger FTP/sFTP Setup

Guide to configuring datalogger FTP/sFTP .txt telemetry for Vietnam's Envisoft monitoring software, status codes 00/01/02, and fixing offline errors.

Envisoft Monitoring Software: Datalogger FTP/sFTP Setup

Technical Summary & Key Specifications

  • Envisoft Telemetry Architecture: The national Envisoft environmental supervision platform (operated by MONRE and provincial DONRE offices) ingests monitoring data by polling dedicated FTP (Port 21) / sFTP (Port 22) server directories for standardized .txt files uploaded every 5 minutes by a compliant environmental monitoring datalogger.
  • 3 Requirements for "Online / Connected" Status on Envisoft: (1) Strict adherence to the [Province]_[StationID]_[Type]_[YYYYMMDDhhmmss].txt naming format and 5-column Tab ( ) delimited structure; (2) Exact character-for-character matching of parameter tags and engineering units registered on the provincial server; and (3) Accurate NTP (UTC+7) clock synchronization with valid 00 / 01 / 02 metrological status codes.
  • Station Upgrade & Retrofit Solution: The DeviceLab DL-ENV10 Datalogger includes built-in Envisoft syntax validation, native FTP Passive/Active and sFTP (SSH Port 22) clients, automatic offline Store-and-Forward backfilling, and front-panel Calibration mode (01) interlock switches.

How the Envisoft Platform Works and the End-to-End DONRE Telemetry Pipeline

Envisoft is Vietnam's official software ecosystem used by environmental authorities to monitor automatic industrial wastewater stations, Continuous Emission Monitoring Systems (CEMS), surface water intakes, and groundwater wells in real time. To configure a new station or troubleshoot recurring disconnection alerts, plant engineers must understand the three-tier telemetry pipeline:

  1. Tier 1 - Field Analyzer Signal Acquisition: Online analytical transmitters (such as Hach SC200/SC1000, Endress+Hauser Liquiline, Horiba, ABB) and flowmeters feed analog 4–20mA loops, Pulse outputs, or digital RS485 Modbus RTU registers along with maintenance contact statuses into the DL-ENV10 datalogger.
  2. Tier 2 - 5-Minute .txt Packaging & FTP/sFTP Transport: Exactly every 5 minutes (at :00, :05, :10, :15... synchronized via NTP), the datalogger computes the 5-minute average for each parameter, generates a single plain-text .txt file formatted per Circular 10/2021/TT-BTNMT, and uploads it via FTP or sFTP to the station's assigned folder on the provincial DONRE server.
  3. Tier 3 - Backend Parser Ingestion & Envisoft Dashboard Alerting: A background parser service on the DONRE server scans incoming FTP folders every minute. When a new .txt file arrives, the parser validates the filename timestamp, splits each row by the Tab ( ) character, checks the reading against QCVN discharge limits, and updates the live Envisoft Web portal and mobile application.
Architecture of the DeviceLab DL-ENV10 datalogger transmitting 5-minute .txt files over sFTP Port 22 and FTP to the DONRE Envisoft server
Circular 10/2021/TT-BTNMT telemetry pipeline: The DL-ENV10 datalogger packages 5-minute averaged measurements into Tab-delimited .txt files and pushes them via encrypted sFTP (Port 22) or FTP to the provincial DONRE Envisoft server.

Step-by-Step Guide to Configuring Datalogger FTP / sFTP Telemetry for Envisoft

Once a facility submits its telemetry registration dossier, the provincial DONRE Environmental Monitoring Center issues a Station Connection Credential Sheet. Commissioning engineers configure those exact parameters inside the datalogger as detailed below:

Configuration Parameter Typical Provincial DONRE Specification Recommended Setup on DeviceLab DL-ENV10
Protocol, Host IP & Port Static Public IP of DONRE; Port 21 (FTP), Port 22 (sFTP), or custom port (2121, 50021...) Enable FTP Passive Mode (PASV) to traverse factory NAT firewalls and 4G routers reliably, or select sFTP (SSH-2 Port 22) where encrypted transport is mandated.
Account & Remote Directory Path User: kcn_abc_nt / Remote Path: /NuocThai/KCN_ABC/ (or root /) Match directory case sensitivity exactly; enable Auto-Create Date Subfolder (YYYY/MM/DD) if required by the local provincial DONRE server structure.
Filename Convention [Province]_[StationID]_[Type]_[YYYYMMDDhhmmss].txt Example: DN_CONGTYABC_NT_20261025150000.txt. Never include spaces, special characters, or accented letters in the filename.
Internal Row & Delimiter Syntax [Tag] [Value] [Unit] [Time] [Status] (Separated strictly by ASCII Tab 0x09, line ending CRLF ) Example valid row:
COD 68.45 mg/L 20261025150000 00
Format numeric values to 2 decimal places (0.00) using a period (.) decimal separator.
Real-Time Clock Synchronization (NTP) Time Zone UTC+07:00 (Asia/Ho_Chi_Minh) Enable automatic hourly NTP Client sync against vn.pool.ntp.org or time.google.com backed by an onboard industrial lithium RTC battery.

Troubleshooting Matrix: 5 Common Envisoft Telemetry Errors and Field Fixes

When managing industrial wastewater or CEMS monitoring stations, EHS engineers frequently encounter disconnection warnings or false exceedance notifications on the Envisoft mobile app. The table below outlines the root causes and field remedies:

Envisoft Symptom / Alert Underlying Technical Root Cause Field Diagnostic & Permanent Fix
1. Station shows "Disconnected" (> 30 mins) despite active factory Internet Factory WAN Static IP changed after an ISP router replacement (blocked by DONRE IP whitelist firewall), or the 4G SIM card exhausted its data quota. Verify the station's public WAN IP against the IP registered with DONRE. On the DL-ENV10, enable Dual-WAN Failover (Fiber Ethernet + 4G LTE) to maintain uninterrupted uptime.
2. Datalogger logs "FTP 226 Transfer Complete" but Envisoft charts do not update The Envisoft backend parser rejected the uploaded .txt file due to RTC clock drift > 15 minutes, space characters used instead of Tab ( ), or mismatched parameter tags. Download the latest uploaded .txt file via FileZilla, inspect hidden whitespace characters in Notepad++ to confirm [TAB] delimiters, and verify the YYYYMMDDhhmmss timestamp.
3. Parameter displays negative values (-1.25) or flatlines at 0.00 Analog 4–20mA zero drift (loop current dropping to 3.85 mA) or an open circuit between the analyzer transmitter and the datalogger AI terminal. Measure loop current in series with a calibrated multimeter. Enable Zero Clamping (3.8–4.0mA = 0.00) and automatic Status 02 (Fault) assertion for currents below 3.6mA on the DL-ENV10.
4. False "QCVN Exceedance" alerts triggered during sensor cleaning or calibration Technicians removed probes from the flow tank or immersed them in calibration buffer standards while leaving the datalogger in normal measurement mode (00). Use the front-panel physical selector switch (Normal 00 / Calibration 01) on the DL-ENV10 cabinet or wire the analyzer's maintenance relay contact directly into a digital input channel.
5. Data gaps on Envisoft charts following overnight plant power outages Degraded UPS batteries inside the monitoring shelter or a legacy datalogger lacking non-volatile Store-and-Forward backfill queues. Replace aging UPS batteries and utilize the DL-ENV10's automatic Store-and-Forward queue, which buffers all 5-minute .txt files offline and backfills them chronologically once link connectivity returns.
Configuring metrological status codes 00 Normal, 01 Calibration, and 02 Sensor Fault on the DeviceLab DL-ENV10 datalogger for Envisoft compliance
Hardware-interlocked status codes 00 (Normal), 01 (Calibration/Maintenance), and 02 (Sensor Error) on the DL-ENV10 prevent false violation alarms on Envisoft during routine probe maintenance.

Retrofitting Legacy Monitoring Stations (Circular 24/2017) to Circular 10/2021 and Envisoft

Many manufacturing plants that commissioned monitoring stations between 2016 and 2020 under Circular 24/2017/TT-BTNMT face recurring compliance issues: aging dataloggers freeze, lack support for encrypted sFTP (Port 22), cannot append 00 / 01 / 02 status flags, or have been abandoned by the original contractor.

Instead of replacing expensive analytical cabinets, DeviceLab provides a drop-in DL-ENV10 Datalogger Retrofit Package that retains 100% of your existing field sensors:

  • Universal Analyzer Compatibility: Interfaces directly via isolated 4–20mA analog inputs and RS485 Modbus RTU with existing Hach, Endress+Hauser, WTW, Ponsel, S::can, Horiba, ABB, and Siemens controllers.
  • Pre-Validated Provincial DONRE FTP/sFTP Profiles: Built-in formatting templates matching the exact folder structures and tag naming rules of provincial DONRE servers across Vietnam.
  • Local HMI Touchscreen & Physical Calibration Switch: Enables plant operators to toggle Calibration Mode (01) with a single switch turn before cleaning probes and verify live FTP/sFTP 226 Transfer Complete status directly on the cabinet door.

Need Technical Support for Envisoft FTP/sFTP Disconnections or Datalogger Retrofits?

Whether your monitoring station is flagging offline alerts on Envisoft, migrating to encrypted sFTP (Port 22), or upgrading an obsolete datalogger to Circular 10/2021/TT-BTNMT, DeviceLab engineers are ready to assist. Explore the DL-ENV10 Environmental Monitoring Datalogger or reach out via Contact & Technical Support for remote FTP diagnostic assistance.

Frequently Asked Questions (FAQ)

What is Envisoft software and how does it function in Vietnam's national environmental monitoring architecture?

Envisoft is the official centralized environmental monitoring data reception and supervision platform operated by Vietnam's Department of Environmental Pollution Control (MONRE) and provincial Departments of Natural Resources and Environment (DONRE). Every regulated automatic wastewater, CEMS stack emission, surface water, and groundwater monitoring station must push standardized 5-minute .txt data files via FTP or sFTP to the provincial reception server, which parses and publishes real-time compliance status on the Envisoft Web portal and mobile app.

Why does Envisoft display the station as 'Disconnected' even though the datalogger logs successful FTP uploads?

When a datalogger receives an FTP '226 Transfer Complete' acknowledgment yet Envisoft still flags the station as offline or stops updating charts, the issue typically stems from four parser rejections: (1) Incorrect filename syntax or uploading to the wrong provincial subfolder; (2) Parameter tag mismatch (e.g., sending 'NH4' instead of 'NH4+' or 'Flow' instead of the exact tag registered on Envisoft); (3) Datalogger RTC clock drift exceeding 10-15 minutes relative to the NTP server; or (4) Saving the .txt file with a UTF-8 BOM header or spaces instead of strict Tab (t) delimiters.

What is the exact .txt filename convention and Tab-delimited column format required by Circular 10/2021/TT-BTNMT and Envisoft?

Under Circular 10/2021/TT-BTNMT, each file must be named: [ProvinceCode]_[StationCode]_[StationType]_[YYYYMMDDhhmmss].txt (for example: BD_KCNVSIP_NT_20261025150500.txt). Inside the plain-text file, each line represents one monitored parameter with five Tab-separated (t) fields: [ParameterCode]t[MeasuredValue]t[Unit]t[Timestamp YYYYMMDDhhmmss]t[StatusCode 00/01/02]. Using spaces or commas instead of the ASCII Tab character (0x09) causes the Envisoft backend parser to reject the file.

What do the status codes 00, 01, and 02 mean on the Envisoft environmental monitoring dashboard?

The final column of every row in the 5-minute .txt telemetry file defines the metrological status of that analyzer channel: '00' indicates normal valid measurement (Normal); '01' indicates the sensor is undergoing calibration or scheduled maintenance (Calibration); and '02' indicates a hardware fault, broken loop, or out-of-range reading (Sensor Error). Before lifting probes out of the flow chamber for cleaning or buffer calibration, technicians must switch the DL-ENV10 datalogger to Status '01' so Envisoft does not trigger false regulatory exceedance alarms.

What is the difference between standard FTP (Port 21) and sFTP (Port 22) for DONRE telemetry transmission?

Standard FTP (TCP port 21 plus dynamic passive data ports) transmits credentials and .txt payloads in unencrypted cleartext and often fails behind strict corporate firewalls or carrier-grade NAT. Many provincial DONRE data centers now mandate sFTP (SSH File Transfer Protocol over a single encrypted TCP port 22) to satisfy national cybersecurity standards. While legacy Circular 24 dataloggers only support basic FTP, the DeviceLab DL-ENV10 natively supports both FTP (Active/Passive) and SSH-2 sFTP.

How does the datalogger prevent missing data gaps on Envisoft during Internet or 4G network outages?

Circular 10/2021/TT-BTNMT mandates automatic Store-and-Forward buffering. During a fiber optic cut, 4G outage, or provincial FTP server downtime, the DeviceLab DL-ENV10 continues polling all sensors every second, generating 5-minute averaged .txt files, and queuing them in non-volatile industrial Flash/SD storage. Once connectivity is restored, the DL-ENV10 automatically backfills all queued historical .txt files in chronological order while simultaneously transmitting live 5-minute packets.

Can a legacy monitoring station built under Circular 24/2017/TT-BTNMT be upgraded to Envisoft and Circular 10 without replacing existing analyzers?

Yes. As long as the existing online analyzers (Hach, Endress+Hauser, WTW, Horiba, ABB, Siemens) and flowmeters remain functional and pass metrological verification/RA testing, there is no need to replace the analytical hardware. Replacing only the obsolete PLC or legacy logger with a DeviceLab DL-ENV10 datalogger upgrades the station with 00/01/02 status switches, NTP synchronization, dual Fiber/4G failover, and compliant sFTP/FTP .txt telemetry.

What is the recommended preventive maintenance checklist to keep a wastewater monitoring station 100% online on Envisoft?

Follow a four-step SOP: (1) Switch the DL-ENV10 channel status to '01' (Calibration) before removing any probe from the sample tank; (2) Clean optical windows on COD/TSS probes, inspect pH/NH4+ reference junctions, and verify sample pump flow rates; (3) Reinstall the probes and wait 5 to 10 minutes for readings to stabilize within normal QCVN ranges before switching status back to '00'; and (4) Verify FTP/sFTP '226 Transfer Complete' logs and check the backup 4G SIM data balance.

About the author

Written by

✓ E-E-A-T Verified Engineer

Tran Thu Huong

Technical Product & Regulatory Compliance Manager - DeviceLab

B.S. in Engineering Management & Metrology (VNU) · 8+ Years in IoT Regulatory Compliance & Telemetry Standards

Technical Review

DeviceLab Engineering Team

Peer-reviewed for circuit schematic topology, bus signal integrity, and compliance standards (QCVN / TT10 BTNMT).

View DeviceLab engineered projects & case studies →

Related Technical Articles & Engineering Guides

Practical R&D and field deployment guides from DeviceLab engineers:

Recommended Industrial IoT Hardware & OEM Solutions

Standardized industrial-grade devices engineered and mass-produced by DeviceLab Vietnam:

Topic Guide Index: Environmental Monitoring Dataloggers (Circular 10)

28 articles