usb

How to send data from USB device to DJI SDK?

ε祈祈猫儿з 提交于 2019-12-25 00:17:53
问题 So this might be a bit basic of a question, but I don't have much experience on the hardware side of things. I am using DJI Android Mobile SDK to communicate with a M600 flight controller and have a FTDI CU/TTY device I am trying to send info back and forth. This successfully works to send "Hello World" to my USB device: //sends data to onboard sdk device final byte[] helloWorld = "HelloWorld".getBytes(); mFlightController.sendDataToOnboardSDKDevice(helloWorld, new CommonCallbacks

Virtual Com-Port communication through Matlab

限于喜欢 提交于 2019-12-24 21:27:02
问题 While connecting my Com-port using matlab, many a times(4 out of 5) I get an error ??? Error using ==> serial.fopen at 72 Port: COM21 is not available. Available ports: COM3, COM10, COM17, COM18. However , sometimes it gets connected and responds as expected. Can anyone tell me whats the problem with this? By the way , I am using this snippet to connect my microcontroller to PC through USB s = serial('COM21'); // code to initialize the req COM i.e. COM21 for me fopen(s); 回答1: I ran into this

Android Studio does not recognize my Xiaomi Redmi 4a miui 9.6.5.0

三世轮回 提交于 2019-12-24 18:11:33
问题 When I try to "run" app via Android Studios, my Xiaomi Redmi 4a does not show up in my Android Studio. Things I've done; tried to install both Xiaomi's own USB drivers and Google's USB drivers, with the same result; "No newer drivers are available." enabled USB debugging makes no different switching between PTP and MTP mode Could anyone help me? 回答1: try this, Disable windows signature windows 7 http://en.miui.com/thread-237673-1-1.html windows 8 https://learn.sparkfun.com/tutorials/disabling

cannot access /dev/video*: No such file or directory

☆樱花仙子☆ 提交于 2019-12-24 16:43:05
问题 So I'm working on a zynq z7000 card and I made a Linux Kernel on it. I put a Linaro as a Root File System. I managed to boot the card however I can only use mouse and keyboard usb devices. I tried webcam and flash drives but they are not working. when I use : lsusb I get the webcam device ... Bus 001 Device 005: ID 046d:0805 Logitech, Inc. Webcam C300 However when I try ls /dev/video* I get ls: cannot access /dev/video*: No such file or directory I've used these configurations to build my

Usb Driver on 64bit Windows

混江龙づ霸主 提交于 2019-12-24 16:24:25
问题 I have a pretty generic 64bit driver based on bulkusb.sys in WDK. It's been working for years with an embedded program, but now it is needed to work on Vista 64. From all the documentation I've tried to look through there doesn't seem to be anything affecting it, except compiling it for the 64bit environment, and yet when I compile it with the AMD64 build environment, I get "driver not intended for this platform" error message when it's trying to open the sys. What could be the solution for

Broadcast receiver not unregistering

独自空忆成欢 提交于 2019-12-24 12:23:45
问题 I want to give the user the ability to unregister/register the broadcast receiver with the click of the button. When the button is pressed for the first time, the broadcast receiver is registered and a toast comes up when the device is connected. My problem is when I press the button again, the broadcast reciever is not unregistering like I specified. Can somebody please check if there is something wrong with mylogic, or explain to me if there is another approach to detecting when usb is

different between card reader to usb using c#

心已入冬 提交于 2019-12-24 09:14:24
问题 I build a scanner that takes all drive's with DriveInfo . how i Discerning between drive from card reader and drive from usb ?? thanks.... is the same member - Removable!! i try this , but must to be a diffrent from card reader to usb device!! sombody ?? 回答1: I would see if the DriveInfo.DriveType returns a different drive type for the card reader and the usb drive. Here's a list of what drive types DriveInfo contains. 来源: https://stackoverflow.com/questions/3329745/different-between-card

Simple reading/writing from/to a USB HID device in Python?

梦想与她 提交于 2019-12-24 09:12:25
问题 I've got a fairly simple USB HID device that I've been trying to figure out how to read from and write to using Python. I've been able to read from it using PyWinUSB, but the problem comes in when I try to write to it. Trying to write to it makes things explode. For example: device = hid.HidDeviceFilter(vendor_id = 0x0003, product_id = 0x1001).get_devices()[0] This works fine. Then for reading raw data, which is all that I care about right now (I'll work with that once I can figure out how to

Sending SCPI/GPIB commands over USB from C#

微笑、不失礼 提交于 2019-12-24 08:57:30
问题 I'm trying to communicate with some test equipment from C# over SCPI. I managed to communicate with one device that is connected through TCP/IP by using this code example. However, my other devices are connected through USB and I haven't find how to communicate with them over USB. BTW, I found this question, and the link from the answer to the IVI-COM programming examples in C# document, but I couldn't apply the code samples (e.g. in section 5.4) because all of the IVI and VISA COM libraries

Serial communication over USB converter in Python - how to aproach this?

独自空忆成欢 提交于 2019-12-24 03:45:14
问题 A python program needs to accept a string every second from a serial port. I plan on using a RS-232 to USB converter. The application is going to work under Ubuntu 10.04. How do I approach this? Do I use pySerial or libusb? There needs to be done some processing in the meantime, so synchronous communication is not viable. Do I use some kind of interrupts or do I need to open separate threads? Or do I use blocking reads, believing that 1s is enough for my computations (it is plenty ... for now