Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
nzscion
Posts: 3
Joined: 30 Nov 2010, 08:49

Help please - Vodafone 845 (Huawei)

Post by nzscion » 30 Nov 2010, 09:13

Hi All,

I am unfortunately having some issues getting USB Modeswitch to work on my system (Ubuntu 10.04).

I have installed USB Modeswitch and the data package via Synaptic, but my phone (Vodafone 845) still appears as a CD drive under places. I have tried entering the suggestions in this thread into the terminal, also with no luck.

Happy to confess to being a total newbie when it comes to this sort of thing, any assistance appreciated :)

Thanks,

NZScion

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 30 Nov 2010, 11:44

First, make sure you have newer versions of the packages than the ones in Ubuntu 10.04. These are pretty dated now and don't contain your phone.

You should be able to install the 1.1.4 package plus the latest data package from the Debian pages (see main doc page, paragraph "Download").


nzscion
Posts: 3
Joined: 30 Nov 2010, 08:49

Post by nzscion » 30 Nov 2010, 20:08

Hi Josh,

Many thanks for the quick reply. I did a complete removal of the files installed via Synaptic, and tried my best to follow the instructions on the main page. Unfortunately the install of the main file had a mass of warning messages, which I've posted below. The data package installed fine. Can you please let me know what I'm doing wrong?

Thanks again,

NZScion

Code: Select all

chris@chris-laptop:~$ cd USB-Modeswitch
chris@chris-laptop:~/USB-Modeswitch$ cd usb-modeswitch-1.1.5
chris@chris-laptop:~/USB-Modeswitch/usb-modeswitch-1.1.5$ sudo make install
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:346: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:349: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:351: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:352: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:395: error: dereferencing pointer to incomplete type
usb_modeswitch.c:396: error: dereferencing pointer to incomplete type
usb_modeswitch.c:398: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:398: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:408: error: dereferencing pointer to incomplete type
usb_modeswitch.c:539: warning: implicit declaration of function ‘usb_close’
usb_modeswitch.c: In function ‘deviceDescription’:
usb_modeswitch.c:597: error: dereferencing pointer to incomplete type
usb_modeswitch.c:598: warning: implicit declaration of function ‘usb_get_string_simple’
usb_modeswitch.c:598: error: dereferencing pointer to incomplete type
usb_modeswitch.c:607: error: dereferencing pointer to incomplete type
usb_modeswitch.c:608: error: dereferencing pointer to incomplete type
usb_modeswitch.c:617: error: dereferencing pointer to incomplete type
usb_modeswitch.c:618: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘deviceInquire’:
usb_modeswitch.c:650: warning: implicit declaration of function ‘usb_claim_interface’
usb_modeswitch.c:655: warning: implicit declaration of function ‘usb_clear_halt’
usb_modeswitch.c:657: warning: implicit declaration of function ‘usb_bulk_write’
usb_modeswitch.c:663: warning: implicit declaration of function ‘usb_bulk_read’
usb_modeswitch.c:690: warning: implicit declaration of function ‘usb_release_interface’
usb_modeswitch.c: In function ‘resetUSB’:
usb_modeswitch.c:706: warning: implicit declaration of function ‘sleep’
usb_modeswitch.c:708: warning: implicit declaration of function ‘usb_reset’
usb_modeswitch.c: In function ‘switchSendMessage’:
usb_modeswitch.c:760: warning: implicit declaration of function ‘usleep’
usb_modeswitch.c: In function ‘switchConfiguration’:
usb_modeswitch.c:825: warning: implicit declaration of function ‘usb_set_configuration’
usb_modeswitch.c: In function ‘switchAltSetting’:
usb_modeswitch.c:841: warning: implicit declaration of function ‘usb_set_altinterface’
usb_modeswitch.c: In function ‘switchHuaweiMode’:
usb_modeswitch.c:858: warning: implicit declaration of function ‘usb_control_msg’
usb_modeswitch.c:858: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:858: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:858: error: for each function it appears in.)
usb_modeswitch.c:858: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:858: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchKobilMode’:
usb_modeswitch.c:904: error: ‘USB_TYPE_VENDOR’ undeclared (first use in this function)
usb_modeswitch.c:904: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:904: error: ‘USB_ENDPOINT_IN’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchSonyMode’:
usb_modeswitch.c:958: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c: In function ‘detachDriver’:
usb_modeswitch.c:992: warning: implicit declaration of function ‘usb_get_driver_np’
usb_modeswitch.c:1008: warning: implicit declaration of function ‘usb_detach_kernel_driver_np’
usb_modeswitch.c: In function ‘checkSuccess’:
usb_modeswitch.c:1100: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1106: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1106: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘search_devices’:
usb_modeswitch.c:1225: warning: implicit declaration of function ‘usb_get_busses’
usb_modeswitch.c:1225: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1225: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1227: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1227: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1229: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1229: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1230: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1251: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1258: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1258: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1260: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1270: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1279: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1281: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1284: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1285: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1312: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1312: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_output_endpoint’:
usb_modeswitch.c:1334: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1337: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1338: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1339: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1339: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1339: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1340: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1340: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1341: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_input_endpoint’:
usb_modeswitch.c:1352: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1355: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1356: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1357: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1357: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1357: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1358: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1358: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1359: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘get_current_configuration’:
usb_modeswitch.c:1371: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:1371: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:1371: error: ‘USB_REQ_GET_CONFIGURATION’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘get_interface0_class’:
usb_modeswitch.c:1385: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1386: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1387: error: dereferencing pointer to incomplete type
make: *** [usb_modeswitch] Fehler 1

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 30 Nov 2010, 23:30

I thought you'd better install the Debian packages, not the source packages. There is a link on the doc page ...

Well, now you are almost there with the source. You just need the "libusb-dev" (or -devel) package.

Don't forget to install the latest data package as well!


nzscion
Posts: 3
Joined: 30 Nov 2010, 08:49

Post by nzscion » 01 Dec 2010, 06:56

I see (said the blind man)

All working now - many thanks for the assistance :)

Post Reply