ftd2xx icon indicating copy to clipboard operation
ftd2xx copied to clipboard

Emulate FTDI device for test CI

Open snmishra opened this issue 3 years ago • 5 comments

QEMU has an FT232B emulator built-in. Would be neat if we could use that somehow to test the library in CI/

snmishra avatar Mar 02 '21 22:03 snmishra

That would be cool. I have not used qemu but have been meaning to.

krister-ts avatar Mar 03 '21 02:03 krister-ts

I've been thinking how to do CI for embedded systems and peripherals. QEMU may be one way to do it without increasing complexity a lot.

Anycase, this is just to serve as a note for now. I don't think I'll get to it anytime soon.

snmishra avatar Mar 03 '21 02:03 snmishra

I think if we use usb_add serial:tcp:0.0.0.0:8080 to map port 8080 to virtual ftdi device, we could use just connect to that with our 'embedded' device. See serial here: http://people.redhat.com/pbonzini/qemu-test-doc/_build/topics/pcsys_005fusb.html

krister-ts avatar Mar 03 '21 18:03 krister-ts

Interesting, that'd be neat. Unfortunately, I have no time to go into it. I'd take a PR though. :)

snmishra avatar Mar 03 '21 20:03 snmishra

nice idea :)

9y2070m avatar Apr 12 '22 06:04 9y2070m