2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-05 01:36:39 +08:00
artiq/doc/manual/drivers_reference.rst
Robert Jordens 0bd54921af move default TCP ports from 8887... to 3250...
* 8888 is busy: IPython default among others
* 3250 seems less so and is the house number times ten here
2015-01-13 10:56:44 +08:00

44 lines
1.8 KiB
ReStructuredText

Drivers reference
=================
These drivers are for "slow" devices that are directly controlled by a PC, typically over a non-realtime channel such as USB.
Certain devices (such as the PDQ2) may still perform real-time operations by having certain controls physically connected to the core device (for example, the trigger and frame selection signals on the PDQ2). For handling such cases, parts of the drivers may be kernels executed on the core device.
Each driver is run in a separate "controller" that exposes a RPC interface (based on :class:`artiq.management.pc_rpc`) to its functions. The master never does direct I/O to the devices, but issues RPCs to the controllers when needed. As opposed to running everything on the master, this architecture has those main advantages:
* Each driver can be run on a different machine, which alleviates cabling issues and OS compatibility problems.
* Reduces the impact of driver crashes.
* Reduces the impact of driver memory leaks.
:mod:`artiq.devices.pdq2` module
----------------------------------
.. automodule:: artiq.devices.pdq2
:members:
:mod:`artiq.devices.lda` module
---------------------------------
.. automodule:: artiq.devices.lda.driver
:members:
Default TCP port list
---------------------
When writing a new driver, choose a free TCP port and add it to this list.
+--------------------------+--------------+
| Component | Default port |
+==========================+==============+
| Master (notifications) | 3250 |
+--------------------------+--------------+
| Master (control) | 3251 |
+--------------------------+--------------+
| PDQ2 | 3252 |
+--------------------------+--------------+
| LDA | 3253 |
+--------------------------+--------------+