VMgr_BasicExample

This application was added in REL-1.1.0.

Introduction

This example script connects to a VManager using the Python library and does the following:

  • Prompts the user for the VManager IP address 
  • Prints out the network configuration parameters
  • Changes and updates a system configuration parameter
  • Subscribes to data notifications and prints packets that are received (assuming motes are publishing data)

It connects to:

  • The SmartMesh IP VManager

Running

You can run the VMgr_BasicExample.py application:

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


VMgr_BasicExample (c) Dust Networks
SmartMesh SDK 1.1.0.1

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

==== 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}

==== Set and display current location
California

==== Subscribe to data notifications and display
Waiting for notifications , Press any key to stop

 Data from mote 00-17-0D-00-00-60-08-DC --> 31409933206067881266341428052658689791652863830653987195088


Script ended normally