Products > Test Equipment
External Display for Agilent 34401A (or any DMM with RS232 Output Stream)
<< < (5/8) > >>
bingo600:

--- Quote from: timb on November 10, 2013, 04:18:11 am ---
--- Quote from: bingo600 on November 09, 2013, 04:40:20 pm ---I'd suggest a RasPI as the "logic" ....
HDMI out and also a serial in.

Get a cheap PC-Screen with HDMI/DVI & off you go.
You could use mathplotlib or whatever for statistics.

/Bingo

--- End quote ---

You could even throw on a USB GPIB adapter (plus linux-gpib drivers) and you'd have easy access to a whole range of scopes and other devices.

--- End quote ---

Do you have linux-gpib running wit a USB-GPIB adapter ?

I have been trying to build a working HP-USB driver for linux-gpib , on the RasPI.
But i haven't succeded yet ... I have gotten it to build ok , but when i load it the RasPI stops (I guess crashes) , as the only way to get it going is power off/on. No messages in the log or .....

I'm using the distro from RasPI foundation , but apparently they don't think that a "Kernel Header" package is a nice thing to provide for their users.
And that might be the cause , that the symbolfile doesn't match the kernel vers.
I have also been seriously figthing the modules buildprocess to get it to build with armhf (hard float)
Apparently my Raspi won't do that by default  :(

I am seriously thinking about switching to Raspian (witch apparently isn't the same build as the one from the RasPI site) , it seems like they do provide a hernel header package.
I am just worried if they have the same number of pre-build packages as the one i use now.
But it's really strange that people have been complaining for more than a year now , about the missing kernel headers. And the foundation doesn't make a packagr

This post (issue) , was the one hinting that the Raspian kernel isn't the one - The foundtion uses
https://github.com/raspberrypi/linux/issues/382
https://bugs.launchpad.net/raspbian/+bug/1228643


And this one might be the reason i can't get it to work , it seems like the foundation even have FSCK'ed up somewhere in the "Kludge" we need to do, in order get the right symbols for the kernel currently used on the RasPI.
https://github.com/raspberrypi/linux/issues/387


If anyone have it working , please give some tips here ....

/Bingo

Edit:
I have 2 of these http://www.ebay.de/itm/190923137633
Is supposed to work with the RasPI FB driver
timb:
There is no "official" Raspbian image. The Raspberry Pi Foundation does a debootstrap of Raspbian and then adds their own packages, drivers and tweaks. Their version is designed for normal users and isn't designed for power users who would be doing things that required the kernel headers, so it's rather a moot point.

If you don't want to debootstrap your own version then I suggest you grab Hexxeh's image (and his awesome update tool) plus the headers from the GitHub repository. Raspbian is the provider of the package repository that the foundation uses as well, so you won't have problems obtaining packages. ;)

Another option is Arch Linux, which is what I generally use. I'm pretty sure I got linux-GPIB working on it back in August, but I'd have to go through my notes to make sure.
bingo600:

--- Quote from: timb on November 10, 2013, 09:20:48 am ---There is no "official" Raspbian image. The Raspberry Pi Foundation does a debootstrap of Raspbian and then adds their own packages, drivers and tweaks. Their version is designed for normal users and isn't designed for power users who would be doing things that required the kernel headers, so it's rather a moot point.

If you don't want to debootstrap your own version then I suggest you grab Hexxeh's image (and his awesome update tool) plus the headers from the GitHub repository. Raspbian is the provider of the package repository that the foundation uses as well, so you won't have problems obtaining packages. ;)

Another option is Arch Linux, which is what I generally use. I'm pretty sure I got linux-GPIB working on it back in August, but I'd have to go through my notes to make sure.

--- End quote ---

I like debian ...

Could you point me to a recent kernel by Hexxeh , and does he update them ?

Is there any reason i shouldn't just run the kernel from Raspian ?
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=71&t=29326

TIA
Bingo
bingo600:
Heyy ....

This might mean success on building linux-gpib for the RasPi

Nov 11 18:14:13 raspberrypi-3 kernel: [ 1667.085542] Linux-GPIB 3.2.19 Driver
Nov 11 18:14:13 raspberrypi-3 kernel: [ 1667.113930] agilent_82357a_gpib driver loading
Nov 11 18:14:13 raspberrypi-3 kernel: [ 1667.114100] usbcore: registered new interface driver agilent_82357a_gpib
Nov 11 18:14:13 raspberrypi-3 kernel: [ 1667.114119] gpib: registered agilent_82357a interface

/Bingo
bingo600:
Yes

I have a working linux-gpib on a RasPI

This means i can do measurements with a 3..5 Watt linux computer.
And basically have a $40 + ($79 for GPIB) network enabled GPIB adapter.


The Beiming USB-GPIB adapter is $79 , and works the same way as the
Agilent under linux-gpib.
And afaik also with Aglent drivers under windows ==> Visa , i haven't
tried windooze.

http://www.ebay.com/itm/S82357-GPIB-USB-interface-compatible-with-Agilent-82357B-/181253216568
I have been working with them during the last 4 months to test their new
linux compatible firmware.



This is a snip from the kernel.log


--- Code: ---




Nov 11 20:22:06 raspberrypi-3 kernel: [  184.631539] Linux-GPIB 3.2.19 Driver
Nov 11 20:22:06 raspberrypi-3 kernel: [  184.664507] agilent_82357a_gpib driver loading

*** Agilent insert

Nov 11 20:22:06 raspberrypi-3 kernel: [  184.664681] usbcore: registered new interface driver agilent_82357a_gpib
Nov 11 20:22:06 raspberrypi-3 kernel: [  184.664702] gpib: registered agilent_82357a interface
Nov 11 20:22:39 raspberrypi-3 kernel: [  218.065122] usb 1-1.3: USB disconnect, device number 4
Nov 11 20:22:41 raspberrypi-3 kernel: [  219.837498] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
Nov 11 20:22:41 raspberrypi-3 kernel: [  219.937934] usb 1-1.3: New USB device found, idVendor=0957, idProduct=0518
Nov 11 20:22:41 raspberrypi-3 kernel: [  219.937963] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Nov 11 20:22:55 raspberrypi-3 kernel: [  233.427209] usb 1-1.3: USB disconnect, device number 5
Nov 11 20:22:57 raspberrypi-3 kernel: [  235.197578] usb 1-1.3: new high-speed USB device number 6 using dwc_otg
Nov 11 20:22:57 raspberrypi-3 kernel: [  235.299248] usb 1-1.3: New USB device found, idVendor=0957, idProduct=0718
Nov 11 20:22:57 raspberrypi-3 kernel: [  235.299280] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Nov 11 20:22:57 raspberrypi-3 kernel: [  235.299298] usb 1-1.3: Product: 82357B ()
Nov 11 20:22:57 raspberrypi-3 kernel: [  235.299315] usb 1-1.3: Manufacturer: Agilent Technologies, Inc.
Nov 11 20:22:57 raspberrypi-3 kernel: [  235.299330] usb 1-1.3: SerialNumber: MY4945xxxx
Nov 11 20:22:57 raspberrypi-3 kernel: [  235.309402] probe succeeded for path: usb-bcm2708_usb-1.3
Nov 11 20:23:20 raspberrypi-3 kernel: [  258.549769] attached to bus interface 0, address 0xdb5e0000
Nov 11 20:23:20 raspberrypi-3 kernel: [  258.568586] agilent_82357a_attach: attached
Nov 11 20:27:21 raspberrypi-3 kernel: [  499.191299] usb 1-1.3: USB disconnect, device number 6
Nov 11 20:27:21 raspberrypi-3 kernel: [  499.191651] agilent_82357a_driver_disconnect: exit

*** Beiming insert

Nov 11 20:28:22 raspberrypi-3 kernel: [  560.873199] usb 1-1.3: new high-speed USB device number 7 using dwc_otg
Nov 11 20:28:23 raspberrypi-3 kernel: [  561.205274] usb 1-1.3: New USB device found, idVendor=0957, idProduct=0718
Nov 11 20:28:23 raspberrypi-3 kernel: [  561.205304] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Nov 11 20:28:23 raspberrypi-3 kernel: [  561.205321] usb 1-1.3: Product: S82357 ()
Nov 11 20:28:23 raspberrypi-3 kernel: [  561.205337] usb 1-1.3: Manufacturer: BEIMING Technologies, Inc.
Nov 11 20:28:23 raspberrypi-3 kernel: [  561.205352] usb 1-1.3: SerialNumber: CP1001xxxx
Nov 11 20:28:23 raspberrypi-3 kernel: [  561.215169] probe succeeded for path: usb-bcm2708_usb-1.3
Nov 11 20:29:37 raspberrypi-3 kernel: [  635.696267] gpib0: exiting autospoll thread
Nov 11 20:29:37 raspberrypi-3 kernel: [  635.696388] agilent_82357a_detach: detached
Nov 11 20:29:37 raspberrypi-3 kernel: [  635.696526] attached to bus interface 0, address 0xda1b7000
Nov 11 20:29:37 raspberrypi-3 kernel: [  635.715456] agilent_82357a_attach: attached
Nov 11 20:31:32 raspberrypi-3 kernel: [  750.316900] /home/pi/raspi/linux-gpib-code/linux-gpib/drivers/gpib/agilent_82357a/agilent_82357a.c: agilent_82357a_read: agilent_82357a_receive_bulk_msg timed out, bytes_read=0, extra_bytes_read=1
pi@raspberrypi-3 ~ $





root@raspberrypi-3:~# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0957:0518 Agilent Technologies, Inc. 82357B GPIB Interface
root@raspberrypi-3:~# fxload -t fx2 -D /dev/bus/usb/001/004 -I /usr/share/usb/agilent_82357a/measat_releaseX1.8.hex

root@raspberrypi-3:~# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 0957:0518 Agilent Technologies, Inc. 82357B GPIB Interface
root@raspberrypi-3:~# fxload -t fx2 -D /dev/bus/usb/001/005 -I /usr/share/usb/agilent_82357a/measat_releaseX1.8.hex

root@raspberrypi-3:~# gpib_config

root@raspberrypi-3:~# ls /dev/gpib*
/dev/gpib0  /dev/gpib10  /dev/gpib12  /dev/gpib14  /dev/gpib2 /dev/gpib4  /dev/gpib6  /dev/gpib8
/dev/gpib1  /dev/gpib11  /dev/gpib13  /dev/gpib15  /dev/gpib3 /dev/gpib5  /dev/gpib7  /dev/gpib9

root@raspberrypi-3:~# 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]: 16
trying to open pad = 16 on /dev/gpib0 ...
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
    (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
: w*idn
enter a string to send to your device: *idn?
sending string: *idn?

gpib status is:
ibsta = 0x2100  < END CMPL >
iberr= 0

ibcnt = 6
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
    (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
: r
enter maximum number of bytes to read [1024]:
trying to read 1024 bytes from device...
received string: 'KEITHLEY INSTRUMENTS INC.,MODEL 2015,1043877,B15 /A02
'
Number of bytes read: 57
gpib status is:
ibsta = 0x2100  < END CMPL >
iberr= 0

ibcnt = 57
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
    (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
: q



************** Beiming *******************


ibcnt = 0
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
    (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
: w
enter a string to send to your device: *idn?
sending string: *idn?

gpib status is:
ibsta = 0x2100  < END CMPL >
iberr= 0

ibcnt = 6
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
    (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
: r
enter maximum number of bytes to read [1024]:
trying to read 1024 bytes from device...
received string: 'EITHLEY INSTRUMENTS INC.,MODEL 2015,1043877,B15 /A02
'
Number of bytes read: 56
gpib status is:
ibsta = 0x2100  < END CMPL >
iberr= 0

ibcnt = 56
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
    (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
:


--- End code ---


Neat ....

The stuff that made my modules load ok
https://www.eevblog.com/forum/reviews/howto-get-the-raspian-kernel-installed-with-headers/
/Bingo
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod