You Are Here:

Community: Developer Discussion Boards

#1 Old Wheelchair Control via N95 - 2008-04-01, 07:12

Join Date: Nov 2007
Posts: 6
tarek_taha
Offline
Registered User
Hi guys,

I am a researcher working on some assistive devices for severely disabled people. Currently i have an autonomous wheelchair that drives itself and avoids obstacles, the user gives indication on where he is going, through discrete joystick inputs. I am planning to use the accelerometer capabilities in the N95 to replace the joyStick and make it even easier to control the wheelchair for users with tremors or shaky hands.
Here goes my question: I want to be able to connect to the N95 using the WLAN and transmit the accelerometer readings to a P.C that will process it and plans a path for navigation. I already found some cool libraries for reading the accelerometer but i couldn't get anything about how to connect and transmit data using Wifi. Can anyone please guide me on how to achieve this, a sample code would be of great help, i can learn very well through examples.

Thanks in advance for anyone that can help


=========================
Regards,
Tarek
=========================
Reply With Quote

#2 Old Re: Wheelchair Control via N95 - 2008-04-01, 09:49

Join Date: Mar 2003
Posts: 6,210
petrib
Offline
Forum Nokia Champion
TCP/IP sockets, or even higher-level protocols like HTTP.

See the Chat and Webclient examples in the SDK for starters.
Reply With Quote

#3 Old Re: Wheelchair Control via N95 - 2008-04-02, 01:16

Join Date: Nov 2007
Posts: 6
tarek_taha
Offline
Registered User
here what i ended up doing:

Server P.C:
Code:
import sys, socket
host='192.168.0.100'
port=1024

# create the server socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind( (host, port) )
s.listen(5) # start the server socket
print "waiting of the client to connect:"
(client, address) = s.accept()
print "accepted connection from %s:%d" % (address[0], address[1])
while True:
	data = client.recv(1024)
	if len(data) == 0:
		print "connection with %s closed." % address[0]
		break
	sys.stdout.write(data)
client.close()


Client N95:


Code:
import socket
import sys
import e32

import axyz

host='192.168.0.100'
port=1024

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "trying to connect to socket:"
s.connect( (host, int(port) ) )

#def sendData(x,y,z):
#  print "x: %i y: %i z: %i"%(x,y,z)

s.send('Test')
axyz.connect(sendData)
print "connected. Sending Accelerometer Data."

e32.ao_sleep(30)

print "closing connection with server"
c.close()
axyz.disconnect()
but for some reason it doesn't seem to work, i am using an Ad-Hoc connection with my laptop which has an i.p of 192.168.0.100, is there anything i am doing wrong ?


=========================
Regards,
Tarek
=========================
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
Workaround for browser control api problems on N95 8gb and N82 shrosenzwe Symbian Networking & Messaging 6 2009-05-29 13:46
why do I get panic EIKON-EDWIN 8 when trying to use an AVKON_INTEGER_EDWIN control? leisti Symbian User Interface 3 2009-02-28 14:57
Volume control keys & APS in N95 gs_cmans General Symbian C++ 2 2008-12-17 07:51
[announce] ShakerRacer : control a real RC Car with your N95 ! cyke64 Python 5 2008-01-31 10:58
N95 Some Questions & Suggestions subzero_brighton General Discussion 0 2007-06-22 16:37

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ