Device Selection

Please select a device to enable action execution.
Available Actions
128
Ready to execute
Device Type
Q1 V2
Active type
Selected Device
None
Select device
Queue Status
-
System status

Assign New Hardware Id

Assign a new hardware ID to the device

Parameters:

new_hardware_id integer

Clear All Transactions

Clear all transactions from the device.

Clear Eeprom

Clear EEPROM

Parameters:

address integer
length integer
write_value integer

Clear Happy Days

Clear the happy days from the device.

Clear Happy Hour

Clear the happy hour from the device.

Clear Primary Network Credentials

Clear the primary network credentials

Clear Pulse Count Memory

Clear pulse count memory

Disable Trap In Boot Mode

Disable the trap in boot mode

Disable White Led

Disable the white LED

Eeprom Read

Read from the EEPROM

Parameters:

address integer
length integer

Eeprom Set Pulse Count

Set pulse count

Parameters:

pulse_count integer

Eeprom Write

Write to the EEPROM

Parameters:

address integer
data string

Enable Trap In Boot Mode

Enable the trap in boot mode

Enable White Led

Enable the white LED

End Connection

End the connection to the device.

First Connect Hook

We execute this function every time the device connects to the server

Force Relay Clear

Force relay off

Force Relay Off

Force relay off

Force Relay On

Force relay on

Get All Transactions

Get all transactions

Get Billing Location

Get the billing location

Parameters:

raise_exception boolean

Get Hardware Id Eeprom

Get the hardware ID of the device from the EEPROM

Get Meter Version

Get the meter version

Get Network Details

Get the network details

Get Nic Description

Get the description of the NIC device

Get Ota Device Id

Get the OTA device ID

Get Primary Network Credentials

Get the primary network credentials

Get Tariff

User Land: Get the tariff of the device. This does NOT update the state of the device. The actual value can be different from the one set in EEPROM due to the meter's internal state (RAM value).

Get Trap In Boot Mode

Get the trap in boot mode

Get Update Packet

Get update packet

Health Checkup

Health checkup

I2C Read

Read from the I2C peripheral

Parameters:

device_select integer
register_address integer
length integer

I2C Write

Write to the I2C peripheral

Parameters:

device_select integer
register_address integer
data string

Initialize Meter

Initialize meter

Parameters:

shunt_10_60 boolean

Megawin Restart To Ap

Restart the meagawin module

Megawin Restart To Isp

Restart the meagawin module

Modbus One Register Read

Read a single register from the Modbus device

Parameters:

device_id integer
function_code integer
register_address integer
read_back_bytes integer
timeout integer

Modbus Read Message

Read a message from the Modbus device

Parameters:

device_id integer
function_code integer
register_address integer
count integer
read_back_bytes integer
timeout integer

Modbus Read Register

Read a register from the Modbus device

Parameters:

register_addr integer
count integer

Modbus Scan2

Scan for Modbus devices

Parameters:

device_id integer
function_code integer
start_address integer
count integer
read_back_bytes integer
timeout integer

Modbus Scan

Scan for Modbus devices

Parameters:

device_id integer
function_code integer
start_address integer
count integer
read_back_bytes integer
timeout integer

Modbus Write Message

Write a message to the Modbus device

Parameters:

device_id integer
function_code integer
register_address integer
value integer
read_back_bytes integer
timeout integer

Modbus Write Register

Write a register to the Modbus device

Parameters:

modbus_device_address integer
register_addr integer
value integer
read_back_bytes integer
timeout integer

Mode Measurement

User Land: Change meter to measurement mode

Mode Postpaid

User Land: Change meter to postpaid mode

Mode Prepaid

User Land: Change meter to prepaid mode

Mode Relay Off

User Land: Change meter to relay off mode

New Hid And Fts

Assign new hardware ID and perform first time setup

Parameters:

connection_id string
new_hardware_id integer

Nic Restart

User Land: Restart the NIC

On Server Disable Prepaid Metering

On Server: Disable the prepaid metering

On Server Enable Prepaid Metering

On Server: Enable the prepaid metering

On Server Set Dual Source Tariff

Set the tariff

Parameters:

active_source string
rates object

On Server Set Flat Tariff

Set the tariff

Parameters:

rate integer

Perform Deduction

Perform a deduction transaction

Parameters:

db_id integer
amount integer

Perform Ota Update

Perform an OTA update on the NIC device

Parameters:

version_name string

Perform Recharge

Perform a recharge transaction

Parameters:

db_id integer
amount integer

Perform Transaction

Perform a transaction

Parameters:

db_id integer
amount integer

Read Active Tariff

Device Land: Get active tariff of device from EEPROM. The actual value can be different from the one set in EEPROM due to the meter's internal state (RAM value).

Read Balance Cutoff

Get balance cutoff of device

Read Calibration Current Coeff

Get calibration current coefficient of device

Read Calibration Gain

Get calibration gain of device

Read Calibration Ia Chgn

Get calibration IA CHGN of device

Read Calibration Phcal

Get calibration PHCAL of device

Read Calibration Power Coeff

Get calibration power coefficient of device

Read Calibration Status

Get calibration status of device

Read Calibration Time

Get calibration time of device

Read Calibration Voltage Coeff

Get calibration voltage coefficient of device

Read Calibration Wa Cfdiv

Get calibration WA CFDIV of device

Read Configuration Variable

Read a configuration variable from the device

Parameters:

address integer
length integer
datatype any
datatype_length integer

Read Default Lcd Page

Get default LCD page of device

Read Dg Tariff

Device Land: Get DG tariff of device from EEPROM. The actual value can be different from the one set in EEPROM due to the meter's internal state (RAM value).

Read Eb Tariff

Device Land: Get EB tariff of device from EEPROM. The actual value can be different from the one set in EEPROM due to the meter's internal state (RAM value).

Read Force Relay State

Get force relay state of device

Read Happy Days

Get happy days of device

Read Happy Hour

Get happy hour of device

Read Happy Weekday

Get happy weekday of device

Read Hardware Id

Get hardware ID of device

Read Message Interval

Get message interval of device

Read Meter Configuration

User Land / Device Land: Get meter configuration from device.

Parameters:

save_to_state any

Read Net Metering Enabled

Get net metering enabled status of device

Read Prepaid Metering Enabled

Get prepaid metering enabled of device

Read Relay Inverted

Get relay inverted status of device

Read Serial Number

Get serial number of device

Relay Calibrate

Calibrate the relay

Rtc Get Datetime

Read the device datetime

Rtc Read

Read from the RTC

Parameters:

register_address integer
length integer

Rtc Set Datetime

Set the datetime on the RTC

Parameters:

dt string

Rtc Write

Write to the RTC

Parameters:

register_address integer
data string

Send Raw Bytes To Megawin

Send raw bytes to megawin, useful when you need to talk to the bootloader. Args: data: The data to send to the megawin. read_back_bytes: The number of bytes to read back from the megawin. timeout: The timeout in milliseconds. Returns: The response from the megawin (bytes).

Parameters:

data string
read_back_bytes integer
timeout integer

Send Serial Message

Send a serial message to the NIC device

Parameters:

message string
read_back_bytes integer
timeout integer

Send Serial Message Raw

Send a raw serial message to the NIC device

Parameters:

data string
read_back_bytes integer
timeout integer

Set Happy Hour

User Land: Set the happy hour of the device

Parameters:

happy_hour array
restart_to_apply_changes boolean

Set Nic Device Manfacturer Code

Set the manufacturer code of the NIC device

Parameters:

manufacturer_code integer

Set Nic Hardware Id

Set the hardware ID of the NIC device

Parameters:

nic_hardware_id integer

Set Prepaid Metering

Set enable prepaid metering flag on device and restarts the meter to apply changes.

Parameters:

enable boolean

Set Primary Network Credentials

Set the primary network credentials

Parameters:

ssid string
password string

Set Tariff

User Land: Set the tariff of the device. This updates the state of the device.

Parameters:

active_tariff any
eb_tariff any
dg_tariff any
restart_to_apply_changes boolean

Start Connection

Start a connection to a device

Parameters:

device_id any
endpoint string

Store Ota Device Id In Nic

Store the OTA device ID in the NIC

Parameters:

device_id integer

Switch To Primary Network

Switch to the primary network

Switch To Secondary Network

Switch to the secondary network

Transparent Serial Communication

Send a transparent serial communication message

Parameters:

data string
read_back_bytes integer
timeout integer

Update Packet Handler

Handle update packet from the device

Parameters:

message string
message_type string
timestamp integer

Write Active Tariff

Device Land: Set active tariff of device in EEPROM. The value will take effect after the next restart.

Parameters:

new_active_tariff integer

Write Balance Cutoff

Set balance cutoff of device

Parameters:

new_balance_cutoff integer

Write Calibration Current Coeff

Set calibration current coefficient of device

Parameters:

new_calibration_current_coeff number

Write Calibration Gain

Set calibration gain of device

Parameters:

new_calibration_gain integer

Write Calibration Ia Chgn

Set calibration IA CHGN of device

Parameters:

new_calibration_ia_chgn integer

Write Calibration Phcal

Set calibration PHCAL of device

Parameters:

new_calibration_phcal integer

Write Calibration Power Coeff

Set calibration power coefficient of device

Parameters:

new_calibration_power_coeff number

Write Calibration Status

Set calibration status of device

Parameters:

new_calibration_status integer

Write Calibration Time

Set calibration time of device

Parameters:

new_calibration_time integer

Write Calibration Voltage Coeff

Set calibration voltage coefficient of device

Parameters:

new_calibration_voltage_coeff number

Write Calibration Wa Cfdiv

Set calibration WA CFDIV of device

Parameters:

new_calibration_wa_cfdiv integer

Write Configuration Variable

Write a configuration variable to the device

Parameters:

address integer
value any
datatype any
datatype_length integer

Write Default Lcd Page

Set default LCD page of device

Parameters:

new_default_lcd_page integer

Write Dg Tariff

Device Land: Set DG tariff of device in EEPROM. The value will take effect after the next restart.

Parameters:

new_dg_tariff integer

Write Eb Tariff

Device Land: Set EB tariff of device in EEPROM. The value will take effect after the next restart.

Parameters:

new_eb_tariff integer

Write Force Relay State

Set force relay state of device

Parameters:

new_force_relay_state integer

Write Happy Days

Set happy days of device

Parameters:

new_happy_days array

Write Happy Hour

Set happy hour of device

Parameters:

new_happy_hour array

Write Happy Weekday

Set happy weekday of device

Parameters:

new_happy_weekday array

Write Hardware Id

Set hardware ID of device

Parameters:

new_hardware_id integer

Write Message Interval

Set message interval of device

Parameters:

new_message_interval integer

Write Net Metering Enabled

Set net metering enabled status of device

Parameters:

new_net_metering_enabled boolean

Write Prepaid Metering Enabled

Device Land: Set prepaid metering enabled of device. The value will take effect after the next restart.

Parameters:

new_prepaid_metering_enabled integer

Write Relay Inverted

Set relay inverted status of device

Parameters:

new_relay_inverted boolean

Write Serial Number

Set serial number of device

Parameters:

new_serial_number integer