Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: 3G modem CELOT K-300 (Ufon)  (Přečteno 13266 krát)

vecino

  • Návštěvník
  • Příspěvků: 35
3G modem CELOT K-300 (Ufon)
« kdy: 17 Dubna 2012, 12:22:05 »
Ahoj,

vyměnil jsem původní modem AnyDATA ADU-510L za CELOT K-300, hlavním důvodem byla nemožnost připojit externí anténu. Modem používám občas mimo civilizaci na chaloupce. Modem ADU-510L stačilo jen zasunout do USB portu přes network-manager vše nastavit (ufon | ufon | #777). Bohužel ten CELOT K-300 se chová jako CDROM mechanika ... docela dlouho jsem pročítal různé weby na toto téma. Zatím jsem se dozvěděl, že modem se nesprávně identifikuje ... je nutné ho přepnout přes usb_modeswitch. To se mi patrně podařilo, ale například gnome-ppp stále žádný modem "nevidí". Heldal jsem i zde na fóru a našel třeba http://forum.ubuntu.cz/index.php?topic=42501.0 , ale ani podle toho se mi to nepovedlo.

Je tu někdo, kdo tento modem používá ? Mohli by jste mě prosím nasměrovat jak tento modem zprovoznit ? Zkoušel jsem to Ubuntu 10.04 i 11.10 ... v 11.10 jsem se dostal dále právě do fáze, že modem "přepnu", ale tím končím. Večer sem přidám nějaké logy, protože vím že takle to je jenom plácnutí do vody.

Děkuji

Vecíno
« Poslední změna: 19 Dubna 2012, 14:17:23 od vecino »

Rover623

Re:3G modem CELOT K-300 (Ufon)
« Odpověď #1 kdy: 17 Dubna 2012, 16:39:50 »
Postup je stejný jako pro Vertex, tady je návod http://www.abclinuxu.cz/hardware/pripojeni-na-sit/cdma-umts/vertex-vw110l

vecino

  • Návštěvník
  • Příspěvků: 35
Re:3G modem CELOT K-300 (Ufon)
« Odpověď #2 kdy: 17 Dubna 2012, 23:50:07 »
Rover623: Díky MOC ! Jde mi to podle toho návodu ... podle bodu 1 - 3.

Chtěl bych ještě poladit ten usb_modeswitch, abych nemusel odpojovat tu CD-ROM mechaniku v xkách nebo přes terminal nemusel posilat "eject xxx" apod. Chci docílit toho, aby po zapnutí PC bylo vše automaticky připraveno / modem se připojil.

Nevím jestli na to jdu dobře, ale zkouším si vytvořit vlastní konfigurační soubor pro usb_modeswitch, který se načte při připojení zařízení. Bohužel to nefunguje.

Konfigurační soubor: (doplnil jsem TargetVendor a TargetProduct
Kód: [Vybrat]
#######################################################
# CELOT K-300

DefaultVendor= 0x05c6
DefaultProduct=0x1000

TargetVendor=  0x211f
TargetProduct= 0x6801

CheckSuccess=20

MessageContent="55534243123456780000000000000601000000000000000000000000000000"
NeedResponse=1

Pokus o načtení konf, souboru:
Kód: [Vybrat]
vecinopc vecino # usb_modeswitch -c /home/vecino/celot

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode, class or configuration (1)
Accessing device 016 on bus 007 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: CELOT   
   Model String: CD-ROM         
Revision String: 1.00
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: CELOT Corporation
     Product: USB MMC Storage
  Serial No.: 000000000002
-------------------------
Setting up communication with interface 0
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
 OK, message successfully sent
Reading the response to message 1 (CSW) ...
 OK, response successfully read (0 bytes).
Resetting response endpoint 0x87
Resetting message endpoint 0x08

Checking for mode switch (max. 20 times, once per second) ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 No new devices in target mode or class found

Mode switch has failed. Bye.

Info o modemu, když běží jak má:
Kód: [Vybrat]
Bus 007 Device 015: ID 211f:6801 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x211f
  idProduct          0x6801
  bcdDevice            0.00
  iManufacturer           1 CELOT Corporation
  iProduct                2 CELOT CDMA Products
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          108
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      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             128
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        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     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        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     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        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     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        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     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)

díky

Vecíno

Rover623

Re:3G modem CELOT K-300 (Ufon)
« Odpověď #3 kdy: 18 Dubna 2012, 04:44:28 »
Jestli to chápu dobře (nikdy jsem to nezkoušel), mělo by prostě stačit provést pomocí usb_modeswitch vysunutí toho CD-ROM zařízení, na to by měl stačit parametr -R, tedy něco takového
Kód: [Vybrat]
usb_modeswitch -R -v 19d2 -p 1010 tohle je tedy na Vodafone modem, ale mělo by to fungovat stejně i na tenhle. Samozřejmě, že za "v" a "p" si musíš doplnit ID tvého modemu ve stavu kdy se tváří jako CD-ROM

vecino

  • Návštěvník
  • Příspěvků: 35
Re:3G modem CELOT K-300 (Ufon)
« Odpověď #4 kdy: 19 Dubna 2012, 08:11:19 »
Tak se mi to po x-hodinách podařilo rozjet. Je to v podstatě úplně jednoduchý. Zkoušel jsem to na Ubuntu 12.04 a Linux Mint Debian Edition 12.

1) Nainstalovat usb-modeswitch + usb-modeswitch-data. Je dobré používat vždy aktuální verzi kvůli podpoře nových řařízení - info: http://www.draisberghof.de/usb_modeswitch/#download.

2) Vytřořte si soubor s názvem 05c6:1000:uMa=CELOT, zkopírujte do něho níže uvedené a zkopírujte ho do adresáře /etc/usb_modeswitch.d .

Kód: [Vybrat]
# Celot K-300

TargetVendor=  0x211f
TargetProduct= 0x6801

MessageContent="5553424312345678000000000000061b000000020000000000000000000000"

3) Není to nezbytné, ale doporučuji zapnout logování: "EnableLogging" v souboru "/etc/usb_modeswitch.conf", aby jste věděli že vše probíhá ok. viz:

Kód: [Vybrat]
USB_ModeSwitch log from Thu Apr  19 00:31:39 CEST 2012

Raw args from udev: /7-2:1.0

Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/7-2
----------------
USB values from sysfs:
  manufacturer    CELOT Corporation
  product    USB MMC Storage
  serial    000000000002
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Checking storage tree in sysfs ...
 loop 0/20
 loop 1/20
 loop 2/20
 Storage tree is ready
Reading SCSI values ...
----------------
SCSI values from sysfs:
 vendor    CELOT 
 model    CD-ROM         
 rev    1.00
----------------
checking config: /etc/usb_modeswitch.d/05c6:1000:uMa=CELOT
matching usb(manufacturer)
  match string1 (exact):  CELOT
  match string2 (blanks): CELOT
 device string: CELOT Corporation
! matched. Reading config data
Using config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
config: TargetVendor set to 211f
config: TargetProduct set to 6801
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 7 -g 2 -v 05c6 -p 1000 -f $configBuffer

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Reading long config from command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.2.3 (C) Josua Dietze 2012
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x05c6
DefaultProduct= 0x1000
TargetVendor=   0x211f
TargetProduct=  0x6801
TargetClass=    not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=  not set
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Use given bus/device number: 007/002 ...
Looking for default devices ...
 bus/device number matched
  searching devices, found USB ID 05c6:1000
   found matching vendor ID
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using first interface: 0x00
Using endpoints 0x08 (out) and 0x87 (in)

USB description data (for identification)
-------------------------
Manufacturer: CELOT Corporation
     Product: USB MMC Storage
  Serial No.: 000000000002
-------------------------
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached
Setting up communication with interface 0
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
 OK, message successfully sent
Resetting response endpoint 0x87
 Could not reset endpoint (probably harmless): -9
Resetting message endpoint 0x08
 Could not reset endpoint (probably harmless): -9
 Device is gone, skipping any further commands
Bus/dev search active, referring success check to wrapper. Bye.

ok:busdev
--------------------------------
(end of usb_modeswitch output)

Checking success of mode switch for max. 20 seconds ...
 Waiting for device file system (1 sec.) ...
 Reading attributes ...
 All attributes matched
Mode switching was successful, found 211f:6801 (CELOT Corporation: CELOT CDMA Products)
Now checking for bound driver ...
 driver has bound, device is known
Checking for AVOID_RESET_QUIRK kernel attribute
 AVOID_RESET_QUIRK activated

All done, exiting


Nic jiného není potřeba měnit / editovat. Velké díky Rover623 a Josua Dietze (autor usb_modeswitch).

Vecíno

vecino

  • Návštěvník
  • Příspěvků: 35
Re:3G modem CELOT K-300 (Ufon)
« Odpověď #5 kdy: 30 Srpna 2012, 09:20:01 »
Aktualizace: od verze usb-modeswitch-data (20120531-1) je již modem součástí znamých zařízení a není potřeba nic nastavovat a modem jede hned jak má.

Běžný Uživatel

  • Návštěvník
  • Příspěvků: 48
Re:3G modem CELOT K-300 (Ufon)
« Odpověď #6 kdy: 22 Června 2013, 15:58:34 »
Ahoj

Modem jsem úspěšně rozchodil. Dokázal by někdo ještě popsat význam a možnosti ttyUSB0, ttyUSB1 a ttyUSB2, které vznikají při připojování/switchování v /dev ?

Dík.

Ráďa
Jsem jen běžný uživatel. Říkejte mi třeba Franta.

Rover623

Re:3G modem CELOT K-300 (Ufon)
« Odpověď #7 kdy: 22 Června 2013, 18:13:01 »

Běžný Uživatel

  • Návštěvník
  • Příspěvků: 48
Re:3G modem CELOT K-300 (Ufon)
« Odpověď #8 kdy: 25 Června 2013, 20:13:54 »
Ten článek jsem četl už dávno a podle něj jsem zprovoznil Vertex.
Ten komunikoval přes ttyACM0. ttyUSB0/1 se tenkrát vůbec neobjevil, pokud člověk nepatchoval jádro, ne?
S celotem komunikuji přes ttyUSB0. ttyUSB1/2 se sice objevili, ale nic mi z nich neleze.
Musím i tady patchovat jádro, abych z nich něco vyrazil?

R
Jsem jen běžný uživatel. Říkejte mi třeba Franta.

Rover623

Re:3G modem CELOT K-300 (Ufon)
« Odpověď #9 kdy: 26 Června 2013, 00:38:26 »
Vzhledem k tomu, že ten Celot by měl být vlastně ten Vertex mírně upravený, tak asi ano

navsteva

  • Aktivní člen
  • *
  • Příspěvků: 220
Re:3G modem CELOT K-300 (Ufon)
« Odpověď #10 kdy: 02 Září 2016, 21:33:01 »
Tak nevím, jestli mám zakládat nové téma,nebo připsat k tomuto. Mám zřejmě taky tento modem a nevím jak ho rozchodit.

Odkazujete na návod úplně na jiný modem, když podle toho návodu jedu, tak nefunguje hned první krok.

Citace

Překopírujte soubor /lib/udev/rules.d/61-option-modem-modeswitch.rules do /etc/udev/rules.d (aby soubor nebyl přepsán při update UDEVu)

usb-modeswitch mám, /lib/udev/rules.d/61-option-modem-modeswitch.rules nemám.

 

Provoz zaštiťuje spolek OpenAlt.