Join Today
+ Reply to Thread
Page 4 of 14 FirstFirst 12345678 ... LastLast
Results 31 to 40 of 132
Like Tree19Likes

Thread: Bluezx

  1. #31
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    436

    Default

    Ok bad news ezx-hciattach is not working with your phone model.
    We need to rewrite this command after stracing some binaries.
    Maybe there is also a chance to load a self compiled bt module and work with a standard hciattach. I will try this next.

    Can you report your phone model if it is A1200 e/i , E6 ? or what ever and which firmware you are running please.
    -------------------------------------
    In any apple is a worm. Through each window flies a bug.
    That's why I take Linux, because what does not fly can not crash.

  2. #32
    Join Date
    Jan 2010
    Location
    Russia
    Posts
    7

    Default

    My phone Motorola a1200 (without i,r,e). firmware ap:R541L7_G_11.00.16R bp:541_G_11.52.14R

  3. #33
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    436

    Default

    To write a new ezc-hciattach I need some strace information please.

    First if you do it over telnet and on some konsole application you need to set the path for libraries. You do it with:

    Code:
    . /home/native/.profile
    After this run the strace command. It is not included in every firmware so I suggest to download the advanced ekonsole. If you do it there you dont need to run the home native profile. Now we come to the command:

    Code:
    strace -v -o /mmc/mmca1/strace.txt -s 999 -fF -x /usr/SYSbt/mbtsrv
    The command will hang so after 3 seconds terminate it with ctrl+c.
    And please attach the strace.txt from your sdcard here.
    Thx.
    -------------------------------------
    In any apple is a worm. Through each window flies a bug.
    That's why I take Linux, because what does not fly can not crash.

  4. #34
    Join Date
    Jan 2010
    Location
    Russia
    Posts
    7

    Default My strace.txt

    My strace.txt in attachment.
    Attached Files Attached Files

  5. #35
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    436

    Default

    Your strace.txt looks not complete.
    It ends when the first child process should start. Did you interrupt the command?

    When I was interrupting the strace command after some seconds I get at the end of file the following:

    272 --- SIGINT (Interrupt) @ 0 (0) ---
    272 +++ killed by SIGINT +++
    and your file ends with:

    281 wait4(282,
    and should go on like this:

    281 wait4(282, <unfinished ...>
    282 getpid() = 282
    282 getrlimit(0x3, 0xbeffeaa0) = 0
    ...
    You can also try to strace: mbtsrv -s 1
    or : mbtsrv -n 1

    But on my phone it makes no differenz.


    One of the child process is mbtload. So with your strace.txt I cant see how it will be executed.
    So when you didnt get a full strace file try to strace this command:

    /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <mya1200btaddr> 1 0 -1
    -------------------------------------
    In any apple is a worm. Through each window flies a bug.
    That's why I take Linux, because what does not fly can not crash.

  6. #36
    Join Date
    Jan 2010
    Location
    Russia
    Posts
    7

    Default New strace.txt

    In attachment
    Attached Files Attached Files
    Last edited by khlystovav; 01-23-2010 at 06:34 AM.

  7. #37
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    436

    Default

    Now the strace.txt is good.

    It seems that the control characters from termios structure is different. I dont know so much about serial programming but when I am right changing the control characters should work for you.
    When I leave off work I will compile a new ezx-hciattach.
    -------------------------------------
    In any apple is a worm. Through each window flies a bug.
    That's why I take Linux, because what does not fly can not crash.

  8. #38
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    436

    Default

    Here is the new ezx-hciattach for L7 A1200e firmware. Please have a try I hope it works for you.
    Unpack an replace with /mmc/mmca1/local/sbin.
    Attached Files Attached Files
    -------------------------------------
    In any apple is a worm. Through each window flies a bug.
    That's why I take Linux, because what does not fly can not crash.

  9. #39
    Join Date
    Jan 2010
    Location
    Russia
    Posts
    7

    Default

    Nothing has changed.

    insmod /mmc/mmca1/local/lib/modules/bluez.o
    insmod /mmc/mmca1/local/lib/modules/hci_uart.o
    cd /mmc/mmca1/local/sbin
    ./bton
    ./ezx-hciattach
    ./hciconfig hci0 up
    Code:
    MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
    Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x
    
    
    MotoMing login: root
    
    
    MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
    
    root@MotoMing:~# insmod /mmc/mmca1/local/lib/modules/bluez.o
    insmod /mmc/mmca1/local/lib/modules/bluez.o
    insmod /mmc/mmca1/local/lib/modules/hci_uart.o
    cd /mmc/mmca1/local/sbin
    ./bton
    ./ezx-hciattach
    ./hciconfig hci0 uproot@MotoMing:~# insmod /mmc/mmca1/local/lib/modules/hci_uart
    .o
    root@MotoMing:~# cd /mmc/mmca1/local/sbin
    root@MotoMing:/mmc/mmca1/local/sbin# ./bton
    root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach
    root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 upinsmod /mmc/mmca1/local
    /lib/modules/bluez.o
    hci0:   Type: UART
            BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
            DOWN
            RX bytes:0 acl:0 sco:0 events:0 errors:0
            TX bytes:0 acl:0 sco:0 commands:0 errors:0
    
    root@MotoMing:/mmc/mmca1/local/sbin# insmod /mmc/mmca1/local/lib/modules/hci_ua
    rt.o
    insmod: a module named hci_uart already exists
    root@MotoMing:/mmc/mmca1/local/sbin# cd /mmc/mmca1/local/sbin
    root@MotoMing:/mmc/mmca1/local/sbin# ./bton
    root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach
    Can't set device: No such file or directory
    root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 up
    insmod /mmc/mmca1/local/lib/modules/bluez.o
    insmod /mmc/mmca1/local/lib/modules/hci_uart.o
    cd /mmc/mmca1/local/sbin
    ./bton
    /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <001CC141B153> 1 0 -1
    ./ezx-hciattach
    ./hciconfig hci0 up
    Code:
    MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
    Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x
    
    
    MotoMing login: root
    
    
    MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
    
    root@MotoMing:~# insmod /mmc/mmca1/local/lib/modules/bluez.o
    ton
    /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <001CC141B153> 1 0 -1
    ./ezx-hciattach
    ./hciconfig hci0 upinsmod /mmc/mmca1/local/libroot@MotoMing:~# insmod /mmc/mmca1
    /local/lib/modules/hci_uart.o
    /modules/bluez.o
    insmod /mmc/mmca1/local/lib/modules/hci_uart.o
    cd /mmc/mmca1/local/sbin
    ./bton
    /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <001CC141Broot@MotoMing:~# cd /mmc/mmca1
    /local/sbin
    root@MotoMing:/mmc/mmca1/local/sbin# ./bton
    root@MotoMing:/mmc/mmca1/local/sbin# /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <0
    01CC141B153> 1 0 -1
    -bash: 001CC141B153: No such file or directory
    root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach
    root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 upinsmod /mmc/mmca1/local
    /lib/modules/bluez.o
    hci0:   Type: UART
            BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
            DOWN
            RX bytes:0 acl:0 sco:0 events:0 errors:0
            TX bytes:0 acl:0 sco:0 commands:0 errors:0
    
    root@MotoMing:/mmc/mmca1/local/sbin# insmod /mmc/mmca1/local/lib/modules/hci_ua
    rt.o
    insmod: a module named hci_uart already exists
    root@MotoMing:/mmc/mmca1/local/sbin# cd /mmc/mmca1/local/sbin
    root@MotoMing:/mmc/mmca1/local/sbin# ./bton
    root@MotoMing:/mmc/mmca1/local/sbin# /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <0
    01CC141B153> 1 0 -1
    -bash: 001CC141B153: No such file or directory
    root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach
    Can't set device: No such file or directory
    root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 up

  10. #40
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    436

    Default

    Hmm that is realy sad maybe it is the bton not ezx-hciattach which makes problems.
    I will try to investigate more.
    -------------------------------------
    In any apple is a worm. Through each window flies a bug.
    That's why I take Linux, because what does not fly can not crash.


 
+ Reply to Thread
Page 4 of 14 FirstFirst 12345678 ... LastLast

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 Optimization by vBSEO 3.6.0 RC 1