comedi_config(8)

✨ comedi_config(8) ✨

okay bestie, welcome to the System Manager's Manual page for comedi_config πŸ’… this is a section 8 page, so it's for the sysadmin girlies. let's get into it 🫢


🌸 NAME 🌸

comedi_config β€” the COMEDI configuration utility, aka the lil tool that tells your comedi drivers what's up πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

comedi_config [OPTION]... /dev/comediN driver [param1[,param2]...]
comedi_config [OPTION]... -r /dev/comediN

πŸ¦‹ DESCRIPTION πŸ¦‹

So comedi_config is literally the tool you use to configure comedi drivers. But heads up bestie: you must have comedi support compiled into your kernel, or loaded as a separate module, before this utility will do anything for you. no kernel support, no vibes. periodt.

Every single control and measurement device gets associated with a particular comedi device file: /dev/comediN, where N is 0, 1, 2, 3, etc. What comedi_config lets you do is associate a particular driver and device with a comedi device file β€” and also configure the driver parameters for that specific device. it's giving matchmaker but for hardware πŸ’˜

You can also use comedi_config with optional parameters, and those are driver dependent β€” so every driver's got its own little wishlist. Parameters are specified as a comma-delimited list of integers, and those integers can be written as:

  • decimal, the normal way
  • hexadecimal, starting with 0x
  • octal, starting with 0

Also, a parameter may be left blank, which means 0. slay, defaults.

Some deets on what those params usually mean:

  • PCI-based devices typically require no parameters at all, though some let you specify the bus and slot of the card to configure as the first two parameters.
  • ISA-based devices typically use the first and second parameters to indicate I/O base address and interrupt level.

Want more info on the parameters individual drivers need? Go look in the comedi documentation, in the file drivers.txt, and in the Kernel drivers section of the Comedilib manual. iykyk πŸ“š


πŸ’… OPTIONS πŸ’…

comedi_config recognizes the following options:

  • -q, --quiet β€” Don't print output while running. shhh 🀫
  • -v, --verbose β€” Print verbose output while running. tell me EVERYTHING πŸ’¬
  • -V, --version β€” Print version number and exit.
  • -r, --remove β€” Remove (unconfigure) a previously configured device. it's giving breakup era πŸ’”
  • --read-buffer size β€” Set read buffer size to size kilobytes. The default size is 64k.
  • --write-buffer size β€” Set write buffer size to size kilobytes. The default size is 64k.
  • --subdevice-buffer num,size[,num,size]... β€” Set subdevice num buffer size to size kilobytes. More than one num,size pair may be specified, and the option may be used several times. stack 'em up 🧚
  • -i, --init-data, --init-data0 file β€” Upload initialization data (typically firmware) from file to the board.
  • --init-data1 file
  • --init-data2 file
  • --init-data3 file

Some drivers require more than one file for initialization data. Use these options to specify additional initialization data files. See the driver-specific documentation for further details. πŸ‘‘


🌈 CONFIGURATION FILE 🌈

[This section has not been implemented yet.]

okay so lowkey this part isn't done yet, but here's the plan bestie: a list of device configurations can be put into the file /etc/comedi.conf. This file takes the form:

<device> <driver> <param1>,<param2>,...

These configurations will be read and performed when the switch -a is used. This is potentially useful when run from an initialization script. automation queen ✨


πŸ’– EXAMPLES πŸ’–

A National Instruments PCI-MIO E series board can be configured to use /dev/comedi0 using the command:

comedi_config /dev/comedi0 ni_pcimio

A National Instruments AT-MIO E series board can be configured to use /dev/comedi3 using the command:

comedi_config /dev/comedi3 ni_atmio 0x220,3

This tells the driver that the board is configured for I/O base 0x220 and IRQ 3. see? told you the ISA ones want that base address and IRQ. ate. πŸ”₯


⭐ ADDITIONAL INFORMATION ⭐

Additional documentation may be found in the Configuration section of the Comedilib manual. go read it, it's iconic.


πŸ‘‘ SEE ALSO πŸ‘‘

comedi(7)


πŸ“ VERSION πŸ“

0.11.x


πŸ’œ AUTHOR πŸ’œ

David Schleef


and that's the whole page bestie 🫢 this was comedi_config(8) from the System Manager's Manual, version 0.11.x β€” no date on this one, it's just timeless like that πŸ’€βœ¨ go configure something, you got this 🌸