enlightenment and usb microscopes

Discuss peripherals for the XO and power management.

enlightenment and usb microscopes

Postby troydassler » Wed Feb 10, 2010 8:44 pm

I have been trying to get some usb microscopes (QX5 and/or Ken-a-vision) to work on the xo for the last year. I have not been able to get them to work. I have tried it on the xo with sugar and with Ubuntu, and now I sprung for the Enlightenment SD card,but still can't get them to work.
Any help would be great.
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby ncarrol » Wed Feb 10, 2010 10:41 pm

Can you tell us more about what you have done ?

Does the microscope show up in the devices listed with the command "lsmod" .

What linux program are you using to communicate with the microscope.
ncarrol
 
Posts: 367
Joined: Mon Aug 25, 2008 12:38 am

Re: enlightenment and usb microscopes

Postby troydassler » Thu Feb 11, 2010 12:29 am

Most of the time the USB port is not recognized. I am thinking that a driver must be added in linux in order for it to be recogonized.
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby ektoric » Thu Feb 11, 2010 3:10 am

ncarrol wrote:Does the microscope show up in the devices listed with the command "lsmod" .

Also, check /var/log/messages:
Code: Select all
sudo tail -f /var/log/messages

To and see what happens when you plug in the USB device.
ektoric
Support Team
 
Posts: 470
Joined: Wed Jan 02, 2008 3:46 pm
Location: Austin, TX

Re: enlightenment and usb microscopes

Postby troydassler » Thu Feb 11, 2010 2:34 pm

This is what I get.

[olpc@xo-1E-56-60 ~]$ sudo tail -f /var/log/messages
Feb 11 18:07:43 localhost NetworkManager: <info> Activation (msh0) Stage 4 of 5 (IP Configure Get) complete.
Feb 11 18:07:43 localhost NetworkManager: <info> Activation (msh0) Stage 5 of 5 (IP Configure Commit) started...
Feb 11 18:07:43 localhost avahi-daemon[1113]: Withdrawing address record for fe80::217:c4ff:fe1e:5660 on msh0.
Feb 11 18:07:43 localhost avahi-daemon[1113]: Joining mDNS multicast group on interface msh0.IPv4 with address 169.254.5.50.
Feb 11 18:07:43 localhost avahi-daemon[1113]: New relevant interface msh0.IPv4 for mDNS.
Feb 11 18:07:43 localhost avahi-daemon[1113]: Registering new address record for 169.254.5.50 on msh0.IPv4.
Feb 11 18:07:44 localhost NetworkManager: <info> Activation (msh0) successful, device activated.
Feb 11 18:07:44 localhost NetworkManager: <info> Activation (msh0) Finish handler scheduled.
Feb 11 18:07:44 localhost NetworkManager: <info> Activation (msh0) Stage 5 of 5 (IP Configure Commit) complete.
Feb 11 18:07:46 localhost avahi-daemon[1113]: Registering new address record for fe80::217:c4ff:fe1e:5660 on msh0.*.
Feb 11 18:07:43 localhost NetworkManager: <info> Activation (msh0) Stage 4 of 5 (IP Configure Get) complete.
Feb 11 18:07:43 localhost NetworkManager: <info> Activation (msh0) Stage 5 of 5 (IP Configure Commit) started...
Feb 11 18:07:43 localhost avahi-daemon[1113]: Withdrawing address record for fe80::217:c4ff:fe1e:5660 on msh0.
Feb 11 18:07:43 localhost avahi-daemon[1113]: Joining mDNS multicast group on interface msh0.IPv4 with address 169.254.5.50.
Feb 11 18:07:43 localhost avahi-daemon[1113]: New relevant interface msh0.IPv4 for mDNS.
Feb 11 18:07:43 localhost avahi-daemon[1113]: Registering new address record for 169.254.5.50 on msh0.IPv4.
Feb 11 18:07:44 localhost NetworkManager: <info> Activation (msh0) successful, device activated.
Feb 11 18:07:44 localhost NetworkManager: <info> Activation (msh0) Finish handler scheduled.
Feb 11 18:07:44 localhost NetworkManager: <info> Activation (msh0) Stage 5 of 5 (IP Configure Commit) complete.
Feb 11 18:07:46 localhost avahi-daemon[1113]: Registering new address record for fe80::217:c4ff:fe1e:5660 on msh0.*.
Feb 11 18:16:17 localhost kernel: [ 733.162338] mmc0: new SD card at address 5546
Feb 11 18:16:17 localhost kernel: [ 733.195964] mmcblk0: mmc0:5546 SD256 238848KiB
Feb 11 18:16:17 localhost kernel: [ 733.200738] mmcblk0: p1
Feb 11 18:16:18 localhost kernel: [ 733.450240] mmcblk0: error -84 transferring data
Feb 11 18:16:18 localhost kernel: [ 733.456710] end_request: I/O error, dev mmcblk0, sector 477632
Feb 11 18:16:18 localhost kernel: [ 733.462565] Buffer I/O error on device mmcblk0, logical block 59704
Feb 11 18:16:18 localhost kernel: [ 734.058601] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Feb 11 18:16:21 localhost kernel: [ 737.014779] mmcblk0: error -110 transferring data
Feb 11 18:16:21 localhost kernel: [ 737.014779] end_request: I/O error, dev mmcblk0, sector 105
Feb 11 18:16:21 localhost kernel: [ 737.014880] FAT: unable to read boot sector
^C[olpc@xo-1E-56-60 ~]$
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby troydassler » Thu Feb 11, 2010 2:46 pm

This is what I get when I do lsmod

One of the USB drives has a mouse attached. Thanks everyone for your interest in helping out.

[olpc@xo-1E-56-60 ~]$ lsmod
Module Size Used by
nls_utf8 1824 0
vfat 12064 0
fat 46492 1 vfat
sr_mod 16612 0
cdrom 31840 1 sr_mod
sg 33024 0
usb_storage 59488 0
libusual 18368 1 usb_storage
usb8xxx 18208 0
libertas 174680 1 usb8xxx
ieee80211 31528 1 libertas
ieee80211_crypt 5632 1 ieee80211
usbhid 27584 0
pcspkr 2848 0
mousedev 13508 0
ehci_hcd 32688 0
ohci_hcd 21636 0
sdhci 15992 0
cs5535_gpio 4700 0
mmc_core 43812 1 sdhci
usbcore 126640 7 usb_storage,libusual,usb8xxx,usbhid,ehci_hcd,ohci_hcd
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby ektoric » Thu Feb 11, 2010 4:01 pm

Thanks! Unfortunately, /var/log/message has nothing for the USB. The only thing of interest is that the SD card you have isn't being recognized. But that has nothing to do with the USB problem at hand.

As for lsmod, I see that usbhid is installed, which is possibly what your microscope could use as a driver. Otherwise, there's nothing telling of which driver it may be using. I would ask what chipset the device is, but that's exactly what I was hoping /var/log/messages would tell me.

There is one (two) other things to try to gather more info:
(remove USB device)
# sudo dmesg -c
(insert USB device)
# sudo dmesg

The first one dumps the current kernel debug messages, and then clears it. We're not interested in what happened before. The second one dumps it again, and it should have captured any activity associated with the insertion.

The (second) option is to use lspci to see what devices have registered. But I don't remember if lspci comes with the XO build. So that may be out.

Thirdly, would it be possible to list the model of the usb device? Chipset model would be most ideal. But microscope model may be sufficient to google against to find which driver may be your match.
ektoric
Support Team
 
Posts: 470
Joined: Wed Jan 02, 2008 3:46 pm
Location: Austin, TX

Re: enlightenment and usb microscopes

Postby troydassler » Thu Feb 11, 2010 8:20 pm

Thanks I tried the # sudo dmesg -cn work, but no luck. I have sent out an e-mail to try and get the chipset information from the manufacturer. Imagine what it could do for pathogenic detection if we can get a digital microscope to work with the XO. Even if it just gets people in developing counties to have a better understanding about microscopic organisms in drinking water. Thanks for your help.
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby troydassler » Thu Feb 11, 2010 8:24 pm

I am using the ken-a-vision here is the website for the microscope: [url]http://www.ken-a-vision.com


It is the featured microscope that won the prize. the lights turn on automatically when i plug it in, but that is it.
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby troydassler » Thu Feb 11, 2010 8:28 pm

This is what came up under lspci

debxo:/home/olpc# lspci
00:01.0 Host bridge: Advanced Micro Devices [AMD] Device 0028 (rev 21)
00:01.1 VGA compatible controller: Advanced Micro Devices [AMD] Geode LX Video
00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD] Geode LX AES Security Block
00:0c.0 FLASH memory: Marvell Technology Group Ltd. Device 4100 (rev 10)
00:0c.1 SD Host controller: Marvell Technology Group Ltd. OLPC Cafe Controller Secure Digital Controller (rev 10)
00:0c.2 Multimedia video controller: Marvell Technology Group Ltd. Device 4102 (rev 10)
00:0f.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03)
00:0f.3 Multimedia audio controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio (rev 01)
00:0f.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02)
00:0f.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02)
debxo:/home/olpc#
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby ncarrol » Thu Feb 11, 2010 11:03 pm

Can we start back with the topic of what software you loaded ?

The manual given on the site you provided says there are two different software packages. Ken-a-Vision is for PC's only. The more advanced package AV4 appears to be usable on PC, Mac, Unix, and Linux. Both can be downloaded from their site. Can you download it directly to the XO ?

I see that you have a cdrom attached to your XO for loading software. How did the software install (error messages) ? What do you get when you run the software per the manual ? Blank screen ?

Any software installion / setup questions must be resolved first.
ncarrol
 
Posts: 367
Joined: Mon Aug 25, 2008 12:38 am

Re: enlightenment and usb microscopes

Postby ncarrol » Sat Feb 13, 2010 1:20 am

Apparently, the microsope is just a usb web cam like on the XO. The drivers must be rather generic since the manual says it is compatible with interactive whiteboards. (The use of XO interactive whiteboards over a jabber is a topic I must explore in the future.) So, it is just a webcam mated with its software to view. Could there be conflicts with XO camera ? --- do not know.

The usbhid is just the usb mouse (human interface device).

The drivers ohci_hcd (open host controller interface) and ehci_hcd are usb modules. There are lots of articles (google) that report problems (bug) with ehci_hcd with USB 2.0 devices. Reported fixes are to remove it with modprobe -r ehci_hcd.

What files are in the Applied Vision Version 4 directories ?

I have no expertise in this area -- just an interesting topic.
ncarrol
 
Posts: 367
Joined: Mon Aug 25, 2008 12:38 am

Re: enlightenment and usb microscopes

Postby troydassler » Sat Feb 13, 2010 10:33 am

This is the response I got from Ken-a-vision.
I am working on the install. I will let you know what happens..

Thanks everyone.

"Troy,
We do not currently have a software for Linux but it is in development. But I suppose you could use wine. This is a program that allows you to run Windows applications on your Linux OS. Here is a URL to the website about that http://www.winehq.org/download

But the Kena is UVC which means it will work on most every operating system (Linux included). If the wine application is too much just to install our software, any open source video capture software should work for this unit."
troydassler
 
Posts: 11
Joined: Wed Feb 10, 2010 8:38 pm

Re: enlightenment and usb microscopes

Postby ncarrol » Sat Feb 13, 2010 11:40 pm

UVC compliant is the magic word.

Google search helps locate linux driver ( note microscope devices):

http://www.qbik.ch/usb/devices/showdevcat.php?w=d&id=284

then leads to luvcview and guvcview linux programs.

Looks interesting.
ncarrol
 
Posts: 367
Joined: Mon Aug 25, 2008 12:38 am

Re: enlightenment and usb microscopes

Postby ncarrol » Sun Feb 14, 2010 12:05 am

To further expand the above link:

http://www.marshalltradecorp.com/coDe/misc/usb_microscope_linux.html

This is from one of the example devices in the above link: VEHO microscope.

It suggests that drivers are already in the linux kernel used on XO and that the program luvcview can be used to view images for USB UVC's.
ncarrol
 
Posts: 367
Joined: Mon Aug 25, 2008 12:38 am

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests