title: Using USB ports for reading & writing data in .net core
body: <p>Do you know a way that how can I communicate USB ports in .net core 2.0? I tried to use System.IO.Ports.SerialPort but it did not worked for me. I tired to get ports but it returned nothing. Could you please help me about that? I am trying to send some print commands to a pos printer(EPSON TM-T88V). This printer supports both serial and usb port. I did an implementation for EPSON TM-M30 (wifi printer) and it is working properly and I want to use same commandset for the other printer but it has just usb and serial port, I cannot communicate with that printer(TM-T88V) over ethernet or wifi. I could not share my all implementation for the wifi printer but as I mentioned I just send simple print command like below over socket and I want to do same thing both over usb and serial ports.</p>
  
  <pre><code>Socket clientSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
              clientSock.NoDelay = true;
              IPAddress ip = IPAddress.Parse("x.x.x.x");
              IPEndPoint remoteEP = new IPEndPoint(ip, 9100);
              clientSock.Connect(remoteEP);
              var enc = Encoding.ASCII;
              // Send Lines
              byte[] bEsc = new byte[4];
              bEsc[0] = 0x0A;
          bEsc[1] = 0x0A;
          bEsc[2] = 0x0A;
          bEsc[3] = 0x0A;
          clientSock.Send(bEsc);
  </code></pre>