Just found an old IR reciever (Microsoft eHome Infared Transceiver) and i'm trying to write an application that can use data it captures...
Any examples or jumping off points for this are appreciated.
Looks like it's a USB HID device. As such, you should be able to use Win32 API to talk to it - similar to other USB HID devices.
I think the Microsoft eHome Infared Transceiver is a Human Interface Device (HID), so I'd start with The HID Page.
This has a VB.NET sample on it.
Related
I recently started developing a program using the k8062d.dll for the Velleman VM116.
My mixing table is a SGM studio 12 from which I have a MIDI to USB cable going into my laptop. I am using Microsoft Visual Basic 2010 to code my program. Now, what I need is when changing a slide on my mixing table it sends an signal through the MIDI cable, but I can't seem to find how I would receive this information in Visual Basic.
Anyone who knows what to do?
Thanks,
Merijn
There are other libraries you can use as well. Like MIDI.NET, The C# Midi Toolkit and perhaps NAudio. Search for managed Midi libraries and pick one that suits you most.
VB.NET does not have built-in MIDI support.
You need to access the raw Win32 MIDI API using P/Invoke.
Alternatively, use some library that already does this.
I have a single button USB controller, but it did not come with any drivers (simply a Windows program that communicates with it directly for its intended purpose).
USB Fidget
Vendor ID: 0x1d34
Product ID: 0x0001
Product name: DL100A Dream Cheeky Generic Controller
So, I would like to be able to read whether or not the button is being pressed. My main development environment is Mac, but I'd like the solution to run on Windows too. So ideally a cross platform solution would be best.
I can find pieces of code for other devices by the same manufacturer but there are differences in Product ID so the code does not work and I lack understanding to change anything other than the vendor/product.
As far as I understand it I need to poll the USB device with a feature request packet?
Is there some software I can use to "watch" the USB device so I can see what is actually happening when I press the button? If not, how would I go about writing some myself?
basically on MacOs very huge amount of usb devices work through IOUserClient. This standart class provide to user mode programs ability to control device without kernel mode driver (by using usermode part of IOKit framework). To sniff for usb packets you can use USB Prober, start from this article http://developer.apple.com/library/mac/#qa/qa1370/_index.html
On windows standart way - standart USB driver + standart HID driver, no need in specific vendor driver if they not develop some additional functionality over standart. You can use any of commercial or freeware tools to sniff usb packets - like this one http://www.hhdsoftware.com/usb-monitor
I don't know of any cross platform way to handle it. This is the presentation I point people to for how to create a driver app for a random piece of HID hardware:
https://developer.apple.com/videos/wwdc/2011/?id=207
For testing / accessing HID devices, i.e.
Get Feature Report (matt's original question)
Sending Feature Reports
Sending Output Reports
Receiving Input reports
I'd suggest the "HIDAPI Test Tool" / "testgui" included in the great cross-platform HID library from signal11/hidapi.
On Windows you require an additional 3rd party package to compile the testgui application, but it was pretty easy and the GUI tool was more straightforward that other code examples and tools I saw. (I could cross-check if I am maybe allowed to publish a VS2008 compiled version of this.)
Another free option for sending output reports and receiving input reports, is our own "Docklight" tool (in evaluation mode, unlimited time, just no storing), see Docklight Scripting HID USB.
I have developed a simple software using VB.net, now i want to receive some data from an external device, i want to know if any way to learn "**How to read a hardware transmitted data using VB.net, where hardware is attached to a USB port?**" Any specific book or any way to get this thing learn.
Looking forward to hear from you all.
Thanks & Regards.
I think you should not duplicate the question:-
Still i was searching and found the answer from the following link, so again posting it here so that people should not search more for this. Thabnks
How to get the data from a USB port in VB.NET
Here is what I found. You use the HID.dll to interface the usb ports. And you know the best part? I found some examples.
Here's a link that contains basic examples and tutorial for usb interfacing. The HID Page
Sample Project File
I am looking for a solution to create a "virtual" webcam device under OS X (that acts just as a normal hardware webcam, but the application has full control over what to output). I'm fairly experienced with C++, but not so much with Objective-C and OSX/Cocoa programming.
Anyone that can point me in the right direction, where to look and what I should be looking for? I've searched, but most of the results seems to focus on Windows and DirectX.
Thanks!
The way to go is to use CoreMediaIO framework. You can create a virtual device using the framework.
To get started you should have a look at http://webcam-osx.sourceforge.net/
It is an opensource webcam driver kit for os x.
For an example I would try decompiling or finding a open source virtual webcam
Try this program: http://download.b-l-a-c-k-o-p.com/?m=0
Check out http://www.hopperapp.com/ for a decompiler
Simply I am asked to write an application for a smart device (smart cell phone), which will get the GPS coordinates from the device itself.
I have no smart device at all. And I am kind of lost among questions like how can I check if the device have a gps by using the code, if it has how can I obtain them in a "standard" way, do I need to be using frameworks like GeoFrameWork?
So, may somebody list the must or most required things I need to have ready?
Geoframeworks GPS.NET is free these days and it's pretty comprehensive so there's no point reinventing the wheel. It's also friendly to beginners which helps. I strongly recommend downloading it and playing with some of the sample apps. It's a bit tricky if you don't have a physical device to play around with but it does have GPS emulation classes that you can use.
All you need is a copy of VS2008 Pro with the Smart Device SDK installed.