user1011394
user1011394

Reputation: 1666

SerialPort COM Port over RDP

I try to connect to an USB device which is accessible on Virtual COM Port X. Everything works fine (local). Now I'm using a RDP (remote desktop) session and try to connect to my device I don't get any response. RDP COM Port redirecting is activated. If I run:

SerialPort.GetPortNames()

on my RDP Session I will get the right port (in my case COM Port 9). Then i try to connect:

_port.Open();
_port.Write(buffer, offset, count);

I can see that my device (connected on my none RDP Session host) retreive some bytes (LED are blinking) but I never get any response/results.

If I try it local, everything works fine.

What I'm doing wrong?

Upvotes: 3

Views: 2407

Answers (1)

gammay
gammay

Reputation: 6215

Can you confirm if you are connecting to the device on the target PC not from the PC you are opening the remote desktop from?

Local Setup: Target_PC -> USB_Device = Works

Remote Setup: Other_PC -RDP-> Target_PC -> USB_Device = Should work

Upvotes: 3

Related Questions