Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access USB or Serial in C# [closed]

How do I send and receive via USB in C#? And what about Serial and LPT?

like image 943
Arlen Beiler Avatar asked Apr 07 '10 17:04

Arlen Beiler


People also ask

How do I access my serial port?

Click the Client Device tab. Select the Override Parent's Settings or Override Global Settings check box. To enable access to serial ports, select the Enabled check box. To disable access to serial ports, deselect the Enabled check box.

Is USB same as serial?

USB, a serial protocol that also adheres to the RS-232 standard, was introduced as a more advanced and standardized way for devices to communicate through handshaking, device detection, auto speed negotiation, etc.

Is serial or USB faster?

USB allows data to travel on the average of ten times the speed of the normal parallel port. It is also faster than a serial port. The average serial port transfer rate is 150 kbps; the USB port is up to 12 Mbps. USB 2 is forty times faster, with a maximum transfer rate of 480 Mbps.


2 Answers

Example of simple usb app here.

Use the serial port class, found here for serial port.

Decent example of LPT here.

like image 181
Gabe Avatar answered Nov 02 '22 22:11

Gabe


For accessing USB ports you can use LibUsbDotNet library

like image 44
Giorgi Avatar answered Nov 02 '22 23:11

Giorgi