Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:drivers:concepts [2021-03-07 06:44] mattias [Driver Class] |
blocks:drivers:concepts [2024-04-18 11:24] (current) admin [Using a Device Driver] |
||
---|---|---|---|
Line 11: | Line 11: | ||
If an adequate driver for your device already exists, using it is quite straightforward. | If an adequate driver for your device already exists, using it is quite straightforward. | ||
- | - Obtain the driver code. Drivers provided by PIXILAB may come as part of your Blocks installation, | + | - Obtain the drivers. Drivers provided by PIXILAB may come as part of your Blocks installation, |
- | - Install the file(s) into your Blocks server by copying all relevant files to the PIXILAB-Blocks-root/ | + | - Install the file(s) into your Blocks server by extracting the ZIP and then copying all relevant files to the PIXILAB-Blocks-root/ |
- | - Make sure to also copy the latest version of all files in //system// and // | + | - Some rarely used device drivers are located in the driver-archive directory. If you need any of those, move those over from the archive to the acive driver directory. While blocks ignore the source code (.ts) file and use the .js it still makes sense to move/copy both the .ts and .js file to keep them in the same place. |
+ | - Make sure to also copy the latest version of all files in //system// and // | ||
- Restart the Block server. | - Restart the Block server. | ||
- | :!: When installing the files downloaded above, take care when copying the files into an existing PIXILAB-Blocks-root/ | + | :!: When installing the files downloaded above, take care when copying the files into an existing PIXILAB-Blocks-root/ |
- | The driver(s) will now appear on the " | + | The driver(s) will now appear on the " |
===== Driver Development Prerequisites ===== | ===== Driver Development Prerequisites ===== | ||
Line 40: | Line 41: | ||
* Development tools and code, as described [[blocks: | * Development tools and code, as described [[blocks: | ||
* Access to the device to be controlled, as well as all relevant documentation. | * Access to the device to be controlled, as well as all relevant documentation. | ||
- | * If the device is controlled by serial data rather than a direct network connection, you'll need a [[blocks: | + | * If the device is controlled by serial data rather than a direct network connection, you'll need either a USB-to-serial interface if you're connecting through a PIXILAB Player or a [[blocks: |