Open GoogleCodeExporter opened 8 years ago
Dear Bert,
I'm very glad that you managed to get rauluino working together with rocrail.
I have tried too to program a solution based on SRCP protocol, but i didn't
succeed, yet :-(
Could you explain how to setup rocrail in detail to get your alternative
Arduino sketch working?
Is S88 feedback to rocrail also working in your sketch?
Original comment by Hoek...@gmail.com
on 2 Dec 2013 at 9:23
The setup is relative straight forward.
Define a MCS2 controller in Rocrail
In the properties of the controller select serial and the comport on which the
Arduino communicate with your PC.
Restart Rocrail
Now Rocrail should open the comport. In the console from Rocrail server you
should recognize the connection. Let me known if it works or if you encounter
problems.
For the S88 I have a sketch that emulates a CS2 running on a separate arduino
board connected via USB. It sends the reporter events to Rocrail confom the CAN
protocol.
So it is not polling but it sends an event like the CS2 with 2.x or 3.x
software. It doesn't use the railuino library.
Original comment by b.havi...@gmail.com
on 2 Dec 2013 at 2:51
I tried and i did get a connection with Rocrail!
However without feedback of S88 sensors, it's no practical use me for the
moment.
You have made a separate sketch for handling S88 events.
Could you please upload that sketch too, so i can use rocrail effectiv.
Is it possible to integrate this S88 sketch with the Rocrail one, so i can use
only 1 arduinobaord with CANbus interface? Or is this to slow for arduino to
handle all events.
Original comment by Hoek...@gmail.com
on 17 Dec 2013 at 12:17
Hi, thanks for using and testing. I experienced I software latency under heavy
use which does hang the Arduino sketch. I suspect the railuino interrupthandler
in combination with a lot of bitshifting. (Sorry Joerg) I'm trying to optimize
the Rocrail sketch. But improvement is though.
I have attached the sketch for the sensors. It is using a ethernetshield but
I've also a sketch for the serial USB connection. I will upload it tomorrow or
the day after tomorrow. Tomorrow evening I've to diner with the family ;).
For this sketch you have to configure a CS2 with a ethernet connection in your
subnet and configure it for feedback version 2. AFter that you have to
configure your sensors with the right CS2 controller name.
The sketch for the serial port has to be configured in the same way as the
Rocrail gateway.
The processing power from the Arduino is to small to listen the both CAN
interfaces and monitoring the sensors in near real time. A arduino Uno is about
€ 7-€8 and 3 weeks of patience. But is cheaper as pulling my hairs out of
my head for a few evenings. So I have not planned to integrate both sketches.
For sure not now I know that the gateway has problems with keeping up the CAN
in a busy layout.
Regards,
Bert
Original comment by b.havi...@gmail.com
on 17 Dec 2013 at 10:28
Attachments:
Hi Bert,
Could you upload te USB version for the S88 feedback sensors please?
I don't have a ethernet shield and like to use just USB ports to control.
Original comment by Hoek...@gmail.com
on 9 Jan 2014 at 8:37
Bert
Doe's it mater if i leave a ms2 attached?
Becous if i move the speeddail on the ms2 i get an rocrailerror CS2 STOP.And i
can't control the loco from rocrail.
Best regeards Ben
Original comment by bendelat...@gmail.com
on 28 Jan 2015 at 1:50
Ben,
My I direct you to http://forum.rocrail.net/viewtopic.php?f=11&t=6864
Regards,
Bert
Original comment by baai...@gmail.com
on 28 Jan 2015 at 7:01
Original issue reported on code.google.com by
b.havi...@gmail.com
on 2 Nov 2013 at 4:43Attachments: