ch05s15.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>SLAC Configuration</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch05.html" title="Chapter 5.  Procedures"><link rel="prev" href="ch05s14.html" title="Trouble-shooting Problems"><link rel="next" href="ch05s16.html" title="SLAC Demonstration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
  2. SLAC Configuration
  3. </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch05s14.html">Prev</a> </td><th width="60%" align="center">Chapter 5. 
  4. Procedures
  5. </th><td width="20%" align="right"> <a accesskey="n" href="ch05s16.html">Next</a></td></tr></table><hr></div><div class="section" title="SLAC Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="slac-config"></a>
  6. SLAC Configuration
  7. </h2></div></div></div><p>
  8. Avitar can be used to configure a PLC device as either a normal PLC station or a <acronym class="acronym">SLAC</acronym> <acronym class="acronym">PEV-PLC</acronym> or <acronym class="acronym">SLAC</acronym> <acronym class="acronym">EVSE-PLC</acronym> station. In doing so, <span class="application">Avitar</span> changes several <acronym class="acronym">PIB</acronym> values at the same time. This section illustrates how to configurat a <acronym class="acronym">PIB</acronym> the same way using the toolkit.
  9. </p><p>
  10. The HomePlug Green PHY Specification refers to the <code class="constant">APCM_SET_CCO.REQ</code> and <code class="constant">APCM_CONF_SLAC</code> primatives in the SLAC protocol description. These are virtual operations to be implemented by the user. In both cases, one must read the <acronym class="acronym">PIB</acronym> from the <acronym class="acronym">PLC</acronym> device, edit the <acronym class="acronym">PIB</acronym>, recompute <acronym class="acronym">PIB</acronym> checksums and write the <acronym class="acronym">PIB</acronym> back to the <acronym class="acronym">PLC</acronym> device. This can be done manually, using <span class="application">Avitar</span>, or in a script, using the Powerline Toolkit as shown below, or programatically, using custom software.
  11. </p><div class="table"><a name="idp22417184"></a><p class="title"><b>Table 5.1. 
  12. PEV-PLC PIB Settings
  13. </b></p><div class="table-contents"><table summary="
  14. PEV-PLC PIB Settings
  15. " border="1"><colgroup><col class="pev-plc-offset"><col class="pev-plc-length"><col class="pev-plc-symbol"></colgroup><thead><tr><th>
  16. OFFSET
  17. </th><th>
  18. LENGTH
  19. </th><th>
  20. SYMBOL
  21. </th><th>
  22. DESCRIPTION
  23. </th></tr></thead><tbody><tr><td>
  24. 0000F4
  25. </td><td>
  26. 1
  27. </td><td>
  28. CCoSelection
  29. </td><td>
  30. 1: This sets CCo Selection to Never;
  31. </td></tr><tr><td>
  32. 001653
  33. </td><td>
  34. 1
  35. </td><td>
  36. SLAC_EnableMode
  37. </td><td>
  38. 1: This sets SLAC Selection to PEV;
  39. </td></tr><tr><td>
  40. 001C98
  41. </td><td>
  42. 4
  43. </td><td>
  44. LowLinkSpeed_kbps
  45. </td><td>
  46. 10240
  47. </td></tr><tr><td>
  48. 001C9C
  49. </td><td>
  50. 4
  51. </td><td>
  52. HighLinkSpeed_kbps
  53. </td><td>
  54. 102400
  55. </td></tr></tbody></table></div></div><br class="table-break"><p>
  56. </p><p>
  57. The following shell script converts a factory <acronym class="acronym">PIB</acronym> to a <acronym class="acronym">SLAC</acronym> <acronym class="acronym">PEV</acronym> by setting the CCO Mode to Never and the <acronym class="acronym">SLAC</acronym> Mode to <acronym class="acronym">PEV</acronym>. The User HFID is set to <span class="quote">“<span class="quote">PEV</span>”</span> for role identification, optionally. This <acronym class="acronym">PIB</acronym> must be written into PEV-PLC flash memory for proper operation.
  58. </p><pre class="screen">
  59. #!/bin/sh
  60. # file: pev.sh
  61. # ========================================================================
  62. # convert a factory PIB to a SLAC PEV PIB by changing these PIB settings;
  63. # ------------------------------------------------------------------------
  64. setpib ${1} 74 hfid "PEV"
  65. setpib ${1} F4 byte 1
  66. setpib ${1} 1653 byte 1
  67. setpib ${1} 1C98 long 10240 long 102400
  68. </pre><div class="table"><a name="idp22497104"></a><p class="title"><b>Table 5.2. 
  69. PEV-EVSE PIB Settings
  70. </b></p><div class="table-contents"><table summary="
  71. PEV-EVSE PIB Settings
  72. " border="1"><colgroup><col class="pev-plc-offset"><col class="pev-plc-length"><col class="pev-plc-symbol"><col class="pev-plc-string"></colgroup><thead><tr><th>
  73. OFFSET
  74. </th><th>
  75. LENGTH
  76. </th><th>
  77. SYMBOL
  78. </th><th>
  79. DESCRIPTION
  80. </th></tr></thead><tbody><tr><td>
  81. 0000F4
  82. </td><td>
  83. 1
  84. </td><td>
  85. CcoSelection
  86. </td><td>
  87. 2: This sets CCo Mode to Always;
  88. </td></tr><tr><td>
  89. 001653
  90. </td><td>
  91. 1
  92. </td><td>
  93. SLAC_EnableMode
  94. </td><td>
  95. 2: This sets SLAC Mode to EVSE;
  96. </td></tr><tr><td>
  97. 001C98
  98. </td><td>
  99. 4
  100. </td><td>
  101. LowLinkSpeed_kbps
  102. </td><td>
  103. 10240
  104. </td></tr><tr><td>
  105. 001C9C
  106. </td><td>
  107. 4
  108. </td><td>
  109. HighLinkSpeed_kbps
  110. </td><td>
  111. 102400
  112. </td></tr></tbody></table></div></div><br class="table-break"><p>
  113. The following shell script converts a factory <acronym class="acronym">PIB</acronym> to a <acronym class="acronym">SLAC</acronym> <acronym class="acronym">EVSE</acronym> by setting the CCO Mode to Always and the <acronym class="acronym">SLAC</acronym> Mode to <acronym class="acronym">EVSE</acronym>. The User HFID is set to <span class="quote">“<span class="quote">EVSE</span>”</span> for role identification, optionally. This <acronym class="acronym">PIB</acronym> must be written into EVSE-PLC flash memory for proper operation.
  114. </p><pre class="screen">
  115. #!/bin/sh
  116. # file: evse.sh
  117. # ========================================================================
  118. # convert a factory PIB to a SLAC EVSE PIB by changing these PIB settings;
  119. # ------------------------------------------------------------------------
  120. setpib ${1} 74 hfid "EVSE"
  121. setpib ${1} F4 byte 2
  122. setpib ${1} 1653 byte 2
  123. setpib ${1} 1C98 long 10240 long 102400
  124. </pre><div class="section" title="APCM_SET_CCO Primative"><div class="titlepage"><div><div><h3 class="title"><a name="slac-apcm-set-cco"></a>
  125. APCM_SET_CCO Primative
  126. </h3></div></div></div><p>
  127. This primative configures a PLC state by reading PIB from PLC, changing CCoSelection, computing new PIB checksum then writing the PIB back to PLC. It can be performed manually using Avitar, in a script using the Powerline Toolkit or programatically using custom software.
  128. </p></div><div class="section" title="APCM_CONFIG_SLAC Primative"><div class="titlepage"><div><div><h3 class="title"><a name="slac-apcm-config-slac"></a>
  129. APCM_CONFIG_SLAC Primative
  130. </h3></div></div></div><p>
  131. </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch05s14.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch05s16.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
  132. Trouble-shooting Problems
  133.  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 
  134. SLAC Demonstration
  135. </td></tr></table></div></body></html>