You Are Here:

Community: Developer Discussion Boards

#1 Old Question GPRS/WiFi Commincation - 2009-06-23, 14:08

Join Date: Jun 2009
Posts: 11
mt.jijo
Offline
Registered User
Dear All,
I have an application on my mobile (PyS60) which should send data (could be a .txt file) to the server PC using GPRS/WiFi. Can somebody help me with some code for both GPRS and WiFi

Thanks in advance
Cyan
Reply With Quote

#2 Old Re: GPRS/WiFi Commincation - 2009-06-23, 14:50

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by mt.jijo View Post
Dear All,
I have an application on my mobile (PyS60) which should send data (could be a .txt file) to the server PC using GPRS/WiFi. Can somebody help me with some code for both GPRS and WiFi

Thanks in advance
Cyan
hello Cyan

i think this wiki article will help you if i got you properly.

Regards
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: GPRS/WiFi Commincation - 2009-06-23, 19:17

Join Date: Nov 2007
Posts: 318
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Online
Forum Nokia Champion
Cyan,

I am writing several posts related to networking programming. Please, take a look:

http://wiki.forum.nokia.com/index.ph...us.com.2Fblogs


Marcelo Barros
Nokia E71, N800, N95 and XM 5800
http://www.croozeus.com
http://wordmobi.wordpress.com
http://jedizone.wordpress.com
Reply With Quote

#4 Old Re: GPRS/WiFi Commincation - 2009-06-25, 08:58

Join Date: Jun 2009
Posts: 11
mt.jijo
Offline
Registered User
can somebody help me with the code for client side (pys60) and server side (.net/php/asp)

now i am trying this:

import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "connecting"
sock.connect(("122.166.13.178", 9090))
print "open ok"
out = sock.makefile("rw", 0)
print >> out, "Hi! I’m the TCP client"
out.close()
print "Client ok"

but i am getting an error - connection timed out.
server address and port number is valid :-)

thanks in advance
Cyan
Last edited by mt.jijo : 2009-06-25 at 09:24.
Reply With Quote

#5 Old Re: GPRS/WiFi Commincation - 2009-06-25, 14:18

Join Date: Nov 2007
Posts: 318
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Online
Forum Nokia Champion
Quote:
Originally Posted by mt.jijo View Post

but i am getting an error - connection timed out.
server address and port number is valid :-)

thanks in advance
Cyan
The message is clear: timeout. Try to:

0) double check addresses
1) pre select the access point
2) if you have enough rights/permissions, check if you can see related frames in your network using some sniffer.
3 check firewalls on your server machine
4) check firewalls on your wifi router
5) show (if you can) the server code


Marcelo Barros
Nokia E71, N800, N95 and XM 5800
http://www.croozeus.com
http://wordmobi.wordpress.com
http://jedizone.wordpress.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Forum Jump

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