Tunnel – Monitoring of 16 IEC870-5-102 counters via RS485 in real time (every 5 minutes) with data sent to the MQTT platform.

¿Buscas alguna otra cosa?

Scenario details:

  • An energy efficiency company needs to monitor in real time (every 15 minutes) the data of Active Absolute Energy (VabA), Inductive Reactive Absolute Energy (VabRi), Capacitive Reactive Absolute Energy (VabRc) of 16 electric meters with IEC 870-5-102 protocol with RS485 port and send the data to an MQTT platform
  • The meters are in a location where coverage is not very good and connectivity is sometimes lost, so the modem must store the readings in its internal memory to send them when coverage returns. The modem must support 4G/3G/2G technologies

Solution: MTX-Tunnel firmware + MTX-T

Configuration

Configuration Observations
COMM2_baudrate: 9600
COMM2_bitsperchar: 8
COMM2_autorts: off
COMM2_autocts: off
COMM2_stopbits: 1
COMM2_parity: none
GPRS_apn: movistar.es
GPRS_login: MOVISTAR
GPRS_password: MOVISTAR
GPRS_timeout: 0
MTX_PIN: 0000
MTX_mode: none
MTX_model: 199801445
MTX_ping: 35
MTX_pingIP: 8.8.8.8
MTX_TPServer: 1.europe.pool.ntp.org
MTX_TPServer: 2.europe.pool.ntp.org
MTX_TPProtocol: ntp
MTX_TPFormat: unix
MTX_porAux: iec102
MTX_invertedCom: off
SMS_allPhones: on
SMS_sendIP: off
SMS_ATEnabled: on
SMS_ATResponse: on
IEC102_meter1: id001;1;2;3
IEC102_meter2: id002;2;2;3
IEC102_meter3: id003;3;2;3
IEC102_meter4: id004;4;2;3
IEC102_meter5: id005;5;2;3
IEC102_meter6: id006;6;2;3
IEC102_meter7: id007;7;2;3
IEC102_meter8: id008;8;2;3
IEC102_meter9: id009;9;2;3
IEC102_meter10: id010;10;2;3
IEC102_meter11: id011;11;2;3
IEC102_meter12: id012;12;2;3
IEC102_meter13: id013;13;2;3
IEC102_meter14: id014;14;2;3
IEC102_meter15: id015;15;2;3
IEC102_meter16: id016;16;2;3

IEC102_period: 15
LOGGER_enabled: on
LOGGER_registerSize: 600
LOGGER_numRegistersFlash: 1500
LOGGER_mode: mqtt
LOGGER_mqttTopic: /LOGGERLOGGER_httpMode: getjson
Speed of serial port
Data bit
No flux control
No flux control
Stop bits
Bit parity
APN GPRS provided by the GSM operator
GPRS Login
GPRS Password
Modem is always GPRS connected
Pin of the SIM
GPRS connection server type
Modem model
Ping time to oversee connection
Google IP (f.e.) to ping
Time server
Time server backup
NTP protocol
Time format
Auxiliar port has function IEC102
Inverted port off
Send SMS with commands from any phone
Modem doesn’t respond to a missed call/SMS
Commands can be sent to the MTX by SMS
MTX responds with an SMS to a command SMS
Identifier id001, address 1, pt. , password 3
Identifier id002, address 2, pt. , password 3
Identifier id003, address 3, pt. , password 3
Identifier id004, address 4, pt. , password 3
Identifier id005, address 5, pt. , password 3
Identifier id006, address 6, pt. , password 3
Identifier id007, address 7, pt. , password 3
Identifier id008, address 8, pt. , password 3
Identifier id009, address 9, pt. , password 3
Identifier id0010, address 10, pt. , password 3
Identifier id0011, address 11, pt. , password 3
Identifier id0012, address 12, pt. , password 3
Identifier id0013, address 13, pt. , password 3
Identifier id0014, address 14, pt. , password 3
Identifier id0015, address 15, pt. , password 3
MTX responds with an SMS to a command SMS
Period to read counter
Logger on to store readings
Internal registry size
Max. number of registries
Sending mode via MQTT
Data sending MQTT topic

Details:

  • The data is sent to the HTTP server using a JSON object, which has the following example format:
    {“IMEI”:”353085090011697”,”TYPE”:”IEC102”,”TS”:”2020-05-15T18:00:05Z”,”P”:”ID-12345678”,”ID”:”ID001”,”VABA”:61245,”VINA”:614,”VABRI”:512}Where:
    – IMEI: IMEI of the modem (unique identifier of the MTX modem)
    – TYPE: Indicates the type of frame. In this case IEC102
    – TS: Timestamp of when the data was read
    – P: User field
    – ID: User identifier indicated in IEC102_meter1
    – VBAB: Active absolute energy (VabA)
    – VINA: Absolute Reactive Inductive Energy (VabRi)
    – VABRI: Absolute Reactive Capacitive Energy (VabRc)
  • Remember that the configuration data of the RS485 serial port of the modem must match the configuration of the RS485 port of the meter.
  • If you need to monitor other meter parameters in addition to VabA, VabRi, VabRc, check the possibility at iotsupport@mtxm2m.com.
  • The IEC102_ configuration parameters are only available in the “MTX-Tunnel IEC870”, it is a product that is supplied separately.
  • Not all types of meters allow simultaneous reading connected to the same RS485 bus. If in doubt, consult the meter manufacturer.