<solved> Connecting IB-Com to Rocrail server on Linux Ubuntu

Uhlenbrock new generation CS-Line

<solved> Connecting IB-Com to Rocrail server on Linux Ubuntu

Postby jchavel » 26.08.2015, 21:14

Hello,

I have installed Rocrail on my PC, running Linux Mint 17.2 (Ubuntu).
I could open Rocrail and Rocview with the virtual command station.

I have tried to set up my IB-Com following:
http://wiki.rocrail.net/doku.php?id=intellibox-basic-en

However, after restart, I now have the following error message in Rocrail:
Code: Select all
ulniread OSerial 0222 open rc=0 read=0 write=0 [0] [OK]
ulniread OSerial 0227 blocking[1] directIO[0]
ulniread OSerial 0544 ioctl FIONREAD error [5] [I/O error]
unliread ulni 0139 device error

This message is repeating infinitely, and Rocview is not starting.

For information, here is the content of my rocrail.ini
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<rocrail resetspfx="false" planfile="plan.xml" occupancy="occ.xml" locs="" backup="true" maxbackup="100" backuppath="backup" keypath="lic.dat" libpath="." imgpath="images" iconpath="icons" issuepath="issues" soundpath="sounds" soundplayer="" soundplayerlocation="false" xmlscriptpath="." ptiid="" lciid="" dpiid="" sviid="" sciid="" fsutf8="true" scsensor="" createmodplan="false" aboxhome="" poweroffonexit="true" poweronatinit="false" shutdownonexit="false" nodevcheck="false">
  <ctrl sgevents="false" swtimeout="250" minbklc="20" ignevt="5" initfieldpause="500" seed="4711" savepostime="10" secondnextblock="false" initfieldpower="true" enableswfb="true" eventtimeout="0" signalreset="0" routeswtime="10" disablerouteVreduce="false" greenaspect="false" semaphorewait="1" signalwait="0" locostartgap="0" blockinitpause="0" stopnonecommuter="false" syncroutes="false" syncroutetimeout="2500" timedsensors="false" enableanalyzer="true" ebreakforceunlock="false" defaspect="red" skipsetsw="false" skipsetsg="false" usebicom="true" useident="true" poweroffonidentmismatch="false" poweroffatghost="true" ebreakatghost="false" keepghost="false" disablesteal="false" poweroffatreset="true" allowzerothrottleid="false" releaseonidle="false" closeonghost="false" closenoevents="false" selectshortestblock="false" restoreschedule="true" actiontimer60="true" createguestonbidi="false" usebididir="false" disableblockwait4gomanual="false" stopatin4gomanual="true" v0atpoweron="false" useonlyfirstident="true" userandomrate="false" virtualtimer="1" redirecttomaster="true" weather="true" v0onebreak="false"/>
  <trace rfile="rocrail" protpath="" nr="10" size="100" debug="false" info="true" calc="true" byte="false" automatic="false" monitor="true" listen2all="false"/>
  <anaopt setRouteId="true" cleanRouteId="true" setBlockId="true" resetBlockId="true" addSignalBlockAssignment="false" resetSignalBlockAssignment="false" addFeedbackBlockAssignment="false" resetFeedbackBlockAssignment="false" basicCheck="true" basicClean="false" blockCheck="true" blockClean="false" routeCheck="true" routeClean="false" actionCheck="true" actionClean="false"/>
  <clock hour="21" minute="50" divider="1" update="1" stopclockatpoweroff="true"/>
  <tcp port="8051" maxcon="10" controlcode="" slavecode="" onlyfirstmaster="false"/>
  <devices serial="/dev/ttyUSB0"/>
  <srcpcon port="4303" active="false" device=""/>
  <SnmpService port="161" active="false" traphost="localhost" trapport="0"/>
  <r2rnet id="" addr="224.0.0.1" port="1234" routes="netroutes.xml" enable="false"/>
  <digint iid="IB-Com" lib="loconet" device="com1" host="" port="0" localip="" swtime="250" bps="115200" flow="cts" sublib="ulni" fbmod="0" fastclock="true" restricted="false" stress="false" libpath="/opt/rocrail">
    <loconet purgetime="200" reportaddr="1016" usefc="true" syncfc="false" ignorepowercmds="false" GBM16xn="false" slotping="true" resetlissy="false" swack="false" swretry="10" swsleep="50" cmdstn="ibcom">
      <options store="false" opsw="0000000000000000000000000000000000000000000000000000000000000000"/>
      <slotserver active="false" lconly="true" purge="true" stopatpurge="false" iid=""/>
    </loconet>
  </digint>
  <digint lib="virtual" iid="vcs-1" restricted="false" stress="false" libpath="/opt/rocrail"/>
  <http port="0" refresh="0">
    <webclient port="0" webpath="" svgpath1="." svgpath2="." svgpath3="." svgpath4="." svgpath5="."/>
  </http>
</rocrail>


Can someone please help ?
Last edited by jchavel on 27.08.2015, 16:13, edited 1 time in total.
jchavel
 

Re: Connecting IB-Com to Rocrail server on Linux Ubuntu

Postby LDG » 26.08.2015, 21:58

Hi,

try to use device "/dev/ttyUSB0" instead of "com1".

If this does not fix your problem: What is the ouput of the command
Code: Select all
id
?
If "dialout" is not listed then
Code: Select all
sudo usermod -a -G dialout ${USER}
, logoff and relogin to the system and check again with "id" for group membership "dialout".

Regards,
Lothar
LDG
Site Admin
 

Re: Connecting IB-Com to Rocrail server on Linux Ubuntu

Postby jchavel » 27.08.2015, 16:12

LDG wrote:Hi,

try to use device "/dev/ttyUSB0" instead of "com1".

If this does not fix your problem: What is the ouput of the command
Code: Select all
id
?
If "dialout" is not listed then
Code: Select all
sudo usermod -a -G dialout ${USER}
, logoff and relogin to the system and check again with "id" for group membership "dialout".

Regards,
Lothar


Hello Lothar,

thank you for your quick response. I replaced "com1" by "/dev/ttyUSB0", and this solved the problem. :D
I was already in the dialout group. :wink:

Vielen Dank !
jchavel
 


Return to IB-Basic IB-Com IB2