[SOLVED] FREDI dispatch fails: error on mutex trywait

Moderator: Moderators

[SOLVED] FREDI dispatch fails: error on mutex trywait

Postby skippa » 16.10.2013, 19:37

Hi folks,

I used to run rocrail with DDX, an MGV locobuffer fine. Dispatching Locos to a Fredi also worked ok.

After a longer pause (Fredis undispatched), I wanted to control the layout with a Fredi again.
The dispatch command seemed to work ok but after putting Fredi into dispatch mode (red led on), it turned to green leds very short and then back to red. Dispatch did not work. Server gives "error on mutex trywait" message in red.

All other functions including loconet feedback operational as normal.
Trace attached. Tried several Fred/Loco combinations.

Any ideas?
Jens



20131015.224052.422 r9999I cmdr0A65 OLoc 2733 processing cmd="dispatch" for [Bubikopf]
20131015.224052.423 r9999I cmdr0A65 OLocoNet 1632 Trying to get slot for loco addr=64.
20131015.224052.427 r9999I cmdr0A65 OLocoNet 0995 posting [BF004000] to slotServer
20131015.224052.437 r9999I slotsrvr OLocoNet 0115 message = [BF004000] len=8
20131015.224052.437 r9999I slotsrvr OLocoNet 0514 slot# 1 for loco address 64
20131015.224052.437 r9999I slotsrvr OLocoNet 0360 slot# 1 inuse=0
20131015.224052.438 r9999I slotsrvr OLocoNet 0414 slot# 1 dir=1 f0=0
20131015.224052.478 r9999c cmdr0A65 lnmon 0288 Request slot for loco address 64
20131015.224052.478 r9999c cmdr0A65 lnmon 0288 Request slot for loco address 64
20131015.224052.478 r9999I cmdr0A65 OLocoNet 0995 posting [BF004000] to slotServer
20131015.224052.480 r9999I slotsrvr OLocoNet 0115 message = [BF004000] len=8
20131015.224052.481 r9999I slotsrvr OLocoNet 0333 slot# 1 has address 64
20131015.224052.481 r9999I slotsrvr OLocoNet 0514 slot# 1 for loco address 64
20131015.224052.481 r9999I slotsrvr OLocoNet 0360 slot# 1 inuse=0
20131015.224052.481 r9999I slotsrvr OLocoNet 0414 slot# 1 dir=1 f0=0
20131015.224052.528 r9999c cmdr0A65 lnmon 1326 Read slot=1 addr=64, Not Consisted, free, 28, dir=fwd speed=0 fun=off,off,off,off,off,off,off,off,off
20131015.224052.529 r9999c cmdr0A65 lnmon 1346 track=OFF power=DOWN PT=avail
20131015.224052.529 r9999I cmdr0A65 OLocoNet 1638 Slot#1 for loco addr=64.
20131015.224052.581 r9999c cmdr0A65 lnmon 1326 Read slot=1 addr=64, Not Consisted, free, 28, dir=fwd speed=0 fun=off,off,off,off,off,off,off,off,off
20131015.224052.582 r9999c cmdr0A65 lnmon 1346 track=OFF power=DOWN PT=avail
20131015.224052.582 r9999I cmdr0A65 OLocoNet 1653 Slot# 1 move was accepted.
20131015.224052.582 r9999I cmdr0A65 OLocoNet 1542 decoder type for [Bubikopf] does not match
20131015.224052.582 r9999I cmdr0A65 OLocoNet 1591 setting decoder type for [Bubikopf][0x03] to 128 step DCC
20131015.224052.587 r9999W cmdr0A65 OLocoNet 2073 Restricted functionality due to missing valid support key; Loco command ignored for Bubikopf.
20131015.224052.596 r9999c lnreader lnmon 0368 Set status of slot 1 to IN_USE
20131015.224052.596 r9999I lnreader OLocoNet 0995 posting [BA010145] to slotServer
20131015.224052.597 r9999c lnreader lnmon 0433 Write slot 1 with status value 3 (0x03)
20131015.224052.597 r9999I lnreader OLocoNet 0995 posting [B5010348] to slotServer
20131015.224052.597 r9999I slotsrvr OLocoNet 0115 message = [BA010145] len=8
20131015.224052.598 r9999I slotsrvr OLocoNet 0538 move slots 1, 1 (dps=0)
20131015.224052.598 r9999I slotsrvr OLocoNet 0360 slot# 1 inuse=1
20131015.224052.598 r9999I slotsrvr OLocoNet 0414 slot# 1 dir=1 f0=0
20131015.224052.620 r9999I slotsrvr OLocoNet 0115 message = [B5010348] len=8
20131015.224052.621 r9999I slotsrvr OLocoNet 0577 set slot# 1 status
20131015.224052.621 r9999I slotsrvr OLocoNet 0399 set stat1byte for slot# 1 format=0 steps=0 inuse=0
20131015.224052.621 r9999I slotsrvr OLocoNet 0270 slot# 1 format=0 steps=0 speed=0(0) dir=fwd inuse=0 throttleID=181146076
20131015.224052.621 r9999I slotsrvr ODDX 0149 translating: lc
20131015.224052.622 r9999c slotsrvr ODDX 0341 lc=64 prot=DCCS/127 spd=0 dir=forward lights=off f1=off f2=off f3=off f4=off f5=off f6=off f7=off f8=off
20131015.224052.622 r9999c slotsrvr nmra 0336 function group 0
20131015.224052.627 r9999c lnreader lnmon 1326 Read slot=1 addr=64, Not Consisted, in use, 28, dir=fwd speed=0 fun=off,off,off,off,off,off,off,off,off
20131015.224052.627 r9999c lnreader lnmon 1346 track=OFF power=DOWN PT=avail
20131015.224052.628 r9999c lnreader OLocoNet 1352 slot=1 addr=64 throttleid=0
20131015.224057.600 r9999E slotping OMutex 0096 Error on mutex trywait. [16] [Device or resource busy]
20131015.224103.631 r9999E slotping OMutex 0096 Error on mutex trywait. [16] [Device or resource busy]
Last edited by skippa on 18.10.2013, 15:01, edited 1 time in total.
skippa
 

Postby rjversluis » 17.10.2013, 13:55

Hi,

just remove the restricted attribute:
Code: Select all
  <digint iid="feedback" lib="loconet" device="/dev/ttyUSB0" bps="57600" sublib="serial" stress="false" libpath="/opt/rocrail" host="" port="0" localip="" swtime="250" flow="cts" fastclock="false" restricted="true">


Or wait until 6130+ is available.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby skippa » 18.10.2013, 15:01

Thanks, that worked.
Just wonder when and how the flag got triggered. Couldn't find it in the gui... Anyhow. I'll enjoy playing the FREDs again.

Jens
skippa
 

Postby rjversluis » 18.10.2013, 15:07

Hi Jens,

this flag was introduced after I got email from Digitrax; See LocoNet threads in this forum.
But I deactivated it, which did not work in your case for which I made a fix.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 


Return to Loconet