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.