View previous topic :: View next topic |
Author |
Message |
znal Apprentice
Joined: 12 Jul 2007 Posts: 190
|
Posted: Fri Nov 14, 2008 10:52 pm Post subject: [SOLVED]Problem z portem LPT |
|
|
Potrzebuję wysyłać znaki bezpośrednio na port LPT (wymaga tego urządzenie), ale jest problem:
Code: | # echo "123">/dev/parport0
bash: echo: write error: Zły argument |
dmesg w tym czasie wypluwa:
Code: | ppdev0: claim the port first |
Sam port oczywiście działa dobrze, sprawdzałem (pod windowsem) podpinając skaner. W biosie próbowałem opcji ECP+EPP i ECP. Odpowiednie moduły są załadowane:
Code: | # dmesg |grep parport
parport_pc 00:0a: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
# dmesg |grep ppdev
ppdev: user-space parallel port driver |
Jak to rozwiązać?
Last edited by znal on Sun Nov 16, 2008 1:04 am; edited 1 time in total |
|
Back to top |
|
|
qermit Veteran
Joined: 02 Feb 2005 Posts: 1032
|
Posted: Sat Nov 15, 2008 11:06 am Post subject: |
|
|
a sprawdzałeś może /dev/lp0 ?
Jakie to urządzenie? _________________ "A co ty masz w swoim LinuXie?" - Dr Qermit |
|
Back to top |
|
|
znal Apprentice
Joined: 12 Jul 2007 Posts: 190
|
Posted: Sat Nov 15, 2008 1:50 pm Post subject: |
|
|
Wpisanie czegoś do /dev/lp0 powoduje wysłanie tego na drukarkę (podpiętą do USB).
No może urządzenie to za dużo powiedziane mają to być na razie diody świecące podpięte po linię danych lpt.
EDIT:
Okazało się, że to nie jest żaden problem, tylko normalna sytuacja
Trzeba najpierw użyć ioperm, żeby odblokować port. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|