Page 8 of 8

Re: New USB-Loconet interface

Posted: 14.04.2015, 13:21
by Richard-TX
rjversluis wrote:
Richard-TX wrote:Can anyone think of any reason to keep Loconet?
If you have lots of existing LocoNet equipment?
LocoNet communicates serial with a speed of 16K which was OK 20 years ago. Digitrax did not upgrade their concept...
Digitrax should have moved to TCP/IP 20 years ago. They definitely should have done it when POE became a standard in 2003.

I have some Loconet stuff but I am not in love with any of it.

Rocnet and friends allows me to troubleshoot. If Loconet fails, I am always guessing what the issue may be.

Every day that goes by, Digitrax is getting further and further behind.

Rocnetnode has all the functionality and ease of installation of digitrax without the silly licensing, proprietary protocol, RJ6 wiring, limited bandwidth, etc.

Loconet is dying a slow death. As far as I am concerned, the whole licensing thing is an attempt to pump some money into a company that may be in trouble.

Re: New USB-Loconet interface

Posted: 14.04.2015, 13:42
by Richard-TX
I had about 8 ESU Switchpilot-Servo decoders and have removed all but 2 of them. I hope to have all of the ESU switchpilots removed in the next week or two.

The Rocnetnode servo controllers offer a lot of bang for the buck and it takes up less room under the layout too. I can put a 16 port controller in the same space that the ESU 4 port Switchpilot took.

I really like the ability of fully backing up all of my decoders. No matter what happens, I can completely replace a Rocnetnode, restore the settings from backup, and be running in a few minutes.

Re: New USB-Loconet interface

Posted: 14.04.2015, 19:43
by Liviu M
Rob, Richard,

you are off-topic. :P

:mrgreen:
Liviu

Re: New USB-Loconet interface

Posted: 14.04.2015, 21:08
by Richard-TX
yup.

Will start a new thread should any more comments need to be made.

Re: New USB-Loconet interface

Posted: 15.04.2015, 07:48
by Liviu M
Hi Richard,

it was a joke, it doesn't bother me to continue here. It gives me the filling my topics aren't so uninteresting. :mrgreen:

Re: New USB-Loconet interface

Posted: 30.05.2015, 19:17
by Liviu M
Hello all,
Because I have a firmware allowing me to program my 8in2ln board as well as the LocoIO clone without any error on the Raspi, I'm posting the new hex files for PIC18F14K50 & PIC18F4550. Nobody knows when I'll need them. :)

Rob, if I use the Rocrail with two of my boards, at launching it complains about some already existing threads
A named thread, [ulnireader], already exist!
A named thread, [ulniwriter], already exist!
A named thread, [lnreader], already exist!
A named thread, [lnwriter], already exist!
A named thread, [swreset], already exist!
A named thread, [lissyreset], already exist!
Later on, when I push the PowerOn button first time, I receive a red message:
08:09:29 PM NOT FOUND!!! __removeThread(lnqGPON)
Because Rocrail is running as expected, I suppose it is a normal behavior, the two boards are using the same library. I'm just wondering if somewhere a checkbox exists, that I can select to avoid such messages. A "search the wiki, Luke" will be enough, I'll know the checkbox exists and I'll search better (till now I haven't found anything).

Thanks,
Liviu

Re: New USB-Loconet interface

Posted: 31.05.2015, 07:05
by rjversluis
Hi Liviu,

you defined the loconet library twice in your rocrail.ini.

Re: New USB-Loconet interface

Posted: 31.05.2015, 07:39
by Liviu M
Hi Rob,
I suppose so, but wasn't on purposes. I've only defined my two Loconet interfaces as two separate central stations, both of ulni type, using the Rocrail Properties dialog.
Should I define them otherwise? Or is the described behavior the normal one and I should ignore the messages (as I've already done :))?

Anyway, thanks for taking the time to answer my questions,
Liviu

Re: New USB-Loconet interface

Posted: 31.05.2015, 09:13
by rjversluis
Hi Liviu,

I made the thread names unique.

Re: New USB-Loconet interface

Posted: 31.05.2015, 10:08
by Liviu M
Hello Rob,

many thanks for the update.
The messages at the Rocrail start (A named thread...) don't appear anymore, but the
PM NOT FOUND!!! __removeThread(lnqGPON)
keeps coming.
More than that, I've discovered it comes every time I send a "Query sensors" command (Control -> Start of day -> Query sensors).
This post is more a report than a "fix request", spend your time with it only if you consider it necessary.

Regards,
Liviu

Re: New USB-Loconet interface

Posted: 31.05.2015, 10:11
by rjversluis
Hi Liviu,

just fixed it.

Re: New USB-Loconet interface

Posted: 31.05.2015, 12:04
by Liviu M
Hello Rob,

Thanks again, you are the fastest. :)
With the changes above, the message still appearing only at first PowerOn, no more on sensor query.
To totally remove it, similar changes as you done above should be done in ./rocdigs/impl/loconet.c file (around the line 1088) also:

Code: Select all

static void __evaluatePacket(iOLocoNet loconet, byte* rsp, int size ) {
  iOLocoNetData data = Data(loconet);
  int addr = 0; 
  int value = 0;
  int port = 0;
  char* threadname = StrOp.fmt("sod%X", loconet); //liviu - added
...

    case OPC_GPON:
      data->power = True;    
      _stateChanged(loconet);
      if( !data->didSensorQuery && data->doSensorQuery ) {
        data->didSensorQuery = True;
/*        data->SensorQuery =  ThreadOp.inst( "lnqGPON", &__loconetSensorQuery, loconet );*/         //liviu - removed
        data->SensorQuery =  ThreadOp.inst( threadname, &__loconetSensorQuery, loconet );        //liviu added
        StrOp.free(threadname);
        ThreadOp.start( data->SensorQuery );
      }
      __post2SlotServer( loconet, rsp, 2 );
      break;
I've made these changes and now all the messages are gone.

Regards,
Liviu

Re: New USB-Loconet interface

Posted: 31.05.2015, 14:09
by Liviu M
Hello Rob,

Thanks, your updated version works (at least) as good as mine. :)
Great job! :beer:

Regards,
Liviu