So you would suggest, that I use the Virtual COM Port Driver (http://www.ftdichip.com/Drivers/VCP.htm) instead of the D2XX Direct Driver (http://www.ftdichip.com/Drivers/D2XX.htm) I'm currently using?
Does this matter at all?

Problem is I'm a novice when it comes to setting up a usb or serial connection..
So please be patient with me, when I may ask stupid questions.

Thanks
David



Am 27.07.11 22:17, schrieb Ian Daniher:
If you're using a RS232-USB adapter, PyUSB may not work, as the other driver is likely blocking.

Additionally, the "pyserial" library may be of more use, sparing you a layer of abstraction.

On Wed, Jul 27, 2011 at 15:58, David Brunnthaler <[email protected] <mailto:[email protected]>> wrote:

    Thanks for your replies.

    First of all: I'm using the official drivers from that RS232 <->
    USB adapter (http://www.ftdichip.com/Drivers/D2XX.htm)

    I monitored the USB transfer with wireshark and you can see part
    of the compressed output here:
    http://pastebin.com/4jf79vGQ

    And if you want you can also have a look at the full file:
    http://dl.i-am-alive.at/wireshark_full.txt

    Correct me if I'm wrong:
    What that tells me is that my endpoint adress is either 0x82 or 0x01.
    The length is most of the time 64. So is assume that this is my
    "nrByteRead"

    Can someone look at the logs and tell me if I'm right or wrong? I
    think I may still use the wrong "bConfigurationValue"..

    Thanks in advance
    David



    Am 27.07.11 16:20, schrieb Ian Daniher:
    Have you monitored a USB transfer with the scale using its
    original driver? I suggest the 'usbmon' kernel module. Use Wine
    or a VM if it's a windows-only app.

    On Wed, Jul 27, 2011 at 08:10, David Brunnthaler
    <[email protected] <mailto:[email protected]>> wrote:

        Hello,

        I'mright now trying to get pyUSB to read from my usb-scale
        but i'm running into some issues there.

        My python code: http://paste.pound-python.org/show/10095/
        and my output: http://paste.pound-python.org/show/10096/

        As you can see, it just stops at line 49 of the code.


        In the Tutorial
        
(http://pyusb.sourceforge.net/docs/1.0/tutorial.html#how-am-i-supposed-to-work)
        it says you first have to issue a "set_configuration" request.

        I tried all three different methods (line 31, line 33 and
        lines 35 to 37) but it always tells me:
        http://paste.pound-python.org/show/10097/


        Any idea what I'm doing wrong, or how I can establish a
        successful connection?

        Thanks in advance
        David

        --
        david brunnthaler
        [email protected] <mailto:[email protected]>
        austria

        
------------------------------------------------------------------------------
        Got Input?   Slashdot Needs You.
        Take our quick survey online.  Come on, we don't ask for help
        often.
        Plus, you'll get a chance to win $100 to spend on ThinkGeek.
        http://p.sf.net/sfu/slashdot-survey
        _______________________________________________
        pyusb-users mailing list
        [email protected]
        <mailto:[email protected]>
        https://lists.sourceforge.net/lists/listinfo/pyusb-users




    
------------------------------------------------------------------------------
    Got Input?   Slashdot Needs You.
    Take our quick survey online.  Come on, we don't ask for help often.
    Plus, you'll get a chance to win $100 to spend on ThinkGeek.
    http://p.sf.net/sfu/slashdot-survey


    _______________________________________________
    pyusb-users mailing list
    [email protected]  
<mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/pyusb-users


-- david brunnthaler

    0043 664 911 37 40
    [email protected] <mailto:[email protected]>

    museumstraße 4 / 3 / 8
    4020 linz
    austria


    
------------------------------------------------------------------------------
    Got Input?   Slashdot Needs You.
    Take our quick survey online.  Come on, we don't ask for help often.
    Plus, you'll get a chance to win $100 to spend on ThinkGeek.
    http://p.sf.net/sfu/slashdot-survey
    _______________________________________________
    pyusb-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/pyusb-users




------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey


_______________________________________________
pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users


--
david brunnthaler

0043 664 911 37 40
[email protected]
museumstraße 4 / 3 / 8
4020 linz
austria

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to