Don,
Where does your home brew sit in the following simplified Digitrax map? While this example is Digitrax specific, the basic concepts apply to most JMRI to layout connections.
JMRI <-> FTDI Drivers <-> LocoBuffer-USB <-> LocoNet <-> DS64 <-> Tortoise
The LocoBuffer-USB provides the bridge between the computer hosting JMRI and the Digitrax LocoNet.
Dave Sand
toggle quoted message
Show quoted text
On Dec 31, 2018, at 10:36 PM, Don Weigt <dweigt47@...> wrote:
Dave,
My railroad interface is home brew. I'm looking for a way to map the turnouts into a few bytes of data in computer RAM, where an interrupt driven interface will write it to a board to control turnouts, each with its own simple decoder card.
I just need a way to identify data to (and from) each to map it into the turnout control (and position feedback) RAM. So, I need to identify two output bits in a specific byte for each turnout (and two more input bits for position feedback. Both are active for a short time as the points pass midway between the two normal positions.) I could just define them as ones and zeros for 128 bit locations, and let the computer arrange them eight per byte. My turnouts have addresses from 00 up to about 60.
Right now, I have program default IDs, and have added my own text label names for the turnouts. They're assigned to blocks. But, I don't know how to get data from them for the railroad, and in turn, get returning position data connected to the panel symbols to show turnout positions.