Go to advanced search

by Dranoweb
Thu Sep 26, 2019 6:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

Just a followup for anyone still following this:

I made the deadline, and got to site with a few days left before my permission expired.

The site is indeed radioactive, and analysis of the data loggedis now underway.

Thankyou once again for your assistance.
by Dranoweb
Mon Sep 23, 2019 2:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

Ok so I FINALLY have a functional code, that works at 15 second intervals, AND gives correct coords. between all of us we got there... here's the code at present: Alt = "None" count = "0" uSvHr = "0" import os import time import serial from datetime import datetime now = datetime.now() oldtime = tim...
by Dranoweb
Sun Sep 22, 2019 12:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

For anyone taking a personal interest in this project and has lots of time to waste - I am documenting the build on youtube. if anyone would like their contributions acknowledged in part 6 - I'm happy to do so. https://youtu.be/7T5gQTv4-FI Part 1 https://youtu.be/M6VdVM1Ub2c Part 2 https://youtu.be/...
by Dranoweb
Sun Sep 22, 2019 11:51 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I have looked into GPSD, and in fact have it installed on the project as a backup, however given the initial timeframe I'm forced to work with what I know. after the primary survey deadline is up, I'll be back to refine things, and GPSD will probably be the way to go. the serial data has indeed beco...
by Dranoweb
Sat Sep 21, 2019 2:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

Out of interest does the following show up any anomalies ? Ignoring any extremely minor rounding and -ve lat/lon. #!/usr/bin/env python3 import time,serial,pynmea2 def latLonToDecDegrees(val): DD = int(float(val)/100) MM = float(val) - DD * 100 return DD + MM/60 ser = serial.Serial('/dev/ttyACM0',9...
by Dranoweb
Sat Sep 21, 2019 12:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I want to make this a separate post: I would like to take the time to acknowledge those on the forum that have assisted me so far. everyone added another piece to the puzzle. While the final solution was in collaboration with someone outside the forums - it was the tips and hints here that heavily c...
by Dranoweb
Sat Sep 21, 2019 11:58 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

We discovered that pnmea2 was doing something odd to the string as it parsed it. The dd_to_sd function is mathematically correct, but the parsing was not. Can you explain what the issue was here? I'm using pynmea2 (in Cumbria,UK) and not seeing any issues. So I can't confirm specifically "how" it h...
by Dranoweb
Sat Sep 21, 2019 11:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I hear threading mentioned, I see no threading in the program. You use Python3 at the command line by typing Python3 and not python I was a little ahead of myself - threading was happening the the radcount script, that runs in the background, writing the counts to a text file. this is then opened a...
by Dranoweb
Sat Sep 21, 2019 10:38 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I just check and if you stay with Google earth, it can use Decimal Degrees. So you only need to record msg.latitude & msg.longitude (Same as Google maps) You don't need to split and combine. https://support.google.com/earth/answer/148068?hl=en EDIT simple test program for you (another one, this is ...
by Dranoweb
Sat Sep 21, 2019 3:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

On the risk of carrying coals to Newcastle: You are saying you checked with cgps, and everything was fine. Since cgps is a gpsd client, I suggest you are trying to read from a serial port, a running gpsd is using already. If this is the case, stop gpsd and retry. However, reading from gpsd rather t...
by Dranoweb
Sat Sep 21, 2019 3:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I just went for a walk after stepping through literally every element of the project bit by bit. Here's what happened: I altered the serial read loop to include a 1 second delay: while True: time.sleep(0.1) outputStr = serialPort.readline() parseGPS(outputStr) I then went for a walk around the block...
by Dranoweb
Sat Sep 21, 2019 2:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

What output do you get if you run the following? import serial import pynmea2 serialPort = serial.Serial("/dev/ttyAMA0", 9600, timeout=1) while True: str = serialPort.readline() if str.find('GGA') > 0: print str.strip() The code executes perfectly, and outputs the GGA string. I have modified the la...
by Dranoweb
Sat Sep 21, 2019 1:25 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

On the risk of carrying coals to Newcastle: You are saying you checked with cgps, and everything was fine. Since cgps is a gpsd client, I suggest you are trying to read from a serial port, a running gpsd is using already. If this is the case, stop gpsd and retry. However, reading from gpsd rather t...
by Dranoweb
Fri Sep 20, 2019 2:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

OK so I'm close to a rant about various aspect of forums and post numbers, and experience levels etc - something you have all probably heard or seen before. I'm going to call it quits for a day or two and come back to this when i have resolved some other issues. I recently suffered an attack of MS t...
by Dranoweb
Fri Sep 20, 2019 2:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

Setup: Raspberry pi zero w RTC attached by SPI Geiger counter attached to GPIO via opto-isolator Neo6M GPS attached by serial to GPIO with 2db gain passive antenna Problem: Waypoints are recorded as a "cluster" within a 20sq/m area around the first fix. driving several kilometers away and waiting i...
by Dranoweb
Fri Sep 20, 2019 1:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

It's writing to a CSV file. As a checksum, I am importing said CSV file to google earth as a checksum. This first mention of it is because I am only now using it to try to fault find - and was not doing so at the time of the original post. I have added several of these points manually at this stage,...
by Dranoweb
Fri Sep 20, 2019 1:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

This could potentially be a google earth import error - stay tuned while I adjust my pc with a log splitter....

I'll post back with my findings...
by Dranoweb
Fri Sep 20, 2019 1:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I may have an idea that I had not spotted until laying this question out in the forum. my final loop has nothing to slow it down. this could be overwriting coords before they are refreshed, effectively rounding or averaging the reading. I'm going to reinstate the half second sleep and try with that ...
by Dranoweb
Fri Sep 20, 2019 1:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I had intended it to be python3 - though I'm still somewhat new to the language. and I have python3 installed - but the question is going to end up at "how does one do that exactly?" the code is working quite smoothly for my purposes, and the string for "gps.write" was changed as the dd_to_sd functi...
by Dranoweb
Fri Sep 20, 2019 12:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

My code checks to see if there is an elevation unit type "M" in the GGA string - this is not possible without a 3d fix. Having just wandered around in the dark, I found that the date and time is shown correctly in the NMEA data over the serial. So I think I can rule out epoch issues. the fix does se...
by Dranoweb
Fri Sep 20, 2019 12:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

Another consideration I just had - Epoch rollover.
a once every 20 years event with GPS modules where the 10 bit week number value resets.

That happened back in April. Perhaps I need to update the module's firmware.

though I I hear rumors that the ublox units are immune - but cannot confirm it
by Dranoweb
Fri Sep 20, 2019 11:05 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Re: Ublox Neo 6M GPS module not changing coords.

I had arrived at a similar idea in the last hour or so, so yes will try that.
Unfortunately I will have to wait a few hours to test that as I can't leave my post, so to speak.
by Dranoweb
Fri Sep 20, 2019 9:04 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 1170

Ublox Neo 6M GPS module not changing coords.

Hi, I'm currently building a GPS logging geiger counter, using a raspberry pi zero w and a Ublox Neo 6M GPS module. Connected via serial, not USB Interfacing is happening fine, but I have a weird issue that I cannot find any reference to anywhere. My waypoints are "clustering", and by that I mean th...
by Dranoweb
Thu Sep 19, 2019 2:48 pm
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 552

Re: Pynmea2 output Decimal Degrees.

well I got it in the end. consulted an ex-coworker who's much more up to date with this stuff and together we worked out a solution. here's what I we ended up with: # -*- coding: utf-8 -*- Alt = "None" count = "0" uSvHr = "0" import os import time import serial import pynmea2 from datetime import da...
by Dranoweb
Thu Sep 19, 2019 2:12 pm
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 552

Re: Pynmea2 output Decimal Degrees.

I have attempted that in various forms, and it still throws an error about being unable to concatenate a string and a float. Originally I found that the tutorial I had followed had used "str" as a variable - and that kinda screwed things up. that being fixed now, I can print the floats, and I can us...

Go to advanced search