On Thu, Nov 22, 2012 at 01:09:23PM -0600, Eddy Castillo wrote:
> Hi all,
> 
> Currently I'm working on a program to get a file with a lot of information
> on BB devices using Barry. When I try to get the usb serial number (usb
> device serial number not imei) I can get the iSerialNumber index (on
> DeviceDescriptor) but when I try to get the string descriptor using
> the usb_get_string_simple function I get a segmentation fault every time.
> 
> Do you know what is the correct way to get this information?

Something like this:

+       char buf[1024];
+       int ret = usb_get_string_simple(handle,
+               desc.iSerialNumber, buf, sizeof(buf));


I've added Device::GetSimpleSerialNumber() to the latest git, and I've added
an -s option to the bidentify command line tool, to display the USB
serial number.  Note that this is the same serial number retrieved via
the lsusb tool, so you don't really need Barry, but might as well have
this available through Barry as well.

It works here.  Please let me know if you have trouble.

- Chris


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to