Ralf Gorholt
2017-01-02 10:37:19 UTC
Dear list members,
before I ask for your help, I would like to wish you all a happy and
peaceful year 2017.
I have developed a USB GPIB interface based on a TMS9914 interface chip
and an ATMEGA162 microcontroller. As far as I can tell up to now, the
interface works. When I use it on Windows with the FTDI device driver
(ftd2xx), I can control my signal generator. Now I would like to get it
to work with linux-gpib.
I have seen that a driver module exists for the USB interface that has
been developed at the university of Ljubljana (lpvo_usb_gpib) and I
would like to take this as an example for my own driver development.
Unfortunately, I have not done any development on Linux yet and so my
knowledge is quite limited here.
In the lpvo_usb_gpib module, I have found a table with all the functions
that a GPIB interface should provide. To see which function is called
and when, I have currently replaced the body of all interface functions with
printk(KERN_ALERT "%s:%s - currently a NOP\n", HERE);
I can load and unload my driver module and see the corresponding
messages in /var/log/syslog and /var/log/messages. But what I do not see
is the execution of the attach and detach functions when I call
gpib_config. The only message I see when I call gpib_config is "gpib0:
exiting autospoll thread". Shouldn't they be called when I call
gpib_config? If not, when are attach and detach called?
Perhaps somebody can point me in the right direction. Any help is
appreciated. But, please don't forget that for me everything concerning
Linux development is really new.
Thank you very much for your help!
Kind regards,
Ralf (DL5EU)
before I ask for your help, I would like to wish you all a happy and
peaceful year 2017.
I have developed a USB GPIB interface based on a TMS9914 interface chip
and an ATMEGA162 microcontroller. As far as I can tell up to now, the
interface works. When I use it on Windows with the FTDI device driver
(ftd2xx), I can control my signal generator. Now I would like to get it
to work with linux-gpib.
I have seen that a driver module exists for the USB interface that has
been developed at the university of Ljubljana (lpvo_usb_gpib) and I
would like to take this as an example for my own driver development.
Unfortunately, I have not done any development on Linux yet and so my
knowledge is quite limited here.
In the lpvo_usb_gpib module, I have found a table with all the functions
that a GPIB interface should provide. To see which function is called
and when, I have currently replaced the body of all interface functions with
printk(KERN_ALERT "%s:%s - currently a NOP\n", HERE);
I can load and unload my driver module and see the corresponding
messages in /var/log/syslog and /var/log/messages. But what I do not see
is the execution of the attach and detach functions when I call
gpib_config. The only message I see when I call gpib_config is "gpib0:
exiting autospoll thread". Shouldn't they be called when I call
gpib_config? If not, when are attach and detach called?
Perhaps somebody can point me in the right direction. Any help is
appreciated. But, please don't forget that for me everything concerning
Linux development is really new.
Thank you very much for your help!
Kind regards,
Ralf (DL5EU)