![]() ![]() Private void OnTimedEvent(object sender, ElapsedEventArgs e) Private delegate void updateDelegate(string txt) Private static SerialPort currentPort = new SerialPort() and I have next result using System.IO.Ports I just newbie, and I was having task - recieve data from BarCode scaner by serial port. When I create a virtual Port (using 3rd party app) the code runs BUT I still don't get the data from the Scanner. Show all the incoming data in the port's buffer Private void port_DataReceived(object sender, Enter an application loop to keep this thread alive Attach a method to be called when there Private SerialPort port = new SerialPort("com1", 9600, Parity.None, 8, StopBits.One) Create the serial port with basic settings wondered if anyone else has experienced the same issue. Windows installed the driver when it was first plugged in, there wasn't a disk\driver supplied. I have scanned the set-up codes from the manual that set it as a Serial device, that seems to configure the scanner correctly (it stops sending scanned codes to text-box\text editor) but because there is no COM port, I cannot capture the data when I scan a barcode. So, I'm trying to use my Barcode Scanner as a 'Serial' device as opposed to a Keyboard emulator but it is not creating the com port. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |