- Install the Connection Manager that is launched when you connect the modem to the Mac
- Download the source of
usb_modeswitch
from here http://www.draisberghof.de/usb_modeswitch/ (at the moment of writing this the file appears with the name usb-modeswitch-2.5.2.tar.bz2) - Run
make
in the directory of the source you downloaded - Run
sudo ./usb_modeswitch -v12d1 -p1505 -X
in the same directory
If the last step returns an error (I don't remember the error now, but I was getting an error related to usb_modeswitch
not being able to take control of the modem to perfom changes):
- Unplug the modem and plug it again
- As soon as you plug the modem again, run
sudo ./usb_modeswitch -v12d1 -p1505 -X
repatedly until you get a successful result - Open Connection Manager and your modem is going to be detected
@nirmall and @stefanocoding How did you guys overcome the PKG_CONFIG_PATH environment pitfall?
I have installed the pre-requisites though mine were via Macports. I have set the PKG_CONFIG_PATH environment variable to where the libusb.h is located but my make still fails with:
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
In file included from usb_modeswitch.c:59:
./usb_modeswitch.h:26:10: fatal error:
'libusb.h' file not found
#include <libusb.h>
^~~~~~~~~~
1 error generated.
make: *** [usb_modeswitch] Error 1
Any pointers?