Page 1 of 1

Wrong data with com port redirection

Posted: Fri Jan 20, 2017 11:15 am
by widi
Hi there,

just found this tool and would love to work with it.

I use it to connect to our Windows RD Server and it is pretty easy to set up. Just one thing won't work.
We have a barcode-scanner that must be connected via RS232 (the Windows-Software requires a COM-Port). The port settings are 9600, 7bit, 2-stopbits, parity-even. I use a Serial-USB converter to connect the scanner an in my config.txt I have
serial=COM5(usb)
I see the redirected port on the Windows side, I can open it, but when I monitor the data is wrong. It seems, the first bit of each byte is a "1" when it should be a "0".
We have all of this running with a Windows client and a Linux client both connected via RDP without any problem. I wrote a small python script to monitor the port on the RPi unter Raspbian and the data is correct.

So, the hardware works, the port redirection works, it seems the problem is within WTware (tried 5.4.68 and 5.4.62).

Do you have any idea what I can do to fix this?

Greetings,
Bjoern

Re: Wrong data with com port redirection

Posted: Fri Jan 20, 2017 5:57 pm
by aka
http://wtware.com/docs5/logs.html
Show me the log after you receive a few wrong bytes.
BTW, why 7bit, not 8bit? 8-N-1 is usually default, perhaps it will work right with your scanner?

Re: Wrong data with com port redirection

Posted: Mon Jan 23, 2017 11:04 am
by widi
Thanks for the reply. I guess these are the interesting lines:

08-32-31-079| [rdpdr-serial 0] [ 1584.826710] Line control mode still unsupported, sorry.
08-32-31-159| [rdpdr-serial 0] [ 1584.826829] Please send this log to support@wtware.com.
08-32-31-159| [rdpdr-serial 0] [ 1584.826894] WordLength 7 Parity 2 StopBits 2.

When I change the settings to 8-N-1 I get no log entries, but I receive exactly the same (wrong) data. Unfortunately the software we use requires 7-E-2 and the scanner is configured to these settings, so there's nothing I can do about that.

I attached the complete log in case you might need it.

Re: Wrong data with com port redirection

Posted: Wed Jan 25, 2017 1:49 pm
by aka
Please try this:

http://pxe.ru/files/testing/201701251447.zip

And send me a log.

Re: Wrong data with com port redirection

Posted: Fri Jan 27, 2017 11:29 am
by widi
Wow, it works. Thank you very much!

Here's the log.

Re: Wrong data with com port redirection

Posted: Sat Feb 04, 2017 4:29 pm
by aka
Try wtware 5.4.70. It should work too, and it will not overfill log with debug dumps.

Re: Wrong data with com port redirection

Posted: Tue Jun 20, 2017 7:30 pm
by netadmindave
I hate pulling a topic from the dead, but...

I am getting a similar issue.

[rdpdr-serial 0] [ 16.800405] Line control mode still unsupported, sorry.
[rdpdr-serial 0] [ 16.800571] Please send this log to support@wtware.com.
[rdpdr-serial 0] [ 16.800656] WordLength 8 Parity 1 StopBits 2.

The link does not work posted above from aka.

The device is an embroidery machine communicating over serial

I am using 5.4.96

Re: Wrong data with com port redirection

Posted: Wed Jul 12, 2017 7:45 pm
by aka
Try 5.4.98.