Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • scilab scilab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2,562
    • Issues 2,562
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 47
    • Merge requests 47
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • scilabscilab
  • scilabscilab
  • Issues
  • #3829
Closed
Open
Issue created Dec 06, 2008 by scilab bot@scilabbot💬Owner

Hello, I try to use the Serialtoolbox of Enrico Segre (http://www.weizmann.

Reported by Artur

Originally assigned to Enrico SEGRE

-- 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.
Assignee
Assign to
Time tracking