VMgr_LatencyNotifs

This application was added in REL-1.1.0.

Introduction

This example script subscribes to all data notifications and prints the latency of each packet.

The script connects to a Manager using the Python library and does the following:

  • Prompts the user for the VManager IP address
  • Subscribes to data notifications
  • Prints out MAC address and latency of each data packet received (in milliseconds)

It connects to:

  • The SmartMesh IP VManager

Running

You can run the VMgr_LatencyNotifs.py application:

  • By double-clicking on its source files at /vmanager_apps/VMgr_LatencyNotifs.py (may require additional steps on non-windows OSes)


VMgr_LatencyNotifs Example (c) Dust Networks
SmartMesh SDK 1.1.0.1

Enter the IP address of the manager (e.g. 10.70.48.69 ): 10.70.7.104
 Current network configuration is ...
 {'base_pk_period': 15000,
 'cca_mode': 0,
 'channel_list': 32767,
 'down_frame_multiplier': 1,
 'down_frame_multiplier_delay': 3600000,
 'down_frame_size': 512,
 'ip_addr_prefix': 'FE80::',
 'join_security_type': 'common_skey',
 'min_service_pk_period': 100,
 'network_id': 114,
 'num_parents': 2,
 'topology_type': 'mesh',
 'up_frame_size': 512}

==== Subscribing to data notifications

 Waiting for notifications , Press any key to stop
 Latency for mote 00-17-0D-00-00-38-04-73 --> 341
 Latency for mote 00-17-0D-00-00-38-04-50 --> 399
 Latency for mote 00-17-0D-00-00-38-04-5E --> 2248
 Latency for mote 00-17-0D-00-00-38-04-57 --> 102
 Latency for mote 00-17-0D-00-00-38-04-7A --> 29
 Latency for mote 00-17-0D-00-00-30-3C-81 --> 15
 Latency for mote 00-17-0D-00-00-30-43-03 --> 254
 Latency for mote 00-17-0D-00-00-30-43-18 --> 341
 Latency for mote 00-17-0D-00-00-30-43-11 --> 377
 Latency for mote 00-17-0D-00-00-38-04-73 --> 36
 Latency for mote 00-17-0D-00-00-38-04-50 --> 94
 Latency for mote 00-17-0D-00-00-38-04-5E --> 1943

Script ended normally