Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
Locked
Re: Serial port too slow? Can anything work.
At 3:33 PM +0000 6/13/02, scottdouglasgoodwin wrote:
Here's the problem. The windows serial driver has a built inI've just spent a long day trying to get the RXTX implementation to work at 16457 baud. My apologies for the length of this; if you're not interested in hardcore details, please skip the rest of the email. But if there's any chance you can help, I'd appreciate it. The good news: It's now pretty clear what the code is doing. After various preliminaries, there's a case statement that takes the 'speed' as an integer (e.g. 9600) and converts it to a defined constant (e.g. B9600). This value then is used to invoke if( cfsetispeed( &ttyset, cspeed ) < 0 || cfsetospeed( &ttyset, cspeed ) < 0 ) { report( "nativeSetSerialPortParams: Cannot Set Speed\n" ); goto fail; } where the constant was in the "cspeed" value and ttyset is a termios structure. This can't handle the LocoNet rate, as cfsetispeed doesn't know about that rate; there's not a B16457 constant to express it, and the code doesn't look for it. There is some code for dealing with the divisor explicitly. It's only compiled in if WIN32 is _not_ defined: if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { goto fail; } ... sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); if ( sstruct.baud_base < 1 || ioctl( fd, TIOCSSERIAL, &sstruct ) < 0 ) { goto fail; } (In the snippet above, cspeed contains the rate as an integer, not as a defined constant; yes, that's confusing.) This is the point where it gets wierd. Note that cfsetispeed isn't part of the native windows API, so what's happening here? The RXTX maintainers have produced their own implementation of cfsetispeed on top of the Windows routines! It lives in their termios.c and win32termios.h. cfsetispeed and cfsetospeed just make notes for a latter copy to a Windows DCB's BaudRate member; ioctl(.., TIOCSSERIAL, ...) doesn't do anything at all! So after a huge amount of indirection, the program really is just setting dcb.BaudRate and invoking SetCommState. Amazing! All of the above is based on static analysis, but it looks right. Now for the bad news. Despite 15 hours of effort (c.f. ) I still can't get the original program to compile! RXTX is a Linux project, so their instructions involve cross-compiling with gcc. It's a mess of Java-generated headers, headers copied from Windows to Linux, etc, all munged together by a 7k-line configure script. I've appealed for help from the maintainers mailing list. I'm not sure what else to do. The easiest hack (if I could get it to compile!) would be to change the mapping so that some other baud rate actually gets written to the DCB as 16457. For example, nobody uses 110 baud anymore, so I could just hack this line: case B110: ret = CBR_110; break; (CBR_110 is literally 110, and will eventually be loaded into the DCB) to case B110: ret = 16457; break; then have the program try 110 baud on Windows. If I could just get the $%%^$& thing to compile!!! Anybody feel like trying to edit the binary contents in a .dll? Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
Re: 2nd try at Windows installer
Alex Shepherd
I've made a second try at a Windows installer. If all goes wellSeems to work great. One other minor thing you could set in the shortcut is to run the batch file "Minimised so that the Command window is not promenently placed in the centre of the screen. I had thought that starting a java app using the javaw command made it detach from the console and allow the command window to close. However after a quick play, there must be more to it than that... Alex |
Locked
Re: One brave sole/ICONS
Robin Becker
Jon,
toggle quoted message
Show quoted text
I have the updated file that I just sent to Bob. Go to then Right-Click on decpro.ico, and select "Save Target As" to get the file onto your machine. Robin -----Original Message-----
From: Jon Miller [mailto:atsf@...] Sent: Saturday, June 29, 2002 4:47 PM To: jmriusers@... Subject: Re: [jmriusers] One brave sole/ICONS I downloaded AWicons and this seems like the program to use. 16 & 32 bit color, plus other stuff. Icon size 16, 32, 48, 64, and custom. Just like a draw program. It will import other icons as I checked it with the ones Bob linked to. It wants you to register in 30 days ($19). Now all we need is an artist<G>! Jon Miller AT&SF For me time has stopped in 1941 Digitrax DCC owner, Chief system NMRA Life member #2623 Member SFRH&MS 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
Re: One brave sole/ICONS
Jon Miller
I downloaded AWicons and this seems like the program to use. 16 & 32
bit color, plus other stuff. Icon size 16, 32, 48, 64, and custom. Just like a draw program. It will import other icons as I checked it with the ones Bob linked to. It wants you to register in 30 days ($19). Now all we need is an artist<G>! 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: One brave sole
Al Silverstein
Bob,
toggle quoted message
Show quoted text
I have patients. I have waited this long. I can wait longer. What is a few more weeks if it works. Al ----- Original Message -----
From: Bob Jacobsen To: jmriusers@... Sent: Saturday, June 29, 2002 2:32 PM Subject: Re: [jmriusers] One brave sole At 11:08 PM -0400 6/28/02, Al Silverstein wrote: > >When I tried to launch DP I received the message "Failed to set the >current baud rate for the MS100. Port is set to 9600baud. See >readme file for more info. The baud rate is grayed out at 16600. Jon's already replied, but I thought I'd add my apologies that it's taken so long to get this problem resolved. Until recently, I didn't have a PC readily available for testing on Windows. With my son's recent 10th birthday, I bought him a present (ahem) of a cheap PC that's currently resident in the train room. So now I'm learning Windows. The first project is the installer, and next I start on the MS100 baud-rate problem. Thanks for your patience. I really do want to get all this resolved before the NMRA convention next month. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. 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
From scratch (was RE: Looking for a brave soul to try a Windows installer)
At 12:05 PM +0200 6/29/02, Aleksandar Vukalovic wrote:
Dear Gentlemen, please, can we go from beginning?I think the simplest approach is: 1) Download the installer from and run it 2) If Java is not present, it will take you to a Sun download page & quit. Click the download button on that page, follow any instructions that come up, and wait for it to complete. (It's a big download, and may take some time) 3) Rerun the installer again. It should go OK this time. 4) From the Start Menu -> Programs -> Jmri run the DecoderPro program. A preferences window will pop; select your DCC type (NCE, EasyDCC, etc), comm port, and click "save". You'll be asked if you want to quit, say yes. 5) Restart the program and you're ready to go. (I've not yet updated the README file to use the above steps, will do that soon). You don't need to know anything about Java, and the new installer is supposed to handle all the rest of the details. One problem: Windows XP will _not_ work with a Digitrax LocoNet via a MS100 yet. If you have a Digitrax command station, you'll need to use a LocoBuffer, or wait a week or two. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
Re: One brave sole
At 11:08 PM -0400 6/28/02, Al Silverstein wrote:
Jon's already replied, but I thought I'd add my apologies that it's taken so long to get this problem resolved. Until recently, I didn't have a PC readily available for testing on Windows. With my son's recent 10th birthday, I bought him a present (ahem) of a cheap PC that's currently resident in the train room. So now I'm learning Windows. The first project is the installer, and next I start on the MS100 baud-rate problem. Thanks for your patience. I really do want to get all this resolved before the NMRA convention next month. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
Java install (was re: Looking for a brave soul to try a Windows installer)
At 5:42 PM -0700 6/28/02, Jerry Drews wrote:
As you must have suspected, my machines did not have the Java softwareActually, I thought that the installer was checking for the presence of Java, and would have mentioned if it didn't find it. Since it hadn't, I was a little confused. But one can never really overestimate the subtlety of Windows. There are apparently some Windows systems that come with _part_ of Java. That was enough to fool my simple test, while still confusing the rest of the installer and probably not letting the program run. I've beefed-up the checking, and added some error handling. Hopefully the new version will work better. Sorry for the extra work. Having done this, I re-ran the install and it seemed to complete correctly.... .DecoderProThose are real bugs in that version; the first problem is the fault of the installer, and the second one was in the code itself. They are hopefully now fixed in the new upload, thanks for the detailed info. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
Installer splash screen (was Re: Looking for a brave soul to try a Windows installer)
At 12:02 PM -0700 6/28/02, Bob Jacobsen wrote:
At 10:09 AM -0700 6/28/02, Jerry Drews wrote:Mindvision agreed to let me use the installer tool without charge. I think that's a great thing for them to do. But in return they want to keep that first screen as advertising, which seems fair. They were happy to add a "click to continue line". The new screen is in the installer I just uploaded. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
2nd try at Windows installer
I've made a second try at a Windows installer. If all goes well (hah!), this will be the distribution form for Windows from now on.
The installer can be downloaded from: The changes include: New icons from Robin Becker - thanks! It's starting to look like a real program... Fix of the null reference crash located by Alex Shepherd Shortcut and program items now function properly Improved check for Java being present; if it's not found, quit installer and take user to the Java download page Preferences are now stored in "Windows standard location". This is a mixed blessing; it's necessary to get the uninstall and reinstall operations to work reliably, but it means that you'll have to search around if you ever need to find the preferences manually. And if you upgrade your Windows version, you might have to re-enter your DecoderPro preferences (probably the least of your problems then, but still a pain) Thanks in advance for trying this, I appreciate any comments, suggestions, etc. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
Re: Looking for a brave soul to try a Windows install er
Dear Gentlemen, please, can we go from beginning?
I have XP and same problem. How and what I need to install Java? Do I have to know something or anything about Java, for install and using JMRI? Thanks in advance. Best regards, Aleksandar |
Locked
Re: Looking for a brave soul to try a Windows installer
Alex Shepherd
The installer currently adds it to the JVM that the "java" commandOk, that seems reasonable. It's interesting that JBuilder apparently installed its own JVM.I think this is only for the Windows install, but the UNIX installs assume its already there. I could add a prompt to the user to pick the JVM(s) should get theIt didn't really occure to me that this is what happens. I usually have one JDK/JRE in my path to ensure it works as I expect. However now that you mention this, I bet that it has been using the reg setting and ignoring what's in my path as the java.exe in c:\WINNT\wherever is found before the others and then it does the reg lookup to know which JVM to load. I just removed Java from my path and sure enough DP still works fine - you learn something new each day... These are both the same mistake. I should have set the desktopYeah, I removed DP, reinstalled DP from install file, set the Start in directory and it worked fine. nativeWe have just got JBuilder7 at work and it has the ability to build a ableexecutable wrapper to lauch Java applications and it is supposed to be withto setup specific classpath and which JVM to use etc - haven't played Yes I will look closer at it. It looks to build executables for allit yet but maybe I should...That's probably a lot better than the .bat files that are used now. supported platforms ie it has check boxes for Linux and MacOS files as well as Windows. It also looks like it includes all the JARs and everything in the native executable as well, kinda sounds like a self extracting ZIP file. If this is the case, I'm guessing that we could end up with just the native executable and the XML files for an install. Time will tell... Cheers Alex |
Locked
Re: One brave sole
Al Silverstein
Jon,
toggle quoted message
Show quoted text
I already own a LocoBuffer. I just never assembled it yet. I was under the impression that Decoder Pro worked with MS100 also. I guess I will have to take the time tomorrow to put together the LocoBuffer. Al ----- Original Message -----
From: Jon Miller To: jmriusers@... Sent: Friday, June 28, 2002 11:26 PM Subject: Re: [jmriusers] One brave sole Al, At the current time you need a LocoBuffer. Bob is still working on the MS100 interface. Find out about it in the files section of the Loco_Net Hackers group on Yahoo. A lot of work for Bob to do and the ability to use the MS100 is on his list. The LocoBuffer is really a better device anyway. Jon Miller AT&SF For me time has stopped in 1941 Digitrax DCC owner, Chief system NMRA Life member #2623 Member SFRH&MS 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
Re: One brave sole
Jon Miller
Al,
At the current time you need a LocoBuffer. Bob is still working on the MS100 interface. Find out about it in the files section of the Loco_Net Hackers group on Yahoo. A lot of work for Bob to do and the ability to use the MS100 is on his list. The LocoBuffer is really a better device anyway. Jon Miller AT&SF For me time has stopped in 1941 Digitrax DCC owner, Chief system NMRA Life member #2623 Member SFRH&MS |
Locked
One brave sole
Al Silverstein
Bob,
I made my first attempt to using Decoder Pro. The attempt failed. Here are the steps I took. I downloaded Java 2 plug in from the Sun site. It was version 1.4.0_01. I installed it on the same machine I am currently running Winlok 2.1e successfully from com1. I downloaded Decoder Pro 0.9.3.3 and installed it on the very same machine. I am currently using a MS100. My system is a Dell GX1, P600, 256MB Ram and plenty of HD space. When I tried to launch DP I received the message "Failed to set the current baud rate for the MS100. Port is set to 9600baud. See readme file for more info. The baud rate is grayed out at 16600. What did I do wrong. Al |
Locked
Re: Looking for a brave soul to try a Windows install er
Bob,
toggle quoted message
Show quoted text
As you must have suspected, my machines did not have the Java software installed. I installed Java 1.4.0. When I type "java -version" I get: __________________ D:\>java -version java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1. Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) _______________________ Having done this, I re-ran the install and it seemed to complete correctly. When I clicked on the DecoderPro icon on the desktop, it blinks, but nothing seems to happen. If I execute "decoder pro" from within a command prompt defaulted to the d:\program files\jmri folder, I get the user interface which looks reasonable. I am not connected to my railroad now. The program interface seems to work o.k. When I quit, the command prompt window contains: _______________________- C:\Program Files\JMRI>decoderpro C:\Program Files\JMRI>java -Djava.class.path=".;jmri.jar;lib\collections.jar;lib \log4j.jar;lib\jdom-jdk11.jar;lib\crimson.jar;lib\comm.jar;$VFS" apps.DecoderPro .DecoderPro java.lang.NullPointerException at jmri.jmrit.symbolicprog.CombinedLocoSelListPane.setDecoderSelectionFr omLoco(CombinedLocoSelListPane.java:233) at jmri.jmrit.symbolicprog.CombinedLocoSelPane$3.actionPerformed(Combine dLocoSelPane.java:135) at javax.swing.JComboBox.fireActionEvent(Unknown Source) at javax.swing.JComboBox.setSelectedItem(Unknown Source) at javax.swing.JComboBox.setSelectedIndex(Unknown Source) at jmri.jmrit.symbolicprog.CombinedLocoSelPane.propertyChange(CombinedLo coSelPane.java:247) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at jmri.jmrit.roster.Roster.firePropertyChange(Roster.java:290) at jmri.jmrit.roster.Roster.removeEntry(Roster.java:82) at jmri.jmrit.symbolicprog.tabbedframe.PaneProgFrame.thisWindowClosing(P aneProgFrame.java:344) at jmri.jmrit.symbolicprog.tabbedframe.PaneProgFrame$4.windowClosing(Pan eProgFrame.java:234) at java.awt.Window.processWindowEvent(Unknown Source) at javax.swing.JFrame.processWindowEvent(Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) C:\Program Files\JMRI> _____________________________________ -----Original Message-----
From: Bob Jacobsen [mailto:Bob_Jacobsen@...] Sent: Friday, June 28, 2002 12:02 PM To: jmriusers@... Subject: RE: [jmriusers] Looking for a brave soul to try a Windows install er At 10:09 AM -0700 6/28/02, Jerry Drews wrote: I downloaded the file and tried it on Windows 98, 2K and XP Pro. Allfailed with the error message: . . . . .Thanks for trying, sorry it didn't work. Yes, that's helpful. Somehow the installer seems to have failed to find the Java version you've got installed. That's the tricky bit, and I've probably not made it robust enough. Would you be willing to do a couple things for me? First, could you look in "C:\Program Files\" to see if there's a "Java" or "JavaSoft" folder in there? And if there is, what does it contain? It contains: D:\Program Files\Java\j2re1.4.0 Second, could you open a DOS window and type "java -version", then tell me what it says? D:\>java -version java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1. Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) Thanks! As to that first splash screen, I hope it's temporary. The installer is built with a tool from MindVision. I've talked to them about letting us use it for free. So far, they've agreed that use for "occasional tests and demos" is OK, and I'm still hoping that they'll allow me to use it for distributing free software. If they do, that first splash screen goes away. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. To unsubscribe from this group, send an email to: jmriusers-unsubscribe@... Your use of Yahoo! Groups is subject to |
Locked
Re: icons
At 10:34 AM -0700 6/28/02, Robin Becker wrote:
If you send me a .bmp file that is around 32x32 I can try to make a simpleAt 11:28 AM -0700 6/28/02, Robin Becker wrote: Let's see ifIt's so generous of you to think I might have some artistic ability! Unfortunately, I really don't, and I hadn't thought beyond trying to shrink something like one of the logo images that Jim Wellman created: (which is 160x135) (which is 210x152) There's also a small DCC logo (83x75) we could use at: But those are all too large... Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
Re: Looking for a brave soul to try a Windows install er
At 10:09 AM -0700 6/28/02, Jerry Drews wrote:
I downloaded the file and tried it on Windows 98, 2K and XP Pro. All failedThanks for trying, sorry it didn't work. Yes, that's helpful. Somehow the installer seems to have failed to find the Java version you've got installed. That's the tricky bit, and I've probably not made it robust enough. Would you be willing to do a couple things for me? First, could you look in "C:\Program Files\" to see if there's a "Java" or "JavaSoft" folder in there? And if there is, what does it contain? Second, could you open a DOS window and type "java -version", then tell me what it says? Thanks! As to that first splash screen, I hope it's temporary. The installer is built with a tool from MindVision. I've talked to them about letting us use it for free. So far, they've agreed that use for "occasional tests and demos" is OK, and I'm still hoping that they'll allow me to use it for distributing free software. If they do, that first splash screen goes away. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
Re: Looking for a brave soul to try a Windows installer
At 10:32 PM +1200 6/28/02, Alex Shepherd wrote:
Ok, I have installed onto Win2KThanks! Seemed to install ok although I noted that the installer didn't ask whichThe installer currently adds it to the JVM that the "java" command will invoke. It needs to be there because the program is started using "java" or "javaw". The installer gets that info from the registry, using the same keys that the "java" command uses. It's interesting that JBuilder apparently installed its own JVM. I could add a prompt to the user to pick the JVM(s) should get the comm stuff, but I'm concerned that's too confusing. I suspect that J. Average User doesn't really want to worry about Java at all. I had to modify the DecoderPro Menu Shortcut and specify a value for theThese are both the same mistake. I should have set the desktop shortcut and the program menu item to always start in the program directory. Thanks for finding it. We have just got JBuilder7 at work and it has the ability to build a nativeThat's probably a lot better than the .bat files that are used now. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) Am working off a huge email backlog, call if it's urgent. |
Locked
icons
Robin Becker
Jon,
toggle quoted message
Show quoted text
You are right, there are lots of shareware and inexpensive commercial programs for handling icons. They let you do nice things, like have transparent areas (i.e. non-rectangular appearance), etc. Let's see if Bob had any artwork in mind first, if not I guess I'll make something simple up. Then we can see if the simple program I already have will be good enough for now. If not then after that I'll check out some of the tools available for download. Robin -----Original Message-----
From: Jon Miller [mailto:atsf@...] Sent: Friday, June 28, 2002 11:03 AM To: jmriusers@... Subject: Re: [jmriusers] Looking for a brave soul to try a Windows installer Robin, Before I retired I had a program on the computer at work that made icons. Can't remember the name of it. Real simple program but as it was some time ago it was probably 16 color also. Download.com has all sorts of icon creators, like 121 programs. I would try but am not an artist so not sure how they would turn out. Looks like some do a picture capture and create an icon out of it. Jon Miller AT&SF For me time has stopped in 1941 Digitrax DCC owner, Chief system NMRA Life member #2623 Member SFRH&MS To unsubscribe from this group, send an email to: jmriusers-unsubscribe@... Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. |
to navigate to use esc to dismiss