The default credentials for the Wise-6610 v2 gateway are `admin`/ `admin`.
Access to the LNS of the v2 is done via the menu `LoRaWan > Advantech LoRaWan Service`.
LNS Dashboard of the Wise-6610 v1
LNS Dashboard of the Wise-6610 v1
In v2, this menu is accessible via `Devices > Create Device > Type : OTAA`
Screenshot of the Node-RED interface
In v2 `Application Tools > Node-RED > Settings`.
In v2, check `Node-RED control`.
{ "d":[ { "tag":"Something:IoTEdge_Tag", "value":value }, { "tag":"Something:IoTEdge_Other_Tag", "value":other_value } ], "ts":"00000000000" }
//Ce script ne prend actuellement pas en charge le mode Dual Channel. bytes = [] c = 0 while(c < msg["data"].length) { bytes.push(parseInt(msg["data"].substr(c, 2), 16)); c+=2; } result = {} if(msg.port == 2 || msg.port == 3) { //Statut d'ouverture/fermeture en temps réel et historique //Pour des raisons de simplicité, traduisez uniquement la première entrée des événements historiques. result["DOOR:COUNT_MODE"] = (bytes[0] & 0x08) ? "RES" : "FAC"; //RES : Depuis la réinitialisation / FAC : Depuis l'usine result["DOOR:TDC"] = (bytes[0] & 0x04) ? 1 : 0; result["DOOR:ALARM"] = (bytes[0] & 0x02) ? 1 : 0; result["DOOR:DOOR_OPEN_STATUS"] = (bytes[0] & 0x01) ? 1 : 0; result["DOOR:DOOR_OPEN_TIMES"] = bytes[1] << 16 | bytes[2] << 8 | bytes[3]; result["DOOR:LAST_DOOR_OPEN_DURATION"] = bytes[4] << 16 | bytes[5] << 8 | bytes[6]; } if(msg.port == 4) { //Configuration du capteur //Envoyé uniquement après un message de liaison descendant du serveur result["DOOR:TDC"] = bytes[0] << 16 | bytes[1] << 8 | bytes[2]; result["DOOR:DISALARM"] = (bytes[3] & 0x1) ? 1:0; result["DOOR:KEEP_STATUS1"] = (bytes[4] & 0x1) ? 1:0; result["DOOR:KEEP_TIME1"] = bytes[5] << 8 | bytes[6] result["DOOR:KEEP_STATUS2"] = (bytes[7] & 0x1) ? 1 : 0; result["DOOR:KEEP_TIME2"] = bytes[8] << 8 | bytes[9] result["DOOR:ALARM_INTERVAL"] = bytes[10] } if(msg.port == 5) { //Statut de l'appareil result["DOOR:SENSOR_MODEL"] = (bytes[0] & 0x1B) ? "DS03A" : "Appareil inconnu"; result["DOOR:FIRMWARE_VERSION"] = "${bytes[1]}"; result["DOOR:FREQUENCY_BAND"] = "EU868"; result["DOOR:SUB_BAND"] = 0x00; result["DOOR:BATTERY"] = byte[5] << 8 | byte[6]; } output = { "d":[], "ts":"00000000000000000000000" } for(k in result) { output["d"].push({"tag":k, "value":result[k]}) } output["raw"] = result return output
//The bools in IoTEdge are represented by {0, 1}, to be used in dashboards bool DOOR_OPEN_STATUS; bool ALARM; int LAST_DOOR_OPEN_DURATION; // in seconds int DOOR_OPEN_COUNT;