VMgr_PktPerSec

This application was added in REL-1.1.0.

Introduction

This example 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 the total number of packets and packets per second received 

It connects to:

  • The SmartMesh IP VManager

Running

You can run the VMgr_PktPerSec.py application:

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


VMgr_PktPerSec Example (c) Dust Networks
SmartMesh SDK 1.1.0.1

Enter the IP address of the manager (e.g. 10.70.48.69 ): 127.0.0.1

==== Display current network Configuration
{'base_pk_period': 15000,
 'cca_mode': 0,
 'channel_list': 32767,
 'down_frame_multiplier': 1,
 'down_frame_multiplier_delay': 3600000,
 'down_frame_size': 32,
 'ip_addr_prefix': 'FE80::',
 'join_security_type': 'common_skey',
 'min_service_pk_period': 100,
 'network_id': 208,
 'num_parents': 2,
 'topology_type': 'mesh',
 'up_frame_size': 128}

==== Subscribe to data notifications and display Average pkt/sec
         Ctrl C to stop
 Total so far = 0 --> Average pkt/sec = 0.0
 Total so far = 3 --> Average pkt/sec = 0.1