Android x86 disable USB device or driver or choose bluetooth device? - android-bluetooth

I'm running Android x86 on Parallels Desktop and their virtual bluetooth device simply doesn't work. I would like to use my Android-compatible USB dongle (CSR8510). I can do this with Windows 10 by disabling the virtual device in the Device Manager, but I fail to see an equivalent setting in Android.
I know the USB dongle is attached to Android x86 by running the USB Host Controller app. It shows up as 0001:0a12 CSR8510 A10
Any suggestions?

Related

Is there any way to make an embedded ARM Linux device(as a USB device) aware that it's been enumerated by a USB host?

Is there any way to make an embedded ARM Linux device(as a USB device) aware that it's been enumerated by a USB host?
I'm developing a printer based on an embedded ARM Linux in C. When the USB cable is plugged in, I need to know whether the USB is plugged into a power adapter or a computer that has a driver on it.
Is there any way to achieve that?

How do I get information about the USB device tree in C in Windows 10? (Specifically USB version)

I want to get the USB version of the USB that's connected to a hardware piece.
In USB view I would do that by looking for the device by its name/ID and checking the USB version, I want to do the same thing automatically in C. (I'm on windows 10)

Communicating with a Bluetooth device from UEFI code

Is it possible to communicate with a mobile device supporting Bluetooth LE from UEFI of a system? UEFI specification 2.6 adds support for Bluetooth but I dont see any new laptops supporting it and also the specification doesnt say anything about Bluetooth LE.
This feature is possible. However, its not related to UEFI Mode but this feature has to be embedded into the bluetooth chip itself. This feature is generally known as Headless mode of Bluetooth Chip.
The Bluetooth chips contain two firmwares. One firmware for general BT functionality and the other firmware contain a lite Bluetooth stack which contain a very cut down version of Bluetooth stack which can support BLE feature. So, when your laptop either gets shutdown or goes to sleep, your BT chip goes into headless mode and start advertising itself to other BLE device. Other ble device like mobile can see this and can connect to it and start your laptop.
This feature is however, not present in any laptop known to me. But you find a good example of this in Samsung's smart TV. You can switch on your TV from samsung mobile using ble.

Linux Serial Device Server over USB?

I have an embedded Linux solution and want to create a command service over serial USB. The idea being that when a computer connects to my embedded via USB, they see a serial device and send serial commands to me through that port and I send responses back.
I need some help in the direction to proceed. Do I need to emulate a serial device so they see me as a COM port? Is there build in Linux solutions to broadcast my details as a serial device? Are there code examples? I can see block devices connect with my embedded solution like a USB storage device. When I plug into another computer, I would like it to see me as a serial COM port.
I just need help in the direction of which path I should go down to solve this.
Thanks in advance.
What you are looking for is the Linux USB serial gadget. The Linux USB gadgets framework allows devices to behave as a variety of standard USB devices, including serial devices, Ethernet adapters, and mass storage devices.
Note that USB gadgets will only work on targets with a USB controller that can be set to operate as a USB device. Not all USB controllers and target devices are compatible with this configuration. For instance, most PCs have a host-only USB controller, and the Raspberry Pi Model B is not compatible with gadgets because it contains an embedded USB hub upstream of the USB ports. (However, the Pi Zero is fully compatible with gadgets.)

Activate and deactivate usb device in c?

We have a laser scanner which is connected all the time to a certain usb port.
The usb device should be deactivated normally.
Only at certain times I have to activate this usb device at the usb port with a litte c program.
So how can I activate a deactivated usb device in c?
Thanks for your information.
Update:
I forgot to mention to operating system: Windows XP, Windows Vista, Windows 7, ...
The laser scanner is a Honeywell Voyager MS 9540 product.
In the documentation I read that if the usb scanner is connected to a serial port, you can send enable and disable commands over the serial port in order to enable or disable scanning. But I thought it would be easier to simply enable or disable a usb port/device.
I bit more information would be useful ...
For usb connection you can use libusb (see also: libusb-win32). Since it's used by CUPS (a printing software) too, i guess its ideal for you.

Resources