Join Today
+ Reply to Thread
Page 1 of 16 1234511 ... LastLast
Results 1 to 10 of 153
  1. #1

    Default BlueZ initialised

    Hi guys!! Inspired by rpconnect's efforts (http://www.pashkovsky.com/phpbb/viewtopic.php?t=21) I went to do a bit of strace'ing myself. The stuff going to ttyS1 seems to be standard HCI-UART protocol as described in the Bluetooth specs. So, what's holding us back from using BlueZ? I decided to investigate, and came up with this:

    http://cyph.ath.cx:8080/downloads/ezx-bluez.tar.bz2

    My sources are at:

    http://cyph.ath.cx:8080/downloads/ez...z-init.tar.bz2

    Enjoy!!

    README:


    ===============
    EZX BlueZ
    ===============

    SUMMARY

    BlueZ modified to work on E680(i). This is meant for those who wants to explore bluetooth further on their E680(i).

    Normal users are encouraged to use the nice graphical interfaces provided by Motorola

    PACKAGE CONTENTS

    - bluez-libs
    - bluez-utils
    - bluez-hcidump
    - bluez kernel modules (Motorola kernel patched with http://www.holtmann.org/linux/kernel...2.4.20-mh18.gz)
    - bton - talks to tapisrv to powerup bluetooth chip
    - ezx-hciattach - hciattach with just the right ioctls to talk to bluetooth chip

    USAGE

    1. Unpack
    2. Edit btinit.sh. Change xxxxxxxxxxxx into hex representation of your bluetooth address. (e.g. 00128a3e3f41)
    3. Copy bluez directory into /diska
    4. cd /diska/bluez
    5. . ./btpaths.sh
    6. ./btinit.sh (after this your bluetooth device should show up in hciconfig)
    7. Figure out something interesting you can do with it (and tell me)...


    NOTE

    - Default name right after init is "Broadcom BCM2035". Guess thats the chip's model.
    - The stupid BCM2035 will report its own address as 00:00:00:00:00:00. Same goes for the BCM2035 built into HP Pavilion notebooks apparently (http://www.linuxquestions.org/questions/history/341892)
    - I have never used bluetooth on linux before, so all I know is the hardware initilizes, I can do "hcitool scan", l2ping and thats about it. Up to you guys to go stretch its legs.


  2. Default Re: BlueZ initialised

    The good stuff just keeps coming... Thanks for all your excellent efforts cyph!

    Something useful that might be possible to do with this is to make sure the Motorola headset HT820 is automatically connected when detected. (Right now you need to enter the bluetooth app and chose 'connect' to get headset and remote control to work). Just a quick idea...
    User friendly installation of native applications: http://www.dewmill.com/linuxphone.html

  3. #3

    Default Re: BlueZ initialised

    @rhizod:
    Don't think thats possible right now... but who knows? Not too sure how the audio gets routed to Bluetooth (or A2DP Bluetooth device) right now.

    Hopefully with this you guys can make this more like a "normal" linux Bluetooth machine. Unfortunately, I don't have many Bluetooth devices to test with and I'm not familiar with userspace Bluetooth apps on linux. Guess I gotta spend a few more days RTFMing...

  4. #4
    Join Date
    Jun 2005
    Location
    Bangalore,India
    Posts
    93

    Default Re: BlueZ initialised

    Quote Originally Posted by cyph
    @rhizod
    Don't think thats possible right now... but who knows? Not too sure how the audio gets routed to Bluetooth (or A2DP Bluetooth device) right now.

    Hopefully with this you guys can make this more like a "normal" linux Bluetooth machine. Unfortunately, I don't have many Bluetooth devices to test with ( and I'm not familiar with userspace Bluetooth apps on linux. Guess I gotta spend a few more days RTFMing...
    Greetings Cyph,

    Happy to See this!!!

    Tried it and I get the following..Not able to understand wht to look for:

    Connected. Starting read/write
    Writing 08 bytes: 02 81 0c 00 00 00 00 00
    Writing 12 bytes: 38 01 00 00 00 00 ff ff 00 00 00 00
    Reading 08 bytes:
    Read : 02 81 04 00 00 00 00 00
    Expecting : 02 81 04 00 00 00 00 00
    (correct)
    Reading 04 bytes:
    Read : 00 00 00 00
    Expecting : 00 00 00 00
    (correct)
    Writing 08 bytes: 0c 86 00 00 00 00 00 00
    Reading 08 bytes:
    Read : 0c 86 04 00 00 00 00 00
    Expecting : 0c 86 04 00 00 00 00 00
    (correct)
    Reading 04 bytes:
    Read : 00 00 00 00
    Expecting : 00 00 00 00
    (correct)
    Writing 08 bytes: 0b 86 00 00 00 00 00 00
    Reading 08 bytes:
    Read : 0b 86 04 00 00 00 00 00
    Expecting : 0b 86 04 00 00 00 00 00
    (correct)
    Reading 04 bytes:
    Read : 00 00 00 00
    Expecting : 00 00 00 00
    (correct)
    Writing 08 bytes: 0d 86 00 00 00 00 00 00
    Reading 08 bytes:
    Read : 0d 86 0a 00 00 00 00 00
    Expecting : 0d 86 0a 00 00 00 00 00
    (correct)
    Reading 10 bytes:
    Read : 00 00 00 00 00 12 8a 51 a0 18
    Expecting : 00 00 00 00 00 12 8a 2d 3d 3e
    (wrong)


    My phone Bt address is 128a51a018

    Any suggetions

    Regs
    Ravindran
    ----------------------------------
    Linux Rocks!!

  5. #5

    Default Re: BlueZ initialised

    @cyph
    sweet mother of mercy, this rocks!!!

    as soon as I can find some time tomorrow I will give this a try, i cant wait to see the details. hopefully we can get PAN fired up and make a standard BT network to the phone rather than the ppp stuff (the ppp stuff is nice but i still can't get it to work over windows..) w/ a nice litte j2me app as an interface.

    now we can start to work with BT keyboards, e680-to-e680 BT chat application and GPS as well. Thanks again cyph!!!!!

  6. #6

    Default Re: BlueZ initialised

    @Ravindran:
    Seems like its alright. You should be able to see your device in hciconfig.

    Like I mentioned in the comments in bton.c, it is written by transforming strace output into a C program. No effort was made to reverse engineer the protocol. However, looking at your output, it seems that the bluetooth address is returned by tapisrv for ezx_bt to pass to dload! I never realised that that was the bluetooth address until your output showed me "(wrong)". I'll take that into consideration and perhaps make a more automated method configuring of the bluetooth address.

    @rpconnect:
    Yes that will be nice I've no bluetooth dongle here so not much I can explore with pand. Perhaps you can also figure out how to start hcid and sdpd with the right configs and place it in btinit.sh

  7. #7
    Join Date
    Aug 2005
    Location
    Pakistan
    Posts
    111

    Default Re: BlueZ initialised

    wooohooo I see a hidp.o

    So its time to go shopping for a BT keyboard. But first lets see if we are one step ahead with OPIE, i.e. BT working in it.

    Sound without headphone - DONE
    BT - DONE
    TAPI - PENDING
    SMS/MMS - PENDING
    GPRS - PENDING
    Remove EZX - PENDING (should be a simple modified rootfs)

    @cyph:
    do you have more details on the TAPI communication protocol?

  8. #8

    Default Re: BlueZ initialised

    @tazzix:
    Looks like we have more PENDING than DONE And some of the PENDING seems a bit out of reach right now.

    I don't have any info on the protocol. Like I mentioned, bton is made from strace output. I guess if someone stares at it long enoug, he can figure out what its all about...

  9. #9
    Join Date
    Feb 2005
    Location
    The Netherlands
    Cell: E680 flashed to E680i
    Posts
    1,368

    Default Re: BlueZ initialised

    Sound without headphone - DONE
    BT - DONE
    FM RADIO -DONE
    CAMERA - PENDING
    BUTTONS - ? (Anyone got them working?)
    TAPI - PENDING
    SMS/MMS - PENDING
    GPRS - PENDING
    Remove EZX - PENDING (should be a simple modified rootfs)
    You forgot the FM Radio, camera and buttons. Btw isnt it possible to start ezx apps in opie? If so it wouldnt be so difficult. We can also just strace the sms/mms and call aps and see how they interact with TAPI and soundserver.
    Yes, but does it run Linux?

  10. #10

    Default Re: BlueZ initialised

    I did not spent much time in this, but camera is apparently easy to deal with, it's almost video4linux with some "special" features, like night_mode setting...


 
+ Reply to Thread
Page 1 of 16 1234511 ... LastLast

Similar Threads

  1. BlueZ bluetooth connection to E6 fails
    By rubyinthedust in forum E6 General Chat
    Replies: 2
    Last Post: 11-08-2008, 05:53 PM
  2. usage bluez
    By qwewq in forum A780 General Chat
    Replies: 0
    Last Post: 12-12-2007, 08:52 PM
  3. E680i bluez working mod
    By mymoney in forum Development
    Replies: 1
    Last Post: 12-01-2006, 10:07 PM
  4. Bluez on A1200? (multi channel)
    By mymoney in forum Development
    Replies: 1
    Last Post: 11-25-2006, 05:21 AM
  5. Bluetooth Bluez(suse 9.0) and e680 and nokia 7650
    By ycyas in forum E680 General Chat
    Replies: 2
    Last Post: 07-12-2005, 07:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1