Welcome to the forum   
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post in this topic Go to first unread post in this topic
Offline xanderb  
#1 Posted : 02 February 2004 16:02:26(UTC)
xanderb

Netherlands   
Joined: 26/01/2004(UTC)
Posts: 43
Hi all! I am a Java programmer and I want to know if there is any interest in software for controlling your locs & tracks via Java.
I am currently busy writing some stuff, but currently I only have a Marklin 6021/6051 and need more information on other controllers like Intellibox that most of you seem to have.

Work done:
- Interface with RS-232 works for Marklin protocol
- Loc controller (with mouse wheel support for speed so a remote controller if your mouse is wireless). With buttons with icons (like in Marklin systems) Smile and a tooltip.
UserPostedImage
- Feedback visualized in switchboard with support for new 76xxx signals.
UserPostedImage
- Change signals and turnouts in switchboard.
- Set track routes.

Busy with:
- Block control
- Intellibox support
- Visual switchboard editor (currently in an XML file).

My question is there any interest in this? Are there people wanting to help with interface information and testing on non-Windows platforms (like Mac OS X and Linux) in the future? Or is there any one else busy with this as well?

In the near future I will create a website with more information.
Offline tayloma  
#2 Posted : 03 February 2004 07:36:38(UTC)
tayloma

South Africa   
Joined: 03/07/2002(UTC)
Posts: 156
Location: Boksburg East, Gauteng
Xanderb

I would be interested in the Mac OSX version once it's ready. I cannot test it at the moment as the layout is not connected to the Mac yet.....Smile
Regards

Mark
Offline xxup  
#3 Posted : 03 February 2004 11:14:01(UTC)
xxup

Australia   
Joined: 15/03/2003(UTC)
Posts: 9,586
Location: Australia
I'll have a look at a Windows version when its available. Will it be running locally or hosted remotely?
Adrian
UserPostedImage
Australia flag by abFlags.com
Offline xanderb  
#4 Posted : 03 February 2004 11:37:16(UTC)
xanderb

Netherlands   
Joined: 26/01/2004(UTC)
Posts: 43
Hi Mark and Adrian,

Yesterday I succeeded to get the serial port connection up on Mac OSX (Panther) via a Keyspan USB-serial adapter. I made a test track with one loc that could be controlled. Later this week I will take my Mac to the train room and test it on my real track layout.
The development is done in Eclipse on the Mac and sometimes on Windows, but normally an older notebook (Pentium 1, 233 Mhz, 128 Mb ram) with Windows NT is connected to my track layout, but I can synchronize the sources of both in Eclipse via CVS. Okay for the non programmer this is a lot of technical detail.

The program will be running locally and you have to install Java 1.4 (I recommend 1.4.2 for speed).

Xander
Offline DasBert33  
#5 Posted : 03 February 2004 11:48:24(UTC)
DasBert33

Belgium   
Joined: 21/01/2004(UTC)
Posts: 1,272
Hello all,

I too have been busy programming for Märklin in Java.

My program is much more basic at the moment: you can type the adress in a box and control the speed with a slider. 5 more buttons are available to control functions.

It isn't too difficult to get a program running, but getting the Sun COM plugin to work in Internet Exploder is something different. I just gave up on all the digital signing en stuff you have to do. The COMapi is also buggy and needs some workarounds to get it to work. I don't even know whether it is possible to get it to work with something other than windows and unix.

How do u commmunicate with your COM ports? If you have another suggestions i might start reprogramming. (it does have to be freeware though)

My original idea was to use Java and a PDA (IPAQ) using Wifi or Bluetooth to remotely control the layout.

BTW I too use a 6021/6051 but I will probably upgrade to the new system (ethernet?).

Bert
Offline xxup  
#6 Posted : 03 February 2004 13:09:08(UTC)
xxup

Australia   
Joined: 15/03/2003(UTC)
Posts: 9,586
Location: Australia
The big challenge is that come people, like me, do not use their best computer hardware to run trains.

IPAQ sounds good, but they are expensive down here.. Wifi IPAQs start at $900, but I only paid AU$150 for a second hand Pentium Celeron 466 PC with 128Mb RAM and a 4Gb HD (I thought it was a PIII 500 - sigh).. I do have an old Palm Pilot III around somewhere..
Adrian
UserPostedImage
Australia flag by abFlags.com
Offline xanderb  
#7 Posted : 03 February 2004 15:28:50(UTC)
xanderb

Netherlands   
Joined: 26/01/2004(UTC)
Posts: 43
Bert,

Java is a programming language you can use without browsers. My application is just a standalone application. You have to install the COM API in the Java runtime (just copy three files on Windows) and use the javax.comm package. Normally the Java Runtime is put in two locations (the one you specify and in Program files). I think the browser is using the Program files version so you have to install it there as well if you want to use it from the browser.

Xander



Offline DasBert33  
#8 Posted : 03 February 2004 17:37:58(UTC)
DasBert33

Belgium   
Joined: 21/01/2004(UTC)
Posts: 1,272
xanderb,

I am aware of that, but I reduces the portability and the easiness of use/installation IMHO. 3 files to copy is even too much for the lazy user ;-)

I should have been clearer, I want to use it as an applet. Wouldn't it be cool if you could use my applet in your website, to be able to connect to a host computer running the host applet? And then using any browser/Java capable tool to run trains? You could use a pc, a PDA, maybe even a cellphone or a java-enabled wristwatch ;-)

We can dream :)

I'm reluctant to restart programming because I now have a new time-consuming job, and the new central station is supposed to have an ethernet interface with which we will be able to do a lot more than the 2400bps COM interface now.

Greetings from Belgium,
Bert
Offline McLae  
#9 Posted : 03 February 2004 18:04:36(UTC)
McLae


Joined: 16/07/2002(UTC)
Posts: 1,575
Location: DeSoto (Dallas area), TX
The IB interface is here
http://www.uhlenbrock.de/3/0/2/...CD68948-001.apd/P50X.zip
Maybe the best part is, they have two interfaces, binary and text. Might be easier to generate text commands than binary.

Modeltreno.it has a 6051 interface manual at http://www.modeltreno.it/motorola.html

Looking for Beta testors?
The McLae
IB digital, DB, OBB, SBB epII-V
Providing a home for little lost 'Gators
Offline xanderb  
#10 Posted : 03 February 2004 19:08:19(UTC)
xanderb

Netherlands   
Joined: 26/01/2004(UTC)
Posts: 43
Thanks Bert for the update on your applet ideas, but because you need to create a configuration and setup your com part I think it is not useful to run it in the browser. Another idea is to use an older PC as a hub that connects with your PDA via the network (TCP/IP sockets). Only the old PC needs the serial communication. I try to make everything so that in the future multiple computers can be used to control one layout and only one is connected to the layout.

McLae thanks for your information. I had already read the P50X.zip file, but without knowing the IB and having it to test it is difficult to process. The big difference besides the wider address range for accessories and locs is also the feedback you get from the IB when the user changes something on the IB like loc speed or turnouts. With the 6051 you cannot use the 6021 anymore or it will lock up locs without feedback.

Does anyone have a summary for the IB so I can address the wider address range and read feedback from the IB so I can first make a quick implementation without being limited to loc address from 1-80 and speed 1-14 and accessories from 0-255. Route control can be skipped I think, because that is what I do in my application.
Maybe my question is strange, but this is what I understood from the IB until now.

I will not need beta testers right now, because until now only the locs can be specified in the GUI and the rest is in an XML file. But now I know people are interested I can make it better and easier configurable. My idea is that when the track layout can be drawn in the GUI and basic IB support is in I will put a version on my website (under construction right now).
Offline Webmaster  
#11 Posted : 03 February 2004 22:17:35(UTC)
Webmaster


Joined: 25/07/2001(UTC)
Posts: 11,165
If you are a member of the IBX Yahoo group, the file area with examples (written in VB, C and such) might be helpful. Is that where you got the p50x.zip from?

And, please read about posting pics in the forum at https://www.marklin-user...ault.aspx?g=posts&t=1067 since they do not show for anyone but yourself at the moment... Smile
Juhan - "Webmaster", at your service...
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
Offline xanderb  
#12 Posted : 04 February 2004 14:48:13(UTC)
xanderb

Netherlands   
Joined: 26/01/2004(UTC)
Posts: 43
Thanks Juhan,

I have changed the pictures. The p50x.zip is from Uehlenbrock itself. I am not a member of the IBX Yahoo group, but I will first study the zip file in more detail.
Offline McLae  
#13 Posted : 04 February 2004 16:49:29(UTC)
McLae


Joined: 16/07/2002(UTC)
Posts: 1,575
Location: DeSoto (Dallas area), TX
I have an IB and I am willing to capture data for you. Contact me off-line to work out the details.
(I am a software engineer in 'real life')
The McLae
IB digital, DB, OBB, SBB epII-V
Providing a home for little lost 'Gators
Offline Gregor  
#14 Posted : 06 February 2004 13:03:37(UTC)
Gregor

Netherlands   
Joined: 17/04/2003(UTC)
Posts: 997
Location: Netherlands
Hi Xander,

In response to your question in the 'Digital' section: I have written a program using LabVIEW, which is a software package mainly intended for professional data acquisition and control applications. In my previous job I worked in a gas turbine test cell, and we used LabVIEW to collect and process measurement data, as well as to provide a user interface to the control system. As home I have a not quite completely legal copy [}:)]wink[:I] that I use to control my layout.

Programming is graphical, and there are many display/control functions like switches, lights, bitmaps, dials, sliders and so forth. Since it comes with many preprogrammed modules, like serial port communication, it was for me an easy choice.

This weekend I'll post some pictures of the software panels, I hope someone answers my question on bmp -> jpg conversion in the 'Marklin-users.net' section of this Forum, so the pictures will look better.

Gregor
Offline Gregor  
#15 Posted : 06 February 2004 22:44:05(UTC)
Gregor

Netherlands   
Joined: 17/04/2003(UTC)
Posts: 997
Location: Netherlands
And a picture of a loc control panel:

UserPostedImage

Loc name can be selected from a list or directly by entering the address. The descriptions on the buttons change to reflect the settings of the particular loc.

Similar panels are created for turnout and relay control, layout overview, and automatic traffic. Since I was not able to build a layout (yet), I could spend quite some time on this, and loc conversion.

Gregor
Offline xanderb  
#16 Posted : 13 February 2004 18:05:28(UTC)
xanderb

Netherlands   
Joined: 26/01/2004(UTC)
Posts: 43
Hi Gregor,

You could better not convert BMP files to JPEG, but to GIF or PNG. JPEG is only for photos and has loss and GIF or PNG for schemes and have no loss. All my pictures are PNG.
I will replace my simple speed slider with a more advanced speed control in the future, but for now it works okay. Double-click with the mouse stops it and again double-click changes the direction
Offline xanderb  
#17 Posted : 15 April 2004 01:48:51(UTC)
xanderb

Netherlands   
Joined: 26/01/2004(UTC)
Posts: 43
Hi Guys,

It took some time, but I have implemented Intellibox (IB) support in the program. That means that you can work at higher speed (9600 baud or higher) and that it also works with the p50x protocol of the IB. Also communication from the IB to the program via events should work now. That means you can use the IB to control a loc or a turnout and see it in the program. That is not possible with an 6050/1.
One small problem I don't have an IB to test it. Is there someone in the Netherlands (I live in Friesland) from who I can borrow an IB for a week or if not can someone do some tests for me. The only thing is that the configuration of the program is still in an XML file and cannot be created graphically (except for the locomotives), but the format is simple.

Thanks in advance

Xander
Offline Renato  
#18 Posted : 15 April 2004 14:21:51(UTC)
Renato

Italy   
Joined: 19/03/2004(UTC)
Posts: 976
Location: Gorizia, Italy
I will happy to test your program in the Microsoft Windows environment and in the future under Linux O.S.

Bye

Renato
Offline Gregor  
#19 Posted : 15 April 2004 15:13:52(UTC)
Gregor

Netherlands   
Joined: 17/04/2003(UTC)
Posts: 997
Location: Netherlands
Hi Xander,

Unfortunately I don't have an IB for you to test, and I live about as far away from Friesland as you can get within the Netherlands (Limburg). Good luck in finding one.

Best regards,
Gregor
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

| Powered by YAF.NET | YAF.NET © 2003-2025, Yet Another Forum.NET
This page was generated in 0.932 seconds.