Re: Fwd: Raspberry Pi Zero - GPIB
Scott Bouchard via Linux-gpib-general <[email protected]> Wed, 4 Feb 2026 18:38:53 +0000 (GMT)
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <[email protected]> |
--===============4198359020174617037== Content-Type: multipart/alternative; boundary="----=_Part_2559964_929268451.1770230333730" ------=_Part_2559964_929268451.1770230333730 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thanks! That's a lot more promising! scott@hpib:~ $ sudo modprobe gpib_bitbang scott@hpib:~ $ sudo gpib_config scott@hpib:~ $ sudo ibtest Do you wish to open a (d)evice or an interface (b)oard? (you probably want to open a device): b enter name of interface board (or device) you wish to open: violet trying to open board named 'violet' You can: w(a)it for an event write (c)ommand bytes to bus (system controller only) send (d)evice clear (device only) change remote (e)nable line (system controller only) (g)o to standby (release ATN line, system controller only) send (i)nterface clear (system controller only) ta(k)e control (assert ATN line, system controller only) get bus (l)ine status (board only) go to local (m)ode change end (o)f transmission configuration end read on recei(p)t of EOS character (q)uit (r)ead string perform (s)erial poll (device only) change (t)imeout on io operations request ser(v)ice (board only) (w)rite data string send group e(x)ecute trigger (device only) : l DAV off NDAC off NRFD off IFC off REN on SRQ off ATN off EOI off gpib status is: ibsta = 0x160 < CMPL REM CIC > iberr= 0 ibcntl = 0 Thank you all so much for the support and patience with someone who clearly didn't know what they were doing! With it connected to the (HP54501A) oscilloscope, I had a play around with "ibtest", and in "(r)ead string" mode, I pressed the HARD COPY button (with the scope in "talk only" mode) and was delighted to see some data appear at the terminal: : r enter maximum number of bytes to read [1024]: 1024 trying to read 1024 bytes from device... received binary data (hex): 1b 26 6c 36 36 50 1b 2a 72 36 34 30 53 1b 2a 72 41 1b 2a 62 37 34 57 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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62 37 34 57 42 42 0 0 40 44 44 44 10 44 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 84 10 10 80 10 10 10 0 0 0 0 0 1b 2a 62 37 34 57 82 42 0 0 40 44 44 44 10 44 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 84 10 10 80 10 10 10 0 0 0 0 0 1b 2a 62 37 34 57 84 fc 0 0 40 4c 44 44 10 44 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 84 10 10 80 10 10 10 0 0 0 0 0 1b 2a 62 37 34 57 0 80 0 0 40 34 44 44 38 44 3c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78 10 7c fc 7c 10 10 0 0 0 0 0 1b 2a 62 37 34 57 1 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1b 2a 62 37 34 57 1 0 0 0 0 0 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Number of bytes read: 1024 gpib status is: ibsta = 0x160 < CMPL REM CIC > iberr= 0 I imagine there may be a way to turn this into an image of the screen? Cheers, Scott. > On 04/02/2026 16:18 GMT dave penkler <[email protected]> wrote: > > > OK, you need to do > $ sudo modprobe gpib_bitbang > before > $ sudo gpib_config > Then to check whether the config is OK > $ sudo ibtest > b (open board) > violet (name of board) > l (line status) > q (quit) > $ > cheers, > -Dave > > On Wed, 4 Feb 2026 at 15:47, Scott Bouchard <[email protected] mailto:[email protected]> wrote: > > > 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] mailto:[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] mailto:[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_2559964_929268451.1770230333730 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!doctype html> <html> <head>=20 <meta charset=3D"UTF-8">=20 </head> <body> <div> Thanks! </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style"> That's a lot more promising! </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style">=20 <div class=3D"default-style"> scott@hpib:~ $ sudo modprobe gpib_bitbang <br>scott@hpib:~ $ sudo gpib_config <br>scott@hpib:~ $ sudo ibtest <br>Do you wish to open a (d)evice or an interface (b)oard? <br>(you probably want to open a device): b <br>enter name of interface board (or device) you wish to open: violet <br>trying to open board named 'violet' <br>You can: <br>w(a)it for an event <br>write (c)ommand bytes to bus (system controller only) <br>send (d)evice clear (device only) <br>change remote (e)nable line (system controller only) <br>(g)o to standby (release ATN line, system controller only) <br>send (i)nterface clear (system controller only) <br>ta(k)e control (assert ATN line, system controller only) <br>get bus (l)ine status (board only) <br>go to local (m)ode <br>change end (o)f transmission configuration <br>end read on recei(p)t of EOS character <br>(q)uit <br>(r)ead string <br>perform (s)erial poll (device only) <br>change (t)imeout on io operations <br>request ser(v)ice (board only) <br>(w)rite data string <br>send group e(x)ecute trigger (device only) <br>: l <br>DAV off <br>NDAC off <br>NRFD off <br>IFC off <br>REN on <br>SRQ off <br>ATN off <br>EOI off <br>gpib status is:=20 <br>ibsta =3D 0x160 < CMPL REM CIC > <br>iberr=3D 0 </div>=20 <div class=3D"default-style"> ibcntl =3D 0 </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style"> Thank you all so much for the support and patience with someone who cle= arly didn't know what they were doing! </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style"> With it connected to the (HP54501A) oscilloscope, I had a play around w= ith "ibtest", and in "(r)ead string" mode, I pressed the HARD COPY button (= with the scope in "talk only" mode) and was delighted to see some data appe= ar at the terminal: </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style"> : r <br>enter maximum number of bytes to read [1024]: 1024 <br>trying to read 1024 bytes from device... <br>received binary data (hex): 1b 26 6c 36 36 50 1b 2a 72 36 34 30 53 = 1b 2a 72 41 1b 2a 62 37 34 57 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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84 10 10 80 10 10 28 0 0 0 0 0 1b 2a 62 37 34 57 42 42 0 0 40 44 44 = 44 10 44 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 84 10 10 80 10 10 10 0 0 0 0 0 1b 2a= 62 37 34 57 82 42 0 0 40 44 44 44 10 44 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 84 1= 0 10 80 10 10 10 0 0 0 0 0 1b 2a 62 37 34 57 84 fc 0 0 40 4c 44 44 10 44 44= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 84 10 10 80 10 10 10 0 0 0 0 0 1b 2a 62 37 34 5= 7 0 80 0 0 40 34 44 44 38 44 3c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78 10 7c fc 7c 1= 0 10 0 0 0 0 0 1b 2a 62 37 34 57 1 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1b 2a 62 37 34 57 1 0 0 0 0 0 0 0 0 0 44 0 0= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0=20 <br>Number of bytes read: 1024 <br>gpib status is:=20 <br>ibsta =3D 0x160 < CMPL REM CIC > <br>iberr=3D 0 </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style"> I imagine there may be a way to turn this into an image of the screen? </div>=20 <div class=3D"default-style"> </div>=20 <div class=3D"default-style"> Cheers, Scott. </div>=20 <div class=3D"default-style"> </div>=20 </div>=20 <div class=3D"default-style"> </div>=20 <blockquote type=3D"cite">=20 <div> On 04/02/2026 16:18 GMT dave penkler <[email protected]> wrote: </div>=20 <div> </div>=20 <div> </div>=20 <div dir=3D"ltr"> OK, you need to do =20 <div> $ sudo modprobe gpib_bitbang </div>=20 <div> before </div>=20 <div> $ sudo gpib_config </div>=20 <div> Then to check whether the config is OK </div>=20 <div> $ sudo ibtest </div>=20 <div> b (open board) </div>=20 <div> violet (name of board) </div>=20 <div> l (line status) </div>=20 <div> q (quit) </div>=20 <div> $ </div>=20 <div> cheers, </div>=20 <div> -Dave </div>=20 </div>=20 <br>=20 <div class=3D"gmail_quote gmail_quote_container">=20 <div class=3D"gmail_attr" dir=3D"ltr"> On Wed, 4 Feb 2026 at 15:47, Scott Bouchard <<a href=3D"mailto:scot= [email protected]">[email protected]</a>> wrote: </div>=20 <blockquote> <u></u>=20 <div>=20 <div> Thanks, </div>=20 <div> </div>=20 <div> I have made that edit to the /etc/gpib.conf file </div>=20 <div> </div>=20 <div>=20 <div> /******************************************************************= *****=20 <br>GPIB.CONF IEEE488 library config file=20 <br>------------------- </div>=20 <div> copyright : (C) 2002 by Frank Mori Hess=20 <br>(C) 1994 by C.Schroeter=20 <br>email : <a href=3D"mailto:[email protected]" target= =3D"_blank" rel=3D"noopener">[email protected]</a>=20 <br>***************************************************************= ************/=20 <br>/**************************************************************= *************=20 <br>*=20 <br>* Syntax:=20 <br>*=20 <br>* interface { ... } starts new interface board section=20 <br>* device {...} device configuration=20 <br>*=20 <br>***************************************************************= ************/ </div>=20 <div> /* This section configures the configurable driver characteristics= =20 <br>* for an interface board, such as board address, and interrupt = level.=20 <br>* minor =3D 0 configures /dev/gpib0, minor =3D 1 configures /de= v/gpib1, etc.=20 <br>*/ </div>=20 <div> interface {=20 <br>minor =3D 0 /* board index, minor =3D 0 uses /dev/gpib0, minor = =3D 1 uses /dev/gpib1, etc. */=20 <br>board_type =3D "gpib_bitbang" /* type of interface board being = used */=20 <br>name =3D "violet" /* optional name, allows you to get a board d= escriptor using ibfind() */=20 <br>pad =3D 0 /* primary address of interface */=20 <br>sad =3D 0 /* secondary address of interface */=20 <br>timeout =3D T3s /* timeout for commands */ </div>=20 <div> eos =3D 0x0a /* EOS Byte, 0xa is newline and 0xd is carriage return= */=20 <br>set-reos =3D yes /* Terminate read if EOS */=20 <br>set-bin =3D no /* Compare EOS 8-bit */=20 <br>set-xeos =3D no /* Assert EOI whenever EOS byte is sent */=20 <br>set-eot =3D yes /* Assert EOI with last byte on writes */ </div>=20 <div> /* settings for boards that lack plug-n-play capability */=20 <br>base =3D 0 /* Base io ADDRESS */=20 <br>irq =3D 0 /* Interrupt request level */=20 <br>dma =3D 0 /* DMA channel (zero disables) */ </div>=20 <div> /* pci_bus and pci_slot can be used to distinguish two pci boards s= upported by the same driver */=20 <br>/* pci_bus =3D 0 */=20 <br>/* pci_slot =3D 7 */ </div>=20 <div> master =3D yes /* interface board is system controller */=20 <br>} </div>=20 <div> /* This is how you might set up a pcIIa board on /dev/gpib1, uncomm= ent to use. */=20 <br>/*******************=20 <br>interface {=20 <br>minor =3D 1=20 <br>board_type =3D "pcIIa"=20 <br>pad =3D 0=20 <br>sad =3D 0=20 <br>timeout =3D T3s </div>=20 <div> eos =3D 0x0a=20 <br>set-reos =3D yes=20 <br>set-bin =3D no </div>=20 <div> base =3D 0x2e1=20 <br>irq =3D 7=20 <br>dma =3D 1 </div>=20 <div> master =3D yes=20 <br>}=20 <br>*********************/ </div>=20 <div> /* Now the device sections define the device characteristics for ea= ch device.=20 <br>* These are only used if you want to open the device using ibfi= nd() (instead=20 <br>* of ibdev() )=20 <br>*/ </div>=20 <div> device {=20 <br>minor =3D 0 /* minor number for interface board this device is = connected to */=20 <br>name =3D "voltmeter" /* device mnemonic */=20 <br>pad =3D 7 /* The Primary Address */=20 <br>sad =3D 0 /* Secondary Address */ </div>=20 <div> eos =3D 0xa /* EOS Byte */=20 <br>set-reos =3D no /* Terminate read if EOS */=20 <br>set-bin =3D no /* Compare EOS 8-bit */=20 <br>} </div>=20 <div> device {=20 <br>minor =3D 0=20 <br>name =3D "scope"=20 <br>pad =3D 8=20 <br>sad =3D 0=20 <br>} </div>=20 </div>=20 <div> </div>=20 <div> </div>=20 <div> </div>=20 <div> I then tried the same command again, but now have this: </div>=20 <div> </div>=20 <div> scott@hpib:~ $ sudo gpib_config=20 <br>failed to open device file '/dev/gpib0'=20 <br>main: No such file or directory </div>=20 <div> </div>=20 <div> Looking in /dev, I don't have gpib0: </div>=20 <div> </div>=20 <div> ..... </div>=20 <div> crw-rw-rw- 1 root root 10, 229 Feb 4 14:22 fuse=20 <br>crw-rw---- 1 root gpio 254, 0 Feb 4 14:22 gpiochip0=20 <br>lrwxrwxrwx 1 root root 9 Feb 4 14:22 gpiochip4 -> gpiochip0= =20 <br>crw-rw---- 1 root gpio 242, 0 Feb 4 14:22 gpiomem=20 <br>crw------- 1 root root 10, 183 Feb 4 14:22 hwrng </div>=20 <div> ...... </div>=20 <div> </div>=20 <div> </div>=20 <div> Sorry this is such a headache.. </div>=20 <div> </div>=20 <div> Many hanks again, Scott. </div>=20 <div> </div>=20 <div> </div>=20 <blockquote type=3D"cite">=20 <div> On 04/02/2026 13:34 GMT dave penkler <<a href=3D"mailto:dpenkler= @gmail.com" target=3D"_blank" rel=3D"noopener">[email protected]</a>> w= rote: </div>=20 <div> </div>=20 <div> </div>=20 <div dir=3D"ltr"> Hi Scott,=20 <div> There is an issue with your gpib.conf </div>=20 <div>=20 <pre style=3D"color: #000000;">scott@hpib:/dev $ sudo gpib_config failed to configure boardtype: agilent_82357a failed to configure board main: Invalid argument</pre>=20 </div>=20 <div> Make sure that for </div>=20 <div> minor =3D 0 </div>=20 <div> board_type =3D "gpib_bitbang" </div>=20 <div> like Marcello advised. </div>=20 <div> cheers, </div>=20 <div> -Dave </div>=20 <div>=20 <pre style=3D"color: #000000;"><br> </pre>=20 </div>=20 </div>=20 <br>=20 <div class=3D"gmail_quote">=20 <div class=3D"gmail_attr" dir=3D"ltr"> On Tue, 3 Feb 2026 at 20:45, Scott Bouchard via Linux-gpib-general= <<a href=3D"mailto:[email protected]" target=3D"= _blank" rel=3D"noopener">[email protected]</a>> w= rote: </div>=20 <blockquote> Hi Marcello,=20 <br> <br>Thank you for the troubleshooting guidance, I got to 'sudo gpi= b_config' before it went wrong.=20 <br> <br>I have made a short log of the commands and outputs here: <a h= ref=3D"https://scottbouch.com/tmp/hp-ib-pi-zero-troubleshooting-1.log" targ= et=3D"_blank" rel=3D"noopener">https://scottbouch.com/tmp/hp-ib-pi-zero-tro= ubleshooting-1.log</a>=20 <br> <br>Many thanks, Scott.=20 <br> <br> <br>> On 03/02/2026 14:45 GMT marcello.carla via Linux-gpib-gen= eral <<a href=3D"mailto:[email protected]" target= =3D"_blank" rel=3D"noopener">[email protected]</a>&g= t; wrote:=20 <br>>=20 <br>> =20 <br>> Dear Scott,=20 <br>>=20 <br>> After a fresh reboot, check if the gpib modules are in th= e right place:=20 <br>>=20 <br>> ls -l /lib/modules/`uname -r`/gpib=20 <br>>=20 <br>> then load the gpib_bitbang module:=20 <br>>=20 <br>> sudo modprobe gpib_bitbang=20 <br>>=20 <br>> With a proper gpib.conf file in /etc/ or in /usr/local/et= c/ (or in both),=20 <br>> configure the driver:=20 <br>>=20 <br>> sudo gpib_config=20 <br>>=20 <br>> and set permissions for access by any user to the interfa= ce:=20 <br>>=20 <br>> sudo chmod 666 /dev/gpib0=20 <br>>=20 <br>> Here is an example of the interface section in the gpib.c= onf file:=20 <br>>=20 <br>> interface {=20 <br>> minor =3D 0  = ; /* board index, minor =3D 0 uses /dev/gpib0,=20 <br>> minor =3D 1 uses /dev/gpib1, etc. */=20 <br>> board_type =3D "gpib_bi= tbang" /* type of interface board=20 <br>> being used */=20 <br>> name =3D "violet" /* op= tional name, allows you to get a board=20 <br>> descriptor using ibfind() */=20 <br>> pad =3D 0 /* primary ad= dress of interface */=20 <br>> sad =3D 0 /* secondary = address of interface */=20 <br>> timeout =3D T3s &= nbsp;/* timeout for commands */=20 <br>>=20 <br>> eos =3D 0x0a &nbs= p; /* EOS Byte, 0xa is newline and 0xd is carriage=20 <br>> return */=20 <br>> set-reos =3D yes = /* Terminate read if EOS */=20 <br>> set-bin =3D no &n= bsp; /* Compare EOS 8-bit */=20 <br>> set-xeos =3D no &= nbsp;/* Assert EOI whenever EOS byte is sent */=20 <br>> set-eot =3D yes &= nbsp;/* Assert EOI with last byte on writes */=20 <br>>=20 <br>> /* settings for boards that lack plug-n-play capability *= /=20 <br>> base =3D 0 = /* Base io ADDRESS = */=20 <br>> irq =3D 0 &= nbsp; /* Interrupt request level */=20 <br>> dma =3D 0 &= nbsp; /* DMA channel (zero disables) */= =20 <br>>=20 <br>> /* pci_bus and pci_slot can be used to distinguish two pc= i boards=20 <br>> supported by the same driver */=20 <br>> /* pci_bus =3D 0 */=20 <br>> /* pci_slot =3D 7 */=20 <br>>=20 <br>> master =3D yes &n= bsp; /* interface board is system controller */=20 <br>> }=20 <br>>=20 <br>> Let me know if and where this procedure fails.=20 <br>>=20 <br>> Good luck again!=20 <br>>=20 <br>> Marcello=20 <br>>=20 <br>>=20 <br>> On 2/3/26 14:19, Scott Bouchard via Linux-gpib-general wr= ote:=20 <br>> > Hi Michael,=20 <br>> >=20 <br>> > Thank you so much for the detailed instructions, and= automation of the commands where possible. this has been a great guide.=20 <br>> >=20 <br>> > I tried again from scratch by downloading and instal= ling a fresh image using the raspberry pi imager.=20 <br>> >=20 <br>> > I followed your guidance to the letter up to section= 4.2 where I encountered issues similar to before:=20 <br>> >=20 <br>> > scott@hpib:~ $ sudo ldconfig && sudo gpib_co= nfig=20 <br>> > sudo: unable to resolve host hpib: Name or service n= ot known=20 <br>> > sudo: unable to resolve host hpib: Name or service n= ot known=20 <br>> > failed to open device file '/dev/gpib0'=20 <br>> > main: No such file or directory=20 <br>> >=20 <br>> > And indeed, /dev has no gpib contents.=20 <br>> >=20 <br>> > One new issue of this installation is the hostname o= f 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.=20 <br>> >=20 <br>> > I copied ALL terminal commands issued, along with th= eir outputs into a text file to hopefully help diagnosis, and I added my ow= n //comments where relevant. This log can be downloaded from here (too long= to email): <a href=3D"https://scottbouch.com/tmp/hp-ib-pi-zero-setup.log" = target=3D"_blank" rel=3D"noopener">https://scottbouch.com/tmp/hp-ib-pi-zero= -setup.log</a>=20 <br>> >=20 <br>> >=20 <br>> > Many thanks again, Scott.=20 <br>> >=20 <br>> >=20 <br>> >=20 <br>>=20 <br>>=20 <br>> _______________________________________________=20 <br>> Linux-gpib-general mailing list=20 <br>> <a href=3D"mailto:[email protected]= t" target=3D"_blank" rel=3D"noopener">[email protected].= net</a>=20 <br>> <a href=3D"https://lists.sourceforge.net/lists/listinfo/l= inux-gpib-general" target=3D"_blank" rel=3D"noopener">https://lists.sourcef= orge.net/lists/listinfo/linux-gpib-general</a>=20 <br> <br> <br>_______________________________________________=20 <br>Linux-gpib-general mailing list=20 <br><a href=3D"mailto:[email protected]" ta= rget=3D"_blank" rel=3D"noopener">[email protected]</= a>=20 <br><a href=3D"https://lists.sourceforge.net/lists/listinfo/linux-= gpib-general" target=3D"_blank" rel=3D"noopener">https://lists.sourceforge.= net/lists/listinfo/linux-gpib-general</a> </blockquote>=20 </div>=20 </blockquote>=20 </div>=20 </blockquote>=20 </div>=20 </blockquote> </body> </html> ------=_Part_2559964_929268451.1770230333730-- --===============4198359020174617037== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4198359020174617037== 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 --===============4198359020174617037==--