slac-config.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <section id='slac-config'>
  2. <title>
  3. SLAC Configuration
  4. </title>
  5. <para>
  6. Avitar can be used to configure a PLC device as either a normal PLC station or a <acronym>SLAC</acronym> <acronym>PEV-PLC</acronym> or <acronym>SLAC</acronym> <acronym>EVSE-PLC</acronym> station. In doing so, <application>Avitar</application> changes several <acronym>PIB</acronym> values at the same time. This section illustrates how to configurat a <acronym>PIB</acronym> the same way using the toolkit.
  7. </para>
  8. <para>
  9. The HomePlug Green PHY Specification refers to the <constant>APCM_SET_CCO.REQ</constant> and <constant>APCM_CONF_SLAC</constant> primatives in the SLAC protocol description. These are virtual operations to be implemented by the user. In both cases, one must read the <acronym>PIB</acronym> from the <acronym>PLC</acronym> device, edit the <acronym>PIB</acronym>, recompute <acronym>PIB</acronym> checksums and write the <acronym>PIB</acronym> back to the <acronym>PLC</acronym> device. This can be done manually, using <application>Avitar</application>, or in a script, using the Powerline Toolkit as shown below, or programatically, using custom software.
  10. </para>
  11. <table>
  12. <title>
  13. PEV-PLC PIB Settings
  14. </title>
  15. <tgroup cols="3">
  16. <colspec colname="pev-plc-offset"/>
  17. <colspec colname="pev-plc-length"/>
  18. <colspec colname="pev-plc-symbol"/>
  19. <colspec colname="pev-plc-string"/>
  20. <thead>
  21. <row>
  22. <entry>
  23. OFFSET
  24. </entry>
  25. <entry>
  26. LENGTH
  27. </entry>
  28. <entry>
  29. SYMBOL
  30. </entry>
  31. <entry>
  32. DESCRIPTION
  33. </entry>
  34. </row>
  35. </thead>
  36. <tbody>
  37. <row>
  38. <entry>
  39. 0000F4
  40. </entry>
  41. <entry>
  42. 1
  43. </entry>
  44. <entry>
  45. CCoSelection
  46. </entry>
  47. <entry>
  48. 1: This sets CCo Selection to Never;
  49. </entry>
  50. </row>
  51. <row>
  52. <entry>
  53. 001653
  54. </entry>
  55. <entry>
  56. 1
  57. </entry>
  58. <entry>
  59. SLAC_EnableMode
  60. </entry>
  61. <entry>
  62. 1: This sets SLAC Selection to PEV;
  63. </entry>
  64. </row>
  65. <row>
  66. <entry>
  67. 001C98
  68. </entry>
  69. <entry>
  70. 4
  71. </entry>
  72. <entry>
  73. LowLinkSpeed_kbps
  74. </entry>
  75. <entry>
  76. 10240
  77. </entry>
  78. </row>
  79. <row>
  80. <entry>
  81. 001C9C
  82. </entry>
  83. <entry>
  84. 4
  85. </entry>
  86. <entry>
  87. HighLinkSpeed_kbps
  88. </entry>
  89. <entry>
  90. 102400
  91. </entry>
  92. </row>
  93. </tbody>
  94. </tgroup>
  95. </table>
  96. <para>
  97. </para>
  98. <para>
  99. The following shell script converts a factory <acronym>PIB</acronym> to a <acronym>SLAC</acronym> <acronym>PEV</acronym> by setting the CCO Mode to Never and the <acronym>SLAC</acronym> Mode to <acronym>PEV</acronym>. The User HFID is set to <quote>PEV</quote> for role identification, optionally. This <acronym>PIB</acronym> must be written into PEV-PLC flash memory for proper operation.
  100. </para>
  101. <screen>
  102. #!/bin/sh
  103. # file: pev.sh
  104. # ========================================================================
  105. # convert a factory PIB to a SLAC PEV PIB by changing these PIB settings;
  106. # ------------------------------------------------------------------------
  107. setpib ${1} 74 hfid "PEV"
  108. setpib ${1} F4 byte 1
  109. setpib ${1} 1653 byte 1
  110. setpib ${1} 1C98 long 10240 long 102400
  111. </screen>
  112. <table>
  113. <title>
  114. PEV-EVSE PIB Settings
  115. </title>
  116. <tgroup cols="4">
  117. <colspec colname="pev-plc-offset"/>
  118. <colspec colname="pev-plc-length"/>
  119. <colspec colname="pev-plc-symbol"/>
  120. <colspec colname="pev-plc-string"/>
  121. <thead>
  122. <row>
  123. <entry>
  124. OFFSET
  125. </entry>
  126. <entry>
  127. LENGTH
  128. </entry>
  129. <entry>
  130. SYMBOL
  131. </entry>
  132. <entry>
  133. DESCRIPTION
  134. </entry>
  135. </row>
  136. </thead>
  137. <tbody>
  138. <row>
  139. <entry>
  140. 0000F4
  141. </entry>
  142. <entry>
  143. 1
  144. </entry>
  145. <entry>
  146. CcoSelection
  147. </entry>
  148. <entry>
  149. 2: This sets CCo Mode to Always;
  150. </entry>
  151. </row>
  152. <row>
  153. <entry>
  154. 001653
  155. </entry>
  156. <entry>
  157. 1
  158. </entry>
  159. <entry>
  160. SLAC_EnableMode
  161. </entry>
  162. <entry>
  163. 2: This sets SLAC Mode to EVSE;
  164. </entry>
  165. </row>
  166. <row>
  167. <entry>
  168. 001C98
  169. </entry>
  170. <entry>
  171. 4
  172. </entry>
  173. <entry>
  174. LowLinkSpeed_kbps
  175. </entry>
  176. <entry>
  177. 10240
  178. </entry>
  179. </row>
  180. <row>
  181. <entry>
  182. 001C9C
  183. </entry>
  184. <entry>
  185. 4
  186. </entry>
  187. <entry>
  188. HighLinkSpeed_kbps
  189. </entry>
  190. <entry>
  191. 102400
  192. </entry>
  193. </row>
  194. </tbody>
  195. </tgroup>
  196. </table>
  197. <para>
  198. The following shell script converts a factory <acronym>PIB</acronym> to a <acronym>SLAC</acronym> <acronym>EVSE</acronym> by setting the CCO Mode to Always and the <acronym>SLAC</acronym> Mode to <acronym>EVSE</acronym>. The User HFID is set to <quote>EVSE</quote> for role identification, optionally. This <acronym>PIB</acronym> must be written into EVSE-PLC flash memory for proper operation.
  199. </para>
  200. <screen>
  201. #!/bin/sh
  202. # file: evse.sh
  203. # ========================================================================
  204. # convert a factory PIB to a SLAC EVSE PIB by changing these PIB settings;
  205. # ------------------------------------------------------------------------
  206. setpib ${1} 74 hfid "EVSE"
  207. setpib ${1} F4 byte 2
  208. setpib ${1} 1653 byte 2
  209. setpib ${1} 1C98 long 10240 long 102400
  210. </screen>
  211. <section id='slac-apcm-set-cco'>
  212. <title>
  213. APCM_SET_CCO Primative
  214. </title>
  215. <para>
  216. 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.
  217. </para>
  218. </section>
  219. <section id='slac-apcm-config-slac'>
  220. <title>
  221. APCM_CONFIG_SLAC Primative
  222. </title>
  223. <para>
  224. </para>
  225. </section>
  226. </section>