You Are Here:

Community: Developer Discussion Boards

#1 Old what does python system error -50 mean? - 2007-02-19, 06:21

Join Date: Feb 2007
Posts: 3
romotrp
Offline
Registered User
i'm trying to read sensor data into the phone, but as soon as I start data transmission, I get:

python: (system error -50)

Here's the python script:


import socket
import appuifw
import e32


class BTReader:
def connect(self):
self.sock=socket.socket(socket.AF_BT,socket.SOCK_STREAM)
addr,services=socket.bt_discover()
print "Discovered: %s, %s"%(addr,services)
if len(services)>0:
import appuifw
choices=services.keys()
choices.sort()
choice=appuifw.popup_menu([unicode(services[x])+": "+x
for x in choices],u'Choose port:')
port=services[choices[choice]]
else:
port=services[services.keys()[0]]
address=(addr,port)
print "Connecting to "+str(address)+"...",
self.sock.connect(address)
print "OK."
def readline(self):
line=[]
while 1:
ch=self.sock.recv(1)

if(ch=='A'):
break

line.append(ch)

return ''.join(line)
def close(self):
self.sock.close()

bt=BTReader()
bt.connect()
while True:
print "Received: "+bt.readline()
#bt.close()
Reply With Quote

#2 Old Re: what does python system error -50 mean? - 2007-04-30, 16:42

Join Date: Oct 2006
Posts: 8
FilipeAguiar
Offline
Registered User
have you found out what does it mean?
i have the same problem...
best regards,

filipe
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help installing Python libraries on S60 ericroijen Python 11 2009-07-18 11:43
HELP !auto-reply sms system (using 8250 & VB6) dancingqueeneng PC Suite API and PC Connectivity SDK 4 2007-02-08 08:08
How to add system environment variable using python? xhsoldier Python 0 2006-09-12 11:07
App in Python like hiden system service :) dboyko Python 1 2006-06-29 21:29
System Help with nokia pc connectivity SDK gotka PC Suite API and PC Connectivity SDK 4 2004-07-06 10:56

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