device-emulation

How to emulate USB devices?

匆匆过客 提交于 2019-11-27 11:20:48
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. Is there any risk in a physical loopback? Yes there is Will a physical loopback work? Only with a USB bridge There is any way to create a logical loopback? ( MSDN has something about this ) There is any general purpose USB emulator software? In case there is many options available I'd rather work it .NET/Matlab/Python solutions. Edit: Proof of concept here I strongly recommend this project, USB IP . It is a way of

Simulate a faulty block device with read errors?

跟風遠走 提交于 2019-11-27 01:22:53
问题 I'm looking for an easier way to test my application against faulty block devices that generate i/o read errors when certain blocks are read. Trying to use a physical hard drive with known bad blocks is a pain and I would like to find a software solution if one exists. I did find the Linux Disk Failure Simulation Driver which allows creating an interface that can be configured to generate errors when certain ranges of blocks are read, but it is for the 2.4 Linux Kernel and hasn't been updated

Android: Simulate WiFi in the emulator?

不想你离开。 提交于 2019-11-26 22:28:07
I would like to check from my app whether the device has WiFi connectivity, but in order to do that, I must first find a way to get "WiFi" in the emulator. Just going to Settings -> Wireless controls -> Wifi says Unable to start Wi-Fi , while logcat says: E/WifiService( 566): Failed to load Wi-Fi driver. D/SettingsWifiEnabler( 695): Received wifi state changed from Unknown to Enabling D/SettingsWifiEnabler( 695): Received wifi state changed from Enabling to Unknown How can I simulate WiFi connectivity in the emulator? Currently, while you can use your computer's Internet connection in the

How to emulate USB devices?

南笙酒味 提交于 2019-11-26 15:27:34
问题 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. Is there any risk in a physical loopback? Yes there is Will a physical loopback work? Only with a USB bridge There is any way to create a logical loopback? (MSDN has something about this) There is any general purpose USB emulator software? In case there is many options available I'd rather work it .NET/Matlab/Python

Android: Simulate WiFi in the emulator?

夙愿已清 提交于 2019-11-26 08:22:04
问题 I would like to check from my app whether the device has WiFi connectivity, but in order to do that, I must first find a way to get \"WiFi\" in the emulator. Just going to Settings -> Wireless controls -> Wifi says Unable to start Wi-Fi , while logcat says: E/WifiService( 566): Failed to load Wi-Fi driver. D/SettingsWifiEnabler( 695): Received wifi state changed from Unknown to Enabling D/SettingsWifiEnabler( 695): Received wifi state changed from Enabling to Unknown How can I simulate WiFi