×

INDI Library v2.0.4 Released (01 Oct 2023)

Bi-monthly release with minor bug fixes and improvements

Keep getting 'device or resource busy' error when connecting

  • Posts: 486
  • Thank you received: 87
Onde simple thing tha drived me almost nuts!
Change the rfcomm0 device permissions to your user and try again, I had to do just that, even if the user is in the dialout group.

"sudo chown user:user /dev/rfcomm0", where user is your username.

This after the pair and trust and before the connect.
(PT) SC@ROS Observatory
TS 6" F4 Newt / Nikon D5500 / GPU CC / Datyson T7M / Arduino Moonlite DC Clone- HEQ5 Pro
Orion 120ST / Explore Scientific 80APO / TSAPO102Q Sextuplet / G2-8300FW5 / ES FF 2" / ASI120MM - Arduino Moonlite DC Clone - Vixen GPD2
www.flickr.com/photos/139335144@N03/
5 years 8 months ago #23980

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

  • Posts: 24
  • Thank you received: 1

Worth a try, but nothing changed, same exact responses when trying to connect.


Same results with nothing except the mount attached (It did complain about not finding the camera and guide camera).
5 years 8 months ago #23983

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

  • Posts: 281
  • Thank you received: 29
It somehow strikes me that it is not working. I have both the Shoestring BT adapters for eq5 and eq6 managed to get running with the instructions shared (I am using the astroberry image).

The only issue I was running into was that initially I bought the EqDir Adapter and got annoyed that I could not receive any signal - thought it was the BT Adapter... so maybe two other options:

Are you 100% sure about the address and did not pick up accidentally another BT device in your neighborhood?

Start with a fresh image and try again the procedure.
5 years 8 months ago #23984

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

  • Posts: 24
  • Thank you received: 1

The MAC address don't lie. I've verified it on other laptops, it's the correct BT device that's being connected. I've started with clean Ubuntu installs almost daily. With all the different things I've tried, I didn't want to take any chance of just continuing to work on a broken install.
5 years 8 months ago #23986

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

  • Posts: 1309
  • Thank you received: 226
What version of Linux are you using?
Ubuntu Mate is popular here, even recommended. I use LUbuntu because I find it's a bit lighter weight and I like the plain theme. Perhaps try a different distro?
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
5 years 8 months ago #23988

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

  • Posts: 24
  • Thank you received: 1

Ubuntu Mate 16.04.2 for Raspberry Pi. I do have a laptop with Linux Mint but...going to try that and see if I can connect.

(EDIT) I fired up my Linux Mint laptop and had ZERO issues connecting and controlling the mount via Ekos. First I removed modemmanager, then used the Mint BT manager, connected and paired with that, then just just a quick and dirty command line rfcomm bind to /dev/rfcomm0. Fired up Ekos and the mount connected immediately. Was able to slew with manual controls and even pick targets and slew to them in Kstars (although it was all off target, it worked).

So. There has to be some issue with the Raspberry Pi. Windows doesn't have a prob connecting, Linux Mint doesn't have a prob connecting, but no matter what I do in Ubuntu Mate on the Pi3, I get errors.

(SECOND EDIT)

So I have a second Rasperry Pi 3 running another home project. I took that SD card out, installed Ubuntu Mate on a new SD and tried again. Same exact results as the other RPI. So my BT dongle works with no issues in Windows and Linux Mint, but fails the exact same way on 2 different Raspberry Pi's running Ubuntu Mate.
Last edit: 5 years 8 months ago by Scott Baker.
5 years 8 months ago #23989

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

  • Posts: 983
  • Thank you received: 375

A few questions before we nail it ;-)
1. Do you have any custom changes to /boot/config.txt on you RPi system?
2. Do you use built-in BT or external dongle?
3. Can you connect to EQMod with miniterm /dev/rfcomm0 or any other serial terminal?
4. Can you connect to any other BT device with a serial terminal?

Regards

Radek
--
Radek Kaczorek
Astroberry Server | Orion CT8 | Askar FRA 400 | NEQ6 (hypermod) | Atik 460EX | ASI 1600 | ASI 120MM | Atik EFW2
5 years 8 months ago #24009

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

  • Posts: 24
  • Thank you received: 1

My son and his GF are visiting for Spring Break so I broke the mount/scope down. I can bring out the RPI and test those things though, thanks for the suggestions. I'll just edit this post as I do the test. As for what I can tell you now:

1. The only changes I've ever made to /boot/config.txt is to add rfcomm bind hci0 MACADDRESS 1 &

2. I use the external dongle from Shoestring Astronomy LINK

3. I did try rfcomm1 once, but usually with the /boot/config.txt or even binding via command line it defaulted to rfcomm0.

4. I'll break out the RPI and try to connect my phone, I'd never considered something like that.
5 years 8 months ago #24010

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

  • Posts: 983
  • Thank you received: 375
I mean /boot/config.txt NOT /etc/rc.local. This is the place where you enable various overlays for RPi. One of them is to disable BT (internal), and this one can give you hard time. Just review the very end of the file and paste here these a few lines that are sitting there.

This might be the root cause of your problems. If you use Raspberry Pi 3 it has bluetooth built-in. Use it instead of an external dongle. If it is Raspberry Pi 2 you need to stick to a dongle, it does not have bluetooth device. In any case you need to pair the devices before successful binding. To do this start bluetoothctl in your terminal and run:
scan on
agent on
pair XX:XX:XX:XX:XX:XX
trust XX:XX:XX:XX:XX:XX

Either it is /dev/rfcomm0 or /dev/rfcomm1 depends on what is you bind command. I think now you mix internal BT device with external BT dongle. For RPi3 just disconnect the dongle and stick to internal BT device and bind it to /dev/rfcomm0 as you have already done.

I don't think you can just connect to your phone. You need a BT serial device. If you don't have anything like this at you hand just skip this step.


PS. If you will not be able to get it through let me know. I can do it for you remotely.
--
Radek Kaczorek
Astroberry Server | Orion CT8 | Askar FRA 400 | NEQ6 (hypermod) | Atik 460EX | ASI 1600 | ASI 120MM | Atik EFW2
Last edit: 5 years 8 months ago by Radek Kaczorek.
5 years 8 months ago #24011

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

  • Posts: 24
  • Thank you received: 1

Ah yea I confused /etc/rc.local with /boot/config.txt. The only changes I make to config.txt is the normal headless settings. hdmi_force_hotplug=1 hdmi_group=2, and hdmi_mode=82. Nothing else is changed there.

As for the dongle, its the device that's plugged into my mount. I do use the RPI3's built in bluetooth to connect to my mount. I DO NOT use any external BT devices on the RPI itself.
5 years 8 months ago #24025

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

  • Posts: 1309
  • Thank you received: 226
Perhaps install a different distribution of Linux on the Raspberry Pi. That may eliminate specific hardware issues.
I run lubuntu. Give that a shot.
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
The following user(s) said Thank You: Scott Baker
5 years 8 months ago #24113

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

  • Posts: 1309
  • Thank you received: 226
I got this tip from the INDI Support FAQ
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
5 years 8 months ago #24163

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

Time to create page: 0.320 seconds