Shop OBEX P1 Docs P2 Docs Learn Events
XBee Remote control program randomly freezes — Parallax Forums

XBee Remote control program randomly freezes

vanmunchvanmunch Posts: 568
edited 2011-07-25 16:43 in Propeller 1
Solved!!!!!!!

After fighting with this problem for the last 2-3 weeks I finally figured it out. I had the "Send" program in it's own cog and had it repeat. The problem was fixed after I had the main program call the "Send" method at the end of each repeat. I stepped back and did some laundry and thought some more about how the DIN LED would freeze on and that maybe having it constantly send the data was the problem. Anyhow, hopefully this all helps someone else.

Dave
+++++++++++++++++++++++++++++++++++++++++++


I had this in the wireless forum, but I' like to move it to here.
http://forums.parallax.com/showthread.php?133272-XBee-Remote-control-works-for-a-while-then-receiving-program-freezes

I've been having a goofy problem with my XBee receiver program (or it could be the controller program or both) that has been driving me up a wall. The program will randomly (to me) freeze with the XBee DIN LED stuck on and out putting gibberish. Originally, I didn't even notice it because it sometimes takes awhile and I thought it was interference or power issues, but it happens even when the servos are not powered and the Xbee receives power from a source other than the propeller board. I'm also now using a Propeller servo controller to control the arm and wheels. I've gone through the XBee book and the projects, but


I'm still stumped. Please let me know if you have any ideas or suggestions, the code is attached below. Maybe memory collisions?? or something with the system clock??, but it has run fine for as long as two minutes or so and sometimes freezes after less than 30 seconds.

I think I've really out done myself with this one...

ControllerV1.3.1ForPSC.spin Robot_V1.3.1usingPSC.spin
Sign In or Register to comment.