Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^6: Problem Writing to FTDI COM Port using Win32::FTDI::FTD2XX

by PrfrrdUsrNm (Initiate)
on Jan 17, 2014 at 03:27 UTC ( [id://1070886]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Problem Writing to FTDI COM Port using Win32::FTDI::FTD2XX
in thread Problem Writing to FTDI COM Port using Win32::FTDI::FTD2XX

$FTDIdev->OpenDevByIndex(1); my $x = $FTDIdev->SetBitMode(0xFF, 0x01); print "$x"; #$x prints 1 my $mode = $FTDIdev->GetBitMode() || die "unable to get mode"; #fails here #GetBitMode(0x01) also fails

The program now dies at GetBitMode.

Replies are listed 'Best First'.
Re^7: Problem Writing to FTDI COM Port using Win32::FTDI::FTD2XX
by kschwab (Vicar) on Jan 17, 2014 at 11:52 UTC
    What's "OpenDevByIndex" ? Typo? I don't see any such method. Assuming it's a typo, does $FTDIdev->OpenByIndex(1) return 1? Did you try turning on PFT_DEBUG?

      Sorry typo, was correct in code.

      Found a way to use the rts lines, simplifies the solution to a single port.

      Thanks for the help.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1070886]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found