Capture Raw Signal from WiFi card as You Would a Sound Card - c#

Is it possible to capture the raw signal from a WiFi card in the same way you can capture the signal from a sound card? (I already found code for working with a sound card and for drawing spectrograms) I'm wondering because it would make a cool radio-type project. I'd prefer a solution that integerates well with .net (VB or C#).
My basic goal is to capture the ambient radio waves and build a primative "telescope" of sorts. Using the built in computer hardware is just the easiest way to accomplish this. If you have any other suggestions about how to accomplish this goal in a different way please post it as an answer also.
Thanks.

Look up "Software Defined Radio". They are usually either radio electronic kits or fairly expensive hardware. You will still need an antenna.

Related

C#.NET Determine blow sound using microphone

I am working on a UWP app which needs to keep listening to the sound and recognize a hammering sound.
For every blow of hammer strike I need to save the system time.
I have looked at few algorithms like
Clap sound detection in C#
but none-of-them are close to what I am looking for.
Here is the flow:
on my UWP I click on a button "Listen Audio"
That will start hearing to the sound
When there is sudden spike in sound wave, which is like a big hammer strike, my code should trigger an event
That event will capture information related to the hammer striking (mostly timestamp)
Any suggestions for coming up with a good algorithm is appreciated.
Based on your requirement this answer gives you what you need.
Link to product Info Page http://www.zonetrigger.com/sound-detection/
Demo link: http://www.zonetrigger.com/sound-detection/azt-demo.html
Audio Zone Trigger — $24.95
Audio Zone Trigger is very easy to use: you put triggers on the sound wave, and when the waves go beyond the thresholds, they perform the actions that you have selected. The software was designed with the following purposes in mind: Security, Computer Remote Control and Monitoring. However, because the software can perform any action that you want, you are free to use it in any creative way you can think!
If you don't want to user 3rd party tools and develop your own solution, then you can try this approach numerical integration

Digital Input device to c#

The Problem:
I'm writing an application that needs to receive electrical input from a machine every time the machine does something.
I have a Limit switch set up to the machine and it currently completes a circuit every time the machine does it's thing
I need it to input into a computer using usb as oppose to just complete a circuit.
I had a dataq 'dl-148u-sp' And i got the c# code to produce a graph using ActiveX controls but all i really need is the digital output from the circuit being completed (which for the life of me i couldn't figure out how to do)..
I ended up frying the device(i think) even the software it came with doesn't recognize it anymore...
I need a new device, and it turns out they discontinued the one i had, and the next one up after shipping is like 90$.
The Question:
Is there a Better/Cheaper/Easier way of doing this? Or can anyone suggest a Good device that's easy to get the output using c# code so i can incorporate it into a program i made?
It's not clear if you are asking for a hardware or software solution here. Are you asking what the best way to facilitate that data transfer from your machine to the PC? If so, this may not be the place to ask, but you might look at a USB to GPIO module.
http://numato.com/8-channel-usb-gpio-module is an example.
I'd recommend an Arduino:
http://www.arduino.cc/playground/Main/InterfacingWithHardware
They dev kits are cheap and there's a ton of open/free libraries that interface the Arduino to C#.
More expensive and complex board is IOFirebug with c# library and many functions. Input voltage range is from 5V to 30V.

Duplicate camera stream

I need to make a program that would allow me to capture camera stream with my 2 other programs simultaneously. Basically I need the functionality that ManyCams (http://www.manycam.com/) offers.
How can I do this? I'm interested in a free c++ library, or some C#/C++ .net solution.
well, one easy step will be "share" rather than "duplicate" camera streams, your application can capture camera streams then provide api to share it between multiple applications. OpenCV worth a look.
I'm not sure but you probably need to have good understanding of how hardware work and know how to develop a driver for it. What you should do is to get the graphic from usb device's driver and use what you get from your camera as input source for your own virtual camera drivers.

Audio capturing in C#

I have a MAYA 44 USB sound card and would like to interface it with C#. I want to record from the provided microphones and produce a data array.
I have found examples when using the internal sound card from my laptop but when it comes to external it does not quite work.
Has anyone every connected the above sound card with C# please?
Have you had a look at the DirectSound API (Windows only though, I think). Might provide what you're after.
On how to record audio with C# in general there are already multiple threads on SO, so I won't talk about that.
I see two possible causes for your program which have different solutions:
You need to change which audio sources are muted in the windows volume control ("sndvol32.exe /R")
When opening the audio device there are multiple devices. And you're simply opening device 0 instead of enumerating them and perhaps choosing another one. The external sound-card might appear as a second device.

Getting sound directly from hardware with C#

Is there a way to get the sound that the sound card is playing directly from the hardware?
NAudio is a nice API for sound programming in C#. I'm only discovered it myself, but it might be able to record the output, though probably not...
http://www.codeplex.com/naudio
some sound cars can select the output sound as mic, if that is acceptable then you could just google how to use the microphone...
The most general way is Total Recorder which has a COM interface.
I presume that this is Windows since you are using C#. Ignore this if you are using mono.
There is no officially supported way to do this in Windows. Some sound cards have a setting in the mixer that will set the wave record input to 'what you hear'. So on those cards, you could just set that setting and then record audio.
edit:
I should add that if your driver doesn't have built in support for recording what it's outputing, then you will need to write or purchase a driver that does. I've heard that TotalRecorder can do this.

Categories

Resources