Page 1 of 1

how can we change udev rules ??

Posted: Tue Jun 18, 2013 10:00 pm
by akash
My pc and my raspberry pi are paired via bluetooth, and the pi shows that the pc can be accessed via /dev/rfcomm0 serial port.
but I am not able to access this port with my python program.The output says that "Err no 16 Device busy"
I think it has something to do with the udev rules.can somebody help me out with this.
Also I am unable to access my usb barcode scanner on the pi.I get the following error when i try to access it i get the following error"Error no 13 Access denied"

Please help me with this, I am not able to go further with my project.

Re: how can we change udev rules ??

Posted: Wed Jun 19, 2013 3:45 pm
by akash
Any help would be seriously appreciated...I am eagerly waiting for a reply...!!

Re: how can we change udev rules ??

Posted: Wed Jun 19, 2013 5:31 pm
by DaveDriesen
I think the information provided may be too limited or confusing for most to provide accurate insights.

Try to find out if anything is using /dev/rfcomm0 using lsof, then see if you can stop that process. I must say that bluetooth can be quite a pain to code for though, with ports staying in use after your bluetooth devices goes out of range etc., a lot depends on your dongle, drivers, and paired devices. You tend to end up plugging a lot of holes.

If you are accessing the barcode scanner correctly then perhaps retry your steps with elevated privileges? I have a feeling you may be using an incorrect port though. Verify this using dmesg.

Sorry I can't be of more assistance in this case..

Dave Driesen
Linux dev and oldskool elite