| Reply | « Previous Thread | Next Thread » |
|
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() |
|
have you found out what does it mean?
i have the same problem... best regards, filipe |
| FilipeAguiar |
| View Public Profile |
| Find all posts by FilipeAguiar |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |