|
From: | Trond Danielsen |
Subject: | Re: [Discuss-gnuradio] multi-machine sweeper |
Date: | Tue, 27 Mar 2007 11:32:38 +0200 |
2007/3/26, Brett L. Trotter <address@hidden>:
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
[Prev in Thread] | Current Thread | [Next in Thread] |