usb

Android Things: ADB over USB on Raspberry Pi

北城以北 提交于 2019-12-17 16:53:37
问题 I'm playing with Raspberry Pi 3 Model B and Android Things . I was able to configure everything (connect Pi over Ethernet , then reconnect over Wi-Fi with Android.local ) and debug the app. However it's not convenient sometimes to debug over Wi-Fi when I travel and I have to change Wi-Fi networks or don't have Wi-Fi connection at all. I know there is serial debug console, but it seems to be for getting logs and shell commands, not for debugging. Any chance to have direct debugging over USB

No android device found in unity

一个人想着一个人 提交于 2019-12-17 16:35:45
问题 When I am building a game for android, I get this message: No Android device found! Make sure USB debugging has been enabled. Check your device. In most cases there should be a small icon in the status bar telling you if the USB connection is available. If you are sure that your device is attached then it might be your USB driver that's the problem. For details please check the Android SDK setup section in the Unity manual. The cancel windows showed this error: No android device found! If you

How can I determine if a given drive letter is a local, mapped, or USB drive?

我是研究僧i 提交于 2019-12-17 15:39:03
问题 Given the letter of a drive, how can I determine what type of drive it is? For example, whether E:\ is a USB drive, a network drive or a local hard drive. 回答1: Have a look at DriveInfo's DriveType property. System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives(); foreach (var drive in drives) { string driveName = drive.Name; // C:\, E:\, etc:\ System.IO.DriveType driveType = drive.DriveType; switch (driveType) { case System.IO.DriveType.CDRom: break; case System.IO.DriveType.Fixed: //

Mocking USB input

家住魔仙堡 提交于 2019-12-17 13:29:09
问题 Our product includes some custom hardware, that connects to a PC via USB. We've started looking into automatic testing, but so far I'm unable to find a tool that can record/replay generic USB input. Does anyone know of such a tool? (And - it would be best if it's somehow scriptable - testing would have to alternate between GUI interaction and custom hardware manipulation) 回答1: Hardware solution, Do you want to generate USB traffic. It's long since I used it, but the CATC protocol analyzer can

How do I read input from a USB HID device?

梦想的初衷 提交于 2019-12-17 12:40:06
问题 I'm making an application to run in the background on a salespoint to read input from a usb scanner. How can I get the input of the scanner from C#? And can I differentiate between the scanner and a usb keyboard? (Scanner is a HID device) 回答1: I did this successfully before using a “Raw Input” implementation on CodeProject: Raw Input It allows you to receive both the input (what “keys” are pressed if it mimics a “keyboard”) as well distinguish which device it came from. 来源: https:/

Monitor USB drives and retrieve device Info using a DeviceWatcher?

て烟熏妆下的殇ゞ 提交于 2019-12-17 11:46:31
问题 I'm a WinForms developer and I already knew how to monitor the USB's that connects or disconnects using WMI, but time ago I'd discovered the DeviceWatcher class for Modern Windows Apps, that Class has interested at first time 'cause seems like a very improved and efficient alternative to replace all those 'old' WMI codes that explains how to monitor drives over Internet, but until yesterday (thanks to this post) I haven't idea about how to use the DeviceWatcher in a WinForms project, but now

Use USB Camera on Android application

喜夏-厌秋 提交于 2019-12-17 10:18:17
问题 I need to display a video transmitted by an USB Camera connected to my tablet on Android 3.2. How can I do this? I can't use the tablet's camera, because my tablet is fixed on board. 回答1: (I wrote this in 2012 when there was no support for USB camera. I am not working on Android anymore.. so I cannot explain how to do it with the API of latest Android. If you know any better solution please post it here.) The discussion holds true only if the sensor inside USB camera is UVC compliant(most of

Detect USB tethering on android

ⅰ亾dé卋堺 提交于 2019-12-17 09:49:21
问题 Is there any way to know (pro grammatically) in your Activity/Application that the user has enabled USB tethering on his phone? 回答1: Looking through the Settings.System documentation points to the answer being no, its not possible to do this. Link to said documentation 回答2: you can also use reflection to access the hidden function for setting usb tethering. Here is my code. ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); Log.d(TAG,"test enable usb

“The semaphore timeout period has expired” error for USB connection

僤鯓⒐⒋嵵緔 提交于 2019-12-17 07:29:14
问题 I'm getting this error... The semaphore timeout period has expired. On this line... ThePorts.ActivePort1.Open(); ...but I only get it from time to time. When it happens, it happens over and over again. Then the problem goes away, for hours or days, then it comes back. The serial port is a USB with a BlueTooth connected. I think this guy was having a very similar problem, but not in C# Freeze on SerialPort.Open / DeviceIoControl / GetcommState with usbser.sys As best I can estimate, I have

How to access USB ports in java [closed]

时光毁灭记忆、已成空白 提交于 2019-12-17 07:25:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 months ago . I'm trying to write a java application that accesses the usb ports to read from and write to a device connected through usb. The problem I face is that I don't know what exactly to use in java to do such a thing. I searched online and found something called JUSB but all the posts seem fairly old. Currently I'm