开云体育

Date

Locked Re: CVP's AD4 Programming Error

Jon Miller
 

Ok, I'm starting to figure this out, I think. AD4's only program by
"card number" so a card number of say 26 has decoder addresses of 101, 102,
103, and 104. So using the addresses of 1 to 63 in CV521 (CV1) shows me a
card address in DecoderPro, not the output addresses. Remember now that
Card address #64 is skipped, which are output addresses of 253, 254, 255,
and 256.
Now when I put a number in CV521 (CV9) I start getting numbers that
resemble output addresses. Remember I said I put a 10 and a 1 in their
respective CV's and got the number 266. That's starting to sound like an
output address not a card number.


Locked Re: CVP's AD4 Programming Error

Jon Miller
 

Bob,
I thought everything worked yesterday but today is a different day. I
had no luck with the PR1DOS and MS100. Using DecoderPro it didn't want to
read either but I could change the address. Using the single bit programmer
would change the address everytime but to strange values.
I bought a booklet from Keith when I order the AD4 so I could read
it.CV513 (CV1*) is the and CV521 (CV9*) is the but it says this. "Long"
ard numbers are accessory decoder card numbers above 63. When higher than
63 must be split into two values--sic--- strange split because CV513 only
has 6 bits (NMRA specs). 3 more bits are stored in CV521. Thus 9 bits
gives 511 unique decoder addresses.

I tested and put a 10 in CV1 and a 1 in CV9 and this resulted in an
address of 266, as if I had a 10 and a 4 programmed. Keith uses a special
macro in his command station to do it.

*Digitrax Chief CV's

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Re: CVP's AD4 Programming Error

 

At 9:31 PM +0000 8/10/02, original_black_bart wrote:
To Jon and other testing CVP's AD4 DecoderPro file,

I managed to get a little time this afternoon to modify the screen
format for the AD4. I've run into a little bug and wondered if
someone would be kind enough to program their AD4 to an address
greater than 63, then read the data back and confirm the write.

Based on what I've seen while testing this out this afternoon, any
address greater than 63 is not written properly to the decoder. I
don't think CV9 is being set correctly but I can't tell for sure as
I'm working with a PR-1 to read back my data. Your confirmation of
such would be appreciated.
There may well be a bug there, as that's the new code that I wrote without a way to test directly.

There are a couple of things that might help figure out what it's doing wrong. The "Simple Programmer" from the tools menu will let you read back the value from CV9 to see what it was sent to. Using the "Comprehensive" programmer format will give you a CV pane where you can see the intended contents (although you might not want to trust it, as the bug could have effected that too).

And adding the line:

log4j.category.jmri.jmrit.symbolicprog=DEBUG

to the default.lcf file will generate trace information from the programming operations. (You might want to send that to a file; there are instructions at the top of the file for how to do that)

Sorry for the trouble.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel

Robin Becker
 

Bob,

Another alternative to consider: just have a righthand and a lefthand
turnout, but allow the user to rotate them once they are on the panel. You
could do the same with blocks, etc. This would cut down on the number of
individual symbols in the list, and I don't think having to rotate the
symbol (from the elusive popup menu <G>) would be a big deal. Just a
thought.

Later on you might want to allow copy operations on symbols already
displayed, and the copy could pick up the orientation as well which would
make it very easy. (assuming of course that the ID can be accessed from the
popup menu)

Robin

-----Original Message-----
From: Bob Jacobsen [mailto:Bob_Jacobsen@...]
Sent: Friday, August 09, 2002 4:00 AM
To: jmriusers@...
Subject: RE: [jmriusers] 1.0.3 control panel


At 9:32 AM -0700 8/8/02, Robin Becker wrote:
>I think there is a naming issue here with turnouts that might cause
>confusion (it confused me anyway). Normally a lefthand turnout means the
>diverging route goes to the left of the main route, so the "upper right"
>turnout in the control panel is a "lefthand" turnout.
>

I was using "right" to mean "train going right goes along the main
route". But of course it also means "right-hand turnout". I'd been
using "upper" and "lower" for which direction the turnout goes, but
that's even more confusing because "upper" could be "right-hard" if
the direction was "left" or "left-hand" if the direction is "right",
etc.

The whole thing ends up sounding like an Abbott & Costello routine,
and should be abandoned.

How about "east" for "is oriented to the right", "north" for is
oriented up the screen, etc? Then turnouts can be called by their
handedness.

Of course, somebody will come up with a prototype where "east-bound"
trains went left on the control panel....

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.

Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Locked CVP's AD4 Programming Error

original_black_bart
 

To Jon and other testing CVP's AD4 DecoderPro file,

I managed to get a little time this afternoon to modify the screen
format for the AD4. I've run into a little bug and wondered if
someone would be kind enough to program their AD4 to an address
greater than 63, then read the data back and confirm the write.

Based on what I've seen while testing this out this afternoon, any
address greater than 63 is not written properly to the decoder. I
don't think CV9 is being set correctly but I can't tell for sure as
I'm working with a PR-1 to read back my data. Your confirmation of
such would be appreciated.

Bob


Locked Compilling and running JMRI

sixth_rule
 

i downloaded Jbuilder
and got the zip file on the sourceforge pagei loaded up the code and
hit the run button and i get 5 erros
all involving this line

static org.apache.log4j.Category log =
org.apache.log4j.Category.getInstance(LocoNetMessage.class.getName());

Chad Spickett


Locked Re: CVP's AD4 Decoder

Jon Miller
 

Mine is revision 62. I see the data. The 4, 5, and 6 are probably
major revisions and the second digit are minor revisions. Just a guess
until I hear from Keith. Will put a note on the Yahoo site and see what
comes for an answer.
I know it says to be compatible with the Chief it needs to be 5.0 or
greater.

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Re: CVP's AD4 Decoder

original_black_bart
 

John,

Information found in the AD4 Accessory Decoder Manual [See page 5,
Accessory Decoder CV's, CV 519 (7)]indicates software versions 4, 5
and 6 have shipped since the manual was printed in 1999. What
version number do you read via CV7?

Bob

--- In jmriusers@y..., "Jon Miller" <atsf@i...> wrote:
Once I got my head screwed on straight I tested my AD4's.
Little things
like "Direct Mode only" and removing the jumper help<G>. As mine
are for
slow motion machines I don't have the pulse part on my boards.
Programming
seems to be fine. I didn't test the flash rate part.
There is a manufactures ID and version number for AD4's CV's
519 (7) and
520(8). CV8 works just fine and identifies my unit as CVP
products but CV7
doesn't pick up my revision of 62. I guess we would have to check
with CVP
to determine the revision numbers associated with the AD4's, which
I will do
sometime today. Bob (Black Bart) as you are playing with the AD4
file I
will get the information to you as some as I can!

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Re: CVP's AD4 Decoder

Jon Miller
 

Once I got my head screwed on straight I tested my AD4's. Little things
like "Direct Mode only" and removing the jumper help<G>. As mine are for
slow motion machines I don't have the pulse part on my boards. Programming
seems to be fine. I didn't test the flash rate part.
There is a manufactures ID and version number for AD4's CV's 519 (7) and
520(8). CV8 works just fine and identifies my unit as CVP products but CV7
doesn't pick up my revision of 62. I guess we would have to check with CVP
to determine the revision numbers associated with the AD4's, which I will do
sometime today. Bob (Black Bart) as you are playing with the AD4 file I
will get the information to you as some as I can!

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Getting ID info (was Re: 1.0.3 test installer uploaded)

original_black_bart
 

Bob,

With a clearer understanding of the need, I'd be willing to take on
the task of compiling the decoder information. I assume you'd want to
know the Decoders Manufacturer, Model Number and Version Number(s).
How do you wan the data collected - spreadsheet (Excel), database
(Access) or other means?

Bob
afticarr@...

--- In jmriusers@y..., Bob Jacobsen <Bob_Jacobsen@l...> wrote:

<Snip, Snip, Snip...>

Can I ask other people to spend a few minutes gathering that info?
Specifically, I think we can make the automatic ID work much better
if people will send me the CV7 value(s) that they see for each
decoder type they have. This is easy to do with the "simple
programmer" from the tools menu; just put in 7 as the CV address
and
click "read" for each decoder you've got.

Even better would be if somebody would volunteer for the task of
accumulating that info. I'd be happy to edit the files, but if
somebody else could prompt people to generate it and enter the
info,
that would let me work on some other stuff. (I do have a day job,
unfortunately)

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@l..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel questions

Alex Shepherd
 

needs some more research to really
determine what is supposed to happen. I'll have a did into the swing demo
samples, maybe they will reveal the secret...
Found it - the MouseEvent.isPopupTrigger() needs to be checked in the
Released event not the Pressed

I shifted showPopUp() to the Released event and it works as expected

Alex


Locked Re: 1.0.3 control panel questions

Alex Shepherd
 

Thanks, I'd appreciate it. The mouse events are handled primarily in
jmri.jmrit.display.PositionableLabel where I decode what's going on,
then invoke a subclass method to really display the popup. There's a
lot of debugging there, so if you just turn on the log4j category with
Well making the change below

if (e.isPopupTrigger() || ( ( e.getModifiers() &
MouseEvent.META_MASK ) != 0 ) ) {

allows a "Right-Click" to activate the popup so it now works for Win2K at
least. I'm not really sure how isPopupTrigger() will ever return true as it
is not obvious from the source - needs some more research to really
determine what is supposed to happen. I'll have a did into the swing demo
samples, maybe they will reveal the secret...

Alex


Locked Re: 1.0.3 control panel

 

At 9:32 AM -0700 8/8/02, Robin Becker wrote:
I think there is a naming issue here with turnouts that might cause
confusion (it confused me anyway). Normally a lefthand turnout means the
diverging route goes to the left of the main route, so the "upper right"
turnout in the control panel is a "lefthand" turnout.
I was using "right" to mean "train going right goes along the main route". But of course it also means "right-hand turnout". I'd been using "upper" and "lower" for which direction the turnout goes, but that's even more confusing because "upper" could be "right-hard" if the direction was "left" or "left-hand" if the direction is "right", etc.

The whole thing ends up sounding like an Abbott & Costello routine, and should be abandoned.

How about "east" for "is oriented to the right", "north" for is oriented up the screen, etc? Then turnouts can be called by their handedness.

Of course, somebody will come up with a prototype where "east-bound" trains went left on the control panel....

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: CVP's AD4 Decoder

 

At 12:12 AM +0000 8/9/02, original_black_bart wrote:
I've had an opportunity to test functionality of the AD4 file.
Programming via a Digitrax DB150, readback via PR-1. Values are sent
as expected. In reviewing the fle, I've noticed a few that
programming is permitted via paged mode. This needs to be changed as
the AD4 doesn't support such.
Thanks for checking!

Which modes work for it? I couldn't tell from the manual.

Trusting that it's okay with you and the readers of this NG, I'm
going to tinker around with the XML file to see if I can't format the
display a little better. For example,; indication of time in 1/10
seconds when setting a pulsed signal. Should be able to review and
respond on htis by Saturday.
Sounds great, thanks.

All of the formatting is in the "pane" section at the bottom of the "CVProducts_AD4.xml" file. Eventually, some of that should move to the programmer files, so that its common across multiple stationary decoders, but since we've just got the one now I put it all in the single file.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel questions

Robin Becker
 

Bob,

From what I gather about the menu, right mouse click would be the usual way.

Robin

>
>> >Once icons are placed on the control panel, the tooltip says
>> "Alt-click to
> > >see menu, drag with meta key..."
>...
>Tried CTRL or ALT with left and right mouse buttons but nothing causes a
>menu to pop up.
>
>The right mouse button seems to be the "meta" key.

OK, I'm clearly confused.

What does one normally do to get pop-up menus on a Windows machine?
e.g. in other applications, etc. Is there a standard?


Locked Re: problem compiling source code

 

Try the file "jb1.0.3.zip" from the usual download location. It'll (hopefully) unpack to a file tree with a "java" directory, containing a "jmri.jpx" file that JBuilder can work from.

Bob

(Who's about to go offline for about 36 hours)
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel questions

 

At 4:00 PM +1200 8/9/02, Alex Shepherd wrote:
> What does one normally do to get pop-up menus on a Windows machine?
e.g. in other applications, etc. Is there a standard?
Bob,

I you like, I can take a look at this if you can tell me where to look in
the code for the mouse events.
Thanks, I'd appreciate it. The mouse events are handled primarily in jmri.jmrit.display.PositionableLabel where I decode what's going on, then invoke a subclass method to really display the popup. There's a lot of debugging there, so if you just turn on the log4j category with

jmri.jmrit.display.PositionableLabel = DEBUG

and click around you'll probably find what I did wrong.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel questions

Alex Shepherd
 

What does one normally do to get pop-up menus on a Windows machine?
e.g. in other applications, etc. Is there a standard?
Bob,

I you like, I can take a look at this if you can tell me where to look in
the code for the mouse events.

Alex


Locked Re: problem compiling source code

 

At 8:15 PM +0000 8/8/02, sixth_rule wrote:
what is a CVS checkout. and what repository all i found was the
source code snapshots on your technical page
The code snapshots are really meant as "snapshots" for browsing, rather than a starting point for working with the code.

CVS is a tool for keeping lots of copies of files up to date. The people at SourceForge.net host a "repository" that has master files. Via the CVS tool, you can create a local copy where you can compile, make changes, etc. Then, when somebody else updates the central copy (e.g. we fix bugs, add features, etc), you can just say "cvs update" to get all those changes made in your local copy. This is better than just downloading a new set of files, because all of your local changes are still in your local copy.

Once CVS is installed on your machine, you start the process by saying:

cvs -d:pserver:anonymous@...:/cvsroot/jmri co ant

I'll add some more on how to get CVS, start this, etc to the tech web page in a day or two when I've got a better net connection (I'm in the last stages of a trip now and sending mail from pay phones)

I'll also package up a .zip file with everything you do need to get started, just as if you'd done that with CVS. That'll let you play with the code for a while without having to install any other tools. But it'll be a couple of days until I'm able to do this, sorry for the delay.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel questions

 

At 8:52 AM -0700 8/8/02, Robin Becker wrote:
Can you view the sensor or turnout number once you place them on the panel?
Sorry, gave a confusing answer to that before.

The ID numbers are in the popup menu. But that doesn't help until we get the popup working for you.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.