Acrel IoT Docs Help

Notice事件命名规范

此文档列出了已有的事件的格式,相同场景的事件可以直接复用,以确保应用平台可以统一处理。

事件类型

事件编码

启停事件

RUN_START/RUN_STOP

恶性负载事件

LOADCONTROL

停电上报

GW_PWROFF

通断电次数及时长

POWER_UPS/POWER_OUTAGE

电器负载上报

ELEC_LOAD

电瓶车充电识别

ElectricCar

启停事件

网关通过抄表值来监控设备的启停状态,设备的启动事件必须与停止事件成对上报。

  • 被监测设备上传启动/停止事件。

    判断依据:|P|>阈值时,设备运行,累计运行时长;反之设备待机。

{ "msgid": 123, "method": "notice", "timestamp": 1638869890, "sn": "123456", "payload": { "sn": "567890", "noticeType": [ "RUN_START" ], "RUN_START": { "startTime": 1672724999, "startEPI": "100.1", "startSwOnTime": "50" } } }

属性

类型

描述

RUN_START

String

事件编码,运行启动状态

startTime

Long

启动时间戳

startEPI

String

被监测设备启动时的电能值

startSwOnTime

String

被监测设备启动时的累计运行时长,单位:秒

  • 被监测设备上传停止事件

{ "msgid": 123, "method": "notice", "timestamp": 1638869890, "sn": "123456", "payload": { "sn": "567890", "noticeType": [ "RUN_STOP" ], "RUN_STOP": { "startTime": 1672724999, "startEPI": "100.1", "startSwOnTime": "50", "stopTime": 1672725100, "stopEPI": "102.2", "stopSwOnTime": "150" } } }

属性

类型

描述

RUN_STOP

String

事件编码,设备启停事件

startTime

Long

启动时间戳

startEPI

String

被监测设备启动时的电能值

startSwOnTime

String

被监测设备启动时的累计运行时长,单位:秒

stopTime

Long

停止时间戳

stopEPI

String

被监测设备停止时的电能值

stopSwOnTime

String

被监测设备停止时的累计运行时长,单位:秒

恶性负载事件

  1. 网关抄表检测到负控次数有增加就认为有负控跳闸

  2. 当检测到负控跳闸时就读取最新一条跳闸记录然后上报

{ "msgid": 567, "method": "notice", "sn": "123456", "timestamp": 1638869890, "payload": { "sn": "567890", "noticeType": [ "LOADCONTROL" ], "LOADCONTROL": { "Reason": 340, "I": 1.21, "P": 1.251, "PF": 1.1, "PI": 1.2, "IF": 1.2 } } }

属性

类型

描述

LOADCONTROL

String

事件编码,恶性负载事件

Reason

Integer

跳闸原因,平台自行解析内容

I

Float

跳闸电流

P

Float

跳闸功率

PF

Float

跳闸功率因数

PI

Float

跳闸功率因数

IF

Float

跳闸因数增量

停电上报

网关或者直连仪表在监测到停电前,上报此事件内容

{ "msgid": 123, "method": "notice", "timestamp": 1638869890, "sn": "123456", "payload": { //网关sn "sn": "123456", "noticeType": [ "GW_PWROFF" ], "GW_PWROFF": { "timestamp": 1638869890, "detail": "" } } }

属性

类型

描述

GW_PWROFF

String

事件编码,停电上报

timestamp

Long

停电时间

detail

String

附带细节描述,没有可省略

通断电次数及时长

  • 被监测设备上传通电事件

{ "msgid": 123, "method": "notice", "timestamp": 1638869890, "sn": "123456", "payload": { "sn": "567890", "noticeType": [ "POWER_UPS" ], "POWER_UPS": { "upsTime": 1672724999, "upsSwOnNumber": "10", "upsSwOnTime": "50" } } }

属性

类型

描述

POWER_UPS

String

事件编码,通电事件

upsTime

Long

通电时间戳

upsSwOnNumber

String

被监测设备通电时的总通断电次数

upsSwOnTime

String

被监测设备通电时的累计通电时长,单位:秒

  • 被监测设备上传断电事件。设备的断电事件必须与通电事件成对上报。

{ "msgid": 123, "method": "notice", "timestamp": 1638869890, "sn": "123456", "payload": { "sn": "567890", "noticeType": [ "POWER_OUTAGE" ], "POWER_OUTAGE": { "upsTime": 1672724999, "upsSwOnNumber": "10", "upsSwOnTime": "50", "outageTime": 1672725100, "outageSwOnNumber": "11", "outageSwOnTime": "150" } } }

属性

类型

描述

POWER_OUTAGE

String

事件编码,设备启停事件

upsTime

Long

通电时间戳

upsSwOnNumber

String

被监测设备通电时的总通断电次数

upsSwOnTime

String

被监测设备通电时的累计通电时长,单位:秒

outageTime

Long

断电时间戳

outageSwOnNumber

String

被监测设备断电时的总通断电次数

outageSwOnTime

String

被监测设备断电时的累计通电时长,单位:秒

电器负载上报

网关或者直连仪表在监测电器的启动关闭时,上报数据给平台

{ "msgid": 123, "method": "notice", "timestamp": 1638869890, "sn": "ASCB1TEST00003", "payload": { "sn": "ASCB1TEST00003", "noticeType": [ "ELEC_LOAD" ], "ELEC_LOAD": { "OccurTime": 1672724999, "UpType": "1", "U": "223.0", "I": "1.0", "IHC": "0.6", "IFw": "0.5", "P": "100", "PFw": "90", "Q": "-20", "QFw": "-15", "S": "160", "SFw": "160", "PF": "0.8", "PChange": "100" } } }

参数

说明

ELEC_LOAD

事件编码,负载事件

OccurTime

时间戳

UpType

上报类型,0:负载减少1:负载增加

U

电压,单位:V

I

电流,单位:A

IHC

谐波电流,单位:A

IFw

基波电流,单位:A

P

有功功率,单位:W

PFw

基波有功功率,单位:W

Q

无功功率,单位:Var

QFw

基波无功功率,单位:Var

S

视在功率,单位:W

SFw

基波视在功率,单位:W

PF

功率因数,单位:1

PChange

有功功率变化量,单位:W

电瓶车充电识别

当识别到电瓶车充电时,通过事件上报给平台

{ "msgid": 123, "method": "notice", "timestamp": 1638869890, "sn": "ASCB1TEST00003", "payload": { "sn": "1_1", "noticeType": [ "ElectricCar" ], "ElectricCar": { // 相关电参量 } } }
24 五月 2024