GetHSInputBuffer question

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: GetHSInputBuffer question

Post by mattallen37 »

I see, thanks for the great explanation.

So, you have to match the baud rate of the NXT with the NXTbee, or the baud rate of the NXTbee with the NXT? Which one is the one that gets an adjustment? And what is the baud rate that it settles for uses?

You said:
mightor wrote:it's not 900Kbit/s like on a back-to-back connections with cables...
I thought the HS port was rated for something like 10M (10,000 Kbit/sec), not 900K.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: GetHSInputBuffer question

Post by mightor »

The max speed is 921600 baud :)

As for the baud rate. If I tell it to configure the NXTBee for 115Kbaud, that's what it'll do. It doesn't "settle", it configures with a max speed of 115K, if you prefer to use it at 9600, you can as well.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: GetHSInputBuffer question

Post by mattallen37 »

Ok, so the max (defined by the NXT? or or NXTbee?) is not necessarily the speed it uses, you can choose the baud rate? I didn't know you could specify the RS485 speed.

BTW, sorry for going so OT, but thanks for the answers anyways.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: GetHSInputBuffer question

Post by mightor »

The NXTBee serial interface has a max baud rate of 115Kbaud. This not the same as the max speed that is used between the NXTXBees, that's about 250Kbit/s. So the NXT can communicate with the NXTBee at 115Kbaud, but anything less than that is also fine. You just need to make sure the NXTBee has been configured for that speed, too. That's done with a special AT command, much like a normal modem. You have no control (as far as I know) over the transmission speed between the NXTBees themselves.

Regards,
Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: GetHSInputBuffer question

Post by mattallen37 »

Ok, thanks a lot. Now I think I finally understand. :)
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: GetHSInputBuffer question

Post by mightor »

Now I think I finally understand.
For a serious overload of great information, I refer you to the attached PDF. I am sure you can handle it.

Regards,
Xander
Attachments
XBee Manual.pdf
(1.34 MiB) Downloaded 188 times
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: GetHSInputBuffer question

Post by mattallen37 »

Thank you. I have learned a lot from what little I have read so far.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests