• 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!

Class 365 PBC Unit and PIS system

Status
Not open for further replies.

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Crikey. That’s a monumental challenge you’ve set yourself.

Does the intellectual property for the original ”Jasmin Electronics” PIS still exist somewhere?
It's not the hardest thing I've done, the good thing about these PCBs from the early 90's is that they are no where as near complicated as PCBs today!
With these it's just about following each trace and drawing them in the software (KiCad).

Jasmin Electronics was bought by KeTech, however the PCBs (inside the internal display) have "Hamlet Circuits BBT" stickers which after a bit of internet searching was an actual company however it was dissolved quite a while ago.

Even if the intellectual property for them still exists, for now I'm recreating this just for me which I'm fairly sure there is no harm in doing!

This does now beg the question, does KeTech still have technical drawings for these?
 
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
On KeTech's official website they have an "Our History" section which the section for 2004 is dedicated to them acquiring Jasmin plc (Same as Jasmin Electronics and Simtec)
1756646008496.png
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Very interesting update in terms of customisation!

Previously I haven't been able to upload custom data to the PIS controller due to the strict self test/checksum checks. However after a very tedious and long effort of reverse engineering the beginning program code for the controller I have been able to modify 16 bytes of data which have essentially unlocked the controller for customisation as all self tests/checksum checks have been bypassed!

In simple terms anytime the program checks for the checksum and either proceeds as passed or failed it now proceeds as passed even if the checksum check failed, visually there is no difference as it appears and functions identically to if the tests really did pass.

IMG_4607 (1).JPEG
Custom route for Hayes.

I'm attaching a link to the patched program ROM for anyone who may need it (although I don't think anyone else has a complete system :lol: )
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Full 365 PIS audio data dump (Decoded!)

GT North Announcements
SE Announcements

The audio decoder IC is a MSM6650 which encodes in OKI-ADPCM (OKI made the IC) however there is a FF byte every 100 hex which needs to be decoded in a certain way otherwise the output audio data is all messed up.
The data also includes a table for each announcement, I've not only made a little program for decoding them but also to automatically split each separate announcement.
However I've figured all that out and it's properly decoded!

Update: Forgot to mention - All audio has a low pass filter of 6400Hz applied as per the output specs of the MSM6650 (for extra authenticity)

I've attached a couple that I've converted to mp3 just for an example - actual ones are in raw WAV.

View attachment ANN_1.mp3
View attachment ANN_87.mp3
View attachment ANN_88.mp3
View attachment ANN_93.mp3
View attachment ANN_101.mp3
View attachment ANN_110.mp3
 
Last edited:

Class 466

Established Member
Joined
5 Mar 2010
Messages
2,139
Location
Atherton, UK
Full 365 PIS audio data dump (Decoded!)

GT North Announcements
SE Announcements

The audio decoder IC is a MSM6650 which encodes in OKI-ADPCM (OKI made the IC) however there is a FF byte every 100 hex which needs to be decoded in a certain way otherwise the output audio data is all messed up.
The data also includes a table for each announcement, I've not only made a little program for decoding them but also to automatically split each separate announcement.
However I've figured all that out and it's properly decoded!

Update: Forgot to mention - All audio has a low pass filter of 6400Hz applied as per the output specs of the MSM6650 (for extra authenticity)

I've attached a couple that I've converted to mp3 just for an example - actual ones are in raw WAV.

View attachment 192837
View attachment 192838
View attachment 192839
View attachment 192840
View attachment 192841
View attachment 192842
The multi-lingual annuoncements are fantastic!
 

MrJeeves

Established Member
Associate Staff
Senior Fares Advisor
Joined
28 Aug 2015
Messages
4,668
Location
Burgess Hill
The data also includes a table for each announcement, I've not only made a little program for decoding them but also to automatically split each separate announcement.
Would you be willing to share the software? It could be helpful for decoding future data dumps too! :)
 

bramling

Veteran Member
Joined
5 Mar 2012
Messages
20,370
Location
Hertfordshire / Teesdale
Full 365 PIS audio data dump (Decoded!)

GT North Announcements
SE Announcements

The audio decoder IC is a MSM6650 which encodes in OKI-ADPCM (OKI made the IC) however there is a FF byte every 100 hex which needs to be decoded in a certain way otherwise the output audio data is all messed up.
The data also includes a table for each announcement, I've not only made a little program for decoding them but also to automatically split each separate announcement.
However I've figured all that out and it's properly decoded!

Update: Forgot to mention - All audio has a low pass filter of 6400Hz applied as per the output specs of the MSM6650 (for extra authenticity)

I've attached a couple that I've converted to mp3 just for an example - actual ones are in raw WAV.

View attachment 192837
View attachment 192838
View attachment 192839
View attachment 192840
View attachment 192841
View attachment 192842

Wow! This is excellent. Well done and thank you for all your hard work and persistence, as well as generosity in sharing it all.

Those of us who adored the 365s will no doubt be massively pleased that this little piece of them will live on well into the future.
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
That's what pull requests are for ;)
Here you are!

My code may be a mess, this wasn't originally intended for public release!

Run pisTool.py and install any packages if required. (I think it uses mostly built in ones however there may be one or two)

 

365 Networker

Member
Joined
19 Jul 2019
Messages
537
Full 365 PIS audio data dump (Decoded!)

GT North Announcements
SE Announcements

The audio decoder IC is a MSM6650 which encodes in OKI-ADPCM (OKI made the IC) however there is a FF byte every 100 hex which needs to be decoded in a certain way otherwise the output audio data is all messed up.
The data also includes a table for each announcement, I've not only made a little program for decoding them but also to automatically split each separate announcement.
However I've figured all that out and it's properly decoded!

Update: Forgot to mention - All audio has a low pass filter of 6400Hz applied as per the output specs of the MSM6650 (for extra authenticity)

I've attached a couple that I've converted to mp3 just for an example - actual ones are in raw WAV.

View attachment 192837
View attachment 192838
View attachment 192839
View attachment 192840
View attachment 192841
View attachment 192842
Fantastic that you have managed to decode all of these!
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
My software for decoding the announcements has been tweaked slightly to fix some amplitude ranging issues that weren't audibly present but were more noticeable when viewing the waveforms.

Updated code will be put on github and the full dumps with the updated decoding will be done when I have time.

Edit: This will be tomorrow.
 
Last edited:

stadler

Established Member
Joined
5 Jun 2023
Messages
3,304
Location
Horsley
Full 365 PIS audio data dump (Decoded!)

GT North Announcements
SE Announcements

The audio decoder IC is a MSM6650 which encodes in OKI-ADPCM (OKI made the IC) however there is a FF byte every 100 hex which needs to be decoded in a certain way otherwise the output audio data is all messed up.
The data also includes a table for each announcement, I've not only made a little program for decoding them but also to automatically split each separate announcement.
However I've figured all that out and it's properly decoded!

Update: Forgot to mention - All audio has a low pass filter of 6400Hz applied as per the output specs of the MSM6650 (for extra authenticity)

I've attached a couple that I've converted to mp3 just for an example - actual ones are in raw WAV.

View attachment 192837
View attachment 192838
View attachment 192839
View attachment 192840
View attachment 192841
View attachment 192842
Thank you for sharing these. I am very surprised that they had French and Dutch and German announcements. I suppose it makes sense as they served three towns with international ferry ports (Dover and Folkestone and Ramsgate) but no new stock has had any bilingual announcements.
 

bramling

Veteran Member
Joined
5 Mar 2012
Messages
20,370
Location
Hertfordshire / Teesdale
Thank you for sharing these. I am very surprised that they had French and Dutch and German announcements. I suppose it makes sense as they served three towns with international ferry ports (Dover and Folkestone and Ramsgate) but no new stock has had any bilingual announcements.

Things were rather different in Kent back in those days, three busy ferry ports and plenty of people making connections to/from rail. The 365s just about caught the very end of this. It’s virtually all a memory now, though not quite.
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Things were rather different in Kent back in those days, three busy ferry ports and plenty of people making connections to/from rail. The 365s just about caught the very end of this. It’s virtually all a memory now, though not quite.
Was about to say, a memory no more! :lol:
 

Hadders

Veteran Member
Associate Staff
Senior Fares Advisor
Joined
27 Apr 2011
Messages
18,137
Wow these bring back some memories of the much missed 365s.
 

bramling

Veteran Member
Joined
5 Mar 2012
Messages
20,370
Location
Hertfordshire / Teesdale
I am currently experimenting with reading the database and forming announcements per route code automatically.

Going not too bad so far.

Some examples that have been generated.

*Please note the reduced audio quality due to the mp3 conversion*
View attachment 193028
View attachment 193029
View attachment 193030
View attachment 193031

Gosh bringing back some memories here. They sound pretty spot-on. In a whole generation of 365 travel, don’t think I ever heard in anger anything terminating at Huntingdon or Royston, or via Hertford. Didn’t even realise the system had the ability.
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Gosh bringing back some memories here. They sound pretty spot-on. In a whole generation of 365 travel, don’t think I ever heard in anger anything terminating at Huntingdon or Royston, or via Hertford. Didn’t even realise the system had the ability.
There is also an announcement for Kings Cross Thameslink!
 

Hadders

Veteran Member
Associate Staff
Senior Fares Advisor
Joined
27 Apr 2011
Messages
18,137
Pretty much spot on! Although the real announcements onboard always sounded like 'bLondon Kings Cross' but I wonder if that was to do with how the announcements were stitched together?

Gosh bringing back some memories here. They sound pretty spot-on. In a whole generation of 365 travel, don’t think I ever heard in anger anything terminating at Huntingdon or Royston, or via Hertford. Didn’t even realise the system had the ability.
Wasn't there a peak extra that terminated in the bay at Huntingdon (although I don't think I ever travelled on it)? And I caught a 365 from Enfield Chase to Stevenage via Hertford North (on the opening night of the 2012 Olympics!)

There used to be a 23:23 that was announced as being to Cambridge and Kings Lynn which was fast from Finsbury Park to Stevenage.

Southbound there often used to be announcements that sais 'This train is for London Kings Cross via Stevenage'

The announcements were clear and concise. None of the see it, say it, sorted stuff we get today!
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Pretty much spot on! Although the real announcements onboard always sounded like 'bLondon Kings Cross' but I wonder if that was to do with how the announcements were stitched together?


Wasn't there a peak extra that terminated in the bay at Huntingdon (although I don't think I ever travelled on it)? And I caught a 365 from Enfield Chase to Stevenage via Hertford North (on the opening night of the 2012 Olympics!)

There used to be a 23:23 that was announced as being to Cambridge and Kings Lynn which was fast from Finsbury Park to Stevenage.

Southbound there often used to be announcements that sais 'This train is for London Kings Cross via Stevenage'

The announcements were clear and concise. None of the see it, say it, sorted stuff we get today!
Ah the reason none of those had the 'bLondon Kings Cross' is because the 'to x' and 'and x' announcements are separate from the single station names. If I were to do an example where it was to say 'The next station is bLondon Kings Cross' then it would use that audio file as that's using the separate single station name audio.

View attachment bLondon Kings Cross.mp3
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Pretty much spot on! Although the real announcements onboard always sounded like 'bLondon Kings Cross' but I wonder if that was to do with how the announcements were stitched together?


Wasn't there a peak extra that terminated in the bay at Huntingdon (although I don't think I ever travelled on it)? And I caught a 365 from Enfield Chase to Stevenage via Hertford North (on the opening night of the 2012 Olympics!)

There used to be a 23:23 that was announced as being to Cambridge and Kings Lynn which was fast from Finsbury Park to Stevenage.

Southbound there often used to be announcements that sais 'This train is for London Kings Cross via Stevenage'

The announcements were clear and concise. None of the see it, say it, sorted stuff we get today!
And indeed you are correct, there is an audio for 'This train is for' along with audio files for 'via x'. Also an announcement for 'This train runs non stop' which would obviously be used in conjunction with the 'to x' announcements.

Also note that this would also use the 'bLondon Kings Cross' audio file.
View attachment train for bLondon Kings Cross.mp3
 

Hadders

Veteran Member
Associate Staff
Senior Fares Advisor
Joined
27 Apr 2011
Messages
18,137
Ah the reason none of those had the 'bLondon Kings Cross' is because the 'to x' and 'and x' announcements are separate from the single station names. If I were to do an example where it was to say 'The next station is bLondon Kings Cross' then it would use that audio file as that's using the separate single station name audio.

View attachment 193033
That's the one :D
 

bramling

Veteran Member
Joined
5 Mar 2012
Messages
20,370
Location
Hertfordshire / Teesdale
Ah the reason none of those had the 'bLondon Kings Cross' is because the 'to x' and 'and x' announcements are separate from the single station names. If I were to do an example where it was to say 'The next station is bLondon Kings Cross' then it would use that audio file as that's using the separate single station name audio.

View attachment 193033

That sounds about right. Are these recordings slightly different to the ones from the other day? It sounds slightly clearer. I think the 365 always had a slight hiss on the real thing, so this sounds pretty much spot on.
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
That sounds about right. Are these recordings slightly different to the ones from the other day? It sounds slightly clearer. I think the 365 always had a slight hiss on the real thing, so this sounds pretty much spot on.
They are! Some of the noise may be due to the lossy mp3 compression however the decoding software has been tweaked slightly to provide a better output.

*New software update will be released soon, I'm just adding some things*

I also think that some of that hiss is from the PA unit amplifier itself so it may not all be there in these files.
 
Last edited:

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
Here are the full audio files with the tweaked software, the software on github will be updated soon.

GT North New Announcements
SE New Announcements

Here is the output of my new experimental tool to read through all destinations on the binary database files (that are used with the main controller) and automatically form the announcements.

The example is done with route code 830, route modifier 0 which is Kings Cross to Cambridge. However, it works on all routes (only those which are GT North for now)

Automatically formed announcements

This message by Hadders on an old post helped with how the announcements are formed throughout the journey. - especially the fact that 'Welcome aboard the WAGN service to' is used at the origin station while 'This train is for' is used for the rest.
 

bramling

Veteran Member
Joined
5 Mar 2012
Messages
20,370
Location
Hertfordshire / Teesdale
Here are the full audio files with the tweaked software, the software on github will be updated soon.

GT North New Announcements
SE New Announcements

Here is the output of my new experimental tool to read through all destinations on the binary database files (that are used with the main controller) and automatically form the announcements.

The example is done with route code 830, route modifier 0 which is Kings Cross to Cambridge. However, it works on all routes (only those which are GT North for now)

Automatically formed announcements

This message by Hadders on an old post helped with how the announcements are formed throughout the journey. - especially the fact that 'Welcome aboard the WAGN service to' is used at the origin station while 'This train is for' is used for the rest.

The system only ever used to announce the whole list of stations at the origin. So for a KX to Cambridge journey everywhere else it would just say “This train is for Cambridge via Stevenage”, with the via part being dropped from Stevenage onwards.

There were a couple of nuances though. On Kings Lynn services I *think* it did the whole Welcome Aboard announcement at Cambridge. Also from Stevenage onwards instead of saying “This train is for Cambridge” it would say “This is for all stations to Cambridge” for those trains calling everywhere (not all stopping patterns did). I don’t recall hearing that variation anywhere else, definitely not on the Peterborough route.

There were no doubt a few variations for Kings Lynn trains. I think it announced “This train is for Kings Lynn via Cambridge and Ely”, and the same in reverse for Kings Lynn to London journeys. But someone with better memory who used them more often north of Cambridge would have to confirm.

Hope that’s useful!
 

WMasterJedi

Member
Joined
23 Nov 2023
Messages
282
Location
England
The system only ever used to announce the whole list of stations at the origin. So for a KX to Cambridge journey everywhere else it would just say “This train is for Cambridge via Stevenage”, with the via part being dropped from Stevenage onwards.

There were a couple of nuances though. On Kings Lynn services I *think* it did the whole Welcome Aboard announcement at Cambridge. Also from Stevenage onwards instead of saying “This train is for Cambridge” it would say “This is for all stations to Cambridge” for those trains calling everywhere (not all stopping patterns did). I don’t recall hearing that variation anywhere else, definitely not on the Peterborough route.

There were no doubt a few variations for Kings Lynn trains. I think it announced “This train is for Kings Lynn via Cambridge and Ely”, and the same in reverse for Kings Lynn to London journeys. But someone with better memory who used them more often north of Cambridge would have to confirm.

Hope that’s useful!
That's good to know!

All the information helps as I'm going off very little!
 
Status
Not open for further replies.

Top