int6kbaud.1.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. int6kbaud.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='int6k.1.html' title=' int6k.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='int6kboot.1.html' title=' int6kboot.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. int6kbaud(1) Qualcomm Atheros Open Powerline Toolkit int6kbaud(1)
  22. NAME
  23. int6kbaud - Qualcomm Atheros Serial Line Device Configuration
  24. SYNOPSIS
  25. int6kbaud [options] [...]
  26. DESCRIPTION
  27. Set serial line parameters on a UART-enabled Atheros powerline device using the ATBR serial line command.
  28. Serial line commands are 7-bit ASCII character strings sent to the local powerline device over the host serial port.
  29. They can be sent using any terminal emulator but this program will, in many cases, reduce typing and simplify scripting.
  30. It is especially useful for downloading device parameters and uploading device parameters or firmware because those oper‐
  31. ations involve large volumes of data. Also, this program permits decimal integer arguments in many cases where the
  32. serial line commands require hexadecimal integer values. See the COMMANDS section below for a list of supported serial
  33. line commands;
  34. This program is part of the Qualcomm Atheros Powerline Toolkit. See the AMP man page for an overview and installation
  35. instructions.
  36. COMMENTS
  37. This program does not configure or reconfigure host serial port settings since most systems provide a utility to do that.
  38. Be sure to configure them before using this program since other programs may change them before or after use. Atheros
  39. factory default settings for UART-enabled powerline devices are 1115200 baud, 8 data bits, 1 stop bit, no parity and no
  40. flow control.
  41. On Linux, use the stty utility to inspect and set serial port parameters. The following Linux command will configure
  42. serial device /dev/ttyS0 speed to 115200 baud with 8 data bits, 1 stop bit, no parity bit and no flow control. Consult
  43. the stty man page for an explanation of these and other options.
  44. #stty -f /dev/ttyS0 115200 cs8 cstopb -cparenb -ixon
  45. On Windows, use the the Device Manager dialog to set serial Port properties. To open this dialog, select Start Menu,
  46. Control Panel, System, Hardware, Device Manager, Ports, Advanced.
  47. OPTIONS
  48. -B baudrate
  49. The new baud rate. Any integer value may be entered here but only certain values may be accepted by the powerline
  50. device. Although the device may support some value, the local host may not support it. Supported values are 300,
  51. 600, 1200, 2400, 4800, 9600, 38400, 57600, 115200, 230400, 460800 and 921600. The default is 115200.
  52. -D databits
  53. The number of bits per data byte. Accepted values are 7 and 8. The default is 8.
  54. -F flowctrl
  55. The hardware flowcontrol state. Accepted values are 0=off and 1=on where numeric values or keywords &quot;off&quot; or &quot;on&quot;
  56. may be used. Keyword &quot;none&quot; is synonymous with &quot;off&quot; for this option. The default is none.
  57. -m mode
  58. Accepted values are 1=transparent and 2=command where numeric values or keywords &quot;transparent&quot; or &quot;command&quot; may be
  59. used.
  60. -P parity
  61. The number of parity bits and parity mode. Accepted values are 0=none, 1=odd and 2=even where numeric values of
  62. keywords &quot;none&quot;, &quot;odd&quot; or &quot;even&quot; may be used. The default is none.
  63. -q Suppress progress and error information on stderr.
  64. -s tty Communicate with the local powerline device over the named serial interface on the local host. The program
  65. default is &quot;/dev/ttyUSB0&quot; for Linux and &quot;com1:&quot; for Windows. The program default may be replace by defining envi‐
  66. ronment variable PLCUART. This command line option will over-ride those defaults.
  67. -S stopbits
  68. The number of stop bits. Accepted values are 1 or 2. The default is 1.
  69. -u Force default host port settings to match the default setting for UART-enabled Atheros powerline devices. The
  70. setting are 115200 baud, 8 data bits, no parity bits and 1 stop bit. These settings will remain active when the
  71. program terminates and will not change unless changed by some other means, perhaps by another application. This
  72. option is an easy means of establishg an initial serial connection with a powerline device, unless it's settings
  73. have been changed.
  74. -v Display serial line commands and responses on stdout.
  75. -w Place the local powerline device in Command Mode using the +++ serial line command. The device will remain in com‐
  76. mand mode until it is reset or forced into Transparaent Mode or High Speed Command Mode.
  77. -?,--help
  78. Print program help summary on stdout. This option takes precedence over other options on the command line.
  79. -!,--version
  80. Print program version information on stdout. This option takes precedence over other options on the command line.
  81. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  82. the Linux Toolkit you are using.
  83. ARGUMENTS
  84. None.
  85. COMMANDS
  86. This section lists serial line commands recognized by local powerline devices when in Command Mode. Commands can be
  87. issued interactively using a terminal emulator, like minicom on Linux or HyperTerminal on Windows or stored as text and
  88. copied to the serial port using system utilities, like cat on Linux or type on Windows. This program merely converts com‐
  89. mand line options and arguments into one or more of the serial line commands shown below.
  90. +++ Exit Transparent Mode and enter Command Mode. See option -w above.
  91. AT Test for Command Mode by doing nothing, successfully. See option -t above.
  92. ATBRmode,baudrate,databits,parity,stopbits,flowctrl
  93. Set serial line parameters on the local powerline device. Beware that this will break the existing serial connec‐
  94. tion when the new parameters differ from those of the local host.
  95. ATBSZ? Get Transparent Mode buffer size. See option -z above.
  96. ATBSZsize
  97. Set Transparent Mode buffer size. See option -Z above.
  98. ATDST? Get Transparent Mode destination device address. See option -d above.
  99. ATDSTaddress
  100. Set Transparent Mode destination device address. See option -D above.
  101. ATFD Reset local device to factory defaults. See option -T above.
  102. ATHSC Exit Command Mode and enter High Speed Command Mode. Once the OK response is received, the local host should send
  103. commands to the device at successively higher speeds until a valid response is received.
  104. ATNI? Read nework information and store the information internally. Return the number of associated stations and infor‐
  105. mation about the first associated station. The information includes the peer station device address, TX rate and
  106. RX rate.
  107. ATNIstation
  108. Extract and display previously stored network information for a specific peer station. The information returned is
  109. that previosly stored using a ATNI serial line command query.
  110. ATO Exit Command Mode and enter Transparent Mode. Successful switch requires a valid destination MAC address, buffer
  111. size and aggregation timeout value. Use serial line commands ATDST and ATBSZ to get and/or set the first two val‐
  112. ues. Use serial line command ATTO to set the timeout value.
  113. ATPStime
  114. Place the device in Power Save Mode for a specified time in seconds. Accepted values are 1 to 384 seconds. The
  115. default time is A seconds.
  116. ATRPlength,offset
  117. Read and display a parameter block segment where length is the number of bytes read and offset is the relative
  118. position, in bytes, from the start of the parameter block. Valid length values are 0 through 400 hexadecimal. See
  119. option -p above to read and save an entire parameter block.
  120. ATRPM Get PIB version and device MAC address.
  121. ATRV Get hardware and firmware revision. See option -r above.
  122. ATSK? Get device Network Membership Key. See option -m above.
  123. ATSKkey
  124. Set device Network Membership Key. See option -M above.
  125. ATTO? Get the Transparent Mode aggregation timeout in milliseconds.
  126. ATTOtimeout
  127. Set the Transparent Mode aggregation timeout in milliseconds. See option -W above.
  128. ATWNVmodule
  129. Update NVM with PIB and/or Firmware module. See option -C above.
  130. ATWPFmodule,length,offset,checksum,data
  131. Write a parameter block or firmware segment to the local powerline device where module is the module identifier,
  132. length is the number of bytes to write, offset is the relative position from the start of the module, checksum is
  133. the 1's complement of the data and data is the data to be written. Valid module identifiers are 1=FW and 2=PIB.
  134. Valid length values are 0 up to 400 hexadecimal. See options -N and -P above to write an entire parameter block
  135. or firmware images.
  136. ATZ Reset device. See option -R above.
  137. REFERENCES
  138. See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  139. DISCLAIMER
  140. Atheros serial line commands are proprietary to Qualcomm Atheros, Ocala FL USA. Consequently, public information is not
  141. available. Qualcomm Atheros reserves the right to modify command line syntax or command functionality in future firmware
  142. releases without any obligation to notify or compensate product or program users.
  143. EXAMPLES
  144. The following example sets the baud speed to 115200 baud with 8 data bits, 1 stop bits, no flow control and no parity.
  145. The outgoing serial line command and incoming response are displayed on stderr because option -f is present.
  146. #int6kbaud -B 115200 -D 8 -F 0 -P 0 -S 1 -v
  147. ATBR00,000000000001C200,08,00,01,00
  148. OK
  149. Observe that decimal command line arguments are converted to hexadecimal on output. Although this program outputs fixed-
  150. length fields, including leaing zeros, device firmware ignores them. Leading zeros may be omitted when entering serial
  151. line commands manually.
  152. The next example set the speed to 38400. Observe that program default values appear in the outgoing serial line command
  153. when the corresponding command line options are omitted.
  154. #int6kbaud -B 38400 -v
  155. ATBR00,0000000000009600,08,00,01,00
  156. OK
  157. The next command does the same thing as the first example except that keywords replace numeric values for some of the
  158. options. Since option -v is omitted the outgoing command and incoming response are not displayed.
  159. #int6kbaud -B 115200 -D 8 -F off -P none -S 1
  160. SEE ALSO
  161. amp(1), int6kuart(1), ttysig(1)
  162. CREDITS
  163. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  164. open-plc-utils-0.0.3 Mar 2014 int6kbaud(1)
  165. </pre>
  166. <div class='footerlink'>
  167. [<a href='int6k.1.html' title=' int6k.1 '>PREV</a>]
  168. [<a href='toolkit.html' title=' Index '>HOME</a>]
  169. [<a href='int6kboot.1.html' title=' int6kboot.1 '>NEXT</a>]
  170. </div>
  171. </body>
  172. </html>