Connection from C # to the digital scale

I am trying to figure out a method of connecting from C # code to a digital scale. Of particular weight is the Ohaus SP202 Digital Scale, which comes with a USB connection. I would like to read the weight measured on a scale programmatically. I don't have a scale yet, I'm just doing research in front of my hand.

Has anyone done this before? I do research on the Internet and have not found anything worth mentioning.

+3
source share
3 answers

USB communication is widely used in one of three ways.

  • Proprietary software communicates with hardware through its own driver.

  • (, FTDI). , Virtual Comm Port . , System.IO.Ports.SerialPort, .

  • HID- HID- OS. .NET HID Windows, -, HID. HID , , .

2 3 , . , , , , , .

, , 2 ( http://ohaus.com/support/forum_messages.asp?topicid=584), , "P\r\n", , ( http://ohaus.com/support/forum_messages.asp?topicid=802.

+5

, . , USB Com.

API , , System.IO.Ports.SerialPort, .

+1

I don't know any details on this scale, but I did some USB things.

Most likely, it uses a usb interrupt to transmit data. All usb mice also use interrupt, so if you can understand how to read a mouse signal (using the HID api), then it should be exactly the same as the scale, except that the data format returned will be completely different.

running on ftw

0
source

All Articles