Re: Fwd: Raspberry Pi Zero - GPIB
Scott Bouchard via Linux-gpib-general <[email protected]> Wed, 4 Feb 2026 14:47:28 +0000 (GMT)
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <[email protected]> |
--===============2801560531064331494== Content-Type: multipart/alternative; boundary="----=_Part_2477751_1108271826.1770216448544" ------=_Part_2477751_1108271826.1770216448544 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thanks, I have made that edit to the /etc/gpib.conf file /*********************************************************************** GPIB.CONF IEEE488 library config file ------------------- copyright : (C) 2002 by Frank Mori Hess (C) 1994 by C.Schroeter email : [email protected] ***************************************************************************/ /*************************************************************************** * * Syntax: * * interface { ... } starts new interface board section * device {...} device configuration * ***************************************************************************/ /* This section configures the configurable driver characteristics * for an interface board, such as board address, and interrupt level. * minor = 0 configures /dev/gpib0, minor = 1 configures /dev/gpib1, etc. */ interface { minor = 0 /* board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. */ board_type = "gpib_bitbang" /* type of interface board being used */ name = "violet" /* optional name, allows you to get a board descriptor using ibfind() */ pad = 0 /* primary address of interface */ sad = 0 /* secondary address of interface */ timeout = T3s /* timeout for commands */ eos = 0x0a /* 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 */ /* settings for boards that lack plug-n-play capability */ base = 0 /* Base io ADDRESS */ irq = 0 /* Interrupt request level */ dma = 0 /* DMA channel (zero disables) */ /* pci_bus and pci_slot can be used to distinguish two pci boards supported by the same driver */ /* pci_bus = 0 */ /* pci_slot = 7 */ master = yes /* interface board is system controller */ } /* This is how you might set up a pcIIa board on /dev/gpib1, uncomment to use. */ /******************* interface { minor = 1 board_type = "pcIIa" pad = 0 sad = 0 timeout = T3s eos = 0x0a set-reos = yes set-bin = no base = 0x2e1 irq = 7 dma = 1 master = yes } *********************/ /* Now the device sections define the device characteristics for each device. * These are only used if you want to open the device using ibfind() (instead * of ibdev() ) */ device { minor = 0 /* minor number for interface board this device is connected to */ name = "voltmeter" /* device mnemonic */ pad = 7 /* The Primary Address */ sad = 0 /* Secondary Address */ eos = 0xa /* EOS Byte */ set-reos = no /* Terminate read if EOS */ set-bin = no /* Compare EOS 8-bit */ } device { minor = 0 name = "scope" pad = 8 sad = 0 } I then tried the same command again, but now have this: scott@hpib:~ $ sudo gpib_config failed to open device file '/dev/gpib0' main: No such file or directory Looking in /dev, I don't have gpib0: ..... crw-rw-rw- 1 root root 10, 229 Feb 4 14:22 fuse crw-rw---- 1 root gpio 254, 0 Feb 4 14:22 gpiochip0 lrwxrwxrwx 1 root root 9 Feb 4 14:22 gpiochip4 -> gpiochip0 crw-rw---- 1 root gpio 242, 0 Feb 4 14:22 gpiomem crw------- 1 root root 10, 183 Feb 4 14:22 hwrng ...... Sorry this is such a headache.. Many hanks again, Scott. > On 04/02/2026 13:34 GMT dave penkler <[email protected]> wrote: > > > Hi Scott, > There is an issue with your gpib.conf > > scott@hpib:/dev $ sudo gpib_config > failed to configure boardtype: agilent_82357a > failed to configure board > main: Invalid argument > > Make sure that for > minor = 0 > board_type = "gpib_bitbang" > like Marcello advised. > cheers, > -Dave > > > > > > > On Tue, 3 Feb 2026 at 20:45, Scott Bouchard via Linux-gpib-general <[email protected] mailto:[email protected]> wrote: > > > Hi Marcello, > > > > Thank you for the troubleshooting guidance, I got to 'sudo gpib_config' before it went wrong. > > > > I have made a short log of the commands and outputs here: https://scottbouch.com/tmp/hp-ib-pi-zero-troubleshooting-1.log > > > > Many thanks, Scott. > > > > > > > On 03/02/2026 14:45 GMT marcello.carla via Linux-gpib-general <[email protected] mailto:[email protected]> wrote: > > > > > > > > > Dear Scott, > > > > > > After a fresh reboot, check if the gpib modules are in the right place: > > > > > > ls -l /lib/modules/`uname -r`/gpib > > > > > > then load the gpib_bitbang module: > > > > > > sudo modprobe gpib_bitbang > > > > > > With a proper gpib.conf file in /etc/ or in /usr/local/etc/ (or in both), > > > configure the driver: > > > > > > sudo gpib_config > > > > > > and set permissions for access by any user to the interface: > > > > > > sudo chmod 666 /dev/gpib0 > > > > > > Here is an example of the interface section in the gpib.conf file: > > > > > > interface { > > > minor = 0 /* board index, minor = 0 uses /dev/gpib0, > > > minor = 1 uses /dev/gpib1, etc. */ > > > board_type = "gpib_bitbang" /* type of interface board > > > being used */ > > > name = "violet" /* optional name, allows you to get a board > > > descriptor using ibfind() */ > > > pad = 0 /* primary address of interface */ > > > sad = 0 /* secondary address of interface */ > > > timeout = T3s /* timeout for commands */ > > > > > > eos = 0x0a /* 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 */ > > > > > > /* settings for boards that lack plug-n-play capability */ > > > base = 0 /* Base io ADDRESS */ > > > irq = 0 /* Interrupt request level */ > > > dma = 0 /* DMA channel (zero disables) */ > > > > > > /* pci_bus and pci_slot can be used to distinguish two pci boards > > > supported by the same driver */ > > > /* pci_bus = 0 */ > > > /* pci_slot = 7 */ > > > > > > master = yes /* interface board is system controller */ > > > } > > > > > > Let me know if and where this procedure fails. > > > > > > Good luck again! > > > > > > Marcello > > > > > > > > > On 2/3/26 14:19, Scott Bouchard via Linux-gpib-general wrote: > > > > Hi Michael, > > > > > > > > Thank you so much for the detailed instructions, and automation of the commands where possible. this has been a great guide. > > > > > > > > I tried again from scratch by downloading and installing a fresh image using the raspberry pi imager. > > > > > > > > I followed your guidance to the letter up to section 4.2 where I encountered issues similar to before: > > > > > > > > scott@hpib:~ $ sudo ldconfig && sudo gpib_config > > > > sudo: unable to resolve host hpib: Name or service not known > > > > sudo: unable to resolve host hpib: Name or service not known > > > > failed to open device file '/dev/gpib0' > > > > main: No such file or directory > > > > > > > > And indeed, /dev has no gpib contents. > > > > > > > > One new issue of this installation is the hostname of the Raspberry Pi... when I set it up I used "hpib" as it's hostname, but it didn't seem to stop progress so I just carried on. > > > > > > > > I copied ALL terminal commands issued, along with their outputs into a text file to hopefully help diagnosis, and I added my own //comments where relevant. This log can be downloaded from here (too long to email): https://scottbouch.com/tmp/hp-ib-pi-zero-setup.log > > > > > > > > > > > > Many thanks again, Scott. > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Linux-gpib-general mailing list > > > [email protected] mailto:[email protected] > > > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > > > > > > _______________________________________________ > > Linux-gpib-general mailing list > > [email protected] mailto:[email protected] > > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > > > ------=_Part_2477751_1108271826.1770216448544 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div class="default-style"> Thanks, </div> <div class="default-style"> </div> <div class="default-style"> I have made that edit to the /etc/gpib.conf file </div> <div class="default-style"> </div> <div class="default-style"> <div class="default-style"> /*********************************************************************** <br>GPIB.CONF IEEE488 library config file <br>------------------- </div> <div class="default-style"> copyright : (C) 2002 by Frank Mori Hess <br>(C) 1994 by C.Schroeter <br>email : [email protected] <br>***************************************************************************/ <br>/*************************************************************************** <br>* <br>* Syntax: <br>* <br>* interface { ... } starts new interface board section <br>* device {...} device configuration <br>* <br>***************************************************************************/ </div> <div class="default-style"> /* This section configures the configurable driver characteristics <br>* for an interface board, such as board address, and interrupt level. <br>* minor = 0 configures /dev/gpib0, minor = 1 configures /dev/gpib1, etc. <br>*/ </div> <div class="default-style"> interface { <br>minor = 0 /* board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. */ <br>board_type = "gpib_bitbang" /* type of interface board being used */ <br>name = "violet" /* optional name, allows you to get a board descriptor using ibfind() */ <br>pad = 0 /* primary address of interface */ <br>sad = 0 /* secondary address of interface */ <br>timeout = T3s /* timeout for commands */ </div> <div class="default-style"> eos = 0x0a /* EOS Byte, 0xa is newline and 0xd is carriage return */ <br>set-reos = yes /* Terminate read if EOS */ <br>set-bin = no /* Compare EOS 8-bit */ <br>set-xeos = no /* Assert EOI whenever EOS byte is sent */ <br>set-eot = yes /* Assert EOI with last byte on writes */ </div> <div class="default-style"> /* settings for boards that lack plug-n-play capability */ <br>base = 0 /* Base io ADDRESS */ <br>irq = 0 /* Interrupt request level */ <br>dma = 0 /* DMA channel (zero disables) */ </div> <div class="default-style"> /* pci_bus and pci_slot can be used to distinguish two pci boards supported by the same driver */ <br>/* pci_bus = 0 */ <br>/* pci_slot = 7 */ </div> <div class="default-style"> master = yes /* interface board is system controller */ <br>} </div> <div class="default-style"> /* This is how you might set up a pcIIa board on /dev/gpib1, uncomment to use. */ <br>/******************* <br>interface { <br>minor = 1 <br>board_type = "pcIIa" <br>pad = 0 <br>sad = 0 <br>timeout = T3s </div> <div class="default-style"> eos = 0x0a <br>set-reos = yes <br>set-bin = no </div> <div class="default-style"> base = 0x2e1 <br>irq = 7 <br>dma = 1 </div> <div class="default-style"> master = yes <br>} <br>*********************/ </div> <div class="default-style"> /* Now the device sections define the device characteristics for each device. <br>* These are only used if you want to open the device using ibfind() (instead <br>* of ibdev() ) <br>*/ </div> <div class="default-style"> device { <br>minor = 0 /* minor number for interface board this device is connected to */ <br>name = "voltmeter" /* device mnemonic */ <br>pad = 7 /* The Primary Address */ <br>sad = 0 /* Secondary Address */ </div> <div class="default-style"> eos = 0xa /* EOS Byte */ <br>set-reos = no /* Terminate read if EOS */ <br>set-bin = no /* Compare EOS 8-bit */ <br>} </div> <div class="default-style"> device { <br>minor = 0 <br>name = "scope" <br>pad = 8 <br>sad = 0 <br>} </div> </div> <div class="default-style"> </div> <div class="default-style"> </div> <div class="default-style"> </div> <div class="default-style"> I then tried the same command again, but now have this: </div> <div class="default-style"> </div> <div class="default-style"> scott@hpib:~ $ sudo gpib_config <br>failed to open device file '/dev/gpib0' <br>main: No such file or directory </div> <div class="default-style"> </div> <div class="default-style"> Looking in /dev, I don't have gpib0: </div> <div class="default-style"> </div> <div class="default-style"> ..... </div> <div class="default-style"> crw-rw-rw- 1 root root 10, 229 Feb 4 14:22 fuse <br>crw-rw---- 1 root gpio 254, 0 Feb 4 14:22 gpiochip0 <br>lrwxrwxrwx 1 root root 9 Feb 4 14:22 gpiochip4 -> gpiochip0 <br>crw-rw---- 1 root gpio 242, 0 Feb 4 14:22 gpiomem <br>crw------- 1 root root 10, 183 Feb 4 14:22 hwrng </div> <div class="default-style"> ...... </div> <div class="default-style"> </div> <div class="default-style"> </div> <div class="default-style"> Sorry this is such a headache.. </div> <div class="default-style"> </div> <div class="default-style"> Many hanks again, Scott. </div> <div class="default-style"> </div> <div class="default-style"> </div> <blockquote type="cite"> <div> On 04/02/2026 13:34 GMT dave penkler <[email protected]> wrote: </div> <div> </div> <div> </div> <div dir="ltr"> Hi Scott, <div> There is an issue with your gpib.conf </div> <div> <pre style="color: #000000;">scott@hpib:/dev $ sudo gpib_config failed to configure boardtype: agilent_82357a failed to configure board main: Invalid argument</pre> </div> <div> Make sure that for </div> <div> minor = 0 </div> <div> board_type = "gpib_bitbang" </div> <div> like Marcello advised. </div> <div> cheers, </div> <div> -Dave </div> <div> <pre style="color: #000000;"><br class="gmail-Apple-interchange-newline"> </pre> </div> </div> <br> <div class="gmail_quote gmail_quote_container"> <div class="gmail_attr" dir="ltr"> On Tue, 3 Feb 2026 at 20:45, Scott Bouchard via Linux-gpib-general <<a href="mailto:[email protected]">[email protected]</a>> wrote: </div> <blockquote> Hi Marcello, <br> <br>Thank you for the troubleshooting guidance, I got to 'sudo gpib_config' before it went wrong. <br> <br>I have made a short log of the commands and outputs here: <a href="https://scottbouch.com/tmp/hp-ib-pi-zero-troubleshooting-1.log" target="_blank" rel="noopener">https://scottbouch.com/tmp/hp-ib-pi-zero-troubleshooting-1.log</a> <br> <br>Many thanks, Scott. <br> <br> <br>> On 03/02/2026 14:45 GMT marcello.carla via Linux-gpib-general <<a href="mailto:[email protected]" target="_blank" rel="noopener">[email protected]</a>> wrote: <br>> <br>> <br>> Dear Scott, <br>> <br>> After a fresh reboot, check if the gpib modules are in the right place: <br>> <br>> ls -l /lib/modules/`uname -r`/gpib <br>> <br>> then load the gpib_bitbang module: <br>> <br>> sudo modprobe gpib_bitbang <br>> <br>> With a proper gpib.conf file in /etc/ or in /usr/local/etc/ (or in both), <br>> configure the driver: <br>> <br>> sudo gpib_config <br>> <br>> and set permissions for access by any user to the interface: <br>> <br>> sudo chmod 666 /dev/gpib0 <br>> <br>> Here is an example of the interface section in the gpib.conf file: <br>> <br>> interface { <br>> minor = 0 /* board index, minor = 0 uses /dev/gpib0, <br>> minor = 1 uses /dev/gpib1, etc. */ <br>> board_type = "gpib_bitbang" /* type of interface board <br>> being used */ <br>> name = "violet" /* optional name, allows you to get a board <br>> descriptor using ibfind() */ <br>> pad = 0 /* primary address of interface */ <br>> sad = 0 /* secondary address of interface */ <br>> timeout = T3s /* timeout for commands */ <br>> <br>> eos = 0x0a /* EOS Byte, 0xa is newline and 0xd is carriage <br>> return */ <br>> set-reos = yes /* Terminate read if EOS */ <br>> set-bin = no /* Compare EOS 8-bit */ <br>> set-xeos = no /* Assert EOI whenever EOS byte is sent */ <br>> set-eot = yes /* Assert EOI with last byte on writes */ <br>> <br>> /* settings for boards that lack plug-n-play capability */ <br>> base = 0 /* Base io ADDRESS */ <br>> irq = 0 /* Interrupt request level */ <br>> dma = 0 /* DMA channel (zero disables) */ <br>> <br>> /* pci_bus and pci_slot can be used to distinguish two pci boards <br>> supported by the same driver */ <br>> /* pci_bus = 0 */ <br>> /* pci_slot = 7 */ <br>> <br>> master = yes /* interface board is system controller */ <br>> } <br>> <br>> Let me know if and where this procedure fails. <br>> <br>> Good luck again! <br>> <br>> Marcello <br>> <br>> <br>> On 2/3/26 14:19, Scott Bouchard via Linux-gpib-general wrote: <br>> > Hi Michael, <br>> > <br>> > Thank you so much for the detailed instructions, and automation of the commands where possible. this has been a great guide. <br>> > <br>> > I tried again from scratch by downloading and installing a fresh image using the raspberry pi imager. <br>> > <br>> > I followed your guidance to the letter up to section 4.2 where I encountered issues similar to before: <br>> > <br>> > scott@hpib:~ $ sudo ldconfig && sudo gpib_config <br>> > sudo: unable to resolve host hpib: Name or service not known <br>> > sudo: unable to resolve host hpib: Name or service not known <br>> > failed to open device file '/dev/gpib0' <br>> > main: No such file or directory <br>> > <br>> > And indeed, /dev has no gpib contents. <br>> > <br>> > One new issue of this installation is the hostname of the Raspberry Pi... when I set it up I used "hpib" as it's hostname, but it didn't seem to stop progress so I just carried on. <br>> > <br>> > I copied ALL terminal commands issued, along with their outputs into a text file to hopefully help diagnosis, and I added my own //comments where relevant. This log can be downloaded from here (too long to email): <a href="https://scottbouch.com/tmp/hp-ib-pi-zero-setup.log" target="_blank" rel="noopener">https://scottbouch.com/tmp/hp-ib-pi-zero-setup.log</a> <br>> > <br>> > <br>> > Many thanks again, Scott. <br>> > <br>> > <br>> > <br>> <br>> <br>> _______________________________________________ <br>> Linux-gpib-general mailing list <br>> <a href="mailto:[email protected]" target="_blank" rel="noopener">[email protected]</a> <br>> <a href="https://lists.sourceforge.net/lists/listinfo/linux-gpib-general" target="_blank" rel="noopener">https://lists.sourceforge.net/lists/listinfo/linux-gpib-general</a> <br> <br> <br>_______________________________________________ <br>Linux-gpib-general mailing list <br><a href="mailto:[email protected]" target="_blank" rel="noopener">[email protected]</a> <br><a href="https://lists.sourceforge.net/lists/listinfo/linux-gpib-general" target="_blank" rel="noopener">https://lists.sourceforge.net/lists/listinfo/linux-gpib-general</a> </blockquote> </div> </blockquote> </body> </html> ------=_Part_2477751_1108271826.1770216448544-- --===============2801560531064331494== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2801560531064331494== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-gpib-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-gpib-general --===============2801560531064331494==--