Hi!
Running JMRI 4.14 and already tested 4.16, I'm still a bit stuck on how "invert" sensor works.
I'm receiving S88N based block occupancy signals: LOW (0V) is block occupied. HIGH (5V) is block empty. These signals are coming into JMRI via a serial link.?
A serial input script translates the messages to set/reset internal sensors IS1..IS16 with user names S88 BIT:1 .. S88 BIT:16.
(block occupancy messaging and S88N master control is done by a little? atMega8 board, having a serial link to RasPi/JMRI. A serial input script links message bytes to JMRI sensors. This is tested well and works fine).
Checking the invert box, or checking the box when creating the sensor in the sensor table, both result in the same behaviour:
Not inverted, normal use: LOW? becomes INACTIVE and HIGH becomes ACTIVE. So far so good.
When checking the invert box: the state is inverted, ACTIVE -> INACTIVE and vice versa. But, when the layout/block sends the same message again (e.g. LOW/ACTIVE) the sensor table switched to the "old"? not inverted state. The checkbox is still checked. So, basically only when checking the box, the invertion takes place and only until the next S88 message arrives.?
I assume that this "invert check box"? is present to let the system continuously invert selected sensors, if desired.
My quick fix would be to invert the sensor value in the serial input script. But, I rather like to use JMRI offered functionality which should do the job.
What am I missing, or doing wrong?
Groet!
Bart