<?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=17&amp;t=6114" />

<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-05-01T08:47:04+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=6114</id>
<entry>
<author><name><![CDATA[matt.stevenson]]></name></author>
<updated>2010-05-01T08:47:04+01:00</updated>
<published>2010-05-01T08:47:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26601#p26601</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26601#p26601"/>
<title type="html"><![CDATA[rcservos libraries crashing]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26601#p26601"><![CDATA[
Well, after a good days work I got the issue under control.<br />It seems that the issue was with how the network communication was being handled.<br />Occasionally the JMX would be received on a different thread.  It would be fine for the java code, but the native library would crash trying to access the pwm port.<br />So now the JMX listener spawns a new control loop thread.<br />The listener will make the latest move request available to the control loop, and the control loop runs blissfully unaware of everything else.<br /><br /><br />In a week or two, I am expecting to release as open source Java libraries to control servos through the PWM ports over a network.  I will also have similar Java libraries for Dynamixels (tested with RX-28 and RX-64 on the RS485 port).<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2093">matt.stevenson</a> — Sat May 01, 2010 8:47 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matt.stevenson]]></name></author>
<updated>2010-04-30T21:25:13+01:00</updated>
<published>2010-04-30T21:25:13+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26600#p26600</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26600#p26600"/>
<title type="html"><![CDATA[rcservos libraries crashing]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26600#p26600"><![CDATA[
Also, I thought I would add that I'm running Ubuntu 10 on my Roboard.<br /><br />If anyone wants the code I wrote to do the network and Java/C communication, let me know and I'll send it to you.  I'll post the code online later today when I get home.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2093">matt.stevenson</a> — Fri Apr 30, 2010 9:25 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matt.stevenson]]></name></author>
<updated>2010-04-30T20:55:23+01:00</updated>
<published>2010-04-30T20:55:23+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26599#p26599</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26599#p26599"/>
<title type="html"><![CDATA[rcservos libraries crashing]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26599#p26599"><![CDATA[
I wanted to add that I am using hi-tec hs-82mg servos with no feedback.<br /><br />After calling rcservo_Initialize(...)<br />I call rcservo_EnterPlayMode_NOFB(...)<br /><br />Here are my servo settings if that matters:<br />RCSERVO_svParams[id].servoType = RCSERVO_SV_NOFEEDBACK;<br />RCSERVO_svParams[id].period = 10000L;<br />RCSERVO_svParams[id].minDuty = 500L;<br />RCSERVO_svParams[id].maxDuty = 2500L;<br />RCSERVO_svParams[id].invalidDuty = 5000L;<br />RCSERVO_svParams[id].minLowPhase = 500L;<br />RCSERVO_svParams[id].fbReadMode = RCSERVO_FB_SAFEMODE;<br />RCSERVO_svParams[id].fbMaxNumFail = 3;<br />RCSERVO_svParams[id].fbFilterWidth = 3;<br /><br />RCSERVO_svParams[id].cmdDuty[0] = 50L;<br />RCSERVO_svParams[id].cmdDuty[1] = 100L;<br />RCSERVO_svParams[id].cmdDuty[2] = 150L;<br />RCSERVO_svParams[id].cmdDuty[3] = 200L;<br />RCSERVO_svParams[id].cmdDuty[4] = 50L;<br />RCSERVO_svParams[id].cmdDuty[5] = 50L;<br />RCSERVO_svParams[id].cmdDuty[6] = 50L;<br />RCSERVO_svParams[id].cmdDuty[7] = 50L;<br />RCSERVO_svParams[id].cmdInPlayMode = RCSERVO_CMD_POWEROFF;<br />RCSERVO_svParams[id].capInitDelay = 25L;<br />RCSERVO_svParams[id].capLastDelay = 250L;<br />RCSERVO_svParams[id].capMaxWidth = 2800L;<br />RCSERVO_svParams[id].capResolution = 10L;<br />RCSERVO_svParams[id].capWidthOffset = ROBOARD_WOFFSET;<br /><br />Most of those are the default settings, I changed the min and max pulse width, and made sure to set no feedback.<br /><br />I'm going to do more testing today to see if the problem comes from using Java, or if it is from the C code like I think it is.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2093">matt.stevenson</a> — Fri Apr 30, 2010 8:55 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matt.stevenson]]></name></author>
<updated>2010-04-29T21:47:38+01:00</updated>
<published>2010-04-29T21:47:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26578#p26578</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26578#p26578"/>
<title type="html"><![CDATA[rcservos libraries crashing]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6114&amp;p=26578#p26578"><![CDATA[
Hi, I recently got a roboard to play with, and I've had success controlling some hitec servos and vex motors through the pwm.<br /><br />I've been working on writing some java wrappers for the rcservo control, and then exposing that through JMX so I can control the servos using java across a network.  I've got this mostly working, and I intend to release it (and network dynamixel control) as open source it in a couple of weeks.<br /><br />I am able to connect to the servos fine, and I can begin to control them.  However, after a few minutes, the roboard libraries crash.<br /><br />Here is part of the error I get:<br />Instructions: (pc=0xb4599b8f)<br />0xb4599b7f:   83 ec 14 8b 45 08 66 89 45 ec 0f b7 45 ec 89 c2<br />0xb4599b8f:   ed 89 45 fc 8b 45 fc c9 c3 55 89 e5 83 ec 08 8b <br /><br />Stack: [0xb4427000,0xb4477000],  sp=0xb4474f18,  free space=311k<br />Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)<br />C  [libServoControlJNIWrapper.so+0x4b8f]<br />C  [libServoControlJNIWrapper.so+0x4e07]  io_inpdw+0x14<br />C  [libServoControlJNIWrapper.so+0x5c3a]  pwm_ClearMultiFLAG+0x16<br />C  [libServoControlJNIWrapper.so+0x8c1d]  _Z20stop_playmode_pulsesv+0x14<br />C  [libServoControlJNIWrapper.so+0x8de9]  _Z19set_playmode_pulsesPm+0x17<br />C  [libServoControlJNIWrapper.so+0x7235]  rcservo_PlayAction+0x50<br />C  [libServoControlJNIWrapper.so+0x73eb]  rcservo_MoveTo+0x1d<br />C  [libServoControlJNIWrapper.so+0x4a2f]  Java_servonativewrap_ServoFacade_MoveServos+0x94<br /><br />My java code is running in a continuous loop, sending move signals with a move time of 25 msec, and then the thread sleeps fro 25 msec.  So the roboard get a MoveServos command about every 50 msec.<br /><br />The board will crash after an arbitrary length of time.  Sometimes I will only send out a few commands before it crashes, other times it will run fine for 15-20 minutes before crashing.<br /><br />Looking at the error and the code, the crash comes from this function call:<br />inl(addr);<br />Its a linux port i/o command, but I could't find any further information on it or what is causing the crash.<br /><br />any ideas?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2093">matt.stevenson</a> — Thu Apr 29, 2010 9:47 pm</p><hr />
]]></content>
</entry>
</feed>