nivan

Направљене поруке на форуму

Гледање 21 чланка - 21 до 22 (од 22 укупно)
  • Аутор
    Чланци
  • као одговор на: Root login, modem i tv tuner #69361
    nivan
    Учесник

    Kad hoces da ti radi nesto na linuxu prvo pogledaj koji je device id i vendor broj.
    Za pci uredjaje je lspci -v a za usb lsusb -v
    E sad kako videti uredjaj na srial com portu nisam siguran ali verujem da postoje tools setserial  za serial portove.

    http://www.icewalkers.com/Linux/Howto/Serial-HOWTO.html
    http://www.accesio.com/go.cgi?p=../software/linuxserial.html
    http://www.tldp.org/HOWTO/Serial-HOWTO.html

    `The command setserial -g /dev/ttyS* will list serial devices`
    Kad saznas device id i vendor googlaj i mozda nadjes how to za tvoj modem.U svakom slucaju na linkovima gore imas how to za serial modem.
    Naprimer:
    setserial -g /dev/ttyS*
    /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
    /dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3
    /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
    /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
    /dev/ttyS4: No such device or address
    /dev/ttyS5: No such device or address
    /dev/ttyS6: No such device or address
    /dev/ttyS7: No such device or address

    setserial –help
    setserial: invalid option — –
    setserial version 2.17, 27-Jan-2000

    usage:  setserial serial-device -abqvVWz [cmd1 [arg]] …
            setserial -g [-abGv] device1 …

    Available commands: (* = Takes an argument)
                    (^ = can be preceded by a ‘^’ to turn off the option)
            * port          set the I/O port
            * irq          set the interrupt
            * uart          set UART type (none, 8250, 16450, 16550, 16550A,
                            16650, 16650V2, 16750, 16850, 16950, 16954)
            * baud_base    set base baud rate (CLOCK_FREQ / 16)
            * divisor      set the custom divisor (see spd_custom)
            * close_delay  set the amount of time (in 1/100 of a
                                    second) that DTR should be kept low
                                    while being closed
            * closing_wait  set the amount of time (in 1/100 of a
                                    second) that the serial port should wait for
                                    data to be drained while being closed.
            ^ fourport      configure the port as an AST Fourport
              autoconfig    automatically configure the serial port
            ^ auto_irq      try to determine irq during autoconfiguration
            ^ skip_test    skip UART test during autoconfiguration

            ^ sak          set the break key as the Secure Attention Key
            ^ session_lockout Lock out callout port across different sessions
            ^ pgrp_lockout  Lock out callout port across different process groups
            ^ callout_nohup Don’t hangup the tty when carrier detect drops
                                    on the callout device
            ^ split_termios Use separate termios for callout and dailin lines
            ^ hup_notify    Notify a process blocked on opening a dial in line
                                    when a process has finished using a callout
                                    line by returning EAGAIN to the open.
            ^ low_latency  Minimize receive latency at the cost of greater
                                    CPU utilization.
              get_multiport Display the multiport configuration
              set_multiport Set the multiport configuration

            * rx_trigger    Set RX trigger level (ESP-only)
            * tx_trigger    Set TX trigger level (ESP-only)
            * flow_off      Set hardware flow off level (ESP-only)
            * flow_on      Set hardware flow on level (ESP-only)
            * rx_timeout    Set receive timeout (ESP-only)
            * dma_channel  Set DMA channel (ESP-only)

              spd_hi        use 56kb instead of 38.4kb
              spd_vhi      use 115kb instead of 38.4kb
              spd_shi      use 230kb instead of 38.4kb
              spd_warp      use 460kb instead of 38.4kb
              spd_cust      use the custom divisor to set the speed at 38.4kb
                                    (baud rate = baud_base / custom_divisor)
              spd_normal    use 38.4kb when a buad rate of 38.4kb is selected

    Use a leading ‘0x’ for hex numbers.
    CAUTION: Using an invalid port can lock up your machine!

    U svakom slucaju ovo ti je mozda od neke pomoci, a ako je modem vezan za com1 od  9 pina mali port onda je za sigurno /dev/ttyS0  (0=nula)
    Ako tvoj program dajler nemoze da uradi query na ttyS0 onda mozes da napravis /dev/modem link komandom
    ln -s /dev/ttyS0 /dev/modem

    као одговор на: Root login, modem i tv tuner #69358
    nivan
    Учесник

    Imam Leadtekovu tv karticu tv2000xp-RM (bez fm-a), Vidi je kao BT878, Kako da nateram to da radi?

    Za leadtek 200xp rm tuner je 43 a kartica 34 kod bttv drajvera pa zato uradi

    rmmod tuner
    rmmod bttv
    modprobe bttv card=34 tuner=43
    Program koji koristis za gledanje (naprimer tvtime) podesis na pal pa onda skeniras
    Radi i lirc sa modulom lirc_gpio

Гледање 21 чланка - 21 до 22 (од 22 укупно)