RS232 Extension soll MP3 Modul steuern - NEU alle Infos
Einklappen
X
-
Hoi,
waere schon wenn du noch in loxwiki http://www.loxwiki.eu die Anleitung eintragst, dort geht nicht so schnell unten wie in Forum.
pts0Loxome seit 2011 in neubau. Schweiz -
(tut mir leid, aber mein Deutsch ist so schlecht , dass ich es vorziehen, auf Englisch zu schreiben)
I have been debugging my RS232 loxone module the last week. By means of the freeware "Scope32" (http://touch-base.com/utilities.asp) I see that the actuators I create under the Loxone RS232 extension are working well. (just connect the COM-port of your pc to the RS232 extension: DB9-5 to ground, DB9-3=TX to Loxone RS232-Rx, DB9-2=RX to Loxone RS232-Tx see http://www.db9-pinout.com/)
I use it to control several Velleman K8056 8-relayboards. However, as I have to send several on/off commands to the relay boards at the same time, I cannot use the individual relay actuators. I need to send a whole byte to update all 8 relays of a card. So I use the programblocks with code written in PicoC. And my problem is that the "scope32" sniffer doesn't show any output from my simple testprogram: stream_create, stream_write, stream_printf... nothing works.. (for those interested, see attachment)Angehängte DateienKommentar
-
Ich habe die Loxone Extension mit meinem USB - RS232 Adapter verbunden und kann nun vom PC Daten zur Loxone senden, die erfolgreich in der Config angezeigt werden.
Die Programmbausteine senden laut Loxone Monitor ebenfalls, aber am PC wird davon nichts angezeigt. Müssten nicht zumindest irgendwelche Daten angezeigt werden?Kommentar
-
I found that the Loxone RS232 Monitor only shows received data; what Loxone itself transmits is not shown in the Loxone monitor. That's why I hooked up an old PC whith COM-port and the Scope32 program.Kommentar
-
die unter Post Nr3 gezeigte Platine hatte ich auch schon mal getestet (diese ist eigentlich super kompakt - und kostet quasi nix) Das Ergebnis war allerdings ähnlich wie hier beschrieben
ich habe auch nur eine 1-Weg Kommunikation hinbekommen - nun arbeite ich mit einem MAX232 (nicht MAX 3232) und es klappt problemlos
ist nur ein Einwurf zum Thema - hier scheint das Problem aber nicht nur am RS232 - TTL Wandler zu liegen denke ich
sollte jemand eine solche mini Platine mit MAX232 IC kenne würde ich mich über einen Tip freuenKommentar
-
Es lag an der Loxone Extension. Sie sendet gar nicht. Das ist jetzt klar, weil ich eine neue bestellt und probiert habe.
Mit dem Wandler habe ich gute Erfahrungen gemacht! Er arbeitet, wie er soll. Aber davon gibt es zahlreiche auch schlechte Kopien im Netz. Am besten mit einem Original Max3232 arbeiten, keine China Kopie. Wobei es in meinem Fall an Österreich und nicht an China lag :-).
-
-
Ha OK, Thanks for the remark it works for you. After checking "Start and Display RS232/RS232 Monitor" in the Miniserver Tab (while the RS323 extension is selected otherwise you don't see this checkbox), I see indeed the data transmitted by the RS232 actuators now. However, nothing is coming out of my PicoC TEST-program. It should send ABCD every second. Can you point out my error? see 2015-12-30 TEST 1.F Just write ABCD to serial outputstream does not work - PicoC.txt.
// 2015-12-30 this PicoC program block writes via RS232 to Velleman K8056 RelayCards
// This test should show ABCD on the RS232 sniffer ....
STREAM* pRs232Stream = stream_create("/dev/tty/RS232",0,0); // create rs232 stream to the name of the Loxone RS232 extension, which I named "RS232"
char* pRS232Cmd = "ABCD";
while(TRUE)
{
if (pRs232Stream != NULL)
{
setoutputtext(0, pRS232Cmd); // this shows "ABCD" in Loxone Liveview
stream_write( pRs232Stream, pRS232Cmd, strlen( pRS232Cmd )); // write to output buffer
stream_flush(pRs232Stream);
printf("%s", pRS232Cmd ); // shows "ABCD" in Loxone Log window
setoutput(0,1) ; // set AQ1 to show activity
sleep(1000);
setoutput(0,0) ; // reset AQ1 to show activity
sleep(1000);
}
}
}
stream_close(pRs232Stream);
1 BildZuletzt geändert von Gast; 31.12.2015, 13:04.Kommentar
-
Gast
Es lag an der Loxone Extension. Sie sendet gar nicht. Das ist jetzt klar, weil ich eine neue bestellt und probiert habe.
Mit dem Wandler habe ich gute Erfahrungen gemacht! Er arbeitet, wie er soll. Aber davon gibt es zahlreiche auch schlechte Kopien im Netz. Am besten mit einem Original Max3232 arbeiten, keine China Kopie. Wobei es in meinem Fall an Österreich und nicht an China lag :-).lg RomildoKommentar
Kommentar