Hi Simon,
wow very cool equipment! Bus driving is your real passion!
google-translate works very good in this cases.
as a demonstration for this i put your german text translated into english here into a codesection
EN:
So, first of all, basic information about the project.
I have a driver's cab in my room from a Citaro Facelift Bus (Fig. 1/2), which I converted so that it can be used with the computer game
OMSI 2 The bus simulator works. This has already been partially completed.
Now to my actual next project, to which my question also applied.
I have an IBIS MAS 2 from an old Berlin BVG bus, which I connected to my Arduino Due.
An IBIS MAS 2 (see 3rd picture in the appendix) is a control device which, among other things, is used to describe older buses
(So the line that is on the front of the bus) is responsible. I bought this one and am now converting it to work with the computer game
OMSI 2 works. I then do that with an Arduino Due
and a plugin for the game, which provides the basic information: e.g. Hall test points or times, etc via a serial interface to the Arduino.
This plugin is already available to me, as well as knowing how to implement this, i.e. how to transfer the information from the plugin to the display.
My problem now is this. In real life, this IBIS Mas 2 works in such a way that TWO functions are stored in the area with the numbers: 1,2,3,4,5,6,7,8,9,0 (see Appendix 4).
Initially, if you e.g. the IBIS MAS 2 starts, there are ONLY the functions on the number field which ABOUT! the numbers. e.g. "Line / Course", "Route", etc.
If you then press the "1" in this case with the "Line / Course" function, e.g. the key press "o" is output, which then also activates the trigger "o": line / course in the game.
When this happens, the display shows: Line / Course: _____. There you can then enter 5 numbers, which are then responsible for the line, which is then displayed on the front of the bus.
That is still simple, the problem is now the key "1" must NO longer execute the key command "o", but e.g. "k" for the NUMBER: 1, so that the trigger IM game is executed for key 1 (this also applies to all other number buttons on the IBIS).
(See also scheme in Appendix 5) And that is exactly my problem. I am not entirely sure how to implement this.
If you still haven't fully understood it, here is a video of how it should work: https://www.youtube.com/watch?v=DS03lygkCvo or https://www.youtube.com/watch?v=wWrSBoyx7mQ
You can now get the idea to write to him (with the video), but he no longer gives any support, so I'll get in touch with you. The idea of using the other keys, such as the arrow keys, is also not possible, as I need them for other functions!
With kind regards
Simon
You can do the same for translating back into german.
As I'm writing this post the thread ist still in the english-forum.
OK so now mor ethings are clear I still have some more questions:
You described press key "Linie/Kurs" then appears placeholders for 5 digits
does the original device need to have always typed in five digits?
example Linie "2" ist typed in as "00002" ? if this is true it is a fixed pattern and is no problem to code it
without additional keypresses. Because it IS a fixed pattern
If the IBIS MAS 2-device is in "idle" state the arduino awaits the first keypress after the first keypress is done and it is key "Linie Kurs 1" the Arduino-code switches the mode to input 5 digits.
This is really no problem to write code for this.
Did you already connect the keypad to the arduino and the basic function is available?
best regards Stefan