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 / 27646
27645  |  27647
Subject: 
I am stuck while programming for comunication to lego NXT
Newsgroups: 
lugnet.robotics
Date: 
Sun, 15 Feb 2009 17:30:44 GMT
Original-From: 
NXTelectroneer <technia21@yahoo.*stopspam*co.kr>
Viewed: 
10306 times
  
I am a hobbyist programmer and trying to make NXT remote control program for
PC.

anyway, I am succeed open bluetooth SPP, send a command, and got response
from the NXT.

But the problem is.... sending tons of repeatly command and one response.

NXT never respond sending one or two command, but after sending 20~40,
sometimes about 60 command

(all the same), I can get only one NXT's reply packet.

The reply packet itself is correct and suited the command.

To solve this, I read carefully the "LEGO mindstorms NXT communication
protocol" document but

I can't find the solution.

It seems that buffering is occured somewhere on data route.(I think the NXT
got buffering)

I an tired to find the solution in several days....

What is wrong? What is my mistake? please let me know...
--
View this message in context: http://www.nabble.com/I-am-stuck-while-programming-for-comunication-to-lego-NXT-tp22025069p22025069.html
Sent from the LEGO Robotics mailing list archive at Nabble.com.



Message has 1 Reply:
  Re: Finally, I found the answer!!
 
(...) I am missing the packet length in the command packet. before send a command packet, the length of the packet must be sent first. Size of the packet length is word(2 byte), but value of the packet length is not included itself. (16 years ago, 16-Feb-09, to lugnet.robotics)

2 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