How to emulate USB devices?

前端 未结 2 1915
执笔经年
执笔经年 2020-12-02 11:30

The rest of my team will make for my application a simple non-standard USB microphone, but until they finish it I will have to emulate it, for integration testing purposes.<

2条回答
  •  执念已碎
    2020-12-02 12:01

    You can write virtual USB device using QEMU. You can duplicate already existing device, like the dev-serial.c found in this QEMU repository and change it for your needs.
    After you write and compile your USB device you can simply attach it to your VM using the QEMU command line interface.

提交回复
热议问题