Gents, I've found a solution for who's having problems with the xBee being corrupted when starting Ardupilot.

Everytime I had to pull of the blue wire to not damage my xBee, but now I found a solution.

I've added a delay command right before the serial initialization serial.begin() in the setup() session of ardupilot.

Looks like that:

void setup() {
#if GPS_PROTOCOL == 0
delay(3000);
Serial.begin(FIFTY_SEVEN_K_BAUD);
#endif
#if GPS_PROTOCOL == 1
delay(3000);
Serial.begin(FIFTY_SEVEN_K_BAUD);
#endif
#if GPS_PROTOCOL == 2
delay(3000);
Serial.begin(THIRTY_EIGHT_K_BAUD);
#endif
#if GPS_PROTOCOL == 3
delay(3000);
Serial.begin(THIRTY_EIGHT_K_BAUD);
#endif
#if GPS_PROTOCOL == 5
delay(3000);
Serial.begin(THIRTY_EIGHT_K_BAUD);
#endif

init_ardupilot();
}

That causes a 3 seconds delay during the initialization, allowing the modem to startup before sending the serial init.

Cheers,
Leonardo

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Yes, I am having the same problem. I call DIgi (also I have the new firmware for the Xbee Pro 900 DP ver. 1051 Beta if anyone needs it, PM me)
    I have to flash the firmware on the Xbee everytime I run the Ardupilot 2.6.2 and use the Xbee.

    That didn't fix the problem, so its on to the code....
    The tech at Digi told me it sounds like Xbee is getting the command "ATRW" in the command line some where. He said that would clear it out of the Xbee and cause this problem. I have yet to find it.

    Jason
  • Moderator
    Is anybody else still experiencing problems with their xbee "bricking" if they leave it connected at start-up while using code v2.6?
  • Yes, thermopiles...
  • Moderator
    @John,

    Are you using thermopiles, or IMU?
  • Looks like this already got integrated into the SVN checkout for 2.6

    Nice...this one has caused me a lot of frustration!

    JC
  • 3D Robotics
    Sweet! We'll test that and add it if it works on all our setups...

    Many thanks!
This reply was deleted.

Activity

DIY Robocars via Twitter
Friday
DIY Robocars via Twitter
RT @_JonMyer: 🏎 We need your help in naming my #AWS DeepRacer Underground Track 🏎 @davidfsmith's track is going to be referred to as 𝗔π—ͺ𝗦 𝗗…
Thursday
DIY Robocars via Twitter
RT @gclue_akira: δ»•δΊ‹γ‚‚γŠγ‚γ£γŸγ—γ€ι›»θ„³εŒ–γ«γ¨γ‚‰γ„γ€€#γƒžγƒͺγ‚ͺγ‚«γƒΌγƒˆγƒγƒƒγ‚― https://t.co/4IU90hCLgm
Thursday
DIY Robocars via Twitter
This is the hashtag to follow all the people in Japan who are hacking the new Nintendo Mario Kart with the real AR… https://twitter.com/i/web/status/1319281354664677376
Thursday
DIY Robocars via Twitter
RT @gclue_akira: @chr1sa @diyrobocars jupyter mario https://t.co/P0oHdjlCRq
Thursday
DIY Robocars via Twitter
RT @_JonMyer: 🚨Our 1st AWS DeepRacer Community Race is Underway on http://twitch.tv/aws 🚨 Join us to find out which member of your commu…
Oct 20
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
RT @BackyardRobotcs: After an admittedly long wait, the new Tinymovr R3.3 motor controller is now available https://tinymovr.com πŸ₯³
Oct 19
DIY Robocars via Twitter
RT @_JonMyer: 🏎 1 hr left before the #AWS #DeepRacer Community 🏎 Top 5 Race tomorrow LIVE on Twitch 1st Place = $50 Amazon GC or AWS Credit…
Oct 19
DIY Robocars via Twitter
Oct 16
DIY Robocars via Twitter
Oct 15
DIY Robocars via Twitter
Oct 14
DIY Robocars via Twitter
RT @davidfsmith: Race virtually with The AWS DeepRacer Community Race and then join us on the track to see how your times compare on the ph…
Oct 14
DIY Robocars via Twitter
Oct 14
Hiroki Tanaka liked Hiroki Tanaka's profile
Oct 13
DIY Robocars via Twitter
RT @breadcentric: It's now!
Oct 13
More…