You can subscribe to this list here.
| 2002 |
Jan
(2) |
Feb
(2) |
Mar
(22) |
Apr
(24) |
May
(7) |
Jun
(44) |
Jul
(16) |
Aug
(2) |
Sep
(13) |
Oct
(11) |
Nov
(19) |
Dec
(25) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(16) |
Feb
(27) |
Mar
(5) |
Apr
(20) |
May
(17) |
Jun
(34) |
Jul
(29) |
Aug
(22) |
Sep
(25) |
Oct
(11) |
Nov
(13) |
Dec
(18) |
| 2004 |
Jan
(25) |
Feb
(22) |
Mar
(33) |
Apr
(15) |
May
(37) |
Jun
(15) |
Jul
(12) |
Aug
(22) |
Sep
(18) |
Oct
(45) |
Nov
(19) |
Dec
(30) |
| 2005 |
Jan
(31) |
Feb
(35) |
Mar
(27) |
Apr
(22) |
May
(9) |
Jun
(13) |
Jul
(13) |
Aug
(9) |
Sep
(25) |
Oct
(25) |
Nov
(12) |
Dec
(20) |
| 2006 |
Jan
(14) |
Feb
(16) |
Mar
(17) |
Apr
(8) |
May
(7) |
Jun
(20) |
Jul
(21) |
Aug
(12) |
Sep
(19) |
Oct
(6) |
Nov
(23) |
Dec
(15) |
| 2007 |
Jan
(13) |
Feb
(14) |
Mar
(24) |
Apr
(21) |
May
(9) |
Jun
(5) |
Jul
(7) |
Aug
(9) |
Sep
(21) |
Oct
(5) |
Nov
(30) |
Dec
(9) |
| 2008 |
Jan
(15) |
Feb
(18) |
Mar
(4) |
Apr
(11) |
May
(3) |
Jun
(14) |
Jul
(12) |
Aug
(1) |
Sep
(31) |
Oct
(10) |
Nov
(9) |
Dec
(2) |
| 2009 |
Jan
(9) |
Feb
(6) |
Mar
(9) |
Apr
(2) |
May
(7) |
Jun
(22) |
Jul
(5) |
Aug
(1) |
Sep
(26) |
Oct
(13) |
Nov
(2) |
Dec
(10) |
| 2010 |
Jan
(29) |
Feb
(2) |
Mar
(23) |
Apr
(9) |
May
(7) |
Jun
(8) |
Jul
(4) |
Aug
(4) |
Sep
(1) |
Oct
(3) |
Nov
(2) |
Dec
(9) |
| 2011 |
Jan
(1) |
Feb
|
Mar
|
Apr
(25) |
May
(2) |
Jun
(19) |
Jul
(6) |
Aug
(4) |
Sep
(9) |
Oct
(3) |
Nov
(8) |
Dec
(7) |
| 2012 |
Jan
(5) |
Feb
(10) |
Mar
(10) |
Apr
(1) |
May
(2) |
Jun
|
Jul
|
Aug
(4) |
Sep
(1) |
Oct
|
Nov
(18) |
Dec
(10) |
| 2013 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
(1) |
May
(4) |
Jun
|
Jul
(26) |
Aug
(13) |
Sep
(24) |
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2014 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
(2) |
Sep
(6) |
Oct
(1) |
Nov
|
Dec
(5) |
| 2015 |
Jan
(1) |
Feb
(8) |
Mar
(7) |
Apr
(30) |
May
(3) |
Jun
(4) |
Jul
|
Aug
(7) |
Sep
(6) |
Oct
(13) |
Nov
(9) |
Dec
(2) |
| 2016 |
Jan
|
Feb
(7) |
Mar
(11) |
Apr
(6) |
May
(2) |
Jun
(16) |
Jul
(2) |
Aug
(6) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(7) |
| 2017 |
Jan
(9) |
Feb
(25) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(14) |
Sep
(23) |
Oct
(3) |
Nov
|
Dec
(4) |
| 2018 |
Jan
|
Feb
|
Mar
(6) |
Apr
(4) |
May
(11) |
Jun
(2) |
Jul
|
Aug
|
Sep
(2) |
Oct
(3) |
Nov
(20) |
Dec
(10) |
| 2019 |
Jan
(4) |
Feb
(2) |
Mar
(9) |
Apr
(7) |
May
(2) |
Jun
(14) |
Jul
(17) |
Aug
(8) |
Sep
(9) |
Oct
(2) |
Nov
(2) |
Dec
(5) |
| 2020 |
Jan
(5) |
Feb
(13) |
Mar
|
Apr
(6) |
May
|
Jun
(7) |
Jul
(1) |
Aug
(3) |
Sep
|
Oct
|
Nov
(11) |
Dec
(4) |
| 2021 |
Jan
|
Feb
(3) |
Mar
(2) |
Apr
(4) |
May
(7) |
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
(8) |
Nov
|
Dec
(3) |
| 2022 |
Jan
(5) |
Feb
(13) |
Mar
|
Apr
(3) |
May
(4) |
Jun
(4) |
Jul
|
Aug
(10) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(4) |
| 2023 |
Jan
(10) |
Feb
(5) |
Mar
|
Apr
|
May
(5) |
Jun
(4) |
Jul
(6) |
Aug
(4) |
Sep
(28) |
Oct
(8) |
Nov
(2) |
Dec
(1) |
| 2024 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
|
May
(3) |
Jun
(1) |
Jul
(10) |
Aug
(6) |
Sep
(3) |
Oct
|
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(2) |
Aug
(31) |
Sep
(15) |
Oct
(10) |
Nov
(5) |
Dec
|
| 2026 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Hernán F. <hj...@hj...> - 2025-08-10 20:45:26
|
I got an obvious fake 82357B from ebay. It's branded Keysight but when I
opened it up it has a lasered 64-pin TQFP IC and a few passives and that's
it.
I tried it with the agilent_82357a driver. gpib_config succeeds but it
doesn't really work. All 3 LEDs remain lit.
When plugged in, the USB ID is 0957:0718 Agilent Technologies, Inc. 82357B
GPIB Interface. So it's not booting as 0957:0518 awaiting for firmware. I
believe genuine ones will always boot as bootloader and then firmware will
be uploaded.
I thought I may be able to upload a different firmware but without any SMD
markings, it's impossible to tell if this is even a Cypress device that can
be programmed with fxload.
full lsusb dump:
sudo lsusb -vd 0957:0718
Bus 003 Device 003: ID 0957:0718 Agilent Technologies, Inc. 82357B GPIB
Interface
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0957 Agilent Technologies, Inc.
idProduct 0x0718 82357B GPIB Interface
bcdDevice 0.00
iManufacturer 1 Agilent Technologies, Inc.
iProduct 2 82357B ()
iSerial 5 MY54153256
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0027
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 3 HIGHSPEED
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
When trying to open the device in board mode:
ibtest
Do you wish to open a (d)evice or an interface (b)oard?
(you probably want to open a device): d
enter primary gpib address for device you wish to open [0-30]: usb
trying to open pad = 0 on /dev/gpib0 ...
ibdev: address conflict with board pad
ibdev error
ibsta = 0x100 < CMPL >
iberr= 4
ibcntl = 0
Aborted (core dumped)
When trying to write with the device unplugged from the GPIB bus:
ibtest
Do you wish to open a (d)evice or an interface (b)oard?
(you probably want to open a device): d
enter primary gpib address for device you wish to open [0-30]: 12
trying to open pad = 12 on /dev/gpib0 ...
: w
enter a string to send to your device: *IDN?
sending string: *IDN?
gpib status is:
ibsta = 0x8000 < ERR >
iberr= 2
ENOL 2: No listeners
ibcntl = 0
if I try with connecting it to the bus I'll get a TIMO error.
Interestingly enough, when trying to open this device in board mode, using
Keysight-VISA I get a segfault
Has anyone had any experiences with these particular clones?
|
|
From: Michael K <vk...@ya...> - 2025-08-09 03:35:32
|
So the next merge window would close mid October for a 6.18 stable release at the end of November. |
|
From: Michael K <vk...@ya...> - 2025-08-09 03:25:23
|
https://github.com/torvalds/linux/commit/1641684528815bb7e85737d5d2bceb551c55d5a8 Merge tag 'staging-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging Pull staging updates from Greg KH: "Here is the "big" set of staging driver changes for 6.17-rc1. That's in quotes as it really isn't all that big of a set of changes this development cycle at all. Major things that stand out are: - gpib cleanups and tweaks with the majority of the big issues now taken care of. Odds are it will move out of staging/ in the next merge window if all goes well. |
|
From: Hernán F. <hj...@hj...> - 2025-08-06 13:10:21
|
dave, thanks for your suggestion. it almost worked. the only change I needed to make was to send the payload as a byte array instead of a string that is: replace: string(b) for: bytes(b) cheers El mié, 6 ago 2025, 04:56, dave penkler <dpe...@gm...> escribió: > There is no python binding for TriggerList() but you can do it with > gpib.command(board, string) > where board is the minor of your adapter and string is composed of the > unlisten command UNL 0x3f, the listen addresses of the instruments to > trigger and the GET command 0x08. > For device addresses 4 and 5 you could do something like: > > board = 0 > pad1 = 4 > pad2 = 5 > b = bytearray(4) > b[0] = 0x3f > b[1] = 0x20 + pad1 > b[2] = 0x20 + pad2 > b[3] = 0x08 > string = str(b) > gpib.command(board, string) > > On Wed, 6 Aug 2025 at 06:50, Hernán Freschi <hj...@hj...> wrote: > >> I'm using the gpib module in python and I've set up a couple instruments, >> a 34401A and a 53131A for external triggers. >> >> then I trigger them with >> gpib.trigger(voltmeter) >> gpib.trigger(counter) >> >> this is more than adequate for my application but given that both >> instruments support GET (group execute trigger) command, I'd like to >> trigger them this way. But I don't know how to call this from python. The >> manual for the 34401A mentions: >> >> You can also trigger the multimeter from the HP-IB interface by >> sending the IEEE-488 Group Execute Trigger (GET ) message. >> The multimeter must be in the wait-for-trigger state. The following >> statement shows how to send a GET using HP BASIC. >> >> TRIGGER 722 Group Execute Trigger >> >> How can I do this from Python? >> _______________________________________________ >> Linux-gpib-general mailing list >> Lin...@li... >> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general >> >> |
|
From: Matthias G. <m_g...@wi...> - 2025-08-06 11:04:28
|
Am 06.08.25 um 13:00 schrieb dave penkler: > It is going to take a while before the drivers appear in a mainline > kernel shipped by the distros. > I will release a separate user only package when the drivers do appear > in the mainline. > There will be differences between the user package just for mainline > drivers and the user package co-packaged with the kernel drivers. > In the meantime you can package the user and kernel parts separately > as Michael does for Fedora. > -dave > > Hi dave, thanks for considering this. Looking forward to when this happens; I'll get this enabled in the Debian kernel builds once it's been accepted in mainline. -- Freundliche Grüsse / Best regards Matthias Geiger __________________________________________________________________ Matthias Geiger Werkstudent Forschung & Entwicklung/Research & Development Phone : +49-6441-609-3004 Email : m_g...@wi... URL : www.wiwa.de WIWA Wilhelm Wagner GmbH & Co. KG Gewerbestrasse 1-3, 35633 Lahnau, Germany Besucheranschrift/visitor address: Georg-Ohm-Strasse 12, 35633 Lahnau, Germany AG WETZLAR HRA 3223, Komplementär : Wagner GmbH (AG Wetzlar HRB 363) UST-ID Nr: / VAT-No: DE113745802 Geschäftsführer: Dipl.-Ing. (FH) Peter Turczak, Dipl.-Wirt.-Ing. Malte Weber |
|
From: dave p. <dpe...@gm...> - 2025-08-06 11:00:35
|
It is going to take a while before the drivers appear in a mainline kernel shipped by the distros. I will release a separate user only package when the drivers do appear in the mainline. There will be differences between the user package just for mainline drivers and the user package co-packaged with the kernel drivers. In the meantime you can package the user and kernel parts separately as Michael does for Fedora. -dave On Wed, 6 Aug 2025 at 10:03, Matthias Geiger <m_g...@wi...> wrote: > Am 06.08.25 um 01:09 schrieb Michael K: > > Hi Matthias, > > I package up the Fedora RPMs from a zip of the git repo. > > (https://copr.fedorainfracloud.org/coprs/vk2bea/GPIB/) > > > > The RPM spec defines what and how the packages built from the source. > > The kernel module is built as a dkms module (so it recompiles when a > > new kernel is installed). > > From the SRPM the binary packages are created for installation .... > > > > dkms-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.noarch.rpm > > guile18-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > linux-gpib-devel-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > linux-gpib-doc-4.3.7-30.20250805git0fc6e300.fc42.noarch.rpm > > perl-LinuxGpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > php-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > python3-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > tcl-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > > > If the user doesn't want to install the kernel module, they don't > > install the dkms-linix-gpib package. > > I presume the same could be done with the debian (apt) build system. > > > > Michael > > > Hi Micheal, > > yeah, I see the point of shipping the dkms package. However, with the > driver being in mainline soon, I don't see the point of still providing > it in Debian, because it will be enabled anyway in the kernel. > > As all new packages land in unstable first anyway, I think there is > little benefit for me to enable then in Debian then. > > For me this is mostly a tooling problem though, because if I only want > to provide the userspace tools then I need to jump through some hoops to > get a tarball only containing those. > > Not really a big issue for me; however, I think it's sensible to have > two separate tarballs given that it will be mainline soon. > > -- > Freundliche Grüsse / Best regards > > Matthias Geiger > __________________________________________________________________ > Matthias Geiger > Werkstudent > Forschung & Entwicklung/Research & Development > > Phone : +49-6441-609-3004 > Email : m_g...@wi... > URL : www.wiwa.de > > WIWA Wilhelm Wagner GmbH & Co. KG > Gewerbestrasse 1-3, 35633 Lahnau, Germany > Besucheranschrift/visitor address: > Georg-Ohm-Strasse 12, 35633 Lahnau, Germany > > AG WETZLAR HRA 3223, Komplementär : Wagner GmbH (AG Wetzlar HRB 363) > UST-ID Nr: / VAT-No: DE113745802 > Geschäftsführer: Dipl.-Ing. (FH) Peter Turczak, Dipl.-Wirt.-Ing. Malte > Weber > > > > _______________________________________________ > Linux-gpib-general mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > |
|
From: Matthias G. <m_g...@wi...> - 2025-08-06 08:03:04
|
Am 06.08.25 um 01:09 schrieb Michael K: > Hi Matthias, > I package up the Fedora RPMs from a zip of the git repo. > (https://copr.fedorainfracloud.org/coprs/vk2bea/GPIB/) > > The RPM spec defines what and how the packages built from the source. > The kernel module is built as a dkms module (so it recompiles when a > new kernel is installed). > From the SRPM the binary packages are created for installation .... > > dkms-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.noarch.rpm > guile18-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > linux-gpib-devel-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > linux-gpib-doc-4.3.7-30.20250805git0fc6e300.fc42.noarch.rpm > perl-LinuxGpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > php-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > python3-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > tcl-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm > > If the user doesn't want to install the kernel module, they don't > install the dkms-linix-gpib package. > I presume the same could be done with the debian (apt) build system. > > Michael > Hi Micheal, yeah, I see the point of shipping the dkms package. However, with the driver being in mainline soon, I don't see the point of still providing it in Debian, because it will be enabled anyway in the kernel. As all new packages land in unstable first anyway, I think there is little benefit for me to enable then in Debian then. For me this is mostly a tooling problem though, because if I only want to provide the userspace tools then I need to jump through some hoops to get a tarball only containing those. Not really a big issue for me; however, I think it's sensible to have two separate tarballs given that it will be mainline soon. -- Freundliche Grüsse / Best regards Matthias Geiger __________________________________________________________________ Matthias Geiger Werkstudent Forschung & Entwicklung/Research & Development Phone : +49-6441-609-3004 Email : m_g...@wi... URL : www.wiwa.de WIWA Wilhelm Wagner GmbH & Co. KG Gewerbestrasse 1-3, 35633 Lahnau, Germany Besucheranschrift/visitor address: Georg-Ohm-Strasse 12, 35633 Lahnau, Germany AG WETZLAR HRA 3223, Komplementär : Wagner GmbH (AG Wetzlar HRB 363) UST-ID Nr: / VAT-No: DE113745802 Geschäftsführer: Dipl.-Ing. (FH) Peter Turczak, Dipl.-Wirt.-Ing. Malte Weber |
|
From: dave p. <dpe...@gm...> - 2025-08-06 07:56:05
|
There is no python binding for TriggerList() but you can do it with gpib.command(board, string) where board is the minor of your adapter and string is composed of the unlisten command UNL 0x3f, the listen addresses of the instruments to trigger and the GET command 0x08. For device addresses 4 and 5 you could do something like: board = 0 pad1 = 4 pad2 = 5 b = bytearray(4) b[0] = 0x3f b[1] = 0x20 + pad1 b[2] = 0x20 + pad2 b[3] = 0x08 string = str(b) gpib.command(board, string) On Wed, 6 Aug 2025 at 06:50, Hernán Freschi <hj...@hj...> wrote: > I'm using the gpib module in python and I've set up a couple instruments, > a 34401A and a 53131A for external triggers. > > then I trigger them with > gpib.trigger(voltmeter) > gpib.trigger(counter) > > this is more than adequate for my application but given that both > instruments support GET (group execute trigger) command, I'd like to > trigger them this way. But I don't know how to call this from python. The > manual for the 34401A mentions: > > You can also trigger the multimeter from the HP-IB interface by > sending the IEEE-488 Group Execute Trigger (GET ) message. > The multimeter must be in the wait-for-trigger state. The following > statement shows how to send a GET using HP BASIC. > > TRIGGER 722 Group Execute Trigger > > How can I do this from Python? > _______________________________________________ > Linux-gpib-general mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > |
|
From: Hernán F. <hj...@hj...> - 2025-08-06 04:50:03
|
I'm using the gpib module in python and I've set up a couple instruments, a 34401A and a 53131A for external triggers. then I trigger them with gpib.trigger(voltmeter) gpib.trigger(counter) this is more than adequate for my application but given that both instruments support GET (group execute trigger) command, I'd like to trigger them this way. But I don't know how to call this from python. The manual for the 34401A mentions: You can also trigger the multimeter from the HP-IB interface by sending the IEEE-488 Group Execute Trigger (GET ) message. The multimeter must be in the wait-for-trigger state. The following statement shows how to send a GET using HP BASIC. TRIGGER 722 Group Execute Trigger How can I do this from Python? |
|
From: Michael K <vk...@ya...> - 2025-08-05 23:10:17
|
Hi Matthias, I package up the Fedora RPMs from a zip of the git repo. (https://copr.fedorainfracloud.org/coprs/vk2bea/GPIB/) The RPM spec defines what and how the packages built from the source. The kernel module is built as a dkms module (so it recompiles when a new kernel is installed).From the SRPM the binary packages are created for installation .... dkms-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.noarch.rpm guile18-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm linux-gpib-devel-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm linux-gpib-doc-4.3.7-30.20250805git0fc6e300.fc42.noarch.rpm perl-LinuxGpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm php-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm python3-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm tcl-linux-gpib-4.3.7-30.20250805git0fc6e300.fc42.x86_64.rpm If the user doesn't want to install the kernel module, they don't install the dkms-linix-gpib package.I presume the same could be done with the debian (apt) build system. Michael On Tuesday, August 5, 2025 at 03:51:23 AM EDT, Matthias Geiger <m_g...@wi...> wrote: Hi all, currently, the released tarball contains both the kernel and userspace tarballs. As the kernel components are close to being mainline, it would make sense IMO to release them separately from now on. This would allow users to download only the userspace parts if they have already installed the kernel module. It would also ease packaging as I am currently working on getting the userspace components provided as official Debian package. -- Freundliche Grüsse / Best regards Matthias Geiger __________________________________________________________________ Matthias Geiger Werkstudent Forschung & Entwicklung/Research & Development Phone : +49-6441-609-3004 Email : m_g...@wi... URL : www.wiwa.de WIWA Wilhelm Wagner GmbH & Co. KG Gewerbestrasse 1-3, 35633 Lahnau, Germany Besucheranschrift/visitor address: Georg-Ohm-Strasse 12, 35633 Lahnau, Germany AG WETZLAR HRA 3223, Komplementär : Wagner GmbH (AG Wetzlar HRB 363) UST-ID Nr: / VAT-No: DE113745802 Geschäftsführer: Dipl.-Ing. (FH) Peter Turczak, Dipl.-Wirt.-Ing. Malte Weber _______________________________________________ Linux-gpib-general mailing list Lin...@li... https://lists.sourceforge.net/lists/listinfo/linux-gpib-general |
|
From: Matthias G. <m_g...@wi...> - 2025-08-05 07:50:46
|
Hi all, currently, the released tarball contains both the kernel and userspace tarballs. As the kernel components are close to being mainline, it would make sense IMO to release them separately from now on. This would allow users to download only the userspace parts if they have already installed the kernel module. It would also ease packaging as I am currently working on getting the userspace components provided as official Debian package. -- Freundliche Grüsse / Best regards Matthias Geiger __________________________________________________________________ Matthias Geiger Werkstudent Forschung & Entwicklung/Research & Development Phone : +49-6441-609-3004 Email : m_g...@wi... URL : www.wiwa.de WIWA Wilhelm Wagner GmbH & Co. KG Gewerbestrasse 1-3, 35633 Lahnau, Germany Besucheranschrift/visitor address: Georg-Ohm-Strasse 12, 35633 Lahnau, Germany AG WETZLAR HRA 3223, Komplementär : Wagner GmbH (AG Wetzlar HRB 363) UST-ID Nr: / VAT-No: DE113745802 Geschäftsführer: Dipl.-Ing. (FH) Peter Turczak, Dipl.-Wirt.-Ing. Malte Weber |
|
From: Matthias G. <m_g...@wi...> - 2025-08-04 13:07:58
|
Am 04.08.25 um 13:54 schrieb Wilhelm Kusian: > Hi Matthias, > > I’m not sure whether I understand your issue correctly. The HP3488A is > a Switch/Control unit that can be controlled remotely via GPIB. > HP82335 is a GPIB ISA interface card for the ISA-bus in old > motherboards. The interface card needs a Kernel module, but the > HP3488A does not. > Ah, I see. > If you would like to control the HP3488A via GPIB, you can write for > instance a python program that sends the comands via the GPIB using > linux-gpib. The commands for controlling the HP3488A remotely via GPIB > you’ll find in the description for the device, like this > https://www.keysight.com/us/en/assets/9018-05356/user-manuals/9018-05356.pdf > > > Thanks, already had the datasheet at hand. I was able to get the basic communication up and running with the python example from the repo. Will ask again in case I run into any issues. best, Matthias Geiger |
|
From: Wilhelm K. <ku...@t-...> - 2025-08-04 11:54:47
|
Hi Matthias, I’m not sure whether I understand your issue correctly. The HP3488A is a Switch/Control unit that can be controlled remotely via GPIB. HP82335 is a GPIB ISA interface card for the ISA-bus in old motherboards. The interface card needs a Kernel module, but the HP3488A does not. If you would like to control the HP3488A via GPIB, you can write for instance a python program that sends the comands via the GPIB using linux-gpib. The commands for controlling the HP3488A remotely via GPIB you’ll find in the description for the device, like this https://www.keysight.com/us/en/assets/9018-05356/user-manuals/9018-05356.pdf Best regards Wilhelm |
|
From: Matthias G. <m_g...@wi...> - 2025-08-04 10:30:00
|
Hi all, I have been tasked with writing a kernel module for the HP 3488A device. Looking at the source code for the existing HP 82335 module I was wondering where I get the constants for the board data from (register offsets, io memory regions etc.). The 3488A datasheet does not mention any of that. Can I extract the information via the gpib-config tool ? I'd be glad for any pointers to get me started to work on it. I'm using a Pi 4 on Debian bookworm with a GPIB-I2C shield for debugging, the device show up as /dev/gpib. best, Matthias Geiger |
|
From: David G. <dav...@po...> - 2025-08-04 02:38:37
|
% package require gpib
2.5.0.0
% gpib interface exceptions on
% set osc [gpib open -address 25 -sendeoi true]
16
% gpib write -device $osc -message {INIT;ID?}
% gpib read -device $osc -mode ascii
ID TEK/SG5010,V81.1,F1.1;
%
Complete success!
|
|
From: Michael K <vk...@ya...> - 2025-08-03 23:45:33
|
Hi David, The makefile that creates the device node (/dev/gpib0) should have created it with a group "gpib" (see linux-gpib-user/drivers/Makefile.am).You should add yourself to the "gpib" group. (see linux-gpib-user/INSTALL)
Michael
On Sunday, August 3, 2025 at 06:54:07 PM EDT, David Gravereaux <dav...@po...> wrote:
Hi,
newbie here. I'm sure this is an RTFM issue. Please accept my apologies.
OS: Ubuntu 22.04
Linux-GPIB successfully built an installed
gpib-tcl successfully built and installed
$ lspci -ks 05:05.0
05:05.0 Communication controller: National Instruments PCI-GPIB (rev 01)
Kernel modules: tnt4882
When I run tkcon, load the extension, and do the first open which calls
ibdev, I get this in stderr:
libgpib: ibBoardOpen failed to open device file /dev/gpib0
libgpib: Permission denied
$ ls -l /dev/gpib0
crw-rw---- 1 root root 160, 0 Aug 3 15:19 /dev/gpib0
The device is owned by root. I can chown the device, but what is the
fix so it stays available?
_______________________________________________
Linux-gpib-general mailing list
Lin...@li...
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
|
|
From: David G. <dav...@po...> - 2025-08-03 23:43:37
|
On 8/3/25 4:35 PM, Michael K wrote: > Hi David, The makefile that creates the device node (/dev/gpib0) should have created it with a group "gpib" (see linux-gpib-user/drivers/Makefile.am).You should add yourself to the "gpib" group. (see linux-gpib-user/INSTALL) > Michael Got it, thanks |
|
From: David G. <dav...@po...> - 2025-08-03 22:53:30
|
Hi, newbie here. I'm sure this is an RTFM issue. Please accept my apologies. OS: Ubuntu 22.04 Linux-GPIB successfully built an installed gpib-tcl successfully built and installed $ lspci -ks 05:05.0 05:05.0 Communication controller: National Instruments PCI-GPIB (rev 01) Kernel modules: tnt4882 When I run tkcon, load the extension, and do the first open which calls ibdev, I get this in stderr: libgpib: ibBoardOpen failed to open device file /dev/gpib0 libgpib: Permission denied $ ls -l /dev/gpib0 crw-rw---- 1 root root 160, 0 Aug 3 15:19 /dev/gpib0 The device is owned by root. I can chown the device, but what is the fix so it stays available? |
|
From: Hernán F. <hj...@hj...> - 2025-07-16 22:05:58
|
ALL adapters on eBay are now counterfeit. Genuine ones cost over $1000 so even used ones go for such prices. I also bought a, of course fake, Keysight one and it didn't work either. even the usb ID are wrong El mié, 16 jul 2025, 18:42, Michael <Mi...@di...> escribió: > For the non compatible counterfeit NI GPIB-USB-HS adapters it would be > nice if the driver detects it and refuses to load with an appropriate error. > There are a lot of these now on the selling platforms, so I guess there > will be more and more users that will face this problem and do not know why > it does not work. > > PS: > Greg Kroah-Hartman notes the GPIB code is about ready to graduate to the > main area of the Linux kernel. > https://www.phoronix.com/news/Linux-6.16-Staging > > I am thrilled, thanks to all contributors to get GPIB into the Kernel - > that will help a lot of people! > > Best regards, Michael > > > > _______________________________________________ > Linux-gpib-general mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > |
|
From: Michael <Mi...@Di...> - 2025-07-16 21:42:01
|
For the non compatible counterfeit NI GPIB-USB-HS adapters it would be nice if the driver detects it and refuses to load with an appropriate error.There are a lot of these now on the selling platforms, so I guess there will be more and more users that will face this problem and do not know why it does not work.PS:Greg Kroah-Hartman notes the GPIB code is about ready to graduate to the main area of the Linux kernel.https://www.phoronix.com/news/Linux-6.16-StagingI am thrilled, thanks to all contributors to get GPIB into the Kernel - that will help a lot of people!Best regards, Michael |
|
From: Hernán F. <hj...@hj...> - 2025-06-12 14:15:56
|
Hi Dave thanks. What exactly is the problem though? I've been going through the code a bit and patched a couple of error messages, regarding these: [ 5.317767] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, expected 0x2, 0xe, 0xf or 0x16 [ 5.318304] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, expected 0x96, 0x07 or 0x6e I tested the following sequence with ibtest: board mode, line status: gpib status is: ibsta = 0x178 < CMPL REM CIC ATN TACS > switch to device mode, write *IDN? fails and dmesg shows: ni_usb_gpib: Addressing error retval 0 error code=3 go back to board mode in this situation: gpib status is: ibsta = 0x120 < CMPL CIC > which i guess makes sense because Addressing error is: NIUSB_ADDRESSING_ERROR occurs when you do a board read/write as CIC but are not in LACS/TACS why can't this be made to work with linux-gpib though? trying to understand if I can patch the driver to make it work. On Thu, Jun 12, 2025 at 9:06 AM dave penkler <dpe...@gm...> wrote: > Hi Hernán, > It looks like you have an unsupported clone. This line in the dmesg is > relevant: > [ 4.830150] usb 1-1.6: config 1 interface 0 altsetting 0 endpoint 0x81 > has an invalid bInterval 0, changing to 7 > Unfortunately this board cannot be made to work with linux-gpib. > cheers, > -Dave > > On Wed, 11 Jun 2025 at 22:41, Hernán Freschi <hj...@hj...> wrote: > >> Hello. I installed the latest version from master (4c820721), but when >> trying to use it, it half works, and it does a lot of other weird stuff. >> I'm using a counterfeit GPIB-USB-HS from eBay (I assume it's counterfeit >> because it costed $70). The device is not detected as counterfeit by NI >> drivers on Windows, and works fine there. I can communicate with the GPIB >> device. But not on Linux. I don't get any prompts to update its firmware >> either. >> This is dmesg on a fresh boot: >> >> $ sudo dmesg|grep gpib >> [ 4.912608] gpib_common: loading out-of-tree module taints kernel. >> [ 4.912658] gpib_common: module verification failed: signature and/or >> required key missing - tainting kernel >> [ 4.915244] gpib_common: Linux-GPIB 4.3.7 core driver loaded >> [ 4.937190] usb 1-1.6: ni_usb_gpib: probe succeeded for path: >> usb-0000:00:1a.0-1.6 >> [ 4.937228] usbcore: registered new interface driver ni_usb_gpib >> [ 5.317767] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, >> expected 0x2, 0xe, 0xf or 0x16 >> [ 5.318304] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, >> expected 0x96, 0x07 or 0x6e >> [ 5.324141] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, >> intf 0 >> [ 155.040427] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, >> expected 0x2, 0xe, 0xf or 0x16 >> [ 155.040443] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, >> expected 0x96, 0x07 or 0x6e >> [ 155.046186] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, >> intf 0 >> also:[ 4.717800] usb 1-1.6: new high-speed USB device number 7 using >> ehci-pci >> [ 4.830150] usb 1-1.6: config 1 interface 0 altsetting 0 endpoint 0x81 >> has an invalid bInterval 0, changing to 7 >> [ 4.830649] usb 1-1.6: New USB device found, idVendor=3923, >> idProduct=709b, bcdDevice= 1.01 >> [ 4.830654] usb 1-1.6: New USB device strings: Mfr=1, Product=2, >> SerialNumber=3 >> [ 4.830657] usb 1-1.6: Product: GPIB-USB-HS >> [ 4.830659] usb 1-1.6: Manufacturer: National Instruments >> [ 4.830660] usb 1-1.6: SerialNumber: 019A335E >> [ 4.937190] usb 1-1.6: ni_usb_gpib: probe succeeded for path: >> usb-0000:00:1a.0-1.6 >> [ 5.317767] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, >> expected 0x2, 0xe, 0xf or 0x16 >> [ 5.318304] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, >> expected 0x96, 0x07 or 0x6e >> [ 5.324141] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, >> intf 0 >> [ 155.040427] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, >> expected 0x2, 0xe, 0xf or 0x16 >> [ 155.040443] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, >> expected 0x96, 0x07 or 0x6e >> [ 155.046186] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, >> intf 0 >> Here are the issues: >> 1) It appears my device (HP 34401A) receives the commands, but linux-gpib >> doesn't get any acknowledgement. The device goes into remote mode if I send >> *IDN?, but I get an error message >> >> : w >> enter a string to send to your device: *RST >> sending string: *RST >> >> gpib status is: >> ibsta = 0x8000 < ERR > >> iberr= 0 >> EDVR 0: OS error >> >> ibcntl = 6 >> ..: r >> enter maximum number of bytes to read [1024]: 199 >> trying to read 199 bytes from device... >> received string: '' >> Number of bytes read: 0 >> gpib status is: >> ibsta = 0xc000 < ERR TIMO > >> iberr= 6 >> EABO 6: Operation aborted >> >> ibcntl = 0 >> this line appears in dmesg:[ 164.340630] usb 3-1.6: ni_usb_gpib: >> Addressing error retval 0 error code=3 >> That's as far as the first issue goes. Then: >> 2) After some time, it stops working completely. The error message >> changes to:gpib status is: >> ibsta = 0x8000 < ERR > >> iberr= 0 >> EDVR 0: OS error >> >> ibcntl = 14and dmesg is flooded with >> [ 2980.442771] ni_usb_gpib: parse error: wrong start id >> [ 2980.442775] ni_usb_gpib: parse error: wrong end id >> [ 2980.442777] ni_usb_gpib: parse error: wrong count=0 for >> NIUSB_REGISTER_READ_DATA_END >> [ 2980.442779] ni_usb_gpib: unexpected data: raw_data[6]=0xff, expected 0 >> [ 2980.442781] ni_usb_gpib: unexpected data: raw_data[7]=0xff, expected 0 >> [ 2980.442784] 0c 00 68 00 00 00 ff ff ..h..... >> also, something breaks completely in my computer's USB controller and a >> reset won't fix it. When it goes into that mode, the computer even refuses >> to boot when the USB adapter is plugged. The machine needs to be completely >> turned off for it to work again. When it's in this state, gpib_config won't >> work even after a reboot, and lsusb hangs if the device is plugged in. >> Unplugging it and plugging it back in doesn't fix the issue, the computer >> needs to be powered down. >> Regards >> >> >> _______________________________________________ >> Linux-gpib-general mailing list >> Lin...@li... >> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general >> > |
|
From: dave p. <dpe...@gm...> - 2025-06-12 12:06:40
|
Hi Hernán, It looks like you have an unsupported clone. This line in the dmesg is relevant: [ 4.830150] usb 1-1.6: config 1 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 Unfortunately this board cannot be made to work with linux-gpib. cheers, -Dave On Wed, 11 Jun 2025 at 22:41, Hernán Freschi <hj...@hj...> wrote: > Hello. I installed the latest version from master (4c820721), but when > trying to use it, it half works, and it does a lot of other weird stuff. > I'm using a counterfeit GPIB-USB-HS from eBay (I assume it's counterfeit > because it costed $70). The device is not detected as counterfeit by NI > drivers on Windows, and works fine there. I can communicate with the GPIB > device. But not on Linux. I don't get any prompts to update its firmware > either. > This is dmesg on a fresh boot: > > $ sudo dmesg|grep gpib > [ 4.912608] gpib_common: loading out-of-tree module taints kernel. > [ 4.912658] gpib_common: module verification failed: signature and/or > required key missing - tainting kernel > [ 4.915244] gpib_common: Linux-GPIB 4.3.7 core driver loaded > [ 4.937190] usb 1-1.6: ni_usb_gpib: probe succeeded for path: > usb-0000:00:1a.0-1.6 > [ 4.937228] usbcore: registered new interface driver ni_usb_gpib > [ 5.317767] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, > expected 0x2, 0xe, 0xf or 0x16 > [ 5.318304] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, > expected 0x96, 0x07 or 0x6e > [ 5.324141] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, > intf 0 > [ 155.040427] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, > expected 0x2, 0xe, 0xf or 0x16 > [ 155.040443] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, > expected 0x96, 0x07 or 0x6e > [ 155.046186] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, > intf 0 > also:[ 4.717800] usb 1-1.6: new high-speed USB device number 7 using > ehci-pci > [ 4.830150] usb 1-1.6: config 1 interface 0 altsetting 0 endpoint 0x81 > has an invalid bInterval 0, changing to 7 > [ 4.830649] usb 1-1.6: New USB device found, idVendor=3923, > idProduct=709b, bcdDevice= 1.01 > [ 4.830654] usb 1-1.6: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [ 4.830657] usb 1-1.6: Product: GPIB-USB-HS > [ 4.830659] usb 1-1.6: Manufacturer: National Instruments > [ 4.830660] usb 1-1.6: SerialNumber: 019A335E > [ 4.937190] usb 1-1.6: ni_usb_gpib: probe succeeded for path: > usb-0000:00:1a.0-1.6 > [ 5.317767] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, > expected 0x2, 0xe, 0xf or 0x16 > [ 5.318304] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, > expected 0x96, 0x07 or 0x6e > [ 5.324141] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, > intf 0 > [ 155.040427] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, > expected 0x2, 0xe, 0xf or 0x16 > [ 155.040443] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, > expected 0x96, 0x07 or 0x6e > [ 155.046186] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, > intf 0 > Here are the issues: > 1) It appears my device (HP 34401A) receives the commands, but linux-gpib > doesn't get any acknowledgement. The device goes into remote mode if I send > *IDN?, but I get an error message > > : w > enter a string to send to your device: *RST > sending string: *RST > > gpib status is: > ibsta = 0x8000 < ERR > > iberr= 0 > EDVR 0: OS error > > ibcntl = 6 > ..: r > enter maximum number of bytes to read [1024]: 199 > trying to read 199 bytes from device... > received string: '' > Number of bytes read: 0 > gpib status is: > ibsta = 0xc000 < ERR TIMO > > iberr= 6 > EABO 6: Operation aborted > > ibcntl = 0 > this line appears in dmesg:[ 164.340630] usb 3-1.6: ni_usb_gpib: > Addressing error retval 0 error code=3 > That's as far as the first issue goes. Then: > 2) After some time, it stops working completely. The error message changes > to:gpib status is: > ibsta = 0x8000 < ERR > > iberr= 0 > EDVR 0: OS error > > ibcntl = 14and dmesg is flooded with > [ 2980.442771] ni_usb_gpib: parse error: wrong start id > [ 2980.442775] ni_usb_gpib: parse error: wrong end id > [ 2980.442777] ni_usb_gpib: parse error: wrong count=0 for > NIUSB_REGISTER_READ_DATA_END > [ 2980.442779] ni_usb_gpib: unexpected data: raw_data[6]=0xff, expected 0 > [ 2980.442781] ni_usb_gpib: unexpected data: raw_data[7]=0xff, expected 0 > [ 2980.442784] 0c 00 68 00 00 00 ff ff ..h..... > also, something breaks completely in my computer's USB controller and a > reset won't fix it. When it goes into that mode, the computer even refuses > to boot when the USB adapter is plugged. The machine needs to be completely > turned off for it to work again. When it's in this state, gpib_config won't > work even after a reboot, and lsusb hangs if the device is plugged in. > Unplugging it and plugging it back in doesn't fix the issue, the computer > needs to be powered down. > Regards > > > _______________________________________________ > Linux-gpib-general mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > |
|
From: Hernán F. <hj...@hj...> - 2025-06-11 20:40:29
|
Hello. I installed the latest version from master (4c820721), but when trying to use it, it half works, and it does a lot of other weird stuff. I'm using a counterfeit GPIB-USB-HS from eBay (I assume it's counterfeit because it costed $70). The device is not detected as counterfeit by NI drivers on Windows, and works fine there. I can communicate with the GPIB device. But not on Linux. I don't get any prompts to update its firmware either. This is dmesg on a fresh boot: $ sudo dmesg|grep gpib [ 4.912608] gpib_common: loading out-of-tree module taints kernel. [ 4.912658] gpib_common: module verification failed: signature and/or required key missing - tainting kernel [ 4.915244] gpib_common: Linux-GPIB 4.3.7 core driver loaded [ 4.937190] usb 1-1.6: ni_usb_gpib: probe succeeded for path: usb-0000:00:1a.0-1.6 [ 4.937228] usbcore: registered new interface driver ni_usb_gpib [ 5.317767] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, expected 0x2, 0xe, 0xf or 0x16 [ 5.318304] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, expected 0x96, 0x07 or 0x6e [ 5.324141] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, intf 0 [ 155.040427] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, expected 0x2, 0xe, 0xf or 0x16 [ 155.040443] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, expected 0x96, 0x07 or 0x6e [ 155.046186] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, intf 0 also:[ 4.717800] usb 1-1.6: new high-speed USB device number 7 using ehci-pci [ 4.830150] usb 1-1.6: config 1 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 [ 4.830649] usb 1-1.6: New USB device found, idVendor=3923, idProduct=709b, bcdDevice= 1.01 [ 4.830654] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.830657] usb 1-1.6: Product: GPIB-USB-HS [ 4.830659] usb 1-1.6: Manufacturer: National Instruments [ 4.830660] usb 1-1.6: SerialNumber: 019A335E [ 4.937190] usb 1-1.6: ni_usb_gpib: probe succeeded for path: usb-0000:00:1a.0-1.6 [ 5.317767] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, expected 0x2, 0xe, 0xf or 0x16 [ 5.318304] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, expected 0x96, 0x07 or 0x6e [ 5.324141] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, intf 0 [ 155.040427] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[6]=0x19, expected 0x2, 0xe, 0xf or 0x16 [ 155.040443] usb 1-1.6: ni_usb_gpib: unexpected data: buffer[10]=0x59, expected 0x96, 0x07 or 0x6e [ 155.046186] usb 1-1.6: ni_usb_gpib: bus 1 dev num 7 attached to gpib0, intf 0 Here are the issues: 1) It appears my device (HP 34401A) receives the commands, but linux-gpib doesn't get any acknowledgement. The device goes into remote mode if I send *IDN?, but I get an error message : w enter a string to send to your device: *RST sending string: *RST gpib status is: ibsta = 0x8000 < ERR > iberr= 0 EDVR 0: OS error ibcntl = 6 ..: r enter maximum number of bytes to read [1024]: 199 trying to read 199 bytes from device... received string: '' Number of bytes read: 0 gpib status is: ibsta = 0xc000 < ERR TIMO > iberr= 6 EABO 6: Operation aborted ibcntl = 0 this line appears in dmesg:[ 164.340630] usb 3-1.6: ni_usb_gpib: Addressing error retval 0 error code=3 That's as far as the first issue goes. Then: 2) After some time, it stops working completely. The error message changes to:gpib status is: ibsta = 0x8000 < ERR > iberr= 0 EDVR 0: OS error ibcntl = 14and dmesg is flooded with [ 2980.442771] ni_usb_gpib: parse error: wrong start id [ 2980.442775] ni_usb_gpib: parse error: wrong end id [ 2980.442777] ni_usb_gpib: parse error: wrong count=0 for NIUSB_REGISTER_READ_DATA_END [ 2980.442779] ni_usb_gpib: unexpected data: raw_data[6]=0xff, expected 0 [ 2980.442781] ni_usb_gpib: unexpected data: raw_data[7]=0xff, expected 0 [ 2980.442784] 0c 00 68 00 00 00 ff ff ..h..... also, something breaks completely in my computer's USB controller and a reset won't fix it. When it goes into that mode, the computer even refuses to boot when the USB adapter is plugged. The machine needs to be completely turned off for it to work again. When it's in this state, gpib_config won't work even after a reboot, and lsusb hangs if the device is plugged in. Unplugging it and plugging it back in doesn't fix the issue, the computer needs to be powered down. Regards |
|
From: dave p. <dpe...@gm...> - 2024-11-12 22:06:16
|
Hi Michael, Are you using the same word width (32 or 64 bit) for both user space and kernel? cheers, -dave On Wed, 13 Nov 2024, 06:41 Michael Jaggers, <mgj...@gm...> wrote: > Hey Dave, > > The dmesg log I sent is currently using the sourceforge user/kernel > packages for tag v4_3_6. > Would you like me to send you the udev script rules? I did change them a > little bit to debug this issue, but it didn't improve things. It did prove > that the rules are being enacted (I changed the group and saw that > reflected in the /dev/gpib* files). > > Thanks, > Michael > > On Mon, Nov 11, 2024 at 10:25 PM dave penkler <dpe...@gm...> wrote: > >> OK it is hitting EFAULT at the IBONL ioctl gpib_config. To be sure that >> everything is compatible, you can download, build and install the standard >> current combined 4.3.6 user and kernel packages from sourceforge >> <https://sourceforge.net/projects/linux-gpib/files/latest/download> and >> see if the problem persists. This package supports 6.1.xx kernels. BTW the >> /dev/gpib* files are set up by the gpib_common module and the access >> permissions in the 98-gpib-generic.rules udev script, so there should be >> no problem there. >> cheers, >> -Dave >> >> On Mon, 11 Nov 2024 at 21:43, Michael Jaggers <mgj...@gm...> >> wrote: >> >>> Yes, there is quite a bit in the console log. I have the debug turned on >>> (and added some statements in myself), but this is pretty much what happens >>> when I plug in the device: >>> [ 9748.976545] usb 1-1.4: new high-speed USB device number 5 using >>> xhci-hcd >>> [ 9749.084858] usb 1-1.4: config 1 interface 0 altsetting 0 endpoint >>> 0x81 has an invalid bInterval 0, changing to 7 >>> [ 9749.095353] usb 1-1.4: New USB device found, idVendor=3923, >>> idProduct=709b, bcdDevice= 1.01 >>> [ 9749.103769] usb 1-1.4: New USB device strings: Mfr=1, Product=2, >>> SerialNumber=3 >>> [ 9749.111094] usb 1-1.4: Product: GPIB-USB-HS >>> [ 9749.115289] usb 1-1.4: Manufacturer: National Instruments >>> [ 9749.120690] usb 1-1.4: SerialNumber: 01D9F4A4 >>> [ 9749.210590] Linux-GPIB 4.3.6 Driver >>> [ 9749.386255] ni_usb_gpib driver loading >>> [ 9749.402265] ni_usb_gpib: probe succeeded for path: >>> usb-xhci-hcd.1.auto-1.4 >>> [ 9749.414241] usbcore: registered new interface driver ni_usb_gpib >>> [ 9749.423413] gpib: registered ni_usb_b interface >>> [ 9749.927552] gpib debug: pid 0, gpib: opening minor 0 >>> [ 9749.935625] gpib debug: pid 0, gpib: request module returned 256 >>> [ 9749.942207] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >>> onl=0, arg=f523e908 >>> [ 9749.970918] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >>> onl=0 >>> [ 9749.978472] gpib debug: pid 0, gpib: closing minor 0 >>> [ 9808.492473] gpib debug: pid 0, gpib: opening minor 0 >>> [ 9808.500324] gpib debug: pid 0, gpib: request module returned 256 >>> [ 9808.506433] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >>> onl=0, arg=fb3f8278 >>> >>> When I try to run "gpib_config", it only shows this line: >>> [11325.680770] gpib debug: pid 0, gpib: opening minor 0 >>> [11325.688909] gpib debug: pid 0, gpib: request module returned 256 >>> [11325.695036] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >>> onl=0, arg=ef9596d8 >>> [11325.723526] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >>> onl=0 >>> [11325.730940] gpib debug: pid 0, gpib: closing minor 0 >>> >>> Best Regards, >>> Michael >>> >>> On Mon, Nov 11, 2024 at 1:28 PM dave penkler <dpe...@gm...> wrote: >>> >>>> Hi Michael, >>>> The gpib.conf looks perfect. Somewhere during the configure we are >>>> getting an EFAULT - Bad address. This would point to some incompatibility >>>> between user space gpib_config and the gpib_common kernel module. Is there >>>> anything in the console log (dmesg) ? >>>> cheers, >>>> -dave >>>> >>>> >>>> >>>> On Tue, 12 Nov 2024, 05:28 Michael Jaggers, <mgj...@gm...> >>>> wrote: >>>> >>>>> Hey Dave, >>>>> >>>>> I went back and double checked on the configure argument you asked >>>>> for, and I did provide the path to it. I also checked it by putting a >>>>> syntax error into the gpib.conf file and that output an error and the path >>>>> it was pointing to. >>>>> >>>>> Here is the conf file that I'm using: >>>>> >>>>> /* 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_type = "ni_usb_gpib" >>>>> name = "gpib0" >>>>> pad = 2 >>>>> timeout = T1s >>>>> eos = 0x0A >>>>> set-reos = yes >>>>> set-bin = no >>>>> master = yes >>>>> >>>>> } >>>>> >>>>> Thanks! >>>>> Michael >>>>> >>>>> On Sat, Nov 9, 2024 at 2:24 AM dave penkler <dpe...@gm...> >>>>> wrote: >>>>> >>>>>> Hi Michael, >>>>>> It looks like a gpib.conf problem. Did you provide a sysconfdir >>>>>> argument to .configure ? >>>>>> Please send me your gpib.conf file. >>>>>> cheers, >>>>>> -dave >>>>>> >>>>>> On Sat, 9 Nov 2024, 04:38 Michael Jaggers, <mgj...@gm...> >>>>>> wrote: >>>>>> >>>>>>> Dave, >>>>>>> >>>>>>> I've run the gpib_config, but no luck on that end. Here is what >>>>>>> happens to me: >>>>>>> 1. First, I restart the device without plugging in the gpib (drivers >>>>>>> aren't loaded). >>>>>>> root@tester0:~/git/linux-gpib-git# gpib_config >>>>>>> failed to open device file '/dev/gpib0' >>>>>>> main: No such file or directory >>>>>>> >>>>>>> 2. Now, I plug the gpib dongle in. >>>>>>> root@tester0:~/git/linux-gpib-git# gpib_config >>>>>>> failed to bring board offline >>>>>>> failed to configure board >>>>>>> main: Bad address >>>>>>> >>>>>>> 3. Finally, I unplug the gpib dongle. >>>>>>> root@tester0:~/git/linux-gpib-git# gpib_config >>>>>>> failed to bring board offline >>>>>>> failed to configure board >>>>>>> main: Bad address >>>>>>> >>>>>>> To me, this looks like the dongle isn't attaching to /dev/gpib0. I >>>>>>> know the driver recognizes the device, it correctly starts the ni_usb_gpib >>>>>>> driver, and probes the correct location on the device tree, and the driver >>>>>>> in the device tree points to the correct place the dongle is attached to. >>>>>>> What's got me scratching my head is why it's not attached to gpib0 (or even >>>>>>> how to circumvent the need to attach to gpib0). >>>>>>> >>>>>>> Could it be related to my udev? In the rules, in file >>>>>>> "/etc/udev/rules.d/98-gpib-generic.rules" I added: >>>>>>> ACTION=="add|change", >>>>>>> DEVPATH=="/devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0", >>>>>>> ENV{GPIB_CONFIG_OPTIONS}="--minor 0" >>>>>>> >>>>>>> That's the path that udev recognizes. When I run udevadm monitor, I >>>>>>> get this after plugging in the dongle: >>>>>>> KERNEL[1122.600699] add >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>>> (usb) >>>>>>> KERNEL[1122.650504] add >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>>> (usb) >>>>>>> KERNEL[1122.671551] bind >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>>> (usb) >>>>>>> KERNEL[1122.671684] bind >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>>> (usb) >>>>>>> UDEV [1122.676333] add >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>>> (usb) >>>>>>> UDEV [1122.769461] add >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>>> (usb) >>>>>>> UDEV [1122.772939] bind >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>>> (usb) >>>>>>> UDEV [1122.777553] bind >>>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>>> (usb) >>>>>>> >>>>>>> Could the version of udev be the cause? >>>>>>> root@tester0:~/git/linux-gpib-git# udevd --version >>>>>>> 251.8+ >>>>>>> root@tester0:~/git/linux-gpib-git# udevadm --version >>>>>>> 251 >>>>>>> >>>>>>> Thanks for your responses! >>>>>>> Michael >>>>>>> >>>>>>> On Thu, Nov 7, 2024 at 9:04 PM dave penkler <dpe...@gm...> >>>>>>> wrote: >>>>>>> >>>>>>>> It looks like the board is not attached. Did you run # gpib_config >>>>>>>> ? Normally the supplied udev scripts do this for you. >>>>>>>> cheers, >>>>>>>> -dave >>>>>>>> >>>>>>>> On Fri, 8 Nov 2024, 05:24 Charles Lane, <la...@dc...> wrote: >>>>>>>> >>>>>>>>> Setting up the /dev/gpib* devices is something that >>>>>>>>> you might want to look at udev for...but as I recall >>>>>>>>> there's some problems. That isn't necessarily in the >>>>>>>>> linux-gpib git project, maybe in linux-gpib-packaging >>>>>>>>> project....where the idea is to wrap the linux-gpib >>>>>>>>> code in an rpm package (so that installation deals >>>>>>>>> with udev scripts, protection issues, etc) >>>>>>>>> >>>>>>>>> On Thu, 7 Nov 2024 09:51:32 -0700 >>>>>>>>> Michael Jaggers <mgj...@gm...> wrote: >>>>>>>>> >>>>>>>>> > Hello, >>>>>>>>> > >>>>>>>>> > I'm working on installing the gpib kernel drivers to the >>>>>>>>> Petalinux >>>>>>>>> > platform. So far, I've managed to get the headers and get the >>>>>>>>> gpib >>>>>>>>> > drivers compiled + installed. The modules show up with modprobe, >>>>>>>>> and >>>>>>>>> > when I plug my gpib dongle in the driver loads properly and it >>>>>>>>> seems >>>>>>>>> > to recognize it. Below is the message I get when plugging in the >>>>>>>>> > dongle: [19163.768240] usb 1-1.4: new high-speed USB device >>>>>>>>> number 11 >>>>>>>>> > using xhci-hcd [19164.020393] usb 1-1.4: config 1 interface 0 >>>>>>>>> > altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing >>>>>>>>> to 7 >>>>>>>>> > [19164.030876] usb 1-1.4: New USB device found, idVendor=3923, >>>>>>>>> > idProduct=709b, bcdDevice= 1.01 >>>>>>>>> > [19164.039247] usb 1-1.4: New USB device strings: Mfr=1, >>>>>>>>> Product=2, >>>>>>>>> > SerialNumber=3 >>>>>>>>> > [19164.046560] usb 1-1.4: Product: GPIB-USB-HS >>>>>>>>> > [19164.050739] usb 1-1.4: Manufacturer: National Instruments >>>>>>>>> > [19164.056138] usb 1-1.4: SerialNumber: 01D9F4A4 >>>>>>>>> > >>>>>>>>> > Here is where the issue comes up. When ibopen goes to set things >>>>>>>>> up >>>>>>>>> > with the dongle, the /dev/gpib0 doesn't seem to be properly >>>>>>>>> > configured. I get this message when I run the ibtest utility: >>>>>>>>> > [84391.688217] gpib debug: pid 0, gpib: opening minor 0 >>>>>>>>> > [84391.696029] gpib debug: pid 0, gpib: request module returned >>>>>>>>> 256 >>>>>>>>> > [84391.702071] gpib debug: pid 0, minor 0, ioctl 3, interface=, >>>>>>>>> use=0, >>>>>>>>> > onl=0, arg=d8a171a0 >>>>>>>>> > [84391.710090] gpib: no gpib board configured on /dev/gpib0 >>>>>>>>> > [84391.715398] gpib debug: pid 0, minor 0, ioctl 3, interface=, >>>>>>>>> > use=0, onl=0 [84391.722212] gpib debug: pid 0, minor 0, ioctl 5, >>>>>>>>> > interface=, use=0, onl=0, arg=d8a17120 >>>>>>>>> > [84391.730218] gpib: no gpib board configured on /dev/gpib0 >>>>>>>>> > [84391.735527] gpib debug: pid 0, minor 0, ioctl 5, interface=, >>>>>>>>> > use=0, onl=0 [84391.742357] gpib debug: pid 0, minor 0, ioctl 5, >>>>>>>>> > interface=, use=0, onl=0, arg=d8a17180 >>>>>>>>> > [84391.750363] gpib: no gpib board configured on /dev/gpib0 >>>>>>>>> > [84391.755673] gpib debug: pid 0, minor 0, ioctl 5, interface=, >>>>>>>>> > use=0, onl=0 [84391.762675] audit: type=1701 >>>>>>>>> > audit(1730996390.861:20): auid=0 uid=0 gid=0 ses=2 pid=10840 >>>>>>>>> > comm="ibtest" exe="/usr/local/bin/ibtest" sig=6 res=1 >>>>>>>>> [84391.764574] >>>>>>>>> > gpib debug: pid 0, gpib: closing minor 0 >>>>>>>>> > >>>>>>>>> > I've been debugging this for a week or so now. I'm fairly >>>>>>>>> confident >>>>>>>>> > that the probing of the dongle works. In fact, when I find the >>>>>>>>> dongle >>>>>>>>> > in the sys path, I see that the module driver is in that path of >>>>>>>>> the >>>>>>>>> > device itself: root@tester0:~# ls -ll >>>>>>>>> > /sys/bus/usb/drivers/ni_usb_gpib/1-1.4\:1.0/ total 0 >>>>>>>>> > -rw-r--r-- 1 root root 4096 Nov 7 16:25 authorized >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bAlternateSetting >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceClass >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceNumber >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceProtocol >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceSubClass >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bNumEndpoints >>>>>>>>> > lrwxrwxrwx 1 root root 0 Nov 7 16:25 driver -> >>>>>>>>> > ../../../../../../../../../../bus/usb/drivers/ni_usb_gpib >>>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_02 >>>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_06 >>>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_81 >>>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_84 >>>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_88 >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 modalias >>>>>>>>> > drwxr-xr-x 2 root root 0 Nov 7 16:25 power >>>>>>>>> > lrwxrwxrwx 1 root root 0 Nov 7 16:18 subsystem -> >>>>>>>>> > ../../../../../../../../../../bus/usb >>>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 supports_autosuspend >>>>>>>>> > -rw-r--r-- 1 root root 4096 Nov 7 16:18 uevent >>>>>>>>> > >>>>>>>>> > root@tester0:~# grep ^ >>>>>>>>> > /sys/bus/usb/drivers/ni_usb_gpib/1-1.4\:1.0/modalias >>>>>>>>> > usb:*v3923p709B*d0101dc00dsc00dp00icFFisc00ip00in00 >>>>>>>>> > >>>>>>>>> > The driver itself tells me that the interface registers properly >>>>>>>>> too >>>>>>>>> > (my apologies for the extra debug messages): >>>>>>>>> > [85375.091233] ni_usb_gpib driver loading >>>>>>>>> > [85375.098301] ni_usb_driver_probe >>>>>>>>> > [85375.101436] set bus interface 0 to address 0x00000000bca009b3 >>>>>>>>> > [85375.107200] ni_usb_gpib: probe succeeded for path: >>>>>>>>> > usb-xhci-hcd.1.auto-1.4 >>>>>>>>> > [85375.119145] usbcore: registered new interface driver >>>>>>>>> ni_usb_gpib >>>>>>>>> > [85375.128308] gpib: registered ni_usb_b interface >>>>>>>>> > >>>>>>>>> > However, everywhere I look in the code doesn't indicate to me >>>>>>>>> where >>>>>>>>> > the disconnect occurs. I'm fairly certain the issue is that the >>>>>>>>> > /dev/gpib* section isn't pointing to the dongle area and that's >>>>>>>>> my >>>>>>>>> > problem. I've been trying to create a workaround to this that >>>>>>>>> shows >>>>>>>>> > the device working at all, but I'm not having any luck there. >>>>>>>>> > So I'm at a loss for where to go next. Any suggestions? RIght >>>>>>>>> now, I'm >>>>>>>>> > trying to figure out why I'm getting "interface=". I feel like >>>>>>>>> that's >>>>>>>>> > the underlying problem, but I can't confirm it. >>>>>>>>> > Just in case, here is some extra information about he system I'm >>>>>>>>> on: >>>>>>>>> > Operating System: PetaLinux 2023.2+update-61_04172258- (langdale) >>>>>>>>> > Kernel: Linux 6.1.30-xilinx-v2023.2 >>>>>>>>> > Architecture: arm64 >>>>>>>>> > >>>>>>>>> > Thanks, >>>>>>>>> > Michael >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Drexel University |/ / · ν · Chuck Lane |D >>>>>>>>> ======]--->---C-----π+--< Disque 911 |U >>>>>>>>> Particle Physics \ \ ~~ e+~~ 215-895-1545 |N >>>>>>>>> la...@dc... -μ+--+νν |E >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Linux-gpib-general mailing list >>>>>>>>> Lin...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Linux-gpib-general mailing list >>>>>>>> Lin...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general >>>>>>>> >>>>>>> |
|
From: Michael J. <mgj...@gm...> - 2024-11-12 19:42:11
|
Hey Dave, The dmesg log I sent is currently using the sourceforge user/kernel packages for tag v4_3_6. Would you like me to send you the udev script rules? I did change them a little bit to debug this issue, but it didn't improve things. It did prove that the rules are being enacted (I changed the group and saw that reflected in the /dev/gpib* files). Thanks, Michael On Mon, Nov 11, 2024 at 10:25 PM dave penkler <dpe...@gm...> wrote: > OK it is hitting EFAULT at the IBONL ioctl gpib_config. To be sure that > everything is compatible, you can download, build and install the standard > current combined 4.3.6 user and kernel packages from sourceforge > <https://sourceforge.net/projects/linux-gpib/files/latest/download> and > see if the problem persists. This package supports 6.1.xx kernels. BTW the > /dev/gpib* files are set up by the gpib_common module and the access > permissions in the 98-gpib-generic.rules udev script, so there should be > no problem there. > cheers, > -Dave > > On Mon, 11 Nov 2024 at 21:43, Michael Jaggers <mgj...@gm...> wrote: > >> Yes, there is quite a bit in the console log. I have the debug turned on >> (and added some statements in myself), but this is pretty much what happens >> when I plug in the device: >> [ 9748.976545] usb 1-1.4: new high-speed USB device number 5 using >> xhci-hcd >> [ 9749.084858] usb 1-1.4: config 1 interface 0 altsetting 0 endpoint 0x81 >> has an invalid bInterval 0, changing to 7 >> [ 9749.095353] usb 1-1.4: New USB device found, idVendor=3923, >> idProduct=709b, bcdDevice= 1.01 >> [ 9749.103769] usb 1-1.4: New USB device strings: Mfr=1, Product=2, >> SerialNumber=3 >> [ 9749.111094] usb 1-1.4: Product: GPIB-USB-HS >> [ 9749.115289] usb 1-1.4: Manufacturer: National Instruments >> [ 9749.120690] usb 1-1.4: SerialNumber: 01D9F4A4 >> [ 9749.210590] Linux-GPIB 4.3.6 Driver >> [ 9749.386255] ni_usb_gpib driver loading >> [ 9749.402265] ni_usb_gpib: probe succeeded for path: >> usb-xhci-hcd.1.auto-1.4 >> [ 9749.414241] usbcore: registered new interface driver ni_usb_gpib >> [ 9749.423413] gpib: registered ni_usb_b interface >> [ 9749.927552] gpib debug: pid 0, gpib: opening minor 0 >> [ 9749.935625] gpib debug: pid 0, gpib: request module returned 256 >> [ 9749.942207] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >> onl=0, arg=f523e908 >> [ 9749.970918] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >> onl=0 >> [ 9749.978472] gpib debug: pid 0, gpib: closing minor 0 >> [ 9808.492473] gpib debug: pid 0, gpib: opening minor 0 >> [ 9808.500324] gpib debug: pid 0, gpib: request module returned 256 >> [ 9808.506433] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >> onl=0, arg=fb3f8278 >> >> When I try to run "gpib_config", it only shows this line: >> [11325.680770] gpib debug: pid 0, gpib: opening minor 0 >> [11325.688909] gpib debug: pid 0, gpib: request module returned 256 >> [11325.695036] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >> onl=0, arg=ef9596d8 >> [11325.723526] gpib debug: pid 0, minor 0, ioctl 39, interface=, use=0, >> onl=0 >> [11325.730940] gpib debug: pid 0, gpib: closing minor 0 >> >> Best Regards, >> Michael >> >> On Mon, Nov 11, 2024 at 1:28 PM dave penkler <dpe...@gm...> wrote: >> >>> Hi Michael, >>> The gpib.conf looks perfect. Somewhere during the configure we are >>> getting an EFAULT - Bad address. This would point to some incompatibility >>> between user space gpib_config and the gpib_common kernel module. Is there >>> anything in the console log (dmesg) ? >>> cheers, >>> -dave >>> >>> >>> >>> On Tue, 12 Nov 2024, 05:28 Michael Jaggers, <mgj...@gm...> wrote: >>> >>>> Hey Dave, >>>> >>>> I went back and double checked on the configure argument you asked for, >>>> and I did provide the path to it. I also checked it by putting a syntax >>>> error into the gpib.conf file and that output an error and the path it was >>>> pointing to. >>>> >>>> Here is the conf file that I'm using: >>>> >>>> /* 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_type = "ni_usb_gpib" >>>> name = "gpib0" >>>> pad = 2 >>>> timeout = T1s >>>> eos = 0x0A >>>> set-reos = yes >>>> set-bin = no >>>> master = yes >>>> >>>> } >>>> >>>> Thanks! >>>> Michael >>>> >>>> On Sat, Nov 9, 2024 at 2:24 AM dave penkler <dpe...@gm...> wrote: >>>> >>>>> Hi Michael, >>>>> It looks like a gpib.conf problem. Did you provide a sysconfdir >>>>> argument to .configure ? >>>>> Please send me your gpib.conf file. >>>>> cheers, >>>>> -dave >>>>> >>>>> On Sat, 9 Nov 2024, 04:38 Michael Jaggers, <mgj...@gm...> >>>>> wrote: >>>>> >>>>>> Dave, >>>>>> >>>>>> I've run the gpib_config, but no luck on that end. Here is what >>>>>> happens to me: >>>>>> 1. First, I restart the device without plugging in the gpib (drivers >>>>>> aren't loaded). >>>>>> root@tester0:~/git/linux-gpib-git# gpib_config >>>>>> failed to open device file '/dev/gpib0' >>>>>> main: No such file or directory >>>>>> >>>>>> 2. Now, I plug the gpib dongle in. >>>>>> root@tester0:~/git/linux-gpib-git# gpib_config >>>>>> failed to bring board offline >>>>>> failed to configure board >>>>>> main: Bad address >>>>>> >>>>>> 3. Finally, I unplug the gpib dongle. >>>>>> root@tester0:~/git/linux-gpib-git# gpib_config >>>>>> failed to bring board offline >>>>>> failed to configure board >>>>>> main: Bad address >>>>>> >>>>>> To me, this looks like the dongle isn't attaching to /dev/gpib0. I >>>>>> know the driver recognizes the device, it correctly starts the ni_usb_gpib >>>>>> driver, and probes the correct location on the device tree, and the driver >>>>>> in the device tree points to the correct place the dongle is attached to. >>>>>> What's got me scratching my head is why it's not attached to gpib0 (or even >>>>>> how to circumvent the need to attach to gpib0). >>>>>> >>>>>> Could it be related to my udev? In the rules, in file >>>>>> "/etc/udev/rules.d/98-gpib-generic.rules" I added: >>>>>> ACTION=="add|change", >>>>>> DEVPATH=="/devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0", >>>>>> ENV{GPIB_CONFIG_OPTIONS}="--minor 0" >>>>>> >>>>>> That's the path that udev recognizes. When I run udevadm monitor, I >>>>>> get this after plugging in the dongle: >>>>>> KERNEL[1122.600699] add >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>> (usb) >>>>>> KERNEL[1122.650504] add >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>> (usb) >>>>>> KERNEL[1122.671551] bind >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>> (usb) >>>>>> KERNEL[1122.671684] bind >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>> (usb) >>>>>> UDEV [1122.676333] add >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>> (usb) >>>>>> UDEV [1122.769461] add >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>> (usb) >>>>>> UDEV [1122.772939] bind >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4/1-1.4:1.0 >>>>>> (usb) >>>>>> UDEV [1122.777553] bind >>>>>> /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.4 >>>>>> (usb) >>>>>> >>>>>> Could the version of udev be the cause? >>>>>> root@tester0:~/git/linux-gpib-git# udevd --version >>>>>> 251.8+ >>>>>> root@tester0:~/git/linux-gpib-git# udevadm --version >>>>>> 251 >>>>>> >>>>>> Thanks for your responses! >>>>>> Michael >>>>>> >>>>>> On Thu, Nov 7, 2024 at 9:04 PM dave penkler <dpe...@gm...> >>>>>> wrote: >>>>>> >>>>>>> It looks like the board is not attached. Did you run # gpib_config ? >>>>>>> Normally the supplied udev scripts do this for you. >>>>>>> cheers, >>>>>>> -dave >>>>>>> >>>>>>> On Fri, 8 Nov 2024, 05:24 Charles Lane, <la...@dc...> wrote: >>>>>>> >>>>>>>> Setting up the /dev/gpib* devices is something that >>>>>>>> you might want to look at udev for...but as I recall >>>>>>>> there's some problems. That isn't necessarily in the >>>>>>>> linux-gpib git project, maybe in linux-gpib-packaging >>>>>>>> project....where the idea is to wrap the linux-gpib >>>>>>>> code in an rpm package (so that installation deals >>>>>>>> with udev scripts, protection issues, etc) >>>>>>>> >>>>>>>> On Thu, 7 Nov 2024 09:51:32 -0700 >>>>>>>> Michael Jaggers <mgj...@gm...> wrote: >>>>>>>> >>>>>>>> > Hello, >>>>>>>> > >>>>>>>> > I'm working on installing the gpib kernel drivers to the Petalinux >>>>>>>> > platform. So far, I've managed to get the headers and get the gpib >>>>>>>> > drivers compiled + installed. The modules show up with modprobe, >>>>>>>> and >>>>>>>> > when I plug my gpib dongle in the driver loads properly and it >>>>>>>> seems >>>>>>>> > to recognize it. Below is the message I get when plugging in the >>>>>>>> > dongle: [19163.768240] usb 1-1.4: new high-speed USB device >>>>>>>> number 11 >>>>>>>> > using xhci-hcd [19164.020393] usb 1-1.4: config 1 interface 0 >>>>>>>> > altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing >>>>>>>> to 7 >>>>>>>> > [19164.030876] usb 1-1.4: New USB device found, idVendor=3923, >>>>>>>> > idProduct=709b, bcdDevice= 1.01 >>>>>>>> > [19164.039247] usb 1-1.4: New USB device strings: Mfr=1, >>>>>>>> Product=2, >>>>>>>> > SerialNumber=3 >>>>>>>> > [19164.046560] usb 1-1.4: Product: GPIB-USB-HS >>>>>>>> > [19164.050739] usb 1-1.4: Manufacturer: National Instruments >>>>>>>> > [19164.056138] usb 1-1.4: SerialNumber: 01D9F4A4 >>>>>>>> > >>>>>>>> > Here is where the issue comes up. When ibopen goes to set things >>>>>>>> up >>>>>>>> > with the dongle, the /dev/gpib0 doesn't seem to be properly >>>>>>>> > configured. I get this message when I run the ibtest utility: >>>>>>>> > [84391.688217] gpib debug: pid 0, gpib: opening minor 0 >>>>>>>> > [84391.696029] gpib debug: pid 0, gpib: request module returned >>>>>>>> 256 >>>>>>>> > [84391.702071] gpib debug: pid 0, minor 0, ioctl 3, interface=, >>>>>>>> use=0, >>>>>>>> > onl=0, arg=d8a171a0 >>>>>>>> > [84391.710090] gpib: no gpib board configured on /dev/gpib0 >>>>>>>> > [84391.715398] gpib debug: pid 0, minor 0, ioctl 3, interface=, >>>>>>>> > use=0, onl=0 [84391.722212] gpib debug: pid 0, minor 0, ioctl 5, >>>>>>>> > interface=, use=0, onl=0, arg=d8a17120 >>>>>>>> > [84391.730218] gpib: no gpib board configured on /dev/gpib0 >>>>>>>> > [84391.735527] gpib debug: pid 0, minor 0, ioctl 5, interface=, >>>>>>>> > use=0, onl=0 [84391.742357] gpib debug: pid 0, minor 0, ioctl 5, >>>>>>>> > interface=, use=0, onl=0, arg=d8a17180 >>>>>>>> > [84391.750363] gpib: no gpib board configured on /dev/gpib0 >>>>>>>> > [84391.755673] gpib debug: pid 0, minor 0, ioctl 5, interface=, >>>>>>>> > use=0, onl=0 [84391.762675] audit: type=1701 >>>>>>>> > audit(1730996390.861:20): auid=0 uid=0 gid=0 ses=2 pid=10840 >>>>>>>> > comm="ibtest" exe="/usr/local/bin/ibtest" sig=6 res=1 >>>>>>>> [84391.764574] >>>>>>>> > gpib debug: pid 0, gpib: closing minor 0 >>>>>>>> > >>>>>>>> > I've been debugging this for a week or so now. I'm fairly >>>>>>>> confident >>>>>>>> > that the probing of the dongle works. In fact, when I find the >>>>>>>> dongle >>>>>>>> > in the sys path, I see that the module driver is in that path of >>>>>>>> the >>>>>>>> > device itself: root@tester0:~# ls -ll >>>>>>>> > /sys/bus/usb/drivers/ni_usb_gpib/1-1.4\:1.0/ total 0 >>>>>>>> > -rw-r--r-- 1 root root 4096 Nov 7 16:25 authorized >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bAlternateSetting >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceClass >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceNumber >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceProtocol >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bInterfaceSubClass >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 bNumEndpoints >>>>>>>> > lrwxrwxrwx 1 root root 0 Nov 7 16:25 driver -> >>>>>>>> > ../../../../../../../../../../bus/usb/drivers/ni_usb_gpib >>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_02 >>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_06 >>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_81 >>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_84 >>>>>>>> > drwxr-xr-x 3 root root 0 Nov 7 16:25 ep_88 >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 modalias >>>>>>>> > drwxr-xr-x 2 root root 0 Nov 7 16:25 power >>>>>>>> > lrwxrwxrwx 1 root root 0 Nov 7 16:18 subsystem -> >>>>>>>> > ../../../../../../../../../../bus/usb >>>>>>>> > -r--r--r-- 1 root root 4096 Nov 7 16:25 supports_autosuspend >>>>>>>> > -rw-r--r-- 1 root root 4096 Nov 7 16:18 uevent >>>>>>>> > >>>>>>>> > root@tester0:~# grep ^ >>>>>>>> > /sys/bus/usb/drivers/ni_usb_gpib/1-1.4\:1.0/modalias >>>>>>>> > usb:*v3923p709B*d0101dc00dsc00dp00icFFisc00ip00in00 >>>>>>>> > >>>>>>>> > The driver itself tells me that the interface registers properly >>>>>>>> too >>>>>>>> > (my apologies for the extra debug messages): >>>>>>>> > [85375.091233] ni_usb_gpib driver loading >>>>>>>> > [85375.098301] ni_usb_driver_probe >>>>>>>> > [85375.101436] set bus interface 0 to address 0x00000000bca009b3 >>>>>>>> > [85375.107200] ni_usb_gpib: probe succeeded for path: >>>>>>>> > usb-xhci-hcd.1.auto-1.4 >>>>>>>> > [85375.119145] usbcore: registered new interface driver >>>>>>>> ni_usb_gpib >>>>>>>> > [85375.128308] gpib: registered ni_usb_b interface >>>>>>>> > >>>>>>>> > However, everywhere I look in the code doesn't indicate to me >>>>>>>> where >>>>>>>> > the disconnect occurs. I'm fairly certain the issue is that the >>>>>>>> > /dev/gpib* section isn't pointing to the dongle area and that's my >>>>>>>> > problem. I've been trying to create a workaround to this that >>>>>>>> shows >>>>>>>> > the device working at all, but I'm not having any luck there. >>>>>>>> > So I'm at a loss for where to go next. Any suggestions? RIght >>>>>>>> now, I'm >>>>>>>> > trying to figure out why I'm getting "interface=". I feel like >>>>>>>> that's >>>>>>>> > the underlying problem, but I can't confirm it. >>>>>>>> > Just in case, here is some extra information about he system I'm >>>>>>>> on: >>>>>>>> > Operating System: PetaLinux 2023.2+update-61_04172258- (langdale) >>>>>>>> > Kernel: Linux 6.1.30-xilinx-v2023.2 >>>>>>>> > Architecture: arm64 >>>>>>>> > >>>>>>>> > Thanks, >>>>>>>> > Michael >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Drexel University |/ / · ν · Chuck Lane |D >>>>>>>> ======]--->---C-----π+--< Disque 911 |U >>>>>>>> Particle Physics \ \ ~~ e+~~ 215-895-1545 |N >>>>>>>> la...@dc... -μ+--+νν |E >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Linux-gpib-general mailing list >>>>>>>> Lin...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> Linux-gpib-general mailing list >>>>>>> Lin...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general >>>>>>> >>>>>> |