It is currently Tue Mar 16, 2010 5:06 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: PS2000con Unable to open device
PostPosted: Tue Jun 30, 2009 1:44 am 
Offline
User
User

Joined: Fri Apr 24, 2009 2:12 am
Posts: 3
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:
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:
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jul 01, 2009 7:47 am 
Offline
Site Admin
Site Admin

Joined: Fri Dec 01, 2006 10:03 am
Posts: 1002
Location: St Neots
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jul 01, 2009 1:07 pm 
Offline
User
User

Joined: Fri Apr 24, 2009 2:12 am
Posts: 3
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:
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?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Jul 03, 2009 8:19 am 
Offline
Site Admin
Site Admin

Joined: Fri Dec 01, 2006 10:03 am
Posts: 1002
Location: St Neots
If anyone else is having a problem with the 2203 and linux, please email us at support@picotech.com

Kind regards

_________________
Ziko

Technical Specialist


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Fri Dec 11, 2009 7:50 pm 
Offline
Newbie

Joined: Fri Dec 11, 2009 7:41 pm
Posts: 0
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:
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:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PS2000con Unable to open device
PostPosted: Wed Dec 23, 2009 11:00 am 
Offline
Site Admin
Site Admin

Joined: Thu Jun 07, 2007 10:53 am
Posts: 250
Location: Cambridgeshire
Hi,
Please can you try using the attached (zip) file to cure the problem.
PeterF.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO