[已解决]手机如何做Modem

笔记本/便携移动设备,手机平板等软硬件
回复
头像
allarem
帖子: 1025
注册时间: 2008-05-31 17:27
来自: SUES
联系:

[已解决]手机如何做Modem

#1

帖子 allarem » 2010-11-09 1:12

解决方法升级到0.8.1
不过要注意各种依赖比如说dhcp也要升级到4以上
:em06 手头有两台手机一台MOTO E8 一台NOKIA 5530
NOKIA的连上后全自动地配置了networkmanager
而Moto的连上后啥反应都没有
试过udev、usb_modemswitch重新配置也没用
比较了一下感觉一点区别都没有

代码: 全选

/dev/serial/by-id$ ls
usb-Motorola_Inc._E8-if00  
usb-Nokia_Nokia_5530_XpressMusic_358304032531234-if01
都正常识别到ttyACM0 和 ttyACM1了
lsusb -v 也没啥区别
MOTO的

代码: 全选

Bus 002 Device 002: ID 22b8:6422 Motorola PCS 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         2 Abstract (modem)
  bDeviceProtocol         0 None
  bMaxPacketSize0        64
  idVendor           0x22b8 Motorola PCS
  idProduct          0x6422 
  bcdDevice            1.01
  iManufacturer           3 Motorola Inc.
  iProduct                2 E8
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           67
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          7 Motorola Communication Class
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              8 Motorola Communication Interface
……
Device Status:     0x0000
  (Bus Powered)
Nokia的

代码: 全选

Bus 001 Device 004: ID 0421:022a Nokia Mobile Phones 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0421 Nokia Mobile Phones
  idProduct          0x022a 
  bcdDevice            1.00
  iManufacturer           1 Nokia
  iProduct                2 Nokia 5530 XpressMusic
  iSerial                 3 358304032531234
……
    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              7 CDC Comms Interface
      CDC Header:
        bcdCDC               1.10
      CDC ACM:
   ……
Device Status:     0x0000
  (Bus Powered)
hal信息

代码: 全选

hal-device /org/freedesktop/Hal/devices/usb_device_22b8_6425_noserial_if0
udi = '/org/freedesktop/Hal/devices/usb_device_22b8_6425_noserial_if0'
  info.linux.driver = 'cdc_acm'  (string)
  info.subsystem = 'usb'  (string)
  info.product = 'USB Communications Interface'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_22b8_6425_noserial_if0'  (string)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0'  (string)
  usb.configuration_value = 1  (0x1)  (int)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0'  (string)
  usb.num_interfaces = 3  (0x3)  (int)
  usb.device_class = 255  (0xff)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_22b8_6425_noserial'  (string)
  usb.device_subclass = 255  (0xff)  (int)
  usb.product_id = 25637  (0x6425)  (int)
  usb.num_configurations = 1  (0x1)  (int)
  usb.vendor_id = 8888  (0x22b8)  (int)
  usb.vendor = 'Motorola PCS'  (string)
  usb.device_protocol = 255  (0xff)  (int)
  usb.product = 'USB Communications Interface'  (string)
  usb.device_revision_bcd = 257  (0x101)  (int)
  usb.linux.device_number = 2  (0x2)  (int)
  usb.num_ports = 0  (0x0)  (int)
  usb.bus_number = 6  (0x6)  (int)
  usb.speed = 12  (double)
  usb.version = 2  (double)
  usb.is_self_powered = true  (bool)
  usb.max_power = 500  (0x1f4)  (int)
  usb.can_wake_up = false  (bool)
  usb.interface.class = 2  (0x2)  (int)
  usb.interface.number = 0  (0x0)  (int)
  usb.interface.description = 'Motorola Communication Interface'  (string)
  usb.interface.subclass = 2  (0x2)  (int)
  usb.interface.protocol = 1  (0x1)  (int)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'usb'  (string)
:em20 不知道该怎么办了……
上次由 allarem 在 2010-11-16 1:26,总共编辑 2 次。
头像
allarem
帖子: 1025
注册时间: 2008-05-31 17:27
来自: SUES
联系:

Re: 手机如何做Modem

#2

帖子 allarem » 2010-11-11 0:50

咋没人说话呢
yaoyao1220
帖子: 4
注册时间: 2010-08-09 9:52

Re: 手机如何做Modem

#3

帖子 yaoyao1220 » 2010-11-11 10:42

到是想说话,可是,俺真的看不懂。。。
头像
脑袋总进水
帖子: 97
注册时间: 2010-10-21 18:22

Re: 手机如何做Modem

#4

帖子 脑袋总进水 » 2010-11-11 18:16

LZ不用那么复杂的 E8开蓝牙 和ubuntu配对成功之后
编辑ubuntu网络链接
-设置移动宽带
-国家选择china
-ISP有三个可以选择移动 电信 联通(根据你手机情况)
-APN是移动就选cmwap或者cmnet 联通就选uninet或者uniwap 选择wap接入点的时候登录QQ和开网页要设置代理10.0.0.172:80
之后一直默认下一步 完成之后在网络链接里就出现了手机的拨号链接
上次由 脑袋总进水 在 2016-07-19 11:51,总共编辑 1 次。
头像
minlawoo
帖子: 51
注册时间: 2007-06-29 10:11
来自: 中国扬州
联系:

Re: 手机如何做Modem

#5

帖子 minlawoo » 2010-11-11 22:08

我的是moto E8
手机设置的是moden&tool模式
用数据线连上电脑

就有移动宽带了(第一次好似要设置下拨号,忘了)

比win下好用多了

我用的GSM网络,慢,只能聊天用


设置代理10.0.0.127
端口80
头像
allarem
帖子: 1025
注册时间: 2008-05-31 17:27
来自: SUES
联系:

Re: 手机如何做Modem

#6

帖子 allarem » 2010-11-12 0:15

@minlawoo
我连上以后networkmanager debug直接提示设备不支持,忽略设置...
我觉得是nm的问题,因为不管我怎么改动hal的fdi设备capability、modem_command_set都没有办法。
gnome-ppp倒是直接拨号了……太奇怪了
@脑袋总进水
Screenshot-无标题窗口.png
头像
脑袋总进水
帖子: 97
注册时间: 2010-10-21 18:22

Re: 手机如何做Modem

#7

帖子 脑袋总进水 » 2010-11-12 8:32

allarem 写了:@minlawoo
我连上以后networkmanager debug直接提示设备不支持,忽略设置...
我觉得是nm的问题,因为不管我怎么改动hal的fdi设备capability、modem_command_set都没有办法。
gnome-ppp倒是直接拨号了……太奇怪了
@脑袋总进水
附件 Screenshot-无标题窗口.png 已经无效
说了不用改/dev下的文件 你那么做复杂了
Screenshot.png
lily3978
帖子: 381
注册时间: 2010-06-30 16:23

Re: 手机如何做Modem

#8

帖子 lily3978 » 2010-11-12 11:29

微软的手机系统更简单,勾选用手机连接internet,手机系统是自带拨号的,网络点连接就上去了
头像
allarem
帖子: 1025
注册时间: 2008-05-31 17:27
来自: SUES
联系:

Re: 手机如何做Modem

#9

帖子 allarem » 2010-11-12 23:24

@脑袋总进水
说了不用改/dev下的文件 你那么做复杂了
有这么简单就好了……
2010-11-12-231825_1280x800_scrot.png
头像
脑袋总进水
帖子: 97
注册时间: 2010-10-21 18:22

Re: 手机如何做Modem

#10

帖子 脑袋总进水 » 2010-11-13 9:52

allarem 写了:@脑袋总进水
说了不用改/dev下的文件 你那么做复杂了
有这么简单就好了……
2010-11-12-231825_1280x800_scrot.png
哥们你看清楚了 我用的是蓝牙 用USB需要驱动 MOTO官方根本就没有linux下的驱动 win下才有
头像
allarem
帖子: 1025
注册时间: 2008-05-31 17:27
来自: SUES
联系:

Re: 手机如何做Modem

#11

帖子 allarem » 2010-11-14 0:35

脑袋总进水 写了:
allarem 写了:@脑袋总进水
说了不用改/dev下的文件 你那么做复杂了
有这么简单就好了……
2010-11-12-231825_1280x800_scrot.png
哥们你看清楚了 我用的是蓝牙 用USB需要驱动 MOTO官方根本就没有linux下的驱动 win下才有
哥们你也看清楚了我就是用蓝牙链接的
USB线是根本连反应都没有
回复