<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 18: gpib_config error: Innappropriate ioctl for device</title><link href="https://sourceforge.net/p/linux-gpib/support-requests/18/" rel="alternate"/><link href="https://sourceforge.net/p/linux-gpib/support-requests/18/feed.atom" rel="self"/><id>https://sourceforge.net/p/linux-gpib/support-requests/18/</id><updated>2018-08-25T01:45:57.550000Z</updated><subtitle>Recent changes to 18: gpib_config error: Innappropriate ioctl for device</subtitle><entry><title>gpib_config error: Innappropriate ioctl for device</title><link href="https://sourceforge.net/p/linux-gpib/support-requests/18/" rel="alternate"/><published>2018-08-25T01:45:57.550000Z</published><updated>2018-08-25T01:45:57.550000Z</updated><author><name>Christian Teixeira</name><uri>https://sourceforge.net/u/cteixeira4066/</uri></author><id>https://sourceforge.net733c75a71d2383e742bab8a22358ac2a33605d20</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello. My machine used to be able to connect to my Agilent 34970A device through GPIB_USB_HS, but it updated (through some corporate machine forced update..) and I have been having some issues getting them both to reconnect.&lt;/p&gt;
&lt;p&gt;I'm running the 4.16.0-3rodete1-amd64 kernel &lt;/p&gt;
&lt;p&gt;I've installed linux-gpib-4.1.0, using the commands listed in the INSTALL file:&lt;br/&gt;
./configure&lt;br/&gt;
make&lt;br/&gt;
sudo make install&lt;/p&gt;
&lt;p&gt;I've also updated my /etc/gpib.conf:&lt;br/&gt;
/&lt;em&gt; This section configures the configurable driver characteristics&lt;br/&gt;
 * for an interface board, such as board address, and interrupt level.&lt;br/&gt;
 * minor = 0 configures /dev/gpib0, minor = 1 configures /dev/gpib1, etc.&lt;br/&gt;
&lt;/em&gt;/&lt;/p&gt;
&lt;p&gt;interface {&lt;br/&gt;
    minor = 0   /&lt;em&gt; board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. &lt;/em&gt;/&lt;br/&gt;
    board_type = "ni_usb_b" /&lt;em&gt; type of interface board being used &lt;/em&gt;/&lt;br/&gt;
    name = "violet" /&lt;em&gt; optional name, allows you to get a board descriptor using ibfind() &lt;/em&gt;/&lt;br/&gt;
    pad = 0 /&lt;em&gt; primary address of interface             &lt;/em&gt;/&lt;br/&gt;
    sad = 0 /&lt;em&gt; secondary address of interface           &lt;/em&gt;/&lt;br/&gt;
    timeout = T3s   /&lt;em&gt; timeout for commands &lt;/em&gt;/&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;eos = 0x0d  /* EOS Byte, 0xa is newline and 0xd is carriage return */
set-reos = yes  /* Terminate read if EOS */
set-bin = no    /* Compare EOS 8-bit */
set-xeos = no   /* Assert EOI whenever EOS byte is sent */
set-eot = yes   /* Assert EOI with last byte on writes */
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;/&lt;em&gt; settings for boards that lack plug-n-play capability &lt;/em&gt;/&lt;br/&gt;
    base = 0    /&lt;em&gt; Base io ADDRESS                  &lt;/em&gt;/&lt;br/&gt;
    irq  = 0    /&lt;em&gt; Interrupt request level &lt;/em&gt;/&lt;br/&gt;
    dma  = 0    /&lt;em&gt; DMA channel (zero disables)      &lt;/em&gt;/&lt;/p&gt;
&lt;p&gt;/&lt;em&gt; pci_bus and pci_slot can be used to distinguish two pci boards supported by the same driver &lt;/em&gt;/&lt;br/&gt;
/&lt;em&gt;  pci_bus = 0 &lt;/em&gt;/&lt;br/&gt;
/&lt;em&gt;  pci_slot = 7 &lt;/em&gt;/&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;master = yes    /* interface board is system controller */
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I then ran &lt;em&gt;sudo ldconfig&lt;/em&gt;  to get the gpib libraries in order&lt;br/&gt;
However, when I run the following command:&lt;br/&gt;
&lt;em&gt;sudo /usr/local/sbin/gpib_config&lt;/em&gt;&lt;br/&gt;
I get the following error:&lt;br/&gt;
&lt;em&gt;failed to bring board offline&lt;br/&gt;
failed to configure board&lt;br/&gt;
main: Inappropriate ioctl for device&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;How do I go about resolving this issue? I've been banging my head against a wall for quite some time. Help is very much appreciated!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>