<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=21&amp;t=6745" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2010-11-24T02:42:50+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=21&amp;t=6745</id>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2010-11-24T02:42:50+01:00</updated>
<published>2010-11-24T02:42:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28943#p28943</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28943#p28943"/>
<title type="html"><![CDATA[IGEP Module: OTG host mode while powered from USB Hub]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28943#p28943"><![CDATA[
spent the last few nights trying to force the module's OTG port to behave as a USB host but getting nowhere. currently going through the kernel module source code but no solution in sight.<br /><br />Here is some progress that we've managed to do.<br /><br />1) Module can boot from micro-sd card.<br />The easiest way to do this is to get access to a Linux machine either through VirtualBox.org or pendrivelinux.com and then follow instructions on IGEP wiki.<br /><br />2) Modularizing all relevant drivers.<br />The default kernel is configured as USB Gadget with RNDIS ethernet over USB. Since there is no debug serial port, the USB is the only way to see what is going on. So all experiments with new kernels have to be done while the g_ether module is intact. Once a new kernel is running and there is access to the module via wifi, it can be disconnected from the PC and connected to the hub as described above. By default the USB OTG modules are compiled into the kernel but since we would like to control them and turn then on and off, they need to be loadable modules.<br />- Follow procedure to create a micro-sd card with minimal Linux<br />- Install Poky toolchain<br />- download kernel source code<br />- edit the config file (make menuconfig) and change &quot;*&quot; to &quot;M&quot; where relevant<br />- install new uImage and modules on sd card<br />- add module names to /etc/modutils/ and run update-modules which will write to /etc/modules ; necessary modules for wifi and usb/ethernet include: libertas libertas_sdio g_ether musb_hdrc rfcomm<br />- remove /lib/modules/2.6.35.2.3/modules.dep (when the board boots it /etc/init.d/modutils.sh will run depmod and recreate it properly). [ the make install_modules after kernel recompilation attempts to create the file but doesnt do a good job.]<br /><br />So we have everything in modules and can uninstall the USB/Ethernet and reset the musb_hdrc driver that supposedly drives the OTG port. but so far it seems to always stick with being type B (client) and will not become hsot <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Wed Nov 24, 2010 2:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tinmarok]]></name></author>
<updated>2010-11-21T17:57:29+01:00</updated>
<published>2010-11-21T17:57:29+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28887#p28887</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28887#p28887"/>
<title type="html"><![CDATA[IGEP Module: OTG host mode while powered from USB Hub]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28887#p28887"><![CDATA[
Hello limor, <br /><br />I can't decide for the board i'll embed into the khr3hv. I was decided for the IGEPv2 for the price/all-in-one aspect. The IGEP module was my first choice but the power supply was an issue for me. What  a surprise when i found your post today, if u succeed in your solution i think the igep module will be my solution too:)))<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2343">tinmarok</a> — Sun Nov 21, 2010 5:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2010-11-20T16:15:58+01:00</updated>
<published>2010-11-20T16:15:58+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28869#p28869</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28869#p28869"/>
<title type="html"><![CDATA[IGEP Module: OTG host mode while powered from USB Hub]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6745&amp;p=28869#p28869"><![CDATA[
I would like the IGEP to act as USB Host while being powered by a USB hub. This will allow other devices to be attached to the USB hub and be powered by it so everyone gets powered by the USB hub happily and the hub gets powered by a LiPo battery and the whole thing is tucked neatly into a robot.<br /><br />However, USB OTG works either in Host (Master) mode and tries to power the attached USB device, or works in Client (Slave or Device) mode which allows it to be powered from the attached Host.<br /><br />If USB Pin4 (of the mini-AB connector) is grounded then the OMAP cpu knows it is supposed to be a USB host and doesn't allow power to come in from the USB hub. So the module doesnt power up.<br /><br />If USB Pin4 is not connected (as in the case of a mini-B connector), then OMAP allows the hub or other computer to power the IGEP.<br /><br />Kind of catch 22 situation. So we googled around and found that some people have tricked the Nokia N800 and Beagle Board to boot up as USB Slave but then got the operating system to act on the USB OTG link as a Host by entering the following line:<br /><br /><blockquote class="uncited"><div><br />echo host &gt; /sys/devices/platform/musb_hdrc/mode<br /></div></blockquote><br /><br />So this is the plan.<br /><br />But before attempting it we had a few hurdles.<br />A) WiFi ssh access -- the IGEP module has only the OTG usb connector on board that is accessible without a daughter board. We got to talk to the module from Windows7 and configured its wifi to connect to the local network and then the plan is to disconnect it from the Windows7, power it from the USB hub and ssh to it via WiFi since it will be connected to the hub as a host, not a client, there will be no way to create a virtual network over USB.. so the only way to talk to the module once disconnected from Windows7 is via Wifi. (this was <a href="http://robosavvy.com/forum/viewtopic.php?t=6731" class="postlink">documented</a> in a separate thread)<br /><br />B) Regulated power supply -- powering the hub (that powers the IGEP module) from a cheap 5V 1.5A DC power supply did not provide enough current to allow the IGEP to work continuously with wifi. The symptoms were that the module was booting and we had configured it to work with the local wifi network and it was responding to ping most of the time. But any attempt to ssh to the module via wifi resulted in the module rebooting. So we <a href="http://robosavvy.com/store/product_info.php/cPath/41_1046_1028/products_id/874" class="postlink">used</a> a DC-DC converter regulator and fed it with a 12V 5A power source (Bioloid power supply). This stopped the strange reboots.<br /><br />Here is the setup:<br /><br /><a href="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/2010-11-19%2016.31.58.jpg" class="postlink"><img src="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/600/2010-11-19%2016.31.58.jpg" alt="Image" /></a><br /><br />Here is a closeup of the DC-DC level shifter <a href="http://robosavvy.com/store/product_info.php/cPath/41_1046_1028/products_id/874" class="postlink">converter regulator</a>. The 2 resistors there in series form together resistance close enough to the datasheet's 1.34k ohm needed to output 5V <br /><br /><br /><br /><a href="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/2010-11-19%2016.33.21.jpg" class="postlink"><img src="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/600/2010-11-19%2016.33.21.jpg" alt="Image" /></a><br /><br />The power comes to the IGEP module from one of the Client ports while Pins 2 and 3 are attached to the Host data port pins. The connector attached to the module is a mini-B in order not to have Pin4 grounded which would prevent the module from even powering up.<br /><br /><a href="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/2010-11-19%2016.32.43.jpg" class="postlink"><img src="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/600/2010-11-19%2016.32.43.jpg" alt="Image" /></a><br /><a href="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/2010-11-19%2016.32.26.jpg" class="postlink"><img src="http://robosavvy.com/Builders/limor/gumstixKHR3/IGEP/600/2010-11-19%2016.32.26.jpg" alt="Image" /></a><br /><br />As of Friday afternoon, we didn't get this to work the first time and needed to leave the office. We'll continue Monday morning and hopefully get the module to be a USB host while being powered from the USB hub..<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sat Nov 20, 2010 4:15 pm</p><hr />
]]></content>
</entry>
</feed>