Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
witam po raz kolejny :)
próbuję zainstalować IrDA USB wg instrukcji ze strony:
http://newbie.linux.pl/?id=article&kategoria=4&show=231
ale po podaniu polecenia
modprobe irtty
wykakuje:
FATAL: Module irtty not found.
próbowałem:
apt-get install irtty
ale wynik jest:
E: Nie udało się odnaleźć pakietu irtty
skąd wziąć ten moduł?
Offline
Wyglada na to ze nie masz modulow wkompilowanych w jadro. jakiej firmy jest ta irda, jaki chipset??
daj prosze wynik tego polecenia:
cat /proc/bus/usb/devices
Offline
Wyglada na to ze nie masz modulow wkompilowanych w jadro.
na stronie której link podałem wcześniej jest napisane:
"W następnej kolejności należy wkompilować w jądro (...) lub po prostu wrzucić odpowiednie moduły do jądra"
i tu podane są komendy w tym "modprobe irtty"
jakiej firmy jest ta irda, jaki chipset
nie mam pojęcia, na obudowie jest tylko napisane: USB IrDA 5Vdc 440mA
cat /proc/bus/usb/devices
daje wynik:
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 11/900 us ( 1%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.18-3-686 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:02.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=062a ProdID=0000 Rev= 0.00
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.18-3-686 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=07d0 ProdID=4100 Rev= 0.00
S: Manufacturer=Kingsun Semiconductor
S: Product=USB to Serial
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=55 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=1ms
E: Ad=02(O) Atr=03(Int.) MxPS= 8 Ivl=1ms
Offline
Odpuść sobie irtty, bo masz irde na usb, a nie wbudowaną. Włącz modconf, załaduj moduły irda-usb, irport, podłącz urządzenie do usb, a następnie wydaj polecenie dmesg - lub popatrz na /var/log/syslog, ewentualnie /var/log/messages.
I co się okazuje? - irda jest urządzeniem irda0 - potem jak w opisie.
Offline
Zajrzyj tutaj
http://forum.mandriva.org.pl/archive/index.php?t-7863.html
http://www.mandrivalinux.eu/showthread.php?t=7863
Ale najpierw zerknij tutaj, ruscy ludzie cos wymyslili :)
http://linux.org.ua/cgi-bin/yabb/YaBB.pl?num=1132316340
Offline
Włącz modconf, załaduj moduły irda-usb, irport
1)czy włączenie przez modconf jest równoważne z włączeniem przez "modprobe nazwa_modułu"?
2)nie mam czegoś takiego jak "irport"
dmesg
wynik:
Linux version 2.6.18-3-686 (Debian 2.6.18-7) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)) #1 SMP Mon Dec 4 16:41:14 UTC 2006 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009e800 (usable) BIOS-e820: 000000000009e800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000023ef0000 (usable) BIOS-e820: 0000000023ef0000 - 0000000023efb000 (ACPI data) BIOS-e820: 0000000023efb000 - 0000000023f00000 (ACPI NVS) BIOS-e820: 0000000023f00000 - 0000000024000000 (usable) BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 576MB LOWMEM available. On node 0 totalpages: 147456 DMA zone: 4096 pages, LIFO batch:0 Normal zone: 143360 pages, LIFO batch:31 DMI 2.3 present. ACPI: RSDP (v000 PTLTD ) @ 0x000f6ee0 ACPI: RSDT (v001 PTLTD RSDT 0x06040000 LTP 0x00000000) @ 0x23ef78ba ACPI: FADT (v001 SiS 650 0x06040000 PTL 0x000f4240) @ 0x23efaf8c ACPI: DSDT (v001 Clevo 650 0x06040000 MSFT 0x0100000d) @ 0x00000000 ACPI: PM-Timer IO Port: 0x8008 Allocating PCI resources starting at 30000000 (gap: 24000000:dbf80000) Detected 1693.154 MHz processor. Built 1 zonelists. Total pages: 147456 Kernel command line: root=/dev/hda2 ro Local APIC disabled by BIOS -- you can enable it with "lapic" mapped APIC to ffffd000 (0148c000) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 4096 (order: 12, 16384 bytes) Console: colour VGA+ 80x25 Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 576692k/589824k available (1543k kernel code, 12496k reserved, 574k data, 196k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 3389.60 BogoMIPS (lpj=6779216) Security Framework v1.0.0 initialized SELinux: Disabled at boot. Capability LSM initialized Mount-cache hash table entries: 512 CPU: After generic identify, caps: 3febf9ff 00000000 00000000 00000000 00000000 00000000 00000000 CPU: After vendor identify, caps: 3febf9ff 00000000 00000000 00000000 00000000 00000000 00000000 CPU: Trace cache: 12K uops, L1 D cache: 8K CPU: L2 cache: 128K CPU: Hyper-Threading is disabled CPU: After all inits, caps: 3febf9ff 00000000 00000000 00000080 00000000 00000000 00000000 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU0: Intel P4/Xeon Extended MCE MSRs (12) available CPU0: Thermal monitoring enabled Compat vDSO mapped to ffffe000. Checking 'hlt' instruction... OK. SMP alternatives: switching to UP code Freeing SMP alternatives: 16k freed ACPI: Core revision 20060707 ACPI: setting ELCR to 0400 (from 0c20) CPU0: Intel(R) Celeron(R) CPU 1.70GHz stepping 03 SMP motherboard not detected. Local APIC not detected. Using dummy APIC emulation. Brought up 1 CPUs migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 4408k freed NET: Registered protocol family 16 ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xfd9ae, last bus=1 PCI: Using configuration type 1 Setting up standard PCI resources ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) PCI: Probing PCI hardware (bus 00) Uncovering SIS961 that hid as a SIS503 (compatible=1) Enabling SiS 96x SMBus. Boot video device is 0000:01:00.0 ACPI: PCI Interrupt Routing Table [_SB_.PCI0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs *5) ACPI: PCI Interrupt Link [LNKB] (IRQs *10) ACPI: PCI Interrupt Link [LNKC] (IRQs 5) *0, disabled. ACPI: PCI Interrupt Link [LNKD] (IRQs *11) ACPI: PCI Interrupt Link [LNKE] (IRQs *11) ACPI: PCI Interrupt Link [LNKF] (IRQs 10) *0, disabled. ACPI: PCI Interrupt Link [LNKG] (IRQs 10) *0, disabled. ACPI: PCI Interrupt Link [LNKH] (IRQs *10) ACPI: Embedded Controller [EC] (gpe 23) interrupt mode. Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 10 devices PnPBIOS: Disabled by ACPI PNP PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report pnp: 00:04: ioport range 0x8000-0x807f could not be reserved pnp: 00:04: ioport range 0x4d0-0x4d1 has been reserved pnp: 00:04: ioport range 0xfe00-0xfe00 has been reserved PCI: Ignore bogus resource 6 [0:0] of 0000:01:00.0 PCI: Bridge: 0000:00:01.0 IO window: 9000-9fff MEM window: e8100000-e81fffff PREFETCH window: f0000000-f7ffffff NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered audit: initializing netlink socket (disabled) audit(1171926364.052:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 8250 PCI: Enabling device 0000:00:02.6 (0000 -> 0001) ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 10 PCI: setting IRQ 10 as level-triggered ACPI: PCI Interrupt 0000:00:02.6[C] -> Link [LNKF] -> GSI 10 (level, low) -> IRQ 10 ACPI: PCI interrupt for device 0000:00:02.6 disabled RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 i8042.c: Detected active multiplexing controller, rev 1.1. serio: i8042 AUX0 port at 0x60,0x64 irq 12 serio: i8042 AUX1 port at 0x60,0x64 irq 12 serio: i8042 AUX2 port at 0x60,0x64 irq 12 serio: i8042 AUX3 port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 mice: PS/2 mouse device common for all mice TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 Using IPI No-Shortcut mode ACPI: (supports S0 S3 S4 S5) Freeing unused kernel memory: 196k freed Time: tsc clocksource has been installed. input: AT Translated Set 2 keyboard as /class/input/input0 ACPI: Processor [CPU0] (supports 8 throttling states) ACPI: Thermal Zone [THM0] (61 C) usbcore: registered new driver usbfs usbcore: registered new driver hub Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx SIS5513: IDE controller at PCI slot 0000:00:02.5 SIS5513: chipset revision 208 SIS5513: not 100% native mode: will probe irqs later SIS5513: SiS 961 MuTIOL IDE UDMA100 controller ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdc:pio, hdd:pio Probing IDE interface ide0... ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004) hda: ST980815A, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Probing IDE interface ide1... hdc: SONY DVD RW DW-Q520A, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11 PCI: setting IRQ 11 as level-triggered ACPI: PCI Interrupt 0000:00:02.2[D] -> Link [LNKE] -> GSI 11 (level, low) -> IRQ 11 ohci_hcd 0000:00:02.2: OHCI Host Controller ohci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1 ohci_hcd 0000:00:02.2: irq 11, io mem 0xe8000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports detected ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 10 ACPI: PCI Interrupt 0000:00:02.3[A] -> Link [LNKH] -> GSI 10 (level, low) -> IRQ 10 ohci_hcd 0000:00:02.3: OHCI Host Controller ohci_hcd 0000:00:02.3: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:02.3: irq 10, io mem 0xe8001000 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 3 ports detected 8139cp 0000:00:0a.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip8139cp 0000:00:0a.0: Try the "8139too" driver instead. 8139too Fast Ethernet driver 0.9.27 PCI: Enabling device 0000:00:0a.0 (0000 -> 0003) ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11 eth0: RealTek RTL8139 at 0x2000, 00:90:f5:1b:34:69, IRQ 11 eth0: Identified 8139 chip type 'RTL-8100B/8139D' hda: max request size: 512KiB hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100) hda: cache flushes supported hda:<6>usb 1-1: new low speed USB device using ohci_hcd and address 2 hda1 hda2 hda3 < hda5 hda6 > hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 usb 1-1: configuration #1 chosen from 1 choice usb 2-1: new low speed USB device using ohci_hcd and address 2 usb 2-1: configuration #1 chosen from 1 choice usbcore: registered new driver hiddev input: HID 062a:0000 as /class/input/input1 input: USB HID v1.10 Mouse [HID 062a:0000] on usb-0000:00:02.3-1 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver Attempting manual resume kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. ts: Compaq touchscreen protocol output pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 Linux agpgart interface v0.101 (c) Dave Jones agpgart: Detected SiS 650 chipset agpgart: AGP aperture is 128M @ 0xe0000000 input: PS/2 Mouse as /class/input/input2 input: AlpsPS/2 ALPS GlidePoint as /class/input/input3 sis96x_smbus 0000:00:02.1: SiS96x SMBus base address: 0x8080 input: PC Speaker as /class/input/input4 Real Time Clock Driver v1.12ac PCI: Enabling device 0000:00:02.6 (0000 -> 0001) ACPI: PCI Interrupt 0000:00:02.6[C] -> Link [LNKF] -> GSI 10 (level, low) -> IRQ 10 parport: PnPBIOS parport detected. parport0: PC-style at 0x378 (0x778), irq 7, dma 1 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA] PCI: Enabling device 0000:00:02.7 (0000 -> 0001) ACPI: PCI Interrupt 0000:00:02.7[C] -> Link [LNKF] -> GSI 10 (level, low) -> IRQ 10 Floppy drive(s): fd0 is 1.44M FDC 0 is a National Semiconductor PC87306 intel8x0_measure_ac97_clock: measured 55396 usecs intel8x0: clocking to 48000 Adding 1702848k swap on /dev/hda5. Priority:-1 extents:1 across:1702848k EXT3 FS on hda2, internal journal loop: loaded (max 8 devices) device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com kjournald starting. Commit interval 5 seconds EXT3 FS on hda6, internal journal EXT3-fs: mounted filesystem with ordered data mode. hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } hdc: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 } ide: failed opcode was: unknown hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } hdc: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 } ide: failed opcode was: unknown NET: Registered protocol family 10 lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 eth0: no IPv6 routers present ACPI: Battery Slot [BAT0] (battery present) ACPI: AC Adapter [ADP0] (on-line) ACPI: Power Button (CM) [PWRB] ACPI: Sleep Button (CM) [SLPB] ACPI: Lid Switch [LID] lp0: using parport0 (interrupt-driven). ppdev: user-space parallel port driver eth0: no IPv6 routers present irda_init() NET: Registered protocol family 23 usbcore: registered new driver irda-usb USB IrDA support registered USB Universal Host Controller Interface driver v3.0
na pewno :)
Ale najpierw zerknij tutaj, ruscy ludzie cos wymyslili :)
http://linux.org.ua/cgi-bin/yabb/YaBB.pl?num=1132316340
ale dużo zrozumiałem :P
Offline
JA tez nie rozumie po rusku ale masz w pierwszym czy drugim poscie wypisane co i jak:
modprobe uhci_hcd
modprobe pl2303
modprobe irda
modprobe irtty-sir
modprobe ma600-sir
modprobe ircomm-tty
irattach /dev/ttyUSB0 -d ma600 -s
w sumie pierwszego nie musisz ladowac, bo pewnie usb masz zainstalowane.
A co do roznicy miedzy modconf a modprobe.
http://wiki.linuxquestions.org/wiki/Modconf
http://www.die.net/doc/linux/man/man8/modprobe.8.html
a w skrocie. modconf jest to skrypt ktory sluzy do automatycznego ladowaniu modulow podczas startu systemu, a modprobe laduje tylko moduly na probe, w celu przetestowania.
ps. najpierw daj lsmod, powywalaj (modprobe -r nazwamodulu )wszystko co dotyczy irdy a pozniej pokolei zaladuj moduly.
Znalazlem jeszcze troszke do poczytania
http://permalink.gmane.org/gmane.linux.irda.general/879
http://forum.mandriva.org.pl/showthread.php?t=7863&page=2
Offline
mknod /dev/ircomm1 c 161 1 - tworzysz urządzenie blokowe dla irdy.
Poczytaj te linki
http://www.google.pl/search?hl=pl&q=mknod+%2Bir … oogle&lr=
Offline
no ale dla mnie sposób który podałem w linku nie działa :( bo :
nie działa - zamiast nazwy irdy m-620 pokazuje mi jakieś dazzle
jak pisze dazle to masz walek bo mam też takie cos na usb i nie ma zadnej mozliwosci zeby odpalic to pod LINUKSEM
(powyższe cytaty również z tamtego forum)
Offline
Ważne info.
irda (Dazzle) na kernelu 2. 6. 24 działa i automagicznie ładuje moduł ksdazzle_sir.
A po dodaniu modułów irda, ircomm, ircomm-tty
oraz wydaniu komendy "ifconfig irda0 up" (jako root)
(Wcześniej musi być zainstalowany pakiet irda-utils względnie irda-tools (to ten sam pakiet)
Da się odpalić:
irdadump (coś jak tcpdump - czyta pakiety przesyłane przez irde)
irdaping (tu wstawić adres urządzenia zczytany z irdadump w formacie 0x00001234) - pingowałem SE K300i
obexpushd -I -odbiera pliki z irdy (testowane na SE K300i)
ircp -wysyła plik przez irde ( SE K300i nie ma problemów z odebraniem)
ircp -r -odbiera plik przez irde ( przesyłałem fotki z SE K300i)
Na razie to tyle. Planuje przy pomocy tej irdy sterować kompem (prezentacje) zobaczymy co z tego wyjdzie.
Jak coś to się pochwale jeszcze :-D
Offline