akash
Posts: 6
Joined: Fri Jun 07, 2013 3:43 pm

how can we change udev rules ??

Tue Jun 18, 2013 10:00 pm

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.

akash
Posts: 6
Joined: Fri Jun 07, 2013 3:43 pm

Re: how can we change udev rules ??

Wed Jun 19, 2013 3:45 pm

Any help would be seriously appreciated...I am eagerly waiting for a reply...!!

User avatar
DaveDriesen
Posts: 113
Joined: Sun Mar 31, 2013 8:28 pm
Location: Top of the food chain
Contact: Website

Re: how can we change udev rules ??

Wed Jun 19, 2013 5:31 pm

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

Return to “Beginners”