¿ªÔÆÌåÓý

Date

Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

Ken,

On 25 Nov 2019, at 2:44 PM, Ken Cameron <kcameron@...> wrote:

I've found better results with the 7.3.7 (all jumpers on) setting.
Effectively it says the USB will attempt to pass all commands to the command
station. All the other settings have combinations of restrictions that match
different versions of different command station.
The original USB V7 documentation showed 7.3.7 for ALLSYS.

The revised USB V7 documentation shows 7.3.7 for PowerCab.
The revised USB V7 documentation shows 7.3.1 for SB5 (19,200).
The revised USB V7 documentation no longer shows ALLSYS.

Dave in Australia


Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

I've found better results with the 7.3.7 (all jumpers on) setting.
Effectively it says the USB will attempt to pass all commands to the command
station. All the other settings have combinations of restrictions that match
different versions of different command station.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

¿ªÔÆÌåÓý

Dan,

On 25 Nov 2019, at 1:05 PM, Dan Boudreau <daboudreau@...> wrote:

Valid cab addresses (for cabs in) a Powercab system are 2,3,4, or 5. Total of 4 actual cabs. 6 and 7 are unused. 8,9 and 10 can be used for other cab devices (AIU,USB) only.

?Valid cab addresses (for cabs) in an SB5 system are 2,3,4,5, 6 and 7. Total of 6 actual cabs. ?8,9 and 10 can be used for other cab devices (AIU,USB) only.

?If the AIU cab address is higher than 10 it will not work due to the limits of the command stations.


Correct, but there's further qualification needed regarding firmware versions:

If your Power Cab firmware (second screen at startup of your Power Cab, after the "Pro Cab V1.3" message) is:
- "V1.28C" the only valid addresses for extra cabs are 3 & (unofficially) 4.
- "V1.65" the only valid addresses for extra throttles ?are 3, 4 and 5. Non-throttle devices such as the NCE USB, Mini Panel or AIU can also use addresses 8, 9 & 10. However if you have ever done a System Reset, you will have lost all the extra addresses and be back to the V1.28C restrictions.
- "V1.65B" the only valid addresses for extra throttles ?are 3, 4 and 5. Non-throttle devices such as the NCE USB, Mini Panel or AIU can also use addresses 8, 9 & 10.

Similar ?comments apply to the SB3/5 with the range 2-5 for V1.28 and 2-7 for V1.65B.

Dave in Australia


Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

¿ªÔÆÌåÓý

Dan,

On 25 Nov 2019, at 1:28 PM, Dan Boudreau <daboudreau@...> wrote:

Here's a link to a table that shows how to properly configure the jumpers for the USB.? I believe you should set up your jumpers so you get a 7.3.1 response, not a 7.3.7 that's showing in your console text.

You are quite correct, as I had posted in an earlier message on this thread, which shows exactly what jumper and JMRI settings to use. It appears Russ may not have seen it:

Dave in Australia


Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

Here's a link to a table that shows how to properly configure the jumpers for the USB.? I believe you should set up your jumpers so you get a 7.3.1 response, not a 7.3.7 that's showing in your console text.



Dan


Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

Found this on the NCE site with regards to AIUs:

Valid cab addresses (for cabs in) a Powercab system are 2,3,4, or 5. Total of 4 actual cabs. 6 and 7 are unused. 8,9 and 10 can be used for other cab devices (AIU,USB) only.

?Valid cab addresses (for cabs) in an SB5 system are 2,3,4,5, 6 and 7. Total of 6 actual cabs. ?8,9 and 10 can be used for other cab devices (AIU,USB) only.

?If the AIU cab address is higher than 10 it will not work due to the limits of the command stations.


Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

In your system console text, it shows that there is a response to the command to poll the AIU, a "30" which means command not supported.? I believe you need to have your AIUs in a lower address range for it to work in your setup.? So I think your very close to getting it working.

Dan


Locked Re: Signaling feedback to Panels

 

Bob,

As I remember it, the issue with the SE8c, LDT, etc. devices was that they use turnout commands in a way that requires remembering the last sent message information rather than the last state of each turnout's information. I.e. there is no way to look at the turnout table entries and deduce the aspect because the granularity is wrong. (the number of turnouts used does not match the number of aspects displayed)

In the case of a DCC signal mast the last mast command always matches the current aspect. (same for an OpenLCB/LCC aspect command)

As for the alleged lack of sufficient mast aspects in the NMRA extended accessory message range of 32 that someone mentioned, I would like to hear about the rule set that requires more than 32 aspects. (I'm not holding my breath) Granted there are way more than 32 aspect names in the world, but not found in the same rule book, so we probably don't need to expend a lot of electrons worrying about that issue.

Dick :)

On 11/24/2019 2:32 PM, Bob Jacobsen wrote:
If you wanted to have signal logic in only one place (perhaps a good idea for a model railroad, but not what the prototype does in most CTC cases), then having Held be one of the set of aspects might work sometimes. JMRI could display the ¡°Held¡± state on its panels, which is the default behavior. There¡¯s an option to display the underlying aspect, which wouldn¡¯t be available, but I¡¯m not sure how often that¡¯s used. I don¡¯t know how CTC would work in this case as JMRI wouldn¡¯t be able to tell ¡°Held-but-otherwise-Clear¡± from ¡°Held-but-otherwise-Approach¡±, for example, but that¡¯s a problem for the logic which would (have to be) fully outside JMRI.

Lit vs dark is another matter. They¡¯re not the same. Of the people using e.g. approach lighting for their signals (including at least one local layout), some large fraction have their panels display the current appearance of the signal even when it¡¯s set to ¡°unlit¡±. I¡¯m not sure how many of them use a true ¡°dark¡± appearance for an aspect, though.

So JMRI could _mostly_ follow, with some exceptions, the state of a signal mast driven externally. When we tried to do that with SE8c heads (not masts), the exceptions caused a lot of confusion and the layout listening was eventually removed. But perhaps the application of masts would be OK with limitations.

Bob

On Nov 24, 2019, at 11:01 AM, billybob experimenter <jawhugrps@...> wrote:

Bob J. wrote: "Is it really known to be true that there¡¯s enough information in the DCC messages to do that for "DCC Signal Mast Decoder"? I.e. there¡¯s a way to tell held or not, lit or not from just the messages?"

Generally, the NMRA standard for "Extended Accessory Decoder Control Packet"s defines a signal mast number and a five-bit aspect value (for up to 32 possible aspects). Other than aspect 0 being "absolute stop", it does not define any specific aspect/value pairing - the user or the hardware implementation gets to decide the other aspect/value pairings.

Specifically, JMRI's "Dark" aspect is typically conveyed to a DCC extended accessory decoder as a unique "aspect number", with the mast hardware using that aspect number to turn off all lamps in the signal. Presumably the DCC extended accessory decoder supports a dark mast. JMRI already has the capability to express "dark" as a signal mast aspect. For those system JMRI configurations which support monitoring externally-generated aspect changes, such as "LNCP Signal Mast"s when operating on a LocoNet connection, JMRI will follow such external aspect changes.

Specifically, JMRI's "Held" condition is an internal state of JMRI and, so far as I can tell, is not (typically) exposed in the DCC message.

There is no reason why one could not map the "held" condition to an aspect on an extended accessory decoder, so long as there is only one aspect used in the "held" case. That "held" aspect could duplicate the appearance of another aspect, such as "absolute stop", but use a different, unused DCC aspect number. Hardware would interpret that new aspect number as an appropriate appearance. This would allow communication of the "held" state on the control communication media.

In the user's specific case, with the suggestion made above, this unique LocoNet message for the "held" state would be uniquely conveyed via LocoNet, and JMRI would be able to "detect" the message, regardless of the message's source. A JMRI mast configured as an LNCP Signal Mast, via a LocoNet connection, would have this capability, without any JMRI Java coding changes, for any signal system which defined a unique aspect for the "held" state.

So far as I know, no existing JMRI Signal System definition defines the "held" aspect as a unique aspect; I believe they all simply declare the "held" state to be equivalent to the "Stop" aspect or some similar aspect. But a simple set of changes to the user's "signal system definition" would enable this functionality.

The only limitation I can think of to such a solution to convey "held" information on the communication media is that there are only 32 possible mast aspect numbers in the DCC Extended Accessory Decoder packet. Any existing mast which implements 32 unique aspects without a defined "held aspect" would not allow adding an additional aspect for the "held" case.

Regards,
Billybob




--
Bob Jacobsen
rgj1927@...





Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

Russel,

Since the log shows the line:
2019-11-24 17:07:42,699 nce.NceConnectionStatus INFO - NCE
EPROM revision = 7.3.7 [AWT-EventQueue-0]
We know you are talking to the USB ok. Now it would seem you have it looking
for a AIU device at cab 6 address. The log shows no response for it. Same
for a device using cab 5 address. Do you have other AIU boards addressed? Do
they work?

One thing I don't recall you mentioning is the firmware version in the SB5.
Depending on that, address issues might exist. Also, what is the cab id for
the USB board you are using? That will give another clue.

I recall 1.65B had a problem with falling back to the smaller range equal to
the 1.28 firmware is a command station reset had ever been performed. So if
you check that, it could be important.

In the meantime you could test the AIU at cab id 2, 3, 4 as a test, using
whatever isn't being used by the USB. For that test, a throttle isn't
needed. That can confirm the boards are using. Of hand, I'm guessing a
problem with the address dip switches could be the likely issue.

Try using the command "NCE->Show Cabs" it will confirm what cab ids are in
use. Hit the refresh once or twice just to make sure. This is the best way
to see if you have an address issue with the boards.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


Locked Re: Webserver layout editor panel showing incorrect block occupation for a crossover

 

See .


Locked Re: Help with JMRI and nce usb,sb5,aiu01,bd20 (On the Verge of Chucking out my SBS)

 

Ken,
Spoke to soon - I am not getting the following System Console readout:

2019-11-24 17:07:38,280 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- * JMRI log ** [main]
2019-11-24 17:07:38,322 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is appended to file: C:\Users\wilki\JMRI\log\messages.log [main]
2019-11-24 17:07:38,330 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is stored in file: C:\Users\wilki\JMRI\log\session.log [main]
2019-11-24 17:07:38,350 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- PanelPro version 4.16+R6f9aced starts under Java 1.8.0_191 on Windows 10 x86 v10.0 at Sun Nov 24 17:07:38 MST 2019 [main]
2019-11-24 17:07:39,131 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile Minturn__Leadville.3ec3124a [main]
2019-11-24 17:07:40,847 node.NodeIdentity ? ? ? ? ? ? ? ? ? ? INFO ?- Using 52ab71e0-0a5b-11e9-8000-00051bd280dd as the JMRI storage identity for profile id 3ec3124a [AWT-EventQueue-0]
2019-11-24 17:07:41,347 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "NCE" [main]
2019-11-24 17:07:42,581 usbdriver.UsbDriverAdapter ? ? ? ? ? ?INFO ?- NCE USB COM3 port opened at 19200 baud [main]
2019-11-24 17:07:42,699 nce.NceConnectionStatus ? ? ? ? ? ? ? INFO ?- NCE EPROM revision = 7.3.7 [AWT-EventQueue-0]
2019-11-24 17:07:43,764 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path program: is C:\Program Files (x86)\JMRI\ [main]
2019-11-24 17:07:43,764 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path preference: is C:\Users\wilki\JMRI\Minturn__Leadville.jmri\ [main]
2019-11-24 17:07:43,779 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path profile: is C:\Users\wilki\JMRI\Minturn__Leadville.jmri\ [main]
2019-11-24 17:07:43,779 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path settings: is C:\Users\wilki\JMRI\ [main]
2019-11-24 17:07:43,779 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path home: is C:\Users\wilki\ [main]
2019-11-24 17:07:43,779 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
2019-11-24 17:07:45,047 PanelPro.PanelPro ? ? ? ? ? ? ? ? ? ? INFO ?- Main initialization done [main]
2019-11-24 17:08:53,446 nce.NceSensorManager ? ? ? ? ? ? ? ? ?WARN ?- timeout awaiting poll response for AIU 6 [NCE Sensor Poll]
2019-11-24 17:08:53,446 jmrix.AbstractMRTrafficController ? ? WARN ?- Timeout on reply to message: 9B 06 consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
2019-11-24 17:08:53,663 jmrix.AbstractMRTrafficController ? ? WARN ?- timeout flushes receive buffer: 30 [nce.NceTrafficController Receive thread]
2019-11-24 17:09:33,479 nce.NceSensorManager ? ? ? ? ? ? ? ? ?WARN ?- timeout awaiting poll response for AIU 6 [NCE Sensor Poll]
2019-11-24 17:09:33,479 jmrix.AbstractMRTrafficController ? ? WARN ?- Timeout on reply to message: 9B 06 consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
2019-11-24 17:09:33,697 jmrix.AbstractMRTrafficController ? ? WARN ?- timeout flushes receive buffer: 30 [nce.NceTrafficController Receive thread]
2019-11-24 17:10:13,496 nce.NceSensorManager ? ? ? ? ? ? ? ? ?WARN ?- timeout awaiting poll response for AIU 5 [NCE Sensor Poll]
2019-11-24 17:10:13,496 jmrix.AbstractMRTrafficController ? ? WARN ?- Timeout on reply to message: 9B 05 consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
2019-11-24 17:10:13,531 jmrix.AbstractMRTrafficController ? ? WARN ?- timeout flushes receive buffer: 30 [nce.NceTrafficController Receive thread]
2019-11-24 17:10:18,930 audio.JoalAudioFactory ? ? ? ? ? ? ? ?INFO ?- Initialised JOAL using OpenAL: vendor - OpenAL Community version - 1.1 ALSOFT 1.15.1 [Listed Table Generation]
2019-11-24 17:10:53,499 nce.NceSensorManager ? ? ? ? ? ? ? ? ?WARN ?- timeout awaiting poll response for AIU 6 [NCE Sensor Poll]
2019-11-24 17:10:53,499 jmrix.AbstractMRTrafficController ? ? WARN ?- Timeout on reply to message: 9B 06 consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
2019-11-24 17:10:53,704 jmrix.AbstractMRTrafficController ? ? WARN ?- timeout flushes receive buffer: 30 [nce.NceTrafficController Receive thread]
2019-11-24 17:11:33,501 nce.NceSensorManager ? ? ? ? ? ? ? ? ?WARN ?- timeout awaiting poll response for AIU 5 [NCE Sensor Poll]
2019-11-24 17:11:33,501 jmrix.AbstractMRTrafficController ? ? WARN ?- Timeout on reply to message: 9B 05 consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
2019-11-24 17:11:33,706 jmrix.AbstractMRTrafficController ? ? WARN ?- timeout flushes receive buffer: 30 [nce.NceTrafficController Receive thread]


On Thu, Nov 21, 2019 at 6:43 PM Ken Cameron <kcameron@...> wrote:
I would suggest that you use all four jumpers on and change your baud rate
to 19,200.

Next, I presume you confirmed the USB version by looking at the JMRI log
during startup?

Then, make sure the AIU has a valid address set. I'd suggest trying 3 first
for the address.

Add the sensor to JMRI, I'd use the address value and :1 for the value. So
3:1 for the first sensor. I'd add the box to set a range and give it a 14.
This way all your sensors are created.

Then try toggling a sensor with a wire from the common pin on the AIU to the
input pin, try more than one. Do any of the sensors change?

Last would be including your Help->Console Log, cut/paste it into the email.
It will tell us lots if something isn't working right.

-Ken Cameron, Member JMRI Dev Team











Locked Re: Read type from decoder

 

Paul,

On 25 Nov 2019, at 10:13 AM, Paul Champlin <paul.champlin@...> wrote:

What am I doing wrong? In an attempt to build my Roster, when I ¡°create new loco¡± and select ¡°Read type from decoder¡± all I get on multiple locos is ¡°Found mfg 123 (Massoth Elektronik, GmbH) version 123; no such decoder defined¡±
If you get "Found mfg 123 (Masoth Electronic, GMBH) version 123; no such decoder defined.", and/or all CVs return a value of 123 and long address 15,227 it is 100% certain that the configuration is not set up to communicate with the decoder and that one of two possibilities have happened:
1) Preferences->Defaults has Service Programmer (and possibly other items) set to Internal.
2) Preferences->Connections has System Connection set to Simulator.

Possibility (1) is the most likely for older JMRI versions. It would most likely have occurred due to a previous failure to open a connection. If there is no alternative to Internal, you currently have a problem with the connection to your DCC system and you need to resolve the connection problem before proceeding. If an alternative is available select that, restart JMRI and try again.

If you have JMRI 4.16 or later, possibility (1) is less likely to occur.

Dave in Australia


Locked Read type from decoder

 

What am I doing wrong? In an attempt to build my Roster, when I ¡°create new loco¡± and select ?¡°Read type from decoder¡± all I get on multiple locos is ¡°Found mfg 123 (Massoth Elektronik, GmbH) version 123; no such decoder defined¡±

Thoughts?

thanks
Paul


Locked Re: Signaling feedback to Panels

 

At least in some systems, ¡°dark¡± is a valid appearance, at least for parts of a mast.







So JMRI uses the lit vs unlit language to try to separate ¡°the signals lamps are not powered due to e.g. approach lighting¡±; ¡°dark¡± is used to mean ¡°this signals appearance includes this lamp not showing any light¡±


On Nov 24, 2019, at 2:27 PM, Ken Cameron <kcameron@...> wrote:
to
It should be mentioned that when a signal is dark, it would still have an
aspect, like stop or clear, it just would not be lighting the output. This
is needed because other signals next to it would base their aspects on the
aspect of this signal. If the concept of signal logic is integrated inside
the signal, it being dark should hide what state it would show should it
become lit.
--
Bob Jacobsen
rgj1927@...


Locked Re: Signaling feedback to Panels

 

It should be mentioned that when a signal is dark, it would still have an
aspect, like stop or clear, it just would not be lighting the output. This
is needed because other signals next to it would base their aspects on the
aspect of this signal. If the concept of signal logic is integrated inside
the signal, it being dark should hide what state it would show should it
become lit.

Held is kind of different, while it isn't really an aspect, it causes a
specific aspect regardless of the signal logic. Typical case is stop (or
danger) even when the logic would otherwise has computed clear.

I think this is why Bob J was pointing out that simply knowing the
appearance (displayed aspect) does not let you know about these other
features. So depending on what is known or not about the signal determines
if you can accurately represent it externally to that signal. Granted for
some people, it will need the extra details to be considered right. Others
will not require that high of an accuracy about the signal. I think this
ambiguity is part of why JMRI doesn't do some things others might consider
simple.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


Locked Re: Signaling feedback to Panels

 

Bob J.,

Without JMRI Java code changes, differentiating something like "held, but would be clear if not held" from other "held" aspects would indeed be impossible to differentiate via watching the DCC Extended Stationary Decoder (or equivalent) traffic on the communication media.

With code changes, and signal system definition changes, one could include "Held-but-would-be-clear", "Held-but-would-be-Approach", etc. as unique aspects with unique DCC Extended Accessory Decoder aspect numbers, in the signal system definition. That would likely cause follow-on problems, though, especially for any code that monitors signal aspect information to determine how to run a train.

At least in the common prototype "approach-lit" signal circuits I have seen, the "aspect" information is always calculated, and is always reported to the signal(s) protecting movements in the approach to the signal, regardless of its lit/dark state. Whether or not a given signal is lit is not reported to the signals in the approach to the signal. JMRI models this at the mast level, but it does not model this behavior as part of DCC Extended Stationary Decoder (or equivalent) aspects.

One could spend a LOT of effort trying to model these kinds of behavior as part of the JMRI signal system definition, the DCC Extended Stationary Decoder traffic, and the Extended Stationary Decoder configuration. And face all of the issues of "too few aspects" available in the DCC packet, and the coding issues associated with all of the other JMRI features that rely on signal aspects for proper movement of trains and calculation of signals.

Such a JMRI coding effort seems like too much effort for dubious gain.

Regards,
Billybob


Locked Re: speed matching

 

¿ªÔÆÌåÓý

My reply comments are interspersed below.

?

Also,? have you used the DecoderPro ¡°New Loco¡± button to identify the decoder or did you select it from a list.? (I¡¯m presuming you are using DecoderPro since you are asking on the Jmriusers forum.)? Identifying the exact make and model decoder often goes a long way in providing help.

?

I don¡¯t think you will find the E-Z Command decoders very satisfying.? I consider them an ¡®entry level¡¯ decoder; you desire to control speeds is above entry level.

?

Ross

?

From: [email protected] <[email protected]> On Behalf Of george.pendergraft
Sent: Sunday, November 24, 2019 3:22 PM
To: [email protected]
Subject: Re: [jmriusers] speed matching

?

Hi Ross,
I read the spec sheet I got with the loco and it says that the decoder has 28 step capability. And the decoder is an E-Z command decoder.
I placed the loco on the programming track and used the Digitrax Zepher to "status? edit" and set it to 28? speed steps.

?

  • ¡®Status editing¡¯ the address to 28 speed-steps would be correct for this decoder.

?

  • Changing ¡®speed steps¡¯ will not affect the speed range of the locomotive.? Decoders do not have a continuously variable output ¨C their output is in ¡®distinct¡¯ steps across the speed range.? A decoder operating at 28 speed steps will have 28 distinct speeds from stop to maximum; a decoder operating at 128 speed steps will have 128 distinct steps from stop to maximum.? Maximum speed will be the same in both cases

?

?

And as I said before using the speed table did nothing to change the speed slow or fast. I even set the table to go all out 255, but have found since that the decoder will not allow that.

?

  • AFAIK, none of the E-Z Command decoders have speed adjustment other than V-start.? I just noticed that the DecoderPro definition for the 4-function E=Z Command decoder includes a speed table.? I couldn¡¯t find a reference to a speed table in any online Bachmann documentation.? This may be an error in the DecoderPro decoder definition.? Your spec sheet should indicate the appropriate speed control CVs if they are implemented in your decoder.


You are saying that the decoders in the two locos that I am trying to speed step cannot be adjusted that way? Would that be a non NRA compliant decoder? I thought that Bachmann has been up to the standard?

?

  • NMRA Conforming requires that the NMRA ¡®mandatory¡¯ CVs be implemented per the NMRA specs.? If any ¡®recommended¡¯ or ¡®optional¡¯ CVs are implemented they must follow the NMRA specs for those CVs.? ?None of the speed control CVs are mandatory thus not required for a ¡®minimum¡¯ NMRA Conforming decoder.

?


I looked for a compatible decoder to replace the board on the Bachmann locos, but could not find an exact match. I have not done much looking for decoders as all of my engines are mostly Bachmann or Digitrax, mostly Digitrx. Is there a way to find a decoder board that has the head and rear light built in that will fit?
into a SD9 or GP30?

?

  • The Digitrax ¡®Decoder Selector¡± might help you.? Other decoder manufacturers have similar selectors on their web sites.? You can also ask for help on the Digitrax forum ¨C not suitable here on the Jmriusers forum (IMHO).? I don¡¯t recall you mentioning scale ¨C although your comment on including lights leads me to believe these are N-scale models.

?

?

Thanks
George
?


Locked Re: Scripting, Jython and importing selfwritten functions - crash and burn

 

Hi Dave. I never thought of that. Thank for your advice.
One last?question (maybe).
The function file? JMRI loads that and keeps it in memory it seems. Changes made in that file will not show up in the main script. Is there a way to force the reload of the function file without having to close down JMRI itself?

DC

s?n. 24. nov. 2019 kl. 18:36 skrev Dave Sand <ds@...>:

Dag Cato,

I recommend that you keep your scripts in the user files location.? In Preferences >> File Locations, set the script path.? This way JMRI upgrades don't affect your custom scripts.

Dave Sand



----- Original message -----
From: "Dag Cato Sk?rvik" <dag.cato.skarvik@...>
Subject: Re: [jmriusers] Scripting, Jython and importing selfwritten functions - crash and burn
Date: Sunday, November 24, 2019 11:25 AM

Hi Dave.? Thanks for you help. It wasn't the dash that was the original problem. (There where no dash in the original file) But you did point me in the right direction. After changing the filename I tried again without help.
Then I decided I would run the main script from the panels/run script command. When the dialogbox opened I saw that it was pointing to the jython-directory. I stored my files in another directory. So when I moved to function file to the jython directory it worked :-)

Dag Cato

s?n. 24. nov. 2019 kl. 17:50 skrev Dave Sand <ds@...>:

Dag Cato,

The problem appears to be the dash in the "my-functions" name.? The underscore character works.

Dave Sand



----- Original message -----
From: "Dag Cato Sk?rvik" <dag.cato.skarvik@...>
Subject: [jmriusers] Scripting, Jython and importing selfwritten functions - crash and burn
Date: Sunday, November 24, 2019 6:14 AM

Hello guys,
behind this heading lies nothing more than the wish two write functions in jython, saving them in a separate file and calling them from the main script.

Why? Just to try to keep the code more manageable.

I am no programmer at all. Learnt a little bit of Pascal and C/C++ in my youth.
My computer is a Elitebook bought on a fleamarket many years ago.
Java version is 11.0.5 64-bit
Windows 10 Version 1903 for x64 (KB4522741)
JMRI 4.17.3
Loconet simulator

Python has a import function.
If I hava a function test in a file called my-functions.py
I hoped that I was able to import?the function with this code

import my-functions
my-functions.test()

I doesn't work. Nothing happenes.
Well the latter is not quite the truth :-)

When i run the code with the Message Log window open?the whole JMRI crashes. I even have to go kill Java manually to start JMRI again. Without the Log Window opened I can just continue, everything is just fine.

But my question is about the import function. Can I use it in jython or do I have to live with having the functions in the main script?

MVH
Dag Cato








Locked Re: speed matching

 

George, Did you let DecoderPro determine the decoder type via " Read type from decoder"?

If the DecoderPro definition says speed table is an option but your testing shows different, then the definition file could be erroneous.

What are the values of CV7 and CV8 ?? Maybe we need to correct the definition.? Only the Bachmann 36-550 has the speed table option.

Marc


Locked Possible Bug? DCC++ Base Station Configuration

 

Possibly not a bug because the solution is sort of expected, It may just be me but it took me 3 days to discover this.
JMRI 4.17.6 and older
Windows 10
Cannot read from or write to the DCC++ eeprom if using one DCC++ connection with other(s) disabled. Acces returns when disabled connections are deleted.
Cheers Steve



?
--
Steve 009 in UK