The certificate type 'BACnet-Command' Not registered

hi
Someone can tell me,Why can't I read BACNET?

[
    {
        "id": "300fd127.935c9e",
        "type": "tab",
        "label": "BACnet Tests",
        "disabled": false,
        "info": ""
    },
    {
        "id": "200bcd1a.e47c92",
        "type": "debug",
        "z": "300fd127.935c9e",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 610,
        "y": 240,
        "wires": []
    },
    {
        "id": "b302933.0273a7",
        "type": "inject",
        "z": "300fd127.935c9e",
        "name": "",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 150,
        "y": 220,
        "wires": [
            [
                "5b57099634db014a"
            ]
        ]
    },
    {
        "id": "549547c9eca2886c",
        "type": "BACnet-Read",
        "z": "300fd127.935c9e",
        "name": "",
        "objectType": "8",
        "instance": "4dbefeb769a8973d",
        "propertyId": "8",
        "device": "474edaccb2381a77",
        "server": "9e5f9a54af76e8b5",
        "multipleRead": false,
        "x": 400,
        "y": 280,
        "wires": [
            [
                "200bcd1a.e47c92"
            ]
        ]
    },
    {
        "id": "f1413f3fab60b16e",
        "type": "inject",
        "z": "300fd127.935c9e",
        "name": "",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 150,
        "y": 280,
        "wires": [
            [
                "549547c9eca2886c"
            ]
        ]
    },
    {
        "id": "5b57099634db014a",
        "type": "BACnet-Command",
        "z": "300fd127.935c9e",
        "name": "WHO IS",
        "commandType": "whoIs",
        "timeDuration": 0,
        "enableDisable": 0,
        "deviceState": 0,
        "isUtc": true,
        "lowLimit": 0,
        "highLimit": 0,
        "device": "474edaccb2381a77",
        "server": "9e5f9a54af76e8b5",
        "x": 380,
        "y": 220,
        "wires": [
            [
                "200bcd1a.e47c92"
            ]
        ]
    },
    {
        "id": "4dbefeb769a8973d",
        "type": "BACnet-Instance",
        "name": "DEVICE RTHE",
        "instanceAddress": "111"
    },
    {
        "id": "474edaccb2381a77",
        "type": "BACnet-Device",
        "name": "",
        "deviceAddress": "192.168.1.88:47808"
    },
    {
        "id": "9e5f9a54af76e8b5",
        "type": "BACnet-Client",
        "name": "",
        "adpuTimeout": "6000",
        "port": "47808",
        "interface": "192.168.1.222",
        "broadcastAddress": "192.168.1.255"
    }
]

OK it's not clear are you saying WHOIS doesn't work ?
From memory read all doesn't work ALL this node was never fully developed.
You can read PV of Analog Inputs
I you want to read them all in a single read I can share some code.

Thanks for your reply, when the file is deployed, it will prompt that the certificate is not registered, injecting WHOIS returns a device array of 0; injecting bacnet RED will prompt a timeout; how to register the certificate

Hi what platform and version of Node-RED (NR) are you running on?
What hardware you running NR on?
I've never been asked for a cert
What happens if you disable the flow as I'm wondering if you have two problems.

  1. Node-RED
  2. BACnet

I was using WIN10 Enterprise Edition, node-red V2.06
The other nodes of NODE-RED work fine, only BACNET cannot read properly

Ok I've never run NR on windows so can't help.
Have you tired reading Present Value of Analog 1 ?
BTW I've haven't been able to read Multi state from device
AI/AO/AV/DI/DO/DV

I don't use the BACnet node I use the underlying library via a function node
Have look at my response on this thread

Is my instance number incorrect? I'm a rookie and new to BACNET; It's been bothering me for days; thank you for your help




Two things

  1. this line should be commented out
    // var BACnet = global.get('nodeBACnet');
    This is for older version on NR

var BACnet = nodeBACnet;

  1. can you install Yabe BACnet explorer
    Yet Another Bacnet Explorer download | SourceForge.net
    Most of on forum use this and will help us help you.

Yes you instance No is wrong
For each BACnet type the instance starts from the Address
In your screen shot it's BACnetAdress
For analog in 1 Active/Heat setpoint ...

var requestArray = [
    {objectId: {type: 0, instance: 1}, properties: [{id: 85}]}
]

For eample on my lab BACnet controller Analog values start at 201

var requestArray = [
    {objectId: {type: 0, instance: 201}, properties: [{id: 85}]}
]

hi, the situation is as follows, please help me thank you

Sending WhoIs ...
UnconfirmedServiceRequest

It's not discovering any BACnet devices
If it was there would be a [+] Icon to the left of [Green Tree] Icon

Out of interest from Windows cmd line can you ping the BACnet device looking at your flow 192.168.1.88

Ping is normal
Is it necessary to use a BAC gateway can not use a BAC router; I use a BAC router
QQ图片20220308194745

Ok Node-RED BACnet won't work with a BACnet router.
As I've said before the node was never developed to cover your use case.

hi, I am using the BACNET gateway now, but I have a timeout error

Gateway deviceId: 2603
MSTP deviceId: 111




Ok as I've said before AI/AO/AV start typically with an instance of: 0
And "the device" instance 2603 doesn't' have PV id: 85 "present value" which is a measurement or virtual value. I would strongly recommend that you go an learn more about BACnet object/properties/data types

hi iiLaw
Thanks for your reply, I have successfully obtained a single AI/AO/BI/BO, and I am still timeout when using a function to get multiple mocks :joy:
Thank you again for your help

[
    {
        "id": "d910256c2ab0368b",
        "type": "tab",
        "label": "BACnet Room",
        "disabled": false,
        "info": ""
    },
    {
        "id": "df1434b4eaa8e445",
        "type": "inject",
        "z": "d910256c2ab0368b",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 220,
        "wires": [
            [
                "f32fc720fca07497"
            ]
        ]
    },
    {
        "id": "7e85eb58ab877937",
        "type": "debug",
        "z": "d910256c2ab0368b",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 570,
        "y": 220,
        "wires": []
    },
    {
        "id": "d930423cab40640b",
        "type": "BACnet-Command",
        "z": "d910256c2ab0368b",
        "name": "WHOIS",
        "commandType": "whoIs",
        "timeDuration": 0,
        "enableDisable": 0,
        "deviceState": 0,
        "isUtc": true,
        "lowLimit": 0,
        "highLimit": 0,
        "device": "474edaccb2381a77",
        "server": "9e5f9a54af76e8b5",
        "x": 300,
        "y": 60,
        "wires": [
            [
                "62bb47a322a3ccae"
            ]
        ]
    },
    {
        "id": "f32fc720fca07497",
        "type": "BACnet-Read",
        "z": "d910256c2ab0368b",
        "name": "read set temp",
        "objectType": "1",
        "instance": "cf0dca49.2a9ac",
        "propertyId": "85",
        "device": "474edaccb2381a77",
        "server": "9e5f9a54af76e8b5",
        "multipleRead": false,
        "x": 320,
        "y": 220,
        "wires": [
            [
                "7e85eb58ab877937"
            ]
        ]
    },
    {
        "id": "c7242307c49f6ae1",
        "type": "inject",
        "z": "d910256c2ab0368b",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 60,
        "wires": [
            [
                "d930423cab40640b"
            ]
        ]
    },
    {
        "id": "62bb47a322a3ccae",
        "type": "debug",
        "z": "d910256c2ab0368b",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 570,
        "y": 60,
        "wires": []
    },
    {
        "id": "b1027193e1b8bb51",
        "type": "function",
        "z": "d910256c2ab0368b",
        "name": "BACNET Multiple Read set temp",
        "func": "var BACnet = nodeBACnet ;  \nvar client = new BACnet();\n\nvar requestArray = [\n  {objectId: {type:1, instance: 1}, properties: [{id: 85}]},\n//   {objectId: {type: 1, instance: 2}, properties: [{id: 85}]}\n];\n\nclient.readPropertyMultiple('192.168.1.88', requestArray, (err, value) => {\n  if(err){\n    msg.payload = err;\n  } else {\n    msg.payload = value;\n }\n node.send(msg);\n});\nreturn msg;\n\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [
            {
                "var": "nodeBACnet",
                "module": "node-bacnet"
            }
        ],
        "x": 370,
        "y": 360,
        "wires": [
            [
                "df4579d435dfef80"
            ]
        ]
    },
    {
        "id": "e9df6cfc3530013c",
        "type": "inject",
        "z": "d910256c2ab0368b",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 140,
        "y": 360,
        "wires": [
            [
                "b1027193e1b8bb51"
            ]
        ]
    },
    {
        "id": "df4579d435dfef80",
        "type": "debug",
        "z": "d910256c2ab0368b",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 630,
        "y": 360,
        "wires": []
    },
    {
        "id": "d0ecaffe8b547196",
        "type": "inject",
        "z": "d910256c2ab0368b",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 110,
        "y": 140,
        "wires": [
            [
                "277a658bbf67dc66"
            ]
        ]
    },
    {
        "id": "489e31b155560c43",
        "type": "debug",
        "z": "d910256c2ab0368b",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 690,
        "y": 140,
        "wires": []
    },
    {
        "id": "277a658bbf67dc66",
        "type": "function",
        "z": "d910256c2ab0368b",
        "name": "bacnet write msg",
        "func": "msg.payload = {\n     //deviceIPAddress: '192.168.1.222',\n    values: [\n        {\n            objectId: {type: 1, instance: 1}, //数据类型:AO,实例号:1\n            values: [\n                {property: {id: 85, index: 4294967295}, //属性ID:PV\n                value: [{type: 4, value: 15}], //值类型:实数,值:7\n                priority: 7}\n            ]\n        }\n    ]\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 330,
        "y": 140,
        "wires": [
            [
                "122c06d409e4f348"
            ]
        ]
    },
    {
        "id": "122c06d409e4f348",
        "type": "BACnet-Write",
        "z": "d910256c2ab0368b",
        "name": "",
        "objectType": "1",
        "instance": "cf0dca49.2a9ac",
        "valueTag": "4",
        "valueValue": "",
        "propertyId": "85",
        "priority": "",
        "device": "474edaccb2381a77",
        "server": "9e5f9a54af76e8b5",
        "multipleWrite": true,
        "x": 520,
        "y": 140,
        "wires": [
            [
                "489e31b155560c43"
            ]
        ]
    },
    {
        "id": "474edaccb2381a77",
        "type": "BACnet-Device",
        "name": "",
        "deviceAddress": "192.168.1.88:47808"
    },
    {
        "id": "9e5f9a54af76e8b5",
        "type": "BACnet-Client",
        "name": "",
        "adpuTimeout": "6000",
        "port": "47808",
        "interface": "192.168.1.222",
        "broadcastAddress": "192.168.1.255"
    },
    {
        "id": "cf0dca49.2a9ac",
        "type": "BACnet-Instance",
        "name": "",
        "instanceAddress": "1"
    }
]

Instance type: 1 is Analog out
Use the BACnet property panel in Yabe and it will tell the object type
To read analog IN you need type:0
image

hi iilaw
I used a stupid way to use it, but at the moment I can't send requests at the same time as TYEE1 and TYPE0

looking at your spread sheet earlier in post your points don't look contiguous.
You need to spend a bit more time understanding the points in your controller.

ok ths

Read multiple points and multiple properties works for me.
I have no idea what that error is your going to have to take a look at the node.js lib
https://biancoroyal.github.io/node-bacstack/