#Might read as all ones if chip has a startup delay.
if(sys.argv[1]=="info"):
- print "Found %s" % client.identstr();
- print "Freq: %05.05f MHz" % (client.RF_getfreq()/(10**6));
+ print "Found %s" % client.identstr();
+ print "Freq: %05f MHz" % (client.RF_getfreq()/(10**6));
+ print "Status: %s" % client.status();
if(sys.argv[1]=="regs"):
for adr in range(0x10,0x40): #*1024):
val=client.peek(adr);
string=("%s."%string);
print "%02x %04i %s" % (rssi,rssi, string);
if(sys.argv[1]=="sniff"):
+ #Promiscuous mode.
+ client.RF_promiscuity(1);
+
if len(sys.argv)>2:
freq=eval(sys.argv[2]);
if freq>100:
while 1:
packet=None;
while packet==None:
- #time.sleep(0.1);
packet=client.RF_rxpacket();
printpacket(packet);
sys.stdout.flush();