pole23 Posted June 11, 2012 at 08:36 AM Share Posted June 11, 2012 at 08:36 AM Hallo zusammen, ich bin recht neu, was TF betrifft. Jedoch habe ich gestern folgendes Problem beobachtet. Ich habe einen Rechner mit Debian 6 ohne GUI. Dort habe ich den Daemon installiert und konnte dann auch ohne Probleme das LCD Display ansteuern. Dann habe ich noch einen IO16 dazu gebaut. Habe das Beispielscript für Python für die Callbacks genommen und es hat auf keine Schaltvorgänge reagiert. Dann ein Laptop mit Ubuntu genommen, Daemon und Viewer installiert. Dort geht es nur, wenn ich den Viewer starte und das IO16 Bricklet auswähle. Aber so wie ich es verstanden habe, müsste es doch auch ohne Viewer gehen, oder? Quote Link to comment Share on other sites More sharing options...
AuronX Posted June 11, 2012 at 09:11 AM Share Posted June 11, 2012 at 09:11 AM Klingt danach, dass du die Callbacks nicht einschaltest. Wenn dann der Viewer dazukommt schaltet er sie ein. Hast du den interrupt mittels set_port_interrupt aktiviert? Quote Link to comment Share on other sites More sharing options...
pole23 Posted June 11, 2012 at 10:29 AM Author Share Posted June 11, 2012 at 10:29 AM Hallo, ich hatte den Interrupt auf allen Ports aktiviert mit "io.set_port_interrupt('a', 0xFF)" (ist der Befehl so richtig???) aktiviert. Quote Link to comment Share on other sites More sharing options...
borg Posted June 11, 2012 at 11:27 AM Share Posted June 11, 2012 at 11:27 AM Ist denn der Port auf input Konfiguriert? Also set_port_configuration('a', 0xFF, 'i', true) Quote Link to comment Share on other sites More sharing options...
pole23 Posted June 11, 2012 at 11:33 AM Author Share Posted June 11, 2012 at 11:33 AM Hallo, alle Ports sind auf Input Konfiguriert, laut dem Viewer. Quote Link to comment Share on other sites More sharing options...
borg Posted June 11, 2012 at 11:35 AM Share Posted June 11, 2012 at 11:35 AM Der Viewer konfiguriert auf Input wenn du ihn anmachst. Du sagst ja das es funktioniert wenn du den Viewer anmachst. Das lässt mich vermuten dass bisher immer der Viewer auf Input konfiguriert hat . Quote Link to comment Share on other sites More sharing options...
pole23 Posted June 11, 2012 at 12:52 PM Author Share Posted June 11, 2012 at 12:52 PM Ahh, das klingt logisch. Ich werde das heute abend mal ins Script aufnehmen und dann testen. Also dann einfach mit io.set_port_configuration('a', 0xFF, 'i', True) alle Port auf Input setzen? Quote Link to comment Share on other sites More sharing options...
pole23 Posted June 11, 2012 at 05:39 PM Author Share Posted June 11, 2012 at 05:39 PM Funzt, vielen dank für die schnelle Hilfe. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.