Results 1 to 15 of 20

Thread: Bluetooth proximity monitor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    For example:
    Code:
    sqlite3 btlog.db 'insert into devices (mac, name, enabled) values ("11:22:33:44:55:66", "MyDeviceName", 1)'
    Of course, database file btlog.db must already exist (the command for DB initialisation is in my first post).

  2. #2
    New version:
    • additionally to multiple probing ('treshold' times) of device before considering it as away, there is another (i think better) function - OUT events are written after 'writedelay' successive unsuccessful probes, but with time of first unsuccessful probe. Status is updated immediately
    • Reduced disk writes by storing absolute time when a device became unavailable instead of counting cycles of being away.


    I have also added a simple script for sending OBEX notes to mobile phones (tested on several Nokias). It is used in example of script run on IN event to send welcome message to the incoming phone.
    Attached Files Attached Files
    Last edited by taylor729; 10-11-2009 at 18:05.

  3. #3
    ./S99local: line 30: syntax error: "(" unexpected (expecting "fi")

    in btproximity_0.3

    nice sh /opt/btproximity/blueproximity.sh" >/dev/null 2>&1 &
    I think must be
    nice sh /opt/btproximity/blueproximity.sh >/dev/null 2>&1 &
    Last edited by derrij; 10-11-2009 at 15:14.
    WL500gP v2 + USB WD 160Gb + HTC Shift USB Extension kit + QuickCam Pro 4000 + LOGITECH S-150 DIGITAL USB SPEAKERS + Mini Bluetooth Dongle
    installed: rtorrent, ados, samba3, lighttpd, palantir ,cron, rrd, mpd, mcabber

  4. #4
    Sorry, I'm using slightly different version of S99local init script and I forgot to remove one quote, when creating package for this forum. File in attachment in the post above is now correct.

  5. #5
    Quote Originally Posted by derrij View Post
    nice sh /opt/btproximity/blueproximity.sh" >/dev/null 2>&1 &
    I think must be
    nice sh /opt/btproximity/blueproximity.sh >/dev/null 2>&1 &
    Yes, you're right.
    Sorry

  6. #6
    Thanks for the script.Works fine.

    P.S. In btproximity_0.3.tgz attachment btlog.php incorrect path in $dbname.
    Last edited by derrij; 10-11-2009 at 17:56.
    WL500gP v2 + USB WD 160Gb + HTC Shift USB Extension kit + QuickCam Pro 4000 + LOGITECH S-150 DIGITAL USB SPEAKERS + Mini Bluetooth Dongle
    installed: rtorrent, ados, samba3, lighttpd, palantir ,cron, rrd, mpd, mcabber

  7. #7
    Quote Originally Posted by derrij View Post
    Thanks for the script.Works fine.

    P.S. In btproximity_0.3.tgz attachment btlog.php incorrect path in $dbname.
    Thanks for notice - also forgotten to change this from environment that I'm running the script in. Corrected in the attachement above.

    I hope you find my work useful.

    Pavel

Similar Threads

  1. Bluetooth в wl500gP
    By TIk in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 410
    Last Post: 22-02-2011, 23:14
  2. vnstat - Network traffic monitor with log
    By WLAN-Fan in forum German Discussion - Deutsch (DE)
    Replies: 4
    Last Post: 22-09-2008, 12:53
  3. [HOW TO] Bluetooth in wl500g
    By TIk in forum WL-500g/WL-500gx Tutorials
    Replies: 1
    Last Post: 17-09-2008, 21:38

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
  •