From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Budik Date: Fri, 05 May 2006 20:45:30 +0000 Subject: Re: Accessing usb devices with USBDEVFS Message-Id: <445BB96A.5040300@ist-traffic.com> List-Id: References: <44525468.5030106@ist-traffic.com> In-Reply-To: <44525468.5030106@ist-traffic.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org >>>Recent systems don't use /proc for usb access anymore and real device >>>nodes in /dev/bus/usb instead. HAL sends "usbraw" device anouncements with >>>"linux.device_file" as a property when the device is created. >>> >>>Kay I looked at the hal properties of my device and there is no linux.device_file property. Does this mean that my device is not "usbraw" enabled? >>So is there a way then to read from the /dev/bus/usb? Like I mentioned >>in the parent post, I am just using fopen, and the functions provided in >>usbdevice_fs.h and usb.h to read data from the usb device. The device is >>a proprietary sensor that my company makes. Is there a >>manual/documentation about how to do this the more "modern" way? > > > No, that's still the correct way. If you use libusb, none of your code > changes at all. If you are using "raw" usbfs, then just open a > different file. > > Hope this helps, > > greg k-h > > How do I use the "raw" usbfs? I tried reading from the /dev/bus/usb file and got a bind - address already in use error. Danny ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel