[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
 

read problem



Hej

Jag har skrivit en applikation som prata RS-485 (serial). På serial
kabeln sitter där ett antal enheter, alla använder sig av det ovan
nämnda protokollet. När man skriver till enheterna i RS-485 kedjan så
måste RTS (i UART) vara satt (=1), och när enheterna skall skriva så
skall den vara sänkt (=0).

Jag har en version som skriver direkt till portarna. Detta har ju många
nackdelar; måste köras som "root", sämre stabilitet och prestanda mm.
Jag har skrivit ett annat program som kan skriva till enheterna i RS-485
kedjan, enheterna läser och skickar till baka ett svar när jag har sänkt
RTS'en. Problemet är att c-funktionen read inte verkar vilja läsa från
från porten när RTS'en är sänkt. 

Finns det andra c-funktioner som kan vara till min hjälp?

-- 
mvh
 Martin Bertilsson Haagen
	sslug@sslug, 0707/671717


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 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] *