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

Wichtig: Bevor Du wegen einem Problem mit der CC2 postest, stelle sicher, daß Du
die neueste OS-Version, die neuseste Compiler-DLL und die neuesten Modulversionen benutzt!
Beachte, daß sich auf der CD zur CC2-Unit/Station auch jetzt noch die ältesten Dateien befinden!
Es gelten folgende Anleitung und Regeln: Regeln CC2Net.de-Forum
Zurück zum Artikel  (Blaue Felder sind Pflichtfelder)


Name:   UserID: 
 E-Mail:
Kategorie
Betreff
Homepage:
Link-Titel:
Link-URL:
Cookie für Name, UserID, E-Mail, Homepage-URL setzen
(Erspart die Neueingabe bei Beiträgen und Antworten)
(Zum Löschen des Cookies hier klicken)
Ich nutze:
C-Control II Unit
C164CI-Controllerboard
C-Control II Station
CCRP5 mit CC2-Unit (Conrad Roboter)
CC2-Application-Board
CC2-StarterBoard
CC2-ReglerBoard
eigenes Board
original OS     OSOPT_V2     OSOPT V3.0 OSOPT V3.1

Kommentar:
Einfügen von HTML im Kommentar:

Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a>
Bild einfügen: <img src="BILDURL">
Text formatieren: <b>fetter Text</b>  <i>kursiver Text</i> <u>unterstrichener Text</u>
Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b>
C2 Quellcode formatieren: <code>Quellcode</code>
ASM Quellcode formatieren: <asm>Quellcode</asm>
(Innerhalb eines Quellcodeabschnitts ist kein html möglich.)
Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst !  

> Hi! > My german is too poor, so can I make it in english? > > I want to use both hwcom and swcom on a CC2 controler with the development > board. > I directly connected TxD and RxD and ground for HWCOM without using the null > modem cable. > > For swcom: > I connected P1H2 on digital RTS. > I connected P1H1 on digital CTS. > I connected RxD of the PC on SWCOM TxD. > I connected TxD of the PC on SWCOM RxD. > I connected pin 5 on PC (ground) to the ground of the CC2. > > I used in both case shielded cable. > > I am using OS v3.0 and the SP2 2.13. > I can use the COM2 (hwcom) to flash the memory of the CC2, and COM1 (SWCOM) > works. But when I plug both serial port (com1 and com2 to swcom and hwcom > respectively) and run the program, it hangs. I have to unplug SWCOM (com1) to > see the output coming to the terminal (hwcom). > What can I do to have both port working simultaneously? > What did I do wrong? > > Here's the code: > > thread main{ > int k; > string s; > > swcom.init(); > hwcom.init(); > > hwcom.setspeed(hwcom.SPEED_57600);; // 8: 57600 BPS > swcom.setspeed(swcom.SPEED_9600); // 5: 9600 BPS > hwcom.clr(); > swcom.clr(); > for k=1...2000{ > > s= "HWCOM"; > hwcom.send(s, str.length(s)); > s= "SWCOM"; > swcom.send(s, str.length(s)); } > } > > Also, thank you very much for your tremendous work on the CC2. > > Herve > Herve.Remigy@unibas.ch
Dateianhang: (.gif, .png., .jpg, .zip, .rar)
max. 256kB
max. 256kB