OpenZwave ==> keeps reconnecting


#1

Hi,

I have a Zwave stick from Aeotec.
In the past, after many attempts I got the OpenZwave node working in node-red, which is running on a raspberrypi

Then I had a major crash on my node-red, I was not up-to-date with node.js etc...
With support from this forum, I have it back working now.

It also 'seems' that the OpenZwave is installed well, at least, it is available in my library without any errors.
image

But when I deploy and I fill in my correct port of my zwave stick....
image

... everything crashes. Node-red keeps on rebooting, time after time.
image

I can also see this in putty when I do node-red start. It just keeps re-starting

I am sure that is the position of the stick
image

I also did a reset on my zwave stick itself, just to be sure I am not working with an old network key or something. But no specific reason, just thought let's reset the stick also.

it doesn't matter if the stick is connected or not, the moment I insert a port, it crashes. If I deploy without a port there is no problem, but offcourse it's also not working.

I know I also should install node-openzwave-shared. but I'm not sure if this is done correct.

I really would like to get it back working, becaust it's an important thing of my house automation.
But I really have no idea where to look/what to do.

Are there still some old files on my system from the first installation? is it not installed correctly... I just don't know.

Who can assist me with this?

Thanks in advance!

Nick


#2

if you updated everything else did you also update the prerequisite library the ReadMe lists?

Have you tried re-installing that prior to re-installing the openzwave node?


#3

If it still is crashing after @ukmoose's suggestions then open a terminal and run

node-red-stop
node-red-start

and copy/paste the result here.


#4

Hi,

the problem is a little bit that I hardly understand what I need to do. It's all linux commands etc...

I did it via the desription on the next link: https://github.com/OpenZWave/node-openzwave-shared/blob/master/README-raspbian.md and there I took in the past the 'easy way'

And today, I actually saw or the first time this is for raspberry 1 and it's a post from 2016...
That will be the reason why my system was not up-to-date.

Sow, back to basic and that's the readme you can find on the openzwave node site

I can see I have to do two things, but I really have no idea how to manage that correctly...

I think the precompiled package is the easiest, but then I still don't know which one to download.
If I download it from rasbian (desktop environement), is it then simply a execution file like .exe on windows?

So, with a little bit assistance how to get everything on my pi, I think I will be done.

Thanks


#5

If I was trying to use a Node-RED node I would follow the step by step instructions in the nodes README.


#6

Ok, thanks... but that's where I'm stuck unless I miss another README file.

The readme says: First install the openzwave library, then install the node

For the first option I can choose manually compiling or the precompiled package

I am working on my windows computer, I can work with putty, but I have NO knowledge of linux. I just want to get node-red working

So for the manually compiling I have no idea what to download on the link and neither what I should do next with the make && sudo make install && sudo ldconfig line

For the second option again, I do not know what I sould donwload and there I don't know how I should execute next...


#7

@NickB,
Have a look at: https://github.com/OpenZWave/node-openzwave-shared/blob/master/README-raspbian.md

  1. Install libudev-dev
sudo apt-get install -y libudev-dev
  1. Install the Open-Zwave library (use the source and compile)
cd ~

wget http://old.openzwave.com/downloads/openzwave-1.4.1.tar.gz

tar zxvf openzwave-*.gz

cd openzwave-1.4.1 && make && sudo make install

export LD_LIBRARY_PATH=/usr/local/lib

sudo sed -i '$a LD_LIBRARY_PATH=/usr/local/lib' /etc/environment

sudo ldconfig
  1. test the OpenZwave installation
MinOZW /dev/ttyACM0

Is the test ok?


#8

Hi cflurin,

I don't know if it's succesful.
First I have some errors and then allot of lines...
This is the result:

pi@raspberrypi:~/openzwave-1.4.1 $ MinOZW /dev/ttyACM0
Starting MinOZW with OpenZWave Version 1.4.1
2018-12-04 18:33:48.895 Error, Cannot find a path to the configuration files at ../../../config/, Using config/ inste                                            ad...
2018-12-04 18:33:48.896 Info, Reading config/options.xml for Options
2018-12-04 18:33:48.896 Warning, Failed to Parse options.xml: Failed to open file
2018-12-04 18:33:48.897 Always, OpenZwave Version 1.4.1 Starting Up
2018-12-04 18:33:48.897 Info, Setting Up Provided Network Key for Secure Communications
2018-12-04 18:33:48.898 Warning, Failed - Network Key Not Set
2018-12-04 18:33:48.898 Info, mgr,     Added driver for controller /dev/ttyACM0
2018-12-04 18:33:48.898 Info,   Opening controller /dev/ttyACM0
2018-12-04 18:33:48.898 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)
2018-12-04 18:33:48.900 Info, Serial port /dev/ttyACM0 opened (attempt 1)
2018-12-04 18:33:48.900 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2018-12-04 18:33:48.901 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2018-12-04 18:33:48.901 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00,                                             0x05, 0xf9
2018-12-04 18:33:48.901 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x0                                            7, 0xfb
2018-12-04 18:33:48.901 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2018-12-04 18:33:48.901 Detail,
2018-12-04 18:33:48.901 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW                                            _GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2018-12-04 18:33:48.904 Detail, contrlr,   Received: 0x01, 0x10, 0x01, 0x15, 0x5a, 0x2d, 0x57, 0x61, 0x76, 0x65, 0x20                                            , 0x33, 0x2e, 0x39, 0x35, 0x00, 0x01, 0x99
2018-12-04 18:33:48.905 Detail,
2018-12-04 18:33:48.905 Info, contrlr, Received reply to FUNC_ID_ZW_GET_VERSION:
2018-12-04 18:33:48.905 Info, contrlr,     Static Controller library, version Z-Wave 3.95
2018-12-04 18:33:48.905 Detail, Node045,   Expected reply was received
2018-12-04 18:33:48.905 Detail, Node045,   Message transaction complete
2018-12-04 18:33:48.905 Detail,
2018-12-04 18:33:48.905 Detail, contrlr, Removing current message
2018-12-04 18:33:48.905 Detail,
2018-12-04 18:33:48.905 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW                                            _MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2018-12-04 18:33:48.908 Detail, contrlr,   Received: 0x01, 0x08, 0x01, 0x20, 0xd1, 0xcb, 0xb9, 0xb0, 0x01, 0xc4
2018-12-04 18:33:48.909 Detail,
2018-12-04 18:33:48.909 Info, contrlr, Received reply to FUNC_ID_ZW_MEMORY_GET_ID. Home ID = 0xd1cbb9b0.  Our node ID                                             = 1
2018-12-04 18:33:48.909 Detail, Node203,   Expected reply was received
2018-12-04 18:33:48.909 Detail, Node203,   Message transaction complete
2018-12-04 18:33:48.909 Detail,
2018-12-04 18:33:48.909 Detail, contrlr, Removing current message
2018-12-04 18:33:48.909 Detail,
2018-12-04 18:33:48.909 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW                                            _GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2018-12-04 18:33:48.911 Detail, contrlr,   Received: 0x01, 0x04, 0x01, 0x05, 0x08, 0xf7
2018-12-04 18:33:48.911 Detail,
2018-12-04 18:33:48.911 Info, contrlr, Received reply to FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES:
2018-12-04 18:33:48.911 Info, contrlr,     There is no SUC ID Server (SIS) in this network.
2018-12-04 18:33:48.912 Info, contrlr,     The PC controller is a primary controller.
2018-12-04 18:33:48.912 Detail, Node247,   Expected reply was received
2018-12-04 18:33:48.912 Detail, Node247,   Message transaction complete
2018-12-04 18:33:48.912 Detail,
2018-12-04 18:33:48.912 Detail, contrlr, Removing current message
2018-12-04 18:33:48.912 Detail,
2018-12-04 18:33:48.912 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SE                                            RIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2018-12-04 18:33:48.916 Detail, contrlr,   Received: 0x01, 0x2b, 0x01, 0x07, 0x01, 0x00, 0x00, 0x86, 0x00, 0x01, 0x00                                            , 0x5a, 0xfe, 0x81, 0xff, 0x88, 0x4f, 0x1f, 0x00, 0x00, 0xfb, 0x9f, 0x7d, 0xa0, 0x67, 0x00, 0x00, 0x80, 0x00, 0x80, 0                                            x86, 0x00, 0x00, 0x00, 0xe8, 0x73, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x60, 0x00, 0x00, 0xfb
2018-12-04 18:33:48.916 Detail,
2018-12-04 18:33:48.916 Info, contrlr,  Received reply to FUNC_ID_SERIAL_API_GET_CAPABILITIES
2018-12-04 18:33:48.916 Info, contrlr,     Serial API Version:   1.0
2018-12-04 18:33:48.917 Info, contrlr,     Manufacturer ID:      0x0086
2018-12-04 18:33:48.917 Info, contrlr,     Product Type:         0x0001
2018-12-04 18:33:48.917 Info, contrlr,     Product ID:           0x005a
2018-12-04 18:33:48.917 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_RANDOM: 0x01, 0x04, 0x00, 0x1c, 0x20, 0xc7
2018-12-04 18:33:48.917 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_INIT_DATA: 0x01, 0x03, 0x00, 0x02,                                             0xfe
2018-12-04 18:33:48.917 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_SET_TIMEOUTS: 0x01, 0x05, 0x00, 0x06, 0                                            x64, 0x0f, 0x97
2018-12-04 18:33:48.917 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_APPL_NODE_INFORMATION: 0x01, 0x07, 0x00                                            , 0x03, 0x01, 0x02, 0x01, 0x00, 0xf9
2018-12-04 18:33:48.917 Detail,   Expected reply was received
2018-12-04 18:33:48.918 Detail,   Message transaction complete
2018-12-04 18:33:48.918 Detail,
2018-12-04 18:33:48.918 Detail, contrlr, Removing current message
2018-12-04 18:33:48.918 Detail,
2018-12-04 18:33:48.918 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW                                            _GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2018-12-04 18:33:48.920 Detail, contrlr,   Received: 0x01, 0x04, 0x01, 0x56, 0x00, 0xac
2018-12-04 18:33:48.920 Detail,
2018-12-04 18:33:48.920 Info, contrlr, Received reply to GET_SUC_NODE_ID.  Node ID = 0
2018-12-04 18:33:48.920 Info, Controller Does not Support SUC - Cannot Setup Controller as SUC Node
2018-12-04 18:33:48.920 Detail, Node172,   Expected reply was received
2018-12-04 18:33:48.921 Detail, Node172,   Message transaction complete
2018-12-04 18:33:48.921 Detail,
2018-12-04 18:33:48.921 Detail, contrlr, Removing current message
2018-12-04 18:33:48.921 Detail,
2018-12-04 18:33:48.921 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x1c) - FUNC_ID_ZW                                            _GET_RANDOM: 0x01, 0x04, 0x00, 0x1c, 0x20, 0xc7
2018-12-04 18:33:48.976 Detail, contrlr,   Received: 0x01, 0x25, 0x01, 0x1c, 0x01, 0x20, 0x58, 0xe4, 0x58, 0xf1, 0x2d                                            , 0x44, 0x27, 0x89, 0x02, 0x00, 0xe5, 0xad, 0xd4, 0x6b, 0x57, 0xf2, 0x60, 0xd1, 0x94, 0xb4, 0x12, 0xc3, 0x23, 0x19, 0                                            xae, 0x3e, 0x61, 0x78, 0xb7, 0x1e, 0x28, 0xc2, 0xd4
2018-12-04 18:33:48.976 Detail,
2018-12-04 18:33:48.976 Info, contrlr, Received reply to FUNC_ID_ZW_GET_RANDOM: true
2018-12-04 18:33:48.976 Detail, Node032,   Expected reply was received
2018-12-04 18:33:48.977 Detail, Node032,   Message transaction complete
2018-12-04 18:33:48.977 Detail,
2018-12-04 18:33:48.977 Detail, contrlr, Removing current message
2018-12-04 18:33:48.977 Detail,
2018-12-04 18:33:48.977 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x02) - FUNC_ID_SE                                            RIAL_API_GET_INIT_DATA: 0x01, 0x03, 0x00, 0x02, 0xfe
2018-12-04 18:33:49.078 Detail, contrlr,   Received: 0x01, 0x25, 0x01, 0x02, 0x05, 0x00, 0x1d, 0x03, 0x00, 0x00, 0x00                                            , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0                                            x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0xc7
2018-12-04 18:33:49.078 Detail,
2018-12-04 18:33:49.078 Info, mgr,     Driver with Home ID of 0xd1cbb9b0 is now ready.
2018-12-04 18:33:49.079 Info,
2018-12-04 18:33:49.079 Info, contrlr, Received reply to FUNC_ID_SERIAL_API_GET_INIT_DATA:
2018-12-04 18:33:49.079 Info, contrlr,     Node 001 - New
2018-12-04 18:33:49.079 Detail, Node001, AdvanceQueries queryPending=0 queryRetries=0 queryStage=None live=1
2018-12-04 18:33:49.079 Detail, Node001, QueryStage_ProtocolInfo
2018-12-04 18:33:49.079 Detail, Node001, Queuing (Query) Get Node Protocol Info (Node=1): 0x01, 0x04, 0x00, 0x41, 0x0                                            1, 0xbb
2018-12-04 18:33:49.079 Detail, Node001, Queuing (Query) Query Stage Complete (ProtocolInfo)
2018-12-04 18:33:49.079 Info, Node001, Initilizing Node. New Node: false (false)
2018-12-04 18:33:49.080 Info, contrlr,     Node 002 - New
2018-12-04 18:33:49.080 Detail, Node002, AdvanceQueries queryPending=0 queryRetries=0 queryStage=None live=1
2018-12-04 18:33:49.080 Detail, Node002, QueryStage_ProtocolInfo
2018-12-04 18:33:49.080 Detail, Node002, Queuing (Query) Get Node Protocol Info (Node=2): 0x01, 0x04, 0x00, 0x41, 0x0                                            2, 0xb8
2018-12-04 18:33:49.080 Detail, Node002, Queuing (Query) Query Stage Complete (ProtocolInfo)
2018-12-04 18:33:49.080 Info, Node002, Initilizing Node. New Node: false (false)
2018-12-04 18:33:49.080 Detail,   Expected reply was received
2018-12-04 18:33:49.081 Detail,   Message transaction complete
2018-12-04 18:33:49.081 Detail,
2018-12-04 18:33:49.081 Detail, contrlr, Removing current message
2018-12-04 18:33:49.081 Detail, Node001, Notification: DriverReady
2018-12-04 18:33:49.081 Detail, Node001, Notification: NodeNew
2018-12-04 18:33:49.081 Detail, Node001, Notification: NodeAdded
2018-12-04 18:33:49.081 Detail, Node002, Notification: NodeNew
2018-12-04 18:33:49.081 Detail, Node002, Notification: NodeAdded
2018-12-04 18:33:49.081 Detail,
2018-12-04 18:33:49.082 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x06) - FUNC_ID_SE                                            RIAL_API_SET_TIMEOUTS: 0x01, 0x05, 0x00, 0x06, 0x64, 0x0f, 0x97
2018-12-04 18:33:49.090 Detail, contrlr,   Received: 0x01, 0x05, 0x01, 0x06, 0x96, 0x0f, 0x64
2018-12-04 18:33:49.090 Detail,
2018-12-04 18:33:49.090 Info, contrlr, Received reply to FUNC_ID_SERIAL_API_SET_TIMEOUTS
2018-12-04 18:33:49.090 Detail, Node015,   Expected reply was received
2018-12-04 18:33:49.090 Detail, Node015,   Message transaction complete
2018-12-04 18:33:49.090 Detail,
2018-12-04 18:33:49.090 Detail, contrlr, Removing current message
2018-12-04 18:33:49.091 Detail,
2018-12-04 18:33:49.091 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x00) - FUNC_ID_SE                                            RIAL_API_APPL_NODE_INFORMATION: 0x01, 0x07, 0x00, 0x03, 0x01, 0x02, 0x01, 0x00, 0xf9
2018-12-04 18:33:49.092 Detail, contrlr, Removing current message
2018-12-04 18:33:49.092 Detail,
2018-12-04 18:33:49.092 Info, Node001, Sending (Query) message (Callback ID=0x00, Expected Reply=0x41) - Get Node Pro                                            tocol Info (Node=1): 0x01, 0x04, 0x00, 0x41, 0x01, 0xbb
2018-12-04 18:33:49.095 Detail, Node001,   Received: 0x01, 0x09, 0x01, 0x41, 0x93, 0x16, 0x01, 0x02, 0x02, 0x01, 0x33
2018-12-04 18:33:49.095 Detail,
2018-12-04 18:33:49.096 Info, Node001, Received reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO
2018-12-04 18:33:49.096 Info, Node001,   Protocol Info for Node 1:
2018-12-04 18:33:49.096 Info, Node001,     Listening     = true
2018-12-04 18:33:49.096 Info, Node001,     Beaming       = true
2018-12-04 18:33:49.096 Info, Node001,     Routing       = false
2018-12-04 18:33:49.096 Info, Node001,     Max Baud Rate = 40000
2018-12-04 18:33:49.096 Info, Node001,     Version       = 4
2018-12-04 18:33:49.096 Info, Node001,     Security      = false
2018-12-04 18:33:49.109 Info, Node001,   Basic device class    (0x02) - Static Controller
2018-12-04 18:33:49.109 Info, Node001,   Generic device Class  (0x02) - Static Controller
2018-12-04 18:33:49.109 Info, Node001,   Specific device class (0x01) - Static PC Controller
2018-12-04 18:33:49.109 Info, Node001,     COMMAND_CLASS_BASIC is not mapped
2018-12-04 18:33:49.109 Info, Node001,   Mandatory Command Classes for Node 1:
2018-12-04 18:33:49.110 Info, Node001,     None
2018-12-04 18:33:49.110 Info, Node001,   Mandatory Command Classes controlled by Node 1:
2018-12-04 18:33:49.110 Info, Node001,     COMMAND_CLASS_BASIC
2018-12-04 18:33:49.110 Detail, Node022,   Expected reply was received
2018-12-04 18:33:49.110 Detail, Node022,   Message transaction complete
2018-12-04 18:33:49.110 Detail,
2018-12-04 18:33:49.110 Detail, Node001, Removing current message
2018-12-04 18:33:49.110 Detail, Node001, Notification: NodeProtocolInfo
2018-12-04 18:33:49.111 Detail, Node001, Notification: ValueAdded
2018-12-04 18:33:49.111 Detail, Node001, Query Stage Complete (ProtocolInfo)
2018-12-04 18:33:49.111 Detail, Node001, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Probe live=1
2018-12-04 18:33:49.111 Detail, Node001, QueryStage_Probe
2018-12-04 18:33:49.111 Detail, Node001, QueryStage_WakeUp
2018-12-04 18:33:49.111 Detail, Node001, QueryStage_ManufacturerSpecific1
2018-12-04 18:33:49.111 Detail, Node001, Load Controller Manufacturer Specific Config
2018-12-04 18:33:49.147 Info, Node001,   Opening config param file config/aeotec/zstickgen5.xml
2018-12-04 18:33:49.150 Detail, Node001, QueryStage_NodePlusInfo
2018-12-04 18:33:49.150 Detail, Node001, QueryStage_SecurityReport
2018-12-04 18:33:49.150 Detail, Node001, QueryStage_ManufacturerSpecific2
2018-12-04 18:33:49.150 Detail, Node001, QueryStage_Versions
2018-12-04 18:33:49.150 Detail, Node001, QueryStage_Instances
2018-12-04 18:33:49.150 Info, Node001, Essential node queries are complete
2018-12-04 18:33:49.150 Detail, Node001, QueryStage_Static
2018-12-04 18:33:49.150 Detail, Node001, QueryStage_Associations
2018-12-04 18:33:49.151 Detail, Node001, QueryStage_Neighbors
2018-12-04 18:33:49.151 Detail, Requesting routing info (neighbor list) for Node 1
2018-12-04 18:33:49.151 Detail, Node001, Queuing (Command) Get Routing Info (Node=1): 0x01, 0x07, 0x00, 0x80, 0x01, 0                                            x00, 0x00, 0x03, 0x7a
2018-12-04 18:33:49.151 Detail, Node001, Queuing (Query) Query Stage Complete (Neighbors)
2018-12-04 18:33:49.151 Detail, Node001, Notification: EssentialNodeQueriesComplete
2018-12-04 18:33:49.151 Detail,
2018-12-04 18:33:49.151 Info, Node001, Sending (Command) message (Callback ID=0x00, Expected Reply=0x80) - Get Routin                                            g Info (Node=1): 0x01, 0x07, 0x00, 0x80, 0x01, 0x00, 0x00, 0x03, 0x7a
2018-12-04 18:33:49.156 Detail, Node001,   Received: 0x01, 0x20, 0x01, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00                                            , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0                                            x00, 0x00, 0x00, 0x5c
2018-12-04 18:33:49.156 Detail,
2018-12-04 18:33:49.156 Info, Node001, Received reply to FUNC_ID_ZW_GET_ROUTING_INFO
2018-12-04 18:33:49.157 Info, Node001,     Neighbors of this node are:
2018-12-04 18:33:49.157 Info, Node001,     Node 2
2018-12-04 18:33:49.157 Detail,   Expected reply was received
2018-12-04 18:33:49.157 Detail,   Message transaction complete
2018-12-04 18:33:49.157 Detail,
2018-12-04 18:33:49.157 Detail, Node001, Removing current message
2018-12-04 18:33:49.157 Detail,
2018-12-04 18:33:49.157 Info, Node002, Sending (Query) message (Callback ID=0x00, Expected Reply=0x41) - Get Node Pro                                            tocol Info (Node=2): 0x01, 0x04, 0x00, 0x41, 0x02, 0xb8
2018-12-04 18:33:49.160 Detail, Node002,   Received: 0x01, 0x09, 0x01, 0x41, 0x53, 0x9c, 0x01, 0x04, 0x07, 0x01, 0x7a
2018-12-04 18:33:49.160 Detail,
2018-12-04 18:33:49.160 Info, Node002, Received reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO
2018-12-04 18:33:49.160 Info, Node002,   Protocol Info for Node 2:
2018-12-04 18:33:49.161 Info, Node002,     Listening     = false
2018-12-04 18:33:49.161 Info, Node002,     Frequent      = false
2018-12-04 18:33:49.161 Info, Node002,     Beaming       = true
2018-12-04 18:33:49.161 Info, Node002,     Routing       = true
2018-12-04 18:33:49.161 Info, Node002,     Max Baud Rate = 40000
2018-12-04 18:33:49.161 Info, Node002,     Version       = 4
2018-12-04 18:33:49.161 Info, Node002,     Security      = false
2018-12-04 18:33:49.161 Info, Node002,   Basic device class    (0x04) - Routing Slave
2018-12-04 18:33:49.161 Info, Node002,   Generic device Class  (0x07) - Notification Sensor
2018-12-04 18:33:49.161 Info, Node002,   Specific device class (0x01) - Notification Sensor
2018-12-04 18:33:49.162 Info, Node002,     COMMAND_CLASS_BASIC is not mapped
2018-12-04 18:33:49.162 Info, Node002,   Mandatory Command Classes for Node 2:
2018-12-04 18:33:49.162 Info, Node002,     COMMAND_CLASS_BASIC
2018-12-04 18:33:49.162 Info, Node002,     COMMAND_CLASS_WAKE_UP
2018-12-04 18:33:49.162 Info, Node002,   Mandatory Command Classes controlled by Node 2:
2018-12-04 18:33:49.162 Info, Node002,     None
2018-12-04 18:33:49.162 Detail, Node156,   Expected reply was received
2018-12-04 18:33:49.162 Detail, Node156,   Message transaction complete
2018-12-04 18:33:49.162 Detail,
2018-12-04 18:33:49.163 Detail, Node002, Removing current message
2018-12-04 18:33:49.163 Detail, Node002, Notification: NodeProtocolInfo
2018-12-04 18:33:49.163 Detail, Node002, Notification: ValueAdded
2018-12-04 18:33:49.163 Detail, Node002, Notification: ValueAdded
2018-12-04 18:33:49.163 Detail, Node002, Query Stage Complete (ProtocolInfo)
2018-12-04 18:33:49.163 Detail, Node002, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Probe live=1
2018-12-04 18:33:49.163 Detail, Node002, QueryStage_Probe
2018-12-04 18:33:49.163 Info, Node002, NoOperation::Set - Routing=true
2018-12-04 18:33:49.164 Detail, Node002, Queuing (NoOp) NoOperation_Set (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02,                                             0x00, 0x00, 0x25, 0x0a, 0xca
2018-12-04 18:33:49.164 Detail, Node002, Queuing (Query) Query Stage Complete (Probe)
2018-12-04 18:33:49.164 Detail,
2018-12-04 18:33:49.164 Info, Node002, Sending (NoOp) message (Callback ID=0x0a, Expected Reply=0x13) - NoOperation_S                                            et (Node=2): 0x01, 0x09, 0x00, 0x13, 0x02, 0x02, 0x00, 0x00, 0x25, 0x0a, 0xca
2018-12-04 18:33:49.173 Detail, Node002,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-12-04 18:33:49.173 Detail, Node002,   ZW_SEND_DATA delivered to Z-Wave stack
2018-12-04 18:33:53.363 Detail, Node002,   Received: 0x01, 0x07, 0x00, 0x13, 0x0a, 0x01, 0x01, 0xa3, 0x42
2018-12-04 18:33:53.363 Detail, Node002,   ZW_SEND_DATA Request with callback ID 0x0a received (expected 0x0a)
2018-12-04 18:33:53.364 Info, Node002, WARNING: ZW_SEND_DATA failed. No ACK received - device may be asleep.
2018-12-04 18:33:53.364 Info, Node002,   Node 2 has been marked as asleep
2018-12-04 18:33:53.364 Info, Node002, Node not responding - moving QueryStageComplete command to Wake-Up queue
2018-12-04 18:33:53.364 Detail, Node002, Notification: Notification - NoOperation
2018-12-04 18:33:53.364 Detail, Node002, Notification: Notification - Node Asleep
2018-12-04 18:33:53.364 Detail, Node001, Query Stage Complete (Neighbors)
2018-12-04 18:33:53.364 Detail, Node001, AdvanceQueries queryPending=0 queryRetries=0 queryStage=Session live=1
2018-12-04 18:33:53.364 Detail, Node001, QueryStage_Session
2018-12-04 18:33:53.365 Detail, Node001, QueryStage_Dynamic
2018-12-04 18:33:53.365 Detail, Node001, QueryStage_Configuration
2018-12-04 18:33:53.365 Detail, Node001, QueryStage_Complete
2018-12-04 18:33:53.365 Warning, CheckCompletedNodeQueries m_allNodesQueried=0 m_awakeNodesQueried=0
2018-12-04 18:33:53.365 Warning, CheckCompletedNodeQueries all=0, deadFound=0 sleepingOnly=1
2018-12-04 18:33:53.365 Info,          Node query processing complete except for sleeping nodes.
2018-12-04 18:33:53.365 Detail, Node001, Notification: NodeQueriesComplete
2018-12-04 18:33:53.365 Detail, contrlr, Notification: AwakeNodesQueried

After that, I just tried to launch node-red again but no succes.
Only this time it doesn't reboot all the time, node red just stops and my flows where simply erased.

I restarted node-red, inserted immediately again the zwave node, deploy and again node red stops.
But in putty I was able to follow the process

Any idea?


#9

I you are using putty have you tried copying and pasting the text rather than a screenshot? It makes it far easier to read and enables the search to use it in results


#10

last screenshot in text ....

pi@raspberrypi:~ $ node-red start
4 Dec 18:41:27 - [info]

Welcome to Node-RED
===================

4 Dec 18:41:27 - [info] Node-RED version: v0.19.5
4 Dec 18:41:27 - [info] Node.js  version: v8.12.0
4 Dec 18:41:27 - [info] Linux 4.14.71-v7+ arm LE
4 Dec 18:41:28 - [info] Loading palette nodes
4 Dec 18:41:34 - [info] node-red-contrib-openzwave: 1.2.4
4 Dec 18:41:34 - [info] openzwave-shared: 1.4.6
4 Dec 18:41:35 - [info] Settings file  : /home/pi/.node-red/settings.js
4 Dec 18:41:35 - [info] Context store  : 'default' [module=memory]
4 Dec 18:41:35 - [info] User directory : /home/pi/.node-red
4 Dec 18:41:35 - [warn] Projects disabled : editorTheme.projects.enabled=false
4 Dec 18:41:35 - [info] Flows file     : /home/pi/.node-red/start
4 Dec 18:41:35 - [info] Creating new flow file
4 Dec 18:41:35 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

4 Dec 18:41:35 - [info] Starting flows
4 Dec 18:41:35 - [info] Started flows
4 Dec 18:41:35 - [info] Server now running at http://127.0.0.1:1880/
4 Dec 18:42:35 - [info] Stopping flows
4 Dec 18:42:35 - [info] Stopped flows
4 Dec 18:42:35 - [info] Starting flows
Initialising OpenZWave 1.4.79 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /usr/etc/openzwave
        User settings path : /home/pi/.node-red
        Option Overrides : --Logging true --ConsoleOutput true --QueueLogLevel 6 --DriverMaxAttempts 3 --NetworkKey
node-red: symbol lookup error: /home/pi/.node-red/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6Crea                                                                            teERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_

#11

And this is what I have now when I restart node red with my 1 simple zwave node

pi@raspberrypi:~ $ node-red start
4 Dec 19:12:41 - [info]

Welcome to Node-RED
===================

4 Dec 19:12:41 - [info] Node-RED version: v0.19.5
4 Dec 19:12:41 - [info] Node.js  version: v8.12.0
4 Dec 19:12:41 - [info] Linux 4.14.71-v7+ arm LE
4 Dec 19:12:42 - [info] Loading palette nodes
4 Dec 19:12:47 - [info] node-red-contrib-openzwave: 1.2.4
4 Dec 19:12:47 - [info] openzwave-shared: 1.4.6
4 Dec 19:12:48 - [info] Settings file  : /home/pi/.node-red/settings.js
4 Dec 19:12:48 - [info] Context store  : 'default' [module=memory]
4 Dec 19:12:48 - [info] User directory : /home/pi/.node-red
4 Dec 19:12:48 - [warn] Projects disabled : editorTheme.projects.enabled=false
4 Dec 19:12:48 - [info] Flows file     : /home/pi/.node-red/start
4 Dec 19:12:48 - [info] Server now running at http://127.0.0.1:1880/
4 Dec 19:12:48 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

4 Dec 19:12:48 - [info] Starting flows
Initialising OpenZWave 1.4.79 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /usr/etc/openzwave
        User settings path : /home/pi/.node-red
        Option Overrides : --Logging true --ConsoleOutput true --QueueLogLevel 6 --DriverMaxAttempts 3 --NetworkKey
node-red: symbol lookup error: /home/pi/.node-red/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_
pi@raspberrypi:~ $

I will now delete the flows file so I can at least start again importing my other things.


#12

It seems to me, that openZwave is installed properly.

But this is an issue:

node-red: symbol lookup error: /home/pi/.node-red/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_

How did you install openzwave-shared and node-red-contrib-openzwave ?


#13

Hi cflurin,

Openzwave-shared:

At the moment I only did the lines you gave me (the 3 steps) and then I installed the node-red-contrib-openzwave using the 'manage palette' in node-red.

Do I still need to do $ npm install openzwave-shared ?


#14

( also note. The command is node-red-start all one word. With the space it’s starting a flow called start instead.


#15

No, you don't, installing with the manage palette is ok,

I installed openZwave and contrib-openzwave approx. 2 years ago and I'm using old versions:

  • OpenZwave 1.4.1
  • openzwave-shared 1.4.0
  • contrib-openzwave 1.2.4

Try:

cd /home/pi/.node-red/node_modules/openzwave-shared

and run

node test2.js

#16

this is the result

pi@raspberrypi:~/.node-red/node_modules/openzwave-shared $ node test2.js
Initialising OpenZWave 1.4.79 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /usr/etc/openzwave
        User settings path : /home/pi/.node-red/node_modules/openzwave-shared/build/Release/../../
        Option Overrides : --ConsoleOutput false
connecting to /dev/ttyUSB0
node: symbol lookup error: /home/pi/.node-red/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_

Why is it trying to connect to ttyUSB0 ?


#17

Ok, you have to change the port inside the test2.js:

zwavedriverpaths = {
  "darwin": '/dev/cu.usbmodem1411',
  "linux": '/dev/ttyACM0',
  "windows": '\\\\.\\COM3'

#18

this is pretty much the same

pi@raspberrypi:~/.node-red/node_modules/openzwave-shared $ node test2.js
Initialising OpenZWave 1.4.79 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /usr/etc/openzwave
        User settings path : /home/pi/.node-red/node_modules/openzwave-shared/build/Release/../../
        Option Overrides : --ConsoleOutput false
connecting to /dev/ttyACM0
node: symbol lookup error: /home/pi/.node-red/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_
pi@raspberrypi:~/.node-red/node_modules/openzwave-shared $

#19

Right, but now you know that this isn't a node-red issue! :slight_smile:

One attempt would be to uninstall node-red-contrib-openzwave using the manage palette
(be sure that the /home/pi/.node-red/node_modules/openzwave-shared is also uninstalled)

and try to install node-red-contrib-openzwave again using the manage palette.


#20

almost there,

the manage palette, ok, I'll do it right away.

Any more instruction how to 'uninstall' /home/pi/.node-red/node_modules/openzwave-shared ?