Re: [pyusb-users] Significance of 'B' Character in Data Arrays

2014-09-29 Thread Steven Michalske
Jared,

You were close, 8.6 of the docs is what you were looking for.

See https://docs.python.org/2/library/array.html for full description of the 
python array standard library module.

If you don't have a need to run python 2.7, I suggest using Python 3  it copes 
with bytes and strings more explicitly.  Working with low level stuff i fond it 
more useful than coercing python 2 to work properly with bytes and strings 
(unicode)
Especially when I use utf-8 in my programs.

Steve

On Sep 29, 2014, at 8:06 PM, Jared Contrascere 
 wrote:

> Hello!
> 
> I've managed to read data! At this point, I need to decipher it. I wanted to 
> confirm my suspicion that the B in the following array:
> 
> array('B', [3, 4, 2, 0, 22, 0])
> 
> Signifies that an unsigned char is being received from the backend library, 
> similar to what is seen in the table section 7.3.2.2 at 
> https://docs.python.org/2/library/struct.html
> 
> Is this the case?
> 
> Thanks in advance!
> 
> Best,
> Jared
> 
> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk___
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


[pyusb-users] Significance of 'B' Character in Data Arrays

2014-09-29 Thread Jared Contrascere
Hello!

I've managed to read data! At this point, I need to decipher it. I wanted
to confirm my suspicion that the B in the following array:

array('B', [3, 4, 2, 0, 22, 0])

Signifies that an unsigned char is being received from the backend library,
similar to what is seen in the table section 7.3.2.2 at
https://docs.python.org/2/library/struct.html

Is this the case?

Thanks in advance!

Best,
Jared
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


Re: [pyusb-users] NotImplementedError in is_kernel_driver_active() in pyusb 1.0.0b2

2014-09-29 Thread Wander Lairson Costa
Em 28/09/2014 20:29, "Jared Contrascere" 
escreveu:
>
> Hello!
>
> According to the release notes at
https://github.com/walac/pyusb/blob/master/ReleaseNotes.rst the functions
is_kernel_driver_active, detach_kernel_driver and attach_kernel_driver does
not accept an Interface object anymore.
>
> When upgrading from pyusb-1.0.0a3 to pyusb-1.0.0b2 I changed:
>
> dev.is_kernel_driver_active(interface)
> # is now...
> dev.is_kernel_driver_active()
>
> This raises a NotImplementedError. Is the beta-2 release too new to begin
application development or am I doing something wrong?
>

My bad. It does not accept an interface object, you must always pass an
interface number. Sorry about the confusing info.

>
--
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> ___
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
--
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users