Changeset 8794
- Timestamp:
- 02/25/09 22:01:08 (4 years ago)
- Location:
- ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk
- Files:
-
- 6 modified
- 4 moved
-
Makefile.am (modified) (1 diff)
-
OSSIETalk.prf.xml (moved) (moved from ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/rc2007_gui.prf.xml)
-
OSSIETalk.py (moved) (moved from ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/rc2007_gui.py) (7 diffs)
-
OSSIETalk.scd.xml (moved) (moved from ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/rc2007_gui.scd.xml) (1 diff)
-
OSSIETalk.spd.xml (moved) (moved from ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/rc2007_gui.spd.xml) (2 diffs)
-
WorkModules.py (modified) (10 diffs)
-
configure.ac (modified) (1 diff)
-
port_impl.py (modified) (4 diffs)
-
setup.py (modified) (1 diff)
-
wx_inits.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/Makefile.am
r5555 r8794 1 1 2 ossieName = rc2007_gui2 ossieName = OSSIETalk 3 3 4 4 xmldir = $(prefix)/xml/$(ossieName) 5 5 pydir = $(prefix)/bin/$(ossieName) 6 6 dist_xml_DATA = \ 7 rc2007_gui.prf.xml \8 rc2007_gui.scd.xml \9 rc2007_gui.spd.xml7 OSSIETalk.prf.xml \ 8 OSSIETalk.scd.xml \ 9 OSSIETalk.spd.xml 10 10 11 11 dist_py_DATA = \ 12 12 cvsd.py \ 13 13 port_impl.py \ 14 rc2007_gui.py \14 OSSIETalk.py \ 15 15 WorkModules.py \ 16 16 wx_inits.py -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/OSSIETalk.py
r8579 r8794 6 6 Copyright 2007 Virginia Polytechnic Institute and State University 7 7 8 This file is part of the OSSIE rc2007_gui.9 10 OSSIE rc2007_guiis free software; you can redistribute it and/or modify8 This file is part of the OSSIE OSSIETalk. 9 10 OSSIE OSSIETalk is free software; you can redistribute it and/or modify 11 11 it under the terms of the GNU General Public License as published by 12 12 the Free Software Foundation; either version 2 of the License, or 13 13 (at your option) any later version. 14 14 15 OSSIE rc2007_guiis distributed in the hope that it will be useful,15 OSSIE OSSIETalk is distributed in the hope that it will be useful, 16 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 19 19 20 20 You should have received a copy of the GNU General Public License 21 along with OSSIE rc2007_gui; if not, write to the Free Software21 along with OSSIE OSSIETalk; if not, write to the Free Software 22 22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 23 … … 41 41 42 42 #------------------------------------------------------------- 43 # rc2007_gui_i class definition (main component class)43 # OSSIETalk_i class definition (main component class) 44 44 #------------------------------------------------------------- 45 class rc2007_gui_i(CF__POA.Resource):45 class OSSIETalk_i(CF__POA.Resource): 46 46 def __init__(self, prnt_orb, uuid, label, poa): 47 47 CF._objref_Resource.__init__(self._this()) 48 print " rc2007_gui_i __init__: " + label48 print "OSSIETalk_i __init__: " + label 49 49 self.naming_service_name = label 50 50 self.poa = poa … … 91 91 92 92 def start(self): 93 print " rc2007_guistart called"93 print "OSSIETalk start called" 94 94 95 95 def stop(self): 96 print " rc2007_guistop called"96 print "OSSIETalk stop called" 97 97 98 98 def getPort(self, id): … … 109 109 110 110 def initialize(self): 111 print " rc2007_guiinitialize called"111 print "OSSIETalk initialize called" 112 112 113 113 def configure(self, props): … … 120 120 ''' 121 121 122 print " rc2007_guiconfigure called"122 print "OSSIETalk configure called" 123 123 124 124 if not self.prntAppReferenced: … … 189 189 190 190 # create the main component object 191 orb_ref. rc2007_gui_Obj = rc2007_gui_i(orb_ref, uuid, label, obj_poa)192 rc2007_gui_var = orb_ref.rc2007_gui_Obj._this()191 orb_ref.OSSIETalk_Obj = OSSIETalk_i(orb_ref, uuid, label, obj_poa) 192 OSSIETalk_var = orb_ref.OSSIETalk_Obj._this() 193 193 194 194 name = URI.stringToName(label) 195 rootContext.rebind(name, rc2007_gui_var)195 rootContext.rebind(name, OSSIETalk_var) 196 196 197 197 orb_ref.orb.run() -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/OSSIETalk.scd.xml
r5370 r8794 14 14 <supportsinterface repid="IDL:CF/TestableObject:1.0" supportsname="TestableObject"/> 15 15 <ports> 16 <provides providesname="from_CVSD" repid="IDL:standardInterfaces/realChar:1.0">17 <porttype type="data"/>18 </provides>19 16 <provides providesname="from_radio" repid="IDL:standardInterfaces/realChar:1.0"> 20 17 <porttype type="data"/> 21 18 </provides> 22 19 <uses repid="IDL:standardInterfaces/realChar:1.0" usesname="to_radio"> 23 <porttype type="data"/>24 </uses>25 <uses repid="IDL:standardInterfaces/realChar:1.0" usesname="to_CVSD">26 20 <porttype type="data"/> 27 21 </uses> -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/OSSIETalk.spd.xml
r6896 r8794 3 3 <!--Created with OSSIE WaveDev Beta Version 0.6.0b--> 4 4 <!--Powered by Python--> 5 <softpkg id="DCE: 92f16310-5309-11dc-99d1-00123f573a7f" name="rc2007_gui">5 <softpkg id="DCE:82f16310-5309-11dc-99d1-00123f573a7f" name="OSSIETalk"> 6 6 <title/> 7 7 <description>GUI for the 2007 radio challenge </description> … … 12 12 </author> 13 13 <propertyfile type="PRF"> 14 <localfile name="xml/ rc2007_gui/rc2007_gui.prf.xml"/>14 <localfile name="xml/OSSIETalk/OSSIETalk.prf.xml"/> 15 15 </propertyfile> 16 16 <descriptor> 17 <localfile name="xml/ rc2007_gui/rc2007_gui.scd.xml"/>17 <localfile name="xml/OSSIETalk/OSSIETalk.scd.xml"/> 18 18 </descriptor> 19 <implementation id="DCE: 92f2a4c8-5309-11dc-82ac-00123f573a7f">19 <implementation id="DCE:82f2a4c8-5309-11dc-82ac-00123f573a7f"> 20 20 <description>Description</description> 21 21 <code type="Executable"> 22 <localfile name="bin/ rc2007_gui/rc2007_gui.py"/>22 <localfile name="bin/OSSIETalk/OSSIETalk.py"/> 23 23 </code> 24 24 <processor name="x86"/> -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/WorkModules.py
r8787 r8794 5 5 Copyright 2007 Virginia Polytechnic Institute and State University 6 6 7 This file is part of the OSSIE rc2007_gui.8 9 OSSIE rc2007_guiis free software; you can redistribute it and/or modify7 This file is part of the OSSIE OSSIETalk. 8 9 OSSIE OSSIETalk is free software; you can redistribute it and/or modify 10 10 it under the terms of the GNU General Public License as published by 11 11 the Free Software Foundation; either version 2 of the License, or 12 12 (at your option) any later version. 13 13 14 OSSIE rc2007_guiis distributed in the hope that it will be useful,14 OSSIE OSSIETalk is distributed in the hope that it will be useful, 15 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 18 18 19 19 You should have received a copy of the GNU General Public License 20 along with OSSIE rc2007_gui; if not, write to the Free Software20 along with OSSIE OSSIETalk; if not, write to the Free Software 21 21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 … … 38 38 import copy 39 39 40 import cvsd # this is in my rc2007_gui package directory40 import cvsd # 41 41 42 42 import pprint … … 106 106 class txWorkClass: 107 107 108 def __init__(self, rc2007_gui_ref):108 def __init__(self, OSSIETalk_ref): 109 109 '''Initialization. Sets a reference to parent. 110 110 Initializes the buffer. Starts the Process data 111 111 thread, which waits for data to be added to the buffer''' 112 112 113 self. rc2007_gui_ref = rc2007_gui_ref113 self.OSSIETalk_ref = OSSIETalk_ref 114 114 115 115 # open the capture device and set properties … … 182 182 #HVself.text_metadata.app_id = 2 183 183 #HVself.text_metadata.packet_id += 1 184 #HVself. rc2007_gui_ref.to_radio_port_servant.send_data(184 #HVself.OSSIETalk_ref.to_radio_port_servant.send_data( 185 185 # text, 186 186 # copy.copy(self.text_metadata)) 187 self. rc2007_gui_ref.to_radio_port_servant.send_data(text)187 self.OSSIETalk_ref.to_radio_port_servant.send_data(text) 188 188 189 189 def Release(self): … … 207 207 # because I can't have this changing on me half- 208 208 # way through 209 current_talk_flag = self. rc2007_gui_ref.talk_flag209 current_talk_flag = self.OSSIETalk_ref.talk_flag 210 210 211 211 # forwarding voice data: … … 230 230 #HV self.audio_metadata.eom = False 231 231 232 if self. rc2007_gui_ref.to_radio_port_active:232 if self.OSSIETalk_ref.to_radio_port_active: 233 233 #print "audio length: " + str(len(data)) 234 self. rc2007_gui_ref.to_radio_port_servant.send_data(data)234 self.OSSIETalk_ref.to_radio_port_servant.send_data(data) 235 235 236 236 if current_talk_flag == False and previous_talk_flag == True: … … 253 253 #HV self.audio_metadata.eom = True 254 254 255 if self. rc2007_gui_ref.to_radio_port_active:255 if self.OSSIETalk_ref.to_radio_port_active: 256 256 #print "audio length: " + str(len(data)) 257 #HV self. rc2007_gui_ref.to_radio_port_servant.send_data(257 #HV self.OSSIETalk_ref.to_radio_port_servant.send_data( 258 258 #HV data, copy.copy(self.audio_metadata)) 259 self. rc2007_gui_ref.to_radio_port_servant.send_data(data)259 self.OSSIETalk_ref.to_radio_port_servant.send_data(data) 260 260 261 261 … … 271 271 class rxWorkClass: 272 272 273 def __init__(self, rc2007_gui_ref):273 def __init__(self, OSSIETalk_ref): 274 274 '''Initialization. Sets a reference to parent. 275 275 Initializes the buffer. Starts the Process data 276 276 thread, which waits for data to be added to the buffer''' 277 277 278 self. rc2007_gui_ref = rc2007_gui_ref278 self.OSSIETalk_ref = OSSIETalk_ref 279 279 280 280 # new method: … … 373 373 #elif metadata.app_id==2: 374 374 # # text data 375 # self. rc2007_gui_ref.prnt_app.frame.DisplayText(data)375 # self.OSSIETalk_ref.prnt_app.frame.DisplayText(data) 376 376 # 377 377 #else: 378 378 # unknown application identifier 379 #print "ERROR! rc2007_gui: unknown app_id: " + str(metadata.app_id)379 #print "ERROR! OSSIETalk: unknown app_id: " + str(metadata.app_id) 380 380 381 381 self.data_signal.clear() # done reading the buffer -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/configure.ac
r5555 r8794 1 AC_INIT( rc2007_gui, 0.7.0)1 AC_INIT(OSSIETalk, 0.7.0) 2 2 AM_INIT_AUTOMAKE 3 3 -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/port_impl.py
r8657 r8794 4 4 Copyright 2007 Virginia Polytechnic Institute and State University 5 5 6 This file is part of the OSSIE USRP_Commander_GUI.6 This file is part of the OSSIETalk. 7 7 8 OSSIE USRP_Commander_GUIis free software; you can redistribute it and/or modify8 OSSIE OSSIETalk is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by 10 10 the Free Software Foundation; either version 2 of the License, or 11 11 (at your option) any later version. 12 12 13 OSSIE USRP_Commander_GUIis distributed in the hope that it will be useful,13 OSSIE OSSIETalk is distributed in the hope that it will be useful, 14 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 17 17 18 18 You should have received a copy of the GNU General Public License 19 along with OSSIE USRP_Commander_GUI; if not, write to the Free Software19 along with OSSIETalk; if not, write to the Free Software 20 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 21 … … 30 30 31 31 #------------------------------------------------------------------ 32 # dataIn_realChar_ metadata_i class definition32 # dataIn_realChar_i class definition 33 33 #------------------------------------------------------------------ 34 34 # from radio … … 39 39 40 40 def pushPacket(self, data): 41 #print "WARNING! rc2007_gui::pushPacket() not supported without meta data"42 #self.parent.rx_work_mod.AddMetaData(data)43 41 self.parent.rx_work_mod.AddData(data) 44 45 46 #def pushPacket(self, data): 47 #print "rx packet " + str(metadata.packet_id) + \ 48 # ", len = " + str(len(data)) + \ 49 # " app: " + str(metadata.app_id) 50 #self.parent.rx_work_mod.AddMetaData(data) 42 51 43 52 44 53 45 54 46 #------------------------------------------------------------------ 55 # dataOut_realChar_ metadata_i class definition47 # dataOut_realChar_i class definition 56 48 #------------------------------------------------------------------ 57 49 # to radio -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/setup.py
r5427 r8794 11 11 sys.argv.append('--install-lib='+install_location) 12 12 13 setup(name=' rc2007_gui',14 description=' rc2007_gui',13 setup(name='OSSIETalk', 14 description='OSSIETalk', 15 15 data_files=[ 16 (install_location+'bin/ rc2007_gui',17 [' rc2007_gui.py',16 (install_location+'bin/OSSIETalk', 17 ['OSSIETalk.py', 18 18 'WorkModules.py', 19 19 'wx_inits.py', 20 20 'port_impl.py', 21 21 'cvsd.py']), 22 (install_location+'xml/ rc2007_gui',23 [' rc2007_gui.prf.xml',24 ' rc2007_gui.scd.xml',25 ' rc2007_gui.spd.xml'])22 (install_location+'xml/OSSIETalk', 23 ['OSSIETalk.prf.xml', 24 'OSSIETalk.scd.xml', 25 'OSSIETalk.spd.xml']) 26 26 ] 27 27 ) -
ossiedev/branches/hvolos/packetwfrm/components/OSSIETalk/wx_inits.py
r8683 r8794 118 118 119 119 def OnStartTalk(self,event): 120 self.orb_ref. rc2007_gui_Obj.talk_flag = True120 self.orb_ref.OSSIETalk_Obj.talk_flag = True 121 121 event.Skip() 122 122 123 123 124 124 def OnStopTalk(self,event): 125 self.orb_ref. rc2007_gui_Obj.talk_flag = False125 self.orb_ref.OSSIETalk_Obj.talk_flag = False 126 126 event.Skip() 127 127 … … 131 131 # self.textEditor.Clear() 132 132 # if len(text)>0: 133 # self.orb_ref. rc2007_gui_Obj.tx_work_mod.SendTextData(text)133 # self.orb_ref.OSSIETalk_Obj.tx_work_mod.SendTextData(text) 134 134 # updatedtext=str(self.rxTextEditor.GetValue()) 135 135 # updatedtext+='Snd('+strftime("%H:%M:%S",localtime()) + '):'+text+'\n' … … 146 146 # self.rxTextEditor.write(updatedtext) 147 147 # except: 148 # print "WARNING! rc2007_guigot incompatible ASCII symbols!"148 # print "WARNING! OSSIETalk got incompatible ASCII symbols!" 149 149 150 150 #def OnClearTextHistory(self,event):