[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

tale med serielport med speciel hastighed.



hejsa
jeg sidder og skal læse/skrive en del data på en serielport (til et
eksternt board), og skal derfor have sat baudrate, bits osv for dette.
jeg har lige nu
	/* åbne serielport */
	if((fd = open("/dev/ttyS0", O_RDWR)) == -1){
		perror("failed to open '/dev/ttyS0'");
		exit(1);
	}
	
	/* sæt til at være ikke blokerende */
	if(fcntl(fd, F_SETFL, O_NONBLOCK) == -1){
		perror("fcntl failed");
		exit(1);
	}

hvordan sætter jeg hastigheden til f.eks. 57.600baud?

MVH
Kim Schulz


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *