How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter.

  • Posts: 47
  • Thank you received: 9

How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter. was created by tseckler

This works with a Raspberry pi 3 running Ubuntu Mate 16.04. These are command line instructions in case the pi is headless.

1). In some cases modemmanager interferes with bluetooth operation remove it.

sudo apt-get remove modemmanager

2). Connect the BT2EQ5 to the mount and power on the mount.
Pair the BT2EQ5.

sudo bluetoothctl -a
The -a flag is needed to enter password for pairing.

The Controller with mac address should be displayed. If you do not see line saying Agent registered type
agent on

Type
scan on

A line like this should be displayed.
Device XX:XX:XX:XX:XX:XX HC-06
Where the XX's is the mac address of the adapter.

Type
pair XX:XX:XX:XX:XX:XX
Replace the XX's with the adapter address from previous step.
Enter device password when prompted unless it has been changed use 1234
Type
trust XX:XX:XX:XX:XX:XX

Type
exit

3). All that is needed to bind device at startup is to modify the bluetooth.service file. The editor I use is nano.

sudo nano /etc/systemd/system/bluetooth.target.wants/bluetooth.service

Directly below the line "ExecStart=/usr/lib/bluetooth/bluetoothd" insert the following line

ExecStartPost=/usr/bin/rfcomm bind rfcomm0 XX:XX:XX:XX:XX:XX

Again replace the XX's with your adapter mac address from previous step.

Exit the editor and save changes.

Type

sudo systemctl enable bluetooth.service and reboot.

Your adapter should now be recognized by Ekos using port /dev/rfcomm0.
11 months 2 days ago #23524

Please Log in or Create an account to join the conversation.

  • Posts: 402
  • Karma: 1
  • Thank you received: 62

Replied by Ihoujin on topic How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter.

Awesome, my modemmanager discovery has been noted. Glad to see the solution worked for you too.
INDI/KStars on Raspberry Pi 3B+
Lubuntu 16.04
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG @280mm Guide Scope
PHD2
Adafruit Motor Hat shield
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
11 months 1 day ago #23533

Please Log in or Create an account to join the conversation.

  • Posts: 255
  • Karma: 1
  • Thank you received: 24

Replied by HelgeMK on topic How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter.

Thanks once again for instructions shared, works really well! (also for EQ6 version of the BT adapter)
10 months 3 weeks ago #23672

Please Log in or Create an account to join the conversation.

  • Posts: 255
  • Karma: 1
  • Thank you received: 24

Replied by HelgeMK on topic How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter.

Hi,

It may sound trivial, but if I was running a second Bluetooth device, I should repeat the procedure as described, and regarding the systmed file, I would add another line, like
ExecStartPost=/usr/bin/rfcomm bind rfcomm1 XX:XX:XX:XX:XX:XX

However, binding is not working. I suspect I need to allow more time for the binding of the first device? What command do I need, how many seconds were needed?

What happens, if the first device is not there, would that create some sort of error, preventing binding of the second device?

Many thanks, Helge
1 week 4 days ago #33605

Please Log in or Create an account to join the conversation.

  • Posts: 402
  • Karma: 1
  • Thank you received: 62

Replied by Ihoujin on topic How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter.

You can try
rfcomm bind 1 hci0 XX:XX:XX:XX:XX:XX 1 &
rfcomm bind 2 hci0 XX:XX:XX:XX:XX:XX 1 &
rfcomm bind 3 hci0 XX:XX:XX:XX:XX:XX 1 &
...

Although I use it a little differently by running it in rc.local at startup.

Edit: Believe I made a mistake in the code.
INDI/KStars on Raspberry Pi 3B+
Lubuntu 16.04
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG @280mm Guide Scope
PHD2
Adafruit Motor Hat shield
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
Last edit: 1 week 3 days ago by Ihoujin.
1 week 3 days ago #33625

Please Log in or Create an account to join the conversation.

  • Posts: 255
  • Karma: 1
  • Thank you received: 24

Replied by HelgeMK on topic How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter.

So far it seems to be working, via rc.local. First tests look promising. Many thanks!

A bit tricky was to get going with the rc.local method under Ubuntu 18.04. Found good guidance here:

www.linuxbabe.com/linux-server/how-to-en...c-local-with-systemd
1 week 2 days ago #33673

Please Log in or Create an account to join the conversation.

  • Posts: 255
  • Karma: 1
  • Thank you received: 24

Replied by HelgeMK on topic How to set up Shoestring Astronomy BT2EQ5 bluetooth adapter.

Quick udpate: Yes. it works having two BT connections. What seems critical is to leave a few seconds in-between the two bind commands. So my rc.local file looks as follows:

#!/bin/bash
#
# rc.local
#
sleep 10s
rfcomm bind 0 20:17:12:05:05:02 1 ###this is for the Shoestring BT adapter (attached to the mount)
sleep 5s
rfcomm bind 1 00:14:03:05:ED:80 1& ###this is for the HC05 module connected to the Tic825 stepper controller
exit 0
1 week 1 day ago #33705

Please Log in or Create an account to join the conversation.

Time to create page: 0.248 seconds