Projets:Lab:2011:GHPSDR3-Alex:Dspserver

From Electrolab
Revision as of 19:15, 12 April 2013 by Marc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

dspserver.conf

Le fichier dspserver.conf est automatiquement créé par défaut dans le répertoire /home de chaque utilisateur (un pour root, un pour chaque compte) si le programme se rend compte qu'un tel fichier n'existe pas. L'exécutable dspserver peut être lancé également avec l'option --shareconfig .

Contenu du fichier dspserver.conf:

 # Simple config file for ghpsdr3's dspserver.
 # default file is located at ~/dspserver.conf when dsp server is started with --share
 # The information below will be supplied to a web database which will aid QtRadio
 # users find active dspservers to connect to.  You may also see the current list at
 # http://napan.ca/qtradio/qtradio.pl
 # valid fields are call, location, band, rig and ant
 # lines must end with ; and any characters after a # is a comment and ignored
 # field values must be enclosed with " ie: "xxxx"
 # This default file will be created if dspserver is started with the --share option and ~/dspserver.conf does not exist
 # You may also start dspserver with an alternate config file by starting dspserver with --shareconfig /home/alternate_filename.conf
 # Note field names are all lowercase!
 
 call = "F6ITU";#votre indicatif, inscrivez SWL si vous n'en possédez pas
 location = "JN36EA Savoy";# le lieu de votre station et/ou locator
 band = "80 to 10 m"; #les fréquences couvertes
 rig = "Softrock-mobo-widget";# description du récepteur ou tranceiver
 ant = "G5RV";# type d'antenne
 share = "yes"; # Partage sur Internet (peut être "yes" ou "no")
 lookupcountry = "yes"; # détermination du pays via l'adresse IP WAN (peut être "yes" ou "no")


Depuis début 2012, les paramètres share et lookupcountry peuvent être précisés dans le fichier de configuration et ne pas être systématiquement entrée via la ligne de commande.


TX doit être paramétré. Dans le cas contraire, la fonction d'émission ne sera pas fonctionnelle

 tx = "password";  #(peut être "yes" ou "no" ou "mot de passe")(évitez d'y coller votre indicatif)


tx= no désactive TOUS les émetteurs s'il y en a plusieurs tx=yes active tous les émetteurs tx=password will require a user/password pair when sending a mox command and will be checked against the TX rules for that user before TX is allowed This is handled automatically by QtRadio.

User / passwords are added one per line 

ve9gj = "secretpassword"; #add users/passwords one per line (max 20 characters each!) dl6kbg="hissecret"; zl2apv="anothersecret";

Multiple rule groups are allowed so permissions can be set by group. You need to list any group names you want to use in the groupnames line. Limit 20 characters and avoid spaces 

groupnames = ["txrulesall", "txrules20m_only"];

Now each groupname needs a line that lists it's members. Use the group name with _members appended to it. Note the format = [ "user1", "user2"]; 

txrulesall_members = ["ve9gj"]; txrules20m_only_members = ["ve9gj","zl2apv","dl6kbg"];

Now each rule group need it's own section one line per rule rule are defined as mode, start Mhz, end Mhz. Note the format =( ("mode", 7.0, 7.1), ("mode",1.8, 2.0) ); 

txrulesall = (

    ("*",1.8,30.0) # mode, StartFreq Mhz, EndFreq Mhz
    );

txrules20m_only = (

    ("CW",14.0,14.1), # mode, StartFreq Mhz, EndFreq Mhz
    ("SSB",14.1,14.35), # mode, StartFreq Mhz, EndFreq Mhz
    ("AM",14.3,14.35)
         );


Mode needs to be in double quotes "AM"

Mode can use "*" to mean any mode allowed
Mode must be in Upper Case (Capital Letters)
Tune is actually a form of AM mode so you will need to have AM mode enabled if you want to use Tune
Frequencies are in Mhz with the decimal point
The first rule that matches will allow TX
the User / Pass is sent with every MOX command so if a connection fails and another user somehow happens to attach as the wrong connected client he still cannot TX without the password
On the QtRadio Configure-->Transmit Tab you will find a table to save user passwords for specific servers. The server name is the same as what is on the Quick connect list and will now show up in the Main Window title bar. 
When QtRadio connects to a >= Feb 01 2012 dspserver it will check this table for a saved user pass and automatically send it when clicking the tune or mox buttons. 
Still to come is feed back to QtRadio when TX has been denied. At the moment TX just fails. The dspserver console will list the user name that attempt to TX. 

73