[help] install usb-modeswitch

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
valk
Posts: 4
Joined: 11 Jul 2010, 08:43

[help] install usb-modeswitch

Postby valk » 12 Jul 2010, 11:17

helppp dong frustasi bgt ga bisa konek inet.. mo install modem dlu,, yg g tw prtama install usb_modeswitch sm wvdial,, g uda bisa install wvdial tp msi lom bisa install usb_modeswitch. pas mo di install .deb-nya dpt error gni Error: Dependency is not satisfiable: usb-modeswitch-data (>= 20100127).

gmn ni cara install usb-modeswitch-data nya??? g si uda di copy ke /usr/local/src/ ud di tar jxvf trus di make install dpt gni

Code: Select all

install -d /etc/usb_modeswitch.d
install --mode=644 -t /etc/usb_modeswitch.d ./usb_modeswitch.d/*
install -D --mode=644 40-usb_modeswitch.rules /lib/udev/rules.d/40-usb_modeswitch.rules
if [ -f /etc/issue ]; then \
      if [ -n `which udevadm 2>/dev/null` ]; then \
         UDEVADM=`which udevadm`; \
         UDEVADM_VER=`$UDEVADM -V 2>/dev/null`; \
         if [ -z $UDEVADM_VER ]; then \
            UDEVADM_VER=`$UDEVADM --version 2>/dev/null`; \
         fi; \
         if [ $UDEVADM_VER -gt 127 ]; then \
            $UDEVADM control --reload-rules; \
         else \
            $UDEVADM control --reload_rules; \
         fi \
      elif [ `which udevcontrol 2>/dev/null` ]; then \
      `which udevcontrol` reload_rules; \
      fi \
   fi


bener ga tu?!?

trus di install jg yg usb-modeswitch-1.1.3 dpt error gni..

Code: Select all

gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb
usb_modeswitch.c:56:17: error: usb.h: No such file or directory
usb_modeswitch.c: In function ‘main’:
usb_modeswitch.c:344: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:347: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:349: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:350: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:393: error: dereferencing pointer to incomplete type
usb_modeswitch.c:394: error: dereferencing pointer to incomplete type
usb_modeswitch.c:396: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:396: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:403: error: dereferencing pointer to incomplete type
usb_modeswitch.c:405: error: dereferencing pointer to incomplete type
usb_modeswitch.c:407: error: dereferencing pointer to incomplete type
usb_modeswitch.c:555: warning: implicit declaration of function ‘usb_close’
usb_modeswitch.c: In function ‘deviceDescription’:
usb_modeswitch.c:569: error: dereferencing pointer to incomplete type
usb_modeswitch.c:570: warning: implicit declaration of function ‘usb_get_string_simple’
usb_modeswitch.c:570: error: dereferencing pointer to incomplete type
usb_modeswitch.c:579: error: dereferencing pointer to incomplete type
usb_modeswitch.c:580: error: dereferencing pointer to incomplete type
usb_modeswitch.c:589: error: dereferencing pointer to incomplete type
usb_modeswitch.c:590: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘deviceInquire’:
usb_modeswitch.c:622: warning: implicit declaration of function ‘usb_claim_interface’
usb_modeswitch.c:627: warning: implicit declaration of function ‘usb_clear_halt’
usb_modeswitch.c:629: warning: implicit declaration of function ‘usb_bulk_write’
usb_modeswitch.c:635: warning: implicit declaration of function ‘usb_bulk_read’
usb_modeswitch.c:662: warning: implicit declaration of function ‘usb_release_interface’
usb_modeswitch.c: In function ‘resetUSB’:
usb_modeswitch.c:678: warning: implicit declaration of function ‘sleep’
usb_modeswitch.c:680: warning: implicit declaration of function ‘usb_reset’
usb_modeswitch.c: In function ‘switchSendMessage’:
usb_modeswitch.c:731: warning: implicit declaration of function ‘usleep’
usb_modeswitch.c: In function ‘switchConfiguration’:
usb_modeswitch.c:798: warning: implicit declaration of function ‘usb_set_configuration’
usb_modeswitch.c: In function ‘switchAltSetting’:
usb_modeswitch.c:814: warning: implicit declaration of function ‘usb_set_altinterface’
usb_modeswitch.c: In function ‘switchHuaweiMode’:
usb_modeswitch.c:831: warning: implicit declaration of function ‘usb_control_msg’
usb_modeswitch.c:831: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:831: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:831: error: for each function it appears in.)
usb_modeswitch.c:831: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:831: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchSonyMode’:
usb_modeswitch.c:917: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c: In function ‘detachDriver’:
usb_modeswitch.c:951: warning: implicit declaration of function ‘usb_get_driver_np’
usb_modeswitch.c:967: warning: implicit declaration of function ‘usb_detach_kernel_driver_np’
usb_modeswitch.c: In function ‘checkSuccess’:
usb_modeswitch.c:1051: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1057: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1057: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘search_devices’:
usb_modeswitch.c:1169: warning: implicit declaration of function ‘usb_get_busses’
usb_modeswitch.c:1169: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1169: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1171: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1171: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1173: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1173: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1174: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1195: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1202: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1202: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1204: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1214: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1223: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1225: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1228: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1229: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1255: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1255: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_output_endpoint’:
usb_modeswitch.c:1277: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1280: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1281: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1282: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1282: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1282: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1283: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1283: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1284: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_input_endpoint’:
usb_modeswitch.c:1295: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1298: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1299: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1300: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1300: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1300: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1301: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1301: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1302: error: dereferencing pointer to incomplete type
make: *** [usb_modeswitch] Error 1
User avatar
etc
Posts: 487
Joined: 05 Apr 2010, 13:26
Location: Indonesia

Re: [help] install usb-modeswitch

Postby etc » 12 Jul 2010, 11:34

install modem jenis apa bro Valk??
saya kemarin install usb-modeswitch lewat terminal atau synaptic
gk ada errornya..

klo saya gunaiin modem huawei e-169
begini caranya

Code: Select all

$lsusb (untuk melihat ID vendor dari Modem)
$sudo modprobe -r option
$sudo modprobe -r usbserial
$sudo modprobe usbserial vendor=0x12d1 product=0x1001


setelah lakukan perintah di atas, trus di safelyremove usb modemnya, biarkan modem masih tertancap di port usb, kemudian tunggu beberapa detik, langsung bisa online..
User avatar
meshwara
Posts: 38
Joined: 02 Jul 2010, 13:42
Location: Malang, Indonesia
Contact:

Re: [help] install usb-modeswitch

Postby meshwara » 12 Jul 2010, 12:07

Sy juga pake usb_modeswitch (versi 1.0.7) agar bisa connect dengam wifi modem Prolink PHS100.
Iseng coba install yg versi lebih tinggi 1.1.x, eh ndak masih blum berhasil, :D entah apa masalahnya, masih blum sepat cari tahu.

Dari kode error bang valk, kliatannya bang valk blum punya paket dev usb. COba install libusb-dev, lalu coba compile lagi.
User avatar
valk
Posts: 4
Joined: 11 Jul 2010, 08:43

Re: [help] install usb-modeswitch

Postby valk » 12 Jul 2010, 14:57

iya kalo lewat synaptic hrs konek inet kn?? kan ni jg blom bisa konek inet.. sorry masi noob ni hahaha.. modemnya zte mf620.. ok deh ntar install dulu dev usb..ntar liat lagi..
User avatar
heripu
Posts: 289
Joined: 27 Jun 2010, 00:57
Location: palembang
Contact:

Re: [help] install usb-modeswitch

Postby heripu » 12 Jul 2010, 16:15

3dwin_niuwer wrote:install modem jenis apa bro Valk??
saya kemarin install usb-modeswitch lewat terminal atau synaptic
gk ada errornya..

klo saya gunaiin modem huawei e-169
begini caranya

Code: Select all

$lsusb (untuk melihat ID vendor dari Modem)
$sudo modprobe -r option
$sudo modprobe -r usbserial
$sudo modprobe usbserial vendor=0x12d1 product=0x1001


setelah lakukan perintah di atas, trus di safelyremove usb modemnya, biarkan modem masih tertancap di port usb, kemudian tunggu beberapa detik, langsung bisa online..


bro 3dwin, bisa jelasin secara detail n mudah dipahami cara setting modemnya?

ane udah coba usb-modeswitch berkali2 q install remove tapi belum bisa juga sampai sekarang, thx bro,,,
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] install usb-modeswitch

Postby ninja » 13 Jul 2010, 04:33

download and install usb_modeswitch drmna? sapa tau salah versi, kan usb_modeswitch ada yng buat amd dan intel :wink:
User avatar
heripu
Posts: 289
Joined: 27 Jun 2010, 00:57
Location: palembang
Contact:

Re: [help] install usb-modeswitch

Postby heripu » 13 Jul 2010, 05:57

bos, ninja ane installny lewat terminal
sudo apt-get install usb-modeswitch
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] install usb-modeswitch

Postby ninja » 13 Jul 2010, 06:28

coba bro heripu copas disini errornya :wink:
User avatar
etc
Posts: 487
Joined: 05 Apr 2010, 13:26
Location: Indonesia

Re: [help] install usb-modeswitch

Postby etc » 13 Jul 2010, 10:27

bro heripu, klo menggunakan modem huawei e-169

yang jelas cara settingnya pertama colokkan modemnya.. :grin: kalau sudah terdeteksi..

kemudian buka network connection, trus pilih mobilebroadband, kemudian di ADD
sudah klik add trus forward, selanjutnya pilih provider negara.klo saya milihnya INDONESIA.
trus pilihlah Providernya... trus forward dan apply..

nanti muncul
Tampilkan
[img:center]http://i208.photobucket.com/albums/bb247/Farlinto/Screenshot-14.png[/img]



selanjutnya, ke Terminal Ubuntu..

Tampilkan

Code: Select all

$lsusb
$sudo su
#rmmod usb-storage
#modprobe -r option
#modprobe -r usbserial
#modprobe usbserial vendor=0x12d1 product=0x1001
#exit
$


lsusb adalah list dri usb..
lsusb disini fungsinya untuk mengetahui ID vendor dri modem yg kita gunakan..
lihat dengan seksama..
nanti tuh keliahatan sendiri, kok nomor nya
nomor itu berhubungan erat dgn perintah yg ke-6

jika terjadi error setelah mengetikkan perintah #rmmod usb-storage dan muncul error module usb in use, abaikan saja.. langsung aja ketik perintah ke-4.

setelah semua perintah sukses di lakukan, kemudian kita menuju ke nautilus..
klik kanan pada modemnya trus pilih Safelyremove

biarkan modem masih menancap pada port usb jgn di cabut..
tunggu beberapa detik..
setelah itu muncul notification di panel,klo modem sudah bisa digunakan
langsung ONLINE!... :)

klo saya begitu caranya bro heripu..

cuma iya nantinya, sewaktu mengaktifkan kembali PC, melakukan metode diatas dan perintah di atas kembali.. supaya bisa online :(

Tampilkan

Code: Select all

#modprobe -r option
#modprobe -r usbserial
#modprobe usbserial vendor=0x12d1 product=0x1001


saya juga pernah install usb-modeswitch lewat terminal, dan gk ada error, usb-modeswitch tuh aplikasinya saya dapat di dalam repository

Code: Select all

$sudo apt-get install usb-modeswitch

kemudian muncul pesan di dalam Terminal, klo usb-modeswitch udh di terinstall sebelumnya..
Last edited by etc on 27 Feb 2016, 15:27, edited 1 time in total.
Reason: Ralat lsusb
User avatar
zarkasichan
Posts: 1527
Joined: 01 Jan 2010, 01:57
Location: Samarinda, Indonesia
Contact:

Re: [help] install usb-modeswitch

Postby zarkasichan » 23 Sep 2010, 08:39

bro.,ane udah install usb-modeswitch juga nih.,sukses.,tapi anehnya kok saat menjalankan perintah terminal "sudo usb_modeswitch" eh ada pesan error karena file konfigurasi /etc/usb-modeswitch.conf tidak ada (ga ditemukan)

Code: Select all

Error: Could not find file /etc/usb-modeswitch.conf

apakah ini normal yah?? trus isi file config usb-modeswitch.conf bro yang lain gimana sih? bisa ane liat ga (copas disini aja) :D
heleppp.,
User avatar
freeazy
Posts: 1329
Joined: 04 Jan 2010, 00:13
Location: Makassar
Contact:

Re: [help] install usb-modeswitch

Postby freeazy » 23 Sep 2010, 08:54

zarkasichan wrote:bro.,ane udah install usb-modeswitch juga nih.,sukses.,tapi anehnya kok saat menjalankan perintah terminal "sudo usb_modeswitch" eh ada pesan error karena file konfigurasi /etc/usb-modeswitch.conf tidak ada (ga ditemukan)

Code: Select all

Error: Could not find file /etc/usb-modeswitch.conf

apakah ini normal yah?? trus isi file config usb-modeswitch.conf bro yang lain gimana sih? bisa ane liat ga (copas disini aja) :D
heleppp.,


isi dari usb_modeswitch.conf:

Code: Select all

# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script "usb_modeswitch_dispatcher"
# in /usr/sbin
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
# Everything else counts as "disable"


# Disable automatic mode switching globally (e.g. to access the original
# install storage)

DisableSwitching=0


# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>"

EnableLogging=0

User avatar
zarkasichan
Posts: 1527
Joined: 01 Jan 2010, 01:57
Location: Samarinda, Indonesia
Contact:

Re: [help] install usb-modeswitch

Postby zarkasichan » 23 Sep 2010, 10:14

kemaren ane udah nginstall usb-modeswitch bro.,kemudian ga lama setelah itu nemu aplikasi switch khusus buat modem saya zte mf627 di forum ini juga sumbernya, tanpa pikir lagi udah langsung download aplikasi tersebut dan install.,kemungkinan file yang ada di /etc/usb-modeswitch.conf tereplace menjadi "zte-mf627-switch.conf".

udah saya remove sih zte-mf627-switch nya dari komputer.,tapi file konfignya masih ada, usb-modeswitch juga udah tak remove, trus install lagi tapi ga ada file default di "/etc/usb-modeswitch.conf"., yang ada masih sama yaitu : "zte-mf627-switch.conf".,kemudian saya replacea aja nama ntu file lewat akses root jadi "usb-modeswitch.conf".,nah isi file tersebut cuman gini :

Code: Select all

########################################################
# ZTE MF628+ (tested version from Telia / Sweden)
#
# Contributor: Joakim Wennergren
#
# Also applies to MF627 (Tested 3 UK) JF

DefaultVendor=  0x19d2
DefaultProduct= 0x2000

TargetVendor=   0x19d2
TargetProduct=  0x0031

MessageEndpoint=0x01
MessageContent="55534243123456782000000080000c85010101180101010101000000000000"

makanya saya nanya isi file asli "usb-modeswitch.conf" yang asli gimana.,hehe., Terima Kasih
User avatar
zarkasichan
Posts: 1527
Joined: 01 Jan 2010, 01:57
Location: Samarinda, Indonesia
Contact:

Re: [help] install usb-modeswitch

Postby zarkasichan » 23 Sep 2010, 22:50

cara setting modem ala Bro drakul diatas sepertinya patut dicoba nih.,hehehee..,ijin nyimpen halaman bro....
mantep!!!
User avatar
rekano
Posts: 190
Joined: 02 Jun 2010, 22:17
Location: Baturaja, Sumatera Selatan
Contact:

Re: [help] install usb-modeswitch

Postby rekano » 23 Sep 2010, 23:51

gimana ya caranya supaya perintah
$lsusb (untuk melihat ID vendor dari Modem)
$sudo modprobe -r option
$sudo modprobe -r usbserial
$sudo modprobe usbserial vendor=0x12d1 product=0x1803


dibuat biar bisa satu langkah aja Image
User avatar
zarkasichan
Posts: 1527
Joined: 01 Jan 2010, 01:57
Location: Samarinda, Indonesia
Contact:

Re: [help] install usb-modeswitch

Postby zarkasichan » 24 Sep 2010, 08:30

Code: Select all

$lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0930:020f Toshiba Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 010: ID 19d2:0031 ONDA Communication S.p.A. ZTE MF636
Bus 002 Device 002: ID 0bda:8198 Realtek Semiconductor Corp. RTL8187B Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b128 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

selanjutnya lagi pada terminal :

Code: Select all

sudo rmmod usb_storage
sudo modprobe -r option
sudo modprobe -r usbserial
sudo modprobe usbserial vendor=0x19d2 product=0x0031

dan cmiiwww.,alhamdulillah modem ane langsung kedetek di network manager dan siap buat internetan..,heehehhe :D
mudah-mudahan cara seperti ini akan terus bekerja di modem ane...kuatir kalau kadang mau kadang juga kagak.
User avatar
meshwara
Posts: 38
Joined: 02 Jul 2010, 13:42
Location: Malang, Indonesia
Contact:

Re: [help] install usb-modeswitch

Postby meshwara » 24 Sep 2010, 10:19

Berbagi pengalaman ya.
Saya pake modem Prolink PHS100, dan Ubuntu Jaunty.
Dengan Jaunty stadart, ternyata PHS100 ndak kedetect sama sekali, jadi saya pakai usb_modeswitch dan hasilnya OK.

Nah, beberapa hari yang lalu, saya compile kernel 2.6.35.5, lalu buang sub-modeswitch, hasilnya ternyata PHS100 langsung bisa dikenali dan bekerja dengan baik.

Ada yang mau coba ?
User avatar
freeazy
Posts: 1329
Joined: 04 Jan 2010, 00:13
Location: Makassar
Contact:

Re: [help] install usb-modeswitch

Postby freeazy » 24 Sep 2010, 11:18

meshwara wrote:Berbagi pengalaman ya.
Saya pake modem Prolink PHS100, dan Ubuntu Jaunty.
Dengan Jaunty stadart, ternyata PHS100 ndak kedetect sama sekali, jadi saya pakai usb_modeswitch dan hasilnya OK.

Nah, beberapa hari yang lalu, saya compile kernel 2.6.35.5, lalu buang sub-modeswitch, hasilnya ternyata PHS100 langsung bisa dikenali dan bekerja dengan baik.

Ada yang mau coba ?


saya belum coba kernel 2.6.35 :D

ada perkembangan nih :grin:

gak perlu repot2 install usb-modeswitch
User avatar
zarkasichan
Posts: 1527
Joined: 01 Jan 2010, 01:57
Location: Samarinda, Indonesia
Contact:

Re: [help] install usb-modeswitch

Postby zarkasichan » 24 Sep 2010, 18:55

masalahnya cara compile ntu kernel yang panjang banget bro.....

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: No registered users and 2 guests