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 ChrisP  
#1 Posted : 30 August 2013 18:09:10(UTC)
ChrisP


Joined: 19/06/2011(UTC)
Posts: 74
Location: Herefordshire,England
I've recently added a (second-hand) 6050 Interface to my controls (6021 etc) and used a USB to Serial connector from Conrad to connect to my MacBook. Sadly, though I did rather expect it, my MacBook shows no sign of recognising the interface. Any ideas? I'm not sure what the microswitches on the back of the Interface do. There is no light on the Interface to show that it is operating. I was planning to try iTrain basic on the Mac.

Chris
Offline waorb  
#2 Posted : 30 August 2013 19:21:02(UTC)
waorb

Brazil   
Joined: 31/05/2011(UTC)
Posts: 868
Location: Brazil
Originally Posted by: ChrisP Go to Quoted Post
...and used a USB to Serial connector from Conrad to connect to my MacBook.

Hi Chris!

My guess is that the USB/Serial isn't recognized by the Mac... Have you tryed it successfully with another device?

Another software (Rocrail) instruct as follows:

http://wiki.rocrail.net/doku.php?id=6050-en

Maybe you need to verify the wirings and serial properties...

Here is another instructions about wiring:

https://www.marklin-user...html/digital/DI6051.html

Best regards,

Walter
thanks 1 user liked this useful post by waorb
Offline ChrisP  
#3 Posted : 30 August 2013 21:06:30(UTC)
ChrisP


Joined: 19/06/2011(UTC)
Posts: 74
Location: Herefordshire,England
Thank you Walter. This may be beyond my very modest technical skills but I'll have a look at the links you've suggested.
Regards

Chris
Offline Webmaster  
#4 Posted : 30 August 2013 21:44:34(UTC)
Webmaster


Joined: 25/07/2001(UTC)
Posts: 11,161
I have a 6051 which I used for some of my own VB 3.0 programs back in the 90's...

The important thing is to get the serial cable right between the USB-Serial and the DIN plug that goes into the 6050.

I presume the USB-Serial converter has a standard 9-pole RS-232 connector at the "serial" end so it should be fairly easy with some soldering skills to make a RS-232 -> DIN plug cable...
Do you maybe already have that RS-232 -> DIN connector cable?

The 6050 will never be recognized as a "device" by any operating system, you need to talk to it with via a serial cable and have to send/read commands to/from it to notice any action at all...
Is the USB-Serial Mac compatible? Are there any device drivers or such to install for the Mac?

One thing to think about with USB-Serial converters is that they might not be fully reliable regarding the RTS/CTS hardware signalling, so an extended delay up to 100ms or so between commands sent may have to be defined in the software to ensure a more reliable operation...
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]
thanks 1 user liked this useful post by Webmaster
Offline H0  
#5 Posted : 30 August 2013 21:57:05(UTC)
H0


Joined: 16/02/2004(UTC)
Posts: 15,267
Location: DE-NW
And AFAIK the 6050/1 only support 2400 bps (neither k nor M missing), so the USB converter must be configured for that speed.
Regards
Tom
---
"In all of the gauges, we particularly emphasize a high level of quality, the best possible fidelity to the prototype, and absolute precision. You will see that in all of our products." (from Märklin New Items Brochure 2015, page 1) ROFLBTCUTS
UserPostedImage
thanks 1 user liked this useful post by H0
Offline Webmaster  
#6 Posted : 30 August 2013 22:20:40(UTC)
Webmaster


Joined: 25/07/2001(UTC)
Posts: 11,161
That is correct, 2400 bps it is. To make it more interesting, some versions need 2 stop bits and some only need one... Wink
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]
thanks 1 user liked this useful post by Webmaster
Offline clapcott  
#7 Posted : 30 August 2013 23:13:32(UTC)
clapcott

New Zealand   
Joined: 12/12/2005(UTC)
Posts: 2,435
Location: Wellington, New_Zealand
Originally Posted by: ChrisP Go to Quoted Post
I've recently added a (second-hand) 6050 Interface to my controls (6021 etc) and used a USB to Serial connector from Conrad to connect to my MacBook. Sadly, though I did rather expect it, my MacBook shows no sign of recognising the interface. Any ideas? I'm not sure what the microswitches on the back of the Interface do. There is no light on the Interface to show that it is operating. I was planning to try iTrain basic on the Mac.

Chris


Chris,
It is important to understand that a number of components are involved.
1) the "USB serial" device provides a "Serial Port"
2) the Driver AND OS provide a protocol - in this case usually seen as a "COM" device
3) the hardware needs to be configured (in this case DIP switches) and connection (Cable pinout) to be correct.

Serial Port the adapter part
If , with the USB_Serial connector installed but even without the 6050 connected , you cannot see a "Serial Port" then you need to focus on the driver and OS. These days this bit "should" be pretty automatic but ensure you follow the instructions that came with the adapter for the correct installation as per the OS you are using.

Notes:
1) - at the OS level you will NOT see a "6050" device in your device list - just the Serial port (maybe displayed with a COM reference or as 2 separate items). it is up to the higher level "program" to talk to(through) the COM device/port to the 6050/device using the understood commands. - NO Plug'n'Pray here
2) - due to OS security for "underlying hardware" there may be additional step needed to allow you to (be authorized to) talk to the hardware directly with your program. This is usually covered off if you install a program using its installer but it may be an issue if you are writing code yourself

Communications Paramaters
The "Program" needs to specify the parameters of the "COM" port when it opens it.
These are ... 2400(speed),8(bits),N(parity),2(stop_bits) for both IBM and Mac pedigree devices.
Most purchased/downloaded programs will have an option to select the controller type in which case you would select "6050". Under the covers it will then set these paramaters
You also need to determine (from the OS as above) which COM device to target, usually noted in the form "COM#1, COM#2 ...... COM#6 .... etc". Some programs will "attempt" to scan but this is not guaranteed

Hardware configuration
The switches on the 6050, as originally documented ......
IBM ... 1=Up,2=Up,3=Down,4=Down,
Mac ... 1=Up,2=Up,3=Up,4=Up,
NOTE: I do not know about your newer "MacBook", but suspect that the IBM setup might be a better bet

Cabling.
assuming a 9 pin "D" connection
.
6050 ... D-9
DIN ... Conn
Pin ...... Pin
1 ...........> 3
2 ...........> 7
3 ...........> 5
4 ...........> 2
5 ...........> 8
ALSO - at the PC end you need to loopback pins 1,4,6 (i.e. jumper them together within the connector)

Concluding note re commands to the 6050.
As mentioned in another reply, The 6050 does not acknowledge commands and has a limited buffer so a delay must be inserted to ensure that commands are not "thrown away" in the event that a previous command has not been processed completly. The delay is proportional to the complexity of the command, A Magnet command is quicker than a Loco speed command which is quicker than a Loco EF command
A slight qualification on this is the s88 read. As with other commands you do not get an acknowledgement that the command itself has been recoeved, however this can be infered when data starts appearing in the input buffer.

Peter
thanks 3 users liked this useful post by clapcott
Offline cookee_nz  
#8 Posted : 30 August 2013 23:49:56(UTC)
cookee_nz

New Zealand   
Joined: 31/12/2010(UTC)
Posts: 3,955
Location: Paremata, Wellington
Originally Posted by: ChrisP Go to Quoted Post
I've recently added a (second-hand) 6050 Interface to my controls (6021 etc) and used a USB to Serial connector from Conrad to connect to my MacBook. Sadly, though I did rather expect it, my MacBook shows no sign of recognising the interface. Any ideas? I'm not sure what the microswitches on the back of the Interface do. There is no light on the Interface to show that it is operating. I was planning to try iTrain basic on the Mac.

Chris


Hi Chris, I don't envy your dilemma, getting a 6050 to work correctly is very much a trial and error exercise which I went through many years ago.

It's complicated by the fact that the 6050 is now very old technology, nothing wrong with that in itself but it was designed around the Computer technology of that time.

On top of that you have a Mac which has a smaller pool of experts, especially in dealing with something like this.

Then you have the characteristics of the USB/Serial adapter to take into account....

And if that were not enough, the connection between the 6050 and your PC is Serial (RS232) which has some fairly rigid requirements regarding the 'soft' settings such as the Protocol and Handshaking (loosely, Protocol includes settings such as the Baud rate/connection speed between the devices, usually 2400, and also defines things like the number of Stop Bits, Parity etc). Yeah I know, it's enough to make your head spin. Confused

Handshaking refers to how one device tells the other that it is ready or not to Receive data and is sometimes done in the Software, or via the Cable.

Fortunately, there are some default settings which are recommended to try first, and which usually work say 90% of the time. The problem is if it does not work, and knowing where to start isolating the problem down.

Have you actually tried installing the software you plan to use to see what it does? - you may be lucky to find that it has a built-in utility to check and confirm if the Serial port is working correctly and might even provide information on what settings to change. That would be the first thing I would look into and also whether the program author has any email support or even a support forum. Surely there will be others who have a similar setup to yours and who you could compare notes with? I tried a google search on "itrain basic" but got no hits so I would not know where to start looking myself.

It may help you immensely if you have a willing friend with a Windows PC to loan you and can download a Windows Demo version of a Train Control program to test with. Most demo programs are crippled by disabling the ability to save any diagrams or databases, and generally limited only to controlling 1 or two loco's - in your case that won't matter as you really want to prove that your 6050 is working correctly with as simple a setup as possible - 6050 via the serial cable to a PC.

Once you get success at that level, migrating to the Macbook is much easier because you can rule out a number of things.

I would suggest you should be able to pick up an old Laptop with Windows XP on it for next to nothing considering XP is fast approaching end-of-life (April next year). A laptop from say around 2005 vintage will most likely have a 9-pin serial port built in and this would be best to avoid using the USB adapter initially.

Provided you can get a Windows PC to work with the 6050 then you are underway. You could at that point try using the USB adapter on the same laptop to confirm that it works correctly.

If it helps, I have a Macbook Pro (even though I am a die-hard Windows user), it's running Mountain Lion I think, I also have a 6050 as well as an Intellibox, and I happen to have a USB/Serial adapter. I have successfully used the USB adapter on a Windows PC Laptop to my IB and it worked fine but never tried it on the Macbook as I had no reason to. If someone can point me to a good Mac program (sorry, App) I'll be happy to see what results I get.

Hope this helps

Steve
NZ
Cookee
Wellington
NZ image
Offline Bigdaddynz  
#9 Posted : 31 August 2013 00:19:38(UTC)
Bigdaddynz

New Zealand   
Joined: 17/09/2006(UTC)
Posts: 18,665
Location: New Zealand
Cookee, Chris is using iTrains for Mac, so I suggest you try the demo version of that.

http://www.berros.eu/itrain/en/installation.php

Note the warning regarding security settings for Mountain Lion.
thanks 1 user liked this useful post by Bigdaddynz
Offline Johnvr  
#10 Posted : 31 August 2013 08:46:04(UTC)
Johnvr

South Africa   
Joined: 03/10/2010(UTC)
Posts: 1,269
Location: Cape Town, South Africa
Hi all,

I am fascinated by this thread.

Even though it may be older technology, I would love somebody who used a Computer connected to an Interface to tell me what they programmed.
I am looking for a description of what you programmed signals, or point switches, using eg contact tracks, delay timers, etc, and how it all worked on the layout. What did the trains on the layout do when you programmed it using an Interface ?

Will appreciate your feedback, thanks.

Regards,BigGrin
John
thanks 1 user liked this useful post by Johnvr
Offline ChrisP  
#11 Posted : 31 August 2013 12:17:03(UTC)
ChrisP


Joined: 19/06/2011(UTC)
Posts: 74
Location: Herefordshire,England
Thank you for all this information. I've now found drivers from the supplier of the USB to Serial connector suitable for Mac Mountain Lion. My MacBook seems to have installed them although the Mac thinks they are something that wants to connect to the internet. I now have something on my desktop (I think its a Mac folder) called 205146MacOSintel which is the model number of the connector.

I've taken Steve's advice and registered with iTrain for the Mac version of their software as a trial version. It takes a few days to approve apparently but when I have access I'll download the trial version and report on progress for those who are interested.

I very much appreciate all of the advice provided so far.

Chris
Offline clapcott  
#12 Posted : 31 August 2013 23:49:28(UTC)
clapcott

New Zealand   
Joined: 12/12/2005(UTC)
Posts: 2,435
Location: Wellington, New_Zealand
Originally Posted by: Johnvr Go to Quoted Post

Even though it may be older technology,

The technology may have changed but the "End use objective" has not. While Marklin units have offered Memory/Route and , with the CS, shuttle capabilities I do believe they should not waste their time trying to please everyone, thus by providing the interface as a tool for people to what they want with the basic building blocks is (as it was 20 yrs ago) the pragmatic way to go.

Quote:

I would love somebody who used a Computer connected to an Interface to tell me what they programmed.

Personally I see the PC as a tool to facilitate automation of routines that are not available from the control unit.
And/Or to add flexibility and realism to the "prescriptive" Memory/Shuttle capabilities that have emerged

Namely
- train tracking
- elimination the "braking module" with its unidirectional restrictions and its need for excessive wiring complexity
- Acc/Dec a) of Decoders without this feature b) of decoders with this feature but without the need to tune individually
- train reversing
- timetabling
- delays (no longer does a signal go green and the train rush of from a dead section - a more sedate, lights on, station announcement, whistle sound, start over a period of 10s of seconds
- randomness
- external interface correlation (e.g. wiring a speaker under the layout and playing a PC sound file at the appropriate time as dictated by the train type)

Other see it as simply another throttle ( I deplore the idea of picking up a mouse and clicking to control a screen).
Touch screens however allowed for the visualisation of a layout diagram (before the CS2 came out with its fuctional but restrictive version)

And the 3rd case was to save money - the simplest of PCs could replicate (functionally) all 16x6040(keyboard) to save thousands of dollars if you wanted 256 accesories.
Replacing the The 6043(Memory) functions with "soft programing" allowed for variation AND saved money

Quote:

I am looking for a description of what you programmed signals, or point switches, using eg contact tracks, delay timers, etc, and how it all worked on the layout. What did the trains on the layout do when you programmed it using an Interface ?

This is only limited by the imagination of how you see trains operating in real life. Less so if delve into fantasy. Some examples
- Choreographed routine of trains going from station to staion , accelerating, decelerating, stoping, sounding horn, reversing ... etc ...etc...etc
- Branch line signals detached from dead section so that a signal can remain Red and a train pass it in the oposite direction
- Parade from a Ladder yards with varying number of yard containing trains
- automatic shunting work with uncoupling - with recovery logcic to detect if a trains has successfully uncouple or coupled as required
- using k84 relay to a dimmer motor for day/night ambience, coordinate Faller cars crossing the tracks .....
- Timed start (e.g. on the half hour for 10 minute routine at a exhibition centre where other AV presentation ran on the hour for 25 minutes )

In recent years I have played with a simple "Mirror" routine where controlers of 6021, CS1, CS2, Loconet all participate and "reflect" the state changes around the layout.

As an aside, if ChrisP, or anyone else, had asked if it is worth getting a 6050 for their 602x I would have recommended a firm NO. Primarily because it is only unidirectional. Instead A 6021<>LocoNet adapter (with a USB_Loconet adapter for the PC end instead of the Serial adapter) opens up a far wider range of possibilities.
Peter
thanks 1 user liked this useful post by clapcott
Offline Johnvr  
#13 Posted : 01 September 2013 08:32:27(UTC)
Johnvr

South Africa   
Joined: 03/10/2010(UTC)
Posts: 1,269
Location: Cape Town, South Africa
Peter,

Thanks for a very interesting and substantial reply.

I recall a picture in one of my catalogues from around 1995 or so of a young person sitting at the train table with his computer screen next to him, controlling about 3 or 4 locomotives around the layout, the switches, the signals, etc all from his computer keyboard. I always wondered how it would work but never really had an idea.

Having studied computer programming at university, I thought this could be interesting for my Marklin layout.

As it has happened, I have taken the 6021/Keyboard/Memory route (not yet upgraded to MS/CS !), and have developed electrical hardware (yes, relays, resistors, capacitors, etc) to develop things like randomness, time delay, etc into my signals and point switches. But it was a hard journey !

I think this Interface could have been fun and much easier !

Regards,BigGrin
John
Offline cookee_nz  
#14 Posted : 01 September 2013 11:41:24(UTC)
cookee_nz

New Zealand   
Joined: 31/12/2010(UTC)
Posts: 3,955
Location: Paremata, Wellington
Originally Posted by: Johnvr Go to Quoted Post
Hi all,

I am fascinated by this thread.

Even though it may be older technology, I would love somebody who used a Computer connected to an Interface to tell me what they programmed.
I am looking for a description of what you programmed signals, or point switches, using eg contact tracks, delay timers, etc, and how it all worked on the layout. What did the trains on the layout do when you programmed it using an Interface ?

Will appreciate your feedback, thanks.

Regards,BigGrin
John


Hi John,

If I may offer my own experience, way way back (around '95), I took on a project for our club (mmrc) to convert an existing layout for Digital running by Computer.

The layout itself was an original Marklin Factory layout from the early 70's which had been gifted some years earlier by a retailer or the country distributor, can't recall which. This layout was nick-named "The Black Forrest" and continues to be called such, but is also more accurately layout "0917" from the 1971 dealer catalogue.

The first step was to replace all the track and convert from 21xx to 2200 series, and connect all the Turnouts & Signals etc to k83 decoders. I also fitted a number of reed switches in various locations to provide feedback and equipped selected loco's or wagons with magnets. The reed switches were connected to a single s88 feedback decoder which was connected to the 6050 Interface and enabled the layout to be monitored for 'cause and effect' operations.

Originally the layout was designed and wired for simple analogue operation in a store window, so my objective was to replace that with Computer control not only to show what could be done but also to achieve a greater variety in operation.

I used a program written by two Australian gentlemen also on this forum, Ross Stewart and Peter Worboys. Their program was called "C80Prox" and was a 'script' program, meaning that you created a relatively simple text list of the actions that you wanted to take place and these would then be executed in sequence with any required deviations along the way such as a track sensor being triggered, or a time delay etc. It was not a GUI (Graphical User Interface) program so unless you knew the reasonably simple commands from watching the screen, it would not mean much to you, and you could not simply create the desired sequence by pointing and clicking on a track diagram. But it did work very well and there were many additional features which I did not fully explore.

It may sound complicated but was actually quite simple.

The end result was a layout that ran fully automatically, the sequence would set the required route and then start the first train, the rest was down to whatever the script told it to do next. I usually had three trains running on the small layout, including reversing into the 3-track yard, uncoupling and shunting operations using a combination of uncoupling tracks and telex, route control of turnouts and signals etc.

These were operations that were very difficult to achieve in analogue operation and would otherwise require quite complicated wiring, timers, relays etc.

I would often be asked if (or told!) the PC had taken the fun out of the layout, but for me not at all. It was still primarily an exhibition layout which needed to be kept busy to engage the public but the PC demonstrated that changes were much easier for an automated digital layout than rewiring an analogue one, and I would also point out that the owner needed only automate as much as he wanted to for taking care of operations that you want to be reliable.

I've had quite a break of several years from this aspect of the hobby but it is something I'll be incorporating in my current layout along with looking into the newer generation of control software, improved hardware etc.

Regards

Steve
NZ
Cookee
Wellington
NZ image
Offline Johnvr  
#15 Posted : 01 September 2013 23:38:58(UTC)
Johnvr

South Africa   
Joined: 03/10/2010(UTC)
Posts: 1,269
Location: Cape Town, South Africa
Steve,

Excellent answer - thanks mate !

I agree - there are so many aspects of the hobby which are interesting, the more so when trains do different things instead of just going 'round and 'round.

Regards,BigGrin
John
Offline ChrisP  
#16 Posted : 03 September 2013 07:23:23(UTC)
ChrisP


Joined: 19/06/2011(UTC)
Posts: 74
Location: Herefordshire,England
An up-date.

I've downloaded a trial version of iTrain to my MacBook. It looks very good, has an excellent, clearly written and very detailed manual and a good user forum/advice centre. The iTrain supplier (Xander in Holland) is a patient and helpful source of advice.

For the moment I'm having a communication problem. I've downloaded the drivers for the Manhattan USB to Serial Port connector and installed them on my hard drive but iTrain still won't communicate with the 6050/6021. I've asked for advice through the iTrain forum but if anyone here can suggest a solution I'd be very interested.

Regards

Chris
Offline Mafi  
#17 Posted : 07 September 2013 18:17:11(UTC)
Mafi


Joined: 29/04/2007(UTC)
Posts: 109
Location: NRW, Germany
Hello Chris,

what kind of chip is installed inside your USB-to-Serial-converter?
which MacOS-X are you using?
is the USB-driver listed in the list of serial ports of iTrain (which letter, "s" or "d")?

Some USB-to-serial-converters will not work with Macs. I prefer Prolific-based converters if you have MacOS-X 10.6 or older. For newer systems FTDI-based chips are recommended.

See: http://simpledigitalloco...ve.npage.de/sdl-faq.html

Good luck and best regards
Mafi
Don't be too proud of the new high tech terror you just have invented! (Darth Vader, Episode IV)
thanks 2 users liked this useful post by Mafi
Offline ChrisP  
#18 Posted : 08 September 2013 06:47:21(UTC)
ChrisP


Joined: 19/06/2011(UTC)
Posts: 74
Location: Herefordshire,England
Thank you Mafi. It's a prolific chip (not sure if I have the terminology right) and I'm using 10.6.8. No, the USB port isn't showing in iTrain.

Regards

Chris
Offline Mafi  
#19 Posted : 09 September 2013 06:30:33(UTC)
Mafi


Joined: 29/04/2007(UTC)
Posts: 109
Location: NRW, Germany
Originally Posted by: ChrisP Go to Quoted Post
Thank you Mafi. It's a prolific chip (not sure if I have the terminology right) and I'm using 10.6.8. No, the USB port isn't showing in iTrain.


Hello Chris,

according to the Prolific site at http://www.prolific.com.tw
there is a new driver for 10.6, 1.7 and 10.8, version 1.5.1 of Sept. 2nd 2013
Which one are you using? Perhaps an older driver might help.

And it will not show up in the list of ports in iTrain as "USB" but as a serial port.

Good luck
Mafi
Don't be too proud of the new high tech terror you just have invented! (Darth Vader, Episode IV)
Users browsing this topic
Guest
Similar Topics
Compatibility of 6050 Interface (Digital)
by Franz 18/04/2007 10:29:15(UTC)
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-2024, Yet Another Forum.NET
This page was generated in 0.839 seconds.