[SOLVED] RR, FTDI USBSerialDriver, Mac OS, CCShnitte2 &

Märklin Central Station 2
rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 20.10.2013, 15:17

You can check 6142 if it will finally work with your version of the CC-Schnitte.
If it don't I can not help because I do not have a CS2 nor a CC-Schnitte.

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 07:54

Yes, I know.
The CC-Schnitte communicate always 13 bytes in both direction with CTS on so I have reverted my changes from yesterday.

I have no CS2 for testing which is needed in combination with the Schnitte.

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 08:18

This one is conform with the CC-Schnitte specs:
https://launchpad.net/rocrail/sunrise/2 ... -mlion.dmg

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 08:31

I tested this version with a FDTI USB-232 stick wired tx-rx.
13 bytes out -> 13 bytes in.
I cannot figure out why it does not work with your CC.

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 08:45

Attachments
DSC_0006.jpg
DSC_0006.jpg (46.69 KiB) Viewed 120 times

RainerK
Moderator
Posts: 3694
Joined: 29.04.2009, 09:31
Location: Sprockhövel (zwischen BO u. W)
Contact:

Post by RainerK » 21.10.2013, 08:53

Hi,

here the usable short form of the URL: http://www.reichelt.de/?&ARTICLE=99617

Best Regards
RainerK

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 09:56

Yes:

Code: Select all

20131021.074830.611 r9999I main     OApp     1191 POWER ON
20131021.074830.611 r9999c main     OMCS2    0207 System GO
20131021.074830.611 r9999I main     OModel   2011 informing 13 listeners of a system event...
20131021.074830.617 r0000B mcs2writ (null)   *trace dump( 0x035DB660: length=13 )
    offset:   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
    --------------------------------------------------------- |----------------|
    00000000: 00 00 03 00 05 00 00 00 00 01 00 00 00          |.............   |
20131021.074830.643 r0000B mcs2read (null)   *trace dump( 0xFC55AE80: length=13 )
    offset:   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
    --------------------------------------------------------- |----------------|
    00000000: 00 00 03 00 05 00 00 00 00 01 00 00 00          |.............   |
20131021.074830.644 r9999c mcs2read OMCS2    0631 CS2 GO
I did the test on a MacBook Air with OS X 10.8.5.

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 10:19

If you can install a serial sniffer and make from both programs a byte trace with that tool, maybe I can help.

The MERG CBUS project also use a 500000 baud USB FTDI interface which works fine under Mac OS X 10.8.5...

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 10:56

Wir empfehlen daher die Verwendung des D2XX-Treibers, da es außerdem beim Betrieb der CC-
Schnitte 2.0 mit dem VCP-Treiber zu Störungen kommen kann. SimpleDigitalLocomotive
unterstützt allerdings nur die CC-Schnitte 2.0 via D2XX-Treiber, keine anderen Digitalzentralen.
It seems the CC-Schnitte only can communicate over the D2XX-Device Driver which is not standard.

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 11:21

Did you try to use SDL-X with the VCP dirver?

500000 baud is not standard.

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 11:49

aiTrän only works with the D2XX.
SDL-X will probably use the D2XX if it is installed even if you select the serial device?

Rocrail does not support the proprietary D2XX driver because I do not like this dependency. Virtual Com Ports are standard and controlled with standard commands on all platforms.

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 21.10.2013, 17:12

OK, in that case we should investigate more time in this issue.

MERG CBUS USB-Interface, FDTI 500k, works OK with OS X 10.8.5 and Rocrail. So it is un expected to see the Schnitte not working.

Maybe the shortest way is to ask the programmer of SDL-X for a tip on how to setup the serial communication under OS X for the Schnitte...

I checked the D2XX but I do not like to include it because it conflicts with the VCP drivers...

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 22.10.2013, 09:59

I followed the advice of Mafi:
http://www.can-digital-bahn.com/forum/v ... #post_2698

And I implemented it in revision 6155.
It reads as much as 13 bytes available, byte by byte.
It writes byte by byte to give the VCP time to consume...

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 22.10.2013, 11:47

BTW the Mac OS X will hang with many data on the USB VCP:
http://wiki.rocrail.net/doku.php?id=cma ... use_blocks

I have the impression that the FDTI VCP is not very well implemented for OS X.

Why not connecting to the Ethernet interface? The CS2 has one on board...

rjversluis
Site Admin
Posts: 38719
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 22.10.2013, 16:34

Did you test the latest available Mac 10.8 build?

Post Reply

Return to “CS2”