Page 1 of 1

Close Z-Way reactivate Bluetooth

Posted: 14 Mar 2019 09:49
by Marius96
Hello,

how can i deactivate the z-way server and reactivate the bluetooth adapter on my raspberry pi 3?

Wrote the following script to start:

Code: Select all

#!/bin/bash

echo "Should the Z-Wave-Server be started?"
echo -n "[yes/no] "
read ANSWER

if [ "$ANSWER" == "yes" ]
        then
                echo "The server will be started..."
                COMMAND="sudo /etc/init.d/z-way-server start"
                $COMMAND
                chromium-browser http://localhost:8083/
		read -n 1 -s -r -p "Press any key to close terminal"
fi
an to stop the z-way server:

Code: Select all

#!/bin/bash

echo "Should the Z-Wave-Server be stopped?"
echo -n "[yes/no] "
read ANSWER

if [ "$ANSWER" == "yes" ]
	then
		echo "The server will be stopped..."
		COMMAND="sudo /etc/init.d/z-way-server stop"
		$COMMAND
		read -n 1 -s -r -p "Press any key to close terminal"
fi
But when i stopped the z-way server the bluetooth adapter says 'No Bluetooth adapter found', how is it possible to activate the bluetooth adapter via script or something?

Re: Close Z-Way reactivate Bluetooth

Posted: 14 Mar 2019 20:53
by PoltoS
Please check the install script. It is changing the serial port settings in the Pi

Re: Close Z-Way reactivate Bluetooth

Posted: 16 Mar 2019 17:13
by Marius96
PoltoS wrote:
14 Mar 2019 20:53
Please check the install script. It is changing the serial port settings in the Pi
Hello PoltoS thanks for your answer.

I've checked the install script and expand my program by the following command to reactivate the bluetooth adapter:

Code: Select all

sudo systemctl enable hciuart    # Because the install script includes "sudo systemctl disable hciuart"
and i removed the line "pi3-disable-bt" from the /boot/config.txt. Is there any other changes at the seriel port settings necessary?

After reboot of my raspberry pi the bluetooth adapter seems to be active but i get some errors when i connect to other bluetooth devices.

Re: Close Z-Way reactivate Bluetooth

Posted: 06 Apr 2019 17:37
by PoltoS
Should be enough