How to read data from an external hardware device using vb.net? - vb.net

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

Related

Registering a network video stream as a virtual camera

So I've tried to tackle this problem for the last couple of weeks but come to a bit of a standstill. I'm trying to registering an RTSP stream from an IP address as a virtual webcam for use in another application (could be skype or similar). What I need is for my computer to add a virtual webcam to its device list. This should preferably be done through a C# script as devices could be added dynamically through a .NET program.
I have found similar questions on StackOverflow, but many of these are outdated, use Linux, or receives another stream format/protocol.
My approach so far has been using DirectShow filters and so far that has worked to a degree. Using Graphedit I can see my incoming stream by using an RTSP source filter. However, there are some problems:
The source filter was a trial, the full version is paid and pretty expensive
I have no experience with DirectShow filter programming
I only showed the stream through GraphEdit, there was no virtual driver registered so e.g Skype couldn't use the stream
So I guess my question boils down to:
Is my approach with DirectShow the only way to acheive what I'd like?
Is a filter the correct approach to use if Windows should list the stream as a webcam device?
Is vcam still the best example to look at to implement something like this?
Does any one know of similar, open source programs that acheive what I describe?
Anyway, I appreciate any help I can get!
Thanks.
The diagram below explains the applicability of virtual cameras:
You are trying to somehow mount a lower green or blue box so that it reads data from RTSP.
Note that more and more applications like new Skype are Media Foundation based (top right box on the diagram) and your filter based source is less and less applicable.
Creating a virtual camera which is recognized by various software assumes you are supplying a driver (red box). Even though such packages exist, I am not aware of any open source or even free which let you quickly start on this route.
DirectShow filter based sources (and you are yet to implement RTSP client there) will only be see by DirectShow based applications of the same bitness.

Arduino compatibility with unofficial modules

Completely new to Arduino and am looking to really dive in. An idea I have requires a small form factor for a gsm/gprs module, something that could work with one of the micro arduinos. I can't find any sort of really small gprs modules.
My question:
Is it possible to use the module from an old cell phone and adapt it to arduino? Or is that an outrageous concept? I also found one that looked interesting on (ebay) would it be possible to adapt to something like that?
I am aware that it'd be a big undertaking!
Thanks for the help.
It is possible! most of the modules serially communicates you only need to get the baud-rate correct.
There are examples and tutorials you can find on the internet this Instructables tutorial is worth seeing.

exchange data between 2 usb ports in Ubuntu

I have 2 usb devices that are connecting to my computer, I need to take the data input from 1 port and output it to the other port, and vice verse. I am using Ubuntu 10.04 as OS. I tried to use jpnevulator but I can't figure it out.
Any help will be appreciated, thanks in advance.
I give a detailed overview of these kind of problems in this answer to a related question.
I would suggest you use libusbx to read data from one usb and write that to the other. Basically what happens is that you enumerate all the devices, discover the correct HID descriptors, and plug those into a libusbx interface to read/write. It really is this simple. As far as details, you should be able to look up each of what I just said - they are solid/correct keywords as far as I'm aware. You can also visit the post above for some more resources. For instance, there is at least one solid example on that page at the very bottom. Hopefully this helps get you started!

How to make a library for the webcam?

I'm learning Factor and I thought it would be great to have a small program to capture images from the webcam that comes with my mac pro. I know every webcam will be very different but sounds like something I should be able to do. I want to create a library with support for Mac, Linux and Windows. The problem is that I'm not sure where to start.
Factor-based answers are welcome but I'm looking for the language agnostic solutio. When I google for it, all I get is programs that capture images. I want to learn how to interact (in the 3 big operative systems) with the drivers I guess.
I think the only clue I have is the ioctl wiki page. How would you start such a project? What kind of google keywords would you use? Books?
It's not clear if you want to write a driver for your particular webcam or a library that makes talking to the existing driver easier.
If you want to write a driver for your webcam, you probably want to investigate libusb for Mac and Linux and libusb-win32 for Windows. You would need to understand the protocol that your webcam talks, though. You could probably read the source code for the existing Linux driver (assuming there is one, which is pretty likely).
As for Google search terms, you might try "video capture" and maybe looking for Python/Ruby etc. code or Open Source programs will get you code you can look at to see how to do what you want to do.
Perhaps if you describe in a little more details what you're trying to accomplish someone could give you better suggestions.

How to accept weight data from Detecto AS-350D

I've found a scale, Detecto AS-350D (http://cardinal-detecto.centralcarolinascale.com/AS-PC-Computer.htm), that hooks up to a computer. I was hoping someone could help me figure out how to get the information (weight) from it. I've looked around but can't seem to find any information on it. I've never wrote a program where I accepted data from a device likes this so kind of confused where to look. Thanks.
Update: I'm coding in VB, and the device connects to the computer via serial port.
I developed a serial port programming language in C#. maybe you want to try it. It also has a built-in debugger and it requires .NET Framework 3.5 or above. you do NOT have to install any other programming tools. It is freely available on sourceforge.
If you create a driver simply with the following state, you will be able to get the data from the serial port.
state Init
recv();
end state
Download Link
For more information, please visit Project homepage
If you have any questions, please feel free to ask.