• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Bluetooth Functions
#3
(September-14th-2018, 10:55 AM)Armin@netPI Wrote: Hello Jonas,

1.) I don't understand "getting the bluetooth of the host without restarting netPI"? What exactly do you mean? At least you have to load the bluetooth container into netPI at least once, correct? And then you tell it is necessary to restart netPI in this case? Why should this be necessary? What is not working if you do not restart netPI?

2.) If bluetooth is running in a container the bluetooth operation is no restricted by any instance. So the same amount of bluetooth device will run as if you are working with bluetooth on a standard Raspberry Pi

Armin

Hello Armin,

I build an own python container and added the configurations from the example bluetooth container you can pull from netpi's docker hub. In an old post you described, that you have to reboot the device, so that it comes from a fresh boot:
     So what have I done? I started the container hilschernetpi/netpi-bluetooth:latest with network = host and privileged mode = on and device = /dev/ttyAMA0 mapped. Then I shutdown the device and repowered it, so that the it comes up from a fresh boot.

When Docker was ready back I watched the embedded log entry in the Docker web GUI. You can get to this log window yourself, if you click the container name in the running container list and then click as next to "!Logs".

There I can see the following

starting ssh ...
starting dbus ...
Starting OpenBSD Secure Shell server: sshdStarting system message bus: dbus.
init
Set Controller UART speed to 921600 bit/s
Flash firmware /etc/firmware/BCM43430A1.hcd
Set Controller UART speed to 921600 bit/s
Device setup complete

(September-14th-2018, 10:55 AM)Armin@netPI Wrote: Hello Jonas,

1.) I don't understand "getting the bluetooth of the host without restarting netPI"? What exactly do you mean? At least you have to load the bluetooth container into netPI at least once, correct? And then you tell it is necessary to restart netPI in this case? Why should this be necessary? What is not working if you do not restart netPI?

2.) If bluetooth is running in a container the bluetooth operation is no restricted by any instance. So the same amount of bluetooth device will run as if you are working with bluetooth on a standard Raspberry Pi

Armin

Hello Armin,

I build an own python container and added the configurations from the example bluetooth container you can pull from netpi's docker hub. In an old post you described, that you have to reboot the device, so that it comes from a fresh boot:

 "So what have I done? I started the container hilschernetpi/netpi-bluetooth:latest with network = host and privileged mode = on and device = /dev/ttyAMA0           mapped. Then I shutdown the device and repowered it, so that the it comes up from a fresh boot.

When Docker was ready back I watched the embedded log entry in the Docker web GUI. You can get to this log window yourself, if you click the container name in the running container list and then click as next to "!Logs".

There I can see the following

starting ssh ...
starting dbus ...
Starting OpenBSD Secure Shell server: sshdStarting system message bus: dbus.
init
Set Controller UART speed to 921600 bit/s
Flash firmware /etc/firmware/BCM43430A1.hcd
Set Controller UART speed to 921600 bit/s
Device setup complete"

When I only restart the container there comes up the message "No such device" and when I completely restart the netPi the message "Device setup complete" comes up.
  Reply


Messages In This Thread
[SOLVED] Bluetooth Functions - by Jonas.Sellmann@outlook.de - September-14th-2018, 10:46 AM
RE: Bluetooth Functions - by Armin@netPI - September-14th-2018, 10:55 AM
RE: Bluetooth Functions - by Jonas.Sellmann@outlook.de - September-17th-2018, 11:06 AM
RE: Bluetooth Functions - by Armin@netPI - September-17th-2018, 03:00 PM
RE: Bluetooth Functions - by Armin@netPI - September-21st-2018, 11:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bluetooth testing DSongra 6 3,792 April-29th-2021, 06:08 AM
Last Post: DSongra
  HilscherAutomation / netPI-bluetooth entrypoint.sh error bbaskii 6 4,450 September-14th-2020, 04:42 PM
Last Post: bbaskii
  Bluetooth Access MGharat 10 9,003 February-25th-2020, 12:58 PM
Last Post: DSongra
  [SOLVED] Help with fieldbus node Farani 5 4,191 August-20th-2019, 07:22 AM
Last Post: Armin@netPI
  [SOLVED] How to update firmware philippbruhin.ch 12 9,733 July-16th-2019, 11:20 AM
Last Post: patrick
  [SOLVED] Docker issues AlexRegev 7 5,464 June-26th-2019, 02:14 PM
Last Post: AlexRegev
  [SOLVED] Diagnostic service MGharat 1 2,034 April-2nd-2019, 09:45 PM
Last Post: Armin@netPI
  [SOLVED] NPIX-DIDO MGharat 2 6,371 March-13th-2019, 06:06 AM
Last Post: MGharat
  [SOLVED] Access problems Azzamjj 8 7,375 January-25th-2019, 07:43 AM
Last Post: Armin@netPI
  [SOLVED] Portainer.IO. cannot log in JZijlstra 2 3,587 January-10th-2019, 06:04 PM
Last Post: JZijlstra

Forum Jump:


Users browsing this thread: 1 Guest(s)