Hi List, I have followed http://blogs.oracle.com/ThinkThin/entry/sun_ray_serial_port_mapping to setup COM redirection for my sunray for some scanning devices. In the beginning it looked niced and everything worked, but then we run quickly into troubles. For some reason I don't know, when the scanner sends ASCII 255, it is not received on the windows uttsc side. So these are the settings.
bash-3.00# stty -a < /tmp/SUNWut/units/IEEE802.0021288ffdad/dev/term/a speed 38400 baud; rows = 0; columns = 0; ypixels = 0; xpixels = 0; csdata ? eucw 1:0:0:0, scrw 1:0:0:0 min = 4; time = 2; intr = ^c; quit = ^\; erase = ^?; kill = ^u; eof = ^d; eol = ^b; eol2 = <undef>; swtch = <undef>; start = ^q; stop = ^s; susp = ^z; dsusp = ^y; rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v; -parenb -parodd cs8 cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -iuclc -ixon -ixany -ixoff imaxbel -isig -icanon -xcase -echo -echoe echok -echonl -noflsh -tostop echoctl -echoprt echoke -defecho -flusho -pendin -iexten -opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3 based on a truss on the utseriald the character FF is sent, but where get it lost on the way to the windows box ? bash-3.00# ps -ef | grep serial root 1579 1 0 Oct 24 ? 0:00 /opt/SUNWut/lib/utseriald -r root 1604 1579 0 Oct 24 ? 0:01 /opt/SUNWut/lib/utseriald -r bash-3.00# truss -o /tmp/serial.txt -p 1604 ... do your work with the scanner until we hit the problem ... in this case I used a test program that sends all characters from 0 .. 255 Strg-C ... cancel truss bash-3.00# grep FF /tmp/serial.txt /109: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF] /108: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF] /110: schedctl() = 0xFEFF3020 /111: schedctl() = 0xFEFF3030 /110: read(11, "F8F9FAFBFCFDFEFF", 8) = 8 /110: write(8, "F8F9FAFBFCFDFEFF", 8) = 8 /111: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF] /110: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF] so here we see the FF but is not received on the windows side my test program says 255 characters sent, but only 254 received. Running the same program on plain Windows or RDP to another Windows Box and run the test program there works without issue with an usb-to-serial adapter. kind regards, thomas Oesterreichische Nationalbank IT-Operations _______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
