On Saturday, October 22, 2011 11:24:09 AM Andrea Montefusco did opine: > Hi Kent, all, > > another example of a software similar to what you are developing is GNU > Radio Companion. > > http://www.joshknows.com/grc > > Albeit it is from a totally unrelated field (digital radio and DSP), > this software too deals with blocks, wires and so on. > Moreover it generates python code that implements the interconnections > that the user draws, producing a fully functional Python program. > It is written in Python with pygtk. > > http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/96a20 > bb09dc6b07b3d2651645e579dff6c3f3a45/entry/grc/ > > Just my 0.02 EU. > > > *am* Andrea: This bit of codes ability to graph the connections would, if translated to do the same for ones USB tree, be an informative, handier than bottled beer, utility for linux. We do, or did have, a utility called usbtree that did something similar with tabs and the text output of lsusb, but that seems not to have kept pace with usb development and has been dropped from many distros. I have a copy and its output looks like this:
[gene@coyote bin]$ ./usbtree /: Bus 02.Port 1: Dev 1, Class=root_hub, Drv=ohci_hcd/10p, 12M |_ Port 1: Dev 2, If 0, Prod=USB Receiver, Class=HID, Drv=usbhid, 1.5M |_ Port 1: Dev 2, If 1, Prod=, Class=HID, Drv=usbhid, 1.5M |_ Port 9: Dev 3, If 0, Prod=Belkin UPS, Class=HID, Drv=usbhid, 1.5M /: Bus 01.Port 1: Dev 1, Class=root_hub, Drv=ehci_hcd/10p, 480M |_ Port 2: Dev 3, If 0, Prod=, Class=hub, Drv=hub/4p, 480M |_ Port 3: Dev 8, If 0, Prod=USB FAST SERIAL ADAPTER, Class=vend., Drv=ftdi_sio, 12M |_ Port 5: Dev 48, If 0, Prod=USB2.0 Hub, Class=hub, Drv=hub/4p, 480M |_ Port 2: Dev 52, If 0, Prod=EPSON Scanner 010F, Class=vend., Drv=none, 12M |_ Port 4: Dev 49, If 0, Prod=USB2.0 Hub, Class=hub, Drv=hub/4p, 480M |_ Port 3: Dev 51, If 0, Prod=USB2.0 MFP Hi-Speed, Class=vend., Drv=none, 480M |_ Port 3: Dev 51, If 1, Prod=, Class=print, Drv=usblp, 480M |_ Port 3: Dev 51, If 2, Prod=, Class=stor., Drv=usb-storage, 480M |_ Port 6: Dev 53, If 0, Prod=USB 2.0 Hub [MTT], Class=hub, Drv=hub/4p, 480M |_ Port 4: Dev 54, If 0, Prod=USB 2.0 Hub [MTT], Class=hub, Drv=hub/7p, 480M |_ Port 7: Dev 55, If 0, Prod=USB 2.0 Hub, Class=hub, Drv=hub/4p, 480M Usable, but the graphic display would be even nicer. That last, port 6 branch blows me away. I had ordered some "more better" cables to reach some things in the basement, along with a 10 port hub, all USB 2.0, with the cables purportedly to be 5 meters or 16 feet. Which is about 4 feet short to reach the middle of the pile on that desk. Imagine my surprise to see that they were 10 meters long when I opened the $8.95 bag! But that port 6 is one of those 10 meter, 33 foot, cables and its all signing on as 480M connections. IMO someone has been to school and studied up on radio tech involving transmission lines & VSWR to be able to pull that off. What I originally bought 4 or 5 years ago for that job, 15 footers, were flaky at best at 12M. Needless to say, they will be retired as soon as I am healthy again & feel like stuffing cable through holes in floor joists etc. I (& 3 others) arrived in Cinci to tear down & pack that transmitter with the makings of a cold which has since turned into the real thing. The transmitter was only about 12k lbs, which we reduced to under 1000lb pieces we could move with a pallet jack, but we pretty well cubed out a 26' Penski van box & I have a few hundred lbs of copper stuff in the back of my pickup yet. Both rode real well coming home. But we will need a bulldozer tow to get that puny powered van to the top of the hill its headed for. Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Positive, adj.: Mistaken at the top of one's voice. -- Ambrose Bierce, "The Devil's Dictionary" ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users