Welcome,
Guest
. Please
login
or
register
.
June 18, 2013, 08:13:30 PM
The Plug Computer Forum
|
General Category
|
General Discussion
|
how to read USB port
Pages: [
1
]
« previous
next »
Print
Author
Topic: how to read USB port (Read 2738 times)
chomeur
Newbie
Karma: 0
Posts: 6
how to read USB port
«
on:
August 23, 2009, 06:50:12 AM »
I'm trying to read the USB 2.0 port on the Sheevaplug using the collectd application running on the Sheevaplug itself. I've attached a device (The Energy Detective) to the USB 2.0 port but nothing shows up in /dev. I was expecting to get /dev/ttyUSB1 (or /dev/ttyUSB2) or something but get nothing. dmesg shows the following when I plug in the device:
usb 1-1: new full speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
So something is happening but it seems like there is no driver on the Sheevaplug for recognizing the usbserial chip in the Energy Detective.
Any idea what I'm doing wrong?
Logged
fragfutter
Sr. Member
Karma: 12
Posts: 280
Re: how to read USB port
«
Reply #1 on:
August 23, 2009, 08:53:56 AM »
check what is connected to your USB bus with "lsusb -v". Check/Google if those devices are supported by your kernel (uname -a). If both is true you might miss an udev rule to create interfaces, but i would guess you kernel has no clue about energy detective (or the chipset used on it).
Logged
chomeur
Newbie
Karma: 0
Posts: 6
Re: how to read USB port
«
Reply #2 on:
August 23, 2009, 08:16:30 PM »
OK, I'm pretty much a newbie. Hold my hand.
For starters: how do I get lsusb?
root@debian:~# apt-get install lsusb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lsusb
Logged
AutoStatic
Newbie
Karma: 1
Posts: 40
Re: how to read USB port
«
Reply #3 on:
August 24, 2009, 12:14:42 AM »
lsusb should be installed by default AFAIK. What's the output of
lsusb -v
?
Logged
chomeur
Newbie
Karma: 0
Posts: 6
Re: how to read USB port
«
Reply #4 on:
August 24, 2009, 05:06:20 AM »
My Sheevaplug doesn't seem to have lsusb:
root@debian:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
root@debian:~# lsusb -v
-bash: lsusb: command not found
Logged
fragfutter
Sr. Member
Karma: 12
Posts: 280
Re: how to read USB port
«
Reply #5 on:
August 24, 2009, 05:32:54 AM »
search it: apt-cache search lsusb
install it: apt-get install usbutils
Logged
tbm
Full Member
Karma: 7
Posts: 121
Re: how to read USB port
«
Reply #6 on:
August 24, 2009, 06:06:57 AM »
lsusb is in the usbutils package.
Logged
AutoStatic
Newbie
Karma: 1
Posts: 40
Re: how to read USB port
«
Reply #7 on:
August 24, 2009, 07:13:12 AM »
Oops, didn't know that. Thought it was installed by default.
Logged
CqCn
Full Member
Karma: 0
Posts: 169
Re: how to read USB port
«
Reply #8 on:
August 24, 2009, 10:37:13 AM »
Quote from: fragfutter on August 24, 2009, 05:32:54 AM
search it: apt-cache search lsusb
install it: apt-get install usbutils
This was a useful tip for me too. Thank you fragfutter.
Logged
Cordially, CqCn
CqCn
Full Member
Karma: 0
Posts: 169
Re: how to read USB port
«
Reply #9 on:
August 24, 2009, 10:42:01 AM »
Is there a way to determine from any of the usb tools how much current a particular device or usb tree is drawing (not just the max permitted)?
Logged
Cordially, CqCn
chomeur
Newbie
Karma: 0
Posts: 6
Re: how to read USB port
«
Reply #10 on:
August 24, 2009, 12:55:37 PM »
Getting back to the original topic, I found out that the SheevaPlug does not come with a module to handle USB devices that use a FTDI chip to do usbserial communication (see Topic: FTDI Device on the Sheeva). The easiest solution is to install one of cbxbiker61's prebuilt kernels with the required module (see
http://plugcomputer.org/plugwiki/index.php/Install_Prebuilt_Kernels_From_sheeva.with-linux.com
on how to do that).
I was able to update my kernel and I now see /dev/ttyUSB0 when I connect the Energy Detective. Now I'm trying to get collectd to read it.
Thanks for everyone's help.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Application ideas and development Q/A
=> Success stories
=> Marvell PlugIN - Free Your Imagination
-----------------------------
Hardware and U-Boot firmware
-----------------------------
=> Hardware
=> U-Boot stuff
-----------------------------
Linux Stuff
-----------------------------
=> Android for SheevaPlug is Available!
=> General Linux questions
=> Kernel
=> Linux distributions
Loading...