"method" in json data

When getting JSON either through http://192.168.184.121/monitorjson or the post data  in HTTP Run Mode,

Up to release i.75.98.70, the json contained "method":“uploadsn"

but since release i.75.98.71 I see "method":"2-9" or "method":"2-7"

This change caused issues and required a software update of the data integrity checks in my handling script on the receiving server.

Could you explain, what method means, why this has changed and if other changes are expected in the future?

Thanks

Paul

Example log in incoming json data:

2024-08-12 16:10:43 {"method":"2-7",     "mac":"D0BAE4B4060B","version":"i.75.99",   "server":"em","SN":"","Datas":[[237.3,2.070,206.0,3534.380,0.000,49.95,0.42],[0.0,0.000,0.0,0.000,0.000,49.95,0.00],[0.0,0.000,0.0,0.000,0.000,49.95,0.00],[79.1,0.000,206.0,3534.381,0.000,49.95,0.00]]}
2024-08-12 16:10:47 {"method":"uploadsn","mac":"849DC27BA28C","version":"i.75.98.1", "server":"em","SN":"","Datas":[[233.8,70.25,16416,24538.628,86.085,49.96,1.00],[232.1,71.03,16480,24761.124,24.741,49.96,1.00],[232.8,70.35,16375,24523.658,18.553,49.96,1.00]]} 2024-08-12 16:10:50 {"method":"uploadsn","mac":"849DC2711E60","version":"i.75.98.1", "server":"em","SN":"","Datas":[[230.4,60.23,7091,5523.625,24.578,49.97,0.51],[230.0,60.22,7009,4021.777,26.813,49.97,0.51],[229.9,60.25,7072,4011.533,36.265,49.97,0.51]]} 2024-08-12 16:10:51 {"method":"uploadsn","mac":"849DC27F399F","version":"i.75.98.1", "server":"em","SN":"","Datas":[[239.4,17.27,-4130,4.192,6559.410,49.97,1.00],[240.1,17.28,-4146,5.006,6591.317,49.97,1.00],[240.5,17.27,-4149,5.276,6584.679,49.97,1.00]]} 2024-08-12 16:10:54 {"method":"uploadsn","mac":"849DC27CA321","version":"i.75.98.1", "server":"em","SN":"","Datas":[[231.4,31.87,7369,8926.271,10.628,49.97,1.00],[232.6,31.63,7350,8877.504,9.003,49.97,1.00],[232.9,31.77,7393,8917.940,12.445,49.97,1.00]]} 2024-08-12 16:11:00 {"method":"2-9", "mac":"849DC2CEC6CA","version":"i.75.98.71","server":"em","SN":"","Datas":[[227.2,0.000,0.0,0.000,0.000,49.98,0.00],[0.0,0.000,0.0,0.000,0.000,49.98,0.00],[0.0,0.000,0.0,0.000,0.000,49.98,0.00]]} 2024-08-12 16:11:11 {"method":"uploadsn","mac":"849DC27BA286","version":"i.75.98.1", "server":"em","SN":"","Datas":[[242.5,29.13,-7061,10.666,13586.791,49.98,1.00],[243.1,29.00,-7047,13.211,13574.992,49.98,1.00],[243.1,29.05,-7059,18.463,13615.876,49.98,1.00]]} 2024-08-12 16:11:12 {"method":"uploadsn","mac":"849DC27BA291","version":"i.75.98.1", "server":"em","SN":"","Datas":[[231.6,36.57,8467,9434.019,15.276,49.98,1.00],[231.1,36.61,8456,9443.625,12.783,49.98,1.00],[231.4,36.73,8498,9496.020,15.036,49.98,1.00]]} 2024-08-12 16:11:14 {"method":"uploadsn","mac":"D0BAE4B4072A","version":"i.75.98.1", "server":"em","SN":"","Datas":[[241.6,67.76,-16366,2129.767,19027.792,49.98,1.00],[241.1,68.26,-16448,3253.595,16642.629,49.98,1.00],[241.1,68.39,-16484,41.248,20281.414,49.98,1.00]]} 2024-08-12 16:11:19 {"method":"uploadsn","mac":"849DC27122D4","version":"i.75.98.68","server":"em","SN":"","Datas":[[245.6,41.010,-10065.0,46.246,19672.968,49.98,1.00],[248.3,41.070,-10191.0,3.838,13522.231,49.98,1.00],[247.4,40.990,-10135.0,398.436,11101.746,49.98,1.00]]} 2024-08-12 16:11:32 {"method":"uploadsn","mac":"849DC2A9A02C","version":"i.75.98.1", "server":"em","SN":"","Datas":[[248.2,137.90,-34228,12.625,30536.068,49.98,1.00],[247.8,138.05,-34205,2.491,30604.792,49.98,1.00],[247.5,133.76,-33070,0.536,29250.824,49.98,1.00]]} 2024-08-12 16:11:46 {"method":"uploadsn","mac":"849DC27BA28C","version":"i.75.98.1", "server":"em","SN":"","Datas":[[234.0,70.37,16458,24538.900,86.085,49.98,1.00],[232.0,71.17,16509,24761.398,24.741,49.98,1.00],[232.5,70.46,16380,24523.924,18.553,49.98,1.00]]}


Thread Status
1
55
2
0
0

Sort replies by:

Hi:

we just edited your thread and hid the SN. Please do not post the SN in public thread.

Yes , we change the setting of the "method" definition in the latest wifi module FW version.

It is x-y mode now.

x: represent the model of the energy meter (1:3080,2:3080T,3:3046T,4:3050T)

y: represent the metering module Firmware version

The relationship between metering module and wifi module , https://www.iammeter.com/newsshow/Blog-time-interval-parameter
The metering module firmware version is flashed when the device left the factory and can not be reflashed by the customers

the metering module has been updated from 5 to 9 in the last 5 years.

Some features is only supported after a specific version of the metering module FW (Ex: the reactive measurement is only supported by the FW version 9 and later)

The method field is not used by IAMMETER-cloud before,so we used this field to identify the model and the version of the metering module FW.



The method field definition will not be changed again in future , the value of the method is always x-y mode, but the value of x and y would be increasing,as we may support more products or the metring module keep on upgrading.



Looks like you are new here. Register for free, learn and contribute.