Package killerbee :: Module GoodFET :: Class GoodFET
[hide private]
[frames] | no frames]

Class GoodFET

source code

Known Subclasses:

GoodFET Client Library

Instance Methods [hide private]
 
__init__(self, *args, **kargs) source code
 
getConsole(self) source code
 
name2adr(self, name) source code
 
timeout(self) source code
 
serInit(self, port=None, timeout=2, attemptlimit=None)
Open a serial port of some kind.
source code
 
btInit(self, port, timeout, attemptlimit)
Open a bluetooth port.
source code
 
pyserInit(self, port, timeout, attemptlimit)
Open the serial port
source code
 
serClose(self) source code
 
telosSetSCL(self, level)
Helper function for support of the TelosB platform.
source code
 
telosSetSDA(self, level)
Helper function for support of the TelosB platform.
source code
 
telosI2CStart(self)
Helper function for support of the TelosB platform.
source code
 
telosI2CStop(self)
Helper function for support of the TelosB platform.
source code
 
telosI2CWriteBit(self, bit)
Helper function for support of the TelosB platform.
source code
 
telosI2CWriteByte(self, byte)
Helper function for support of the TelosB platform.
source code
 
telosI2CWriteCmd(self, addr, cmdbyte)
Helper function for support of the TelosB platform.
source code
 
bslResetZ1(self, invokeBSL=0)
Helper function for support of the Z1 mote platform.
source code
 
writepicROM(self, address, data)
Writes data to @address
source code
 
readpicROM(self, address)
reads a byte from @address
source code
 
picROMclock(self, masterout, slow=True) source code
 
picROMfastclock(self, masterout) source code
 
telosBReset(self, invokeBSL=0)
Helper function for support of the TelosB platform.
source code
 
getbuffer(self, size=7168) source code
 
writecmd(self, app, verb, count=0, data=[])
Write a command and some data to the GoodFET.
source code
 
readcmd(self)
Read a reply from the GoodFET.
source code
 
glitchApp(self, app)
Glitch into a device by its application.
source code
 
glitchVerb(self, app, verb, data)
Glitch during a transaction.
source code
 
glitchstart(self)
Glitch into the AVR application.
source code
 
glitchstarttime(self)
Measure the timer of the START verb.
source code
 
glitchTime(self, app, verb, data)
Time the execution of a verb.
source code
 
glitchVoltages(self, low=2176, high=4095)
Set glitching voltages.
source code
 
glitchRate(self, count=2048)
Set glitching count period.
source code
 
silent(self, s=0)
Transmissions halted when 1.
source code
 
mon_connected(self)
Announce to the monitor that the connection is good.
source code
 
out(self, byte)
Write a byte to P5OUT.
source code
 
dir(self, byte)
Write a byte to P5DIR.
source code
 
call(self, adr)
Call to an address.
source code
 
execute(self, code)
Execute supplied code.
source code
 
MONpeek8(self, address)
Read a byte of memory from the monitor.
source code
 
MONpeek16(self, address)
Read a word of memory from the monitor.
source code
 
peek(self, address)
Read a word of memory from the monitor.
source code
 
eeprompeek(self, address)
Read a word of memory from the monitor.
source code
 
peekbysym(self, name)
Read a value by its symbol name.
source code
 
pokebysym(self, name, val)
Write a value by its symbol name.
source code
 
pokebyte(self, address, value, memory='vn')
Set a byte of memory by the monitor.
source code
 
poke16(self, address, value)
Set a word of memory by the monitor.
source code
 
MONpoke16(self, address, value)
Set a word of memory by the monitor.
source code
 
setsecret(self, value)
Set a secret word for later retreival.
source code
 
getsecret(self)
Get a secret word.
source code
 
dumpmem(self, begin, end) source code
 
monitor_ram_pattern(self)
Overwrite all of RAM with 0xBEEF.
source code
 
monitor_ram_depth(self)
Determine how many bytes of RAM are unused by looking for 0xBEEF..
source code
 
setBaud(self, baud)
Change the baud rate.
source code
 
readbyte(self) source code
 
findbaud(self) source code
 
monitortest(self)
Self-test several functions through the monitor.
source code
 
monitorecho(self) source code
 
monitor_info(self) source code
 
testleds(self) source code
 
monitor_list_apps(self, full=False) source code
 
monitorclocking(self)
Return the 16-bit clocking value.
source code
 
monitorsetclock(self, clock)
Set the clocking value.
source code
 
monitorgetclock(self)
Get the clocking value.
source code
 
infostring(self) source code
 
lock(self) source code
 
erase(self) source code
 
setup(self) source code
 
start(self) source code
 
test(self) source code
 
status(self) source code
 
halt(self) source code
 
resume(self) source code
 
getpc(self) source code
 
flash(self, file)
Flash an intel hex file to code memory.
source code
 
dump(self, file, start=0, stop=65535)
Dump an intel hex file from code memory.
source code
 
peek32(self, address, memory='vn')
Peek 32 bits.
source code
 
peek16(self, address, memory='vn')
Peek 16 bits of memory.
source code
 
peek8(self, address, memory='vn')
Peek a byte of memory.
source code
 
peekblock(self, address, length, memory='vn')
Return a block of data.
source code
 
pokeblock(self, address, bytes, memory='vn')
Poke a block of a data into memory at an address.
source code
 
loadsymbols(self)
Load symbols from a file.
source code
Class Variables [hide private]
  besilent = 0
  app = 0
  verb = 0
  count = 0
  data = ''
  verbose = False
  GLITCHAPP = 113
  MONITORAPP = 0
  symbols = SymbolTable()
  connected = 0
  baudrates = [115200, 9600, 19200, 38400, 57600, 115200]
Method Details [hide private]

bslResetZ1(self, invokeBSL=0)

source code 

Helper function for support of the Z1 mote platform. Applies BSL entry sequence on RST/NMI and TEST/VPP pins. By now only BSL mode is accessed.

Parameters:
  • invokeBSL (Integer) - 1 for a complete sequence, or 0 to only access RST/NMI pin

glitchVoltages(self, low=2176, high=4095)

source code 

Set glitching voltages. (0x0fff is max.)

setsecret(self, value)

source code 

Set a secret word for later retreival. Used by glitcher.

getsecret(self)

source code 

Get a secret word. Used by glitcher.

setBaud(self, baud)

source code 

Change the baud rate. TODO fix this.