Matrix creator, z-wave et Z/IP gateway don't works


#23

I’ve typed more /tmp/zipgateway.log to check zipgateway ,Error for opening serial port

Then I did sudo ./zwave_setup.bash copy to change zwave support,

Then I re typed more /tmp/zipgateway.log to check,but still the error opening serial port.

Any solution?


#24

ls /dev/tty*
maybe the device is named
/dev/ttyMATRIX0 or try
/dev/ttyS0 <-- default RPI serial
something else.

pi@matrix2:/dev $ ls -l tty
tty         tty15       tty22       tty3        tty37       tty44       tty51       tty59       tty9
tty0        tty16       tty23       tty30       tty38       tty45       tty52       tty6        ttyAMA0
tty1        tty17       tty24       tty31       tty39       tty46       tty53       tty60       ttyMATRIX0
tty10       tty18       tty25       tty32       tty4        tty47       tty54       tty61       ttyprintk
tty11       tty19       tty26       tty33       tty40       tty48       tty55       tty62       ttyS0
tty12       tty2        tty27       tty34       tty41       tty49       tty56       tty63
tty13       tty20       tty28       tty35       tty42       tty5        tty57       tty7
tty14       tty21       tty29       tty36       tty43       tty50       tty58       tty8
pi@matrix2:/dev $ ls -l tty

when using my zigbee setup i use the device /dev/ttyS0


#25

Which command to change serial port ? /dev/ttyACM0 to /dev/ttyS0?


#26

puh i dont know. maybe check if the file

/usr/local/etc/zipgateway.cfg
cotains

ZipSerialAPIPortName=/dev/ttyS0

#27

I read the instruction after Run sudo zwave_conf
Change FPGA Firmware

The default MATRIXIO FPGA firmware has connected the /dev/ttyS0 to the ZigBee implementation. In order to change it and connect the Zwave to ttyS0 run:

cd blob/
sudo ./zwave_setup copy

But I can’t find the folder /blob ,where is it ?


#28

hmm maybe run it manually from a git clone. run this in your homefolder, or somewhere else:

git clone https://github.com/matrix-io/matrix-malos-zwave.git
cd matrix-malos-zwave
cd blob
sudo ./zwave_setup copy

#29

Thanks for your answer, I’ve followed instruction.

But after I run malos_zwave, it show that


MALOS ZWave starting


You can query specific driver info using port 50000.

FLAGS_psk : 123456789012345678901234567890aa
I/O warning : failed to load external entity “ZWave_custom_cmd_classes.xml”
Could not load Command Class definitions
terminate called after throwing an instance of ‘zmq::error_t’
what(): Address already in use
Aborted

Do you know why this error ?


#30

i’ll think the malos_zwave is already running with the system startup.

ps ax | grep malos_zwave
# to run it manually maybe stopping it will help
sudo systemctl stop matrixio-malos-zwave

#31

I run $ ps ax | grep malos_zwave , got
636 ? Sl 0:00 /usr/bin/malos_zwave -server -xml /etc/zwave/ZWave_custom_cmd_classes.xml
1225 pts/0 S+ 0:00 grep --color=auto malos_zwave

Then I type
sudo systemctl stop matrixio-malos-zwave malos_zwave
It still show the error


MALOS ZWave starting


You can query specific driver info using port 50000.

FLAGS_psk : 123456789012345678901234567890aa
I/O warning : failed to load external entity “ZWave_custom_cmd_classes.xml”
Could not load Command Class definitions
Registered driver ZWave with port 50001.

And I need type Ctrl+C to jump to command line.


#32

the malos_zwave is redundant. remove it from you input only type:

sudo systemctl stop matrixio-malos-zwave

then you can manually start it.


#33

That’s what I’ve typed
sudo systemctl stop matrixio-malos-zwave Then malsos_zwave
Is it right?


#34

maybe running this helps instead of directly starting the malos_zwave

/usr/share/matrixlabs/matrixio-devices/matrixio-malos-zwave.sh

#35

It show the other error


#36

do you have the file:

ls /etc/zwave/ZWave_custom_cmd_classes.xml

#37

Yes it show in the folder


#38

This time I typed /usr/share/matrixlabs/matrixio-devices/matrixio-malos-zwave.sh, it showed bellow , is it well for ZWAVE gateway config? Can it find zwave devices?


#39

Hi, jay7583

Did you find a solution for this error


MALOS ZWave starting


You can query specific driver info using port 50000.

FLAGS_psk : 123456789012345678901234567890aa
I/O warning : failed to load external entity “ZWave_custom_cmd_classes.xml”
Could not load Command Class definitions
terminate called after throwing an instance of ‘zmq::error_t’
what(): Address already in use
Aborted