From e44403822e6c8729c2d54714aceea3c9774f41b2 Mon Sep 17 00:00:00 2001 From: travisutk Date: Sat, 25 Dec 2010 21:45:09 +0000 Subject: [PATCH] Chipcon mode for sniffing with radio settings from the regular application. Handy when you've got an unlocked chip but no documentation for the radio standards. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@814 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/goodfet.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client/goodfet.cc b/client/goodfet.cc index a3427f9..c83a7bd 100755 --- a/client/goodfet.cc +++ b/client/goodfet.cc @@ -203,6 +203,22 @@ if(sys.argv[1]=="rssi"): string=("%s."%string); print "%02x %04i %s" % (rssi,rssi, string); +if(sys.argv[1]=="sniff"): + client.CC1110_crystal(); + client.RF_idle(); + + #client.config_simpliciti(region); + + print "Listening as %x on %f MHz" % (client.RF_getsmac(), + client.RF_getfreq()/10.0**6); + #Now we're ready to get packets. + while 1: + packet=None; + while packet==None: + packet=client.RF_rxpacket(); + printpacket(packet); + sys.stdout.flush(); + if(sys.argv[1]=="sniffsimpliciti"): region="us"; if len(sys.argv)>2: -- 2.20.1