Jump to content

C# library for control of XpressNet compatible model rail command stations


RobinJ

Recommended Posts

If anyone is interested I have uploaded A C# library for control of XpressNet compatible model rail command stations to GitHub at https://github.com/networkfusion/XpressNetSharp Documentation/Example app is a bit light at the moment but I hope to improve it over time. But if you are any more than an ameteur developer hopefully what I have written will make sense. It was designed from scratch to be as speedy as posible with an event driven architecture and is much more complete command wise than many of the other libraries available.

I also have a full program that is capable of talking to an eLink (wont work with the out of box example due to a boot sequence check packet). I did plan to release it this year but since moving to a house that needs a lot of renovating, I haven't had the time to improve it to a state where I think it is ready. However if anyone wants a try, PM me and I may send you a link. I spent a extrordinary amount of time working on the communications aspect as such is much less prone to USB errors than RailMaster.

Link to comment
Share on other sites

Interesting that this topic should be raised.  I have had a type of Oscillosope connected across my track today, hoping to see something that would make it possible for at least some control by a Raspberry Pi computer.

Link to comment
Share on other sites

  • 9 months later...

Hi Robin, I have just bought a eLink and am bored of RailMaster already! I've downloading your code off github and am running through it trying to understand it.  My plan is to add a layer on top which takes care of calling your code, so I can make high level calls.  

Do you still have your eLink example you talked about?

Thanks,

Chris

Link to comment
Share on other sites

march 2016, was when the only post about this was made, nothing since, curious. Its even more curious how anyone recently buying rm, can be so quickly bored of a product, constantly updating, and with which, many of us are very happy with. Just my thoughts. john

Link to comment
Share on other sites

Provided the OP is not transgressing the RM licence conditons which preclude back engineering the code then this is probably a good idea trying to better understand what the kit is doing.

 

Xpressnet specification and source is freely available from Lenz.

 

eLink does not have an RJ12 connector to talk directly to Xpressnet though, only a USB.

 

There was a case on RM-Web forum some long time ago when a guy was 'improving' the eLink functionality but the forum admin decided he was in breach and the thread was removed.

Link to comment
Share on other sites

march 2016, was when the only post about this was made, nothing since, curious. Its even more curious how anyone recently buying rm, can be so quickly bored of a product, constantly updating, and with which, many of us are very happy with. Just my thoughts. john

Hi John, I am a developer by trade I bought the product to write my own code for :) Writing my own controls is the exciting bit for me. I've got my PC talking to the eLink but can't get the train to move with my own software yet :)

Link to comment
Share on other sites

Provided the OP is not transgressing the RM licence conditons which preclude back engineering the code then this is probably a good idea trying to better understand what the kit is doing.

 

Xpressnet specification and source is freely available from Lenz.

 

eLink does not have an RJ12 connector to talk directly to Xpressnet though, only a USB.

 

There was a case on RM-Web forum some long time ago when a guy was 'improving' the eLink functionality but the forum admin decided he was in breach and the thread was removed.

Thanks RAF96, I have th Xpressnet specification, its very daunting starting off.  This API that has been written is very good, I've communicated to the eLink on my PC but not got the train to move yet.  Will keep looking into it, but a working example of code is always very helpful :)

 

Thanks for your help,

 

Chris

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...