Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75941
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <elearn2014@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | UNSURE 0.229 |
| X-Spam-Level | ** |
| X-Spam-Evidence | '*H*': 0.55; '*S*': 0.01; '%s"': 0.09; 'matched': 0.09; 'true)': 0.09; 'url:blog': 0.10; 'addr': 0.16; 'name)': 0.16; 'win7': 0.16; 'wrote:': 0.18; 'first.': 0.19; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'performing': 0.26; 'url:edu': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'complete,': 0.31; "d'aprano": 0.31; 'discovery': 0.31; 'enabled': 0.31; 'hacker': 0.31; 'long.': 0.31; 'steven': 0.31; 'mac': 0.33; 'skip:b 30': 0.33; 'skip:d 20': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'belong': 0.36; 'module.': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'displays': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'phones': 0.60; 'radio': 0.60; 'devices': 0.61; 'range': 0.61; 'skip:* 10': 0.61; 'address': 0.63; 'name': 0.63; 'skip:n 10': 0.64; 'charset:windows-1252': 0.65; 'within': 0.65; 'url:htm': 0.73; 'discover': 0.82; 'discovered': 0.83; 'macbook': 0.84; 'nokia': 0.84; 'seated': 0.84; 'subject:system': 0.84; 'bluetooth': 0.91; 'phones,': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=gzVm1O9vMCj+3IO7e6bBULNxaJ6mvLnVIeRnYxZmoSs=; b=uh6xkwbLHQlgzrM/cPaDAyKyQ+qp4ReShhg4STPRtBqnySpqAQ+JF19wGnwI1wvK13 9vAPot9v8aKopI5Saw2Q838pLZcH/q5PCAT5ZQ3MmVC3nJTgTt44JLr+Cs9DOA3z4CPT 0XTNxqy+ydwiyG0w09A0Giumc9ZFdQ3QfGmvM9RUJH2We55pf58vjTfhZpeTrPRbsVhu kDV5Ev/Rm4lJW5ml/K9H/3oKZYoFNp0ctXJ6455QLZxVJuzD/J7cSVpF6ioHUX35Ct56 h/6Nzi5C2FsXkF9v0EA2CsT/i9p2A73tEZcGokiOxzWIdz/XPSTl6glmIiZ0OZYb4XiA 3tew== |
| X-Received | by 10.70.34.16 with SMTP id v16mr258804pdi.153.1407586054086; Sat, 09 Aug 2014 05:07:34 -0700 (PDT) |
| Date | Sat, 09 Aug 2014 20:07:23 -0700 |
| From | luofeiyu <elearn2014@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: attendance system in pybluez |
| References | <mailman.12789.1407584254.18130.python-list@python.org> <53e60ba8$0$29968$c3e8da3$5496439d@news.astraweb.com> |
| In-Reply-To | <53e60ba8$0$29968$c3e8da3$5496439d@news.astraweb.com> |
| Content-Type | multipart/alternative; boundary="------------000600080200070802040600" |
| X-Mailman-Approved-At | Sat, 09 Aug 2014 14:08:57 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12790.1407586138.18130.python-list@python.org> (permalink) |
| Lines | 157 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1407586138 news.xs4all.nl 2919 [2001:888:2000:d::a6]:49979 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75941 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
in the http://homepages.ius.edu/rwisman/C490/html/PythonandBluetooth.htm
*Discovery*
The address and name of enabled devices within range can be
discovered by other Bluetooth devices. Discovery can take some time
to complete, given that radio communications is unreliable. The
following displays address and name of all enabled devices nearby.
from bluetooth import *
print "performing inquiry..."
*nearby_devices = discover_devices(lookup_names = True)*
print "found %d devices" % len(nearby_devices)
for name, addr in nearby_devices:
print " %s - %s" % (addr, name)
performing inquiry...
found 2 devices
Ray's Nokia - 00:12:D2:5A:BD:E4
Ray's MacBook - 00:1E:C2:93:DA:6F
On 8/9/2014 4:53 AM, Steven D'Aprano wrote:
> luofeiyu wrote:
>
>> I want to write a program to help my teacher to take attendence.
>>
>> There are 300 students in a big room,everyone has android phone.
> If your students allow strange devices to connect to their android phones,
> then they won't remain their android phones for very long. They will belong
> to whatever hacker takes control of them first.
>
> http://blog.kaspersky.com/bluetooth-security/
>
>
>> I have matched them with my pc in win7 .
>> when all of them seated on the classroom,
>>
>> import bluetooth
>> nearby_devices = bluetooth.discover_devices(lookup_names = True)
>> print("found %d devices" % len(nearby_devices))
>>
>>
>> The function can discover all of them ? 300 bluetooth mac address?
> You will have to ask the author of the bluetooth module. Where did you find
> it? Does it come with documentation? Did you read it?
>
>
>
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
attendance system in pybluez luofeiyu <elearn2014@gmail.com> - 2014-08-09 14:01 -0700
Re: attendance system in pybluez Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-09 21:53 +1000
Re: attendance system in pybluez luofeiyu <elearn2014@gmail.com> - 2014-08-09 20:07 -0700
Re: attendance system in pybluez Michael Torrie <torriem@gmail.com> - 2014-08-11 08:02 -0600
csiph-web