# NCD Sensors library

**URL:** <https://discourse.nodered.org/t/ncd-sensors-library/25996>\
**Category:** Hardware\
**Created:** [3 May 2020 13:25 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996 "2020-05-03T13:25:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [3 May 2020 13:25 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/1 "2020-05-03T13:25:57Z")

</div>

Hi, i found NCD Sensor library ([https://flows.nodered.org/search?term=ncd](https://flows.nodered.org/search?term=ncd)). I read that these sensors use Digimesh, and because i don't have NCD i try to use my Xbee's, that also use Digimesh firmware, but i receive the error from the photo. Is this error appears because i don't use the right sensors, or the reason is else?

 ![NCD Error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2b95f8ea71d10e0f9bdd14a6b73309a57fba255.jpeg)

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [3 May 2020 13:35 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/2 "2020-05-03T13:35:45Z")

</div>

Hi, it looks like you have no permissions to access the Com11 device. Try giving the user you are logged in as permission to use it!

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [3 May 2020 13:49 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/3 "2020-05-03T13:49:58Z")

</div>

I will follow your advice.  
Can i achieve this goal: Connect one of the nodes physically (USB) to the PC/RPI, and use it to obtain sensor data (Temp) from remote wireless node (with node red of course)?

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [4 May 2020 12:14 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/4 "2020-05-04T12:14:11Z")

</div>

Now i have this problem with debugging. Any help?

"TypeError: Cannot read property 'digi' of undefined"

4.05.2020 г., 14:56:39[node: 73f69770.0d27e8](http://127.0.0.1:1880/#)msg : error

"TypeError: Cannot read property 'gateway' of null"

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 May 2020 12:15 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/5 "2020-05-04T12:15:53Z")

</div>

Not with so little information.

Screenshots? Flow? Code? What node is generating the error? Etc etc etc.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 May 2020 12:33 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/6 "2020-05-04T12:33:19Z")

</div>

Where is that error occuring? Click the nodeid link in the debug panel - it will take you to the node causing an error. Also, give your debug node unique names - makes it easier to see where the messages come from .

Once you know which node is generating the error, put a debug node BEFORE it and then fire it again. See what goes into that node. Is everything there as expected?

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [4 May 2020 12:37 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/7 "2020-05-04T12:37:05Z")

</div>

The node generating the error is 'Wireless gateway'. Don't use code for now (just test).

 ![Xbee Test node-red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/8/a82e0b6f156e1e67fdf2136dab810de5b4b6b273.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 May 2020 12:40 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/8 "2020-05-04T12:40:00Z")

</div>

I have no idea what that node is (you dont say what it is - e.g. `node-red-contrib-??????`), nor have you shown settings entered.

Sorry, but it is impossible to help you.

PS, are you certain that error is from "Flow 2" is there another flow? Try changing " **all nodes**" to " **current flow**" on the debug panel. (top right)

also, change the `debug` node settings to " **complete message**"

lastly, add a `catch` node and link that to a `debug` node with " **complete message**" option set.

When the error occurs again, look in the debug panel & expand all parts - there might be some more clues to your issue.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [4 May 2020 13:04 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/9 "2020-05-04T13:04:13Z")

</div>

There is no other flow.  
I already change the debug node settings to "complete message".  
I added catch and expanded the debug panel, but nothing new came out  
The nodes are:

> **[ncd-red-wireless](https://flows.nodered.org/node/ncd-red-wireless)**
>
> \[!\[Build Status\](https://semaphoreci.com/api/v1/zaphod-42/ncd-red-wireless/branches/master/badge.svg)\](https://semaphoreci.com/zaphod-42/ncd-red-wireless)

Like i asked in the beginning, could the problem be be because, i don't use the Ncd sensors?

4.05.2020 г., 14:56:39[node: 73f69770.0d27e8](http://127.0.0.1:1880/#)msg : error

"TypeError: Cannot read property 'gateway' of null"

4.05.2020 г., 14:56:39[node: Wall](http://127.0.0.1:1880/#)msg : error

"TypeError: Cannot read property 'gateway' of null"

Like i asked in the beginning, could the problem be be because, i don't use the Ncd sensors?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 May 2020 13:12 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/10 "2020-05-04T13:12:38Z")

</div>

you still didnt post screen shot of config.

but...

> [@Martin10](#):
>
> could the problem be be because, i don't use the Ncd sensors?

I suppose that doesnt matter now.

Heres a mad question - why are you using this node if you dont have NCD sensors?

PS, I 'm gonna go with yes. You probably left the serial port (or some other setting) empty - like this...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/b/ab096507f6ffef15699cba0b71dba8e887be788c.png)

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [4 May 2020 14:03 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/11 "2020-05-04T14:03:31Z")

</div>

Like i said before- i wish to achieve this goal: Connect one of the nodes physically (USB) to the PC/RPI, and use it to obtain sensor data (Temp) from remote wireless node. From the library in node-red, i think NCD library is the closest possible option (if you know better option feel free to share with me). I read that NCD sensors use Digimesh, and because i don't have NCD i try to use my Xbee's, that also use Digimesh firmware.  
Sorry for the photos i forget.

 ![Xbee Test node-red 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/b/1b02be980d773052feed8e2a62d422adc2e68697.jpeg)

 ![Xbee Test node-red 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/b/5bba74a2ace2233b090cc2273fdee3ab3835b998.jpeg)

 ![Xbee Test node-red 3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d9055468d8a466219058b9718b84517faf387eea.jpeg)

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [5 May 2020 17:57 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/12 "2020-05-05T17:57:00Z")

</div>

Any help?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 May 2020 18:15 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/13 "2020-05-05T18:15:28Z")

</div>

Not related to using the NCD node no.

You might want to try a different approach.

If you can get it to work in nodejs using a lib [like this](https://github.com/rwestlund/node-digimesh/blob/master/README.md) then feasibility, you could look into making a node-red contrib node for yourself and others. Or, you could just `include` a reference to the lib and use function nodes to call the lib

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [6 May 2020 13:45 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/14 "2020-05-06T13:45:47Z")

</div>

I think my question is related to using the NCD nodes, because they use digimesh firmware, and my xbee nodes use that firmware too, so my question was what is the nature of the mentioned error- is it appear because the nodes are different (ncd vs xbee), or the problem is somewhere else?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 May 2020 17:34 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/15 "2020-05-06T17:34:20Z")

</div>

Yeah, I get that, but you asked...

> [@Martin10](#):
>
> Any help?

and i said...

> [@Steve-Mcl](#):
>
> Not related to using the NCD node no.

But, I did suggest a node lib that you _might_ get working (there is an example.js file in there - you could tweak it & run it on a command line - if it works, we can help you incorporate that into node-red)

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [8 May 2020 12:28 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/16 "2020-05-08T12:28:09Z")

</div>

Ok, but can someone tell me what is the meaning of the mentioned error, and how to solve it ?

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [9 May 2020 18:06 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/17 "2020-05-09T18:06:38Z")

</div>

Any help?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 May 2020 18:17 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/18 "2020-05-09T18:17:33Z")

</div>

I don't think it's gonna work but if it helps, I don't get that error.

Maybe the fact you have set com12 for 2 different configs is causing an issue. (One of the config nodes might be locking into com 12 and the other config node then fails)

Try deleting all configs except for 1. Also, are you certain your com port is 12?

After that, try the other suggestion.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [9 May 2020 23:40 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/19 "2020-05-09T23:40:49Z")

</div>

I would suggest you contact the author of the Node that you are using and ask does it support different Mesh products rather than just NCD

It appears that no one else on the forum has used this in the fashion that you are trying to

Craig

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [13 May 2020 17:54 UTC](https://discourse.nodered.org/t/ncd-sensors-library/25996/20 "2020-05-13T17:54:34Z")

</div>

I follow this video steps, but still got the mention error

[![](https://img.youtube.com/vi/-wi1_FXGzFE/hqdefault.jpg "Adding ncd wireless Sensors") ](https://www.youtube.com/watch?v=-wi1_FXGzFE)

[Next page](https://discourse.nodered.org/t/ncd-sensors-library/25996.md?page=2)
