Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...

TOPIC: Keep getting 'device or resource busy' error when connecting

Keep getting 'device or resource busy' error when connecting 9 months 3 weeks ago #22121

I have the Shoestring Astronomy BTEQ5 Bluetooth dongle, it pairs, connects and gets assigned to /dev/rfcomm0 with no issues in Ubuntu Mate on my Raspberry Pi 3. My other devices connect automatically (Canon DSLR and SSAG) when starting indi, but the mount will not connect.

I have an Orion Sirius EQ-G mount, and I've used the same BT dongle in windows to control the mount via EQMOD with very little trouble (just the normal 'getting windows to assign a comport' to the BT dongle).

I've tried changing all permissions to /dev/rfcomm0, making sure my user has access to the DIALOUT group, etc etc. At this point, I don't think it's a permission issue. But no matter what I do, even changing to a different port, as well as doing a symbolic link to /dev/ttyUSB0, nothing works. I always get the same error about not being able to connect to the port, device busy, yadda yadda yadda :(

Hope someone has some insight to this issue!

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

Keep getting 'device or resource busy' error when connecting 9 months 3 weeks ago #22124

I have the exact same dongle and HEQ5 as well, and it works fine. You used the bluetooth app in Ubuntu to pair it? I created a video for StellarMate about this, but it should be applicable to your case as well:

Start watching at 03:40

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
Last Edit: by knro.

Keep getting 'device or resource busy' error when connecting 9 months 3 weeks ago #22128

Thanks. I've seen that video and have done exactly what was in it (saw where you posted this for someone else in another thread). Everything goes exactly as in the video except I get an error. I must be missing something else.

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

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22149

Took a SS in the hopes it helps a little? The BTEQ5 is paired, trusted and is set to /dev/rfcomm0. Any ideas what else I can do? I've actually gone back and reinstalled everything from scratch just in case I did something wrong the first time.

Attachments:

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

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22154

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 237
  • Karma: 2
  • Thank you received: 49
Greetings,

One thing you could try is to use lsof (list open files) This should show you what is using it, and give you a place to start.

Try this:
sudo lsof /dev/rfcomm0

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

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22155

xsnrg wrote: Greetings,

One thing you could try is to use lsof (list open files) This should show you what is using it, and give you a place to start.

Try this:

sudo lsof /dev/rfcomm0


COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
blueman-r 3423 root 6r CHR 216,0 0t0 59219 /dev/rfcomm0

As far as I can see, that's legit. If I kill that PID, it severs the connection to the BT.

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

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22160

I had similar issue recently and remember doing the below to fix it

sudo chown astroberry /dev/rfcomm0
sudo usermod -a -G dialout astroberry

Replace astroberry with your username.

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

Last Edit: by tkottary. Reason: grammar

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22161

tkottary wrote: I had similar issue recently and remember doing the below to fix it

sudo chown astroberry /dev/rfcomm0
sudo usermod -a -G dialout astroberry

Replace astroberry with your username.


Just tried that with no luck as well. I took the BTEQ5 and hooked it back up to my windows laptop, everything worked just fine with EQMOD there. I also tried it on my laptop running Linux Mint 18 and it would not stay connected. I could pair, but it would only stay connected a moment. I also could find no way in Mint to assign a com port, so that was no help...was really hoping Mint would help me, but the last thing I need right now is being sidetracked with another linux machine that this won't work on! :)

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

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22169

  • jpaana
  • jpaana's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 93
  • Karma: 2
  • Thank you received: 33
I think your problem is that "blueman-r" process as my system doesn't list any processes with "lsof /dev/rfcomm0" when not connected and indi_eqmod_telescope when it is. I don't use the bluetooth manager connect but have "rfcomm bind 0 20:16:xx:xx:xx:xx" in my startup scripts.

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

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22178

jpaana wrote: I think your problem is that "blueman-r" process as my system doesn't list any processes with "lsof /dev/rfcomm0" when not connected and indi_eqmod_telescope when it is. I don't use the bluetooth manager connect but have "rfcomm bind 0 20:16:xx:xx:xx:xx" in my startup scripts.


It appears Blueman is the graphical interface. I did not install it separately, I wonder if it's safe to just get rid of it?

(EDIT) So, blueman was the culprit. I uninstalled it and bound the BT to /dev/rfcomm0 manually and EKOS connected right away. Slewing controls worked just like EQMOD so all appears well...at least with this initial problem. Thanks for all the help!
The following user(s) said Thank You: knro

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

Last Edit: by TheRealEleven.

Keep getting 'device or resource busy' error when connecting 9 months 2 weeks ago #22199

I heard that in 18.04, the bluetooth stack is much more reliable. So hopefully it would be less of a pain in a few months. Notwithstanding that, I didn't face any issues here.. maybe I was lucky!
The following user(s) said Thank You: TheRealEleven

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Keep getting 'device or resource busy' error when connecting 7 months 3 weeks ago #23698

  • acab
  • acab's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
I have the same problem. I'm a real beginner.
Would you mind telling me the commands you used to bind the /dev/rfcomm ?
Thanks

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

Time to create page: 0.243 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