Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Robust communication between Python and Xbee?

  1. #11

    Re: Robust communication between Python and Xbee?

    If the python xbee library/object is at all intelligent
    Have you proven that this is true? Read the code?

    If you use TX/RX/GND wires instead of the Xbee modules to communicate between both ends, does it work without getting stuck?

    Does the Python library receive any data at all? The bug could be that the Xbee stops receiving data for some reason (channel/ID/destination mis-match?) or it could be that the library loses sync and doesn't see a good packet.

    Do you have a logic analyzer or oscilloscope to put on the Xbee input/output serial lines?

  2. #12
    Join Date
    Sep 2010
    Location
    ಠ_ಠ
    Posts
    2,300
    Images
    27
    Rep Power
    278

    Re: Robust communication between Python and Xbee?

    Quote Originally Posted by jwatte View Post
    Have you proven that this is true? Read the code?
    Have not downloaded the xbee library to check it.

    If the xbee library/object it is not intelligent enough to keep pulling data from the serial buffer until it finds a complete message/packet or it times out, then the best solution is to completely discard the input buffer before sending anything to the nodes rather than clearing it after an attempt to read the node's response message. If you clear after a timeout, more of the response message/packet could arrive after you clear the buffer but before you send the next poll_node message, and that would then corrupt the next received node response message/packet.
    Please pardon the pedantry... and the profanity... and the convoluted speech pattern...
    "You have failed me, Brain!"
    bleh
    more bleh

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Robust, affordable gun design
    By jwatte in forum Mech Warfare
    Replies: 40
    Last Post: 08-10-2013, 07:49 PM
  2. Python
    By Fobian in forum Software and Programming
    Replies: 6
    Last Post: 09-08-2012, 10:20 AM
  3. Question(s) Arduino- xbee -xbee-arduino - stepper motors
    By Icemonkey in forum Arbotix, Microcontrollers, Arduino
    Replies: 7
    Last Post: 06-04-2012, 12:35 PM
  4. iRobot python GUI communication
    By ash in forum ROS - Robot Operating System
    Replies: 1
    Last Post: 06-07-2011, 12:18 PM
  5. Question(s) Robust Autonomous Robot Localization Using Interval Analysis
    By aadhavan in forum Robotics General Discussion
    Replies: 17
    Last Post: 12-15-2009, 08:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •