Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Showing results 1 to 9 of 9

    Search:

      • Forum: Applications 2010-02-10, 13:32
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        I made the script using vi on my nokia but if you are not used to this editor this is probably not what you would like to use ... also nokia didn't really fix the keyboard for shell scripting as it...
      • Forum: Applications 2010-02-10, 12:42
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        Add the path to the correct directory for the commands hcitool, awk, grep, echo and dbus-send like:

        /usr/bin/hcitool
      • Forum: Applications 2010-02-09, 19:41
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        OK, without modification it doesn't compain?

        Line #4 should read like:

        grep '00:BD:3A\|00:BD:3B'`;

        Notice the \| as a separator and the '`; (quote, backtick, semicolon) at the end of the...
      • Forum: Applications 2010-02-09, 18:15
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        the path to bash in the first line is prob. incorrect. just try placing sh in front like:

        sh ~/N900finder.sh

        and it should work.
      • Forum: Applications 2010-02-09, 16:45
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        Let me know if you got it to work - this is just a little Bash script to do the work, basically this is what it does:

        1. execute hcitool command to get a list of all devices
        2. use the awk to...
      • Forum: Applications 2010-02-09, 16:31
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        That part is for you, never to late to code!
      • Forum: Applications 2010-02-09, 16:29
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        To test execute:

        hcitool scan --class

        from your Xterminal on N900, copy a BT address (first 6 digits) and replace 00:BD:3A (line #4) with the LAP you copied. Now the alert should appear if that...
      • Forum: Applications 2010-02-09, 16:10
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        Example to detect: 00:BD:3A and 00:BD:3B ... (expand with \| as address separator)


        #!/bin/bash
        a=`hcitool scan --class |\
        awk '/BD Address/ {print substr($3,0,8)}' |\
        grep...
      • Forum: Applications 2010-02-09, 12:29
      • Replies: 52
        [Request] N900 Bluetooth Identifier
        Views: 9,390
        Posted By robota
        Re: [Request] N900 Bluetooth Identifier

        so the app should just scan for other devices with N900 in the name and if possible verify that the device name contains this string - I have BT always on.
vBulletin® Version 3.8.8
Normal Logout