Skip to content

Conversation

@mmosca
Copy link
Collaborator

@mmosca mmosca commented Aug 6, 2023

Fixes #9218

Add gps_auto_baud_max with a default setting of 230400, matching INAV 6.0 behavior.

Newer GPS units may be set to higher baud rates and some old units seem to have bugs causing them to reset and revert 38400 if you attempt to auto baud higher than 115200.

Will setup some hardware on my bench to diagnose further
@mmosca
Copy link
Collaborator Author

mmosca commented Aug 6, 2023

M8 seems to top up 460800.
https://content.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_UBX-13003221.pdf

I may add a gps_max_autobaud_speed and set default to 230400, for compatibility with older units.

mmosca added 4 commits August 6, 2023 14:25
Some old devices seem to reset if set to too high of a baud rate.

A particular old m8 devices tops up at 115200.

INAV 6.0 used to go all the way up to 230400
@mmosca
Copy link
Collaborator Author

mmosca commented Aug 6, 2023

Ok, we should now be able to keep everyone happy.

This change keeps support for 460800 and 921600.

As a bonus, should allow auto baud to work with @stronnag 's m8 with very old api version to work, by setting gps_auto_baud_max to 115200.

@mmosca
Copy link
Collaborator Author

mmosca commented Aug 6, 2023

Verified working both with m8q and m10 from iflight.

@mmosca mmosca merged commit e39f3e5 into master Aug 6, 2023
@mmosca mmosca deleted the mmosca-gps-autobaud-more-speeds branch August 9, 2023 18:46
rmaia3d pushed a commit to rmaia3d/inav that referenced this pull request Sep 9, 2023
rmaia3d pushed a commit to rmaia3d/inav that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPS Autobaud fails on M8 (and possibly older GPS)

2 participants