New USB-Loconet interface

Moderator: Moderators

Re: New USB-Loconet interface

Postby Richard-TX » 14.04.2015, 13:21

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.
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: New USB-Loconet interface

Postby Richard-TX » 14.04.2015, 13:42

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.
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: New USB-Loconet interface

Postby Liviu M » 14.04.2015, 19:43

Rob, Richard,

you are off-topic. :P

:mrgreen:
Liviu
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Re: New USB-Loconet interface

Postby Richard-TX » 14.04.2015, 21:08

yup.

Will start a new thread should any more comments need to be made.
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: New USB-Loconet interface

Postby Liviu M » 15.04.2015, 07:48

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:
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Re: New USB-Loconet interface

Postby Liviu M » 30.05.2015, 19:17

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
You do not have the required permissions to view the files attached to this post.
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Re: New USB-Loconet interface

Postby rjversluis » 31.05.2015, 07:05

Hi Liviu,

you defined the loconet library twice in your rocrail.ini.
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
 

Re: New USB-Loconet interface

Postby Liviu M » 31.05.2015, 07:39

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
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Re: New USB-Loconet interface

Postby rjversluis » 31.05.2015, 09:13

Hi Liviu,

I made the thread names unique.
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
 

Re: New USB-Loconet interface

Postby Liviu M » 31.05.2015, 10:08

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
Last edited by Liviu M on 02.10.2015, 10:30, edited 1 time in total.
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Re: New USB-Loconet interface

Postby rjversluis » 31.05.2015, 10:11

Hi Liviu,

just fixed it.
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
 

Re: New USB-Loconet interface

Postby Liviu M » 31.05.2015, 12:04

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
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Re: New USB-Loconet interface

Postby Liviu M » 31.05.2015, 14:09

Hello Rob,

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

Regards,
Liviu
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Previous

Return to DIY Hardware