×

INDI Library v1.8.0 is Released (27 Jul 2019)

INDI Library v1.8.0 is mostly a maintenance release to fix a few bugs in several drivers.

Keep getting 'device or resource busy' error when connecting

  • Posts: 34
  • Thank you received: 1

Keep getting 'device or resource busy' error when connecting was created by TheRealEleven

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!
1 year 7 months ago #22121

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

Replied by knro on topic Keep getting 'device or resource busy' error when connecting

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
Last edit: 1 year 7 months ago by knro.
1 year 7 months ago #22124

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

  • Posts: 34
  • Thank you received: 1

Replied by TheRealEleven on topic Keep getting 'device or resource busy' error when connecting

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.
1 year 7 months ago #22128

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

  • Posts: 34
  • Thank you received: 1

Replied by TheRealEleven on topic Keep getting 'device or resource busy' error when connecting

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.

1 year 7 months ago #22149
Attachments:

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

  • Posts: 242
  • Karma: 2
  • Thank you received: 55

Replied by xsnrg on topic Keep getting 'device or resource busy' error when connecting

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
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
1 year 7 months ago #22154

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

  • Posts: 34
  • Thank you received: 1

Replied by TheRealEleven on topic Keep getting 'device or resource busy' error when connecting

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.
1 year 7 months ago #22155

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

  • Posts: 119
  • Thank you received: 23

Replied by tkottary on topic Keep getting 'device or resource busy' error when connecting

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.
Last edit: 1 year 7 months ago by tkottary. Reason: grammar
1 year 7 months ago #22160

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

  • Posts: 34
  • Thank you received: 1

Replied by TheRealEleven on topic Keep getting 'device or resource busy' error when connecting

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! :)
1 year 7 months ago #22161

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

  • Posts: 191
  • Karma: 5
  • Thank you received: 83

Replied by jpaana on topic Keep getting 'device or resource busy' error when connecting

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.
Remote observatory running Ubuntu 19.04 x64 with ScopeDome 2M, Skywatcher EQ8 and HEQ5, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, USB_Focus V3, Gemini SnapCap, USB_DewPoint, KomaHub
1 year 7 months ago #22169

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

  • Posts: 34
  • Thank you received: 1

Replied by TheRealEleven on topic Keep getting 'device or resource busy' error when connecting

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
Last edit: 1 year 7 months ago by TheRealEleven.
1 year 7 months ago #22178

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

Replied by knro on topic Keep getting 'device or resource busy' error when connecting

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!
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You: TheRealEleven
1 year 7 months ago #22199

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

  • Posts: 16
  • Thank you received: 0

Replied by acab on topic Keep getting 'device or resource busy' error when connecting

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
1 year 5 months ago #23698

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

Time to create page: 0.893 seconds