[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Megafon M100-2 под debian. Работает ли?



On 31.10.2013 11:43, Артём Мухин wrote:
Конкретно этим модемом никогда не пользовался, но вообще у мегафоновских модемов обычно есть драйвера под Линукс прямо на самом устройстве. Судя по Вики их модемы нормально работают: https://wiki.debian.org/ru/Megafon3GModem

Это всё славно и я это или аналогичное уже читал.
Тот "инсталлер", который отдаётся с модема без иксов не запуститься, ибо в той гирлянде скриптов есть один с чудным кодом Я его немного порезал чтобы основное было видно. Хотя зачем там эти чудеса я не понимаю.

install_dashboard()
{
    echo "install..." | tee -a ${LOG_PATH}
    if which xterm;
    then
        TERMINAL=`which xterm`
        ${TERMINAL} '-e' ${INSTALL_PATH}
    fi

    if which gnome-terminal;
    then
        TERMINAL=`which gnome-terminal`
        ${TERMINAL} '-e' ${INSTALL_PATH}
    fi

    if which konsole;
    then
        TERMINAL=`which konsole`
        ${TERMINAL} '-e' ${INSTALL_PATH}
    fi
}

Главное, что после этого устанавливается драйвер модема и некая Qt'шная морда MobilePartner.bin, которая потом начинает дёргать модем.
В логах это выглядит так

Oct 30 17:52:43 nx7400 kernel: [4642305.400069] usb 1-4: new high-speed USB device number 33 using ehci_hcd Oct 30 17:52:43 nx7400 kernel: [4642305.532902] usb 1-4: New USB device found, idVendor=12d1, idProduct=1506 Oct 30 17:52:43 nx7400 kernel: [4642305.532911] usb 1-4: New USB device strings: Mfr=2, Product=1, SerialNumber=0 Oct 30 17:52:43 nx7400 kernel: [4642305.532917] usb 1-4: Product: HUAWEI Mobile Oct 30 17:52:43 nx7400 kernel: [4642305.532922] usb 1-4: Manufacturer: HUAWEI Technology Oct 30 17:52:43 nx7400 kernel: [4642305.534822] option 1-4:1.0: GSM modem (1-port) converter detected Oct 30 17:52:43 nx7400 kernel: [4642305.535060] usb 1-4: GSM modem (1-port) converter now attached to ttyUSB0 Oct 30 17:52:43 nx7400 kernel: [4642305.535296] option 1-4:1.1: GSM modem (1-port) converter detected Oct 30 17:52:43 nx7400 kernel: [4642305.535493] usb 1-4: GSM modem (1-port) converter now attached to ttyUSB1
Oct 30 17:52:43 nx7400 kernel: [4642305.535830] scsi52 : usb-storage 1-4:1.2
Oct 30 17:52:43 nx7400 kernel: [4642305.539072] scsi53 : usb-storage 1-4:1.3
Oct 30 17:52:43 nx7400 mtp-probe: checking bus 1, device 33: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4"
Oct 30 17:52:43 nx7400 mtp-probe: bus: 1, device: 33 was not an MTP device
Oct 30 17:52:43 nx7400 HWActivator: Daemon already running
Oct 30 17:52:43 nx7400 last message repeated 9 times
Oct 30 17:52:43 nx7400 kernel: [4642305.589842] option: option_instat_callback: error -108 Oct 30 17:52:43 nx7400 kernel: [4642305.589971] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1 Oct 30 17:52:43 nx7400 kernel: [4642305.589995] option 1-4:1.1: device disconnected
Oct 30 17:52:43 nx7400 HWActivator: Daemon already running
Oct 30 17:52:43 nx7400 HWActivator: Daemon already running
Oct 30 17:52:43 nx7400 kernel: <30>[4642305.664956] udevd[23408]: renamed network interface eth1 to eth8
Oct 30 17:52:43 nx7400 HWActivator: Daemon already running
Oct 30 17:52:43 nx7400 last message repeated 2 times
Oct 30 17:52:44 nx7400 kernel: [4642306.533098] scsi 52:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Oct 30 17:52:44 nx7400 kernel: [4642306.537307] sr1: scsi-1 drive
Oct 30 17:52:44 nx7400 kernel: [4642306.538254] sr 52:0:0:0: Attached scsi CD-ROM sr1 Oct 30 17:52:44 nx7400 kernel: [4642306.539563] scsi 53:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
Oct 30 17:52:44 nx7400 HWActivator: Daemon already running
Oct 30 17:52:44 nx7400 kernel: [4642306.542921] sd 53:0:0:0: [sdb] Attached SCSI removable disk
Oct 30 17:52:44 nx7400 HWActivator: Daemon already running
Oct 30 17:52:44 nx7400 last message repeated 9 times
Oct 30 17:52:46 nx7400 HWActivator: HW load_for_dynamic_pid start
Oct 30 17:52:46 nx7400 HWActivator: load_for_dynamic_pid is called start
Oct 30 17:52:46 nx7400 HWActivator: load_for_dynamic_pid is called end
Oct 30 17:52:46 nx7400 HWActivator: HW load_for_dynamic_pid end
Oct 30 17:52:46 nx7400 HWActivator: fxz:The path=/usr/local/MegaFon_Modem/config/autorun/config Oct 30 17:52:46 nx7400 HWActivator: Open config file failed, asume the autorun is activated Oct 30 17:52:46 nx7400 HWActivator: start MobilePartner, the dashboard is .bin
Oct 30 17:52:58 nx7400 HWActivator: HWActivator: sockaddr is not binded.
Oct 30 17:52:58 nx7400 HWActivator: /sbin/startMobilePartner done
Wed Oct 30 17:52:58 MSK 2013 exec /usr/local/MegaFon_Modem/MobilePartner
Oct 30 17:52:59 nx7400 MobilePartner.bin: ndis_close() entry.
Oct 30 17:52:59 nx7400 MobilePartner.bin: ndis_close() exit.
Oct 30 17:52:59 nx7400 MobilePartner.bin: ndis_open() entry.
Oct 30 17:52:59 nx7400 MobilePartner.bin: Finding Huawei NDIS device USBDEVFS_CONTROL Oct 30 17:52:59 nx7400 MobilePartner.bin: Finded Huawei NDIS device interface Oct 30 17:52:59 nx7400 MobilePartner.bin: Create the read thread successfully.
Oct 30 17:52:59 nx7400 MobilePartner.bin: ndis_open() succeed.
Oct 30 17:52:59 nx7400 MobilePartner.bin: read_response(): Thread Called
Oct 30 17:52:59 nx7400 MobilePartner.bin: ndis_get_status() entry.
Oct 30 17:52:59 nx7400 MobilePartner.bin: Now send AT: <AT^NDISSTATQry?^M >
Oct 30 17:52:59 nx7400 MobilePartner.bin: Succeed send AT: <AT^NDISSTATQry?^M >
Oct 30 17:52:59 nx7400 MobilePartner.bin: begin wait**************
Oct 30 17:52:59 nx7400 MobilePartner.bin: Process at result : <^NDISSTATQRY: 0,,,"IPV4"> Oct 30 17:52:59 nx7400 MobilePartner.bin: Received AT response: <AT^NDISSTATQry?^M >
Oct 30 17:52:59 nx7400 MobilePartner.bin: end wait!
Oct 30 17:52:59 nx7400 MobilePartner.bin: send_at_request exit
Oct 30 17:52:59 nx7400 MobilePartner.bin: ndis_get_status() exit.
Oct 30 17:53:00 nx7400 MobilePartner.bin: ndis_get_status() entry.
Oct 30 17:53:00 nx7400 MobilePartner.bin: Now send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:00 nx7400 MobilePartner.bin: Succeed send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:00 nx7400 MobilePartner.bin: begin wait**************
Oct 30 17:53:00 nx7400 MobilePartner.bin: Process at result : <^NDISSTATQRY: 0,,,"IPV4"> Oct 30 17:53:00 nx7400 MobilePartner.bin: Received AT response: <AT^NDISSTATQry?^M >
Oct 30 17:53:00 nx7400 MobilePartner.bin: end wait!
Oct 30 17:53:00 nx7400 MobilePartner.bin: send_at_request exit
Oct 30 17:53:00 nx7400 MobilePartner.bin: ndis_get_status() exit.
Oct 30 17:53:00 nx7400 MobilePartner.bin: ndis_get_status() entry.
Oct 30 17:53:00 nx7400 MobilePartner.bin: Now send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:00 nx7400 MobilePartner.bin: Succeed send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:00 nx7400 MobilePartner.bin: begin wait**************
Oct 30 17:53:00 nx7400 MobilePartner.bin: Process at result : <^NDISSTATQRY: 0,,,"IPV4"> Oct 30 17:53:00 nx7400 MobilePartner.bin: Received AT response: <AT^NDISSTATQry?^M >
Oct 30 17:53:00 nx7400 MobilePartner.bin: end wait!
Oct 30 17:53:23 nx7400 MobilePartner.bin: Succeed send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:23 nx7400 MobilePartner.bin: begin wait**************
Oct 30 17:53:23 nx7400 MobilePartner.bin: Process at result : <^NDISSTATQRY: 0,,,"IPV4"> Oct 30 17:53:23 nx7400 MobilePartner.bin: Received AT response: <AT^NDISSTATQry?^M >
Oct 30 17:53:23 nx7400 MobilePartner.bin: end wait!
Oct 30 17:53:23 nx7400 MobilePartner.bin: send_at_request exit
Oct 30 17:53:23 nx7400 MobilePartner.bin: ndis_get_status() exit.
Oct 30 17:53:23 nx7400 MobilePartner.bin: ndis_connect() entry.
Oct 30 17:53:23 nx7400 MobilePartner.bin: Now send AT: <AT^NDISCONN=1,1,"Internet",,,2^M > Oct 30 17:53:23 nx7400 MobilePartner.bin: Succeed send AT: <AT^NDISCONN=1,1,"Internet",,,2^M >
Oct 30 17:53:23 nx7400 MobilePartner.bin: begin wait**************
Oct 30 17:53:23 nx7400 MobilePartner.bin: Received AT response: <AT^NDISCONN=1,1,"Internet",,,2^M >
Oct 30 17:53:23 nx7400 MobilePartner.bin: end wait!
Oct 30 17:53:23 nx7400 MobilePartner.bin: send_at_request exit
Oct 30 17:53:23 nx7400 MobilePartner.bin: jungo_ndis_connect: Send AT success!
Oct 30 17:53:23 nx7400 MobilePartner.bin: ndis_connect() exit.
Oct 30 17:53:23 nx7400 MobilePartner.bin: process_at_result: received unsolicited report!! Oct 30 17:53:23 nx7400 MobilePartner.bin: at_cmd_unsolicited_parse: AT index is INDEX_NDISSTAT Oct 30 17:53:23 nx7400 MobilePartner.bin: connect_status_parse: received ^NDISSTAT
Oct 30 17:53:24 nx7400 MobilePartner.bin: ndis_get_status() entry.
Oct 30 17:53:24 nx7400 MobilePartner.bin: Now send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:24 nx7400 MobilePartner.bin: Succeed send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:24 nx7400 MobilePartner.bin: begin wait**************
Oct 30 17:53:24 nx7400 MobilePartner.bin: Process at result : <^NDISSTATQRY: 1,,,"IPV4"> Oct 30 17:53:24 nx7400 MobilePartner.bin: Received AT response: <AT^NDISSTATQry?^M >
Oct 30 17:53:24 nx7400 MobilePartner.bin: end wait!
Oct 30 17:53:24 nx7400 MobilePartner.bin: send_at_request exit
Oct 30 17:53:24 nx7400 MobilePartner.bin: ndis_get_status() exit.
Oct 30 17:53:24 nx7400 kernel: [4642346.707138] ADDRCONF(NETDEV_UP): eth8: link is not ready Oct 30 17:53:24 nx7400 dhclient: DHCPDISCOVER on eth8 to 255.255.255.255 port 67 interval 8 Oct 30 17:53:24 nx7400 kernel: [4642346.774317] ADDRCONF(NETDEV_CHANGE): eth8: link becomes ready Oct 30 17:53:32 nx7400 dhclient: DHCPDISCOVER on eth8 to 255.255.255.255 port 67 interval 9 Oct 30 17:53:32 nx7400 dhclient: DHCPREQUEST on eth8 to 255.255.255.255 port 67
Oct 30 17:53:32 nx7400 dhclient: DHCPOFFER from 100.66.66.65
Oct 30 17:53:32 nx7400 dhclient: DHCPACK from 100.66.66.65
Oct 30 17:53:35 nx7400 kernel: [4642357.140154] eth8: no IPv6 routers present Oct 30 17:53:35 nx7400 dhclient: bound to 100.66.66.66 -- renewal in 203981 seconds.
Oct 30 17:53:35 nx7400 MobilePartner.bin: ndis_get_status() entry.
Oct 30 17:53:35 nx7400 MobilePartner.bin: Now send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:35 nx7400 MobilePartner.bin: Succeed send AT: <AT^NDISSTATQry?^M >
Oct 30 17:53:35 nx7400 MobilePartner.bin: begin wait**************

Он же его дёргает как ndis устройство, а не как модем

Oct 30 17:53:23 nx7400 MobilePartner.bin: Now send AT: <AT^NDISCONN=1,1,"Internet",,,2^M >

И поднимает в конце концов eth8, а не ppp.
Вот я и хочу так же, но без гуя.

--
Peter Teslenko


Reply to: