Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have a device that measures temperature and it is connected through usb to my pc, now i want to display the temperature in device display i want to display in my windows form, how can i achieve this task, i am completely new to this type of task

1. connected to usb port successively
2. i opened the port.

but i don't know how to read data...

please help me....




thx in advance
Posted
Updated 24-Jan-14 20:27pm
v3
Comments
Aydin Homay 25-Jan-14 1:59am    
Hi please tell me what is your programming platform? and which one programming language is your target language ?
Ravi Sargam 25-Jan-14 2:09am    
c#
Aydin Homay 25-Jan-14 3:00am    
Your device has a SDK ?
Ravi Sargam 25-Jan-14 3:08am    
no

First, you have to know how this device exposes itself to your code. Is it through a COM (serial) port or what? Without knowing that, it's IMPOSSIBLE to talk to the device.

Consult the documentation on the device and/or the SDK for it, if there is one.
 
Share this answer
 
Comments
Ravi Sargam 25-Jan-14 1:58am    
it is through COM port
Dave Kreskowiak 25-Jan-14 11:30am    
OK, that's easy enough. There are tons of examples on the web for communicating through a serial port with .NET. All you have to do is Google for "C# Serial Port tutorial".

That solves one part of the problem. The other part is what communication parameters do the device support and what commands does it respond to. AGAIN, you have to have documentation on the device that spells this out. There is no standard to go by for this. Every device is different.
Just read this,

C# USB HID Interface[^]

This should hope fully help you and from here just progress fetching data from it, i am sure this will help you build your logic on USB.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900