Changeset 338
- Timestamp:
- 03/27/12 07:35:11 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Puzzlebox/Synapse/Emotiv/Protocol.py
r337 r338 4 4 5 5 __changelog__ = """\ 6 Last Update: 2012.03.2 46 Last Update: 2012.03.26 7 7 """ 8 8 … … 46 46 47 47 UserID = 0 48 49 EMOTIV_SOURCE_HOST = '127.0.0.1' 50 EMOTIV_SOURCE_PORT_CONTROL_PANEL = 3008 51 EMOTIV_SOURCE_PORT_EMOCOMPOSER = 1726 48 52 49 53 DEFAULT_CHOICE = 'a' # EmoComposer … … 91 95 # Connect 92 96 if self.choice == "a": 93 if self.EmotivEngine.EE_EngineRemoteConnect( "127.0.0.1", 1726) != PyEpoc.PyEpoc.ERRCODE['EDK_OK']:97 if self.EmotivEngine.EE_EngineRemoteConnect(EMOTIV_SOURCE_HOST, EMOTIV_SOURCE_PORT_EMOCOMPOSER) != PyEpoc.PyEpoc.ERRCODE['EDK_OK']: 94 98 if self.DEBUG: 95 99 print "Could not connect!" … … 100 104 101 105 elif self.choice == "b": 102 if self.EmotivEngine.EE_EngineConnect() != PyEpoc.PyEpoc.ERRCODE['EDK_OK']: 106 # if self.EmotivEngine.EE_EngineConnect() != PyEpoc.PyEpoc.ERRCODE['EDK_OK']: 107 if self.EmotivEngine.EE_EngineRemoteConnect(EMOTIV_SOURCE_HOST, EMOTIV_SOURCE_PORT_CONTROL_PANEL) != PyEpoc.PyEpoc.ERRCODE['EDK_OK']: 103 108 if self.DEBUG: 104 109 print "Could not connect!" … … 109 114 110 115 if self.DEBUG: 111 print " ""Engine Event handle at: %s""" %(self.engineeventhandle)112 print " ""Emo State handle at: %s""" % (self.statehandle)116 print "Engine Event handle at: %s" % (self.engineeventhandle) 117 print "Emo State handle at: %s" % (self.statehandle) 113 118 114 119
Note: See TracChangeset
for help on using the changeset viewer.