Shop OBEX P1 Docs P2 Docs Learn Events
XBee Tutorial - Chapter 6 Draft "Sleep, Reset & API Mode" — Parallax Forums

XBee Tutorial - Chapter 6 Draft "Sleep, Reset & API Mode"

Steph LindsaySteph Lindsay Posts: 767
edited 2011-06-06 06:37 in Accessories
Hello Folks,

I have attached the Chapter 6 draft pdf of the upcoming XBee Tutorial, once again with comments enabled in Adobe Reader.

See the Chapter 1 thread for more details on the project. An index of the chapters posted to date is included in the Wireless Index Sticky Thread.

Feedback is encouraged! You can email me directly (editor@parallax.com) or reply to this thread.

There is only one more chapter to go...

Thanks much,
-Steph

Comments

  • Steph LindsaySteph Lindsay Posts: 767
    edited 2010-10-06 11:24
    Any comments, folks? Surely I left in some typos for you to find! :smilewinkgrin:
  • sylvie369sylvie369 Posts: 1,622
    edited 2010-10-06 19:37
    Argh. I'd love to find the time to keep poring over these, but I'm at a very busy part of the semester.

    Maybe I'll take a half-hour and look at this one tonight just to keep my hand in.

    Edit: Okay, here's something
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2010-10-07 10:55
    Hey thanks, Sylvie! I appreciate it!
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2010-10-25 20:15
    As do I!

    -Martin
  • sylvie369sylvie369 Posts: 1,622
    edited 2010-10-25 20:31
    I think I have only one more chapter to go in the Propscope book, and then I can turn my attention to the XBee chapters.

    I see that Greg over at BigRedBee has released a draft of the documentation for his new XBee 900 XSC-based GPS tracker, and it could use the same kind of going-over-with-a-fine-toothed-comb. Maybe over the winter.
  • BenjBenj Posts: 66
    edited 2011-06-03 12:24
    I followed the instructions and ran the code for API_Base and everything works if I keep the XB baud rate at 9600. Any other rate seems to not work. Is this expected? (I don't know if I should ask the question here or start a new thread).

    Benj
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2011-06-04 03:42
    Did you change the baud rate of the PC or controller at the same time? Did you change it before or after entering API mode?
  • BenjBenj Posts: 66
    edited 2011-06-05 09:54
    I'm using the USB adapter, so I changed the baud rate in X-CTU (pull down menu on the PC Settings tab) and XB_Baud in API_Base. I just ran the stock code and didn't change anything else. Do I need to switch to API mode at 9600 and then change baud rate on the fly?
  • BenjBenj Posts: 66
    edited 2011-06-06 06:37
    OK, I think I have it working now. On the USB connected XBee, I went into Modem Configuration and set "BD - Interface Data Rate" to "7 - 115200" and set the baud rate under PC Settings to 115200 On the prop connected XBee, I added this code right after switching to API mode (and leaving the CON XB_Baud = 9600):
      XB.AT_Config(string("ATBD 115200",13))
    

    and it seems to work.
Sign In or Register to comment.