Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - FAQ - Zum CC1-Forum - Zum CC-Pro-Forum

Re: RS 232 communication does not work? Kategorie: Programmierung (von AndrĂ© H. - 21.12.2002 8:24)
Als Antwort auf Re: RS 232 communication does not work? von Remon Vos - 19.12.2002 15:32

Hi Remon,

First, try this example:

thread main
{ string s;
  hwcom.ini();
  hwcom.setspeed(8)//=57.600 Baud, or other baudrates
  loop
  {
   s="Teststring";
   hwcom.print(s);
   hwcom.ret();
   sleep 1000;
  }
}


This muĂ?t work.
If not: Make shure you are using osopt_V2.
After resetting the CC2 the message "CC2  V.2" muĂ?t be
displayed in the small LCD of the Unit before the
message "Running" or "Hostmode" will be shown there.

Settings for Hyperterminal: 8N1
Speed: same as C2-program, here 57.600 Baud
Handshake: Hardware !

regards André H.


> Hmm.. too bad... I've build in a pause (sleep 1000) after the hwcom.send command. And still nothing.
>
> This time I waited a while (a few minutes) and the CC2 units keeps repeating the first character ("D").
> Again I tried to switch off the handshaking on both the CC2 (removing the jumpers) and my computer, but that didn't help either.
>
> I'm still hoping someone can help me....
>



Antworten bitte nur ins Forum!
Fragen per EMail auf Forum-Postings werden nicht beantwortet!

Das macht meine Heizung gerade


    Antwort schreiben


Antworten: