Test and Measurement Forum

3406D-MSO on Ubuntu failing

Post your Linux discussions here

3406D-MSO on Ubuntu failing

Postby PE1FZQ » Wed Mar 04, 2015 4:56 pm

Hi All,
After a visit to the Nuremberg Embedded World fair I finally bought the scope. Some time ago I had already installed the PicoScope software some time ago and I recently got an automatic update.
Now today I got the new toy and I connected one probe to channel A and the calibration output. Started the software and the LED on the 3406 became green. I clicked the lightning bolt and all looked OK. It will continue to run for several minutes, but then it freezes.

From the About screen of PicoScope:
Code: Select all
PicoScope® 6 - PC Oscilloscope software version: 6.10.1.36
Copyright © 1995-2015, Pico Technology Ltd

Model: PicoScope 3406D MSO
Serial Number: CX730/048
USB Version: 30,0
Calibration Date: vrijdag 30 januari 2015
Hardware Version: 1
Driver Version: PS3000A Linux Driver, 1.4.4.45
Firmware Version: 1.2.0.0 / 1.0.17.0


I tried (re)installing the PS3000a driver but it stated to be the latest version.

Checking mono:
Code: Select all
prompt# mono -V
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
   TLS:           __thread
   SIGSEGV:       altstack
   Notifications: epoll
   Architecture:  amd64
   Disabled:      none
   Misc:          softdebug
   LLVM:          supported, not enabled.
   GC:            sgen


System load does not seem to be the problem: top reveals:

Code: Select all
top - 17:45:49 up  7:54,  2 users,  load average: 0,96, 1,30, 0,93
Tasks: 231 total,   1 running, 230 sleeping,   0 stopped,   0 zombie
%Cpu(s): 11,8 us,  3,1 sy,  0,0 ni, 84,6 id,  0,5 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem:   3744256 total,  2817044 used,   927212 free,   145788 buffers
KiB Swap:  3884028 total,        0 used,  3884028 free.  1491300 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
8845 user      20   0 2423092 197856  36728 S  86,1  5,3  11:06.82 mono       
28238 user      20   0  720004  36880  26532 S  17,3  1,0   0:12.99 gnome-syst+
1178 root      20   0  628564 126136 108396 S  14,6  3,4  15:11.69 Xorg       
2288 user      20   0 1599300 482156  59168 S   6,3 12,9  22:30.24 firefox     
2525 user      20   0  896220  76396  31620 S   1,7  2,0  72:31.54 plugin-con+
etc etc


More than enough memory, more than enough CPU. Using USB3. But in between a few minutes to half an hour it freezes. When it freezes the load mono causes is reduced strongly and (of course) the screen does not react any more and is not updated (repainted) when another window is placed over it and removed.
Any idea? Anyone?

Thanks PE1FZQ
PE1FZQ
Newbie
 
Posts: 0
Joined: Wed Mar 04, 2015 4:29 pm

Re: 3406D-MSO on Ubuntu failing

Postby mario_ » Thu Mar 05, 2015 8:51 am

Hi PE1FZQ,

This may have something to do with USB host controller / libusb / hcd kernel driver. Is device plugged into USB3.0 port? Can USB2.0 port be tested for the same? Are there any USB related messages in kernel/system logs? (dmesg).

Mario
mario_
Site Admin
Site Admin
 
Posts: 112
Joined: Fri Sep 13, 2013 12:57 pm

Re: 3406D-MSO on Ubuntu failing

Postby PE1FZQ » Tue Mar 17, 2015 5:22 pm

Hi Mario,
Apparently the forum does not send an email after a new post. Sorry for the delayed reply. I see nothing truly strange in the logging: dmesg shows:
Code: Select all
[15100.992290] usb 3-2: new high-speed USB device number 10 using xhci_hcd
[15101.008780] usb 3-2: New USB device found, idVendor=0ce9, idProduct=1211
[15101.008790] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[15101.008794] usb 3-2: Product: WestBridge
[15101.008798] usb 3-2: Manufacturer: Cypress
[15101.008802] usb 3-2: SerialNumber: 0000000004BE
[15136.612634] usb 3-2: USB disconnect, device number 10
[15136.879900] usb 4-2: new SuperSpeed USB device number 3 using xhci_hcd
[15136.896758] usb 4-2: New USB device found, idVendor=0ce9, idProduct=1211
[15136.896761] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[15136.896763] usb 4-2: Product: PicoScope 4000 Series PC Oscilloscope
[15136.896765] usb 4-2: Manufacturer: Pico Technology Ltd
[15137.724953] usb 4-2: reset SuperSpeed USB device number 3 using xhci_hcd
[15137.741254] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b4f8bb00
[15137.741264] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b4f8bb40
[15137.741269] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b4f8bb80
[15137.741273] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b4f8bbc0
[18713.672424] perf samples too long (2501 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[18858.985257] systemd-hostnamed[663]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[18866.690784] type=1400 audit(1426593655.152:84): apparmor="DENIED" operation="open" profile="/usr/bin/evince" name="/etc/xfce4/defaults.list" pid=1584 comm="evince" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[22981.012748] usb 4-2: USB disconnect, device number 3

At 15100 I plugged in the device.
At 15136 I activated the software.
After 18866 it was still running.
At 22981 it was not running any more and I disconnected the usb cable to get a timestamp.
It has been running for over two hours. This is quite long; the first time I tried it ran for 2 minutes and froze.

The box it is running on only has USB3. Would it help to use an USB2 cable?

Anything I can do?

FZQ
PE1FZQ
Newbie
 
Posts: 0
Joined: Wed Mar 04, 2015 4:29 pm

Re: 3406D-MSO on Ubuntu failing

Postby Hitesh » Thu Apr 02, 2015 3:25 pm

Hi FZQ,

Just to check a couple of other things:

Does the device work on a PC using a Windows operating system?

Are you using the USB 3.0 cable or the USB 2.0 Y cable?

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest