Страница 2 из 4

Re: FOP DIsabled

Добавлено: 25 авг 2011, 15:59
Vlad1983

Re: FOP DIsabled

Добавлено: 25 авг 2011, 16:19
4ekuct
А я вроде где-то читал, что уже нет необходимости ставить usb-modeswitch ? или я не прав ?

[root@freepbx usb-modeswitch-1.1.9-jimsh]# make install
gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb
usb_modeswitch.c:56:17: error: usb.h: No such file or directory
In file included from usb_modeswitch.c:57:
usb_modeswitch.h:52: warning: ‘struct usb_dev_handle’ declared inside parameter list
usb_modeswitch.h:52: warning: its scope is only this definition or declaration, which is probably not what you want
usb_modeswitch.c: In function ‘main’:
usb_modeswitch.c:353: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:356: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:358: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:359: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:402: error: dereferencing pointer to incomplete type
usb_modeswitch.c:403: error: dereferencing pointer to incomplete type
usb_modeswitch.c:405: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:405: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:417: warning: passing argument 1 of ‘get_current_configu

где теперь искать этот файл usb.h ??

Re: FOP DIsabled

Добавлено: 25 авг 2011, 17:56
Vlad1983
dmesg | grep -i usb

и вообще купи AddPac AP-GS1002A на 2 канала GSM или с другим количеством и не парь остатки моска
и работает надежней и качество голоса не страдает

Re: FOP DIsabled

Добавлено: 26 авг 2011, 09:53
4ekuct
[root@freepbx src]# lsmod | grep usb | sort
xpp 131094 1 xpp_usb
xpp_usb 17218 0
[root@freepbx src]# ls /dev | grep ttyUSB
[root@freepbx src]# ls /dev | grep ttyUSB
[root@freepbx src]#
You have new mail in /var/spool/mail/root
[root@freepbx src]#
[root@freepbx src]# dmesg | grep -i usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:02:03.0: new USB bus registered, assigned bus number 1
ehci_hcd 0000:02:03.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:02:04.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
INFO-xpp_usb: revision Unknown
usbcore: registered new interface driver xpp_usb

Re: FOP DIsabled

Добавлено: 26 авг 2011, 09:58
Vlad1983
а после втыкания модема

Re: FOP DIsabled

Добавлено: 26 авг 2011, 10:26
4ekuct
после втыкания :)
-- [dongle0] Trying to connect on /dev/ttyUSB2...
[2011-08-26 09:26:04] WARNING[3602]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB2: No such file or directory
у меня 5 портов юсб как узнать в какой втыкать-то ?

[root@freepbx ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Re: FOP DIsabled

Добавлено: 26 авг 2011, 10:27
4ekuct
после установки libusb-dev проинсталился модемсвич и модемсвич дата, но результат не изменился
на команду ls /dev | grep USB тишина
[root@freepbx ~]# ls /dev | grep USB
[root@freepbx ~]#

Re: FOP DIsabled

Добавлено: 26 авг 2011, 10:29
Vlad1983
какая нахрен разница в какой

dmesg | grep -i usb
после того как воткнешь модем

Re: FOP DIsabled

Добавлено: 26 авг 2011, 10:32
4ekuct
[root@freepbx ~]# dmesg | grep -i usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:02:03.0: new USB bus registered, assigned bus number 1
ehci_hcd 0000:02:03.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:02:04.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
INFO-xpp_usb: revision Unknown
usbcore: registered new interface driver xpp_usb
[root@freepbx ~]# dmesg | grep -i usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:02:03.0: new USB bus registered, assigned bus number 1
ehci_hcd 0000:02:03.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:02:04.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
INFO-xpp_usb: revision Unknown
usbcore: registered new interface driver xpp_usb

Re: FOP DIsabled

Добавлено: 26 авг 2011, 10:48
Vlad1983
не видится у тя модем ваще никак