09-16-09 07:11 PM
40 12
tools
  1. tcolar's Avatar
    Hello there,
    i'm the author of bbtether (opensource/free)
    link: wiki.colar.net/bbtether_mac (sorry not allowed to post link yet :-( )

    it's a small python program that allows to use a Blackberry as a modem (USB. not bluetooth = faster).
    It has worked on linux for a little while, but today for the first time i got it to work on my Mac (tiger ppc but any should do).

    Anyway if anybody is interested in trying it out and giving me feedback that would be great.

    A few gotcha's:
    - it does not work yet with password protected BB's.
    - right now it requires compiling libusb from source (using xcode tools), it's not hard and is documented on bbtether page, but you need to be comfortable with the command line.

    Later i might be able to provide installers for all this rather than having to manually compile for for now that is what it is.

    As far as i know there are no other working & free USB tethering solution for OSX, so i'd like to get some feedback and then i'll try to make it into an easy to use package.

    tcolar AT colar D.o.t net
    Thanks
    03-09-09 02:03 AM
  2. r0k's Avatar
    I wish I had your app in January. I was in DC for the inauguration with my Acer Aspire One (Ubuntu) and I couldn't get tether working over bluetooth. I was "off the grid" for several days and only had net access when I happened to have my AAO with me at places like Panera Bread. I plan to take a look at your page to get both the Mac and Linux versions of bbtether.
    03-09-09 11:10 AM
  3. tate83's Avatar
    Hey

    I also will test your solution on my Bold / MBP soon.. will let you know how it worked out.

    Cheers
    03-09-09 11:21 AM
  4. clanbear's Avatar
    I would help test it when you get the password issue addressed.
    03-10-09 12:04 PM
  5. Forgot.About.Ted's Avatar
    Very cool. I will be giving this a whirl as soon as I possibly can!

    Posted from my CrackBerry at wapforums.crackberry.com
    03-10-09 12:50 PM
  6. tcolar's Avatar
    I've just released a new version (0.2f) with a few fixes
    AND SUPPORT FOR PASSWORD PROTECTED DEVICES
    (tested only on my pearl so far but should work on others)

    if not please email me the log file after running with -v (verbose) option.

    At this point it's easy to run on linux, the OSX page still needs a lot of updates (documentation), is started updating the page, but will retest on my mac in the next few days and clarify the instructions.
    03-10-09 03:58 PM
  7. dvaskelis's Avatar
    Looking forward to the instructions, as I've not been able to get it working. It won't compile libusb, and grabbing a pre-built one I get:

    *Interface: 0
    Error while scanning interface: 0 -> skipping
    Traceback (most recent call last):
    File "/Applications/Utilities/bbtether/bb_usb.py", line 111, in read_bb_endpoints
    handle.claimInterface(inter[0].interfaceNumber)
    USBError: usb_claim_interface: couldn't claim interface

    When trying to run bbtether.
    03-11-09 12:26 PM
  8. tcolar's Avatar
    Actually this seems OK.
    What's happening is that it's "busy" because OSX claims it so bbtether can't use it.
    You might be able to get around this is, you run bbtether right away after you plug the blackberry(usb), before OSX grabs it.
    Otherwise i have a "kext" file which can tell the mac not to claim the BB so bbtether can always use it, but it does not install automatically yet.

    you could do it manually like this:
    -----
    download/save svn.colar.net/bbtether/src/bbtether.kext
    sudo cp bbtether.kext /System/Library/Extensions
    sudo chown root:wheel /System/Library/Extensions/bbtether.kext
    sudo killall -s 1 kextd
    unplug / plug back BB and then try to use bbtether
    -----

    I'll try to wrap that up and package it properly this weekend, at this point it's a bit diificult.
    Last edited by tcolar; 03-11-09 at 12:56 PM.
    03-11-09 12:39 PM
  9. dvaskelis's Avatar
    sudo chmod root:wheel /System/Library/Extensions/bbtether.kext
    "chmod: Invalid file mode: root:wheel"

    ?
    03-11-09 12:48 PM
  10. tcolar's Avatar
    sorry fixed previous instructions
    03-11-09 12:55 PM
  11. dvaskelis's Avatar
    Unfortunately, didn't help after installing the kext and rebooting.
    *Interface: 0
    Error while scanning interface: 0 -> skipping
    Traceback (most recent call last):
    File "/Applications/Utilities/bbtether/bb_usb.py", line 111, in read_bb_endpoints
    handle.claimInterface(inter[0].interfaceNumber)
    USBError: usb_claim_interface: couldn't claim interface

    *Interface: 1
    Error while scanning interface: 1 -> skipping
    Traceback (most recent call last):
    File "/Applications/Utilities/bbtether/bb_usb.py", line 111, in read_bb_endpoints
    handle.claimInterface(inter[0].interfaceNumber)
    USBError: usb_claim_interface: couldn't claim interface
    Defaulted Modem endpoints: -0x1 / -0x1

    Increasing USB power - for charging
    Error increasing power usb_reset(ResetDevice): device not opened for exclusive access , continuing anyway.
    Waiting few seconds, for mode to change

    No good Data Endpoint pair, bailing out !
    03-11-09 01:10 PM
  12. tcolar's Avatar
    Ok, sorry about thta.
    It might be the libusb, i remember having problems with the binay one.

    Anyhow check back this weekend, i'll try to make this easy.
    03-11-09 01:15 PM
  13. Zenitsu's Avatar
    I'm gonna test it now.

    Edit: holy crowbar, harder than i thought, installing xcode for the first time. Wish me luck.
    Last edited by Zenitsu; 03-11-09 at 09:04 PM.
    03-11-09 08:34 PM
  14. Zenitsu's Avatar
    Okay i have failed, can't even install libusb, asks for some pkg-config and i'm confused.

    i guess i'll wait.
    03-12-09 04:57 AM
  15. tcolar's Avatar
    Ok, made a new version 0.2j, it should be a bit easier:
    The main change is that you can now run it with the libusb package (no need to compile it, see the updated bbtether page) and you should not get the error anymore.

    You still have to compile pyusb however but this is small and hopefully should be no problem
    I'm trying to create a universal binary for pyusb so no compilation is needed, but it's proving tricky.

    Let me know how that goes.
    03-15-09 12:08 AM
  16. Zenitsu's Avatar
    somewhat confused since I'm rogers. do i input:

    sudo python bbtether.py rogers

    cos that doesn't work, says no good Data Endpoint
    03-15-09 03:07 PM
  17. tcolar's Avatar
    please send me output of "sudo python bbtether.py rogers -v".
    tcolar At colar dot NET
    03-15-09 03:16 PM
  18. tcolar's Avatar
    I just released a binary for pyusb (universal binary), so no compilation should be required anymore.
    Note: that it's my first time to make a universal binary, so let me know if it does not work.
    03-15-09 03:25 PM
  19. Zenitsu's Avatar
    the pyusb package installed fine for me

    i just emailed you the log
    03-15-09 03:38 PM
  20. xxfire's Avatar
    How can I get to try this?
    New MacBook Pro 17in.
    Storm on Verizon.
    03-15-09 04:49 PM
  21. ecr959's Avatar
    Hello Tcolar

    My name is Eddie. I use Ubuntu for about 2 yrs, now. I just got my BB Curve 8330 3 weeks ago. Became a member here about the same time. After yrs of using Palm pdas and phones, now I'm gonna be a BB user.

    I haven't gone to your wiki yet, I can only get online when I'm in Starbucks, but I will tell you my progress, and I am already susbscribed to this thread.

    From Puerto Rico
    03-16-09 06:50 AM
  22. khanam's Avatar
    This is what i get. I installed python 2.5, libusb, pyusb, wxpython, bbtether and am on at&t.

    This is what i get:
    ************************************************** *******
    Last login: Mon Mar 30 20:03:40 on console
    amir-khans-macbook:~ khanam$ cd bbtether
    amir-khans-macbook:bbtether khanam$ ./berry4all.sh
    Reading prefs from /Users/khanam/library/Preferences/bbtether.conf
    pppconf:att
    Will run bbtether with args: ['att']
    Starting Modem thread
    --------------------------------
    BBTether 0.3d
    Thibaut Colar - 2009
    Use '-h' flag for more informations : 'python bbtether.py -h'.
    --------------------------------


    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    This might will only work as root!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Need to run as root(sudo) to install /etc/ppp/pap-secrets (just once)
    ************************************************** ********

    Am i missing any step? How do i do the last step?

    Any help is greatly appreciated. Thanks
    03-30-09 08:17 PM
  23. khanam's Avatar
    Ok. Now I am at this stage:
    *********************************************
    Will run bbtether with args: ['att']
    Starting Modem thread
    --------------------------------
    BBTether 0.3d
    Thibaut Colar - 2009
    More infos: xxxxxxxxxxxxxxxxxxxx
    Use '-h' flag for more informations : 'python bbtether.py -h'.
    --------------------------------


    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    This might will only work as root!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Looking for USB devices:
    Bus 001 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 002 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 003 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 003 Device 002-05ac-8242-00-00: ID 05ac:8242
    Bus 003 Device 003-05ac-0229-00-00: ID 05ac:0229
    Bus 004 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 005 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 006 Device 001-05ac-8006-09-00: ID 05ac:8006
    Bus 006 Device 002-05ac-1292-00-00: ID 05ac:1292
    Bus 006 Device 003-05ac-8501-ff-ff: ID 05ac:8501
    Bus 007 Device 001-05ac-8006-09-00: ID 05ac:8006
    Bus 007 Device 002-0fca-8004-00-00: ID 0fca:8004
    USB Device lookup finished

    Found RIM device (8120)
    Manufacturer:Research In Motion
    Product:RIM Composite Device
    Device:002-0fca-8004-00-00
    VendorId: 0fca
    ProductId: 8004
    Version:02.01
    Class:0 0
    Protocol:0
    Max packet size:64
    Self Powered:0
    Max Power:232

    *Interface:0
    Failed to claim interface: usb_claim_interface: couldn't claim interface
    Must be in use.
    Interface class:255/1
    Interface protocol:255
    EndPoint Pair:0x83L/0x5L
    Not Data Pair (Read failed)
    EndPoint Pair:0x87L/0x9L
    Not Data Pair (Read failed)
    EndPoint Pair:0x8aL/0xbL
    Not Data Pair (Read failed)
    03-31-09 01:49 PM
  24. khanam's Avatar
    ok. realized that pocketmac was causing issues so uninstalled it. now it starts but this is what happens now:

    #############################################

    amir-khans-macbook:bbtether khanam$ ./berry4all.sh
    Reading prefs from /Users/khanam/library/Preferences/bbtether.conf
    Will run bbtether with args: ['att']
    Starting Modem thread
    --------------------------------
    BBTether 0.3d
    Thibaut Colar - 2009
    More infos: h**p://wiki.colar.ne*/bbtether
    Use '-h' flag for more informations : 'python bbtether.py -h'.
    --------------------------------


    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    This might will only work as root!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Looking for USB devices:
    Bus 001 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 002 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 003 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 003 Device 002-05ac-8242-00-00: ID 05ac:8242
    Bus 003 Device 003-05ac-0229-00-00: ID 05ac:0229
    Bus 004 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 005 Device 001-05ac-8005-09-00: ID 05ac:8005
    Bus 006 Device 001-05ac-8006-09-00: ID 05ac:8006
    Bus 006 Device 002-05ac-1292-00-00: ID 05ac:1292
    Bus 006 Device 003-05ac-8501-ff-ff: ID 05ac:8501
    Bus 007 Device 001-05ac-8006-09-00: ID 05ac:8006
    Bus 007 Device 002-0fca-8004-00-00: ID 0fca:8004
    USB Device lookup finished
    Using saved EP data: 0, 135, 9, 138, 11

    Using Data Endpoint Pair:0x87/0x9
    Using Modem pair: 0x8a/0xb

    Claiming interface 0
    Pin: 0x20d65a4c
    Description: RIM BlackBerry Device
    System: Darwin,9.6.0,Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386,i386

    Modem pty: /dev/ttys001
    Initializing Modem
    No password requested.
    session pack sent
    Starting Modem thread
    Modem Started
    Will try to start pppd now, (/usr/sbin/pppd) with config: att
    /usr/sbin/pppd: Can't open options file /etc/ppp/options: No such file or directory
    ********************************************
    Modem Ready at /dev/ttys001
    Use ^C to terminate
    ********************************************
    Failed finding end of line(timeout) for:
    Error: [Errno 35] Resource temporarily unavailable
    ************************************************** ****

    Shutting down
    Please WAIT for shutdown to complete (up to 30s)
    Otherwise you might have to reboot your BB !
    ************************************************** ****
    Waiting for PPPD shutdown to complete.
    PPPD finished
    Stopping modem thread
    Modem thread Stopped
    Disconnected
    Modem Disconnected
    It is now safe to shutdown.
    Releasing interface
    bbtether completed.
    BBTether Thread completed.

    #############################################

    And these python warning windows pop up:

    1. Warning!
    Failed finding end of line(timeout) for:

    2. Warning!
    Modem Disconnected
    It is now safe to shutdown.
    03-31-09 04:35 PM
  25. tech_head's Avatar
    Hi,

    I'm on Verizon and I'll give it a try.
    I have the tools installed to compile and run.
    04-02-09 07:47 PM
40 12
LINK TO POST COPIED TO CLIPBOARD