LibrePilot Forum

Development => Hardware => Topic started by: ALM on December 19, 2015, 11:51:15 am

Title: Naza clone GPS support
Post by: ALM on December 19, 2015, 11:51:15 am
Hi,
Since Naza GPS clone has advanced M8N gps and it's widely available and cheap, and also needs only 4 connection wires, can you please  implement it's support? All info is available from Pawelsky at RCG.
It would be the easiest way to connect gps+mag combo.

Alex.
Title: Re: Naza clone GPS support
Post by: hwh on December 19, 2015, 03:57:52 pm
I went over to rcgroups and took a look at Pawelsky's work.  He took the same two wire gps/mag combos we've all been looking at on eBay and Banggood, added an Arduino mini pro, built another board to go on the Arduino with the connectors, and wrote free but closed source firmware for it to output the proprietary NAZE gps protocol.

Even if we wanted to add support for the NAZE protocol to LP it would only run on the revo class fc boards, not the cc3d ones.  If we had the memory available on the cc3d to support another protocol the standard NMEA protocol would be enabled on it.
Title: Re: Naza clone GPS support
Post by: ALM on December 19, 2015, 04:06:34 pm
Great!
You are right about his adapter. But now it's possible to buy combos with everything at one board. No adapter needed.

http://www.banggood.com/Ublox-M8N-GPS-Compatible-with-DJI-NAZA-Lite-V1-V2-Flight-Controller-Phantom-1-2-Vision-p-991718.html

And of course it's for Revo in the first place.
Title: Re: Naza clone GPS support
Post by: hwh on December 19, 2015, 04:28:15 pm
That is an interesting gps.  It seems to be the same one as http://www.ebay.com/itm/351480000985 .  I can't find a really good picture of the board in it.  The write-up says it has a 32 bit processor, I wonder if it's an STM32?   If it is it might be possible to replace the firmware with a version of the gps V9 firmware.  For me that would be a better solution for us since it would support the cc3d boards as well.

I've ordered one on eBay to look at but the delivery estimates are sometime in early January.
Title: Re: Naza clone GPS support
Post by: ALM on December 19, 2015, 04:38:14 pm
Еру best one I could find is here http://www.rcgroups.com/forums/showpost.php?p=33138475&postcount=235

Title: Re: Naza clone GPS support
Post by: f5soh on December 19, 2015, 05:06:19 pm
That is an interesting gps.  It seems to be the same one as http://www.ebay.com/itm/351480000985 .  I can't find a really good picture of the board in it.  The write-up says it has a 32 bit processor, I wonder if it's an STM32?   If it is it might be possible to replace the firmware with a version of the gps V9 firmware.  For me that would be a better solution for us since it would support the cc3d boards as well.

(https://forum.librepilot.org/index.php?action=dlattach;topic=449.0;attach=841)

ATMEL Mega328P
CC3D do not have any Mag code on it.
Title: Re: Naza clone GPS support
Post by: hwh on December 19, 2015, 05:17:02 pm
Much better pictures.  It's an Atmel chip, not a STM32.   I'd bet the Chinese took Pawelsky's adapter code and just put the Atmel chip on the gps.

It's still possible it could be reprogrammed easily to emulate a V9 gps.  If they did just use Pawelsky's code then it should have the Arduino bootloader available on the serial port.

The V9 gps firmware doesn't do much, mostly it just passes whatever the gps module says on to the fc.  When it reads the mag it just injects a packet with the mag reading into the stream.

I'll have to wait until the one I ordered gets here in January.
Title: Re: Naza clone GPS support
Post by: hwh on December 19, 2015, 05:24:33 pm
@f5soh An even better picture, Thanks.

I know the cc3d doesn't have mag support but it does have and require ublox protocol. The problem with some (most? all?) of the cheap gps units is they default to NMEA and the cc3d firmware doesn't know how to tell them to switch to ublox protocol.  If it emulated a V9 then it would send ublox protocol always and could still be used with the cc3d boards, they'd just ignore the mag data packet.
Title: Re: Naza clone GPS support
Post by: f5soh on December 19, 2015, 05:39:36 pm
CC3D do not understand the ubx stream from GPSv9, not the same messages.
CC3D has only a minimal ubx support to save ram.

See wiki page how to configure:
https://librepilot.atlassian.net/wiki/display/LPDOC/Configure+a+GPS+for+CC3D
Title: Re: Naza clone GPS support
Post by: hwh on December 19, 2015, 06:17:59 pm
Thank-you for pointing the limitations out.

I'm aware of the effect of PIOS_GPS_MINIMAL on the gps parser.  In the course of looking at building an adapter to combine the gps and mag cables on the inexpensive gps units I've read every line of code in the source related to gps, the ublox manuals, and everything else I could find.

I was thinking of listening for a simple configuration command from the fc side that the user could connect to the gps with vcp and send a single command to tell the gps to do all the config in that wiki page. Maybe even something simple and easy to remember as typing "cc3d9600" or "cc3d19200" and pressing enter.  Normal ublox commands would be passed to the gps module but this would trigger the firmware to do the whole minimal config and save it.
Title: Re: Naza clone GPS support
Post by: f5soh on December 19, 2015, 06:52:01 pm
From the same Naza clone i posted above:

Code: [Select]

--------------------------------------------
 APM 2.6 to Naza GPS adapter v20150611_0000
--------------------------------------------
 
GPS Initialization
------------------
Checking module version...
Trying at 57600 baudrate: UBX message Class = 0x0A, Id = 0x04) sent, waiting for response... timeout!
RETRY: UBX message Class = 0x0A, Id = 0x04) sent, waiting for response... timeout!
RETRY: UBX message Class = 0x0A, Id = 0x04) sent, waiting for response... timeout!
Trying at 9600 baudrate: UBX message Class = 0x0A, Id = 0x04) sent, waiting for response... MON-VER received!
2.01 (75331)
NEO-M8 series module found
 
Restoring defaults...
UBX message Class = 0x06, Id = 0x09) sent
UBX message Class = 0x06, Id = 0x09) sent
UBX message Class = 0x06, Id = 0x09) sent
 
Configuring...
UBX message Class = 0x06, Id = 0x00) sent
UBX message Class = 0x06, Id = 0x00) sent
UBX message Class = 0x06, Id = 0x00) sent
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x01) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x08) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x23) sent, waiting for response... ACK received!
UBX message Class = 0x06, Id = 0x16) sent, waiting for response... ACK received!
 
Compass initialization
----------------------
Orientation: XY rotation = 0 degrees, HMC5883L facing down
I2C message (Addr = 0x00, Data = 0x14) sent, waiting for ACK... ACK received!
I2C message (Addr = 0x01, Data = 0x40) sent, waiting for ACK... ACK received!
I2C message (Addr = 0x02, Data = 0x00) sent, waiting for ACK... ACK received!
 
Starting data transmission...
U\AA:\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00JU\AA \E7\FD\ED\

http://www.rcgroups.com/forums/showpost.php?p=30011989&postcount=1
Title: Re: Naza clone GPS support
Post by: TheOtherCliff on December 19, 2015, 09:06:38 pm
Very interesting.  Good price.  I will order one and see what is required to get it working with LP firmware.

(If someone doesn't beat me to it.)  :)

Looks to be entirely serial like the V9.

Links for my reference at least...
https://oshpark.com/shared_projects/Ehm2RZPY
http://www.rcgroups.com/forums/showthread.php?p=30011989&postcount=1
Title: Re: Naza clone GPS support
Post by: TheOtherCliff on December 19, 2015, 09:16:22 pm
OP V9 GPS can be made to work with CC3D, but mag data is ignored.

Just use "GPS Only" port and configure it like you would any GPS for CC3D.  Then you can use either port (GPS Only or GPS+MCU) for flying.  Best to use GPS Only.
Title: Re: Naza clone GPS support
Post by: TheOtherCliff on December 19, 2015, 09:47:39 pm
Here is one for $26 shipped.  Probably without a stand/pole.  20 calendar days shipping.  I just bought it.  :)
http://www.ebay.com/itm/Ublox-M8N-GPS-Compatible-with-DJI-NAZA-Lite-V1-V2-Flight-Controller-ge-/252119739450
Title: Re: Naza clone GPS support
Post by: hwh on December 19, 2015, 10:42:10 pm
I beat you to ordering, I ordered about 8 messages back.  :)  I've just spent an hour or so reading all the messages in several rcgroups threads about this subject.  Including the high res pics of the units.

There are two varieties of the Naza clone gps, one based on the Atmel chip and one based on a STM32F030F4.  16k flash, 4k ram.

The ones we both ordered (in different auctions) say 32 bit in the description and the Atmel 328p is an 8 bit chip so they are probably the ones that have the STM32 in them.
Title: Re: Naza clone GPS support
Post by: mazevx on January 23, 2016, 11:46:44 pm
Are there any news about using these clones with the revo FC?
Title: Re: Naza clone GPS support
Post by: hwh on January 25, 2016, 02:42:27 am
I'm still tinkering with replacement firmware for the atmel version that I received but it probably won't be as useful as I originally hoped.  The Chinese makers are using Pawelsky's adapter Arduino code (literally the hex file he provides on rcgroups) but they're not burning the bootloader into the chip, just his code.  That means there's no way to install replacement firmware except with an Avr programmer and an adapter for the tiny non-standard connector pattern.

TheOtherCliff is working on making the revo version of the firmware understand the Naza's protocol but I don't know where he is on it.

In working with the clone Naza gps hardware I've found that it's performance is lower (a couple less sats seen) than the eBay/Banggood gps units that have separate connectors for the gps and mag.  Even the actual Naza GPS lite (I purchased one to test with) from DJI has lower performance.  There's a guy in HK selling an upgrade kit for them that replaces the lower gain antenna with a better one. I ordered one to try it but it hasn't arrived yet.  He claims it gets around 3 more sats than the stock antenna which would put it on a par with the two cable gps units.

Support for the two cable GPS units should make it into the next release so unless you need one of the ports for something else I  recommend buying one of those.
Title: Re: Naza clone GPS support
Post by: mazevx on January 25, 2016, 03:10:39 pm
Ok thanks and whats about reprogramming dji gps module?  Sorry if I missed to read something...I own a naza and always be happy with its gps performance.
 No problem using both ports but the serial connection seems to be more effictive and safe.
Title: Re: Naza clone GPS support
Post by: hwh on January 25, 2016, 04:05:19 pm
The actual DJI Naza gps won't be reprogrammed since it uses an odd cpu, but when Cliff gets his code working reliably you should be able to just use it as is with either a new connector or a short adapter from the existing connector to the JST one on the revo.

If you have the full ($175 USD+) Naza gps it apparently has better performance than the Lite one I have.  And it may not make any difference in practice, I'm just noticing the difference because I have several gps units that I've been using while working on this and have switched between them. Banggood sells an adapter that does the opposite of what we need, like Pawelsky's adapter it makes the 2 cable gps units into a Naza gps clone.  I've been using one as another source of what the Naza protocol looks like.
Title: Re: Naza clone GPS support
Post by: TheOtherCliff on February 21, 2016, 10:25:57 pm
DJI GPS support is now part of 'next' and can be built and flown.

I bought a not so great DJI GPS clone on eBay for about $26.  It works, but it locks up sometimes (completely the clone's fault since there is no info to send to the GPS) and drops about 1 in 4 GPS packets before even sending them out.

Running both the authentic DJI GPS Lite and the clone in LP GCS's GPS map, I can see that the authentic GPS apparently uses a different "Dynamic Model" (see u-center.exe).  It drifts less, but probably doesn't respond to quick motions as well.  Think about how fast Phantom's fly...
Title: Re: Naza clone GPS support
Post by: Jhinta on June 07, 2016, 07:51:47 pm
(https://forum.librepilot.org/index.php?action=dlattach;topic=449.0;attach=841)

V13 btw

i'm fighting to get this gps working, i can see mag works but gps doesnt do anything
gps-red
also dont see any gps info coming in.

witch settings are used? just dji and com at ? speed?
Title: Re: Naza clone GPS support
Post by: Mateusz on June 07, 2016, 07:59:05 pm
What flight controller? Red gps means no fix but GPS is talking.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 07, 2016, 08:21:28 pm
What flight controller? Red gps means no fix but GPS is talking.

revo, but i simply dont see any sats even if they are not fixed de sould apear in stream and world logo, right?
gps data stream is just empty
Title: Re: Naza clone GPS support
Post by: hwh on June 07, 2016, 08:28:13 pm
...wicth settings are used? just dji and com at ? speed?
Just DJI for protocol, the speed doesn't matter, DJI GPS units always talk at 115200 so that speed is hard coded in our firmware and we ignore the speed you set.

What does the GPS area on the right of the system tab show?  It's fields work and should show fix type, sats used, and coordinates.  The globe showing the satellites and the area below that shows signal levels still hasn't been fixed, there's an open issue for it isn't sent by the GPS so it doesn't work.   The tiny map at the bottom does show the location the gps is sending.

None of the uavobjects that show satellites, prn, etc work either, they're in the same open issue the DJI GPS doesn't send any of that data.

I have one of that same GPS, it was one of the ones we used to test the code.

edit: corrected about non-working stuff above.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 07, 2016, 08:32:32 pm
...wicth settings are used? just dji and com at ? speed?
Just DJI for protocol, the speed doesn't matter, DJI GPS units always talk at 115200 so that speed is hard coded in our firmware and we ignore the speed you set.

What does the GPS area on the right of the system tab show?  It's fields work and should show fix type, sats used, and coordinates.  The globe showing the satellites and the area below that shows signal levels still hasn't been fixed, there's an open issue for it.   The tiny map at the bottom does show the location the gps is sending.

None of the uavobjects that show satellites, prn, etc work yet either, they're in the same open issue.

all data is just zero , but mag is working
Title: Re: Naza clone GPS support
Post by: hwh on June 07, 2016, 08:44:26 pm
Do you have a battery hooked up to power the GPS?  USB alone won't work.  What are the leds on the GPS itself blinking?
Title: Re: Naza clone GPS support
Post by: Jhinta on June 07, 2016, 08:49:36 pm
Do you have a battery hooked up to power the GPS?  USB alone won't work.  What are the leds on the GPS itself blinking?

yep and , red blinking ,, blue only at start then off
Title: Re: Naza clone GPS support
Post by: f5soh on June 07, 2016, 08:50:46 pm
Looks like the GPS side do not receive sats or time.
If Mag data is ok, the serial link is fine.

Put the GPS outside wait some led activity and go back indoor, check the time data first.
If updated, it works.

Please note the time is buggy but should not be 2013 year.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 07, 2016, 09:17:52 pm
Looks like the GPS side do not receive sats or time.
If Mag data is ok, the serial link is fine.

Put the GPS outside wait some led activity and go back indoor, check the time data first.
If updated, it works.

Please note the time is buggy but should not be 2013 year.


no effect time still 2013 and no sats seen
Title: Re: Naza clone GPS support
Post by: hwh on June 07, 2016, 09:23:14 pm
I corrected my post above, the open issue is about the GPS version not the sat data.  The DJI GPS doesn't send individual sat info so it will never show.  It only sends the number of sats it's currently using.

If the blue led isn't blinking then the GPS hardware isn't seeing even one satellite.  The blue led blinks whenever the GPS can see at least one satellite well enough to read the time from it.

LP will never update until the GPS locks on at least one satellite.  When it does the date/time should update first.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 07, 2016, 09:26:23 pm
this is what i have
http://nl.aliexpress.com/item/NEO-M8N-GPS-Compass-for-DJI-Naza-M-V2-Lite-Flight-Controller-with-Stand/32653889296.html?isOrig=true#extend
Title: Re: Naza clone GPS support
Post by: hwh on June 07, 2016, 10:17:12 pm
Same one as the picture you posted a little while ago and the same one I have.

If it doesn't see any satellites it doesn't matter which one it is.  If the blue led never blinks when it's outside then it's defective.  If it can see at least one satellite the blue led will blink once a second.  It's connected directly to the Ublox GPS module's time pulse output.

The RED led tells more about the fix (or not).  In this post the GREEN led is the same as the RED one on the clone GPS units, they used his firmware and design. http://www.rcgroups.com/forums/showpost.php?p=30948019&postcount=259
Title: Re: Naza clone GPS support
Post by: Jhinta on June 07, 2016, 10:52:12 pm
Same one as the picture you posted a little while ago and the same one I have.

If it doesn't see any satellites it doesn't matter which one it is.  If the blue led never blinks when it's outside then it's defective.  If it can see at least one satellite the blue led will blink once a second.  It's connected directly to the Ublox GPS module's time pulse output.

The RED led tells more about the fix (or not).  In this post the GREEN led is the same as the RED one on the clone GPS units, they used his firmware and design. http://www.rcgroups.com/forums/showpost.php?p=30948019&postcount=259

 :-\ bad gps i think then, will try a other one ( any good aliexpress link?)
Title: Re: Naza clone GPS support
Post by: hwh on June 07, 2016, 11:59:12 pm
I don't know of any links in particular, your DJI clone is the first one of them I've heard was bad.   The seller should replace it if it hasn't been too long since you purchased it.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 08, 2016, 06:09:15 pm
I don't know of any links in particular, your DJI clone is the first one of them I've heard was bad.   The seller should replace it if it hasn't been too long since you purchased it.

will do , but lets play   8)
so connected tx rx from ublox self, this is what i get -> note last lines ,, that keeps going like that on and on

dont know what it sould do ,, but not that right?
Title: Re: Naza clone GPS support
Post by: hwh on June 08, 2016, 06:28:46 pm
...dont know what it sould do ,, but not that right?
That's not even close to right at the top for a DJI gps, that's NMEA protocol output.  I'm not sure what the gibberish at the bottom is, it could be DJI type output.  Without a dump of it in hex I have no way of knowing.

Also, you're at 9600 baud, a DJI GPS never runs at that speed it starts and stays at 115200 baud.

Maybe they left a test program in the Atmel chip instead of programming the correct firmware before shipping.  These clones normally have Pawelsky's (from RCGroups forum) adapter firmware in them and never output any NMEA.  It normally has a clearly readable version message and half a dozen or so initializing messages before the binary DJI protocol stuff starts.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 08, 2016, 06:30:15 pm
...dont know what it sould do ,, but not that right?
That's not even close to right at the top for a DJI gps, that's NMEA protocol output.  I'm not sure what the gibberish at the bottom is, it could be DJI type output.  Without a dump of it in hex I have no way of knowing.

Also, you're at 9600 baud, a DJI GPS never runs at that speed it starts and stays at 115200 baud.

Maybe they left a test program in the Atmel chip instead of programming the correct firmware before shipping.  These clones normally have Pawelsky's (from RCGroups forum) adapter firmware in them and never output any NMEA.  It normally has a clearly readable version message and half a dozen or so initializing messages before the binary DJI protocol stuff starts.

no no its serial out from ublox zelf not the atmel
seam like the chip is crashing orso, outputing error log orso?
Title: Re: Naza clone GPS support
Post by: hwh on June 08, 2016, 06:45:20 pm
...no no its serial out from ublox zelf not the atmel
You soldered wires directly to the Ublox module on the GPS board?  That could be correct for that.

What matters is what the Atmel chip on the GPS board is sending to the computer.  Since you seem to be familiar with Arduino programming write a little program to read what the GPS board is sending through the cable to the flight controller.  It should be at 115200 baud.  When the GPS first powers up there are a few lines of readable version and initializing text and then it switches to DJI protocol binary.  If you dump the binary part as hex digits the pattern that starts each DJI packet should be recognizable, it's 55 AA.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 08, 2016, 07:24:21 pm
have it working connected directly to arduino (for dump gps still not working !)
Title: Re: Naza clone GPS support
Post by: Jhinta on June 08, 2016, 08:01:49 pm
...no no its serial out from ublox zelf not the atmel
You soldered wires directly to the Ublox module on the GPS board?  That could be correct for that.

What matters is what the Atmel chip on the GPS board is sending to the computer.  Since you seem to be familiar with Arduino programming write a little program to read what the GPS board is sending through the cable to the flight controller.  It should be at 115200 baud.  When the GPS first powers up there are a few lines of readable version and initializing text and then it switches to DJI protocol binary.  If you dump the binary part as hex digits the pattern that starts each DJI packet should be recognizable, it's 55 AA.

using realterm
ftp://jhinta.no-ip.org/Public/Librepilot/dump.hex
btw tested inside, outside needed?
Title: Re: Naza clone GPS support
Post by: hwh on June 08, 2016, 09:20:50 pm
...ftp://jhinta.no-ip.org/Public/Librepilot/dump.hex
btw tested inside, outside needed?
I haven't verified the checksums but it looks like normal DJI GPS output.  The shorter records about every 1/30th of a second are mag readings, the longer ones about every 1/4 second are the GPS ones, and the ones that occur every few seconds are firmware/hardware version ones.

We've mentioned several times it has to be outside, inside they don't usually work.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 08, 2016, 09:46:00 pm
I know in my house where gps is working. But anyway.. Will dump out side

Verstuurd vanaf mijn LG-D855 met Tapatalk

Title: Re: Naza clone GPS support
Post by: Mateusz on June 08, 2016, 10:05:48 pm
I know in my house where gps is working. But anyway.. Will dump out side

Those guys above know what they're saying ;) GPS indoors is not giving good/stable coordinates, not only because of multipath reflections from walls which in case of patch antenna can give your meters of jumps in coordinates, but also because of poorer reception, it takes longer to update almanac which usually lasts only 5-6hours depending on super-capacitor on GPS so must be done outdoors. Finally indoors is just total NO go for external magnetometer also needed for GPS flight-modes.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 08, 2016, 10:19:52 pm
I all know that info. If i take my older gps put it on in cold start i sould get 3a4 sat 3d fix when i just in my living room . just having my gps near my windows pop it to 10. If its correct i dont care in that case as its only for testing.. But now i'm just seeing nothing. Even if im inside 1 sat sould be working and if 1 sat sould work blue led sould be on witch its not

Verstuurd vanaf mijn LG-D855 met Tapatalk
Title: Re: Naza clone GPS support
Post by: Jhinta on June 08, 2016, 10:45:39 pm
...ftp://jhinta.no-ip.org/Public/Librepilot/dump.hex
btw tested inside, outside needed?
I haven't verified the checksums but it looks like normal DJI GPS output.  The shorter records about every 1/30th of a second are mag readings, the longer ones about every 1/4 second are the GPS ones, and the ones that occur every few seconds are firmware/hardware version ones.

We've mentioned several times it has to be outside, inside they don't usually work.

out side log
ftp://jhinta.no-ip.org/Public/Librepilot/outside.hex
Title: Re: Naza clone GPS support
Post by: hwh on June 09, 2016, 12:30:00 am
Those dumps show that even though your gps is the same hardware as mine the firmware is different.  Normally DJI gps data is lightly encrypted with a key that's sent in the message.  The key changes constantly.  Your dumps the key is a constant zero.  It looks like someone wrote their own clone firmware instead of using Pawelsky's firmware.

Even so, the data shows that it's sending 0 longitude, 0 latitude constantly, no lock.  It still seems like the hardware is bad because of that and the fact that you're not getting the blue led blinking.  I suggest returning it if you can.

I've ordered one to look at using the link you posted.  It was really strange ordering on a site in a language I can't read.  Fortunately once I got to checkout it switched from Dutch (?)  to English because I was logged in to my account with them.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 09, 2016, 12:52:56 am
ik thing the ublox is just not good ,, i have connected ublox on arduino again and openup u-center and all i can get is this,

Code: [Select]
22:25:32  R -> UNKNOWN ???,  Size  38,  'UNKNOWN'
22:25:32  R -> NMEA GPGSV,  Size  18,  'GNSS Satellites in View'
22:25:32  R -> UNKNOWN ???,  Size  29,  'UNKNOWN'
22:25:32  R -> NMEA GNVTG,  Size  21,  'Course Over Ground and Ground Speed'
22:25:32  R -> NMEA GNGGA,  Size  33,  'Global Positioning System Fix Data'
22:25:32  R -> NMEA GNGSA,  Size  45,  'GNSS DOP and Active Satellites'
22:25:32  R -> NMEA GNGSA,  Size  45,  'GNSS DOP and Active Satellites'
22:25:32  R -> NMEA GPGSV,  Size  18,  'GNSS Satellites in View'
22:25:32  R -> NMEA GLGSV,  Size  18,  'GNSS Satellites in View'
22:25:32  R -> NMEA GNGLL,  Size  20,  'Geographic Position - Latitude/Longitude'
22:25:32  R -> NMEA GNTXT,  Size  33,  'Text Transmission'
22:25:32  R -> UBX MON-VER,  Size 108,  'Version'
22:25:32  R -> NMEA GNRMC,  Size  25,  'Recommended Minimum Specific GNSS Data'
22:25:32  R -> NMEA GNVTG,  Size  21,  'Course Over Ground and Ground Speed'
22:25:32  R -> NMEA GNGGA,  Size  33,  'Global Positioning System Fix Data'
22:25:32  R -> NMEA GNGSA,  Size  45,  'GNSS DOP and Active Satellites'
22:25:32  R -> NMEA GNGSA,  Size  45,  'GNSS DOP and Active Satellites'
22:25:32  R -> NMEA GPGSV,  Size  18,  'GNSS Satellites in View'
22:25:32  R -> NMEA GLGSV,  Size  18,  'GNSS Satellites in View'
22:25:32  R -> UNKNOWN ???,  Size  52,  'UNKNOWN'
22:25:32  R -> UBX ACK-ACK,  Size  10,  'Acknowledged'
22:25:32  R -> UNKNOWN ???,  Size  38,  'UNKNOWN'
22:25:32  R -> UBX ACK-ACK,  Size  10,  'Acknowledged'
22:25:32  R -> NMEA GNTXT,  Size  31,  'Text Transmission'
22:25:32  R -> NMEA GNRMC,  Size  25,  'Recommended Minimum Specific GNSS Data'
22:25:32  R -> NMEA GNVTG,  Size  21,  'Course Over Ground and Ground Speed'
22:25:32  R -> NMEA GNGGA,  Size  33,  'Global Positioning System Fix Data'
22:25:32  R -> NMEA GNGSA,  Size  45,  'GNSS DOP and Active Satellites'
22:25:32  R -> NMEA GNGSA,  Size  45,  'GNSS DOP and Active Satellites'
22:25:32  R -> NMEA GPGSV,  Size  18,  'GNSS Satellites in View'
22:25:32  R -> NMEA GLGSV,  Size  18,  'GNSS Satellites in View'
22:25:32  R -> NMEA GNGLL,  Size  20,  'Geographic Position - Latitude/Longitude'
22:25:32  R -> NMEA GNTXT,  Size  35,  'Text Transmission'

then it just stops ,, even if i do cold restart it does nothing
Title: Re: Naza clone GPS support
Post by: Jhinta on June 09, 2016, 12:56:31 am
Those dumps show that even though your gps is the same hardware as mine the firmware is different.  Normally DJI gps data is lightly encrypted with a key that's sent in the message.  The key changes constantly.  Your dumps the key is a constant zero.  It looks like someone wrote their own clone firmware instead of using Pawelsky's firmware.

Even so, the data shows that it's sending 0 longitude, 0 latitude constantly, no lock.  It still seems like the hardware is bad because of that and the fact that you're not getting the blue led blinking.  I suggest returning it if you can.

I've ordered one to look at using the link you posted.  It was really strange ordering on a site in a language I can't read.  Fortunately once I got to checkout it switched from Dutch (?)  to English because I was logged in to my account with them.

 ;D ;D , btw sould , desolder ublox be the same? lets say the one we use for gps+i2c ?
so desolder and swap., sould work right? or firmware related? its the same hardware
Title: Re: Naza clone GPS support
Post by: hwh on June 09, 2016, 02:01:39 am
I'm getting the idea you can't or don't want to return it.  :)

As long as it's another M8N module it should be ok to swap it.  There are some minor pin differences between the M8N and earlier 7 or 6 series modules, I don't remember exactly what the difference is.

Before I'd swap modules I'd try jumpering past the LNA and SAW filter in case anything in that signal chain is bad.  One of them bad could make the GPS not see any satellites.  See the attached picture.  Also inspect the ceramic antenna on the other side of the board, if it's cracked the GPS would have the same problem.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 10, 2016, 03:58:12 pm
Yep that made it work triple tested. Removing cable same problem. Wat is the effect of bypassing the filters ?

Verstuurd vanaf mijn LG-D855 met Tapatalk

Title: Re: Naza clone GPS support
Post by: hwh on June 10, 2016, 05:37:29 pm
It makes it a little less sensitive to weak signals but mostly it removes protection from interference by other signals.  The GPS signal is sometimes interfered with by wifi or cell phone signals.  It's not always necessary, a lot of the GPS units don't have the saw filter or external lna chips.   The lna is mostly there to make up for the loss in the saw filter but gives some additional gain.

If it sees enough sats and works you could probably just leave the jumper installed.
Title: Re: Naza clone GPS support
Post by: hwh on June 23, 2016, 07:30:55 pm
this is what i have
http://nl.aliexpress.com/item/NEO-M8N-GPS-Compass-for-DJI-Naza-M-V2-Lite-Flight-Controller-with-Stand/32653889296.html?isOrig=true#extend
I ordered one of these through that link and it arrived today.  It's defective the same as your GPS is, it doesn't see any satellites.  Like yours, not even one satellite to read the time from.

I have another one that looks identical that I had purchased a few months ago.  If I put them side by side and swap cables the older one gets the time in less than 30 seconds and a 4 sat initial lock in about 4 minutes.  The new one never gets even the time after 30 minutes.

I'm going to dig into it a little more and see if I can figure out exactly what in the LNA/SAW filter chain is bad.
Title: Re: Naza clone GPS support
Post by: Jhinta on June 23, 2016, 07:32:33 pm
this is what i have
http://nl.aliexpress.com/item/NEO-M8N-GPS-Compass-for-DJI-Naza-M-V2-Lite-Flight-Controller-with-Stand/32653889296.html?isOrig=true#extend
I ordered one of these through that link and it arrived today.  It's defective the same as your GPS is, it doesn't see any satellites.  Like yours, not even one satellite to read the time from.

I have another one that looks identical that I had purchased a few months ago.  If I put them side by side and swap cables the older one gets the time in less than 30 seconds and a 4 sat initial lock in about 4 minutes.  The new one never gets even the time after 30 minutes.

I'm going to dig into it a little more and see if I can figure out exactly what in the LNA/SAW filter chain is bad.
Nice to know. Im still waiting for my motors

Verstuurd vanaf mijn LG-D855 met Tapatalk

Title: Re: Naza clone GPS support
Post by: zebu on August 09, 2016, 05:24:18 pm
this is what i have
http://nl.aliexpress.com/item/NEO-M8N-GPS-Compass-for-DJI-Naza-M-V2-Lite-Flight-Controller-with-Stand/32653889296.html?isOrig=true#extend
I ordered one of these through that link and it arrived today.  It's defective the same as your GPS is, it doesn't see any satellites.  Like yours, not even one satellite to read the time from.

I have another one that looks identical that I had purchased a few months ago.  If I put them side by side and swap cables the older one gets the time in less than 30 seconds and a 4 sat initial lock in about 4 minutes.  The new one never gets even the time after 30 minutes.

I'm going to dig into it a little more and see if I can figure out exactly what in the LNA/SAW filter chain is bad.


Hello,

Any news about the problem ?

I plan to buy one of these DJI GPS clones, but I prefer one which is working good :)
Title: Re: Naza clone GPS support
Post by: hwh on August 09, 2016, 05:54:00 pm
Just don't buy it from that particular seller.  :)  Most of the clone DJI/Naza GPS units work fine.  This seller had a batch (or at least two) that were bad.

Even the bad ones work OK if you jumper over the LNA/Saw filter chain, they're just a little less immune to interference.  Many of the GPS units on the market don't even have the LNA/Saw filter.

Since I have way more GPS units than I need I decided to put off fixing this until next Winter when I'm not inclined to go outside anyway.  Exactly what is wrong doesn't matter much to most people since they couldn't replace the tiny parts anyway.

The bottom line is just buy one and see if it works, most work fine. If it doesn't contact the seller, most will work something out.  I ended up taking a 50% refund since I intend to eventually fix it.

The actual DJI brand ones seem to work a little better than the clones (they see a couple more sats for one thing) but the clones seem to work as well as most GPS on the market and still only take up one of the flight controller's ports.  The clones are less than half the price of the DJI brand ones, often closer to a third of the price.
Title: Re: Naza clone GPS support
Post by: Jhinta on August 09, 2016, 07:51:45 pm
this is what i have
http://nl.aliexpress.com/item/NEO-M8N-GPS-Compass-for-DJI-Naza-M-V2-Lite-Flight-Controller-with-Stand/32653889296.html?isOrig=true#extend
I ordered one of these through that link and it arrived today.  It's defective the same as your GPS is, it doesn't see any satellites.  Like yours, not even one satellite to read the time from.

I have another one that looks identical that I had purchased a few months ago.  If I put them side by side and swap cables the older one gets the time in less than 30 seconds and a 4 sat initial lock in about 4 minutes.  The new one never gets even the time after 30 minutes.

I'm going to dig into it a little more and see if I can figure out exactly what in the LNA/SAW filter chain is bad.


Hello,

Any news about the problem ?

I plan to buy one of these DJI GPS clones, but I prefer one which is working good :)
As above just get from a other seller. but it sould work. Once I have my motors I will report back. ( waiting for months because seller made a error in shipping but my motor are finally shipt correctly) a week or two.

Verstuurd vanaf mijn LG-D855 met Tapatalk

Title: Re: Naza clone GPS support
Post by: TheOtherCliff on August 09, 2016, 08:15:45 pm
I fly a DJI GPS clone all the time on one of my two quads.  Before that, during extensive bench testing I found that this DJI GPS clone has some serious problems.  Note that there is no configuration for it; you just power it on and receive data that it sends.  But it sometimes stops sending GPS data even though the uBlox GPS blue 1PPS LED still blinks (indicating that the uBlox GPS is still working fine and has a good GPS fix).  Sometimes it stops sending all data, even mag data and firmware version.

It drops MANY GPS packets, but that does not really hurt anything.  It drops about 1 GPS packet per second (about 1 out of 5 or 6).  It completely locks up or stops sending GPS packets maybe once every 24 hours of operation.

In flying, it generally does an acceptable job.  Yesterday it started to fly away so I switched to Attitude mode and brought it back.  When I switched back to GPS mode it started to fly away again.  I switched back to Attitude mode, landed, unplugged GPS to power just GPS off, plugged it back in, and the problem was fixed.  This is the first actual flight issue I have had with this DJI GPS clone in probably 30 flights.

I bought this DJI GPS clone version because it was the cheapest one.  Another developer bought a different version and did not have these problems in during multi-day testing.

For anyone buying these DJI GPS/mag clones, I suggest that you connect your quad to an "AC powered" power supply and run it continuously for several days to make sure that it doesn't have problems.  Note that once it stops sending data, it does not recover until you power the DJI GPS clone off and back on, so before powering off, you can simply check at the end of the test to make sure the GPS and mag are still working.  That won't show problems if running motors put noise on your power, but it will find the kinds of problems I have seen with this cheapest clone.

This one looks like the one I bought. but of course it could be better or worse.  Lately there are versions that are even cheaper than this one.
http://www.ebay.com/itm/Ublox-NEO-M8N-GPS-Compass-Support-DJI-Naza-M-V2-Lite-Flight-Controller-FPV-/301931345971
(http://i.ebayimg.com/images/g/LukAAOSw37tV-M3u/s-l500.jpg)
Title: Re: Naza clone GPS support
Post by: TheOtherCliff on August 23, 2016, 10:54:09 pm
$43 (shipped) DJI/Naza Lite GPS

http://www.ebay.com/itm/251862698572

I received mine today.  It's an authentic DJI Naza Lite.  I haven't tested it yet.

You need "next" or the upcoming release to use it, and you must solder a different connector on it.
Title: GPS Sources
Post by: jtrout19 on November 09, 2016, 12:50:08 am
Hey guys so i am contemplating replacing my neo 6 with a naza gps. I dont mind clones just trying to find a high quality clone. Can you guys recommened some sites that sell high quality clones. After reading the issue that can come on with i2c i figure i dont want to use it. So yeah banggood has one for 22 dollars US. What do you guys think. Give me some other option as well.
Title: Re: Naza clone GPS support
Post by: TheOtherCliff on November 09, 2016, 11:47:38 pm
I bought one of the cheapest DJI clone GPSs I could find on eBay.  That one appears to have several problems.  Maybe just one with different symptoms.

There are 3 packet types that are sent at different intervals.  I wrote a program to dump all the data.  You can see that when two packets are scheduled to be sent at the same time, that one overwrites the other and the first packet gets interrupted and the second packet starts in the middle of the first packet.  This happens enough that the GPS packets should be 5 packets per second but you get an average of 4 packets per second.  Also, it completely locks up randomly, maybe once every 24 hours or so.  It works, and as long is GPS is not mission critical it is OK and you just switch to non-GPS mode when it starts to fly away (only happened once to me).

I won't buy one of those again when I can get a real DJI GPS for $39 shipped.  I wrote the DJI GPS driver for LP so I did a lot of testing.  Other people report decent results from clones, but I wonder if they have been tested for days a time.
http://www.ebay.com/itm/DJI-Naza-M-Lite-GPS-Module-with-GPS-Bracket-for-RC-Quadcopter-Multi-rotor-G2T4-/131988064582

Or a complete DJI Naza system for $71.00 shipped.
https://forum.librepilot.org/index.php?topic=2336.msg16552#msg16552
Title: Re: Naza clone GPS support
Post by: jtrout19 on November 10, 2016, 07:35:41 am
Well I purchased 2 of these today. I guess I will see what happens when I get them, The order has not shipped yet should I cancel it and just get the 39 dollar ones?

Well this post scared me so i went ahead and cancelled my banggood order and bought the one off ebay
Title: Re: Naza clone GPS support
Post by: Mateusz on November 10, 2016, 07:45:54 am
I would cancel and get one decent.
Title: Re: Naza clone GPS support
Post by: ArtusMuc on December 17, 2016, 01:01:14 pm
Hello all :)

I have 2 of this "NAZA GPS/Compass" Modules and want to use with my REVO.
Do anyone know this? I see that ony TX cable is connected. But i want to use I2C to use Compass and GPS. On Board are all chips i think for using I2C.

Is there anyone who is able to give me some "first steps" for testing ?


Price was 29 Euro .. i have the second for "present" cause the first was not fixed in shell :)

Title: Re: Naza clone GPS support
Post by: f5soh on December 17, 2016, 01:40:58 pm
Looks like this is a Naza GPs, no need I2C.

Mag data is send to board using serial protocol.
DJI protocol in Hardware tab or choose Naza GPS in Wizard.

You just need a JST SH 1.0mm connector and solder the wires:
Black to the pin1 (Gnd)
Red to the pin2 (+5V)
Yellow to the pin4 (Tx from Naza to Rx from board)

https://librepilot.atlassian.net/wiki/display/LPDOC/GPS+setup#GPSsetup-GPSwiring
https://librepilot.atlassian.net/wiki/display/LPDOC/Revolution+Configuration#RevolutionConfiguration-FlexiPort


Title: Re: Naza clone GPS support
Post by: ArtusMuc on January 18, 2017, 04:23:26 pm
Yes it does :) Find enough satellites after cold-start within some minutes. (Aux) Magnetometer is available.

Thanks for support :)
Title: Re: Naza clone GPS support
Post by: trike_flyer on January 25, 2017, 02:43:13 pm
I'm still tinkering with replacement firmware for the atmel version that I received but it probably won't be as useful as I originally hoped.  The Chinese makers are using Pawelsky's adapter Arduino code (literally the hex file he provides on rcgroups) but they're not burning the bootloader into the chip, just his code.  That means there's no way to install replacement firmware except with an Avr programmer and an adapter for the tiny non-standard connector pattern.


Did you have any luck with flashing a bootloader to the chip and uploading the V9 gps firmware to pass the gps module info on to the fc?

Just curios if you were able to work it out and if these GPS are better the the 6's?  Would be fun doing the change to it.

TF
Title: Re: Naza clone GPS support
Post by: hwh on January 26, 2017, 02:25:18 am
No, I abandoned it when I realized that it was really just for me because most people wouldn't be able to (or want to) make an adapter for the tiny connector on it and flash using a hardware programmer.

At the same time the street price of the real DJI Naza GPS lite dropped down to a reasonable level making even less reason to do it.  And the clones work pretty well, Cliff found some problems but he was running long tests.

For me the most annoying thing about the Naza GPS in general is they don't send the sats being used and their signal strengths the way the v9 does.

Title: Re: Naza clone GPS support
Post by: Issay1880 on February 23, 2018, 03:56:05 pm
I am having a misterious issue with my NAZA lite FC and ublox M8N gps that i have bought from aliexpress. I have done so many tests and came up with a conclution that when there are phantoms and mavics flying around i get settelites for M8N gps module. Other than that when i try to fly my F450 alone on an open area if i keep it for 30mins even i am not able to get a single gps lock. I have tried 4 smartphones that day in that location gps enabled and maps app opened so it searches for location and retrives gps locks for those smartphones and suprisingly i am getting more than 6 gps leds on my NAZA flight controller. And when i off the GPS on the phones, i get 3red and 1 green led on my naza. Its like my M8N gps module doesnt lock itself on to setallites.
I could not understand why this happens on my ublox Neo M8N gps. Havent found any threads on a post like this. Have anyone tried smartphones or other gps based drones while flying to have a GPS lock on those faulty GPS modules they say.
Please do share your thoughts on this.
Title: Re: Naza clone GPS support
Post by: TheOtherCliff on February 23, 2018, 08:30:40 pm
You may do better by raising this question on some DJI forums.

Other than maybe having bought a bad GPS...

If you have any transmitter (FPV, etc.) on board the quad, turn it off to see if that helps.  Also try in a place that doesn't have obvious sources of RF (nearby radio stations, military, power lines).

GPS signal will be worse where it can't see the whole sky, like between buildings or in a canyon, or indoors.

Your 5V power may be noisy.