Hyundai Mobile MB-810 in linux
Hyundai Mobile MB-810 in linux
A je kdo usposobil Hyundai Mobile MB-810 modem pod linuxom?
Sam poskušam pod Centos 5, a ga prepozna kot USB disk in ne modem...
Lithium
Sam poskušam pod Centos 5, a ga prepozna kot USB disk in ne modem...
Lithium
Neuradni forum Telemacha -> forum070.net
- NoName
- Administrator
- Prispevkov: 2091
- Pridružen: 16. Nov 2006 ob 20:26
- T-2: Že imam
- Paket: VDSL T4 KING + HDTV
Re: Hyundai Mobile MB-810 in linux
nektere usb umts modeme mors odmountat da spremenijo mode iz disk v modem... pol pa dobis naceloma /dev/ttyUSBx, s katerim se povezes na net... pogooglat bo treba...
I can see dumb people...They're all around us... Look, they're even on this forum!
Re: Hyundai Mobile MB-810 in linux
Že googlam cel dopoldan, pa ni dosti samo odmountat...
Preklopiti ga je treba v modem način s temle sw http://www.draisberghof.de/usb_modeswitch/
Preklopi mi ga lepo, ampak centos 5 še vseeno ne prepozna zadeve kot modem, oz. sploh ne prepozna, kakšen device je to.
Lithium
Preklopiti ga je treba v modem način s temle sw http://www.draisberghof.de/usb_modeswitch/
Preklopi mi ga lepo, ampak centos 5 še vseeno ne prepozna zadeve kot modem, oz. sploh ne prepozna, kakšen device je to.
Lithium
Neuradni forum Telemacha -> forum070.net
- NoName
- Administrator
- Prispevkov: 2091
- Pridružen: 16. Nov 2006 ob 20:26
- T-2: Že imam
- Paket: VDSL T4 KING + HDTV
Re: Hyundai Mobile MB-810 in linux
kaj pravi dmesg v konzoli?
I can see dumb people...They're all around us... Look, they're even on this forum!
Re: Hyundai Mobile MB-810 in linux
Dmesg (ob spodnji spremembi v modem se nič ne spremeni)
[ 606.223574] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ 606.223695] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 826.378925] usb 1-3: USB disconnect, address 4
[ 838.140053] usb 1-3: new high speed USB device using ehci_hcd and address 5
[ 838.305711] usb 1-3: configuration #1 chosen from 1 choice
[ 838.343679] scsi4 : SCSI emulation for USB Mass Storage devices
[ 838.345989] usb-storage: device found at 5
[ 838.345994] usb-storage: waiting for device to settle before scanning
[ 839.186543] usb 1-3: USB disconnect, address 5
[ 839.556036] usb 1-3: new high speed USB device using ehci_hcd and address 6
[ 839.723417] usb 1-3: configuration #1 chosen from 1 choice
[ 839.798155] scsi5 : SCSI emulation for USB Mass Storage devices
[ 839.801772] usb-storage: device found at 6
[ 839.801777] usb-storage: waiting for device to settle before scanning
[ 844.800637] usb-storage: device scan complete
[ 844.801483] scsi 5:0:0:0: Direct-Access Hyundai MMC Storage 2.31 PQ: 0 ANSI: 2
[ 844.806242] sd 5:0:0:0: [sdb] 8026112 512-byte hardware sectors: (4.10 GB/3.82 GiB)
[ 844.845880] sd 5:0:0:0: [sdb] Write Protect is off
[ 844.845887] sd 5:0:0:0: [sdb] Mode Sense: 0f 0e 00 00
[ 844.845891] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 844.856010] sd 5:0:0:0: [sdb] 8026112 512-byte hardware sectors: (4.10 GB/3.82 GiB)
[ 844.857364] sd 5:0:0:0: [sdb] Write Protect is off
[ 844.857371] sd 5:0:0:0: [sdb] Mode Sense: 0f 0e 00 00
[ 844.857375] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 844.857385] sdb: sdb1
[ 844.861722] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 844.861846] sd 5:0:0:0: Attached scsi generic sg2 type 0
Tole je output spremembe načina:
root@tequila:~/hyundai/usb_modeswitch-1.0.2# ./usb_modeswitch
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 005 on bus 001 ...
Using endpoints 0x01 (out) and 0x01 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Received inquiry data (detailed identification)
-------------------------
Vendor String: Hyundai
Product String: MMC Storage
Revision String: 2.31
-------------------------
Device description data (identification)
-------------------------
Manufacturer: Hyundai
Product: Hyundai
Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.
root@tequila:~/hyundai/usb_modeswitch-1.0.2# lsusb
Bus 001 Device 006: ID 1e0e:9000
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Imam občutek, da bi moral naložiti še nek modul, pa nimam pojma kateri je za to...
Lithium
[ 606.223574] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ 606.223695] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 826.378925] usb 1-3: USB disconnect, address 4
[ 838.140053] usb 1-3: new high speed USB device using ehci_hcd and address 5
[ 838.305711] usb 1-3: configuration #1 chosen from 1 choice
[ 838.343679] scsi4 : SCSI emulation for USB Mass Storage devices
[ 838.345989] usb-storage: device found at 5
[ 838.345994] usb-storage: waiting for device to settle before scanning
[ 839.186543] usb 1-3: USB disconnect, address 5
[ 839.556036] usb 1-3: new high speed USB device using ehci_hcd and address 6
[ 839.723417] usb 1-3: configuration #1 chosen from 1 choice
[ 839.798155] scsi5 : SCSI emulation for USB Mass Storage devices
[ 839.801772] usb-storage: device found at 6
[ 839.801777] usb-storage: waiting for device to settle before scanning
[ 844.800637] usb-storage: device scan complete
[ 844.801483] scsi 5:0:0:0: Direct-Access Hyundai MMC Storage 2.31 PQ: 0 ANSI: 2
[ 844.806242] sd 5:0:0:0: [sdb] 8026112 512-byte hardware sectors: (4.10 GB/3.82 GiB)
[ 844.845880] sd 5:0:0:0: [sdb] Write Protect is off
[ 844.845887] sd 5:0:0:0: [sdb] Mode Sense: 0f 0e 00 00
[ 844.845891] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 844.856010] sd 5:0:0:0: [sdb] 8026112 512-byte hardware sectors: (4.10 GB/3.82 GiB)
[ 844.857364] sd 5:0:0:0: [sdb] Write Protect is off
[ 844.857371] sd 5:0:0:0: [sdb] Mode Sense: 0f 0e 00 00
[ 844.857375] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 844.857385] sdb: sdb1
[ 844.861722] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 844.861846] sd 5:0:0:0: Attached scsi generic sg2 type 0
Tole je output spremembe načina:
root@tequila:~/hyundai/usb_modeswitch-1.0.2# ./usb_modeswitch
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 005 on bus 001 ...
Using endpoints 0x01 (out) and 0x01 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Received inquiry data (detailed identification)
-------------------------
Vendor String: Hyundai
Product String: MMC Storage
Revision String: 2.31
-------------------------
Device description data (identification)
-------------------------
Manufacturer: Hyundai
Product: Hyundai
Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.
root@tequila:~/hyundai/usb_modeswitch-1.0.2# lsusb
Bus 001 Device 006: ID 1e0e:9000
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Imam občutek, da bi moral naložiti še nek modul, pa nimam pojma kateri je za to...
Lithium
Neuradni forum Telemacha -> forum070.net
Re: Hyundai Mobile MB-810 in linux
Ko izpljuneš zeroconf CD z udev pravilom (usb_modeswitch ni potreben, zadostuje eject):
...se ti na namizju pojavi 4GB pogon. V tem momentu ima naprava vendor id 1e0e ter product id 9000. To je OK.
Naložena moraš imeti modula usbserial in option. Modul usbserial naložiš takole:
...pojavijo se ti trije com porti... ttyUSB{0,1,2}. Port 0 ne vem čemu je namenjen, 1 je za query naprave, 2 pa za podatkovno povezavo. Jaz sem si naredil kar dve udev pravili, ki mi z omenjenih dev datotek naredita soft linka na modem_query in modem_data:
Potem kličem s pppd prek /dev/modem_data.
Če bi hotel da ti NetworkManager (>=0,7) prepozna ta modem, bi se v končni fazi moral poigrati s fdi fajli za hal. V fajlu /usr/share/hal/fid/information/10freedesktop/10-modem.fdi je zavedenih že kar nekaj CDMA modemov in po vzoru teh bi bilo potrebno dodati še Hyundai-ja.
Koda: Izberi vse
ACTION=="add", SYSFS{idProduct}=="f000", SYSFS{idVendor}=="1e0e", RUN+="/usr/bin/eject %k"
Naložena moraš imeti modula usbserial in option. Modul usbserial naložiš takole:
Koda: Izberi vse
modprobe usbserial vendor=0x1e0e product=0x9000
Koda: Izberi vse
ACTION=="add", KERNEL=="ttyUSB2", SUBSYSTEM=="tty", SYSFS{idProduct}=="9000", SYSFS{idVendor}=="1e0e", SYMLINK+="modem_data"
ACTION=="add", KERNEL=="ttyUSB1", SUBSYSTEM=="tty", SYSFS{idProduct}=="9000", SYSFS{idVendor}=="1e0e", SYMLINK+="modem_query"
Če bi hotel da ti NetworkManager (>=0,7) prepozna ta modem, bi se v končni fazi moral poigrati s fdi fajli za hal. V fajlu /usr/share/hal/fid/information/10freedesktop/10-modem.fdi je zavedenih že kar nekaj CDMA modemov in po vzoru teh bi bilo potrebno dodati še Hyundai-ja.
Re: Hyundai Mobile MB-810 in linux
Blayo, hvala za tole, bo sigurno še komu prišlo prav.
Škoda, ker sem že vrnil modem (sem ga imel na poskušnji), pa se pod linuxom ni najbolje obnesel...
Lithium
Škoda, ker sem že vrnil modem (sem ga imel na poskušnji), pa se pod linuxom ni najbolje obnesel...
Lithium
Neuradni forum Telemacha -> forum070.net
Re: Hyundai Mobile MB-810 in linux
Hmm, meni načeloma ne dela nobenih problemov.
Sem pa našel tale link:
http://cluster.physik.uni-freiburg.de/~ ... index.html
...zadeva se sicer tiče modema Option iCON 210, ki pa ima zanimivo enak vendor in product ID kot tale Hyundai.
Sem pa našel tale link:
http://cluster.physik.uni-freiburg.de/~ ... index.html
...zadeva se sicer tiče modema Option iCON 210, ki pa ima zanimivo enak vendor in product ID kot tale Hyundai.
Re: Hyundai Mobile MB-810 in linux
Pa še tole sem našel:
http://wiki.ubuntuusers.de/Icon_210
...tudi zanimivo za kakšen hint pri skriptiranju zadeve.
http://wiki.ubuntuusers.de/Icon_210
...tudi zanimivo za kakšen hint pri skriptiranju zadeve.
Re: Hyundai Mobile MB-810 in linux
No zdaj sem pa še fdi za HAL spisal...
V /usr/share/hal/fdi/information/20thirdparty/10-hyundai.fdi naklofaš:
Zadeva funkcionira z NM >=7.0, stestiral sem jo pa samo v Ubuntu Intrepid.
V /usr/share/hal/fdi/information/20thirdparty/10-hyundai.fdi naklofaš:
Koda: Izberi vse
<deviceinfo version="0.2">
<device>
<!-- Hyundai MB-810 -->
<match key="@info.parent:usb.vendor_id" int="0x1e0e">
<match key="@info.parent:usb.product_id" int="0x9000">
<match key="@info.parent:usb.interface.number" int="3">
<append key="modem.command_sets" type="strlist">GSM-07.07</append>
<append key="modem.command_sets" type="strlist">GSM-07.05</append>
<append key="info.capabilities" type="strlist">modem</append>
</match>
</match>
</match>
</device>
</deviceinfo>
-
- Znanec
- Prispevkov: 98
- Pridružen: 25. Sep 2009 ob 14:26
- T-2: Že imam
- Paket: Oranžni diamant FTTH
Re: Hyundai Mobile MB-810 in linux
Mogoče bo to zanimalo koga, ki je namestil Ubuntu 9.10.
================================================
Namestimo usb-modeswitch paket
sudo apt-get install usb-modeswitch
Popravimo konfiguracijsko dateko /etc/usb_modeswitch.conf
sudo gedit /etc/usb_modeswitch.conf
Odkomentiramo del, ki se nanaša na Hyundai MB-810
########################################################
# Option iCON 210
# PROLiNK PHS100 (various looks)
# Hyundai Mobile MB-810
#
# One report of switching with DetachStorageOnly. Needs at least
# a second to settle before binding to usbserial
#
# Contributor: wahlm, Peter Kraker, Pakdhetimin Sekum
DefaultVendor= 0x1e0e
DefaultProduct= 0xf000
TargetVendor= 0x1e0e
TargetProduct= 0x9000
# only for reference
# MessageEndpoint=0x01
MessageContent="555342431234567800000000000006bd000000020000000000000000000000"
ResponseEndpoint=0x01
Zaženemo
sudo usb_modeswitch
Na network manager applet kliknemo z desnim klikom, izberemo Edit connections..., izberemo Mobile Broadband, izberemo Add, izberemo Slovenija, Mobitel... V nastavitvah nastavimo username mobitel, password internet, APN internet. Če imamo drugega spletnega ponudnika to nastavimo podobno.
================================================
Namestimo usb-modeswitch paket
sudo apt-get install usb-modeswitch
Popravimo konfiguracijsko dateko /etc/usb_modeswitch.conf
sudo gedit /etc/usb_modeswitch.conf
Odkomentiramo del, ki se nanaša na Hyundai MB-810
########################################################
# Option iCON 210
# PROLiNK PHS100 (various looks)
# Hyundai Mobile MB-810
#
# One report of switching with DetachStorageOnly. Needs at least
# a second to settle before binding to usbserial
#
# Contributor: wahlm, Peter Kraker, Pakdhetimin Sekum
DefaultVendor= 0x1e0e
DefaultProduct= 0xf000
TargetVendor= 0x1e0e
TargetProduct= 0x9000
# only for reference
# MessageEndpoint=0x01
MessageContent="555342431234567800000000000006bd000000020000000000000000000000"
ResponseEndpoint=0x01
Zaženemo
sudo usb_modeswitch
Na network manager applet kliknemo z desnim klikom, izberemo Edit connections..., izberemo Mobile Broadband, izberemo Add, izberemo Slovenija, Mobitel... V nastavitvah nastavimo username mobitel, password internet, APN internet. Če imamo drugega spletnega ponudnika to nastavimo podobno.