agrimgrover / pybluez

Automatically exported from code.google.com/p/pybluez
GNU General Public License v2.0
0 stars 0 forks source link

Cannot advertise service #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run __init__.py (in my case it will run the msbt since im using winxp)
2. try to advertise a service with just using the RFCOMM and name
3. I am trying to advertise Handsfree profile serv_id-111e

What is the expected output? What do you see instead?
I should see the HFP device show up on my phones.

What version of the product are you using? On what operating system?
Pybluez 0.16

Please provide any additional information below.

I am getting the below error "AttributeError:'int' object has no attribute
'_raw_sdp_record'

Original issue reported on code.google.com by keyur8...@gmail.com on 16 Mar 2009 at 8:28

GoogleCodeExporter commented 8 years ago
Please provide the exact code that produces the problem, and the exact error 
message.

Original comment by ashu...@gmail.com on 17 Mar 2009 at 5:13

GoogleCodeExporter commented 8 years ago
I am running the exact code for rfcomm-server.py located in the wiki. It seems 
like
it is opening the socket but it is not in discoverable mode. Are you supposed to
disable ms bluetooth? if not making it discoverable through the windows 
bluetooth
obviously works but with the standard computer name and not the name that I 
assign
with Pybluez. Moreover if I do not make it discoverable with the windows 
bluetooth
software I cannot advertise a service using rfcomm. I dont get any errors, but 
simply
cant find the computer using my phone. Any help will be appreciated.

Original comment by keyur8...@gmail.com on 17 Mar 2009 at 8:28

GoogleCodeExporter commented 8 years ago
Don't run bluetooth/__init__.py directly.  If you're doing this because you saw 
it in
some documentation, let me know where so that I can correct the author.

There is a tutorial on how to use PyBluez, please use that and the examples
distributed with PyBluez to learn.  
http://people.csail.mit.edu/albert/bluez-intro/

Original comment by ashu...@gmail.com on 18 Mar 2009 at 4:14

GoogleCodeExporter commented 8 years ago

Original comment by ashu...@gmail.com on 18 Mar 2009 at 4:14

GoogleCodeExporter commented 8 years ago
Issue 16 has been merged into this issue.

Original comment by ashu...@gmail.com on 18 Mar 2009 at 4:14

GoogleCodeExporter commented 8 years ago
I am following your examples located int the pybluez package. Specifically 
example
rfcomm-server under the simple examples folder. The output i get in windows and
ubuntu is "waiting for connection on RFCOMM channel1 but it is not in 
discoverable
mode. I am not able to find it using any bluetooth devices. I have been reading 
your
book on google books and trying to follow your examples for the past 1.5 weeks 
but
yet unable to make my computer discoverable. Please let me know if you can 
help. 

Original comment by keyur8...@gmail.com on 18 Mar 2009 at 5:42

GoogleCodeExporter commented 8 years ago
PyBluez does not have an API for setting device discoverability.  This is 
something
you'd do manually with your operating system.  See the documentation for the
bluetooth stack you're using on how to do that.

Original comment by ashu...@gmail.com on 18 Mar 2009 at 5:54

GoogleCodeExporter commented 8 years ago
Thank you for your help, I really appreciate that. I im trying to find the
documentation now on toggling discovery mode from python using ms stack. Please 
let
me know if you have a handy source for that. Thanks again.

Original comment by keyur8...@gmail.com on 18 Mar 2009 at 11:25