Initial stab at bslv2 client
[goodfet] / client / goodfet.ccspi
index 74ec740..6c2d242 100755 (executable)
@@ -56,7 +56,8 @@ if(sys.argv[1]=="modulated_spectrum"):
     while(1):
         time.sleep(1);
 
-if(sys.argv[1]=="reflexjam"):
+if(sys.argv[1]=="reflexjam" or sys.argv[1]=="reflexjamack"):
+    #Setup the radio to listen promiscously on a frequency
     client.RF_promiscuity(1);
     client.RF_autocrc(0);
     if len(sys.argv)>2:
@@ -66,9 +67,12 @@ if(sys.argv[1]=="reflexjam"):
         else:
             client.RF_setchan(freq);
     client.CC_RFST_RX();
-    print "Listening as %010x on %i MHz" % (client.RF_getsmac(),
-                                            client.RF_getfreq()/10**6);
-    client.RF_reflexjam();
+    print "Reflexively jamming on %i MHz" % (client.RF_getfreq()/10**6);
+    #Now we let the firmware take over, watching for packets and jamming them.
+    if sys.argv[1]=="reflexjam":
+        client.RF_reflexjam();
+    elif sys.argv[1]=="reflexjamack":
+        client.RF_reflexjam_autoack();
 
 if(sys.argv[1]=="info"):
     print "Found   %s" % client.identstr();