ampwait.1.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. ampwait.1
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='amptool.1.html' title=' amptool.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='chknvm.1.html' title=' chknvm.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. ampwait(1) Qualcomm Atheros Open Powerline Toolkit ampwait(1)
  22. NAME
  23. ampwait - Qualcomm Atheros Powerline Procrastinator
  24. SYNOPSIS
  25. ampwait [options] [device] [device] [...]
  26. DESCRIPTION
  27. Poll a Qualcomm Atheros powerline device, waiting for one or more events to occur before continuing or returning. The
  28. events include reset or power off, restart or power on and network association. It is used to pause shell scripts at
  29. critical points where a device must be in a known state before continuing.
  30. This program is part of the Qualcomm Atheros Powerline Toolkit. See the plc man page for an overview and installation
  31. instructions.
  32. OPTIONS
  33. -a Poll the device every few seconds using VS_NW_INFO messages until the device indicates that a networks exists and
  34. has at least one station. This option can give false readings if other devices have dropped off-line and the
  35. device bridging table still holds information about them. The program always checks for this event last if other
  36. event options are specified.
  37. -e Redirects stderr messages to stdout. By convention status and error messages are printed on stderr while primary
  38. program output is printed on stdout. This option prints all output on stdout in cases where this is desired.
  39. -f firmware
  40. The identification string for firmware that should be running after the device starts. This option can be used to
  41. detect a failed firmware load. If the actual identification string does not match this one once the device starts
  42. then an error is reported. If option -x is present then the program terminates with a non-zero exit code. This
  43. option has no effect unless option -s is present. An identification string looks like
  44. &quot;INT6000-MAC-3-1-3143-1690-20071107-FINAL-B&quot; and can be obtained using int6k -r.
  45. -i Select the host Ethernet interface. All requests are sent via this host interface and only reponses received via
  46. this host interface are recognized. The default interface is eth1 because most people use eth0 as their principle
  47. network connection; however, if environment string &quot;PLC&quot; is defined then it takes precedence over the default
  48. interface. This option then takes precedence over either default.
  49. -p seconds
  50. Fixed pause time in seconds. This adds an fixed delay after the other events have occured. A pause does not
  51. occur if any of the specified events timeout. When no other events are specified this option is effectively
  52. equivalent to sleep. This option can be used to allow the device or the network to settle. For example, a nomi‐
  53. nal 5 second wait is recommended after a device successfully associates before attempting to transfer data.
  54. -q Enter quiet mode. Progress messages are suppressed.
  55. -R Reset the device then check return status. Exit program on error if option -x is present; otherwise, repeat the
  56. reset request until the device either accepts the request or the wait time is exceeded.
  57. -s Poll the device every few seconds using VS_SW_VER messages until the bootloader or runtime firmware responds or
  58. the poll count exhausts. The presence of a response indicates that the device has either connected to the host,
  59. received power or finished reboot.
  60. -t milliseconds
  61. Channel read/write timeout in milliseconds. This is the maximum time allowed for a confirmation or a response
  62. from a powerline device before abandoning a read/write operation. Permitted values range from 0 through UINT_MAX
  63. as defined in limits.h. The default is 50 milliseconds.
  64. -v Enter verbose mode. All Etherenet frames sent or received by the program are displayed on stdout.
  65. -w seconds
  66. Wait timeout in seconds. This is the maximum time that this application will wait for an event to occur where an
  67. event is reset, start or assoc. If an event does no occur within this time, the program proceeds to wait for the
  68. next specified event. This timeout applies to each event in turn when more than one event is specified. Permit‐
  69. ted values are 0 through 86400 seconds which is 24 hours.
  70. -x Exit program on first error with a non-zero exit code. This option allows shell scripts to detect failed or
  71. incomplete operations and take the appropriate action.
  72. -y Display actual wait times on stdout.
  73. -?, --help
  74. Print program help summary on stdout. This option takes precedence over other options on the command line.
  75. -!, --version
  76. Print program version information on stdout. This option takes precedence over other options on the command line.
  77. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  78. the Linux Toolkit you are using.
  79. ARGUMENTS
  80. device The Media Access Control (MAC) address of some device. Addresses are 6 hexadecimal octets optionally separated by
  81. colon. For example, the addresses &quot;00b052000001&quot;, &quot;00:b0:52:00:00:01&quot; and &quot;00b052:000001&quot; are all valid and
  82. equivalent. For convenience, the symbolic address &quot;local&quot; resolves to &quot;00:b0:52:00:00:01&quot; and the symbolic
  83. addresses &quot;all&quot; and &quot;broadcast&quot; both resolve to &quot;ff:ff:ff:ff:ff:ff&quot;.
  84. REFERENCES
  85. See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  86. DISCLAIMER
  87. Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros,
  88. Ocala FL USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify mes‐
  89. sage structure and content in future firmware releases without any obligation to notify or compensate users of this pro‐
  90. gram.
  91. EXAMPLES
  92. The following command polls the local device until firmware stops running then polls the device until firmware starts
  93. running again. This command can be inserted into a shell script at a point where the device must reset and reboot before
  94. proceeding. Observe that the program waits up to 60 seconds for each event, in turn, because 60 seconds is the default
  95. wait period. If an event occurs before the specified timeout the program will move on to the next event.
  96. # ampwait -rs
  97. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Reset
  98. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Start
  99. The following example waits up to 30 seconds for the local device to reset (-r) then up to 50 seconds for the local
  100. device to start (-s). This is the same as above but we have specified 30 seconds using option -w.
  101. # ampwait -r -s -w 30
  102. eth0 00:B0:52:BA:BA:01 Allow 30 seconds for Reset
  103. eth0 00:B0:52:BA:BA:01 Allow 30 seconds for Start
  104. The next example reports the actual amount of time taken for each event to occur. Observe that the last event, device
  105. association, did not occur within the allotted time.
  106. # ampwait -rsay
  107. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Reset
  108. etho 00:B0:52:BA:BA:01 Waited 22 seconds to Reset
  109. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Start
  110. etho 00:B0:52:BA:BA:01 Waited 4 seconds to Start
  111. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Assoc
  112. etho 00:B0:52:BA:BA:01 Waited 60 seconds for Assoc
  113. etho 00:B0:52:BA:BA:01 Device did not Assoc
  114. The following example illustrates use of the revision string to detect mismatched firmware. In this example, we reset
  115. the device first, using program amptool, then wait for it to reset then start up again. There are also operation that
  116. can cause the device to reset.
  117. # amptool -R
  118. # ampwait -xrsf INT6000-MAC-3-1-3143-1690-20071107-FINAL-B
  119. eth0 00:B0:52:BA:BA:01 Device started wrong firmware
  120. Immediately after a reset we wait for the firmware to stop responding, with option -r, and then start responding, with
  121. option -s, and then perform a string comparison against the actual firmware revision string, with option -f. If the
  122. strings do not match then an error is reported. In this case, the program will exit with a non-zero return code since
  123. option -x is present.
  124. DISCLAIMER
  125. Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros,
  126. Ocala FL USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify mes‐
  127. sage structure and content in future firmware releases without any obligation to notify or compensate users of this pro‐
  128. gram.
  129. SEE ALSO
  130. amp(1), amptool(1), amphost(1), amprate(1), ampid(1), ampstat(1)
  131. CREDITS
  132. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  133. open-plc-utils-0.0.3 Mar 2014 ampwait(1)
  134. </pre>
  135. <div class='footerlink'>
  136. [<a href='amptool.1.html' title=' amptool.1 '>PREV</a>]
  137. [<a href='toolkit.html' title=' Index '>HOME</a>]
  138. [<a href='chknvm.1.html' title=' chknvm.1 '>NEXT</a>]
  139. </div>
  140. </body>
  141. </html>