How can we receive Data from Comport.

Discussion in 'Requests' started by zakirhossain_diu, Feb 21, 2020.

    

  1. Dear experts,
    How can we receive data from the serial port? Creating dll required other-programming language expertise. any advice highly expected. any sample dll source.

    Thank you
     


  2. teja varma

    teja varma Active Member


    you can create a DLL with c#.net and Visual Studio IDE

    c# has a SerialPort Class which is used to Open, Read and Write Data to COM Ports

    Steps:
    -> Create an Object of Class SerialPort
    -> Open SerialPort with open() Method
    -> Add an event handler for Reading Port Data When data is available

    here is the example of implementing SerialPort Class:
    https://www.codeproject.com/Questions/1207905/Reading-serial-port-in-Csharp
     
    zakirhossain_diu likes this.


Share This Page