I want to read from my STM32 card using custom HID over USB to get the C# data transfer rate close to ideal.
I don't have a problem with the codes I wrote on the STM32 side. Data comes in at a very good speed.
However, I have a problem with coding on the C# side. As far as I understand there are no Custom HID functions in internal libraries in C#. I looked at libraries from Nuget and Github. The libraries I'm looking at are either missing or I haven't been able to. Has anyone worked on this before? I'm open to your ideas. Thanks already for your help.
Libraries i tried
LibUsbDotNet
Device.Net/HID.Net/Usb.Net
Reading data with Custom HID in C#
Related
Being a novice in Python and C#, and having reached a point with no significant progress, I'd like to ask for some suggestions.
Here is the issue I find:
I am trying to read the data from a Digital Multimeter through its C# library and targeting to export it into Python (being the only supported language of the target application).
The meter and communication interface libraries come from Lcrrsearch.
Referring to the instructions provided, I have run the C# project file and have succeeded in getting the readings (through FTD2XX_NET.dll, LCR_CIL.dll).
However, separately, when trying to use the .dll files in Python, I have failed to do so.
The solution paths I sought after were:
Calling the LCR_CIL.dll in Python via Ctypes
Trying IronPython via Visual Studio for .NET
Using FTDI library to read the data from memory
Therefore, I would like to have some hints or ideas as to which path is the most straightforward one to import the data in Python and/or any similar example you could propose I would gladly welcome.
Now I am working in the process of Insert and Update the comment for the pdf file using c# code. I want to Know the any possible way to insert a comment inside the pdf file. Anyone Know about this, Please reply and some reference for this process.
Microsoft does have very limited support for PDF in operating system APIs and it has come only recently in Windows 8 for modern applications (now called UWP) and that support doesn't go as far as updating comments.
So you need to use the 3rd party library. As far as I can tell SharpPDF is the only free library worth something, but I failed to open many PDFs in it so I can't recommend it. So I think you would need to search for some commercial library, I am aware of several of them that can do the job (e.g XfiniumPDF, iTextSharp etc) and you'll get the documentation when you license them.
Using Visual Basic, or C# - I would like to write an audio visualization program to use Fast Fourier transform - once I've got the audio stream, I can complete the program myself without help. However, I cannot find a way to input the entirety of the Windows computer's audio through the visualizer.
Does anyone know a way to do this, perhaps using the IAudioClient Interface?
Have a look at this post. It is using CSCore. Maybe you can use this sample for getting your audio stream.
This library has also a inbuilt visualisation sample on its github repo -- please consider downloading and using it.
In .NET 3.5, System.Speech.Recognition SpeechRecognitionEngine.SetInputToAudioStream Method doesn't seem to support real-time input.
I am developing a windows application and I want to provide real-time input stream over the network. How could I accomplish this? Could someone help me with a work-around?
Thank you.
Can you do something where you buffer 5 second samples and send that in as a stream rather than the live stream direct from the network? The problem with that approach is you could break mid word, and I'm not sure how that is dealt with programmatically.
According to that community post, if the internal wrapper doesn't support the required interface, there isn't much you can do except keep feeding it samples. You could write your own custom input stream as well. What happens when you just feed the engine the network stream directly?
I would like to emulate video input from a webcam for testing purposes.
So I need to be able to emulate a software video capture device in Windows and be able to dynamically generate its output.
How can I achieve this?
I would prefer a solution in C# or C++.
You can use a Virtual Webcam (old link, but there are others) it will take a video/images file and will display it in a webcam device. Your system will think that its a normal device.
Then you will need to create something that will generate the video/images, if you need static image then its pretty easy to generate a bmp.
Old (no selected answer) question.... actually probably one of the oldest I've ever seen... but I came across this looking for an answer myself, I remembered the day when "Virtual Webcam" still existed (now just a chinese ad site).
Fear not! There are new sources to solve your decade long quest:
First of all, checkout OBS, open source does a LOT with video streams:
https://obsproject.com/
Second, checkout this virtual webcam plugin for it. Does exactly what you're talking about, and does use #qbeuek's suggestion of DirectDraw:
https://obsproject.com/forum/resources/obs-virtualcam.949/
It is written in C++, so grabbing the bits you need and rewriting to C# is left as an exercise to the reader, but the capability is there.
As far as I know, there is a set of COM interfaces that govern the recording and playback of audio and video in Windows. It used to be called DirectShow, but maybe in the meantime the name has been changed. Those interfaces are used to construct a graph of audio and video filters, to encode / decode the data stream.
The way to go:
- read about the Microsoft DirectShow API,
- implement a COM object that implements the video source interface,