Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...

TOPIC: Connecting indi via Bluetooth to a compuer

Connecting indi via Bluetooth to a compuer 4 months 4 weeks ago #22608

When just capturing the script line by line into the terminal, it works - which is a big relief!

But same is not working just from the rc.local.

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

Connecting indi via Bluetooth to a compuer 4 months 3 weeks ago #22750

Would anyone happen to know how binding Bluetooth upon start up? Tried including the commands (bind, chown) in rc.local, but that does not work, just via terminal commands.

Or should I save script as a program and invoke via launcher?

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

Connecting indi via Bluetooth to a compuer 4 months 3 weeks ago #22754

I would also like to see Bluetooth support for the rpi3 under Stellarmate and Astroberry. I have a Tak EM-200 and could use one of these adapters:
www.kanda.com/products/Sena/PARANI-SD1000-00.html#desc

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

Last Edit: by giorgio_ne.

Connecting indi via Bluetooth to a compuer 4 months 3 days ago #23419

I just got around to reassembling my BT adapter. Curious things happened. Initially I had difficulty connecting, it turned out to be bluetooth manager taking taking ownership of the device. You can check for this
sudo fuser /dev/rfcomm0
Take the ID number
ps -p ####
This will tell you what is using the /dev/rfcomm0. And is behind the failure to connect to port errors.
So this trick is to manually bind the device, but not connect to it. It appears to connect automatically when the mount driver is initiated.

At this stage I was making a connection, but it randomly would disconnect giving a TTY read write error when a command was given. I tried some of the other advice given, and that stopped happening, but now all inputs I give trigger a yellow light in the INDI console and does nothing.
Oddly enough one time it behaved itself. But failed after a simple restart of the INDI server.

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

Last Edit: by Ihoujin.

Connecting indi via Bluetooth to a compuer 4 months 2 days ago #23454

I just did a fresh install of Astroberry Server, and I've found that Bluetooth works without a hitch when manually bound. But something later broke it after updating the system.

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

Connecting indi via Bluetooth to a compuer 4 months 2 days ago #23455

After performing a normal update, EQMod continues to work with my HC-05 bluetooth mount interface.
It is something applied during a dist-upgrade which introduced connection issues. It has to be related to one of these upgrades.
If I had to choose, I would place blame on modemmanager. As I have come across that mentioned elsewhere in relation to bluetooth issues.
Attachments:

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

Last Edit: by Ihoujin.

Connecting indi via Bluetooth to a compuer 4 months 2 days ago #23456

OK. Upgraded Modemmanager is definitely involved. Although I do not have a full understanding as to its purpose, I decided to remove the program in its entirety. After rebooting, EQMod was once again communicating with the mount through Bluetooth.

With a little sleuthing I found this. Modemmanager appears to send "AT-GCAP" data and put it in an unstable state. There are a few work arounds provided. I might try the udev rules exception method described in the thread.
https://ubuntuforums.org/showthread.php?t=2056285

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

Last Edit: by Ihoujin.

Connecting indi via Bluetooth to a computer 3 months 1 week ago #24158

  • petarm
  • petarm's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 69
  • Thank you received: 9
So another thing i discovered over the last few days. Im running Ubuntu Mate 16.04LTS on a Rpi3 with indiserver. I have all my equipment attached to this. My mount and focuser are connected via BT. To automatically bind the two devices on start up all i did was add the following above the exit 0 line in /etc/rc.local

sleep 20s ### you need to allow some time for the RPi3 to do its boot up thing before it will bind the BT devices. I have tried without this line and it doesn't work.
rfcomm bind 0 XX:XX:XX:XX:XX:XX 1 ### bind rfcomm0 with mac address XX:XX:XX:XX:XX:XX on channel 1
rfcomm bind 1 YY:YY:YY:YY:YY:YY 1 ### bind rfcomm1 with mac address YY:YY:YY:YY:YY:YY on channel 1
exist 0
NOTE, you dont need the text beyond the ### above, i have just put that there with explanations. The hci part is NOT needed. It wont auto bind if you refer to hci0 after the bind command. Don't ask me why, cause i have no idea.

I hope this helps.

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

Takahashi FC-100DF, Skywatcher HEQ5 Pro, Canon 1100D, Orion 50mm guide scope with ZWO ASI 120MC, homebuilt bluetooth moonlite focuser, Asus Tinkerboard running Armbian Ubuntu 16.04LTS with kstars ( github.com/Patrick-81/NAFABox )
Last Edit: by petarm. Reason: fix spelling
Time to create page: 0.175 seconds

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica