You Are Here:

Community: Developer Discussion Boards

#1 Old Question i want to get and print self bluetooth address through program? - 2008-08-25, 14:52

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
hi all,

how can i get self bluetooth address?using python command .
the bluetooth address of mobile on which i m working.
(not oter.)
Reply With Quote

#2 Old Re: i want to get and print self bluetooth address through program? - 2008-08-25, 15:59

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
hi all,

how can i get self bluetooth address?using python command .
the bluetooth address of mobile on which i m working.
(not oter.)
hi sagars
i think its not yet possible using PyS60. As i searched a lot on this already earlier but didnt found anything . But i am not so sure about this fact may somebody know more about this.

Enjoy Pythoning
gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: i want to get and print self bluetooth address through program? - 2008-08-25, 16:20

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
hi all,

how can i get self bluetooth address?using python command .
the bluetooth address of mobile on which i m working.
(not oter.)
Hi Sagar,

Yes, It is possible with PyS60

You need to use lookup_name function of PyBluez 0.7 - Bluetooth extensions for Python .

Code:
lookup_name(address, timeout=10)
Where address must be the name of your device.
(You can get this name in Bluetooth settings, If not changed then it is the name of the phone by default.
For eg. Nokia 6680)

Best Regards,
Croozeus
Reply With Quote

#4 Old Re: i want to get and print self bluetooth address through program? - 2008-08-25, 21:14

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
If you don't want to use the PyBluez then you can use Miso Library :

Following is the code for the same :

Code:
import miso

try:
  miso.local_bt_name() # address here
except:
  print "None"
Hope that helps,

Best regards,
Croozeus
Reply With Quote

#5 Old Re: i want to get and print self bluetooth address through program? - 2008-08-26, 06:20

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
nice croozeus,
MISO has been worked for me...
great...
once again thanks for your prompt help..
Reply With Quote

#6 Old Re: i want to get and print self bluetooth address through program? - 2009-03-01, 23:48

Join Date: Nov 2008
Posts: 12
eng_akyq
Offline
Registered User
Please guys I need your help
I want to do this and print it in the Hyper Terminal.
Whatever I write in my mobile as a client, it shows in the Hyper Terminal screen as a server accompanied with the mobile address.
Thank you in advance
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia