Skocz do zawartości

rs232 i DTR


Beciu

Recommended Posts

  • 1 month later...
HANDLE Port;
DCB dcb;

Port=CreateFile("COM1", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

dcb.DCBlength = sizeof(dcb);
dcb.BaudRate = CBR_9600; 
dcb.fParity = TRUE;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
dcb.ByteSize = 8; 
dcb.fDtrControl = 0; //TUTAJ GO USTAWIASZ
dcb.fRtsControl=0;
SetCommState(Port, &dcb);
Link do komentarza
Udostępnij na innych stronach

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gość
Odpowiedz...

×   Wkleiłeś zawartość bez formatowania.   Usuń formatowanie

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Utwórz nowe...