Уважаемые участники сообщества OpenSource! Заранее извиняюсь, если кому-то мой вопрос покажется глупым. Прежде чем его задавать я поработал с поиском на основных форумах и с www.google.com. Для понимания моей темы, да и Linux-а вообщем (уже неделю как пытаюсь освоить АзЫ работы в нём) я нашёл немало интересного и полезного материала. Но моя первая задача, которую я ставлю и которую никак не могу решить, чтобы уменьшить зависимость от Windows, настроить выход в интернет через GPRS, коим я пользуюсь уже давно и который является моей единственной возможностью работы в сети.
У меня есть телефон: Samsung SGH-E380, USB Data Cabel (без всяких чипов), ОС Linux Suse 10.
В Виндовс всё как обычно работает с пол оборота. Что же проиходит в Линуксе: Модем на телефоне совершенно правильно определился при установке системы. Команды lsusb и lsusb -v в консоле дают такие результаты. Как я понял из материалов форума: первое, что происходит - устройство определяется в /dev/ как ttyS0 (S1) для com-портов или ttyACM0 (ACM1) для USB и т.д. Эти файлы появляются в каталоге устройств /dev/. Но как видно из лога, никакие из этих файлов не появляются.
В Логе var/log/message при подключении телефона записывается же такая строчка:
Jan 16 00:07:53 linux kernel: usb 1-1: new full speed USB device using ohci_hcd and address 6
Уже не фигурирует никакого модема.
Я думаю, что если бы устройство нормально определится, то настроить его для дозвона я смогу без труда, но эту ситуацию я совсем не понимаю: Система видит устройство насквозь, знает о нём всё, определяет как модем, но в итоге его как модем не записывает, а появляется лишь /dev/usbdev1.x и full speed USB device в логе.
Помогите пожалуйста. Скажите, что делать. Я не в пустую спрашиваю. Потратил уже ни один день на самоварение. Мне нужно знать как можно сделать так, чтобы система определила модем как модем и создала его файл устройства типа ttyACM0 (ACM1) для USB.[size=2]
________________________________________________________________________
linux:~ # lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 04e8:663e Samsung Electronics Co., Ltd
Bus 001 Device 001: ID 0000:0000________________________________________________________________________
linux:~ # lsusb -v
.......
.......
Bus 001 Device 004: ID 04e8:663e Samsung Electronics Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04e8 Samsung Electronics Co., Ltd
idProduct 0x663e
bcdDevice 1.00
iManufacturer 1 SamsungBus 001 Device 004: ID 04e8:663e Samsung Electronics Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04e8 Samsung Electronics Co., Ltd
idProduct 0x663e
bcdDevice 1.00
iManufacturer 1 Samsung
iProduct 2 SAMSUNG MBus 001 Device 004: ID 04e8:663e Samsung Electronics Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04e8 Samsung Electronics Co., Ltd
idProduct 0x663e
bcdDevice 1.00
iManufacturer 1 Samsung
iProduct 2 SAMSUNG Mobile USB Modem
iSerial 3 359894-00-265953
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 92
bNumInterfaces 3
bConfigurationValue 2
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 8 Wireless Handset Control
bInterfaceProtocol 0
iInterface 5 S_WHCM
CDC Header:
bcdCDC 1.10
CDC WHCM:
bcdVersion 1.00
CDC Union:
bMasterInterface 0
bSlaveInterface 1 2
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 6 WMC Modem
CDC Header:
bcdCDC 1.10
CDC Union:
bMasterInterface 1
bSlaveInterface 2
CDC Call Management:
bmCapabilities 0x03
call management
use DataInterface
bDataInterface 2
CDC ACM:
bmCapabilities 0x07
sends break
line coding and serial state
get/set/clear comm features
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 16
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 7 WMC Modem bulk data
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
obile USB Modem
iSerial 3 359894-00-265953
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 92
bNumInterfaces 3
bConfigurationValue 2
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 8 Wireless Handset Control
bInterfaceProtocol 0
iInterface 5 S_WHCM
CDC Header:
bcdCDC 1.10
CDC WHCM:
bcdVersion 1.00
CDC Union:
bMasterInterface 0
bSlaveInterface 1 2
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 6 WMC Modem
CDC Header:
bcdCDC 1.10
CDC Union:
bMasterInterface 1
bSlaveInterface 2
CDC Call Management:
bmCapabilities 0x03
call management
use DataInterface
bDataInterface 2
CDC ACM:
bmCapabilities 0x07
sends break
line coding and serial state
get/set/clear comm features
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 16
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 7 WMC Modem bulk data
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
iProduct 2 SAMSUNG Mobile USB Modem
iSerial 3 359894-00-265953
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 92
bNumInterfaces 3
bConfigurationValue 2
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 8 Wireless Handset Control
bInterfaceProtocol 0
iInterface 5 S_WHCM
CDC Header:
bcdCDC 1.10
CDC WHCM:
bcdVersion 1.00
CDC Union:
bMasterInterface 0
bSlaveInterface 1 2
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 6 WMC Modem
CDC Header:
bcdCDC 1.10
CDC Union:
bMasterInterface 1
bSlaveInterface 2
CDC Call Management:
bmCapabilities 0x03
call management
use DataInterface
bDataInterface 2
CDC ACM:
bmCapabilities 0x07
sends break
line coding and serial state
get/set/clear comm features
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 16
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 7 WMC Modem bulk data
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0__________________________________________________________
В Логе var/log/message при подключении телефона записывается же такая строчка:
Jan 16 00:07:53 linux kernel: usb 1-1: new full speed USB device using ohci_hcd and address 6
Уже не фигурирует никакого модема.
__________________________________________________________
С благодарностью и уважением!
Помогите с файлом устройства. Телефон Samsung определяется системой, но не записывается в /dev/tty? ОС Linux Suse 10 (команда lsusb -v даёт исчерпывающие данные о телефоне, но файл устройс)
Модератор: Bizdelnick
-
pidanmaster
- Сообщения: 6
- ОС: Linux Suse 10
-
КВН
- Сообщения: 242
- Статус: Новичок
Re: Помогите с файлом устройства. Телефон Samsung определяется системой, но не записывается в /dev/tty? ОС Linux Suse 10
Имел такую же проблему, но с другой маркой телефона и с кабелем из КНР. В итоге пришел к нижеследующему.
Без головной боли и зря потраченного времени, можно дооборудовать компьютер Bluetooth адаптером. А с ним можно не только в инет ходить, но еще и, как минимум, файлами кидаться в обоих направлениях.
Без головной боли и зря потраченного времени, можно дооборудовать компьютер Bluetooth адаптером. А с ним можно не только в инет ходить, но еще и, как минимум, файлами кидаться в обоих направлениях.
-
pidanmaster
- Сообщения: 6
- ОС: Linux Suse 10
Re: Помогите с файлом устройства. Телефон Samsung определяется системой, но не записывается в /dev/tty? ОС Linux Suse 10
Имел такую же проблему, но с другой маркой телефона и с кабелем из КНР. В итоге пришел к нижеследующему.
Без головной боли и зря потраченного времени, можно дооборудовать компьютер Bluetooth адаптером. А с ним можно не только в инет ходить, но еще и, как минимум, файлами кидаться в обоих направлениях.
А какая разница как телефон соединён с компьютером. Телефон то он видит и его полностью идентифицирует. Смотрите внимательно на результат команды lsusb -v. Кабель тем более родной, из комплекта. А с кабелем и файлами так же без проблем можно кидаться.
Да и я не считаю это всё зря потраченным временем. Всё нужно доводить до конца. Я сталкнулся со сложной для меня задачей, т.к. Linux системы для меня в новинку. Решая и разбираясь в этих вопросах я повышаю свой уровень.
Спасибо за попытку открыть мне глаза на более простой путь решения проблемы, я всё-таки жду реальных советов по решению именно моего вопроса.
-
arkhnchul
- Сообщения: 2284
- Статус: Толчковый инженер
- ОС: Debian, Fedora