# Magni Occasionally Fails to Start

**URL:** <https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046>\
**Category:** Uncategorized\
**Created:** [April 13, 2023, 4:25pm UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046 "2023-04-13T16:25:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![boarderkris](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/b/8797f3/32.png) [@boarderkris](https://forum.ubiquityrobotics.com/u/boarderkris)\
**Post date:** [April 13, 2023, 4:25pm UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/1 "2023-04-13T16:25:45Z")

</div>

![Screenshot 2023-04-13 at 11.08.13 AM](https://forum.ubiquityrobotics.com/uploads/default/original/1X/45127ce1550f3bd85edd08655084c91d3d7c00e4.png)

I was able to capture the log (from sudo journalctl -u magni-base) this morning, but we experience a magni startup failure on 1/5 starts.

Please see the attached image. Looking deeper in the code, it looks like a Firmware Version error that is causing this, but again - not sure why this works 4/5 times!

Thanks in advance,  
Kris

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [April 13, 2023, 6:02pm UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/2 "2023-04-13T18:02:01Z")

</div>

Hmm, which firmware version are you using? This looks a bit more like an MCB failure than outdated firmware, but it would be a good idea to update just in case it helps.

```auto
sudo systemctl stop magni-base
roscd ubiquity_motor
python2 scripts/upgrade_firmware.py --file firmware/v43_20210829_enc.cyacd

```

Might also have something to do with the Pi image you’re running, we used to have a problem where the default baud rate persisted but only sometimes, so you really need to have `init_uart_baud=38400` in the boot config.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [April 14, 2023, 3:08am UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/3 "2023-04-14T03:08:06Z")

</div>

At the end of this year we found that there was this case where the Ubuntu OS came in and reset the serial port to a different baud rate sometimes after we had set it to 38400.

To fix this required a change to the image where we set the port default baud rate for Linux to also be 38400 so that when this race condition happened it would do no harm. I must try to track down this fix in order to be of help here. I do not know which image(s) have the fix for this but in any case if this somehow ‘regressed’ recently in the images we do need to address it.

Please post in THIS thread the exact image you are using boarderkris. Sorry this is causing some grief but we do have a fix.

Give us a couple days to track this down. This was a linux side software issue for images and has only been recently fixed like in last 4 months.

Perhaps this will jog Vid’s mind on this but I will track it down with him.

Also as was mentioned you really should run v43 firmware on the MCB if that is not already what you are running but what you describe is in fact a linux race condition.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [April 14, 2023, 3:18am UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/4 "2023-04-14T03:18:07Z")

</div>

Ok, I am just starting to poke around in my notes. This sounds like what I recall but I will find a better more confirmed document to verify this. Try this in the mean time as it sounds about right for what I did for this race condition:

/boot/config.txt has an option commented out of init\_uart\_baud=115200.  
To fix your issue you should set init\_uart\_baud=38400

See if you do NOT have this as default of 38400 system baud rate and change yours for this value which may fix this issue.

Thanks.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [April 14, 2023, 3:35am UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/5 "2023-04-14T03:35:19Z")

</div>

Found the earlier issue here and yes, above fix is in new images but not in non-noetic images I suspect so would be done manually. Full issue is here:

> <https://github.com/UbiquityRobotics/ubiquity_motor/issues/154>
>
> Yes it's still a thing, at least on the kinetic image. It especially has a prope…nsity to happen during client support calls.
> 
> Are we sure we couldn't add some kind of reconnect attempt assuming the connection fails? Does that not solve anything?

---

<div class="post-metadata">

**Author:** ![boarderkris](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/b/8797f3/32.png) [@boarderkris](https://forum.ubiquityrobotics.com/u/boarderkris)\
**Post date:** [April 14, 2023, 1:45pm UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/6 "2023-04-14T13:45:51Z")

</div>

Thank you Mark and Moff for the promt responses.

We are a little behind on our firmware version: v40\_20201209\_enc.cyacd, but we had believed it was stable - although I’m questioning that now, as we do have automated software to reset magni-base if there detects an issue.

In the /boot/config.txt file , the line init\_uart\_buad is commented out as:  
#init\_uart\_baud=115200  
I will try that as well.

We are also still on kinetic, however looking for an excuse to move forward to Ubuntu 18 or 20, so perhaps this is the time.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [April 14, 2023, 6:53pm UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/7 "2023-04-14T18:53:19Z")

</div>

All Kinetic images never had this fix. It was a tricky problem that took quite some time to finally figure out the fix. Sounds like you are covered at this time.

---

<div class="post-metadata">

**Author:** ![boarderkris](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/b/8797f3/32.png) [@boarderkris](https://forum.ubiquityrobotics.com/u/boarderkris)\
**Post date:** [April 14, 2023, 7:40pm UTC](https://forum.ubiquityrobotics.com/t/magni-occasionally-fails-to-start/1046/8 "2023-04-14T19:40:54Z")

</div>

Thanks Mark.

We will be updating to Noetic very soon!

Just to confirm - the latest “THIN” wheels definied earlier, are still suppored in the latest version?
