PS2000con Unable to open device

Post your Linux discussions here.

PS2000con Unable to open device

Postby jeffsadowski » Tue Jun 30, 2009 2:44 am

usbtest seems to work there is an error in the script's logic it will always print "Pico USB device not found. Please try again" at the end.
The relevant output of usbtest is
Code: Select all
Pico USB device found: /dev/bus/usb/001/009

- It belongs to root (which is you) who has permissions rw-
- The members of group root (which you are in) have permissions rw-
- Everyone else has permissions r--
- You can write to this device and so will be able to use it.

I compiled PS2000con as described in the readme and it compiled with no issues.
When I run ./PS2000con it outputs
Code: Select all
PS2000 driver example program
Version 1.0



Opening the device...
Handle: 0
Unable to open device
Unit Not Opened
Error Code: 3

then sits there till I hit Ctrl+c

I'd like to get this working so that I can write an app for linux to use my oscilloscope.

If I can get the test app working I can make my own stuff.
jeffsadowski
User
User
 
Posts: 3
Joined: Fri Apr 24, 2009 3:12 am

Postby ziko » Wed Jul 01, 2009 8:47 am

Hi I had a word with one of the engineers and here is what he had to say:

"We are aware of the problem with usbtest and it will be fixed in the next release. The rest of the output of the script should be correct, however.

The usbtest output you have posted shows that this device is only writeable by root, meaning that only the root user will be able to access the oscilloscope. So the first question is: are you running the ps2000con example program as root? If not, try doing so and see if you can access the oscilloscope. If it now works, you need to set up the file permissions for USB devices on your system so other users can access the oscilloscope: this is system-specific, but there's some guidance in the file INSTALL in the tar distribution.

If the example program still doesn't work when run as root we will need a bit more information: which Pico oscilloscope do you have (e.g. PicoScope 2203), which Linux distribution and version are you using? Have you successfully used this oscilloscope with a Windows PC? You could also send the output of "ls -lR /dev/bus/usb", and "cat /proc/bus/usb/devices" or "cat /dev/bus/usb/devices" (only one, or neither, of these files may exist depending on distribution).

(Aside: after the example program has displayed the error code, it is in fact waiting for you to press a key and will terminate gracefully if you do so. We ought to add a "Press any key to continue..." message to the program.)
"

Hope this helps.
Ziko

Technical Specialist
ziko
Site Admin
Site Admin
 
Posts: 1580
Joined: Fri Dec 01, 2006 11:03 am
Location: St Neots

Postby jeffsadowski » Wed Jul 01, 2009 2:07 pm

ziko wrote:Hi I had a word with one of the engineers and here is what he had to say:

"We are aware of the problem with usbtest and it will be fixed in the next release. The rest of the output of the script should be correct, however.

The usbtest output you have posted shows that this device is only writeable by root, meaning that only the root user will be able to access the oscilloscope. So the first question is: are you running the ps2000con example program as root? If not, try doing so and see if you can access the oscilloscope. If it now works, you need to set up the file permissions for USB devices on your system so other users can access the oscilloscope: this is system-specific, but there's some guidance in the file INSTALL in the tar distribution.

I was using the example program as root.
I installed the udev device file afterwards and added the proper pico group
and users to the group
ziko wrote:If the example program still doesn't work when run as root we will need a bit more information: which Pico oscilloscope do you have (e.g. PicoScope 2203), which Linux distribution and version are you using? Have you successfully used this oscilloscope with a Windows PC? You could also send the output of "ls -lR /dev/bus/usb", and "cat /proc/bus/usb/devices" or "cat /dev/bus/usb/devices" (only one, or neither, of these files may exist depending on distribution).

(Aside: after the example program has displayed the error code, it is in fact waiting for you to press a key and will terminate gracefully if you do so. We ought to add a "Press any key to continue..." message to the program.)
"

Hope this helps.

I am using the picoscope 2203
I am using kubuntu 9.04
Yes, the picoscope works in windows on the same machine.
Code: Select all
ls -lR /dev/bus/usb/001/003
crw-rw-r-- 1 root pico 189, 2 2009-07-01 07:00 /dev/bus/usb/001/003

Is there a list of required libs that are needed by libps2000 library?
jeffsadowski
User
User
 
Posts: 3
Joined: Fri Apr 24, 2009 3:12 am

Postby ziko » Fri Jul 03, 2009 9:19 am

If anyone else is having a problem with the 2203 and linux, please email us at support@picotech.com

Kind regards
Ziko

Technical Specialist
ziko
Site Admin
Site Admin
 
Posts: 1580
Joined: Fri Dec 01, 2006 11:03 am
Location: St Neots

Re:

Postby cherno » Fri Dec 11, 2009 8:50 pm

ziko wrote:If anyone else is having a problem with the 2203 and linux, please email us at support@picotech.com

Kind regards


Same problem here.
I'm running ubuntu karmic on a dell inspirion 6400 and can not connect to the device.

Output of usbtest:
Code: Select all
Pico USB device found: /dev/bus/usb/001/006

- It belongs to root (which is not you) who has permissions rw-
- The members of group pico (which you are in) have permissions rw-
- Everyone else has permissions r--
- You can write to this device and so will be able to use it.

   Pico USB device not found. Please try again


Runnig ps2000con:
Code: Select all
PS2000 driver example program
Version 1.0



Opening the device...
Handle: 0
Unable to open device
Unit Not Opened
Error Code: 3


I did all in INSTALL and README.

What else can I do? I bought the pico 2203 to run in under linux.

cherno
cherno
Newbie
 
Posts: 0
Joined: Fri Dec 11, 2009 8:41 pm

Re: PS2000con Unable to open device

Postby PeterF » Wed Dec 23, 2009 12:00 pm

Hi,
Please can you try using the attached (zip) file to cure the problem.
PeterF.
Attachments
libps2000.so.2.0.zip
Unzip and add to library files.
(280.36 KiB) Downloaded 80 times
PeterF
Site Admin
Site Admin
 
Posts: 394
Joined: Thu Jun 07, 2007 11:53 am
Location: Cambridgeshire

Re: PS2000con Unable to open device

Postby arturormk » Wed Mar 17, 2010 11:55 pm

I had the same problem under Ubuntu Karmic and the new lib file did the trick! Thank you for supporting Linux.
arturormk
Newbie
 
Posts: 0
Joined: Wed Mar 17, 2010 11:35 pm

Re: PS2000con Unable to open device

Postby gstanghe001 » Wed Apr 14, 2010 12:21 pm

Same issue here, but I'm using a 64bit linux, is it possible to have the patched library for 64bit architectures also ?

Thanks in advance for your efforts to maintain linux drivers.

Best regards
Giuseppe Stanghellini
gstanghe001
Newbie
 
Posts: 0
Joined: Wed Apr 14, 2010 11:07 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests