<?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=18" />

<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-12-14T02:27:10+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=2&amp;t=18</id>
<entry>
<author><name><![CDATA[DanAlbert]]></name></author>
<updated>2006-09-26T02:29:32+01:00</updated>
<published>2006-09-26T02:29:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3923#p3923</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3923#p3923"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3923#p3923"><![CDATA[
Copy and paste the code below and save it as w32comms.bas<br /><br />Attribute VB_Name = "W32Comms"<br />Option Explicit<br />Global RXByteBuffer() As Byte<br />Global TXByteBuffer() As Byte<br />Global RXByteTemp() As Byte<br />Global TXByteTemp() As Byte<br />Global intNextRX As Integer<br />Global intNextTX As Integer<br />Global intRXptr As Integer<br />Global intTXptr As Integer<br />Global variantRXBuffer As Variant<br />Global variantTXBuffer As Variant<br />Global variantOutData As Variant<br />Global ChkSum As Byte<br />Global Cmd As Byte<br />Global bytePortVal As Byte<br />Global intRXforCnt As Integer<br />Global intTXforCnt As Integer<br />Global CommPort As Integer<br />Global CurrentServo As Integer<br />' COMM stuff from WIN32API.TXT<br /><br />'  Serial provider type.<br />Const SP_SERIALCOMM = &amp;H1&amp;<br /><br />'  Provider SubTypes<br />Const PST_UNSPECIFIED = &amp;H0&amp;<br />Const PST_RS232 = &amp;H1&amp;<br />Const PST_PARALLELPORT = &amp;H2&amp;<br />Const PST_RS422 = &amp;H3&amp;<br />Const PST_RS423 = &amp;H4&amp;<br />Const PST_RS449 = &amp;H5&amp;<br />Const PST_FAX = &amp;H21&amp;<br />Const PST_SCANNER = &amp;H22&amp;<br />Const PST_NETWORK_BRIDGE = &amp;H100&amp;<br />Const PST_LAT = &amp;H101&amp;<br />Const PST_TCPIP_TELNET = &amp;H102&amp;<br />Const PST_X25 = &amp;H103&amp;<br /><br />'  Provider capabilities flags.<br />Const PCF_DTRDSR = &amp;H1&amp;<br />Const PCF_RTSCTS = &amp;H2&amp;<br />Const PCF_RLSD = &amp;H4&amp;<br />Const PCF_PARITY_CHECK = &amp;H8&amp;<br />Const PCF_XONXOFF = &amp;H10&amp;<br />Const PCF_SETXCHAR = &amp;H20&amp;<br />Const PCF_TOTALTIMEOUTS = &amp;H40&amp;<br />Const PCF_INTTIMEOUTS = &amp;H80&amp;<br />Const PCF_SPECIALCHARS = &amp;H100&amp;<br />Const PCF_16BITMODE = &amp;H200&amp;<br /><br />'  Comm provider settable parameters.<br />Const SP_PARITY = &amp;H1&amp;<br />Const SP_BAUD = &amp;H2&amp;<br />Const SP_DATABITS = &amp;H4&amp;<br />Const SP_STOPBITS = &amp;H8&amp;<br />Const SP_HANDSHAKING = &amp;H10&amp;<br />Const SP_PARITY_CHECK = &amp;H20&amp;<br />Const SP_RLSD = &amp;H40&amp;<br /><br />'  Settable baud rates in the provider.<br />Const BAUD_075 = &amp;H1&amp;<br />Const BAUD_110 = &amp;H2&amp;<br />Const BAUD_134_5 = &amp;H4&amp;<br />Const BAUD_150 = &amp;H8&amp;<br />Const BAUD_300 = &amp;H10&amp;<br />Const BAUD_600 = &amp;H20&amp;<br />Const BAUD_1200 = &amp;H40&amp;<br />Const BAUD_1800 = &amp;H80&amp;<br />Const BAUD_2400 = &amp;H100&amp;<br />Const BAUD_4800 = &amp;H200&amp;<br />Const BAUD_7200 = &amp;H400&amp;<br />Const BAUD_9600 = &amp;H800&amp;<br />Const BAUD_14400 = &amp;H1000&amp;<br />Const BAUD_19200 = &amp;H2000&amp;<br />Const BAUD_38400 = &amp;H4000&amp;<br />Const BAUD_56K = &amp;H8000&amp;<br />Const BAUD_128K = &amp;H10000<br />Const BAUD_115200 = &amp;H20000<br />Const BAUD_57600 = &amp;H40000<br />Const BAUD_USER = &amp;H10000000<br /><br />'  Settable Data Bits<br />Const DATABITS_5 = &amp;H1&amp;<br />Const DATABITS_6 = &amp;H2&amp;<br />Const DATABITS_7 = &amp;H4&amp;<br />Const DATABITS_8 = &amp;H8&amp;<br />Const DATABITS_16 = &amp;H10&amp;<br />Const DATABITS_16X = &amp;H20&amp;<br /><br />'  Settable Stop and Parity bits.<br />Const STOPBITS_10 = &amp;H1&amp;<br />Const STOPBITS_15 = &amp;H2&amp;<br />Const STOPBITS_20 = &amp;H4&amp;<br />Const PARITY_NONE = &amp;H100&amp;<br />Const PARITY_ODD = &amp;H200&amp;<br />Const PARITY_EVEN = &amp;H400&amp;<br />Const PARITY_MARK = &amp;H800&amp;<br />Const PARITY_SPACE = &amp;H1000&amp;<br /><br />Type COMMPROP<br />        wPacketLength As Integer<br />        wPacketVersion As Integer<br />        dwServiceMask As Long<br />        dwReserved1 As Long<br />        dwMaxTxQueue As Long<br />        dwMaxRxQueue As Long<br />        dwMaxBaud As Long<br />        dwProvSubType As Long<br />        dwProvCapabilities As Long<br />        dwSettableParams As Long<br />        dwSettableBaud As Long<br />        wSettableData As Integer<br />        wSettableStopParity As Integer<br />        dwCurrentTxQueue As Long<br />        dwCurrentRxQueue As Long<br />        dwProvSpec1 As Long<br />        dwProvSpec2 As Long<br />        wcProvChar(1) As Integer<br />End Type<br /><br />'Type COMSTAT<br />'        fCtsHold As Long<br />'        fDsrHold As Long<br />'        fRlsdHold As Long<br />'        fXoffHold As Long<br />'        fXoffSent As Long<br />'        fEof As Long<br />'        fTxim As Long<br />'        fReserved As Long<br />'        cbInQue As Long<br />'        cbOutQue As Long<br />'End Type<br /><br />Type COMSTAT<br />        fBitFields As Long 'See Comment in Win32API.Txt<br />        cbInQue As Long<br />        cbOutQue As Long<br />End Type<br />' The eight actual COMSTAT bit-sized data fields within the four bytes of fBitFields can be manipulated by bitwise logical And/Or operations.<br />' FieldName     Bit #     Description<br />' ---------     -----     ---------------------------<br />' fCtsHold        1       Tx waiting for CTS signal<br />' fDsrHold        2       Tx waiting for DSR signal<br />' fRlsdHold       3       Tx waiting for RLSD signal<br />' fXoffHold       4       Tx waiting, XOFF char rec'd<br />' fXoffSent       5       Tx waiting, XOFF char sent<br />' fEof            6       EOF character sent<br />' fTxim           7       character waiting for Tx<br />' fReserved       8       reserved (25 bits)<br /><br />'  DTR Control Flow Values.<br />Const DTR_CONTROL_DISABLE = &amp;H0<br />Const DTR_CONTROL_ENABLE = &amp;H1<br />Const DTR_CONTROL_HANDSHAKE = &amp;H2<br /><br />'  RTS Control Flow Values<br />Const RTS_CONTROL_DISABLE = &amp;H0<br />Const RTS_CONTROL_ENABLE = &amp;H1<br />Const RTS_CONTROL_HANDSHAKE = &amp;H2<br />Const RTS_CONTROL_TOGGLE = &amp;H3<br /><br />'Type DCB<br />'        DCBlength As Long<br />'        BaudRate As Long<br />'        fBinary As Long<br />'        fParity As Long<br />'        fOutxCtsFlow As Long<br />'        fOutxDsrFlow As Long<br />'        fDtrControl As Long<br />'        fDsrSensitivity As Long<br />'        fTXContinueOnXoff As Long<br />'        fOutX As Long<br />'        fInX As Long<br />'        fErrorChar As Long<br />'        fNull As Long<br />'        fRtsControl As Long<br />'        fAbortOnError As Long<br />'        fDummy2 As Long<br />'        wReserved As Integer<br />'        XonLim As Integer<br />'        XoffLim As Integer<br />'        ByteSize As Byte<br />'        Parity As Byte<br />'        StopBits As Byte<br />'        XonChar As Byte<br />'        XoffChar As Byte<br />'        ErrorChar As Byte<br />'        EofChar As Byte<br />'        EvtChar As Byte<br />'End Type<br /><br />Type dcb<br />        DCBlength As Long<br />        BaudRate As Long<br />        fBitFields As Long 'See Comments in Win32API.Txt<br />        wReserved As Integer<br />        XonLim As Integer<br />        XoffLim As Integer<br />        ByteSize As Byte<br />        Parity As Byte<br />        StopBits As Byte<br />        XonChar As Byte<br />        XoffChar As Byte<br />        ErrorChar As Byte<br />        EofChar As Byte<br />        EvtChar As Byte<br />        wReserved1 As Integer 'Reserved; Do Not Use<br />End Type<br />' The fourteen actual DCB bit-sized data fields within the four bytes of fBitFields can be manipulated by bitwise logical And/Or operations.<br />' FieldName             Bit #     Description<br />' -----------------     -----     ------------------------------<br />' fBinary                 1       binary mode, no EOF check<br />' fParity                 2       enable parity checking<br />' fOutxCtsFlow            3       CTS output flow control<br />' fOutxDsrFlow            4       DSR output flow control<br />' fDtrControl             5       DTR flow control type (2 bits)<br />' fDsrSensitivity         7       DSR sensitivity<br />' fTXContinueOnXoff       8       XOFF continues Tx<br />' fOutX                   9       XON/XOFF out flow control<br />' fInX                   10       XON/XOFF in flow control<br />' fErrorChar             11       enable error replacement<br />' fNull                  12       enable null stripping<br />' fRtsControl            13       RTS flow control (2 bits)<br />' fAbortOnError          15       abort reads/writes on error<br />' fDummy2                16       reserved<br /><br />Type COMMTIMEOUTS<br />        ReadIntervalTimeout As Long<br />        ReadTotalTimeoutMultiplier As Long<br />        ReadTotalTimeoutConstant As Long<br />        WriteTotalTimeoutMultiplier As Long<br />        WriteTotalTimeoutConstant As Long<br />End Type<br /><br /><br />' COMM declarations<br />Declare Function SetCommState Lib "kernel32" (ByVal hCommDev As Long, lpDCB As dcb) As Long<br />Declare Function SetCommTimeouts Lib "kernel32" (ByVal hFile As Long, lpCommTimeouts As COMMTIMEOUTS) As Long<br />Declare Function GetCommState Lib "kernel32" (ByVal nCid As Long, lpDCB As dcb) As Long<br />Declare Function GetCommTimeouts Lib "kernel32" (ByVal hFile As Long, lpCommTimeouts As COMMTIMEOUTS) As Long<br />Declare Function PurgeComm Lib "kernel32" (ByVal hFile As Long, ByVal dwFlags As Long) As Long<br />Declare Function BuildCommDCB Lib "kernel32" Alias "BuildCommDCBA" (ByVal lpDef As String, lpDCB As dcb) As Long<br />Declare Function BuildCommDCBAndTimeouts Lib "kernel32" Alias "BuildCommDCBAndTimeoutsA" (ByVal lpDef As String, lpDCB As dcb, lpCommTimeouts As COMMTIMEOUTS) As Long<br />Declare Function TransmitCommChar Lib "kernel32" (ByVal nCid As Long, ByVal cChar As Byte) As Long<br />Declare Function SetCommBreak Lib "kernel32" (ByVal nCid As Long) As Long<br />Declare Function SetCommMask Lib "kernel32" (ByVal hFile As Long, ByVal dwEvtMask As Long) As Long<br />Declare Function ClearCommBreak Lib "kernel32" (ByVal nCid As Long) As Long<br />Declare Function ClearCommError Lib "kernel32" (ByVal hFile As Long, lpErrors As Long, lpStat As COMSTAT) As Long<br />Declare Function SetupComm Lib "kernel32" (ByVal hFile As Long, ByVal dwInQueue As Long, ByVal dwOutQueue As Long) As Long<br />Declare Function EscapeCommFunction Lib "kernel32" (ByVal nCid As Long, ByVal nFunc As Long) As Long<br />Declare Function GetCommMask Lib "kernel32" (ByVal hFile As Long, lpEvtMask As Long) As Long<br />Declare Function GetCommProperties Lib "kernel32" (ByVal hFile As Long, lpCommProp As COMMPROP) As Long<br />Declare Function GetCommModemStatus Lib "kernel32" (ByVal hFile As Long, lpModemStat As Long) As Long<br />'Declare Function WaitCommEvent Lib "kernel32" (ByVal hFile As Long, lpEvtMask As Long, lpOverlapped As OVERLAPPED) As Long<br /><br />Public Sub sendData()<br /> For intTXforCnt = 0 To intNextTX - 1<br />    TXByteBuffer(intTXptr) = TXByteTemp(intTXforCnt)<br />    intTXptr = intTXptr + 1<br /> Next intTXforCnt<br /> <br />End Sub<br /><br />' Set baud rate using Win32 API.<br />' The PortOpen property should be set to True before calling.<br />' May raise the following errors:<br />'   comPortNotOpen  the PortOpen property has not been set to True<br />'   comDCBError     failed to read current state of the port<br />'   comSetCommStateFailed  failed to set new baud rate<br />Sub SetBaudRate(Com As MSComm, baud As Long)<br />Dim ComDcb As dcb<br />    Dim ret As Long<br />    <br />    ' Check port is open<br />    If Not Com.PortOpen Then<br />        Err.Raise comPortNotOpen, Com.Name, _<br />            "Operation valid only when the port is open"<br />            Exit Sub<br />    End If<br /><br />    ' Get existing Comm state<br />    ret = GetCommState(Com.CommID, ComDcb)<br />    If ret = 0 Then<br />        Err.Raise comDCBError, Com.Name, _<br />            "Could not read current state of the port"<br />            Exit Sub<br />    End If<br /><br />    ' Modify state with new baud rate<br />    ComDcb.BaudRate = baud<br />    ' Set the new Comm state<br />    ret = SetCommState(Com.CommID, ComDcb)<br />    If ret = 0 Then<br />        Err.Raise comSetCommStateFailed, Com.Name, _<br />            "Could not set port to specified baud rate" + Str(baud)<br />            Exit Sub<br />    End If<br />End Sub<br /><br />' Get baud rate using Win32 API<br />' The PortOpen property should be set to True before calling.<br />' May raise the following errors:<br />'   comPortNotOpen  the PortOpen property has not been set to True<br />'   comDCBError     failed to read current state of the port<br />Function GetBaudRate(Com As MSComm) As Long<br />Dim ComDcb As dcb<br />    Dim ret As Long<br />    <br />    GetBaudRate = 0<br />    <br />    ' Check port is open<br />    If Not Com.PortOpen Then<br />        Err.Raise comPortNotOpen, Com.Name, _<br />            "Operation valid only when the port is open"<br />            Exit Function<br />    End If<br />    <br />    ' Get Comm state<br />    ret = GetCommState(Com.CommID, ComDcb)<br />    If ret = 0 Then<br />        Err.Raise comDCBError, Com.Name, _<br />            "Could not read current state of the port"<br />            Exit Function<br />    End If<br />    ' Extract baud rate<br />    GetBaudRate = ComDcb.BaudRate<br />End Function<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=5">DanAlbert</a> — Tue Sep 26, 2006 2:29 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[animetown9]]></name></author>
<updated>2006-09-23T22:54:45+01:00</updated>
<published>2006-09-23T22:54:45+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3870#p3870</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3870#p3870"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3870#p3870"><![CDATA[
Hi all.<br /><br />I try to download the above file and load into VB6<br />However, when I load it in...<br /><br />it says...<br />file not fould "w32comms.bas"<br /><br />Did I do something wrong.<br /><br />Thanks in advance.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=305">animetown9</a> — Sat Sep 23, 2006 10:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DanAlbert]]></name></author>
<updated>2006-08-14T14:35:51+01:00</updated>
<published>2006-08-14T14:35:51+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3084#p3084</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3084#p3084"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3084#p3084"><![CDATA[
try under KHR-1 documentation.<br /><br />There is a big "W" link that will download a word file.<br /><br />It is the first draft and I may have a second draft lying around somewhere.<br /><br />Let me know if it was helpful.<br /><br />Dan<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=5">DanAlbert</a> — Mon Aug 14, 2006 2:35 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pygmy]]></name></author>
<updated>2006-08-14T11:11:17+01:00</updated>
<published>2006-08-14T11:11:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3083#p3083</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3083#p3083"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=3083#p3083"><![CDATA[
Dear Dan<br />May ask you that where you upload the mising file?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=273">Pygmy</a> — Mon Aug 14, 2006 11:11 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DanAlbert]]></name></author>
<updated>2005-09-14T02:46:38+01:00</updated>
<published>2005-09-14T02:46:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=329#p329</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=329#p329"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=329#p329"><![CDATA[
Sorry about the missing file.<br />I have uploaded it.<br />If you have any questions about the program, don't hesitate to contact me directly.<br /><br /><!-- e --><a href="mailto:dan@sjrobotics.org">dan@sjrobotics.org</a><!-- e --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=5">DanAlbert</a> — Wed Sep 14, 2005 2:46 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2005-09-06T02:35:28+01:00</updated>
<published>2005-09-06T02:35:28+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=318#p318</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=318#p318"/>
<title type="html"><![CDATA[VB Sample missing file?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=318#p318"><![CDATA[
I downloaded all the files and tried opening the visual basic program posted above, but I get an error message when opening the project that the file w32comms.bas could not be found.  <img src="http://forum.robosavvy.com/images/smilies/icon_cry.gif" alt=":cry:" title="Crying or Very sad" />  Can this file be made available? Doesn't work without whatever is in that module. Thanks<p>Statistics: Posted by Guest — Tue Sep 06, 2005 2:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DanAlbert]]></name></author>
<updated>2005-08-17T14:59:18+01:00</updated>
<published>2005-08-17T14:59:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=297#p297</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=297#p297"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=297#p297"><![CDATA[
Sorry,<br />This RoboSapien Hack is custom programmed for the RoboSapien.<br />It is also built to plug into the RoboSapien's control board.<br />In addition the pic12F675 chip doesn't come with a UART to connect to the KHR-1.(However a good assembly programmer could make it do RS232)<br /><br />However, you could build an I/R receiver and controller board to control the KHR-1 with the RoboSapien remote. <br />If I wanted to do this I might use a more powerful Pic that has a UART interface built in and then it is just a matter of preprogramming the RoboSapien moves into the KHR-1. (SMOP) Simple Matter of Prpramming)<br /><br />Of course the KHR-1 is not as stable as the RS so some extra moves like "stand up" are in order. An IMU or at least a gyro would help too.<br /><br />Anyway, it was a cool idea and I may add an I/R interface to the custom Robo-1 I am now constructing.<br /><br />Dan Albert<br />Albert's Equation Inc.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=5">DanAlbert</a> — Wed Aug 17, 2005 2:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2005-08-07T02:53:10+01:00</updated>
<published>2005-08-07T02:53:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=294#p294</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=294#p294"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=294#p294"><![CDATA[
<img src="http://www.alberts-equation.net/IRRXv1.gif" alt="Image" /><br /><br />has anyone disected RoboSapien's receiver board and plugged it into KHR-1 as shown in this site?<br /><br /><a href="http://www.alberts-equation.net/Robotics.shtml" class="postlink">http://www.alberts-equation.net/Robotics.shtml</a><p>Statistics: Posted by Guest — Sun Aug 07, 2005 2:53 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DanAlbert]]></name></author>
<updated>2005-03-16T20:55:17+01:00</updated>
<published>2005-03-16T20:55:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=98#p98</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=98#p98"/>
<title type="html"><![CDATA[Visual Basic Monitor program]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=98#p98"><![CDATA[
Some added info:<br /><br />My original cable split the lines into two additional cables. One for TX and one  for RX.  It occurs to me that you should need only one cable with both signals. The program would need to be changed to use only COMM1. It currently uses COMM1 and COMM2.  I will do this in the future after the RoboGames in SF.<br />Also, the resister inside the cable that comes with KHR-1 is used to pull down the TX line from the robot to DTR. Therefor DTR must be a low voltage. I found this out because the 802.11 device I was using had DTR always  high. IE.  commands were getting thru but responses were not coming back.<br /><br />dan<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=5">DanAlbert</a> — Wed Mar 16, 2005 8:55 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-09-26T11:25:53+01:00</updated>
<published>2005-03-14T20:28:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=94#p94</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=94#p94"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=94#p94"><![CDATA[
check out what Dan uploaded :<br /><br /><img src="http://robosavvy.com/Builders/DanAlbert/Roborzoid01.gif" alt="Image" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Mon Mar 14, 2005 8:28 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-12-14T02:27:10+01:00</updated>
<published>2005-03-08T20:38:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=79#p79</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=79#p79"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=79#p79"><![CDATA[
I asked Dan Albert the following:<br /><ul>how’s the wifi-serial connection working out ?<br />which one did you use ?<br />Any software you’d like to share ?<br /></ul><br /><span style="font-style: italic">Dan asked me to post his reply on the forum.</span><br /><br /><span style="color: indigo"><br />Here are some source code project files :<br /><ul><a href="http://www.robosavvy.com/Builders/DanAlbert/Control.frm" class="postlink">Control.frm</a><br /><a href="http://www.robosavvy.com/Builders/DanAlbert/DisplayWindow.frm" class="postlink">DisplayWindow.frm</a><br /><a href="http://www.robosavvy.com/Builders/DanAlbert/Robo1Rs232.vbp" class="postlink">Robo1Rs232.vbp</a><br /><a href="http://www.robosavvy.com/Builders/DanAlbert/Robo1Rs232.vbw" class="postlink">Robo1Rs232.vbw</a><br /><a href="http://www.robosavvy.com/Builders/DanAlbert/commset.frm" class="postlink">commset.frm</a><br /><a href="http://www.robosavvy.com/Builders/DanAlbert/formAbout.frm" class="postlink">formAbout.frm</a><br /></ul><br />I have the ATOP ABLELink GW21SW-MAXI.<br /><a href="http://www.robosavvy.com/Builders/DanAlbert/GW21SW-MAXI-2.JPG" class="postlink"><img src="http://www.robosavvy.com/Builders/DanAlbert/GW21SW-MAXI-2_441x336.JPG" alt="Image" /></a><br />It seems to work very well. I have written an embedded C++ app for my Axim that can send some basic commands to the KHR-1. I can put it into sleep mode, wake it up, and have it play 1 of the 40 stored motions.<br />The GW21SW-MAXI draws a bit to much current. At 450 mAmps that will drain the original pack fairly rapidly.<br />I've switched to using 1200mAh NiMH packs I got from <!-- w --><a class="postlink" href="http://www.onlybatteries.com">www.onlybatteries.com</a><!-- w --> They are much better than <br />the 600mAh Nicad pack that came with the KHR-1.<br />The other nice thing about the WiFi solution is that the serial port is high speed and bidirectional. It is my understanding,<br />although not yet tested or proven, that the 2400 baud remote port is only input.<br /> <br />I have included my VB program that I use to monitor the serial line between the PC and the bot. I had to build up a special serial cable.<br /></span><br /><dl class="codebox"><dt>Code: </dt><dd><code> PC                                          Robot<br />                   MonTX<br />                       |         <br />TX --------------------------------------------RX<br />RX -------------------------------------------TX<br />                       |<br />                    MonRX<br /></code></dd></dl><br /><span style="color: indigo"><br />The Monitor lines go to com1 and com2 of a separate PC that runs the VB program.<br />You could use one PC if it had three serial ports.<br />Don't forget to tie the signal grounds together too.<br />There is a resistor in the PC connector of the original cable that needs to be there.<br />I forget which pin it is on, I think it was one of the handshaking lines.<br /> <br />The program displays the TXed and RXed data in Hex in two separate windows.<br />The program is not yet complete. There is a form for changing the port speed and com numbers but I haven't<br />had time to finish it. It also has a tendency to get some errors as the text window gets too full.<br />There is a clear window button that helps that problem.<br />Also, I could have made it format the responses a bit better in the receive data window.<br /> <br />You will need VB6 to compile and run it.<br />If you don't have it I can compile a runtime for you.<br /> <br />dan<br /></span><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Tue Mar 08, 2005 8:38 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2005-03-06T22:36:52+01:00</updated>
<published>2005-03-06T22:36:52+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=69#p69</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=69#p69"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=69#p69"><![CDATA[
<blockquote><div><cite>Meltdown wrote:</cite><br />So this can be used for lets say Visual Basic?<br /></div></blockquote><br /><br />Yes. The protocol describes the messages sent and received by the PC over the serial port. Dan Albert sent me a program that he wrote. He has connected a Serial-to-WiFi board to his KHR-1. More info will be uploaded to the forum over the next couple of days.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sun Mar 06, 2005 10:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Meltdown]]></name></author>
<updated>2005-03-06T18:50:31+01:00</updated>
<published>2005-03-06T18:50:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=68#p68</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=68#p68"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=68#p68"><![CDATA[
So this can be used for lets say Visual Basic?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=4">Meltdown</a> — Sun Mar 06, 2005 6:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2005-03-06T12:25:48+01:00</updated>
<published>2005-03-06T12:25:48+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=66#p66</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=66#p66"/>
<title type="html"><![CDATA[English translation of PC -&gt; RCB1 protocol]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=18&amp;p=66#p66"><![CDATA[
<img src="http://forum.robosavvy.com/images/smilies/icon_exclaim.gif" alt=":!:" title="Exclamation" /> Finally you can write your own software for controlling KHR-1 <img src="http://forum.robosavvy.com/images/smilies/icon_exclaim.gif" alt=":!:" title="Exclamation" /> <br /><br />This protocol is the same one used by <a href="http://robosavvy.com/Support/1" class="postlink">HeartToHeat</a>.<br /><br />The document, <a href="http://kondo-robot.com/pdf/RCB-1CommandVer1B.pdf" class="postlink">originally in Japanese</a>, was translated by <a href="http://robosavvy.com/modules.php?name=Your_Account&amp;op=userinfo&amp;username=DanAlbert" class="postlink">Dan Albert</a>of the South Jersey Robotics Group (<a href="http://sjrobotics.org" class="postlink">SJRobotics.org</a>).<br /><br /><a href="http://www.robosavvy.com/Support/images/RCB1stdraft.doc" class="postlink">http://www.robosavvy.com/Support/images/RCB1stdraft.doc</a><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sun Mar 06, 2005 12:25 pm</p><hr />
]]></content>
</entry>
</feed>