VMgr_SendPing

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 and the MAC address of a mote
  • Verify that the mote MAC address requested exists and is in the Operational state
  • Subscribes to events notifications
  • Sends a Ping to the requested mote
  • Waits for a PingResponse notification from this mote with the correct callback number and prints the received notification

Ping and PingResponse are application layer commands, not to be confused with ICMP or ICMPv6 echo

All other PingResponse event notifications will be ignored and the script will continue to listen for the expected Ping response.

It connects to:

  • The SmartMesh IP VManager

Running

You can run the VMgr_SendPing.py application:

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


VMgr_SendPing Example (c) Dust Networks
SmartMesh SDK 1.1.0.1

Enter the IP address of the manager (e.g. 10.70.48.36): 10.70.48.35
Enter MAC address of mote to Ping (e.g. 00-17-0D-00-00-60-08-DC):

==== Verifying that the mote requested is in network and Operational

==== Sending Ping to the mote and wait for the response
  Ping sent to mote 00-17-0D-00-00-60-08-DC, callback = 5

  Waiting for the pingResponse notification

Ping response from mote 00-17-0D-00-00-60-08-DC with callbackID = 5
  returned with result --> success
  date and time --> 2016-09-12 11:20:53.148000
  latency of response --> 247 mSec
  mote at hop --> 1
  mote voltage reading = 3.009 v, and temperature = 25 C

Script ended normally