Thread View: pl.comp.os.linux.programowanie
2 messages
2 total messages
Started by W.P.
Wed, 27 Apr 2011 20:05
RS-232 pod Linuksem w ... shellu?
Author: W.P.
Date: Wed, 27 Apr 2011 20:05
Date: Wed, 27 Apr 2011 20:05
13 lines
1314 bytes
1314 bytes
Mam kartę przekaźników na USB podłączoną do Asusa Wl-500GP (OpenWRT, dokładnie X-WRT), widoczna jest jako normalny port szeregowy. Wystarczy zapisać 1 znak i zmienia stan przekaźników a co (1s) "wypluwa" stan i stan wejść. Pytanie: jak to oprogramować w shellu? (bo tylko to jest praktycznie do dyspozycji). Da się? Na razie "eksportuję" ten port po ser2net i "importuję" przez remserial na PC - tu już mogę w Perlu, ale chciałoby się pozbyć konieczności trzymania blaszaka pod prądem. W.P.
Re: RS-232 pod Linuksem w ... shellu?
Author: Piotr hawat Kostrzewa
Date: Wed, 27 Apr 2011 22:30
Date: Wed, 27 Apr 2011 22:30
12 lines
950 bytes
950 bytes
cześć Pierwszy wynik z google: http://www.google.pl/search?q=linux+reading+a+%2Fdev%2FttyS+from+bash powinien Ci bardzo pomóc. Pozdrawiam H. -- http://hawat.pl
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads