nixp.ru v3.0

28 марта 2024,
четверг,
21:56:23 MSK

Аватар пользователя aivs
aivs написал 18 февраля 2006 года в 01:36 (1540 просмотров) Ведет себя как мужчина; открыл 114 темы в форуме, оставил 293 комментария на сайте.

Подрубил себе блютус через BlueZ поставил kdebluetooth. Работает, иногда глючит.

Вообщем, при передаче файлов скорость иногда 5 KB/s, иногда 10 KB/s, иногда 20 KB/s.

20 это максимально.

В винде максимально 40, как бы мне поднять скорость в линуксе?

Все конфиги облазил, так и не нашел где скорость блютуса выставляется.

И вообще в принципе можноли добиться скорости хотябы в 2 раза меньше теоритической ?

Dr. Evil

гарнитура на usb шине?

если да, то давай вывод lsmod

aivs

да на usb.

ircomm_tty             21000  0

ircomm                 11140  1 ircomm_tty

ma600_sir               2816  1

irtty_sir               5248  2

sir_dev                14284  2 ma600_sir,irtty_sir

irda                  120504  4 ircomm_tty,ircomm,ma600_sir,sir_dev

crc_ccitt               2176  1 irda

rfcomm                 34324  7

hidp                   13184  2

l2cap                  22016  10 rfcomm,hidp

pl2303                 18692  1

usbserial              28008  3 pl2303

hci_usb                14356  6

bluetooth              42852  16 rfcomm,hidp,l2cap,hci_usb

uhci_hcd               30096  0

usbhid                 46496  0

usblp                  11648  0

usb_storage            71616  0

ppp_generic            26516  0

slhc                    6528  1 ppp_generic

usbcore               114052  8 pl2303,usbserial,hci_usb,uhci_hcd,usbhid,usblp,usb_storage

Блютус работает идеально. компом управляю, файлами обмениваюсь. Работает все.

Вот только скорость немного не радует.

Bluetooth по протаколу 2.0 т.е теоритическая скорость 1 мегабит, понятно что на такой скорости он работать не будет.

Хотябы приблизиться к ней

fly4life

А если подгрузить модуль ehci_hcd?

Dr. Evil

Саша,

ч.т.д

;)

aivs

Модуль подгрузил, только изменений не заметил

Dr. Evil

винда может нарисовать хоть <font color=«red»>100</font>.

где можно спецификацию на твой гаджет почитать?

lsusb -v?

aivs

Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Я по времени замерял,передавал один и тот же файл в лине и венде. В венде быстрее, и скорость не скачет, стабильно 38~42.

В лине то 5 то 13 то 29 потом 12 и вот так средяняя выходит наверное 15. Я думаю это дрова такие,наверно врятли чего можно сделать.

Dr. Evil

ядро у тебя какое? что используешь для заливки?

ты не то прислал.

давай весь вывод lsusb -v

aivs

[root@myhost aivs]# uname -a

Linux myhost 2.6.15-ARCH #1 SMP PREEMPT Wed Feb 8 19:56:06 MSK 2006 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux

Вывод lsusb -v

Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Device Descriptor:

bLength 18

bDescriptorType 1

bcdUSB 2.00

bDeviceClass 224 Wireless

bDeviceSubClass 1 Radio Frequency

bDeviceProtocol 1 Bluetooth

bMaxPacketSize0 64

idVendor 0×0a12 Cambridge Silicon Radio, Ltd

idProduct 0×0001 Bluetooth Dongle (HCI mode)

bcdDevice 15.93

iManufacturer 0

iProduct 0

iSerial 0

bNumConfigurations 1

Configuration Descriptor:

bLength 9

bDescriptorType 2

wTotalLength 177

bNumInterfaces 2

bConfigurationValue 1

iConfiguration 0

bmAttributes 0xc0

Self Powered

MaxPower 0mA

Interface Descriptor:

bLength 9

bDescriptorType 4

bInterfaceNumber 0

bAlternateSetting 0

bNumEndpoints 3

bInterfaceClass 224 Wireless

bInterfaceSubClass 1 Radio Frequency

bInterfaceProtocol 1 Bluetooth

iInterface 0

Endpoint Descriptor:

bLength 7

bDescriptorType 5

bEndpointAddress 0×81 EP 1 IN

bmAttributes 3

Transfer Type Interrupt

Synch Type None

Usage Type Data

wMaxPacketSize 0×0010 1x 16 bytes

bInterval 1

Для заливки использую BlueZ+openobex+kbluetooth

Dr. Evil

aivs, выдерни из порта свой гаджет и опять приведи здесь вывод lsusb -v

aivs

вот так

[root@myhost aivs]# lsusb -v

Bus 004 Device 001: ID 0000:0000

Device Descriptor:

bLength 18

bDescriptorType 1

bcdUSB 1.10

bDeviceClass 9 Hub

bDeviceSubClass 0 Unused

bDeviceProtocol 0

bMaxPacketSize0 64

idVendor 0×0000

idProduct 0×0000

bcdDevice 2.06

iManufacturer 3 Linux 2.6.15-ARCH uhci_hcd

iProduct 2 UHCI Host Controller

iSerial 1 0000:00:1d.3

bNumConfigurations 1

Configuration Descriptor:

bLength 9

bDescriptorType 2

wTotalLength 25

bNumInterfaces 1

bConfigurationValue 1

iConfiguration 0

bmAttributes 0xc0

Self Powered

MaxPower 0mA

Interface Descriptor:

bLength 9

bDescriptorType 4

bInterfaceNumber 0

bAlternateSetting 0

bNumEndpoints 1

bInterfaceClass 9 Hub

bInterfaceSubClass 0 Unused

bInterfaceProtocol 0

iInterface 0

Endpoint Descriptor:

bLength 7

bDescriptorType 5

bEndpointAddress 0×81 EP 1 IN

bmAttributes 3

Transfer Type Interrupt

Synch Type None

Usage Type Data

wMaxPacketSize 0×0002 1x 2 bytes

bInterval 255

Hub Descriptor:

bLength 9

bDescriptorType 41

nNbrPorts 2

wHubCharacteristic 0×000a

No power switching (usb 1.0)

Per-port overcurrent protection

bPwrOn2PwrGood 1 * 2 milli seconds

bHubContrCurrent 0 milli Ampere

DeviceRemovable 0xb7

PortPwrCtrlMask 0xe0

Hub Port Status:

Port 1: 0000.0100 power

Port 2: 0000.0100 power

Dr._Evil скажи что ты хочешь увидеть, может я тоже чего нибудь рассмотрю

Dr. Evil

вот это видишь?

iManufacturer 3 Linux 2.6.15-ARCH uhci_hcd

это значит, что это порт USB 1.1

Хочется посмотреть на то, как твоя система видит порт, к которому ты подключаешь свой bluetooth.

последний раз ты привел lsusb -v не той шины, к который ты подключал свой гаджет. посмотри внимательно:

[root@myhost aivs]# lsusb -v

последнее

Bus 004 Device 001: ID 0000:0000

Вывод lsusb -v

Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle

то, что ты привел по первому запросу

давай, не путай

aivs

Понял ошибку.

Вот блютус включен

Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Device Descriptor:

 bLength                18

 bDescriptorType         1

 bcdUSB               2.00

 bDeviceClass          224 Wireless

 bDeviceSubClass         1 Radio Frequency

 bDeviceProtocol         1 Bluetooth

 bMaxPacketSize0        64

 idVendor           0×0a12 Cambridge Silicon Radio, Ltd

 idProduct          0×0001 Bluetooth Dongle (HCI mode)

 bcdDevice           15.93

 iManufacturer           0

 iProduct                0

 iSerial                 0

 bNumConfigurations      1

 Configuration Descriptor:

   bLength                 9

   bDescriptorType         2

   wTotalLength          177

   bNumInterfaces          2

   bConfigurationValue     1

   iConfiguration          0

   bmAttributes         0xc0

     Self Powered

   MaxPower                0mA

   Interface Descriptor:

     bLength                 9

     bDescriptorType         4

     bInterfaceNumber        0

     bAlternateSetting       0

     bNumEndpoints           3

     bInterfaceClass       224 Wireless

     bInterfaceSubClass      1 Radio Frequency

     bInterfaceProtocol      1 Bluetooth

     iInterface              0

     Endpoint Descriptor:

       bLength                 7

       bDescriptorType         5

       bEndpointAddress     0×81  EP 1 IN

       bmAttributes            3

         Transfer Type            Interrupt

         Synch Type               None

         Usage Type               Data

       wMaxPacketSize     0×0010  1x 16 bytes

       bInterval               1

aivs

Когда отключаю блютус, его секция Bus 001 Device 004 исчезает.

Из Bus 001 есть вот это

Bus 001 Device 001: ID 0000:0000

Device Descriptor:

 bLength                18

 bDescriptorType         1

 bcdUSB               1.10

 bDeviceClass            9 Hub

 bDeviceSubClass         0 Unused

 bDeviceProtocol         0

 bMaxPacketSize0        64

 idVendor           0×0000

 idProduct          0×0000

 bcdDevice            2.06

 iManufacturer           3 Linux 2.6.15-ARCH uhci_hcd

 iProduct                2 UHCI Host Controller

 iSerial                 1 0000:00:1d.0

 bNumConfigurations      1

 Configuration Descriptor:

   bLength                 9

   bDescriptorType         2

   wTotalLength           25

   bNumInterfaces          1

   bConfigurationValue     1

   iConfiguration          0

   bmAttributes         0xc0

     Self Powered

   MaxPower                0mA

   Interface Descriptor:

     bLength                 9

     bDescriptorType         4

     bInterfaceNumber        0

     bAlternateSetting       0

     bNumEndpoints           1

     bInterfaceClass         9 Hub

     bInterfaceSubClass      0 Unused

     bInterfaceProtocol      0

     iInterface              0

     Endpoint Descriptor:

       bLength                 7

       bDescriptorType         5

       bEndpointAddress     0×81  EP 1 IN

       bmAttributes            3

         Transfer Type            Interrupt

         Synch Type               None

         Usage Type               Data

       wMaxPacketSize     0×0002  1x 2 bytes

       bInterval             255

Hub Descriptor:

 bLength               9

 bDescriptorType      41

 nNbrPorts             2

 wHubCharacteristic 0×000a

   No power switching (usb 1.0)

   Per-port overcurrent protection

 bPwrOn2PwrGood        1 * 2 milli seconds

 bHubContrCurrent      0 milli Ampere

 DeviceRemovable    0xb7

 PortPwrCtrlMask    0xe0

Hub Port Status:

  Port 1: 0000.0100 power

  Port 2: 0000.0100 power

В каробке написано что блютус работает с USB 2.0 и поддерживает 1.1

metal

А если попробовать выгрузить uhci_hcd до подключения устройства и подгрузить ehci_hcd. У стройство подхватится и каким драйвером?

Dr. Evil

тайное становится явным :)

ты сам посмотри на данные, которые привел ;)

Когда отключаю блютус, его секция Bus 001 Device 004 исчезает.

Из Bus 001 есть вот это

Bus 001 Device 001: ID 0000:0000

Device Descriptor:

bLength 18

bDescriptorType 1

bcdUSB 1.10

это же порт USB 1.1 ;)

давай вывод lsusb -v (только тогда, когда из USB-устройств ничего к компьютеру не подключено)

aivs

USB порты работают только когда подгружен uhci_hcd.

Если выгрузить uhci_hcd и подгрузить ehci_hcd то по lsusb -v нет ничего.

Вот вывод lsusb -v с uhci_hcd, в usb ничего не торчит.

Bus 001 Device 001: ID 0000:0000

Device Descriptor:

bLength 18

bDescriptorType 1

bcdUSB 1.10

bDeviceClass 9 Hub

bDeviceSubClass 0 Unused

bDeviceProtocol 0

bMaxPacketSize0 64

idVendor 0×0000

idProduct 0×0000

bcdDevice 2.06

iManufacturer 3 Linux 2.6.15-ARCH uhci_hcd

iProduct 2 UHCI Host Controller

iSerial 1 0000:00:1d.0

bNumConfigurations 1

Configuration Descriptor:

bLength 9

bDescriptorType 2

wTotalLength 25

bNumInterfaces 1

bConfigurationValue 1

iConfiguration 0

bmAttributes 0xc0

Self Powered

MaxPower 0mA

Interface Descriptor:

bLength 9

bDescriptorType 4

bInterfaceNumber 0

bAlternateSetting 0

bNumEndpoints 1

bInterfaceClass 9 Hub

bInterfaceSubClass 0 Unused

bInterfaceProtocol 0

iInterface 0

Endpoint Descriptor:

bLength 7

bDescriptorType 5

bEndpointAddress 0×81 EP 1 IN

bmAttributes 3

Transfer Type Interrupt

Synch Type None

Usage Type Data

wMaxPacketSize 0×0002 1x 2 bytes

bInterval 255

Hub Descriptor:

bLength 9

bDescriptorType 41

nNbrPorts 2

wHubCharacteristic 0×000a

No power switching (usb 1.0)

Per-port overcurrent protection

bPwrOn2PwrGood 1 * 2 milli seconds

bHubContrCurrent 0 milli Ampere

DeviceRemovable 0xb7

PortPwrCtrlMask 0xe0

Hub Port Status:

Port 1: 0000.0100 power

Port 2: 0000.0100 power

Что делать, как вклчючить этот usb 2.0

Dr. Evil

как включить?

надо узнать, а есть ли у тебя 2.0 вообще.

какая у тебя материнская плата?

Genie
надо узнать, а есть ли у тебя 2.0 вообще.

lspci это может показать:

$ lspci -v| grep USB
0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 20 [EHCI])

первые два — это USB1.1 концентраторы. (OHCI/UHCI)

последний — USB2.0 (EHCI)

aivs

Вот так

[aivs@myhost ~]$ lspci -v | grep USB

00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])

00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])

00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])

00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])

Dr. Evil

это, по-моему, говорит о том, что нет у тебя USB 2.0 на матери, а это, в свою очередь, не дает тебе возможности использовать на все 100% твой <font color=«blue»>голубой зуб</font>.

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.