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

<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>2006-07-15T23:03:35+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=2&amp;t=419</id>
<entry>
<author><name><![CDATA[DanAlbert]]></name></author>
<updated>2006-07-15T23:03:35+01:00</updated>
<published>2006-07-15T23:03:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2616#p2616</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2616#p2616"/>
<title type="html"><![CDATA[Khr1 Serial Comunication on linux and C]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2616#p2616"><![CDATA[
I posted on this problem somewhere else in this forum.<br /><br />I'll bet either you are not using the KHR-1 cable or you have no signal control on  the DTR pin.  There is a 10k resistor inside the cable. It connects the DTR to the receive line. Without it you will most likely not see a response even though the robot gets the command.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=5">DanAlbert</a> — Sat Jul 15, 2006 11:03 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-07-11T20:14:15+01:00</updated>
<published>2006-07-11T20:14:15+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2583#p2583</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2583#p2583"/>
<title type="html"><![CDATA[Khr1 Serial Comunication on linux and C]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2583#p2583"><![CDATA[
running by google the terms: dtr linux driver serial<br />i get a lot of links. The "Serial Howto" document clearly states that there is support for setting DTR as of kernel 2.4 and that you can test it with command line<br />stty -F /dev/ttyS1 -a<br />and check for the clocal value.<br />dont have a linux installed with me to test this at the moment..<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Tue Jul 11, 2006 8:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pandolio]]></name></author>
<updated>2006-07-11T14:31:18+01:00</updated>
<published>2006-07-11T14:31:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2577#p2577</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2577#p2577"/>
<title type="html"><![CDATA[DTR again!!]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2577#p2577"><![CDATA[
Hi, i was loking more about DTR and linux. It seem like if DTR it's not supported by linux. the manual say... maybe it will be supported in the future, or could have a driver for it.<br /><br />Someone have a api on linux?. C or other languaje, it's only for know if it's possible.<br /><br />Maybe some of the API's could run on linux... i don't know...<br /><br />Thanks for all.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=226">pandolio</a> — Tue Jul 11, 2006 2:31 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[inaki]]></name></author>
<updated>2006-07-10T19:46:04+01:00</updated>
<published>2006-07-10T19:46:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2571#p2571</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2571#p2571"/>
<title type="html"><![CDATA[Khr1 Serial Comunication on linux and C]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2571#p2571"><![CDATA[
Theoretically you should put DTR to LOW ony for reading but actually you can leave it LOW just after communication starts. DTR line can be put to LOW by means of an Escape function, like EscapeCommFunction in Windows.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=8">inaki</a> — Mon Jul 10, 2006 7:46 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pandolio]]></name></author>
<updated>2006-07-10T09:37:49+01:00</updated>
<published>2006-07-10T09:37:49+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2570#p2570</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2570#p2570"/>
<title type="html"><![CDATA[how to set DTR line to low on linux?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2570#p2570"><![CDATA[
Hi again,<br /><br />I was reading about the DTR line, but i´m not sure how to set DTR line to low and why i have to do it.<br /><br />It seem like if i had to change the DTR line for read and wirte continuosly. is it true?.<br /><br />Could you tell me how to set the DTR line to low?.<br /><br />Thank you very much...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=226">pandolio</a> — Mon Jul 10, 2006 9:37 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[inaki]]></name></author>
<updated>2006-07-05T09:02:36+01:00</updated>
<published>2006-07-05T09:02:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2523#p2523</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2523#p2523"/>
<title type="html"><![CDATA[Khr1 Serial Comunication on linux and C]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2523#p2523"><![CDATA[
You must set DTR line to LOW. Otherwise you will not receive any data.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=8">inaki</a> — Wed Jul 05, 2006 9:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pandolio]]></name></author>
<updated>2006-07-05T08:40:07+01:00</updated>
<published>2006-07-05T08:40:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2522#p2522</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2522#p2522"/>
<title type="html"><![CDATA[Khr1 Serial Comunication on linux and C]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=419&amp;p=2522#p2522"><![CDATA[
Hi for all.<br /><br />I'm working in a C program to control my KHR-1 robot on linux.<br /><br />Now, i only send a "Play Motion" function to my Khr1, and sometimes he plays the motions, but no always. I know that it isn´t a problem, because i have to wait for a reponse for the khr1, and then i know if he is playing the motion.<br /> <br />The problem is that he never response. I think that the configuration of the port it´s right (sometimes he plays the motions) but on linux, there is more parameter that on windows for the configuration of the serial port, like the canonical comunication...<br /><br />Someone know something about this and what it´s the problem?<br /><br />Some code example: <br /><br />for write on the port:<br />/*Funcion que escribe en el puerto serie*/<br />int escribir(int IDpuerto, struct TX *accion)<br />{<br />    int res;<br /><br />    printf("voy a escribir...");<br /><br />    res = write(IDpuerto,accion,sizeof(struct TX) );<br />    <br />if ( res &gt; 0 ) //Todo ha ido bien<br />{<br />printf("HE ESCRITO EN EL PUERTO %d bytes\n",res);<br />return TRUE;<br />}<br />else<br />{<br />return FALSE;<br />}<br />}<br /><br />for read for the port:<br />/* Funcion que lee del puerto serie<br /> * Devuelve 1 si ha leido bien y en la variable lectura devuelve lo que ha leido*/<br />int leer(int IDpuerto, struct RX *lectura)<br />{<br />    int res;<br />    <br />    printf("Voy a leer...\n");<br />    <br />    res = read(IDpuerto,lectura,sizeof(struct TX));<br />    <br />    printf("Leidos %d bytes del puerto\n", res);<br />    <br />if ( res &gt; 0 ) //Todo ha ido bien<br />{<br />printf("LEIDO EN RX %d bytes y son esto: %s\n",res,lectura);<br />return TRUE;<br />}<br />else<br />{<br />return FALSE;<br />}<br />}<br /><br />for configure the port:<br />int puerto;<br />struct termios newtio;<br /><br />/* Obtenemos la configuracion del puerto serial */<br />puerto = open(SERIALPORT, O_RDWR | O_NOCTTY ); <br />tcgetattr(puerto,&amp;oldtio);<br /><br />/* inicializamos el struct de la nueva configuracion del puerto*/<br />bzero(&amp;newtio, sizeof(newtio));<br /><br />newtio.c_cflag = BAUDRATE | CRTSCTS | CS8 | CLOCAL | CREAD;<br />newtio.c_iflag = IGNPAR | ICRNL;<br />newtio.c_oflag = 0;<br />newtio.c_lflag = ICANON;<br /><br />/* now clean the modem line and activate the settings for the port */<br />tcflush(puerto, TCIFLUSH);<br /><br />/* se actualiza la configuracion del puerto */<br />tcsetattr(puerto,TCSANOW,&amp;newtio)<br /><br />return puerto;<br /><br /><br /><br />thank you.<br /><br />¡Hasta otra! (that is spanish)<br /><br />I´m from spain and my english is bad, i´m sorry. <br /> <img src="http://forum.robosavvy.com/images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=226">pandolio</a> — Wed Jul 05, 2006 8:40 am</p><hr />
]]></content>
</entry>
</feed>