| Reply | « Previous Thread | Next Thread » |
|
Hello python gurus,
I do've an application which is opening a server connection on a sertain port to receive data (everything in a separat threat). As long as I run the app from the script shell everything works perfect. ![]() But after installing the app as an *.sis on N73 (or N95) the threat is not connecting to the server anymore, throwing an exception on "s.connect((sv_host, sv_port))". ![]() What is wrong here? Why is it only working when getting started from the script shell but not as stand allone??? Can someone give some help on this please? This is the relevant part of my code: Code:
def connection_thread():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.connect((sv_host, sv_port)) ##whats wrong here??
except socket.error, inst:
output = open(u"E\\Debug\\debug_thread.txt", "a")
output.write(u"; socket.error %s\n"%str(inst) )
output.close()
while thread_running: #receive data as long as the threat is running
rawdata_sv = s.recv(1024)
...bla bla bla
Thx for any help |
|
You need the NetworkServices capability to use network sockets. The Script Shell has that capability and that's why it works OK. See the --caps option in Ensymble README.
|
|
Quote:
Quote:
|
|
Hi,
i still have no luck. Here is what I tried: I do've an app which is using socket for bluetooth and a GPRS-connection. In the script shell it works perfect but not in a *.sis. After jethro.fn suggestion I 1. signed the ScriptShell online with all 13 capabilities (just to be safe) and installed it on the handset 2. used ensymble with: "ensymble.py py2sis myApp.py" (without UID or certificate) 3. signed my Aplication online with all 13 capabilities and installed it on the handset Result: But still, when I start my application and want to connect to my Bluetooth GPS it hangs. ![]() This can not be too dificult but I can't see my mistake. Could you please give a hand. (I'm trying for ours now) thx novis |
|
Quote:
Code:
ensymble.py py2sis --caps=Location+UserEnvironment+NetworkServices... myApp.py Hint: To enable all 13 capabilities, you can use --caps=0xff1b4. It's less typing than listing all 13 capabilities by name. |
|
Hello jethro.fn,
thx 4 ur help, (and stupid me)! Life can be so easy ![]() thx novis |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| S60 3rd ed. sample app not working on emulator | vishy_ch | General Symbian C++ | 8 | 2009-09-20 21:38 |
| Is PC Suite App necessary to get PC Connectivity SDK working? | bijugk | PC Suite API and PC Connectivity SDK | 2 | 2007-08-20 10:14 |
| symbian signed testing problem. | anglina | General Symbian C++ | 0 | 2007-02-01 11:15 |
| MS Smartphones have a WORKING EMail app! | McHale | General Discussion | 0 | 2003-12-16 20:16 |
| App. working in Emulator, but not in 7650 | monastyr | Mobile Java Tools & SDKs | 1 | 2003-11-07 11:22 |