-- Bug description --
Hello,
I try to use the Serialtoolbox of Enrico Segre
(http://www.weizmann.ac.il/home/fesegre/scistuff/Serial.tgz)
it's the only toolbox that run under SciLab 5.x.This toolbox is written in TCL. I can send some data via RS232
to a nother PC, but the second PC receive some different data and I can not send and receive a ascii(0)!(ascii(0) could be a problem of the toolbox)
I think it's a problem of TCL "fconfigure -translation binary".
So the translation works false.
Look at example. I hope that is the right site to post that problem and hope you can help me to avoid that 'bug', if not please send me a link to a right forum or TCL bug tracking site.
-- Scilab error message --
just for sending ascii(0)
st=writeserial(h,ascii(0));
!--error 999
TCL_EvalStr, at line 1
missing close-brace
while executing
"set writeresult [catch {puts -nonewline file9d11ac8 {"
at line 11 of function writeserial called by :
writeserial(h,ascii(0))
-- How to reproduce the bug --
(you need the serialtoolbox to reproduce the "bug")
for example:
kmd=[109 112 102 205 204 140 63 205 204 140 63 205 204 140 63 205 204 140 63...
205 204 140 63 205 204 140 63 16 3];
hnd=openserial(5,"19200,n,8,1","binary");
k = ascii(kmd)
k = mpfÍÌŒ?ÍÌŒ?ÍÌŒ?ÍÌŒ?ÍÌŒ?ÍÌŒ?
st=writeserial(hnd,k)
read data on second PC:
r=readserial(hnd2)
r=mpfÍ??Í??Í??Í??Í??Í??
r=ascii(r)
r=109 112 102 205 12 --- 63 205 12 --- 63 205 12 --- 63 205 12 --- 63 205 12
--- 63 205 12 --- 63 16 3
(--- are bissing bytes and 12 is false too)
I can not use that received data, cause it's faulty.