Dear all,
I had been using serial communication for my device to talk to the PC. But these days, I have decided to replace the serial com with usb and I have bought a serial to usb converter for that. But I don't actually know how to interface that converter with my C# code. Previously I worked with C# code for interfacing with HID class device, but the present device I am using seems not to be configured as HID. I tried with it's product and vendor ID to communicate with it from my previous hid software but failed.
Please provide me some suggestions regarding this. If you have any code samples or link, please share
with Thanks....:)
Loading
Scott LyslePosted Dec 20, 2008, 12:20 AM
You can still use the serial port control. Configure the properties for the port, open it, and read the data into a string on a timed interval then parse the string to get the information you need from it.
///{
if (serialPort1.IsOpen){
string data = serialPort1.ReadExisting();