SMALL - espritmodel.com SMALL - Telemetry SMALL - Radio
Reply
Thread Tools
This thread is privately moderated by pm1, who may elect to delete unwanted replies.
Old Oct 13, 2012, 03:47 PM
Registered User
Canada, BC, Nanaimo
Joined Sep 2012
13 Posts
another newbie

ok, if I may take a turn at the help desk

I have a HK MWC SE V2.0
I flashed it with MW 2.1
I bought a Crius I2C-GPS and CN-06 combo from an Ebay supplier
I discovered the Battery was useless on the GPS and after 3 days of working on it, discovered it had a built in eprom and stored the values there.
verified that the GPS retains and works on the folowing settings useing u-connect:
115200 buad
100 ms Measurement Period
10.00 Hz Measurement Frequency
1 cycle Navigation Rate
10.00 Hz Navigation Frequency
It boots up and locks a 3d fix and stays at those settings so I belive the GPS is configured and good.
I have no I2C errors in MultiWiiConf_2_1
I flashed the I2C with the latest Sketch I2C_GPS_NAV-v2.1rc2 and in the sketch the ONLY thing I changed was from MTK to NMEA
everything works except the GPS is not passing thru to the MW
the I2C just constant even blink red. As far as I can understand the I2C is not recogniseing the NMEA string.
Ideas? help please, I am about to tear out my last 4 hairs!!!
Dale.E is offline Find More Posts by Dale.E
Reply With Quote
Sign up now
to remove ads between posts
Old Oct 13, 2012, 07:01 PM
Registered User
San Marcos, CA
Joined Aug 2009
2,843 Posts
Connect the GPS directly to a serial interface and see the messages that are send.

Check if it has the required information.
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 13, 2012, 08:04 PM
Registered User
Canada, BC, Nanaimo
Joined Sep 2012
13 Posts
Quote:
Originally Posted by flyandi View Post
Connect the GPS directly to a serial interface and see the messages that are send.

Check if it has the required information.
thank you for the reply, but yes I have done so with U-connect and confirmed the GPS boots up, reads eprom, sets itself to the settings listed in my first post and does so reliably from cold start.
I am confidant I am getting nmea at 115200 from the gps, but the I2C is not reading it.
Dale.E is offline Find More Posts by Dale.E
Reply With Quote
Old Oct 13, 2012, 08:06 PM
Registered User
Canada, BC, Nanaimo
Joined Sep 2012
13 Posts
maybe I should try Ublox mode instead of NMEA
going out to shop and try that now, one thing also, I cannot configure the GPS to:
115200 buad
100 ms Measurement Period
10.00 Hz Measurement Frequency
2 cycle Navigation Rate
5.00 Hz Navigation Frequency
as soon as I hit send in U-connect it reverts to:
115200 buad
100 ms Measurement Period
10.00 Hz Measurement Frequency
1 cycle Navigation Rate
10.00 Hz Navigation Frequency
any ideas there?
Dale.E is offline Find More Posts by Dale.E
Reply With Quote
Old Oct 13, 2012, 10:07 PM
Registered User
Canada, BC, Nanaimo
Joined Sep 2012
13 Posts
Tried ublox nmea changed rx-TX to rx-rx at every try.
No change
Dale.E is offline Find More Posts by Dale.E
Reply With Quote
Old Oct 14, 2012, 03:35 AM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
My first try was the latest version out of svn. This generally worked with NMEA

Set the GPS to 5 Hz measurement frequency. You can set it to 10 Hz, but then only the same data is delivered twice.

Another idea: Flash it with my version. Only set GPS baudrate to 115200 in config.h (and magnetic declination). Leave yout setting on the GPS at NMEA. Then it should work with the ublox protocol.

3 advantages:
- less data has to be transferred
- it has a better granularity (not precision). One digit difference in NMEA means about 30 cm, in ublox about 3cm. The corrections are much smoother
- the LED indicates, that valid frames are received, even without already having a fix. Better for diagnosis...
pm1 is offline Find More Posts by pm1
Last edited by pm1; Oct 14, 2012 at 03:44 AM.
Reply With Quote
Old Oct 14, 2012, 10:09 AM
Registered User
San Marcos, CA
Joined Aug 2009
2,843 Posts
Where do you set "magnetic declination" in the i2c-nav code?
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 14, 2012, 10:37 AM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
Quote:
Originally Posted by flyandi View Post
Where do you set "magnetic declination" in the i2c-nav code?
Nowhere, it's in Multiwii
pm1 is offline Find More Posts by pm1
Reply With Quote
Old Oct 14, 2012, 01:54 PM
Registered User
Canada, BC, Nanaimo
Joined Sep 2012
13 Posts
Quote:
Originally Posted by pm1 View Post
My first try was the latest version out of svn. This generally worked with NMEA

Set the GPS to 5 Hz measurement frequency. You can set it to 10 Hz, but then only the same data is delivered twice.

Another idea: Flash it with my version. Only set GPS baudrate to 115200 in config.h (and magnetic declination). Leave yout setting on the GPS at NMEA. Then it should work with the ublox protocol.

3 advantages:
- less data has to be transferred
- it has a better granularity (not precision). One digit difference in NMEA means about 30 cm, in ublox about 3cm. The corrections are much smoother
- the LED indicates, that valid frames are received, even without already having a fix. Better for diagnosis...
thank you for the info, I installed your copy of I2c-gps with ONLY the change to 115200 into my I2c
I changed my GPS to 5hz actually here are my GPS default start up settings as during this test:

I also swapped the tx/rx lines and back as i do with every test.
no joy, constant blinky I2C 1sec on 1 sec off, mocking me for so long.....

Dale.E is offline Find More Posts by Dale.E
Reply With Quote
Old Oct 14, 2012, 03:06 PM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
Quote:
Originally Posted by Dale.E View Post
no joy, constant blinky I2C 1sec on 1 sec off, mocking me for so long.....
Puh, no idea. For further diagnostics you can connect GPS to the i2c board, and connect the tx line of the gps paralllel to the FTDI rx, and connnect GND too. Then you can monitor the messages with u-center software and check, that the configuration is changed to ublox binary (messages view).
pm1 is offline Find More Posts by pm1
Reply With Quote
Old Oct 14, 2012, 05:04 PM
Registered User
San Marcos, CA
Joined Aug 2009
2,843 Posts
Did you swap the RX/TX line of the i2c bus as well?

That was my problem.
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 14, 2012, 06:48 PM
Registered User
Canada, BC, Nanaimo
Joined Sep 2012
13 Posts
Quote:
Originally Posted by flyandi View Post
Did you swap the RX/TX line of the i2c bus as well?

That was my problem.
yes I tried that, one way produces I2C errors and the way I have it now does not. I would think that the setup with no errors is the right way??

I just tried something new, I downloaded a GPS simulator and set up useing the same cable I use to connect the GPS to the computer to connect the I2C
I output nmea at 115,200 baud on the corect port, the USB/FTDI was blinking showing data was flowing but the I2C was still just 1sec on 1 sec off.
there was no I2C to MW connection tho.

I think I can say pretty sure I have a bad I2C now.
Dale.E is offline Find More Posts by Dale.E
Reply With Quote
Old Oct 14, 2012, 07:56 PM
Registered User
Canada, BC, Nanaimo
Joined Sep 2012
13 Posts
So I decided to plug it in after the last test and WTH?!?!? I get the quick blink indicateing GPS sentence recieved?!?!?
the only diff in last full test is the I2C-GPS code from PM1 was changed in two places:
remed out ublox and enabled NMEA, continued at 115,200
it now works, I dont get it, but heck it works.....
rebooted system and tested half dozen times, gps is working.
how much disadvantage is there to 5hz nmea over 5hz ublox?
Dale.E is offline Find More Posts by Dale.E
Reply With Quote
Old Oct 15, 2012, 06:24 AM
FPV Pilot
Mulder_'s Avatar
Germany, NRW, K
Joined Jun 2010
270 Posts
i have connected with u-center to the GPS unit and get a 3d fix, so that seems to work.
the 0.1s on/1s off should be an indicator for valid messages from the GPS so I disconnected the GPS from the I2C board but I am still getting the same LED sequence that indicates valid sentences received but there is nothing connected to it?!
Mulder_ is offline Find More Posts by Mulder_
Reply With Quote
Old Oct 15, 2012, 01:46 PM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
Quote:
Originally Posted by Mulder_ View Post
i have connected with u-center to the GPS unit and get a 3d fix, so that seems to work.
the 0.1s on/1s off should be an indicator for valid messages from the GPS so I disconnected the GPS from the I2C board but I am still getting the same LED sequence that indicates valid sentences received but there is nothing connected to it?!

It should stop 3 seconds after receiving the last frame...
pm1 is offline Find More Posts by pm1
Last edited by pm1; Oct 15, 2012 at 01:56 PM.
Reply With Quote
Reply

Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion CRIUS GPS with I2C little nellie Multirotor Electronics 73 Sep 04, 2014 06:15 PM
Discussion FC I2C-GPS NAV Module jy0933 Multirotor Electronics 7 Mar 28, 2014 06:46 PM
Discussion Crius NEO-6M Ublox GPS+Nano Mini Board+ Multiwii Control Board I2C GPS Kit godwisper Multirotor Electronics 5 Aug 25, 2012 04:03 AM
Discussion RC Timer GPS and I2C-NAV module for MWC Foam boy Multirotor Electronics 3 Jul 16, 2012 08:41 PM
Sold ArduPilotMega autopilot board, APM IMU Sensor Shield, I2C Magnetometer and GPS pilot006 Aircraft - Electric - Multirotor (FS/W) 3 Mar 13, 2012 05:07 PM