Read raw data from wired mouse - cmd

I need to obtain raw data from a USB wired optical mouse(x and y axis motion coordinates). Is there a way to do this from Windows command prompt? I have the windows driver kit installed. But I am not sure how to proceed to obtain the raw values.Any suggestions?

Related

Matrice 100 - On Board SDK

For my M100 I want to control several external devices such as laserpointer or thermal camera. I think, for a full control I have to integrate it by OSDK. I looked through the dji sdk documentation, but I have no idea where to start and what I effectively have to do. May somebody give me a little hint how to start and what really is necessary to fullfill my requirement described below.
Connect a Flir Boson (3.3V) and display the thermal image on the remote controllers mobile device.
Control the thermal camera (switch on/off) by the remote conroller.
Connect a laser pointer on a standard port of the M100 and control switch it on/off by a button of the remote controller.

Mac OS: get full control of web-camera (USB connected)

The task:
OS: Mac OS X 10.9 +
Description:
There is web-camera connected to a Mac via USB. I need to discover a way of getting access to its' brightness, pan, color temperature, focus, etc.
I also need a way to apply image filters against camera's video stream.
I need to be able to control the camera while it is being used by other programs like Skype, so I can transmit for example video stream with increased contrast at Skype video call.
Reference app: https://itunes.apple.com/app/webcam-settings/id533696630?mt=12
Solution:
This is the question.
As far as I understood I must to find custom kext (driver) in order to perform all this magic.
Could you please show me right direction, libraries, drivers, etc.
You can use opencv library to capture camera frames, apply filters, etc.
http://docs.opencv.org/2.4/doc/tutorials/introduction/display_image/display_image.html
Then you can feed a virtual cam that can feed into Skype, etc.
http://download.cnet.com/Virtual-Webcam/3000-2348_4-75754338.html
There also many open source virtual webcam available.
I hope this helps.

MAC OS get monitor vertical sync and horz display rate

I need to get the vertical sync rate and horizontal scan rate of a customized LCD monitor connected to a mac mini. On Linux I know "ddcprobe" retrieves those hardware information. How can I get those info on mac? The monitor is connected to a mac mini via HDMI cable if that helps.
Thanks
There's Quartz Display Services's CGDisplayCopyDisplayMode. You can get the refresh rate using CGDisplayModeGetRefreshRate from the returned opaque type. I don't believe there's a way to retrieve the horizontal rate.

Adding a third camera

As my company has a special need of installing a third camera on a Windows Phone Mango, do you think this is possible to access to the camera using Mango's Camera API?
As far as I can see the PhotoCamera only has two constructures: PhotoCamera() and PhotoCamera(CameraType type). The "type" here can only Primary or FrontFacing so I guess we cannot do anything else here.
We don't get this issue on Android, as they have the interface of Camera.open(int cameraId), and the cameraId can be any id between 0 and Camera.getNumberOfCameras() - 1.
I'm a bit confused, as there's no way to "install" another camera. There is no USB host port on the device, nor is there any other harcware interface, so how would you connect the camera physically?
Even if you could connect physically, there's no way for anyone other than a phone OEM to create and install the drivers for said camera, so how would the OS enumerate it to the platform?
If you're an OEM, you've undoubtedly got a support channel directly with Microsoft where you could ask this, as no one outside that channel is going to have any idea. If you're not an OEM, there's simply no way to add a camera or any other (non-bluetooth) peripheral to the phone.

How do I tell OS X to ignore the input from one of two connected USB mice?

I have two USB mice connected to my Mac, one of which I'm using as a scanner. I need access to the Generic X and Y data but I don't want that data to move the cursor. How, under either carbon or cocoa environments, do I tell the system to ignore the mouse as a pointing device?
Edit: after some digging I've found that I can turn off mouse position updating with the CGAssociateMouseAndMouseCursorPosition() function, but this does not allow me to specify a single mouse. Can anyone explain the OS X relationship between HID mouse devices and the cursor? There has to be a binding between the hardware and software on a device by device basis but I can't find it.
I would look into writing a basic user-space driver for the mouse.
This will allow you direct access to the mouse as a USB device. You can also take control of the device from the system for your exclusive use.
There is some documentation here:
Working With USB Device Interfaces
To get you started, the set up steps to connect to a USB device go like this (I think, my IOKit is rusty)
include < IOKit/IOKitLib.h > and < IOKit/usb/IOUSBLib.h >
find the device you are interested in using IOServiceMatching(). This lets you pick find the correct USB device based on its properties, including things like vendor ID, &c. (See the IORegistryExplorer tool screen shot below)
get a USB plugin instance (let's call it plugin) with IOCreatePlugInInterfaceForService()
use plugin from step 2 get a device interface (let's call it device) using (**plugin)->QueryInterface()
device represents a connection handle to your USB device--open it first using either (**device).USBDeviceOpen or (**device).USBDeviceOpenSeize(). from there you should be able to send/receive data.
Sounds like a lot I know.. and there might be an easier way, but this is what comes to my mind. There may be some benefits to having this level of control of the device, not sure. good luck.

Resources