![]() When COM ports redirection enabled in mstsc.exe all works fine both of with.NET and with WinAPI.If it will be helpfull here is exception from.NET SerialPort class when trying to open it:System.ArgumentException: The given port name is invalid. I've typed 4 symbols: 'q', 'a', 'z' and 'w' and here is what I've got in logs (download to view difference):And see also at picture where difference is shown by Putty (first screen is for mstsc and the second one is for FreeRDP, note also that there are 12x spaces after each phrase):It seems that with FreeRDP wasn't sended CR symbol but LF was sended twice.Next strange thing is that this redirected port can't be contacted with.NET or Delphi classes it can speak only native WinAPI functions (because Putty and are able to contact this port). And it's working very strange.First of all, I made a test serial hard device that can receive data and send back confirmation about it. Hi all,I'm trying to redirect /dev/ttyUSB0 device as COM3 to my Remote Desktop session. How to test.Connect an usb2serial converter (no need to connect a device).run xfreerdp /serial:COM10,/dev/ttyUSB0 /u:demo1 /p:qw /v:servername.inside the rdp session open a cmd and verify that the port got mapped to COM10 using the change port /query command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |