maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Request] N900 Bluetooth Identifier (https://talk.maemo.org/showthread.php?t=41669)

stobbsc 2010-01-21 10:37

[Request] N900 Bluetooth Identifier
 
Hi All,

There is thread over here which has been talking about who has seen fellow N900 users in teh wild.

http://talk.maemo.org/showthread.php...highlight=wild

So we thought it would be cool if someone could create an app that allows us to know if one of the bluetooth devices in the area are an N900.
I'm pretty sure that the bluetooth stack sends manufacture details and some other information other than just he device name.
If this is possible then we could have the following feautres.

When the app is on it could search say every 5 minutes for BT devices if it picks up on an N900 then you coudl get a notification.

I know this might kill battery but it could be cool :-0

so gurus is this possible?

Thanks
Chris

locusf 2010-01-21 10:58

Re: [Request] N900 Bluetooth Identifier
 
Yeah this could be done if the LAP part of the MAC address of the bluetooth address identifies the N900 device. though the LAP part usually marks the manufacturer, I guess :)

stobbsc 2010-01-21 11:05

Re: [Request] N900 Bluetooth Identifier
 
cool I'll do some research into my BT mac and see what it contains

stobbsc 2010-01-21 11:18

Re: [Request] N900 Bluetooth Identifier
 
Cool,

I think we are on a new Broadcom chipset.

could a few of you with N900's confirm the LAN part of your BT Mac address is this:

34:7E:39:XX:XX:X

Thanks
Chris

Naughty 2010-01-21 11:39

Re: [Request] N900 Bluetooth Identifier
 
wlan mac: C0:38:F9...
Bluetooth mac: C0:38:F9...

you can find it under settings -> about device

noobmonkey 2010-01-21 11:44

Re: [Request] N900 Bluetooth Identifier
 
Quote:

Originally Posted by Naughty (Post 486397)
wlan mac: C0:38:F9...
Bluetooth mac: C0:38:F9...

you can find it under settings -> about device

WLAN : C0:38:F9...
Bluetooth : C0:38:F9...

stobbsc 2010-01-21 12:05

Re: [Request] N900 Bluetooth Identifier
 
HEre is the full list of all codes

http://standards.ieee.org/cgi-bin/ou...0Danmark%20A/S

But this doesn't narrow down the N900 :-(

now I'm stuck he he he

stobbsc 2010-01-21 12:22

Re: [Request] N900 Bluetooth Identifier
 
cool, I hope this applies across the board.

Does the 4th part of your guys mac's read 5B ?

VDVsx 2010-01-21 15:21

Re: [Request] N900 Bluetooth Identifier
 
We probably can't find a pattern here, manufactures use the same LAP across different devices, but if we find out that the N900 only use 2 or 3 different LAPs and no other Nokia model use the same LAPs(doubt that), this project can be easily done.

Mine is: 00-25-D0

stobbsc 2010-01-21 16:48

Re: [Request] N900 Bluetooth Identifier
 
Thanks @VDVsx

I've been trying all day to get as many N900 mac LAPS as possible.
I'll keep at this for a week or so and then come back and see if we can get something written up :-)

Thanks Again
Chris

Alan_Peery 2010-01-21 16:50

Re: [Request] N900 Bluetooth Identifier
 
Mine is 00:BD:3A.

I am thinking about both sound annunciators, and notifiers like you get when an SMS comes in.

Thinking about this in a way that may possibly be doing violence to the Bluetooth spec, imagine that the N900 announces that is supports the "Maemo_Kin_Finder" services in addition to A2DP. Or is the list of services supported only disclosed after a pairing is successful?

VDVsx 2010-01-21 17:24

Re: [Request] N900 Bluetooth Identifier
 
Quote:

Originally Posted by Alan_Peery (Post 486938)
Mine is 00:BD:3A.

I am thinking about both sound annunciators, and notifiers like you get when an SMS comes in.

Thinking about this in a way that may possibly be doing violence to the Bluetooth spec, imagine that the N900 announces that is supports the "Maemo_Kin_Finder" services in addition to A2DP. Or is the list of services supported only disclosed after a pairing is successful?

No, if the phone is on discover mode, you can ask the SDP records without pairing.
But your idea requires a installation of a app to advertise the new service.

Worth also check the BT MACs of other Nokia devices that you might have(only the first 6 digits), in order to see if is not equal to some posted here. Already checked in my 3 other Nokias and none is equal to the ones posted here so far.

stobbsc 2010-01-21 17:41

Re: [Request] N900 Bluetooth Identifier
 
Yeah I've check other devices as well and none of mine other than other N900's

I'll gather more N900 codes and then compare them against other devices.

I think we prob looking at around 5 different ones, and I have a feeling they will be different based on where the devices were made for. e.g UK, Spain, USA ect.

but that's a guess so let's see what happens

blackbird 2010-01-21 17:58

Re: [Request] N900 Bluetooth Identifier
 
My BT address starts with EC:9B:5B

Bingley Joe 2010-01-21 19:31

Re: [Request] N900 Bluetooth Identifier
 
00:BD:3A here

tomchiverton 2010-01-22 09:17

Re: [Request] N900 Bluetooth Identifier
 
00:bd:3a is too short a message. Stupid forum.

stobbsc 2010-01-22 09:19

Re: [Request] N900 Bluetooth Identifier
 
thanks for the helps guys, if you know any other N900 uses please get them to post, looks like we have 3 different codes so far.

tnhh 2010-01-22 09:24

Re: [Request] N900 Bluetooth Identifier
 
EC:9B:5B as well

MPW 2010-01-22 11:36

Re: [Request] N900 Bluetooth Identifier
 
EC-9B-5B here in Germany.

in how many different manufactures does nokia produce the n900?

Would definitiv be a funny ap. But as the battery is poor, I've got BT disabled all the time. And your program works only when the bt is set to visible.

I think this is a waste of time, just gave my mac to support you anyway.

Bye
MPW

Jamieaawroe 2010-01-22 11:46

Re: [Request] N900 Bluetooth Identifier
 
Looks quite cool, mine is 00:BD:3A and i'm in england, uk

stobbsc 2010-01-22 17:23

Re: [Request] N900 Bluetooth Identifier
 
Quote:

Originally Posted by MPW (Post 488450)
EC-9B-5B here in Germany.

in how many different manufactures does nokia produce the n900?

Would definitiv be a funny ap. But as the battery is poor, I've got BT disabled all the time. And your program works only when the bt is set to visible.

I think this is a waste of time, just gave my mac to support you anyway.

Bye
MPW

The app is definitely only for fun. I agree having BT on all the time is not good. I imagine this app just been used for fun, so it would only do device checks when you turn the BT on or when you open the app. It wouldn't do this all the time(cause your battery would die)

So I imagine it being used if you get on the train just to check for fun, or at a conference or a shopping mall, or pub.

It's just for a fun to be honest, and trying to illustrated another great example of how a normal Maemo user can think of something and then with the help of the community an Application is born :-)

b666m 2010-01-22 17:27

Re: [Request] N900 Bluetooth Identifier
 
c0:38:f9 germany ^^

peyo 2010-01-22 20:08

Re: [Request] N900 Bluetooth Identifier
 
hi
bt and wifi: 34:7e:39
I'm in France.

smarsh 2010-01-22 20:41

Re: [Request] N900 Bluetooth Identifier
 
00:bd:3a here. am in canada but it's a model from uk i think (bought via expansys)

originally, this idea sprang from thing like proximity applications
seen at some conferences (you are next to someone interested in the same things as you, etc.)

yes, for fun. but also a neat proof of concept. hoping it can move forward (thx!)

Alan_Peery 2010-01-26 20:29

Re: [Request] N900 Bluetooth Identifier
 
Quote:

Originally Posted by VDVsx (Post 486992)
No, if the phone is on discover mode, you can ask the SDP records without pairing.
But your idea requires a installation of a app to advertise the new service.

It's a good thing (for this idea at least) that the SDP records are visible.

I understand that it would require the installation of an app that would modify the SDP records. Having installed such an app (and enabled it as a contact method, ala the Skype profile) would indictate willingess to strike up a conversation with an otherwise unknown person.

Alan_Peery 2010-01-27 11:44

Re: [Request] N900 Bluetooth Identifier
 
Quote:

Originally Posted by stobbsc (Post 489031)
The app is definitely only for fun. I agree having BT on all the time is not good. I imagine this app just been used for fun, so it would only do device checks when you turn the BT on or when you open the app. It wouldn't do this all the time(cause your battery would die)

Bluetooth can listen for other people without consuming that much power. Since transmitting takes more power, the idea of this application might have to move from constant search to "search when I tap this button" or "search every 5 minutes". The curious phone would thus be consuming the power, the open to contact phone only bluetooth standby levels.

stobbsc 2010-01-28 09:34

Re: [Request] N900 Bluetooth Identifier
 
HI All,

These are all the various N900 mac LAPs I've collected so far and I guess we can use these for the app to start with and add more if we need too:
34:7E:39
C0:38:F9
00:25:D0
00:BD:3A
EC:9B:5B

I agree that the app shouldn't search all the time, but the you can do a manual search or that you can set it to search every 5-10 minutes or somthing. To be honest I'm happy with manual search to start out with.

now the big question. Who knows how to code for maemo?
I don't even though I am a coder, so would anyone be willing to help mok something up for us?

jlnh 2010-01-29 19:54

Re: [Request] N900 Bluetooth Identifier
 
00:BD:3A located: NL
here too - héy, (the majority). We can start an 00:BD:3A club now!

stobbsc 2010-01-31 18:38

Re: [Request] N900 Bluetooth Identifier
 
got the following reply from the Nokia Forums

Quote:

I'm not sure that checking the LAP code is going to work for trying to find N900. There is this list thelist (http://802.15ninja.net/bnapbnap/thelist.php) but it does not help much.

You could trying using SDP to check for the Bluetooth profile you want.
You could try this tool for checking the N900 SDP database.
ViewSDP (http://store.ovi.com/content/24022)
I'm not 100% sure what SDP is ?!?

stobbsc 2010-02-08 12:01

Re: [Request] N900 Bluetooth Identifier
 
so is anyone interested in helping to build this?

Lord Awesome 2010-02-08 14:01

Re: [Request] N900 Bluetooth Identifier
 
Just leave the bluetooth name set to Nokia N900. Or if you're feeling a little creative you could add N900 onto whatever it's currently set to.

stobbsc 2010-02-08 14:04

Re: [Request] N900 Bluetooth Identifier
 
that would be the easy way of doing things :)

robota 2010-02-09 12:29

Re: [Request] N900 Bluetooth Identifier
 
Quote:

Originally Posted by stobbsc (Post 516255)
that would be the easy way of doing things :)

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.

stobbsc 2010-02-09 12:31

Re: [Request] N900 Bluetooth Identifier
 
Well I was hoping the app could scan for the LAP codes I posted earlier, and if it finds a device with one then you get a message or something.

Also perhaps if someone tries to pair with you can they have one of those lap codes that you get told it's an N900 trying to connect, not sure if that is possible though

robbiem 2010-02-09 13:12

Re: [Request] N900 Bluetooth Identifier
 
I changed my bt name as soon as i got my n900, the LAP codes is a good idea. why not incorporate both, as in either. n900 in the name or the 00:BD:3A lap, which seems very common for n900.

stobbsc 2010-02-09 13:15

Re: [Request] N900 Bluetooth Identifier
 
Thats a good idea. I think I covered most if not all the lap codes earlier.

robota 2010-02-09 16:10

Re: [Request] N900 Bluetooth Identifier
 
Example to detect: 00:BD:3A and 00:BD:3B ... (expand with \| as address separator)

Code:

#!/bin/bash
a=`hcitool scan --class |\
awk '/BD Address/ {print substr($3,0,8)}' |\
grep '00:BD:3A\|00:BD:3B'`;
echo $a;
if [ "$a" ]
then
dbus-send --type=method_call \
--dest=org.freedesktop.Notifications \
/org/freedesktop/Notifications \
org.freedesktop.Notifications.SystemNoteDialog \
string:'Pizza! N900 here!' uint32:0 string:'OK'
fi;

Save code to: ~/n900finder.sh
Make executable: chmod 755 ~/n900finder.sh
and add a shortcut on your desktop or execute from xterminal (~/n900finder.sh).

It shows an alert (Pizza) if found, otherwise it does nothing.

You can schedule using cron or add a loop and a sleep to have it running in the background.

stobbsc 2010-02-09 16:25

Re: [Request] N900 Bluetooth Identifier
 
wow that seemed pretty straight forward.

I've never coded for Maemo beofre but jsut been reading up about MADDE:http://wiki.maemo.org/MADDE

So I guess I should try MADDE out and use/adapt your code to becoming an app ;-)

Thanks for the starting blocks :-)

robota 2010-02-09 16:29

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 device is discoverable.

Nicer would be to add a handful of python or perl to incorporate the name of the detected device in the alert ...

robota 2010-02-09 16:31

Re: [Request] N900 Bluetooth Identifier
 
Quote:

Originally Posted by stobbsc (Post 517907)
wow that seemed pretty straight forward.

I've never coded for Maemo beofre but jsut been reading up about MADDE:http://wiki.maemo.org/MADDE

So I guess I should try MADDE out and use/adapt your code to becoming an app ;-)

Thanks for the starting blocks :-)

That part is for you, never to late to code!


All times are GMT. The time now is 22:59.

vBulletin® Version 3.8.8