Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mRo OEM H7 GPS doesn’t work #18968

Open
mrpollo opened this issue Jan 6, 2022 · 26 comments
Open

mRo OEM H7 GPS doesn’t work #18968

mrpollo opened this issue Jan 6, 2022 · 26 comments
Assignees
Labels

Comments

@mrpollo
Copy link
Contributor

mrpollo commented Jan 6, 2022

Using an OEM H7 you can't get a GPS to work, using the GPS port or CAN, neither show up with gps status

NuttShell (NSH) NuttX-10.1.0
nsh> gps status
INFO [gps] Main GPS
INFO [gps] protocol: UBX
INFO [gps] status: NOT OK, port: /dev/ttys2, baudrate: 0
INFO [gps] sat info: disabled
INFO [gps] rate reading: 0 B/s
nsh>
@dagar dagar added the bug label Jan 6, 2022
@ryanjAA
Copy link
Contributor

ryanjAA commented Jan 6, 2022

Will try next week (when back in the office) are you on master?

@mrpollo
Copy link
Contributor Author

mrpollo commented Jan 10, 2022

Yep master and stable are the same @ryanjAA did you get a chance to test this?

@ryanjAA
Copy link
Contributor

ryanjAA commented Jan 10, 2022

Ok - the H7 and F7 Oem I have don't have the boot loaders on them (just tried) so I'll find a segger tomorrow and get it burnt on. I have to track down the little 6 pin pogo connector (in a new office but I do have one). Standby.

@dagar
Copy link
Member

dagar commented Jan 10, 2022

Ok - the H7 and F7 Oem I have don't have the boot loaders on them (just tried) so I'll find a segger tomorrow and get it burnt on. I have to track down the little 6 pin pogo connector (in a new office but I do have one). Standby.

You don't have any bootloader loaded or you don't have the PX4 bootloader?

@ryanjAA
Copy link
Contributor

ryanjAA commented Jan 11, 2022

There are no boot loaders on them - it's because awhile back when you and I were working on getting them functional, the boot loaders were put on and off, etc before migrating to the non OEM variants for use which is predominantly what we use for Control Zeros.

@taileron
Copy link
Contributor

taileron commented Jan 11, 2022

with the by MRO preinstalled AP bootloader (brd id:1024) ublox m8q gps works flawlessly on all white plug uart ports available on the stick adapter ...
NuttX 10.1 seems to be a version prior to master but there gps worked here as well

@ryanjAA
Copy link
Contributor

ryanjAA commented Jan 12, 2022

@mrpollo I put the PX4 bootloader on and on Master I get sats. On stable when I go into the console and hit return it sets me into a reboot. To @dagar on that one...

I will try and just see if it gets sats now on stable but it does work (on master). didn't try the AP boot loader but it sounds like that is working, I can try if need be.

EDIT: can't get sats on stable release

@benjinne
Copy link
Contributor

benjinne commented Jan 15, 2022

I'm also not getting sats on my pixracer pro. Latest master version works

@benjinne
Copy link
Contributor

I found the commit that fixes it: 1ee3484
I found it by trying older and newer commits until I found the commit where it goes from not working to working

@dirksavage88
Copy link
Contributor

It seems the betaflight crowd has had issues with the ublox m9n as well: betaflight/betaflight#10921

@dagar
Copy link
Member

dagar commented Jan 24, 2022

To be clear is this now working on master for everyone? If not please specify the specific hardware, PX4 commit, and wiring (ctrl zero specifics).

@benjinne
Copy link
Contributor

benjinne commented Jan 24, 2022

This works on master, but is broken on latest release. I found the commit 1ee3484 fixes it. I'm running the latest release so I just cherry-picked that commit in and I've been flying with it no problem. I'm running a pixracer pro

@benjinne
Copy link
Contributor

benjinne commented Mar 18, 2022

This works on master, but is broken on latest release. I found the commit 1ee3484 fixes it. I'm running the latest release so I just cherry-picked that commit in and I've been flying with it no problem. I'm running a pixracer pro

I just found cherry-picking that commit works with the pixracer pro, but doesn't work with the ctrl-zero-h7-oem. The latest master branch works, but as expected the latest release v1.12.3 does not

@benjinne
Copy link
Contributor

This commit 3f17acd fixes the ctrl-zero-h7-oem along with previous commit I found that fixed it for the pixracerpro. This commit can't be cherry-picked into v1.12.3 due to file structure changes, however I manually made the changes into my v1.12.3 branch and it works now.

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 20, 2022

Good to know for the time being. You can create a patch and post it here for people.

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 20, 2022

@mrpollo i think this is what you were mentioning before.

@benjinne
Copy link
Contributor

benjinne commented Mar 21, 2022

ctrl-zero-h7-GPS-fixes-firmware-and-patches.zip
Here's a zip file with the 2 patches for v1.12.3, and I included a built firmware file from those 2 patches.

The first patch fixes an underlying gps driver issue and will work for the pixracer-pro, and the 2nd patch fixes some pin mapping issue for the ctrl-zero-h7-oem. I also tested this firmware works on both the pixracer-pro and the ctrl-zero-h7-oem

@JacobCrabill
Copy link
Member

Possibly related issue - has anyone got the TELEM1 port of the prototype breakout board (USART2) working? As far as I can tell, I can send data out from PX4 on that port, but Rx data is not being captured. I can't find anything obviously wrong in the pinout of the prototyping board, but without schematics, I can't say for certain.

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 21, 2022

Which breakout board? The square or rectangle one? I have them both so can give it a try. Are you on master or release?

@JacobCrabill
Copy link
Member

I'm making some changes off of master; I haven't updated in a week or so, but still quite recent.

I'm using their prototype carrier board (https://store.mrobotics.io/product-p/m10060b.htm), the larger, more square-ish board with just USB, GPS1, TELEM1, CAN1, and CAN2 connectors, plus all connections broken out to holes for header pins. I've already found another oddity with the TELEM1 port, which is that the RTS pin of TELEM1 seems to be not connected to anything.

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 21, 2022

I'll take a look - strange about the RTS. Does rts have continuity on the breakout board itself (from the port to header) or do you think it is on the actual autopilot? I have the autopilot schematics so let me find them and look (although I think I have the f7 schematics but should be the same iirc).

@JacobCrabill
Copy link
Member

JacobCrabill commented Mar 21, 2022

I'll take a look - strange about the RTS. Does rts have continuity on the breakout board itself (from the port to header) or do you think it is on the actual autopilot? I have the autopilot schematics so let me find them and look (although I think I have the f7 schematics but should be the same iirc).

Sorry, I meant to say it's a continuity issue on the breakout board itself. I haven't gone so far as to actually toggle pins on the MCU and verify the actual pinout of the H7 OEM board between the MCU and the 2 connectors.

Schematics would be extremely helpful, if you're able to share them!

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 21, 2022

Gotcha. Ok. Not on the autopilot then. I’ll take a look on what I have.

Can’t share the schematics unfortunately as they sent them over to me for an issue with the FC a long while back but happy to look through anything as needed.

Let me see on master what pops up. If I can’t find the correct board I’ll grab one tomorrow at the office and check but always good to have two people try the same thing to rule out something specific to the hardware too. Standby - let’s see.

@JacobCrabill
Copy link
Member

Can’t share the schematics unfortunately as they sent them over to me for an issue with the FC a long while back but happy to look through anything as needed.

Ok, I kinda thought so. If you could just confirm that the USART2 Rx/Tx pins are correctly setup in PX4's board.h, that would be really helpful. I'm struggling to determine whether there's an obscure issue in PX4 preventing Rx from working, or whether it's a hardware issue on the carrier board I'm not seeing, or something else.

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 23, 2022

Telem1 port is working fine on that breakout board here. Put mater on from right now and a generic sik radio and connected wirelessly. Changed a few params and rebooted, all working.

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 26, 2022

@JacobCrabill hardware is specific to your batch. See this note.

https://px4.slack.com/archives/C0W2KUFFT/p1648319405997709?thread_ts=1648302068.722429&channel=C0W2KUFFT&message_ts=1648319405.997709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants