• Our new ticketing site is now live! Using either this or the original site (both powered by TrainSplit) helps support the running of the forum with every ticket purchase! Find out more and ask any questions/give us feedback in this thread!

How to get signal data

Status
Not open for further replies.
Joined
24 Jul 2011
Messages
535
Location
Wigan
just uploading some photos of where i am up to. nearly finished the hardware

drilled a bit too far through on two of the holes

not sure i've labeled all the signals correctly

I've use the track map from opentimetimes
That's really impressive!

Not sure if it'll be of use to your project, but Phil Wieland has a superb OpenRail GitHub - https://github.com/philwieland/openrail/wiki.

I've previously played with it to read the state of signal berth data in NRs train movement feed and generate pulses into an Arduino which in turn illuminated LEDs. It was all very basic compared to your impressive work though.
 
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

DaChezePufz

Member
Joined
22 Oct 2023
Messages
12
Location
Andover
Hi all,

I have been working on and off for the past year trying to make sense of the data for the ZY (Yeovil) TDC, but specifically the Salisbury area, as no online maps that I can see show route data, only signals at best.
I have fairly easily created berth level maps, however while looking at the S class data stream I am having trouble decoding it all. There does seem to be work done previously - https://wiki.openraildata.com/index.php/ZY - however this doesn't seem to line up for me?
Any suggestions for what I could be doing wrong would be very much appreciated.
 

Urgentemente

New Member
Joined
5 Nov 2021
Messages
1
Location
Liverpool, UK
This looks great , will be great to see it working.

I'd recently been wondering about doing something similar, albeit I was only thinking of making one signal, using 3 or 4 DMX ParCans, and to have it mimic one particular signal (configurable somewhere in the code/as a parameter) (I'm slowly teaching myself the basics of DMX in MagicQ at the moment, just because I've always been a bit of a lighting geek but with barely any time to play with it..)

About 10 years ago I wrote a very basic bit of php that used stomp to read some of the local Merseyrail movement data, and had it put a picture of a train arriving, plus playing the tannoy noise, just for fun and doing a first bit of coding in how-many years...
Have been meaning to resurrect it/start fresh for quite a while now,
 

Trains1

Member
Joined
7 Aug 2024
Messages
148
Location
Manchester
i thought i had a working python code to get signal data but i've come back to it and now it dosen't work:'(

probably should add i was getting the data from https://raildata.org.uk/

does anyone know of example codes that are knowed to work

Thanks

== Doublepost prevention - post automatically merged: ==

Hi all,

I have been working on and off for the past year trying to make sense of the data for the ZY (Yeovil) TDC, but specifically the Salisbury area, as no online maps that I can see show route data, only signals at best.
I have fairly easily created berth level maps, however while looking at the S class data stream I am having trouble decoding it all. There does seem to be work done previously - https://wiki.openraildata.com/index.php/ZY - however this doesn't seem to line up for me?
Any suggestions for what I could be doing wrong would be very much appreciated.
i presume you have seen opentiumetrains? i know it shows some routes
 
Last edited:

Trains1

Member
Joined
7 Aug 2024
Messages
148
Location
Manchester
I did manage to work out the main signals for the MP area around a year and a half ago, I'll list them below. Decoding S-Class data is a love-hate relationship, it's a painful experience but once you figure some out it gets easier. Took me over a year to decode the Crewe Area which I've put on the Open Rail Data Wiki, I'm in the process of decoding areas M7 and M8 which are the Crewe South and Independent Lines, some of which has already been added to the Wiki. Hopefully this will save you the pain of decoding it yourself:

AddressBitFunction
527S320
532S324
533S326
534S332
535S334
541S340
543S341
545S342
547S343
551S344
553S345
555S346
304S347
306S349
310S350
312S352
314S354
316S362
320S364
322S366
324S368
326S372
330S374
332S376
334S378
336S380
340S382
344S386
351S389
352S390
356S393

Those are pretty much all of the main signals for Platforms 1-14 and some of the signals headings To/From the station, I didn't decode any of the routes but hopefully that helps you somewhat.
Sorry to bother you. how do I get/work out the Address and Bit for the Shunting and subsidiary signals please
 

Rhysdabeast

Established Member
Joined
10 Apr 2020
Messages
3,337
Location
Crewe
Sorry to bother you. how do I get/work out the Address and Bit for the Shunting and subsidiary signals please
Typically I will look at the Wiki first but in your case with Manchester Piccadilly nobody has put any mappings on the Wiki. As I said in my post before I worked those mappings out a few years ago, I just had my C# script running and logging the S-Class messages and then OpenTrainTimes diagram behind it, then screen recording it for 30 mins - 1 hour. You can then play it back and look at the messages and work out which Address and Bit links to which Route/Signal. Not an amazing way to do it but better than looking at the raw movement data and trying to figure it out.
 

Trains1

Member
Joined
7 Aug 2024
Messages
148
Location
Manchester
Typically I will look at the Wiki first but in your case with Manchester Piccadilly nobody has put any mappings on the Wiki. As I said in my post before I worked those mappings out a few years ago, I just had my C# script running and logging the S-Class messages and then OpenTrainTimes diagram behind it, then screen recording it for 30 mins - 1 hour. You can then play it back and look at the messages and work out which Address and Bit links to which Route/Signal. Not an amazing way to do it but better than looking at the raw movement data and trying to figure it out.
ah thought that might be how it's done even worse for Shunting signals on the engine sidings
 

takno

Verified Rep - Traksy
Joined
9 Jul 2016
Messages
6,576
ah thought that might be how it's done even worse for Shunting signals on the engine sidings
The upside of doing it from the feed is that you can record a week or so of data and run all the way through it. Honestly though it was a process I didn't enjoy at all where I have done it, and even with various automations and lots of data the results for shunt signals and routes were disappointing.
 
Status
Not open for further replies.

Top