Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 27th, 2012, 12:34 PM
supravat supravat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 1 supravat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 57 sec
Reputation Power: 0
Arrow Bluetooth programming using python

Hi,
I have created a RMCOMM port. In my program I am sending some data from device1 to device2 and receiving some data from device2 to device1.
But after sending data to device2 when device1 waits for data to arrive from device2 I am always getting the follwing problem.

File "C:\Python26\Lib\site-packages\bluetooth\msbt.py", line 41, in bind
status = bt.bind (self._sockfd, addr, port)
IOError: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Please help me

Reply With Quote
  #2  
Old August 29th, 2012, 01:02 PM
sbkwi sbkwi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Regensburg, Germany
Posts: 145 sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 2 h 37 m 14 sec
Reputation Power: 15
Without your code I can only guess what's wrong. From what I can detect from the error message you might be using the pybluez package. If so maybe the line
python Code:
Original - python Code
  1. status = bt.bind (self._sockfd, addr, port)
should better read
python Code:
Original - python Code
  1. status = bt.bind ((addr, port))
Try to understand the documentation for pyblues. Reading the examples for rfcomm server and client carefully may be helpful.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Bluetooth programming using python

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap