Specifications

getStat(10) – Radio Transmit Buffers
This provides the number of transmit buffers processed through the radio.
getStat(11) – Radio Forwarded Unicasts
This provides the number of “unicast” (directly addressed RPC) packets forwarded for nodes over the
radio.
getStat(12) – Packet Serial Forwarded Unicasts
This provides the number of “unicast” (directly addressed RPC) packets forwarded for nodes over
packet serial.
getStat(13) – Radio Forwarded Multicasts
This provides the number of multicast packets forwarded for nodes over the radio.
getStat(14) – Packet Serial Forwarded Multicasts
This provides the number of multicast packets forwarded for nodes over packet serial.
imageName() – Return name of currently loaded SNAPpy image
Prior to being downloaded into a SNAP node, the text form of a SNAPpy script gets compiled into a
byte-code image. It is this executable image that gets downloaded into the node, not the original
(textual) source code.
The generated image takes its base name from the underlying source script. For example, image
“foo.spy” would be generated from a script named “foo.py”.
Function imageName() returns the “base name” from the currently loaded image (if there is one). In
the example given here, function imageName() would return the string “foo”.
This function takes no parameters.
i2cInit(enablePullups) – Setup for I
2
C
This function performs the necessary setup to allow subsequent i2cRead() and i2cWrite() calls to be
made.
Parameter enablePullups causes internal pull-up resistors to be activated for the I
2
C clock and data
lines. These lines do require pull-ups, but often those pull-ups are part of your external hardware, and
parameter enablePullups should be False. (Don’t “double pull-up” the I
2
C bus.)
Setting parameter enablePullups to True can come in handy when you don’t have a real I
2
C bus, but
are doing quick prototyping by dangling I
2
C devices directly off the SNAP Engine.
For more information about interfacing SNAP nodes to I
2
C devices, refer to section 6.
SNAP Reference Manual Document Number 600-0007K Page 57 of 202