To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 17125
17124  |  17126
Subject: 
RE: Hacker rcx
Newsgroups: 
lugnet.robotics
Date: 
Tue, 22 Jan 2002 17:52:51 GMT
Original-From: 
Dick Swan <d.swan@att.net{antispam}>
Viewed: 
773 times
  
It looks like you have an “extra” command in your sequence. Probably a typo.
Remove the line “SENDBYTE 258”!

-----Original Message-----
From: Nanobapt [mailto:nanobapt@nordnet.fr]
Sent: Tuesday, January 22, 2002 11:27 AM
To: PC CHAN
Cc: lego-robotics@crynwr.com
Subject: RE: Hacker rcx

Ok I know the lego network protocol communication but i can't send it well
cause the message is
    first : not understand by the RCX
    second : cause (perhaps) is that the message is not correctly send ...
for more information that the code i use :

Private Sub Command1_Click()
    Rem 85 255 0 247 8 1 254 248 7
    SENDBYTE 85
   SENDBYTE 255
   SENDBYTE 0
   SENDBYTE 247
   SENDBYTE 8
   SENDBYTE 1
   SENDBYTE 254
   SENDBYTE 258
   SENDBYTE 248
   SENDBYTE 7
    End Sub

Private Sub Form_Load()
    OPENCOM "COM1:2400,NRZ,8,1"
End Sub

I give the the most important in my code

thanks nanobapt
-----Message d'origine-----
De : PC CHAN [mailto:pc.chan@alcatel.com]
Envoyé : mardi 22 janvier 2002 17:26
À : nanobapt
Cc : lego-robotics@crynwr.com
Objet : Re: Hacker rcx
Hi,

It looks like you really meant a single "byte".

To my understanding from the RCX 2.0 (with usb port) SDK available from
Lego, the "byte" would have to be wrapped up in a certain way, such as
leading sync bytes plus a number of conditions to form a command for
transporting through the IR tower.

For example the "byte" itself must have a certain bit toggled between
commands, followed by the compliment of the "byte".  The "byte" also implies
the number of bytes of parameters to follow.  The parameters should then be
paired up with their compliments in the same way.  At the end there should
be a sumcheck and its compliment.

It is a command in a proper wrapper, the RCX is looking for.  We cannot
expect the RCX to respond to a single byte in isolation.

There is a send raw command in nqc, you can send raw bytes to send but
again the RCX would only respond unless it is a properly formed dcommand.

Please read the documentation in the RCX 2.0 SDK for details.  It should be
the same for RCX 1.5, since there isn't a separate SDK for RCX 1.5.

By the way, if you are using nqc (Not Quite C.  It is free!), you may try
the undocumented -v option.  It shows you how each command is being sent and
responsed to.  In that way you can learn how the wrapper works so that you
can do the same in your SENDBYTE.

P.C.
==========================================================================
========================
nanobapt wrote:


Yes my rcx have the firmware !! So i send the Byte by the SENDBYTE command
which include in the port.dll which I use

thanks

nanobapt

-----------------------------------------------------------------
"la cuillère n'existe pas"
http://www.mindstorms-bapt.fr.st/
http://membres.tripod.fr/mecahp
icq : 94470030
----- Original Message -----
From: PC CHAN <mailto:pc.chan@alcatel.com>
To: nanobapt <mailto:nanobapt@nordnet.fr>
Cc: lego-robotics@crynwr.com <mailto:lego-robotics@crynwr.com>
Sent: Monday, January 21, 2002 2:58 PM
Subject: Re: Hacker rcx

Which command did you send and how did you send it?   Did your RCX have the
firmware in it?

nanobapt wrote:


i have a problem. I want to program a windows to send RCX message  but i
have a problem ... My problem that i can send Byte but the rcx don't know
them. I follow the rcx internal instruction but it don't work !!

Someone can help me to write a program who can send RCX message in VB ??

thanks

nanobapt

-----------------------------------------------------------------
"la cuillère n'existe pas"
http://www.mindstorms-bapt.fr.st/
http://membres.tripod.fr/mecahp
icq : 94470030




--
MIME ATTACHMENTS DISCARDED:

1.  Content-Type: text/html;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    Content-Length: 27638



Message is in Reply To:
  RE: Hacker rcx
 
Ok I know the lego network protocol communication but i can't send it well cause the message is first : not understand by the RCX second : cause (perhaps) is that the message is not correctly send ... for more information that the code i use : (...) (23 years ago, 22-Jan-02, to lugnet.robotics)

14 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR