@JD2035RR posted:The idea is to provide a tactile hand held remote (rather than a touch screen phone) to control engine speed, quilling whistle, bell, boost/brake, start up sequences, etc. - I'd say everything other than programming engines which would be simpler through the app itself. The phone would show the Cab3 App with engine data, throttle position, etc.
I understand this is out of scope from what you set out to do, I was just offering a hardware option that might be able to work before having to cobble something together.
There is another train control app called Bluerail (not related to TMCC/Legacy at all). The Bluerail app allows you to control the app directly using a MFI controller. The Cab3 app to my knowledge doesn't allow MFI/bluetooth control of the app - which is why I was thinking perhaps you could use the bluetooth controller input to the raspberry pi to activate the code you have written for TMCC/Legacy.
Here's a video demonstrating it for Bluerail.
There is https://youtu.be/plinKYtuwrM
Huh, cool! I was unfamiliar with BlueRail. They must have essentially enabled Bluetooth game controller control of their app.
Although I've never done it, you can pair a BlueTooth controller to an iPhone and use it as an "assistive touch" device to control the cursor and operate an iPhone. Someone should order one of these things and see if it can operate the Cab 3!
https://support.apple.com/en-us/111775
-- Dave