[Scilab-users] Open comport in C macro
Piotr Głębski
sasza7 at gmail.com
Tue Nov 26 01:21:16 CET 2013
I try to develop some hardware which I want to connect to Xcos in Linux
(simply DAQ).
Right now i write macro making a block in Xcos. I can put parameters to my
C library and get date from (loopback). Right now i try to connect to
usb/rs device using this library: http://www.teuniz.net/RS-232/
And get this error:
!Oups. A fatal error has been detected by Scilab. !
! !
!Your instance will probably crash soon. !
! !
!Please report a bug on http://bugzilla.scilab.org/ !
! !
!with: !
! !
!* a sample code which reproduces the issue !
! !
!* the result of [a, b] = getdebuginfo() !
! !
!* the following information: !
! !
![debian:10408] Signal: Segmentation fault (11) !
! !
![debian:10408] Signal code: Invalid permissions (2) !
! !
![debian:10408] Failing at address: 0x7f36042c1d10 !
! !
! !
! !
!Stos wywołań: !
! !
! 1: 0x7107eb < > (/opt/scilab-5.4.1/t!
! hirdparty/java//lib/amd64/server/libjvm.so) !
! !
! 2: 0x714350 <JVM_handle_linux_signal> (/opt/scilab-5.4.1/t!
! hirdparty/java//lib/amd64/server/libjvm.so) !
! !
! 3: 0x7106fe < > (/opt/scilab-5.4.1/t!
! hirdparty/java//lib/amd64/server/libjvm.so) !
! !
! 4: 0xf030 < > (/lib/x86_64-linux-g!
! nu/libpthread.so.0) !
! !
! 5: 0x190b <OpenComport> (/home/sasza/scilab/!
! LewitronInC3/src/c/liblewitron.so) !
! !
! 6: 0x139a <StartTransmision> (/home/sasza/scilab/!
! LewitronInC3/src/c/liblewitron.so) !
! !
! 7: 0x1235 <lewitron> (/home/sasza/scilab/!
! LewitronInC3/src/c/liblewitron.so) !
! !
! 8: 0x2852c <callf> (/opt/scilab-5.4.1/l!
! ib/scilab/libsciscicos.so) !
! !
! 9: 0x31919 <scicos_> (/opt/scilab-5.4.1/l!
! ib/scilab/libsciscicos.so) !
Becose i devide program into parts i can use the same source in standalone
application - it's work perfectly.
The problem is probably permission to /dev/ttyUSB. I don't know exactly the
structure of scilab, but i think that the java virtual machine not allowed
to open comport. So the question is: how to workaround it? (for dirty
solution i try to exectue evrything as root, but it has not effect :/ )
Any ideas?
Thanks for any replays
Piotr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20131126/dbe0c54e/attachment.htm>
More information about the users
mailing list