The system can inform the Alarm (MQTT) server in case of:
|
|
By default, the system will notify the Alarm server if an DECT Manager and/or DECT base is down after 9 minutes outage. This value can be changed via auto-provisioning.
<?xml version="1.0" encoding="UTF-8"?> <provisioning version="1.1" productID="e2"> <nvm> <param name="AmlGlobal.0.DropoutNotificationTimeout" value="60"/> </nvm> </provisioning> |
<?xml version="1.0" encoding="UTF-8"?> <provisioning version="1.1" productID="e2"> <nvm> <param name="AmlGlobal.0.DropoutNotificationTimeout" value="0"/> </nvm> </provisioning> |
|
If you want to receive this information, the alarm server need to subscribe to the MQTT topic.
Example of subscription for any notification.
mosquitto_sub -v -t '#' -u "as1" -P "as1" --psk-identity as1 --psk password -p 8884 -h ip_address |
Example of subscription for notification regarding status of base stations
mosquitto_sub -v -t 'xxl/as-agent/system/as-agent/noti/bsStatus' -u "as1" -P "as1" --psk-identity as1 --psk password -p 8884 -h ip_address |
Example of subscription for notification regarding status of dect managers
mosquitto_sub -v -t 'xxl/as-agent/system/as-agent/noti/dmStatus' -u "as1" -P "as1" --psk-identity as1 --psk password -p 8884 -h ip_address |
Example of subscription for notification regarding the handset status
// Example for "ANY" handset mosquitto_sub -v -t '+/+/as/hs/noti/hs_status' -u "as1" -P "as1" --psk-identity as1 --psk password -p 8884 -h ip_address // Example for a specific handset mosquitto_sub -v -t '<dm_id>/<sip_id>/as/hs/noti/hs_status' -u "as1" -P "as1" --psk-identity as1 --psk password -p 8884 -h ip_address |
Where:
-u user needs to be added to external client list (webui settings/online-services/application-servers)
--psk is external client password
-p is psk port
-h is ip address of the device
If the AML server subscribes on the required topic, the system will answer with the status
@startuml !pragma teoz true participant "Base 589ec60d90ca" as bs1 participant "Base 7c2f80c6e5c2" as bs2 participant "Base 7c2f80f68993" as bs3 box Nx70 participant "MQTT" as mqtt end box participant "AML server" as aml == Example: Subscribe to base station status == aml -> mqtt: MQTT subscribe xxl/as-agent/system/as-agent/noti/bsStatus mqtt -> aml: "{"payload":[{"id":"589ec60d90ca","name":"Office","status":"up"},{"id":"7c2f80c6e5c2","name":"LocalBS","status":"up"},{"id":"7c2f80f68993","name":"Reception","status":"up"}]}" @enduml |
|
Power status information contains the following elements:
"charger":
Contains info about status about in charger ("in") or out of charger ("off").
"battery_level":
Contains battery charge level in percent (valid values are 0 to 64 hexadecimal), Value 7f indicates that battery charge level is not available for some reason.
For this feature you need:
How to enable this feature:
First you need to enable this feature per handset, this is done via the following MQTT command.
Below an example to activate this feature for handset "1013"
mosquitto_pub -t 'as1/hs_status/sip_id/1013/req/hs_status' -m '{"msgId": "hs_status_1013","params": {"sip_id":"1013","hs_status":{"power_status":"on"}}}' |
If operation was successful, response will be sent with current status:
dm1/1013/as1/hs_status/res/hs_status {"msgId":"hs_status_1013","payload":{"hs_status":{"power_status":"on"},"sip_id":"1013"}} |
If HS does not support sending power status, proper reject reason will be sent:
dm1/1013/as1/hs_status/res/hs_status {"msgId":"hs_status_1013","payload":{"hs_status":{"rej_reason":"feature_not_supported"},"sip_id":"1013"}} |
It will contain status of charging and current battery level (in hex value), e.g.:
dm1/1013/as/hs/noti/hs_status {"msgId":"hs_status_1013","payload":{"power_status":{"battery_level":"5a","charger":"off"},"sip_id":"1013"}} |