Close Z-Way reactivate Bluetooth

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
Marius96
Posts: 2
Joined: 14 Mar 2019 09:43

Close Z-Way reactivate Bluetooth

Post by Marius96 » 14 Mar 2019 09:49

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?

User avatar
PoltoS
Posts: 4625
Joined: 26 Jan 2011 19:36

Re: Close Z-Way reactivate Bluetooth

Post by PoltoS » 14 Mar 2019 20:53

Please check the install script. It is changing the serial port settings in the Pi

Marius96
Posts: 2
Joined: 14 Mar 2019 09:43

Re: Close Z-Way reactivate Bluetooth

Post by Marius96 » 16 Mar 2019 17:13

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.

User avatar
PoltoS
Posts: 4625
Joined: 26 Jan 2011 19:36

Re: Close Z-Way reactivate Bluetooth

Post by PoltoS » 06 Apr 2019 17:37

Should be enough

Post Reply