Rocrail - Model Railroad Control System Forum Index Rocrail - Model Railroad Control System
This software is distributed freely under the GNU GENERAL PUBLIC LICENSE.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups AlbumAlbum     CalendarCalendar  RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 rocrail.net   Intro   Portal   Index    Donate  

OpenDCC unter Snowleopard (Mac OSX, 10.6)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Rocrail - Model Railroad Control System Forum Index -> OpenDCC-Hardware (DE)
View previous topic :: View next topic  
Author Message
Open



Joined: 04 May 2010
Posts: 9

PostPosted: 04.05.2010, 13:48    Post subject: OpenDCC unter Snowleopard (Mac OSX, 10.6) Reply with quote

Hallo,
ich habe es gewagt und eine OpenDCC-Zentrale gebaut. Die Spannungstests sind erfolgreich abgeschlossen, der USB-Chip unter Windows programmiert und die LEDs leuchten nach drücken der Tasten, wie es sein soll. Soweit so gut, aber mit den Treibern komme ich nicht weiter. Die Zentrale ist im Systemprofil sichtbar.
Ich habe mich an die Anleitung auf der OpenDCC-Homepage gehalten. Die aktuellsten FTDI-Treiber installiert, die Kext geöffnet und die OpenDCC von Hand eingefügt.
Hier habe ich meinen ersten Fehler gefunden: Der Inhaber war ich und nicht das System. Das ist mit dem Programm "Batchmode" gefixt worden.
Danach habe ich mich ins Terminal begeben und versucht den Treiber Manuell zu testen und zu laden. 10.6 scheint hier etwas anders zu sein. Der Befehl "kextload -t" wurde ignoriert und "ls /dev/*usb* fand kein Device.
Jetzt bin ich am Ende und bitte Euch um Hilfe! rocrail.ini und so spare ich mir, da mein Problem ja vorgelagert ist und schon beim USB-Treiber stockt. Die genauen Terminal-Ansagen kann ich noch mal raussuchen, falls das jemand zu Onfozwecken braucht. Grüße, Marco
Back to top
View user's profile Send private message
rjversluis
Site Admin


Joined: 10 Apr 2006
Posts: 3467

PostPosted: 04.05.2010, 14:03    Post subject: Reply with quote

Hi Marco,

ich habe es unter Mac OSX Snow folgendermaßen hinbekommen:

http://wiki.rocrail.net/doku.php?id=opendcc:opendcc-usb-en#mac_os_x

_________________
Best Regards, Rob. Happy with my cap
- Mac OS X - Ubuntu - HTC Tattoo (andRoc) - LocoNet - MGV - OpenDCC - H0 - 0
Back to top
View user's profile
Open



Joined: 04 May 2010
Posts: 9

PostPosted: 04.05.2010, 15:56    Post subject: Reply with quote

Der Treiber läuft jetzt! Keine Ahnung, wieso, aber er tut es! Booten im Safemode hat auch funktioniert und der Treiber scheint jetzt ganz normal geladen zu werden. Vielen Dank für den Tip.
Die LED "PC" leuchtet jetzt auch dauernd. Das Device "/dev/tty.usbserial-FTT6J84N" habe ich bei Rocrail eingegeben, aber da bekomme ich folgende Info: "CTS not ready" und "***READ TIMEOUT*** size=1 rc=0 read=0 errno=0 tries=100" und im Termial folgendes:

20100504.164724.918 r9999W evtreade OP50x 0112 CTS not ready
20100504.164725.923 r9999E statread OSerial 0603 ***READ TIMEOUT*** size=1 rc=0 read=0 errno=0 tries=100
20100504.164736.457 r9999W evtreade OP50x 0112 CTS not ready

Und nun? Das ist alles komplitzierter, als ich dachte! Man oh man...
Danke, für Eure Hilfe,
Marco


Last edited by Open on 06.05.2010, 10:40; edited 1 time in total
Back to top
View user's profile Send private message
rjversluis
Site Admin


Joined: 10 Apr 2006
Posts: 3467

PostPosted: 05.05.2010, 20:38    Post subject: Reply with quote

Hallo Marco,

ich benutze OpenDCC mit xPressNet, und ich weiss nicht ob der OpenDCC USB-Schnittsetelle Hardware Handshaking unterstützt in p50x modus.

Kannst du die komplette trace mal als Anhang hier posten?


So funktioniert es mit mein MacBook Pro Snow Leopard:
Code:
  <digint lib="opendcc" iid="opendcc-1" flow="cts" device="/dev/tty.usbserial-FTT1Y40V" bps="19200" stress="false" libpath="..">
    <opendcc lib="xpressnet"/>
  </digint>

_________________
Best Regards, Rob. Happy with my cap
- Mac OS X - Ubuntu - HTC Tattoo (andRoc) - LocoNet - MGV - OpenDCC - H0 - 0
Back to top
View user's profile
Open



Joined: 04 May 2010
Posts: 9

PostPosted: 05.05.2010, 21:48    Post subject: Reply with quote

Hallo Rob! Danke für die Antwort!
Laut der OpenDCC-Webseite soll man die Zentrale im P50x-Modus in Rocrail konfigurieren. Wenn ich es richtig verstanden habe, dann ist das Lenz-Protokoll doch nur mit einer speziellen Firmware in der Zentrale zu nutzen. Ich glaube Standard und neueste Firmware ist hier die Intellibox-Emulation. Daher bin ich mit dem Lenz-Modus etwas irritiert. Ich habe das gerade mal eingegeben, komme aber auch nicht weiter. Jetzt gibt es zwar kein CTS-Error, aber dafür "Interface-ID not send" Ich werde morgen mal den gesamten Trace hier einfügen. Den aus der Rocrail.ini oder das, was im Terminal sich abspielt?
Danke und gute Nacht,
Marco
Back to top
View user's profile Send private message
gramels



Joined: 24 Dec 2009
Posts: 132
Location: around Zürich/ Switzerland and SouthWest Germany (Südbaden)

PostPosted: 05.05.2010, 22:33    Post subject: Reply with quote

Hi Marco,

ich probier das morgen mal für Dich aus, habe dieselbe HW wie Du.
Wenn ich mich recht enstinne hatte ich die Zentral schon an meinem MBP unter 10.6.x mit der ANleitung von Wolfgangs Seite.

Geschwindigkeit und Handshake stimmen?

Grüsse

Lothar

_________________
openDCC - MultiMaus - MERG RFID - testing a planned garden layout in IIm -
Back to top
View user's profile Send private message
Open



Joined: 04 May 2010
Posts: 9

PostPosted: 06.05.2010, 10:38    Post subject: Reply with quote

Hallo und ein herzliches Dankeschön, das Ihr Euch mit meinem Problem beschäftigt!

Die Zentrale ist angeschlossen und ich versuche sie zu konfigurieren, wie auf der OpenDCC-Homepage beschrieben. Natürlich habe ich mein Device, wie es mir im Terminal ausgeworfen (/dev/tty.usbserial-FTT6J84N), eingetragen. Der Treiber im System wird geladen, da mir sonst ja gar kein Devicename angezeigt würde. Von daher sollte alles in Ordnung sein. Die grüne PC-LED verändert sich wie folgt: von langsam blinkend, hin zu dauernd leuchtend, wenn Rocrail gestartet wird. Wenn ich in die "Eigenschaften" gehe und dort die Zentrale mit "Read CV" anspreche, dann kann ich ewig warten. Es tut sich nichts!

Hier kommt das Log:

Die letzte Zeile wiederholt sich dann ewig...

Rocrail 1.3.0 "Air"
build Nov 15 2009 21:08:19
revision 982
librocs 1.4-0 build Nov 15 2009 21:08:12
processid = 315
mac = 0000000000000000
--------------------------------------------------
20100506.112724.465 r9999I main OApp 0684 dpIID = []
20100506.112724.465 r9999I main OApp 0685 ptIID = []
20100506.112724.465 r9999I main OApp 0686 svIID = []
20100506.112724.465 r9999I main OApp 0687 lcIID = []
20100506.112724.466 r9999I main OModel 0330 parsePlan file: /Users/marco/Documents/Rocrail/Rocrail.app/Contents/MacOS/../../../rocdata/plan.xml
20100506.112724.469 r9999I main OModel 0367 parsePlan title: New Plan
20100506.112724.469 r9999I main OModel 2154 init clearingMaps...
20100506.112724.469 r9999I main OModel 2173 init creatingMaps...
20100506.112724.469 r9999I main OModel 1667 createMap() tklist,19.
20100506.112724.469 r9999I main OModel 1667 createMap() fblist,6.
20100506.112724.469 r9999I main OModel 1667 createMap() swlist,2.
20100506.112724.469 r9999W main OModel 1670 createMap: sglist NOT found.
20100506.112724.469 r9999W main OModel 1670 createMap: colist NOT found.
20100506.112724.469 r9999I main OModel 1667 createMap() stlist,4.
20100506.112724.469 r9999W main OModel 1670 createMap: ttlist NOT found.
20100506.112724.470 r9999W main OModel 1670 createMap: seltablist NOT found.
20100506.112724.470 r9999W main OModel 1670 createMap: aclist NOT found.
20100506.112724.470 r9999I main OModel 1667 createMap() bklist,3.
20100506.112724.470 r9999W main OModel 1670 createMap: txlist NOT found.
20100506.112724.470 r9999I main OLcDrive 0514 LcDriver 1.3.0 loaded for E03
20100506.112724.470 r9999I main OLcDrive 0514 LcDriver 1.3.0 loaded for V200
20100506.112724.470 r9999I main OModel 1667 createMap() lclist,2.
20100506.112724.470 r9999W main OModel 1670 createMap: carlist NOT found.
20100506.112724.470 r9999W main OModel 1670 createMap: waybilllist NOT found.
20100506.112724.470 r9999W main OModel 1670 createMap: operatorlist NOT found.
20100506.112724.470 r9999W main OModel 1670 createMap: locationlist NOT found.
20100506.112724.470 r9999W main OModel 1670 createMap: sclist NOT found.
20100506.112724.470 r9999I main OModel 2193 init creatingFbAddrMap...
20100506.112724.471 r9999I main OModel 1690 createFbAddrMap: size=6.
20100506.112724.471 r9999I main OModel 1712 createSwAddrMap: size=2.
20100506.112724.471 r9999I main OModel 1733 createCoAddrMap: size=0.
20100506.112724.471 r9999I main OModel 2198 init blockInit...
20100506.112724.471 r9999I main OModel 3185 loading occupation file [occ.xml]
20100506.112724.471 r9999I main OBlock 1358 init block 01
20100506.112724.471 r9999I main OBlock 1358 init block 02
20100506.112724.471 r9999I main OBlock 1358 init block 03
20100506.112724.471 r9999I main OControl 0798 initDigInts lib="opendcc" idd="OpenDCC"
20100506.112724.471 r9999I main OOpenDCC 0465 ----------------------------------------
20100506.112724.471 r9999I main OOpenDCC 0466 opendcc 1.3.0
20100506.112724.471 r9999I main OOpenDCC 0467 iid = OpenDCC
20100506.112724.471 r9999I main OOpenDCC 0468 sublib = p50x
20100506.112724.471 r9999I main OOpenDCC 0469 ----------------------------------------
20100506.112724.471 r9999I main OOpenDCC 0478 try to load [/Users/marco/Documents/Rocrail/Rocrail.app/Contents/MacOS/p50x]
20100506.112724.472 r9999I sw1 OSwitch 1013 Accessory control thread for "sw1" started.
20100506.112724.472 r9999I sw2 OSwitch 1013 Accessory control thread for "sw2" started.
20100506.112724.472 r9999I E03 OLoc 0992 Runner for "E03" started.
20100506.112724.472 r9999I V200 OLoc 0992 Runner for "V200" started.
20100506.112724.491 r9999I main OP50x 1292 ----------------------------------------
20100506.112724.491 r9999I main OP50x 1293 p50x 1.3.0
20100506.112724.491 r9999I main OP50x 1294 ----------------------------------------
20100506.112724.491 r9999I main OP50x 1296 iOP50x[OpenDCC]: /dev/tty.usbserial-FTT6J84N,19200,none,8,2,cts
20100506.112724.491 r9999I main OP50x 1300 p50x timeout=1000
20100506.112724.491 r9999I main OP50x 1301 p50x ctsretry=1000
20100506.112724.491 r9999I main OP50x 1302 p50x readfb=1
20100506.112724.491 r9999I main OP50x 1303 p50x fbmod=0
20100506.112724.491 r9999I main OP50x 1304 p50x swtime=250
20100506.112724.491 r9999I main OP50x 1305 ----------------------------------------
20100506.112724.497 r9999I main OSerial 0173 rocs_serial_open:open rc=0 read=0 write=0 [0] [OK]
20100506.112724.497 r9999I main OSerial 0178 blocking[1] directIO[0]
20100506.112724.497 r9999I main OSerial 0205 rocs_serial_open: set CRTSCTS
20100506.112724.498 r9999I evtreade OP50x 0864 PTevent reader started.
20100506.112724.498 r9999I main OControl 0850 initDigInts OK20100506.112724.498 r9999I statread OP50x 1012 Status reader started.20100506.112724.498 r9999I swdelay OOpenDCC 0410 OpenDCC switch delay thread started.


20100506.112724.498 r9999I main OControl 0161 Init shortcut sensor...
20100506.112724.498 r9999I checker OControl 1000 Checker started.
20100506.112724.498 r9999I clocktic OControl 0943 ClockTicker started.
20100506.112724.498 r9999I main OClntCon 0478 ClientConnection started on port 62842.
20100506.112724.498 r9999I cconmngr OClntCon 0317 Manager started.
20100506.112724.498 r9999I main OModel 0496 updateFB
20100506.112725.498 r9999I statread OP50x 0553 Sending XNOP...
20100506.112734.534 r9999W main OP50x 0112 CTS not ready
20100506.112734.534 r9999E main OP50x 0213 ERROR in transact!!! rc=0 state=SNDERR

20100506.112734.534 r9999E main OControl 0662 CTS error.
20100506.112734.534 r9999I main OApp 0736 MemOp.getAllocCount() = 6531
20100506.112744.569 r9999W evtreade OP50x 0112 CTS not ready
20100506.112745.573 r9999E statread OSerial 0603 ***READ TIMEOUT*** size=1 rc=0 read=0 errno=0 tries=100
20100506.112749.463 r9999I cmdr0055 OClntCon 0209 cmdReader


Last edited by Open on 16.05.2010, 17:52; edited 1 time in total
Back to top
View user's profile Send private message
rjversluis
Site Admin


Joined: 10 Apr 2006
Posts: 3467

PostPosted: 06.05.2010, 11:43    Post subject: Reply with quote

Hi Marco,

benutze doch lieber was neueres wie 1.4 snapshot.

_________________
Best Regards, Rob. Happy with my cap
- Mac OS X - Ubuntu - HTC Tattoo (andRoc) - LocoNet - MGV - OpenDCC - H0 - 0
Back to top
View user's profile
Open



Joined: 04 May 2010
Posts: 9

PostPosted: 06.05.2010, 14:02    Post subject: Reply with quote

Hallo!

Das habe ich gerade mal versucht! Das Programm stürzt relativ häufig ab! Spaß macht das nicht und das Ergebnis ist irgendwie das Gleiche! Ich habe es mit Xpressnet und mit P50x probiert.
Schaut her:

20100506.145510.667 r9999I statread OP50x 0553 Sending XNOP...
20100506.145519.721 r9999W main OP50x 0112 CTS not ready
20100506.145519.721 r9999E main OP50x 0213 ERROR in transact!!! rc=0 state=SNDERR

20100506.145519.721 r9999E main OControl 0662 CTS error.
20100506.145519.721 r9999I main OApp 0736


Last edited by Open on 16.05.2010, 17:52; edited 1 time in total
Back to top
View user's profile Send private message
rjversluis
Site Admin


Joined: 10 Apr 2006
Posts: 3467

PostPosted: 06.05.2010, 15:15    Post subject: Reply with quote

Open wrote:

Das Programm stürzt relativ häufig ab!

Das liegt am wxWidgets was für 64 bit Snow Leopard noch nicht fertig ist.

Open wrote:

Spaß macht das nicht und das Ergebnis ist irgendwie das Gleiche!

Wir versuchen zu helfen. Wenn es dir kein spaß macht dann macht es auch kein sinn weiter zu helfen.


Open wrote:

Ich habe es mit Xpressnet und mit P50x probiert.

Ich hoffe das du dann auch die Firmware für xPressNet in der OpenDCC gespielt hast...

_________________
Best Regards, Rob. Happy with my cap
- Mac OS X - Ubuntu - HTC Tattoo (andRoc) - LocoNet - MGV - OpenDCC - H0 - 0
Back to top
View user's profile
Open



Joined: 04 May 2010
Posts: 9

PostPosted: 06.05.2010, 15:35    Post subject: Reply with quote

Hallo!

So war das nicht gemeint! Ich bin total glücklich mit dem Programm, habe auch extra was gespendet, weil ich es unterstützenswert finde und freue mich total über den Support von Euch!
Ich habe mir den Prozessor fertig mit Software bespielt im Bausatz gekauft und wenn ich die opendcc-Webseite richtig verstanden habe, dann ist Intellibox (P50x) der "default-Zustand" und das sollte dann als Version 023.3 auf meinem Prozessor sein. Daher nutze ich im Test zuerst immer das P50x, aber sie reagiert leider auf beide Protokolle nicht wirklich. Ausser die LED, die Ihren Zustand in "leuchtend" ändert.
1000 Dank für die Hilfe!
Back to top
View user's profile Send private message
rjversluis
Site Admin


Joined: 10 Apr 2006
Posts: 3467

PostPosted: 06.05.2010, 16:12    Post subject: Reply with quote

OK, alles klar.

Am besten warten wir jetzt auf Lothar sein Ergebnis.

_________________
Best Regards, Rob. Happy with my cap
- Mac OS X - Ubuntu - HTC Tattoo (andRoc) - LocoNet - MGV - OpenDCC - H0 - 0
Back to top
View user's profile
gramels



Joined: 24 Dec 2009
Posts: 132
Location: around Zürich/ Switzerland and SouthWest Germany (Südbaden)

PostPosted: 07.05.2010, 00:05    Post subject: Reply with quote

Also, ich hab es schnell getestet und auch nicht zum laufen bekommen.

23.4 opendcc_XP
MacOS 10.6.3
bash-3.2$ ls /dev/*usb*
/dev/cu.usbserial-FTSZBTGI /dev/tty.usbserial-FTSZBTGI
rocrail v 1539

Allerdings hatte ich grad wenig Zeit und Ruhe dazu.

Das Ganze ist knifflig, wegen
Abstürzen rocview
tatsächliche Baud settings

Ich würde Dir empfehlen, es mal mit einem anderen Betriebssystem zu versuchen um sicherzustellen, dass Dein openDCC ok ist. Dann nochmals die openDCC settings flashen, so dass das openDCC wirklich auf 19200 steht. Und es dann nochmals versuchen.
Achtung, openDCC übernimmt manche settings erst nach Neustart (Strom abschalten!).

Ich probiers aber noch mal etwas konzentrierter

_________________
openDCC - MultiMaus - MERG RFID - testing a planned garden layout in IIm -
Back to top
View user's profile Send private message
rjversluis
Site Admin


Joined: 10 Apr 2006
Posts: 3467

PostPosted: 07.05.2010, 08:45    Post subject: Reply with quote

BTW:
Man kann auch der 32 bit Leopard version benutzen unter Snow Leopard. Diese basiert auf wxWidgets 2.8 und ist stabiel.

_________________
Best Regards, Rob. Happy with my cap
- Mac OS X - Ubuntu - HTC Tattoo (andRoc) - LocoNet - MGV - OpenDCC - H0 - 0
Back to top
View user's profile
gramels



Joined: 24 Dec 2009
Posts: 132
Location: around Zürich/ Switzerland and SouthWest Germany (Südbaden)

PostPosted: 07.05.2010, 11:41    Post subject: Reply with quote

Hi Rob,
die leo snapshot ist schon ein wenig abgehangen (1447) kannst Du bitte eine neue bauen?

Grüsse
Lothar

_________________
openDCC - MultiMaus - MERG RFID - testing a planned garden layout in IIm -
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Rocrail - Model Railroad Control System Forum Index -> OpenDCC-Hardware (DE) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Donate to the Rocrail project  

Locations of visitors to rocrail.net

Rocrail - Model Railroad Control System topic RSS feed 


Board Security

9293 Attacks blocked

Powered by phpBB © 2001, 2005 phpBB Group