Page 1 of 1

Corrupt CTX35 output with ctx-perl

Posted: Sat Jan 16, 2010 4:02 pm
by bbartels
I started to create some perl scripts to control my Xanura modules, but I keep getting crappy output from my CTX35. I use xpl-perl (xpl-ctx35). Below an example of the output:

./xpl-ctx35 /dev/ttyS0 -v -B 19200
Listening on 192.168.20.232:36893
Sending on 192.168.20.255
Received: $<2800HM��$<2���HM��$<2���HM��$<28��HM��$<2���HM��$<2���HM��$<����HM��$<28��HM��$<2���HM�#
Checksum is: $<2800HM��$<2���HM��$<2���HM��$<28��HM��$<2���HM��$<2���HM��$<����HM��$<28��HM��$<2���HM�#
Illegal hexadecimal digit 'M' ignored at ./xpl-ctx35 line 269.
Received: $<�����4B#
Checksum is: $<�����4B#
Received: $<28��!4B�$<28�0!4B�$<2800!4��$<280�HM��$<280�HM��$<2���HM��$<2���HM��$<2���HM��$<28�HM��$<2��HM��$<2���HM��$<280�HM�#
Checksum is: $<28��!4B�$<28�0!4B�$<2800!4��$<280�HM��$<280�HM��$<2���HM��$<2���HM��$<2���HM��$<28�HM��$<2��HM��$<2���HM��$<280�HM�#
Illegal hexadecimal digit 'M' ignored at ./xpl-ctx35 line 269.

Any ideas how to solve this?

Re: Corrupt CTX35 output with ctx-perl

Posted: Sat Jan 16, 2010 6:40 pm
by Lempens
Do you have the bitrate settings correct ?

Re: Corrupt CTX35 output with ctx-perl

Posted: Sat Jan 16, 2010 8:16 pm
by bbartels
I both tried 9600 and 19200, same result

Re: Corrupt CTX35 output with ctx-perl

Posted: Sat Jan 16, 2010 8:23 pm
by bbartels
On 19200 I see both RX and TX LEDs blinking and I see a (crappy) response in my terminal window. If I switch to 9600 I only see the RX LED blinking and don't get a response at all

Re: Corrupt CTX35 output with ctx-perl

Posted: Sat Jan 16, 2010 11:01 pm
by Lempens
And when you use HyperTerminal ? What response do you get then ?

Re: Corrupt CTX35 output with ctx-perl

Posted: Sun Jan 17, 2010 4:29 am
by bbartels
bbartels wrote: ./xpl-ctx35 /dev/ttyS0 -v -B 19200
No HyperTerm on Linux....

Re: Corrupt CTX35 output with ctx-perl

Posted: Sun Jan 17, 2010 6:38 pm
by Rene
Use minicom instead.

Re: Corrupt CTX35 output with ctx-perl

Posted: Mon Jan 18, 2010 2:59 am
by bbartels
Tried that ofcourse, no output at all. Also tried the test software from xanura to test the CTX35 and it responses on a Windows host. With the test software all works as it should be, so the CTX35 is ok.