2007/3/26, Brett L. Trotter <[EMAIL PROTECTED]>:
In the long run- perhaps a python app that sits on a socket and changes the 
frequency at the command of the other side of the link, which is doing a loop 
through the daughtercard frequencies and then keeps track of the SNR or the db 
above baseline or something. The quick and dirty way would be to have the RX 
hop to the frequency, listen to baseline with transmitter not going, record 
level, ask TX side to go to same frequency, measure again- record the result 
and then move to the next frequency.

It should be possible to run a SOAP server as a thread in a GNU Radio
application. The simplest possible soap server looks like this:
- - -
import SOAPpy
     def hello():
          return "Hello World"

     server = SOAP.SOAPServer(("localhost", 8080))
     server.registerFunction(hello)
     server.serve_forever()
- - -

and can be called with the following client code:
- - -
import SOAPpy
     server = SOAPpy.SOAPProxy("http://localhost:8080/";)
     print server.hello()
- - -

Of cause you have to replace localhost with the host name of the
server and the hello()-method with something more meaningful, but
otherwise the code should be very similar.

SOAPpy is availble here: http://pywebsvcs.sourceforge.net/

--
Trond Danielsen


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to