[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

[quote=3dwin_niuwer]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,,,