Re: [time-nuts] linux-gpib working on a RasPI

2013-11-12 Thread cfo
On Mon, 11 Nov 2013 20:44:59 +, cfo wrote:

 I have finally succeded in making linux-gpib build and load the
 agilent_82357a_gpib module.
 

I have put the howto online here 
http://www.eevblog.com/forum/reviews/using-a-raspberry-pi-with-linux-gpib-
and-a-beiming-or-agilent-usb-gpib-adapter/

or

http://tinyurl.com/pry8fqu


CFO (Bingo)

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


[time-nuts] linux-gpib working on a RasPI

2013-11-11 Thread cfo

I have finally succeded in making linux-gpib build and 
load the agilent_82357a_gpib module.

Now i have a 3..5 Watt- Networked GPIB-Adapter , where even python 
bindings work.

pi@raspberrypi-3 ~/raspi $ sudo python
Python 2.7.3 (default, Jan 13 2013, 11:20:46) 
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
 import Gpib
 inst = Gpib.Gpib(0,16) # address 6
 inst.write(*IDN?)
 inst.read(100) # read 100 bytes
'KEITHLEY INSTRUMENTS INC.,MODEL 2015,1043877,B15  /A02  \n'
 


I have tested (just *IDN? for now) with an Agilent 82357B and a Beiming 
S82357 GPIB-USB. Both reported my Keithley IDN ok.


CFO - Tnut Beginner


*** Kernel snip *

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: MY4945
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 0xdb5e
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: CP1001
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 ~ $ 


___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] linux-gpib working on a RasPI

2013-11-11 Thread Bob Stewart
Good job!  I've read other good experiences about the Beiming.  I finally wound 
up buying a Prologix Ethernet adapter.  Let this be a warning to anyone who is 
tempted to buy the 82357B clone with the gold-anodized aluminum case.  Do Not 
Do It!

Bob






 From: cfo xne...@luna.dyndns.dk
To: time-nuts@febo.com 
Sent: Monday, November 11, 2013 2:44 PM
Subject: [time-nuts] linux-gpib working on a RasPI
 


I have finally succeded in making linux-gpib build and 
load the agilent_82357a_gpib module.

Now i have a 3..5 Watt- Networked GPIB-Adapter , where even python 
bindings work.

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] linux-gpib working on a RasPI

2013-11-11 Thread Mark C. Stephens
Hi Bob, what is so wrong with the Anodised version?

--mark

-Original Message-
From: time-nuts-boun...@febo.com [mailto:time-nuts-boun...@febo.com] On Behalf 
Of Bob Stewart
Sent: Tuesday, 12 November 2013 8:25 AM
To: Discussion of precise time and frequency measurement
Subject: Re: [time-nuts] linux-gpib working on a RasPI

Good job!  I've read other good experiences about the Beiming.  I finally wound 
up buying a Prologix Ethernet adapter.  Let this be a warning to anyone who is 
tempted to buy the 82357B clone with the gold-anodized aluminum case.  Do Not 
Do It!

Bob






 From: cfo xne...@luna.dyndns.dk
To: time-nuts@febo.com
Sent: Monday, November 11, 2013 2:44 PM
Subject: [time-nuts] linux-gpib working on a RasPI
 


I have finally succeded in making linux-gpib build and load the 
agilent_82357a_gpib module.

Now i have a 3..5 Watt- Networked GPIB-Adapter , where even python 
bindings work.

___
time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to 
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] linux-gpib working on a RasPI

2013-11-11 Thread Bob Stewart
Hi Mark,

Well, his subject is linux-gpib, and the gold anodized clone simply will not 
work with the linux-gpib drivers.  I think I drove the developer batty trying 
to get it to go, but it's not going to happen without a complete rework of the 
code.  I don't know whether that will ever take place, either.

OTOH, if you are using the Agilent driver, it seems to work well.  By this I 
mean that under Windows XP, Agilent's Connection Expert was able to send and 
receive commands and data to my HP units.  It was also able to do the same over 
the network when Connection Expert was running in a Windows Virtual Box on my 
Debian system and I was running XP natively on a separate machine as the 
client.  I thought about trying to just run through the network with a Linux 
client on the host, but I was unable to get information on how to get that 
configuration to run from the Linux side, so I just gave up.  It might have 
happened eventually, but I just wasn't in the mood to drop my project to spend 
weeks on figuring out how.  

With the Prologix unit, I had a homebrew client library (in C) up and running 
well enough to make me happy the day it arrived.  I do not use NI-VISA, and 
trying to figure out that mares nest just left me completely mystified.  I'm a 
good enough C programmer to do the things I need once I have connectivity and a 
simple interface.  No connection to Prologix, etc, etc, etc.

Bob - AE6RV






 From: Mark C. Stephens ma...@non-stop.com.au
To: Bob Stewart b...@evoria.net; Discussion of precise time and frequency 
measurement time-nuts@febo.com 
Sent: Monday, November 11, 2013 4:33 PM
Subject: RE: [time-nuts] linux-gpib working on a RasPI
 

Hi Bob, what is so wrong with the Anodised version?

--mark

-Original Message-
From: time-nuts-boun...@febo.com [mailto:time-nuts-boun...@febo.com] On Behalf 
Of Bob Stewart
Sent: Tuesday, 12 November 2013 8:25 AM
To: Discussion of precise time and frequency measurement
Subject: Re: [time-nuts] linux-gpib working on a RasPI

Good job!  I've read other good experiences about the Beiming.  I finally 
wound up buying a Prologix Ethernet adapter.  Let this be a warning to anyone 
who is tempted to buy the 82357B clone with the gold-anodized aluminum case.  
Do Not Do It!

Bob






 From: cfo xne...@luna.dyndns.dk
To: time-nuts@febo.com
Sent: Monday, November 11, 2013 2:44 PM
Subject: [time-nuts] linux-gpib working on a RasPI
 


I have finally succeded in making linux-gpib build and load the 
agilent_82357a_gpib module.

Now i have a 3..5 Watt- Networked GPIB-Adapter , where even python 
bindings work.

___
time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to 
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.





___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] linux-gpib working on a RasPI

2013-11-11 Thread Hal Murray

 With the Prologix unit, I had a homebrew client library (in C) up and
 running well enough to make me happy the day it arrived.  I do not use
 NI-VISA, and trying to figure out that mares nest just left me completely
 mystified.  I'm a good enough C programmer to do the things I need once I
 have connectivity and a simple interface.  No connection to Prologix, etc,
 etc, etc. 

Another thumbs up on the Prologix unit.

I'm not sure I had it running the day it arrived, but it was close to that.  
(I may have been busy with something else.)  My only stumbling was getting 
the flow control turned on.

YMMV etc.  I prefer working with low level bits rather than fancy GUI stuff.

I have one connected to a HP 5334B.  It's been collecting data for several 
years.

My demo/starter code is out on the web.  I'll dig up the URL if anybody has 
problems finding it.



-- 
These are my opinions.  I hate spam.



___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] linux-gpib working on a RasPI

2013-11-11 Thread Bob Stewart
I've got a question for you Hal.  We can take it offline if it's more than a 
response or two.  I opened two sockets to the adapter in one program and found 
the same socket id.  OK, that tells me that I have to address each device 
before sending commands to it, rather than having a separate socket id.  And it 
makes sense.  But how does it work when I have multiple programs wanting to 
access different devices?  Am I doing to need to put some lock code in so that 
the adapter is globally locked to one program while it sending or receiving 
to/from a device to prevent the two programs stepping on each other?  For 
example, I've got 2 counters and a voltmeter.  It's no stretch to think of two 
different tests, or even three using those instruments separately.

Bob






 From: Hal Murray hmur...@megapathdsl.net
To: Discussion of precise time and frequency measurement time-nuts@febo.com 
Sent: Monday, November 11, 2013 11:08 PM
Subject: Re: [time-nuts] linux-gpib working on a RasPI
 


 With the Prologix unit, I had a homebrew client library (in C) up and
 running well enough to make me happy the day it arrived.  I do not use
 NI-VISA, and trying to figure out that mares nest just left me completely
 mystified.  I'm a good enough C programmer to do the things I need once I
 have connectivity and a simple interface.  No connection to Prologix, etc,
 etc, etc. 

Another thumbs up on the Prologix unit.

I'm not sure I had it running the day it arrived, but it was close to that.  
(I may have been busy with something else.)  My only stumbling was getting 
the flow control turned on.

YMMV etc.  I prefer working with low level bits rather than fancy GUI stuff.

I have one connected to a HP 5334B.  It's been collecting data for several 
years.

My demo/starter code is out on the web.  I'll dig up the URL if anybody has 
problems finding it.



-- 
These are my opinions.  I hate spam.



___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.



___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] linux-gpib working on a RasPI

2013-11-11 Thread Prologix
Prologix Ethernet controller supports only one client connection. A second
connection will disconnect the first one. Make sense, since a GPIB bus can
have only one (active) controller. Currently, the controller does not allow
a client to lock it exclusively, since that opens up the issue of orphaned
locks due to crashed clients, and so on. One solution is to develop a piece
of host software (a controller server, if you will) that acts as the
(only) client to the controller, and to which the various test programs then
connect. This software can arbitrate access to the controller. For further
help, please contact us off-list.

Regards,
Prologix

-Original Message-
From: time-nuts-boun...@febo.com [mailto:time-nuts-boun...@febo.com] On
Behalf Of Bob Stewart
Sent: Monday, November 11, 2013 9:36 PM
To: Discussion of precise time and frequency measurement
Subject: Re: [time-nuts] linux-gpib working on a RasPI

I've got a question for you Hal.  We can take it offline if it's more than a
response or two.  I opened two sockets to the adapter in one program and
found the same socket id.  OK, that tells me that I have to address each
device before sending commands to it, rather than having a separate socket
id.  And it makes sense.  But how does it work when I have multiple programs
wanting to access different devices?  Am I doing to need to put some lock
code in so that the adapter is globally locked to one program while it
sending or receiving to/from a device to prevent the two programs stepping
on each other?  For example, I've got 2 counters and a voltmeter.  It's no
stretch to think of two different tests, or even three using those
instruments separately.

Bob






 From: Hal Murray hmur...@megapathdsl.net
To: Discussion of precise time and frequency measurement 
time-nuts@febo.com
Sent: Monday, November 11, 2013 11:08 PM
Subject: Re: [time-nuts] linux-gpib working on a RasPI
 


 With the Prologix unit, I had a homebrew client library (in C) up 
 and running well enough to make me happy the day it arrived.  I do 
 not use NI-VISA, and trying to figure out that mares nest just left 
 me completely mystified.  I'm a good enough C programmer to do the 
 things I need once I have connectivity and a simple interface.  No 
 connection to Prologix, etc, etc, etc.

Another thumbs up on the Prologix unit.

I'm not sure I had it running the day it arrived, but it was close to 
that. (I may have been busy with something else.)  My only stumbling 
was getting the flow control turned on.

YMMV etc.  I prefer working with low level bits rather than fancy GUI
stuff.

I have one connected to a HP 5334B.  It's been collecting data for 
several years.

My demo/starter code is out on the web.  I'll dig up the URL if anybody 
has problems finding it.



--
These are my opinions.  I hate spam.



___
time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to 
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.



___
time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.