A clone of: https://github.com/nutechsoftware/alarmdecoder This is requires as they dropped support for older firmware releases w/o building in backward compatibility code, and they had previously hardcoded pyserial to a python2 only version.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1146 lines
65 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>pyad2usb Package &mdash; pyad2usb documentation</title>
  7. <link rel="stylesheet" href="_static/default.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: './',
  12. VERSION: '',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="top" title="pyad2usb documentation" href="index.html" />
  22. <link rel="next" title="event Package" href="pyad2usb.event.html" />
  23. <link rel="prev" title="Welcome to pyad2usb’s documentation!" href="index.html" />
  24. </head>
  25. <body>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="py-modindex.html" title="Python Module Index"
  34. >modules</a> |</li>
  35. <li class="right" >
  36. <a href="pyad2usb.event.html" title="event Package"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="index.html" title="Welcome to pyad2usb’s documentation!"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="index.html">pyad2usb documentation</a> &raquo;</li>
  42. </ul>
  43. </div>
  44. <div class="document">
  45. <div class="documentwrapper">
  46. <div class="bodywrapper">
  47. <div class="body">
  48. <div class="section" id="pyad2usb-package">
  49. <h1>pyad2usb Package<a class="headerlink" href="#pyad2usb-package" title="Permalink to this headline">¶</a></h1>
  50. <div class="section" id="module-pyad2usb.ad2usb">
  51. <span id="ad2usb-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ad2usb</span></tt> Module<a class="headerlink" href="#module-pyad2usb.ad2usb" title="Permalink to this headline">¶</a></h2>
  52. <p>Provides the full AD2USB class and factory.</p>
  53. <dl class="class">
  54. <dt id="pyad2usb.ad2usb.Overseer">
  55. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">Overseer</tt><big>(</big><em>attached_event=None</em>, <em>detached_event=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer" title="Permalink to this definition">¶</a></dt>
  56. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  57. <p>Factory for creation of AD2USB devices as well as provide4s attach/detach events.&#8221;</p>
  58. <dl class="attribute">
  59. <dt id="pyad2usb.ad2usb.Overseer.on_attached">
  60. <tt class="descname">on_attached</tt><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.on_attached" title="Permalink to this definition">¶</a></dt>
  61. <dd><p>Called when an AD2USB device has been detected.</p>
  62. </dd></dl>
  63. <dl class="attribute">
  64. <dt id="pyad2usb.ad2usb.Overseer.on_detached">
  65. <tt class="descname">on_detached</tt><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.on_detached" title="Permalink to this definition">¶</a></dt>
  66. <dd><p>Called when an AD2USB device has been removed.</p>
  67. </dd></dl>
  68. <dl class="classmethod">
  69. <dt id="pyad2usb.ad2usb.Overseer.find_all">
  70. <em class="property">classmethod </em><tt class="descname">find_all</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.find_all" title="Permalink to this definition">¶</a></dt>
  71. <dd><p>Returns all AD2USB devices located on the system.</p>
  72. <table class="docutils field-list" frame="void" rules="none">
  73. <col class="field-name" />
  74. <col class="field-body" />
  75. <tbody valign="top">
  76. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">list of devices found</td>
  77. </tr>
  78. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. </dd></dl>
  83. <dl class="classmethod">
  84. <dt id="pyad2usb.ad2usb.Overseer.devices">
  85. <em class="property">classmethod </em><tt class="descname">devices</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.devices"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.devices" title="Permalink to this definition">¶</a></dt>
  86. <dd><p>Returns a cached list of AD2USB devices located on the system.</p>
  87. <table class="docutils field-list" frame="void" rules="none">
  88. <col class="field-name" />
  89. <col class="field-body" />
  90. <tbody valign="top">
  91. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">cached list of devices found.</td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. </dd></dl>
  96. <dl class="classmethod">
  97. <dt id="pyad2usb.ad2usb.Overseer.create">
  98. <em class="property">classmethod </em><tt class="descname">create</tt><big>(</big><em>device=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.create"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.create" title="Permalink to this definition">¶</a></dt>
  99. <dd><p>Factory method that returns the requested AD2USB device, or the first device.</p>
  100. <table class="docutils field-list" frame="void" rules="none">
  101. <col class="field-name" />
  102. <col class="field-body" />
  103. <tbody valign="top">
  104. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>device</strong> (<em>tuple</em>) &#8211; Tuple describing the USB device to open, as returned by find_all().</td>
  105. </tr>
  106. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">AD2USB object utilizing the specified device.</td>
  107. </tr>
  108. <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body">util.NoDeviceError</td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. </dd></dl>
  113. <dl class="method">
  114. <dt id="pyad2usb.ad2usb.Overseer.close">
  115. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.close" title="Permalink to this definition">¶</a></dt>
  116. <dd><p>Clean up and shut down.</p>
  117. </dd></dl>
  118. <dl class="method">
  119. <dt id="pyad2usb.ad2usb.Overseer.start">
  120. <tt class="descname">start</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.start" title="Permalink to this definition">¶</a></dt>
  121. <dd><p>Starts the detection thread, if not already running.</p>
  122. </dd></dl>
  123. <dl class="method">
  124. <dt id="pyad2usb.ad2usb.Overseer.stop">
  125. <tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.stop" title="Permalink to this definition">¶</a></dt>
  126. <dd><p>Stops the detection thread.</p>
  127. </dd></dl>
  128. <dl class="method">
  129. <dt id="pyad2usb.ad2usb.Overseer.get_device">
  130. <tt class="descname">get_device</tt><big>(</big><em>device=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.get_device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.get_device" title="Permalink to this definition">¶</a></dt>
  131. <dd><p>Factory method that returns the requested AD2USB device, or the first device.</p>
  132. <table class="docutils field-list" frame="void" rules="none">
  133. <col class="field-name" />
  134. <col class="field-body" />
  135. <tbody valign="top">
  136. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>device</strong> (<em>tuple</em>) &#8211; Tuple describing the USB device to open, as returned by find_all().</td>
  137. </tr>
  138. </tbody>
  139. </table>
  140. </dd></dl>
  141. <dl class="class">
  142. <dt id="pyad2usb.ad2usb.Overseer.DetectThread">
  143. <em class="property">class </em><tt class="descname">DetectThread</tt><big>(</big><em>overseer</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.DetectThread"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.DetectThread" title="Permalink to this definition">¶</a></dt>
  144. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></p>
  145. <p>Thread that handles detection of added/removed devices.</p>
  146. <dl class="method">
  147. <dt id="pyad2usb.ad2usb.Overseer.DetectThread.stop">
  148. <tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.DetectThread.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.DetectThread.stop" title="Permalink to this definition">¶</a></dt>
  149. <dd><p>Stops the thread.</p>
  150. </dd></dl>
  151. <dl class="method">
  152. <dt id="pyad2usb.ad2usb.Overseer.DetectThread.run">
  153. <tt class="descname">run</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.DetectThread.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.DetectThread.run" title="Permalink to this definition">¶</a></dt>
  154. <dd><p>The actual detection process.</p>
  155. </dd></dl>
  156. </dd></dl>
  157. </dd></dl>
  158. <dl class="class">
  159. <dt id="pyad2usb.ad2usb.AD2USB">
  160. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">AD2USB</tt><big>(</big><em>device</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB" title="Permalink to this definition">¶</a></dt>
  161. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  162. <p>High-level wrapper around AD2USB/AD2SERIAL devices.</p>
  163. <dl class="attribute">
  164. <dt id="pyad2usb.ad2usb.AD2USB.on_arm">
  165. <tt class="descname">on_arm</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_arm" title="Permalink to this definition">¶</a></dt>
  166. <dd><p>Called when the panel is armed.</p>
  167. </dd></dl>
  168. <dl class="attribute">
  169. <dt id="pyad2usb.ad2usb.AD2USB.on_disarm">
  170. <tt class="descname">on_disarm</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_disarm" title="Permalink to this definition">¶</a></dt>
  171. <dd><p>Called when the panel is disarmed.</p>
  172. </dd></dl>
  173. <dl class="attribute">
  174. <dt id="pyad2usb.ad2usb.AD2USB.on_power_changed">
  175. <tt class="descname">on_power_changed</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_power_changed" title="Permalink to this definition">¶</a></dt>
  176. <dd><p>Called when panel power switches between AC and DC.</p>
  177. </dd></dl>
  178. <dl class="attribute">
  179. <dt id="pyad2usb.ad2usb.AD2USB.on_alarm">
  180. <tt class="descname">on_alarm</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_alarm" title="Permalink to this definition">¶</a></dt>
  181. <dd><p>Called when the alarm is triggered.</p>
  182. </dd></dl>
  183. <dl class="attribute">
  184. <dt id="pyad2usb.ad2usb.AD2USB.on_fire">
  185. <tt class="descname">on_fire</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_fire" title="Permalink to this definition">¶</a></dt>
  186. <dd><p>Called when a fire is detected.</p>
  187. </dd></dl>
  188. <dl class="attribute">
  189. <dt id="pyad2usb.ad2usb.AD2USB.on_bypass">
  190. <tt class="descname">on_bypass</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_bypass" title="Permalink to this definition">¶</a></dt>
  191. <dd><p>Called when a zone is bypassed.</p>
  192. </dd></dl>
  193. <dl class="attribute">
  194. <dt id="pyad2usb.ad2usb.AD2USB.on_boot">
  195. <tt class="descname">on_boot</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_boot" title="Permalink to this definition">¶</a></dt>
  196. <dd><p>Called when the device finishes bootings.</p>
  197. </dd></dl>
  198. <dl class="attribute">
  199. <dt id="pyad2usb.ad2usb.AD2USB.on_config_received">
  200. <tt class="descname">on_config_received</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_config_received" title="Permalink to this definition">¶</a></dt>
  201. <dd><p>Called when the device receives its configuration.</p>
  202. </dd></dl>
  203. <dl class="attribute">
  204. <dt id="pyad2usb.ad2usb.AD2USB.on_zone_fault">
  205. <tt class="descname">on_zone_fault</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_zone_fault" title="Permalink to this definition">¶</a></dt>
  206. <dd><p>Called when the device detects a zone fault.</p>
  207. </dd></dl>
  208. <dl class="attribute">
  209. <dt id="pyad2usb.ad2usb.AD2USB.on_zone_restore">
  210. <tt class="descname">on_zone_restore</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_zone_restore" title="Permalink to this definition">¶</a></dt>
  211. <dd><p>Called when the device detects that a fault is restored.</p>
  212. </dd></dl>
  213. <dl class="attribute">
  214. <dt id="pyad2usb.ad2usb.AD2USB.on_low_battery">
  215. <tt class="descname">on_low_battery</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_low_battery" title="Permalink to this definition">¶</a></dt>
  216. <dd><p>Called when the device detects a low battery.</p>
  217. </dd></dl>
  218. <dl class="attribute">
  219. <dt id="pyad2usb.ad2usb.AD2USB.on_panic">
  220. <tt class="descname">on_panic</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_panic" title="Permalink to this definition">¶</a></dt>
  221. <dd><p>Called when the device detects a panic.</p>
  222. </dd></dl>
  223. <dl class="attribute">
  224. <dt id="pyad2usb.ad2usb.AD2USB.on_message">
  225. <tt class="descname">on_message</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_message" title="Permalink to this definition">¶</a></dt>
  226. <dd><p>Called when a message has been received from the device.</p>
  227. </dd></dl>
  228. <dl class="attribute">
  229. <dt id="pyad2usb.ad2usb.AD2USB.on_lrr_message">
  230. <tt class="descname">on_lrr_message</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_lrr_message" title="Permalink to this definition">¶</a></dt>
  231. <dd><p>Called when an LRR message is received.</p>
  232. </dd></dl>
  233. <dl class="attribute">
  234. <dt id="pyad2usb.ad2usb.AD2USB.on_open">
  235. <tt class="descname">on_open</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_open" title="Permalink to this definition">¶</a></dt>
  236. <dd><p>Called when the device has been opened.</p>
  237. </dd></dl>
  238. <dl class="attribute">
  239. <dt id="pyad2usb.ad2usb.AD2USB.on_close">
  240. <tt class="descname">on_close</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_close" title="Permalink to this definition">¶</a></dt>
  241. <dd><p>Called when the device has been closed.</p>
  242. </dd></dl>
  243. <dl class="attribute">
  244. <dt id="pyad2usb.ad2usb.AD2USB.on_read">
  245. <tt class="descname">on_read</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_read" title="Permalink to this definition">¶</a></dt>
  246. <dd><p>Called when a line has been read from the device.</p>
  247. </dd></dl>
  248. <dl class="attribute">
  249. <dt id="pyad2usb.ad2usb.AD2USB.on_write">
  250. <tt class="descname">on_write</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_write" title="Permalink to this definition">¶</a></dt>
  251. <dd><p>Called when data has been written to the device.</p>
  252. </dd></dl>
  253. <dl class="attribute">
  254. <dt id="pyad2usb.ad2usb.AD2USB.F1">
  255. <tt class="descname">F1</tt><em class="property"> = u'\x01\x01\x01'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F1" title="Permalink to this definition">¶</a></dt>
  256. <dd><p>Represents panel function key #1</p>
  257. </dd></dl>
  258. <dl class="attribute">
  259. <dt id="pyad2usb.ad2usb.AD2USB.F2">
  260. <tt class="descname">F2</tt><em class="property"> = u'\x02\x02\x02'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F2" title="Permalink to this definition">¶</a></dt>
  261. <dd><p>Represents panel function key #2</p>
  262. </dd></dl>
  263. <dl class="attribute">
  264. <dt id="pyad2usb.ad2usb.AD2USB.F3">
  265. <tt class="descname">F3</tt><em class="property"> = u'\x03\x03\x03'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F3" title="Permalink to this definition">¶</a></dt>
  266. <dd><p>Represents panel function key #3</p>
  267. </dd></dl>
  268. <dl class="attribute">
  269. <dt id="pyad2usb.ad2usb.AD2USB.F4">
  270. <tt class="descname">F4</tt><em class="property"> = u'\x04\x04\x04'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F4" title="Permalink to this definition">¶</a></dt>
  271. <dd><p>Represents panel function key #4</p>
  272. </dd></dl>
  273. <dl class="attribute">
  274. <dt id="pyad2usb.ad2usb.AD2USB.BATTERY_TIMEOUT">
  275. <tt class="descname">BATTERY_TIMEOUT</tt><em class="property"> = 30</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.BATTERY_TIMEOUT" title="Permalink to this definition">¶</a></dt>
  276. <dd><p>Timeout before the battery status reverts.</p>
  277. </dd></dl>
  278. <dl class="attribute">
  279. <dt id="pyad2usb.ad2usb.AD2USB.FIRE_TIMEOUT">
  280. <tt class="descname">FIRE_TIMEOUT</tt><em class="property"> = 30</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.FIRE_TIMEOUT" title="Permalink to this definition">¶</a></dt>
  281. <dd><p>Timeout before the fire status reverts.</p>
  282. </dd></dl>
  283. <dl class="attribute">
  284. <dt id="pyad2usb.ad2usb.AD2USB.id">
  285. <tt class="descname">id</tt><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.id" title="Permalink to this definition">¶</a></dt>
  286. <dd><p>The ID of the AD2USB device.</p>
  287. <table class="docutils field-list" frame="void" rules="none">
  288. <col class="field-name" />
  289. <col class="field-body" />
  290. <tbody valign="top">
  291. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The identification string for the device.</td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. </dd></dl>
  296. <dl class="method">
  297. <dt id="pyad2usb.ad2usb.AD2USB.open">
  298. <tt class="descname">open</tt><big>(</big><em>baudrate=None</em>, <em>interface=None</em>, <em>index=None</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.open" title="Permalink to this definition">¶</a></dt>
  299. <dd><p>Opens the device.</p>
  300. <table class="docutils field-list" frame="void" rules="none">
  301. <col class="field-name" />
  302. <col class="field-body" />
  303. <tbody valign="top">
  304. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  305. <li><strong>baudrate</strong> (<em>int</em>) &#8211; The baudrate used for the device.</li>
  306. <li><strong>interface</strong> (<em>varies depends on device type.. FIXME</em>) &#8211; The interface used for the device.</li>
  307. <li><strong>index</strong> (<em>int</em>) &#8211; Interface index.. can probably remove. FIXME</li>
  308. <li><strong>no_reader_thread</strong> (<em>bool</em>) &#8211; Specifies whether or not the automatic reader thread should be started or not</li>
  309. </ul>
  310. </td>
  311. </tr>
  312. </tbody>
  313. </table>
  314. </dd></dl>
  315. <dl class="method">
  316. <dt id="pyad2usb.ad2usb.AD2USB.close">
  317. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.close" title="Permalink to this definition">¶</a></dt>
  318. <dd><p>Closes the device.</p>
  319. </dd></dl>
  320. <dl class="method">
  321. <dt id="pyad2usb.ad2usb.AD2USB.get_config">
  322. <tt class="descname">get_config</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.get_config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.get_config" title="Permalink to this definition">¶</a></dt>
  323. <dd><p>Retrieves the configuration from the device.</p>
  324. </dd></dl>
  325. <dl class="method">
  326. <dt id="pyad2usb.ad2usb.AD2USB.save_config">
  327. <tt class="descname">save_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.save_config" title="Permalink to this definition">¶</a></dt>
  328. <dd><p>Sets configuration entries on the device.</p>
  329. </dd></dl>
  330. <dl class="method">
  331. <dt id="pyad2usb.ad2usb.AD2USB.reboot">
  332. <tt class="descname">reboot</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.reboot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.reboot" title="Permalink to this definition">¶</a></dt>
  333. <dd><p>Reboots the device.</p>
  334. </dd></dl>
  335. <dl class="method">
  336. <dt id="pyad2usb.ad2usb.AD2USB.fault_zone">
  337. <tt class="descname">fault_zone</tt><big>(</big><em>zone</em>, <em>simulate_wire_problem=False</em><big>)</big><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.fault_zone" title="Permalink to this definition">¶</a></dt>
  338. <dd><p>Faults a zone if we are emulating a zone expander.</p>
  339. <table class="docutils field-list" frame="void" rules="none">
  340. <col class="field-name" />
  341. <col class="field-body" />
  342. <tbody valign="top">
  343. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  344. <li><strong>zone</strong> (<em>int</em>) &#8211; The zone to fault.</li>
  345. <li><strong>simulate_wire_problem</strong> (<em>bool</em>) &#8211; Whether or not to simulate a wire fault.</li>
  346. </ul>
  347. </td>
  348. </tr>
  349. </tbody>
  350. </table>
  351. </dd></dl>
  352. <dl class="method">
  353. <dt id="pyad2usb.ad2usb.AD2USB.clear_zone">
  354. <tt class="descname">clear_zone</tt><big>(</big><em>zone</em><big>)</big><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.clear_zone" title="Permalink to this definition">¶</a></dt>
  355. <dd><p>Clears a zone if we are emulating a zone expander.</p>
  356. <table class="docutils field-list" frame="void" rules="none">
  357. <col class="field-name" />
  358. <col class="field-body" />
  359. <tbody valign="top">
  360. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>zone</strong> (<em>int</em>) &#8211; The zone to clear.</td>
  361. </tr>
  362. </tbody>
  363. </table>
  364. </dd></dl>
  365. </dd></dl>
  366. </div>
  367. <div class="section" id="module-pyad2usb.devices">
  368. <span id="devices-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">devices</span></tt> Module<a class="headerlink" href="#module-pyad2usb.devices" title="Permalink to this headline">¶</a></h2>
  369. <p>Contains different types of devices belonging to the AD2USB family.</p>
  370. <dl class="class">
  371. <dt id="pyad2usb.devices.Device">
  372. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">Device</tt><a class="reference internal" href="_modules/pyad2usb/devices.html#Device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device" title="Permalink to this definition">¶</a></dt>
  373. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  374. <p>Generic parent device to all AD2USB products.</p>
  375. <dl class="attribute">
  376. <dt id="pyad2usb.devices.Device.on_open">
  377. <tt class="descname">on_open</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_open" title="Permalink to this definition">¶</a></dt>
  378. <dd><p>Called when the device has been opened</p>
  379. </dd></dl>
  380. <dl class="attribute">
  381. <dt id="pyad2usb.devices.Device.on_close">
  382. <tt class="descname">on_close</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_close" title="Permalink to this definition">¶</a></dt>
  383. <dd><p>Called when the device has been closed</p>
  384. </dd></dl>
  385. <dl class="attribute">
  386. <dt id="pyad2usb.devices.Device.on_read">
  387. <tt class="descname">on_read</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_read" title="Permalink to this definition">¶</a></dt>
  388. <dd><p>Called when a line has been read from the device</p>
  389. </dd></dl>
  390. <dl class="attribute">
  391. <dt id="pyad2usb.devices.Device.on_write">
  392. <tt class="descname">on_write</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_write" title="Permalink to this definition">¶</a></dt>
  393. <dd><p>Called when data has been written to the device</p>
  394. </dd></dl>
  395. <dl class="attribute">
  396. <dt id="pyad2usb.devices.Device.id">
  397. <tt class="descname">id</tt><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.id" title="Permalink to this definition">¶</a></dt>
  398. <dd><p>Retrieve the device ID.</p>
  399. <table class="docutils field-list" frame="void" rules="none">
  400. <col class="field-name" />
  401. <col class="field-body" />
  402. <tbody valign="top">
  403. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The identification string for the device.</td>
  404. </tr>
  405. </tbody>
  406. </table>
  407. </dd></dl>
  408. <dl class="method">
  409. <dt id="pyad2usb.devices.Device.is_reader_alive">
  410. <tt class="descname">is_reader_alive</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.is_reader_alive"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.is_reader_alive" title="Permalink to this definition">¶</a></dt>
  411. <dd><p>Indicates whether or not the reader thread is alive.</p>
  412. <table class="docutils field-list" frame="void" rules="none">
  413. <col class="field-name" />
  414. <col class="field-body" />
  415. <tbody valign="top">
  416. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Whether or not the reader thread is alive.</td>
  417. </tr>
  418. </tbody>
  419. </table>
  420. </dd></dl>
  421. <dl class="method">
  422. <dt id="pyad2usb.devices.Device.stop_reader">
  423. <tt class="descname">stop_reader</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.stop_reader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.stop_reader" title="Permalink to this definition">¶</a></dt>
  424. <dd><p>Stops the reader thread.</p>
  425. </dd></dl>
  426. <dl class="class">
  427. <dt id="pyad2usb.devices.Device.ReadThread">
  428. <em class="property">class </em><tt class="descname">ReadThread</tt><big>(</big><em>device</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.ReadThread"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread" title="Permalink to this definition">¶</a></dt>
  429. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></p>
  430. <p>Reader thread which processes messages from the device.</p>
  431. <dl class="attribute">
  432. <dt id="pyad2usb.devices.Device.ReadThread.READ_TIMEOUT">
  433. <tt class="descname">READ_TIMEOUT</tt><em class="property"> = 10</em><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread.READ_TIMEOUT" title="Permalink to this definition">¶</a></dt>
  434. <dd><p>Timeout for the reader thread.</p>
  435. </dd></dl>
  436. <dl class="method">
  437. <dt id="pyad2usb.devices.Device.ReadThread.stop">
  438. <tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.ReadThread.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread.stop" title="Permalink to this definition">¶</a></dt>
  439. <dd><p>Stops the running thread.</p>
  440. </dd></dl>
  441. <dl class="method">
  442. <dt id="pyad2usb.devices.Device.ReadThread.run">
  443. <tt class="descname">run</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.ReadThread.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread.run" title="Permalink to this definition">¶</a></dt>
  444. <dd><p>The actual read process.</p>
  445. </dd></dl>
  446. </dd></dl>
  447. </dd></dl>
  448. <dl class="class">
  449. <dt id="pyad2usb.devices.USBDevice">
  450. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">USBDevice</tt><big>(</big><em>vid=1027</em>, <em>pid=24577</em>, <em>serial=None</em>, <em>description=None</em>, <em>interface=0</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice" title="Permalink to this definition">¶</a></dt>
  451. <dd><p>Bases: <a class="reference internal" href="#pyad2usb.devices.Device" title="pyad2usb.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">pyad2usb.devices.Device</span></tt></a></p>
  452. <p>AD2USB device exposed with PyFTDI&#8217;s interface.</p>
  453. <dl class="attribute">
  454. <dt id="pyad2usb.devices.USBDevice.FTDI_VENDOR_ID">
  455. <tt class="descname">FTDI_VENDOR_ID</tt><em class="property"> = 1027</em><a class="headerlink" href="#pyad2usb.devices.USBDevice.FTDI_VENDOR_ID" title="Permalink to this definition">¶</a></dt>
  456. <dd><p>Vendor ID used to recognize AD2USB devices.</p>
  457. </dd></dl>
  458. <dl class="attribute">
  459. <dt id="pyad2usb.devices.USBDevice.FTDI_PRODUCT_ID">
  460. <tt class="descname">FTDI_PRODUCT_ID</tt><em class="property"> = 24577</em><a class="headerlink" href="#pyad2usb.devices.USBDevice.FTDI_PRODUCT_ID" title="Permalink to this definition">¶</a></dt>
  461. <dd><p>Product ID used to recognize AD2USB devices.</p>
  462. </dd></dl>
  463. <dl class="attribute">
  464. <dt id="pyad2usb.devices.USBDevice.BAUDRATE">
  465. <tt class="descname">BAUDRATE</tt><em class="property"> = 115200</em><a class="headerlink" href="#pyad2usb.devices.USBDevice.BAUDRATE" title="Permalink to this definition">¶</a></dt>
  466. <dd><p>Default baudrate for AD2USB devices.</p>
  467. </dd></dl>
  468. <dl class="staticmethod">
  469. <dt id="pyad2usb.devices.USBDevice.find_all">
  470. <em class="property">static </em><tt class="descname">find_all</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.find_all" title="Permalink to this definition">¶</a></dt>
  471. <dd><p>Returns all FTDI devices matching our vendor and product IDs.</p>
  472. <table class="docutils field-list" frame="void" rules="none">
  473. <col class="field-name" />
  474. <col class="field-body" />
  475. <tbody valign="top">
  476. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">list of devices</td>
  477. </tr>
  478. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  479. </tr>
  480. </tbody>
  481. </table>
  482. </dd></dl>
  483. <dl class="method">
  484. <dt id="pyad2usb.devices.USBDevice.open">
  485. <tt class="descname">open</tt><big>(</big><em>baudrate=115200</em>, <em>interface=None</em>, <em>index=0</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.open" title="Permalink to this definition">¶</a></dt>
  486. <dd><p>Opens the device.</p>
  487. <table class="docutils field-list" frame="void" rules="none">
  488. <col class="field-name" />
  489. <col class="field-body" />
  490. <tbody valign="top">
  491. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  492. <li><strong>baudrate</strong> (<em>int</em>) &#8211; The baudrate to use.</li>
  493. <li><strong>interface</strong> (<em>int</em>) &#8211; The interface to use.</li>
  494. <li><strong>no_reader_thread</strong> (<em>bool</em>) &#8211; Whether or not to automatically start the reader thread.</li>
  495. </ul>
  496. </td>
  497. </tr>
  498. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">util.NoDeviceError</p>
  499. </td>
  500. </tr>
  501. </tbody>
  502. </table>
  503. </dd></dl>
  504. <dl class="method">
  505. <dt id="pyad2usb.devices.USBDevice.close">
  506. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.close" title="Permalink to this definition">¶</a></dt>
  507. <dd><p>Closes the device.</p>
  508. </dd></dl>
  509. <dl class="method">
  510. <dt id="pyad2usb.devices.USBDevice.write">
  511. <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.write" title="Permalink to this definition">¶</a></dt>
  512. <dd><p>Writes data to the device.</p>
  513. <table class="docutils field-list" frame="void" rules="none">
  514. <col class="field-name" />
  515. <col class="field-body" />
  516. <tbody valign="top">
  517. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>data</strong> (<em>str</em>) &#8211; Data to write</td>
  518. </tr>
  519. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  520. </tr>
  521. </tbody>
  522. </table>
  523. </dd></dl>
  524. <dl class="method">
  525. <dt id="pyad2usb.devices.USBDevice.read">
  526. <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.read" title="Permalink to this definition">¶</a></dt>
  527. <dd><p>Reads a single character from the device.</p>
  528. <table class="docutils field-list" frame="void" rules="none">
  529. <col class="field-name" />
  530. <col class="field-body" />
  531. <tbody valign="top">
  532. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The character read from the device.</td>
  533. </tr>
  534. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  535. </tr>
  536. </tbody>
  537. </table>
  538. </dd></dl>
  539. <dl class="method">
  540. <dt id="pyad2usb.devices.USBDevice.read_line">
  541. <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em>, <em>purge_buffer=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.read_line" title="Permalink to this definition">¶</a></dt>
  542. <dd><p>Reads a line from the device.</p>
  543. <table class="docutils field-list" frame="void" rules="none">
  544. <col class="field-name" />
  545. <col class="field-body" />
  546. <tbody valign="top">
  547. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  548. <li><strong>timeout</strong> (<em>float</em>) &#8211; Read timeout</li>
  549. <li><strong>purge_buffer</strong> (<em>bool</em>) &#8211; Indicates whether to purge the buffer prior to reading.</li>
  550. </ul>
  551. </td>
  552. </tr>
  553. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The line that was read.</p>
  554. </td>
  555. </tr>
  556. <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">util.CommError, util.TimeoutError</p>
  557. </td>
  558. </tr>
  559. </tbody>
  560. </table>
  561. </dd></dl>
  562. </dd></dl>
  563. <dl class="class">
  564. <dt id="pyad2usb.devices.SerialDevice">
  565. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">SerialDevice</tt><big>(</big><em>interface=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice" title="Permalink to this definition">¶</a></dt>
  566. <dd><p>Bases: <a class="reference internal" href="#pyad2usb.devices.Device" title="pyad2usb.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">pyad2usb.devices.Device</span></tt></a></p>
  567. <p>AD2USB or AD2SERIAL device exposed with the pyserial interface.</p>
  568. <dl class="attribute">
  569. <dt id="pyad2usb.devices.SerialDevice.BAUDRATE">
  570. <tt class="descname">BAUDRATE</tt><em class="property"> = 19200</em><a class="headerlink" href="#pyad2usb.devices.SerialDevice.BAUDRATE" title="Permalink to this definition">¶</a></dt>
  571. <dd><p>Default baudrate for Serial devices.</p>
  572. </dd></dl>
  573. <dl class="staticmethod">
  574. <dt id="pyad2usb.devices.SerialDevice.find_all">
  575. <em class="property">static </em><tt class="descname">find_all</tt><big>(</big><em>pattern=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.find_all" title="Permalink to this definition">¶</a></dt>
  576. <dd><p>Returns all serial ports present.</p>
  577. <table class="docutils field-list" frame="void" rules="none">
  578. <col class="field-name" />
  579. <col class="field-body" />
  580. <tbody valign="top">
  581. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pattern</strong> (<em>str</em>) &#8211; Pattern to search for when retrieving serial ports.</td>
  582. </tr>
  583. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">list of devices</td>
  584. </tr>
  585. <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  586. </tr>
  587. </tbody>
  588. </table>
  589. </dd></dl>
  590. <dl class="method">
  591. <dt id="pyad2usb.devices.SerialDevice.open">
  592. <tt class="descname">open</tt><big>(</big><em>baudrate=19200</em>, <em>interface=None</em>, <em>index=None</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.open" title="Permalink to this definition">¶</a></dt>
  593. <dd><p>Opens the device.</p>
  594. <table class="docutils field-list" frame="void" rules="none">
  595. <col class="field-name" />
  596. <col class="field-body" />
  597. <tbody valign="top">
  598. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  599. <li><strong>baudrate</strong> (<em>int</em>) &#8211; The baudrate to use with the device.</li>
  600. <li><strong>interface</strong> (<em>str</em>) &#8211; The device to open.</li>
  601. <li><strong>index</strong> (<em>int</em>) &#8211; Unused.</li>
  602. <li><strong>no_reader_thread</strong> (<em>bool</em>) &#8211; Whether or not to automatically start the reader thread.</li>
  603. </ul>
  604. </td>
  605. </tr>
  606. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">util.NoDeviceError</p>
  607. </td>
  608. </tr>
  609. </tbody>
  610. </table>
  611. </dd></dl>
  612. <dl class="method">
  613. <dt id="pyad2usb.devices.SerialDevice.close">
  614. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.close" title="Permalink to this definition">¶</a></dt>
  615. <dd><p>Closes the device.</p>
  616. </dd></dl>
  617. <dl class="method">
  618. <dt id="pyad2usb.devices.SerialDevice.write">
  619. <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.write" title="Permalink to this definition">¶</a></dt>
  620. <dd><p>Writes data to the device.</p>
  621. <table class="docutils field-list" frame="void" rules="none">
  622. <col class="field-name" />
  623. <col class="field-body" />
  624. <tbody valign="top">
  625. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>data</strong> (<em>str</em>) &#8211; The data to write.</td>
  626. </tr>
  627. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  628. </tr>
  629. </tbody>
  630. </table>
  631. </dd></dl>
  632. <dl class="method">
  633. <dt id="pyad2usb.devices.SerialDevice.read">
  634. <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.read" title="Permalink to this definition">¶</a></dt>
  635. <dd><p>Reads a single character from the device.</p>
  636. <table class="docutils field-list" frame="void" rules="none">
  637. <col class="field-name" />
  638. <col class="field-body" />
  639. <tbody valign="top">
  640. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The character read from the device.</td>
  641. </tr>
  642. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  643. </tr>
  644. </tbody>
  645. </table>
  646. </dd></dl>
  647. <dl class="method">
  648. <dt id="pyad2usb.devices.SerialDevice.read_line">
  649. <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em>, <em>purge_buffer=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.read_line" title="Permalink to this definition">¶</a></dt>
  650. <dd><p>Reads a line from the device.</p>
  651. <table class="docutils field-list" frame="void" rules="none">
  652. <col class="field-name" />
  653. <col class="field-body" />
  654. <tbody valign="top">
  655. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  656. <li><strong>timeout</strong> (<em>float</em>) &#8211; The read timeout.</li>
  657. <li><strong>purge_buffer</strong> (<em>bool</em>) &#8211; Indicates whether to purge the buffer prior to reading.</li>
  658. </ul>
  659. </td>
  660. </tr>
  661. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The line read.</p>
  662. </td>
  663. </tr>
  664. <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">util.CommError, util.TimeoutError</p>
  665. </td>
  666. </tr>
  667. </tbody>
  668. </table>
  669. </dd></dl>
  670. </dd></dl>
  671. <dl class="class">
  672. <dt id="pyad2usb.devices.SocketDevice">
  673. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">SocketDevice</tt><big>(</big><em>interface=('localhost'</em>, <em>10000)</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice" title="Permalink to this definition">¶</a></dt>
  674. <dd><p>Bases: <a class="reference internal" href="#pyad2usb.devices.Device" title="pyad2usb.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">pyad2usb.devices.Device</span></tt></a></p>
  675. <p>Device that supports communication with an AD2USB that is exposed via ser2sock or another
  676. Serial to IP interface.</p>
  677. <dl class="method">
  678. <dt id="pyad2usb.devices.SocketDevice.open">
  679. <tt class="descname">open</tt><big>(</big><em>baudrate=None</em>, <em>interface=None</em>, <em>index=0</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.open" title="Permalink to this definition">¶</a></dt>
  680. <dd><p>Opens the device.</p>
  681. <table class="docutils field-list" frame="void" rules="none">
  682. <col class="field-name" />
  683. <col class="field-body" />
  684. <tbody valign="top">
  685. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  686. <li><strong>baudrate</strong> (<em>int</em>) &#8211; The baudrate to use</li>
  687. <li><strong>interface</strong> (<em>tuple</em>) &#8211; The hostname and port to connect to.</li>
  688. <li><strong>index</strong> (<em>int</em>) &#8211; Unused</li>
  689. <li><strong>no_reader_thread</strong> (<em>bool</em>) &#8211; Whether or not to automatically open the reader thread.</li>
  690. </ul>
  691. </td>
  692. </tr>
  693. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">util.NoDeviceError</p>
  694. </td>
  695. </tr>
  696. </tbody>
  697. </table>
  698. </dd></dl>
  699. <dl class="method">
  700. <dt id="pyad2usb.devices.SocketDevice.close">
  701. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.close" title="Permalink to this definition">¶</a></dt>
  702. <dd><p>Closes the device.</p>
  703. </dd></dl>
  704. <dl class="method">
  705. <dt id="pyad2usb.devices.SocketDevice.write">
  706. <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.write" title="Permalink to this definition">¶</a></dt>
  707. <dd><p>Writes data to the device.</p>
  708. <table class="docutils field-list" frame="void" rules="none">
  709. <col class="field-name" />
  710. <col class="field-body" />
  711. <tbody valign="top">
  712. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>data</strong> (<em>str</em>) &#8211; The data to write.</td>
  713. </tr>
  714. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The number of bytes sent.</td>
  715. </tr>
  716. <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  717. </tr>
  718. </tbody>
  719. </table>
  720. </dd></dl>
  721. <dl class="method">
  722. <dt id="pyad2usb.devices.SocketDevice.read">
  723. <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.read" title="Permalink to this definition">¶</a></dt>
  724. <dd><p>Reads a single character from the device.</p>
  725. <table class="docutils field-list" frame="void" rules="none">
  726. <col class="field-name" />
  727. <col class="field-body" />
  728. <tbody valign="top">
  729. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The character read from the device.</td>
  730. </tr>
  731. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">util.CommError</td>
  732. </tr>
  733. </tbody>
  734. </table>
  735. </dd></dl>
  736. <dl class="method">
  737. <dt id="pyad2usb.devices.SocketDevice.read_line">
  738. <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em>, <em>purge_buffer=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.read_line" title="Permalink to this definition">¶</a></dt>
  739. <dd><p>Reads a line from the device.</p>
  740. <table class="docutils field-list" frame="void" rules="none">
  741. <col class="field-name" />
  742. <col class="field-body" />
  743. <tbody valign="top">
  744. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  745. <li><strong>timeout</strong> (<em>float</em>) &#8211; The read timeout.</li>
  746. <li><strong>purge_buffer</strong> (<em>bool</em>) &#8211; Indicates whether to purge the buffer prior to reading.</li>
  747. </ul>
  748. </td>
  749. </tr>
  750. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The line read from the device.</p>
  751. </td>
  752. </tr>
  753. <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">util.CommError, util.TimeoutError</p>
  754. </td>
  755. </tr>
  756. </tbody>
  757. </table>
  758. </dd></dl>
  759. </dd></dl>
  760. </div>
  761. <div class="section" id="module-pyad2usb.util">
  762. <span id="util-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">util</span></tt> Module<a class="headerlink" href="#module-pyad2usb.util" title="Permalink to this headline">¶</a></h2>
  763. <p>Provides utility classes for the AD2USB devices.</p>
  764. <dl class="exception">
  765. <dt id="pyad2usb.util.NoDeviceError">
  766. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">NoDeviceError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#NoDeviceError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.NoDeviceError" title="Permalink to this definition">¶</a></dt>
  767. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  768. <p>No devices found.</p>
  769. </dd></dl>
  770. <dl class="exception">
  771. <dt id="pyad2usb.util.CommError">
  772. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">CommError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#CommError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.CommError" title="Permalink to this definition">¶</a></dt>
  773. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  774. <p>There was an error communicating with the device.</p>
  775. </dd></dl>
  776. <dl class="exception">
  777. <dt id="pyad2usb.util.TimeoutError">
  778. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">TimeoutError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#TimeoutError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.TimeoutError" title="Permalink to this definition">¶</a></dt>
  779. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  780. <p>There was a timeout while trying to communicate with the device.</p>
  781. </dd></dl>
  782. <dl class="exception">
  783. <dt id="pyad2usb.util.InvalidMessageError">
  784. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">InvalidMessageError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#InvalidMessageError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.InvalidMessageError" title="Permalink to this definition">¶</a></dt>
  785. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  786. <p>The format of the panel message was invalid.</p>
  787. </dd></dl>
  788. <dl class="class">
  789. <dt id="pyad2usb.util.Firmware">
  790. <em class="property">class </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">Firmware</tt><a class="reference internal" href="_modules/pyad2usb/util.html#Firmware"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.Firmware" title="Permalink to this definition">¶</a></dt>
  791. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  792. <p>Represents firmware for the AD2USB/AD2SERIAL devices.</p>
  793. <dl class="attribute">
  794. <dt id="pyad2usb.util.Firmware.STAGE_START">
  795. <tt class="descname">STAGE_START</tt><em class="property"> = 0</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_START" title="Permalink to this definition">¶</a></dt>
  796. <dd></dd></dl>
  797. <dl class="attribute">
  798. <dt id="pyad2usb.util.Firmware.STAGE_WAITING">
  799. <tt class="descname">STAGE_WAITING</tt><em class="property"> = 1</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_WAITING" title="Permalink to this definition">¶</a></dt>
  800. <dd></dd></dl>
  801. <dl class="attribute">
  802. <dt id="pyad2usb.util.Firmware.STAGE_BOOT">
  803. <tt class="descname">STAGE_BOOT</tt><em class="property"> = 2</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_BOOT" title="Permalink to this definition">¶</a></dt>
  804. <dd></dd></dl>
  805. <dl class="attribute">
  806. <dt id="pyad2usb.util.Firmware.STAGE_LOAD">
  807. <tt class="descname">STAGE_LOAD</tt><em class="property"> = 3</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_LOAD" title="Permalink to this definition">¶</a></dt>
  808. <dd></dd></dl>
  809. <dl class="attribute">
  810. <dt id="pyad2usb.util.Firmware.STAGE_UPLOADING">
  811. <tt class="descname">STAGE_UPLOADING</tt><em class="property"> = 4</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_UPLOADING" title="Permalink to this definition">¶</a></dt>
  812. <dd></dd></dl>
  813. <dl class="attribute">
  814. <dt id="pyad2usb.util.Firmware.STAGE_DONE">
  815. <tt class="descname">STAGE_DONE</tt><em class="property"> = 5</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_DONE" title="Permalink to this definition">¶</a></dt>
  816. <dd></dd></dl>
  817. <dl class="staticmethod">
  818. <dt id="pyad2usb.util.Firmware.upload">
  819. <em class="property">static </em><tt class="descname">upload</tt><big>(</big><em>dev</em>, <em>filename</em>, <em>progress_callback=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/util.html#Firmware.upload"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.Firmware.upload" title="Permalink to this definition">¶</a></dt>
  820. <dd><p>Uploads firmware to an AD2USB/AD2SERIAL device.</p>
  821. <table class="docutils field-list" frame="void" rules="none">
  822. <col class="field-name" />
  823. <col class="field-body" />
  824. <tbody valign="top">
  825. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  826. <li><strong>filename</strong> (<em>str</em>) &#8211; The firmware filename</li>
  827. <li><strong>progress_callback</strong> (<em>function</em>) &#8211; Callback function used to report progress.</li>
  828. </ul>
  829. </td>
  830. </tr>
  831. <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">util.NoDeviceError, util.TimeoutError</p>
  832. </td>
  833. </tr>
  834. </tbody>
  835. </table>
  836. </dd></dl>
  837. </dd></dl>
  838. </div>
  839. <div class="section" id="module-pyad2usb.zonetracking">
  840. <span id="zonetracking-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">zonetracking</span></tt> Module<a class="headerlink" href="#module-pyad2usb.zonetracking" title="Permalink to this headline">¶</a></h2>
  841. <p>Provides zone tracking functionality for the AD2USB device family.</p>
  842. <dl class="class">
  843. <dt id="pyad2usb.zonetracking.Zone">
  844. <em class="property">class </em><tt class="descclassname">pyad2usb.zonetracking.</tt><tt class="descname">Zone</tt><big>(</big><em>zone=0</em>, <em>name=''</em>, <em>status=0</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/zonetracking.html#Zone"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.zonetracking.Zone" title="Permalink to this definition">¶</a></dt>
  845. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  846. <p>Representation of a panel zone.</p>
  847. <dl class="attribute">
  848. <dt id="pyad2usb.zonetracking.Zone.CLEAR">
  849. <tt class="descname">CLEAR</tt><em class="property"> = 0</em><a class="headerlink" href="#pyad2usb.zonetracking.Zone.CLEAR" title="Permalink to this definition">¶</a></dt>
  850. <dd><p>Status indicating that the zone is cleared.</p>
  851. </dd></dl>
  852. <dl class="attribute">
  853. <dt id="pyad2usb.zonetracking.Zone.FAULT">
  854. <tt class="descname">FAULT</tt><em class="property"> = 1</em><a class="headerlink" href="#pyad2usb.zonetracking.Zone.FAULT" title="Permalink to this definition">¶</a></dt>
  855. <dd><p>Status indicating that the zone is faulted.</p>
  856. </dd></dl>
  857. <dl class="attribute">
  858. <dt id="pyad2usb.zonetracking.Zone.CHECK">
  859. <tt class="descname">CHECK</tt><em class="property"> = 2</em><a class="headerlink" href="#pyad2usb.zonetracking.Zone.CHECK" title="Permalink to this definition">¶</a></dt>
  860. <dd><p>Status indicating that there is a wiring issue with the zone.</p>
  861. </dd></dl>
  862. <dl class="attribute">
  863. <dt id="pyad2usb.zonetracking.Zone.STATUS">
  864. <tt class="descname">STATUS</tt><em class="property"> = {0: 'CLEAR', 1: 'FAULT', 2: 'CHECK'}</em><a class="headerlink" href="#pyad2usb.zonetracking.Zone.STATUS" title="Permalink to this definition">¶</a></dt>
  865. <dd></dd></dl>
  866. </dd></dl>
  867. <dl class="class">
  868. <dt id="pyad2usb.zonetracking.Zonetracker">
  869. <em class="property">class </em><tt class="descclassname">pyad2usb.zonetracking.</tt><tt class="descname">Zonetracker</tt><a class="reference internal" href="_modules/pyad2usb/zonetracking.html#Zonetracker"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.zonetracking.Zonetracker" title="Permalink to this definition">¶</a></dt>
  870. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  871. <p>Handles tracking of zone and their statuses.</p>
  872. <dl class="attribute">
  873. <dt id="pyad2usb.zonetracking.Zonetracker.on_fault">
  874. <tt class="descname">on_fault</tt><a class="headerlink" href="#pyad2usb.zonetracking.Zonetracker.on_fault" title="Permalink to this definition">¶</a></dt>
  875. <dd><p>Called when the device detects a zone fault.</p>
  876. </dd></dl>
  877. <dl class="attribute">
  878. <dt id="pyad2usb.zonetracking.Zonetracker.on_restore">
  879. <tt class="descname">on_restore</tt><a class="headerlink" href="#pyad2usb.zonetracking.Zonetracker.on_restore" title="Permalink to this definition">¶</a></dt>
  880. <dd><p>Called when the device detects that a fault is restored.</p>
  881. </dd></dl>
  882. <dl class="attribute">
  883. <dt id="pyad2usb.zonetracking.Zonetracker.EXPIRE">
  884. <tt class="descname">EXPIRE</tt><em class="property"> = 30</em><a class="headerlink" href="#pyad2usb.zonetracking.Zonetracker.EXPIRE" title="Permalink to this definition">¶</a></dt>
  885. <dd><p>Zone expiration timeout.</p>
  886. </dd></dl>
  887. <dl class="method">
  888. <dt id="pyad2usb.zonetracking.Zonetracker.update">
  889. <tt class="descname">update</tt><big>(</big><em>message</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/zonetracking.html#Zonetracker.update"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.zonetracking.Zonetracker.update" title="Permalink to this definition">¶</a></dt>
  890. <dd><p>Update zone statuses based on the current message.</p>
  891. <table class="docutils field-list" frame="void" rules="none">
  892. <col class="field-name" />
  893. <col class="field-body" />
  894. <tbody valign="top">
  895. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>message</strong> (<em>Message or ExpanderMessage</em>) &#8211; Message to use to update the zone tracking.</td>
  896. </tr>
  897. </tbody>
  898. </table>
  899. </dd></dl>
  900. </dd></dl>
  901. </div>
  902. <div class="section" id="module-pyad2usb.panels">
  903. <span id="panels-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">panels</span></tt> Module<a class="headerlink" href="#module-pyad2usb.panels" title="Permalink to this headline">¶</a></h2>
  904. <p>Representations of Panels and their templates.</p>
  905. </div>
  906. <div class="section" id="module-pyad2usb.messages">
  907. <span id="messages-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">messages</span></tt> Module<a class="headerlink" href="#module-pyad2usb.messages" title="Permalink to this headline">¶</a></h2>
  908. <p>Message representations received from the panel through the AD2USB.</p>
  909. <dl class="class">
  910. <dt id="pyad2usb.messages.Message">
  911. <em class="property">class </em><tt class="descclassname">pyad2usb.messages.</tt><tt class="descname">Message</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/messages.html#Message"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.messages.Message" title="Permalink to this definition">¶</a></dt>
  912. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  913. <p>Represents a message from the alarm panel.</p>
  914. </dd></dl>
  915. <dl class="class">
  916. <dt id="pyad2usb.messages.ExpanderMessage">
  917. <em class="property">class </em><tt class="descclassname">pyad2usb.messages.</tt><tt class="descname">ExpanderMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/messages.html#ExpanderMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.messages.ExpanderMessage" title="Permalink to this definition">¶</a></dt>
  918. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  919. <p>Represents a message from a zone or relay expansion module.</p>
  920. <dl class="attribute">
  921. <dt id="pyad2usb.messages.ExpanderMessage.ZONE">
  922. <tt class="descname">ZONE</tt><em class="property"> = 0</em><a class="headerlink" href="#pyad2usb.messages.ExpanderMessage.ZONE" title="Permalink to this definition">¶</a></dt>
  923. <dd></dd></dl>
  924. <dl class="attribute">
  925. <dt id="pyad2usb.messages.ExpanderMessage.RELAY">
  926. <tt class="descname">RELAY</tt><em class="property"> = 1</em><a class="headerlink" href="#pyad2usb.messages.ExpanderMessage.RELAY" title="Permalink to this definition">¶</a></dt>
  927. <dd></dd></dl>
  928. </dd></dl>
  929. <dl class="class">
  930. <dt id="pyad2usb.messages.RFMessage">
  931. <em class="property">class </em><tt class="descclassname">pyad2usb.messages.</tt><tt class="descname">RFMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/messages.html#RFMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.messages.RFMessage" title="Permalink to this definition">¶</a></dt>
  932. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  933. <p>Represents a message from an RF receiver.</p>
  934. </dd></dl>
  935. <dl class="class">
  936. <dt id="pyad2usb.messages.LRRMessage">
  937. <em class="property">class </em><tt class="descclassname">pyad2usb.messages.</tt><tt class="descname">LRRMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/messages.html#LRRMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.messages.LRRMessage" title="Permalink to this definition">¶</a></dt>
  938. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  939. <p>Represent a message from a Long Range Radio.</p>
  940. </dd></dl>
  941. </div>
  942. <div class="section" id="subpackages">
  943. <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
  944. <div class="toctree-wrapper compound">
  945. <ul>
  946. <li class="toctree-l1"><a class="reference internal" href="pyad2usb.event.html">event Package</a><ul>
  947. <li class="toctree-l2"><a class="reference internal" href="pyad2usb.event.html#id1"><tt class="docutils literal"><span class="pre">event</span></tt> Package</a></li>
  948. <li class="toctree-l2"><a class="reference internal" href="pyad2usb.event.html#module-pyad2usb.event.event"><tt class="docutils literal"><span class="pre">event</span></tt> Module</a></li>
  949. </ul>
  950. </li>
  951. </ul>
  952. </div>
  953. </div>
  954. </div>
  955. </div>
  956. </div>
  957. </div>
  958. <div class="sphinxsidebar">
  959. <div class="sphinxsidebarwrapper">
  960. <h3><a href="index.html">Table Of Contents</a></h3>
  961. <ul>
  962. <li><a class="reference internal" href="#">pyad2usb Package</a><ul>
  963. <li><a class="reference internal" href="#module-pyad2usb.ad2usb"><tt class="docutils literal"><span class="pre">ad2usb</span></tt> Module</a></li>
  964. <li><a class="reference internal" href="#module-pyad2usb.devices"><tt class="docutils literal"><span class="pre">devices</span></tt> Module</a></li>
  965. <li><a class="reference internal" href="#module-pyad2usb.util"><tt class="docutils literal"><span class="pre">util</span></tt> Module</a></li>
  966. <li><a class="reference internal" href="#module-pyad2usb.zonetracking"><tt class="docutils literal"><span class="pre">zonetracking</span></tt> Module</a></li>
  967. <li><a class="reference internal" href="#module-pyad2usb.panels"><tt class="docutils literal"><span class="pre">panels</span></tt> Module</a></li>
  968. <li><a class="reference internal" href="#module-pyad2usb.messages"><tt class="docutils literal"><span class="pre">messages</span></tt> Module</a></li>
  969. <li><a class="reference internal" href="#subpackages">Subpackages</a><ul>
  970. </ul>
  971. </li>
  972. </ul>
  973. </li>
  974. </ul>
  975. <h4>Previous topic</h4>
  976. <p class="topless"><a href="index.html"
  977. title="previous chapter">Welcome to pyad2usb&#8217;s documentation!</a></p>
  978. <h4>Next topic</h4>
  979. <p class="topless"><a href="pyad2usb.event.html"
  980. title="next chapter">event Package</a></p>
  981. <h3>This Page</h3>
  982. <ul class="this-page-menu">
  983. <li><a href="_sources/pyad2usb.txt"
  984. rel="nofollow">Show Source</a></li>
  985. </ul>
  986. <div id="searchbox" style="display: none">
  987. <h3>Quick search</h3>
  988. <form class="search" action="search.html" method="get">
  989. <input type="text" name="q" />
  990. <input type="submit" value="Go" />
  991. <input type="hidden" name="check_keywords" value="yes" />
  992. <input type="hidden" name="area" value="default" />
  993. </form>
  994. <p class="searchtip" style="font-size: 90%">
  995. Enter search terms or a module, class or function name.
  996. </p>
  997. </div>
  998. <script type="text/javascript">$('#searchbox').show(0);</script>
  999. </div>
  1000. </div>
  1001. <div class="clearer"></div>
  1002. </div>
  1003. <div class="related">
  1004. <h3>Navigation</h3>
  1005. <ul>
  1006. <li class="right" style="margin-right: 10px">
  1007. <a href="genindex.html" title="General Index"
  1008. >index</a></li>
  1009. <li class="right" >
  1010. <a href="py-modindex.html" title="Python Module Index"
  1011. >modules</a> |</li>
  1012. <li class="right" >
  1013. <a href="pyad2usb.event.html" title="event Package"
  1014. >next</a> |</li>
  1015. <li class="right" >
  1016. <a href="index.html" title="Welcome to pyad2usb’s documentation!"
  1017. >previous</a> |</li>
  1018. <li><a href="index.html">pyad2usb documentation</a> &raquo;</li>
  1019. </ul>
  1020. </div>
  1021. <div class="footer">
  1022. &copy; Copyright 2013, Author.
  1023. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2b1.
  1024. </div>
  1025. </body>
  1026. </html>