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 6 months 3 weeks ago #23699

  • nmac
  • nmac's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 311
  • Karma: 2
  • Thank you received: 62
I was having that problem too and had to revert indi-eqmod and libindi1 way back to an older version.

But first try to remove modemmanger and see if it affects the connection.
And then issue this command "sudo rfcomm bind hci0 xx:xx:xx:xx:xx:xx" where xx's are the mac address of the btooth module.

You can use this for a reference, it's for RPi but works on other hardware:

www.raspberrypi.org/forums/viewtopic.php?t=125922 or

this one:

www.indilib.org/forum/mounts/1719-eqmod-bluetooth.html

Using ubuntu mate 17.10. Wich one are you using?

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

(PT) SC@ROS Observatory
x86_64 Atom PC / TS 6" F4 Newtonian / Canon 550D / GPU CC / Datyson T7M / Arduino Moonlite DC Clone- HEQ5 Pro
x86_64 C2D / Explore Scientific ES80480 / Atik 420m / ES FF 2" / ASI120MM - Arduino Moonlite DC Clone - Vixen GPD2
www.flickr.com/photos/139335144@N03/
Last Edit: by nmac.

Keep getting 'device or resource busy' error when connecting 6 months 3 weeks ago #23716

  • acab
  • acab's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Changed to Ubuntu Mate 17.01 and used "sudo rfcomm bind hci0 xx:xx:xx:xx:xx:xx" as you suggested and it worked!
Thank you

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

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23817

I think I've tried every conceivable combination, nothing is working.

I still have zero issues using the bluetooth in windows, it's operating correctly. I've completely reinstalled Ubuntu Mate on my RPI3 with the automated install script (which is awesome btw, love that!)

I've removed modemmanager, I've removed blueman, I've set rfcomm to bind in /etc/rc.local.

/dev/rfcomm0 shows in use if I try to connect via terminal, and I'm now getting an error trying to use lsof:

scott@AstroPi:/dev$ sudo lsof /dev/rfcomm0
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.

I'm about to give up on this, I can use my windows setup with no issues, I was just hoping to be able to do it remotely.

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

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23830

  • acab
  • acab's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
I was getting the same message when using the Bluetooth panel to "Connect to serial port".
Now I do this:
1. Just pair the device but don't use the "Connect to serial port".
2. Then in a terminal type the command:
sudo rfcomm bind hci0 xx:xx:xx:xx:xx;xx
Where xx:xx:xx:xx:xx:xx:xx is the address for your device. You can see it in the Bluetooth panel.
You have to do it every time you restart.
I hope it works for you too.

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

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23833

acab wrote: I was getting the same message when using the Bluetooth panel to "Connect to serial port".
Now I do this:
1. Just pair the device but don't use the "Connect to serial port".
2. Then in a terminal type the command:
sudo rfcomm bind hci0 xx:xx:xx:xx:xx;xx
Where xx:xx:xx:xx:xx:xx:xx is the address for your device. You can see it in the Bluetooth panel.
You have to do it every time you restart.
I hope it works for you too.


Thanks, no dice.

I just don't know what is different for me than everyone else that gets this to work. Other than removing modemmanager after the install, my Raspberry Pi 3 is running a clean version of the Raspberry Pi 3 setup script found here.

I've tried having the rfcomm bind command in /etc/rc.local, and tried it without that. I've tried removing Blueman (a suggestion made here in this thread I think) and I've tried with Blueman installed.

I've tried manually trying to bind and connect via rfcomm. Nothing works.

I can kill VNC and disconnect from the RPI and immediately connect the mount in windows. I just don't understand it.

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

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23834

  • acab
  • acab's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
The steps I mentioned are in an old laptop using Ubuntu Mate 16.04.
I also have a StellarMate. Which uses a Raspberry Pi. On that one everything works. Probably because all the software was installed and tested at the factory. It also has Ububtu Mate 16.04. If you give up maybe you'd like to buy a StellarMate. They are not expensive and they ship them quickly.

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

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23836

  • Ihoujin
  • Ihoujin's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 337
  • Karma: 1
  • Thank you received: 42
The command for rc.local is
rfcomm bind hci0 xx:xx:xx:xx:xx:xx 1 &
I found no need to uninstall bluetooth manager, and you do have to make certain the dongle is paired.
Check that rfcomm0 is active with
ls -l /dev/
And make sure the INDI driver is set to connect to /dev/rfcomm0

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

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.

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23837

  • Ihoujin
  • Ihoujin's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 337
  • Karma: 1
  • Thank you received: 42
You might also check and see what's using /dev/rfcomm0 for anything unexpected.
sudo fuser /dev/rfcomm0
Take the ID number
ps -p ####

Don't give up yet. I went through all of this myself before discovering the conflict with modemmanager.

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

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.

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23856

Ihoujin wrote: You might also check and see what's using /dev/rfcomm0 for anything unexpected.

sudo fuser /dev/rfcomm0
Take the ID number
ps -p ####

Don't give up yet. I went through all of this myself before discovering the conflict with modemmanager.


I removed and re-detected the bluetooth dongle via Blueman and paired it all over again. Here's what fuser and ps return, and this is the screen when I try to connect the mount. Same story every time.

scott@AstroPi:~/Desktop$ sudo fuser /dev/rfcomm0
/dev/rfcomm0: 10447
scott@AstroPi:~/Desktop$ ps -p 10447
PID TTY TIME CMD
10447 ? 00:00:00 indi_eqmod_tele
Attachments:

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

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23859

  • Ihoujin
  • Ihoujin's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 337
  • Karma: 1
  • Thank you received: 42
I'm not sure.
At this point I would recommend trying from a vanilla installation once more. Don't use the setup scripts. I have not used those and can not account for such variables.
Before anything else take these initial steps
  • Install KStars, INDI-Full
  • Remove modemmanager
  • Pair, but don't connect the BT dongle with bluetoothmanager, or bluetoothctl
  • Bind comm port to BT device in the terminal
    sudo rfcomm bind hci0 xx:xx:xx:xx:xx:xx 1
  • Attempt to connect to EQMOD

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

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.

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23949

Ihoujin wrote: I'm not sure.
At this point I would recommend trying from a vanilla installation once more. Don't use the setup scripts. I have not used those and can not account for such variables.
Before anything else take these initial steps

  • Install KStars, INDI-Full
  • Remove modemmanager
  • Pair, but don't connect the BT dongle with bluetoothmanager, or bluetoothctl
  • Bind comm port to BT device in the terminal
    sudo rfcomm bind hci0 xx:xx:xx:xx:xx:xx 1
  • Attempt to connect to EQMOD


Figured it couldn't hurt, it's only time. I did all that, and the same result. No matter what way I install things here's what happens:

I can pair the BT with the BT manager.
I can see that linux is recognizing the serial port I created (/dev/rfcomm0 created with either the rc.local setup or via command line) and that indi is controlling it when EKOS is running.
EKOS errors out when trying to connect to the port.

Every single time :(

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

Keep getting 'device or resource busy' error when connecting 6 months 2 weeks ago #23952

  • Ihoujin
  • Ihoujin's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 337
  • Karma: 1
  • Thank you received: 42
I am sorry you are having so much difficulty.
Could you post some logs and a screenshot?

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

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