iotile.core.hw.proxy

Package Contents

class TileBusProxyObject(stream, address)
classmethod ModuleName(cls)
config_manager(self)
rpc(self, feature, cmd, *args, **kw)

Send an RPC call to this module, interpret the return value according to the result_type kw argument. Unless raise keyword is passed with value False, raise an RPCException if the command is not successful.

_convert_int(self, arg)
_pack_arg(self, arg)
_format_args(self, args)
rpc_v2(self, cmd, arg_format, result_format, *args, **kw)

Send an RPC call to this module, interpret the return value according to the result_type kw argument. Unless raise keyword is passed with value False, raise an RPCException if the command is not successful.

v2 enforces the use of arg_format and result_format v2 combines the feature+cmd chunks in to a single 4-byte chunk

hardware_version(self)

Return the embedded hardware version string for this tile.

The hardware version is an up to 10 byte user readable string that is meant to encode any necessary information about the specific hardware that this tile is running on. For example, if you have multiple assembly variants of a given tile, you could encode that information here.

Returns:
str: The hardware version read from the tile.
check_hardware(self, expected)

Make sure the hardware version is what we expect.

This convenience function is meant for ensuring that we are talking to a tile that has the correct hardware version.

Args:
expected (str): The expected hardware string that is compared
against what is reported by the hardware_version RPC.
Returns:
bool: true if the hardware is the expected version, false otherwise
status(self)

Query the status of an IOTile including its name and version

reset(self, wait=1.0)

Immediately reset this tile.

tile_name(self)
tile_version(self)
tile_status(self)

Get the current status of this tile

_parse_rpc_result(self, status, payload, num_ints, buff, command)

Parse the response of an RPC call into a dictionary with integer and buffer results

class TileBusProxyPlugin(parent)

Proxy plugin objects are mixin style classes that add functionality modules to proxy objects

rpc(self, feature, cmd, *args, **kw)
rpc_v2(self, cmd, arg_format, result_format, *args, **kwargs)