trust

  • ****
  • 301
OP GPS can't change to UBLK
« on: May 17, 2019, 07:21:26 pm »
I have a Revo mini and an OP GPS plugged into the main port, and the config in hardware set to use UBLK. The GPS is acquiring satelites - red LED is on blue LED blinks, but I get a red X over the GPS in status.
If I look on the status list the baud rate keeps changing and it indicates no gps. I assume its in autobaud trying to find a working data rate.
I tried U-center and I can see the NMEA codes coming out and satellites acquired.
But I can't change anything - I can't disable the child messages, and there is no UBLK items I can enable.
I'm thinking somehow this is a read-only GPS?
I tried selecting the NMEA option in Librepilot, and setting to the 9600 baud.
That doesn't seem to work either.
Thought maybe the RX pin not working in the GPS, but I tried it several times, no change.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: OP GPS can't change to UBLK
« Reply #1 on: May 17, 2019, 08:02:03 pm »
Hi,
There is no need to use UCenter since the AutoBaudAndConfigure option is selected and a GPS configured in Main or Flexiport with all defaults (UBX, 57600)

If you see NMEA messages with UCenter while UBX protocol is selected, the GPS is not configured automatically due to a wrong wiring or some hardware issue, look SystemHealth for alarms.
Rx from GPS go to the Tx pin on Main/FlexiPort, Tx/Rx wires are crossed.



Re: OP GPS can't change to UBLK
« Reply #2 on: May 17, 2019, 10:58:45 pm »
The last version of the OP GPS has two usable ports on the GPS itself, they are labeled GPS only and GPS+MCU.  GPS only can run at any baud rate, but GPS+MCU must run at 57600.  If the GPS is configured to run at something other than 57600 then GPS+MCU will not work (see below).

You must have flight battery connected (via ESC or BEC) for the GPS to be powered.  It seems you have that.  GPS must be powered to change settings inside the GPS.  :)

I suggest that you run default GPS settings (Ublox protocol, 57600 baud, etc.) and connect it to the GPS only port.  See if it connects.  If it does, change the UbxAutoConfig from AutoBaud to AutoBaudConfigureAndStore for 1 minute.  (This will permanently configure the GPS to run at 57600 which is required on the GPS+MCU port.)  Then set the UbxAutoConfig back to AutoBaud and leave it there.  After this, you can connect it back to the GPS+MCU port and the GPS will run at the required 57600 baud.
« Last Edit: May 18, 2019, 02:24:58 am by TheOtherCliff »

trust

  • ****
  • 301
Re: OP GPS can't change to UBLK
« Reply #3 on: May 19, 2019, 07:11:33 pm »
The version I have, Cirocomm seems to only have one port, labeled with V G and T & R. On the off chance the lines were crossed I flipped them and tried that on Librepilot with the UBLK and 57600 setting and a reboot. No change. It seems to be hunting for the correct baud rate or its not getting the codes it wants, so keeps trying.
red led on and blue led blinking

Re: OP GPS can't change to UBLK
« Reply #4 on: May 19, 2019, 07:50:46 pm »
Voltage, Ground, Transmit, Receive.

You got V and G correct since the LEDs light up.  You also obviously have power (e.g. flight battery) applied.  I assume that you get GPS power via the FC, and not some other power cable.

Does the GPS circuit board say OpenPilot on it?  Are you even sure it is Ublox?  I have several generations of OP GPS, and they all work with default settings as long as you have a working cable pugged in, have power (flight battery), and told the Hardware page which port you have it plugged in.  The FC configured baud rate must be reasonable too.  It doesn't matter what the GPS baud rate is, because it will be changed to whatever you have configured.

OP boards are configurable, some other non-OP Ublox boards are not configurable.

Do you have it plugged into the correct FC port (Flexiport vs. Mainport).

I would "Ohm it out" with power off and cables connected to make sure that GPS circuit board that connects to T pin connects to R on the FC circuit board.  Sometimes a bent pin or other issue has the effect of a broken wire.

AutobaudAndConfigure (not just AutoBaud) really is magic and generally works to get any Ublox GPS (including OP) working as long as the cable is correct, there is power, and the baud rate is set to 57600.  As I recall, it finds the current baud rate, changes it to 57600 (or whatever you have it configured to), configures the GPS to send the packets it needs to.  In this mode, all changes are temporary.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: OP GPS can't change to UBLK
« Reply #5 on: May 19, 2019, 08:59:24 pm »
Quote
The version I have, Cirocomm seems to only have one port, labeled with V G and T & R.
Cirocomm refers to the patch antenna brand, maybe you can post some PCB pictures or a link where you buy the GPS.
If you have access to it using UCenter, try disabling all NMEA messages and keep UBX messages On.
Even if the Ublox chip do not store settings permanently, the super capacitor will keep those settings for the test.

GPS only can run at any baud rate, but GPS+MCU must run at 57600.  If the GPS is configured to run at something other than 57600 then GPS+MCU will not work (see below).
I suggest that you run default GPS settings (Ublox protocol, 57600 baud, etc.) and connect it to the GPS only port.  See if it connects.  If it does, change the UbxAutoConfig from AutoBaud to AutoBaudConfigureAndStore for 1 minute.  (This will permanently configure the GPS to run at 57600 which is required on the GPS+MCU port.)
Talking about the GPS v9 from OP, changing the "GPS only" baudrate (Neo7 uart) has no effect on MCU<>GPS link since this link do not use serial/uart port.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: OP GPS can't change to UBLK
« Reply #6 on: May 19, 2019, 11:26:06 pm »
Additional question:  what GCS version do you use ? 16.09 or latest Next ?

trust

  • ****
  • 301
Re: OP GPS can't change to UBLK
« Reply #7 on: May 20, 2019, 02:46:39 am »
Here's a link:
https://www.ebay.com/itm/OP-GPS-w-LED-for-Openpilot-CC3D-Revolution-EVO-Atom-Mini-CC3D/332166264277
I'm using rev 16.09

As for ohming it out, it's pretty clear it does transmit, as u-center shows the received data, and I did try swapping pins with no effect.
It does not seem to do anything with a received signal however. I can't change anything with u-center.
If I try to config and reset to defaults, nothing happens.
In the messages view, I can see items not greyed out under NMEA, but I can't disable any of these messages.
I also don't see any UBLK items.

Re: OP GPS can't change to UBLK
« Reply #8 on: May 20, 2019, 03:36:22 am »
As I recall, that kind does not save settings permanently.  It doesn't actually work with OP/LP CC3D, but it still should work correctly with Revo set to AutobaudAndConfigure as it gets configured each time it is powered up (notice that the eBay item shows that a Revolution is connected).  It does not have a mag/compass which is another things you usually need to fly GPS flight modes.

I suggested Ohming it out since you probably use a different cable / connector when connecting to UCenter.  It would also be an equivalent test to configure your Revo as ComBridge so you would use the Revo instead of a USB to serial converter (FTDI), and thus you would use the same cables as during flight.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: OP GPS can't change to UBLK
« Reply #9 on: May 20, 2019, 07:05:05 pm »
Can you try the following firmware with your GPS ?
Rescue > Load attached firmware > flash
Set speed to 57600 + UBX, GPS can be powered after you start the autoconfig.

Remember the UBXRate will be lowered if your use baudrate bellow 9600bauds.

trust

  • ****
  • 301
Re: OP GPS can't change to UBLK
« Reply #10 on: May 22, 2019, 04:42:01 am »
Small progress. I actually got two of these GPS - one came with the Revo, another one I ordered separately. They look from the outside identical, but when I opened them up they have different markings and a different PCB.
My references here have all been to the second one with the Cicrocom marking.

I found the original one had oddly used a different color scheme for wiring - but the wires did seem to be connected to the right pins. When I hooked the correct pins to my FTDi adapter and ran U-center, this time I WAS able to disbalbe the NMEA messages, and enable the UBLK messages, and perform all the other items listed (although you tell me its not needed - config does this automatically?).
I could power it off and back on and the config seems to have been saved.

But when I hplug it into the flight controller and power everything up, it still seems to hunt for the baud rate and does not indicate the GPS exists.

How do I do the rescue load? Do I have to reset or halt the processor first? Rescue is greyed out.

trust

  • ****
  • 301
Re: OP GPS can't change to UBLK
« Reply #11 on: May 22, 2019, 04:54:54 am »
Ok, I was able to rescue download the attached file and boot it.
No change. Same results. Status shows baud rate changing, but never settles to 9600 baud.

trust

  • ****
  • 301
Re: OP GPS can't change to UBLK
« Reply #12 on: May 22, 2019, 05:04:18 am »
Success! I decided to try plugging into the Flexi port instead of the main port. Set the baud rate to 9600.
The GPS is now GREEN!
And it is showing the correct gps coords in the system window!

trust

  • ****
  • 301
Re: OP GPS can't change to UBLK
« Reply #13 on: May 22, 2019, 06:11:00 am »
Ok. I was able to go through home location set, and calibration process successfully.

I set up a switch position for return to base.
But  a scary thing happened when I armed it. The motors started up!
I was holding it down in the center - but was trapped holding it! I couldn't reach the power plug!
After a while the motors died down somewhat, and with a somewhat herculean effort I lifted it with one hand and unplugged with the other.
VERY SCARY!
I though that even always armed would not arm unless the transmitter was on.
Or is this so it can return to base if it looses signal?

Re: OP GPS can't change to UBLK
« Reply #14 on: May 22, 2019, 07:00:34 am »
Set all your GPS settings to defaults, that includes using 57600 baud.  Use a magnifying glass to look inside your MainPort connector on the FC.  Do you see any tiny bent pins?

It sounds like talking to uCenter using your MainPort FC in ComBridge mode in place of USB to serial adapter would have failed too.

Always Armed should not be used except on an airplane after testing with prop off (cars and boats OK too, but be careful).  :(  "Motors Spin At Neutral Output" and "Always Stabilize When Armed" are other settings that should be studied, understood, and initially tested with props off.  :(

RTB is designed to come back to the take off location if you for instance run out of transmitter range, so it is designed to work with the transmitter "off".  As I recall, it won't let you arm in RTB mode, but you bypassed that by saying it is always armed.  :(