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

GPS data and maidenhead implementation #864

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

GPS data and maidenhead implementation #864

wants to merge 18 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 1, 2018

Related to #160.
I've been poking at the GPS and playing with a maidenhead square implementation.

GPS data is now easily available, and parsing correctly, but I don't know the signs of lat and lon and the current comments don't match my data, so they are just always positive for now.
Some of the maidenhead functions are just stubs, but a few critical ones (latlon->maidenhead and back) are done and tested.

I have tested on one GPS MD380V for testing the new stuff, and one non-GPS MD380U to make sure the new code doesn't cause build or flashing problems.

This is my first stab at applet code. Does it look alright?

@DL2MF
Copy link
Collaborator

DL2MF commented Apr 5, 2018

Great implementation, has much potential for new features. I did implement it on my dev repo, it compiled without any errors and I was able to flash my MD-390/G.
But the radio became very unstable after a few minutes, with or without GPS fix the menu was frozen, after a new startup it was rebooting itself after 4-5 mins, USB dmesg also frozen ...?

Please can anyone else test, building an image with this PR and confirm it with MD-390G?

@ghost
Copy link
Author

ghost commented Apr 6, 2018

I have an early MD380G in VHF, and it's been stable so far. I'll leave it on and keep an eye on it!

@DL2MF
Copy link
Collaborator

DL2MF commented Apr 6, 2018

My own branch is ahead the master, but without the new GPS feature it's stable on my MD-390/G UHF.
Can you please make a flash_S13 build and mail the experimental.bin to [email protected] or give me a download link?

@ghost
Copy link
Author

ghost commented Apr 6, 2018

@DL2MF
Copy link
Collaborator

DL2MF commented Apr 6, 2018

Did flash your version, running and waitung until GPS fix. Then connected to USB, starting dmesgtail and pressing RedKey gives GPS Data in hex and decoded correct format. After 3rd GPS frame request (by keypress) the radio is rebooting again.

@ghost
Copy link
Author

ghost commented Apr 7, 2018

I might be reproducing the issue. I just got a freeze, where no controls get a response , display doesn't get an update, and USB with dmesgtail shows no hints or new output (but doesn't die, either).

I haven't figured out the pattern yet, but I'm taking notes and trying to recreate whatever happened now.

@ghost
Copy link
Author

ghost commented Apr 7, 2018

Alright, I can consistently get it to crash following this pattern:
Turn on, press "8" key to get the netmon with a spinner in the top left to help identify crashes.
turn on dmesgtail.
Press the "8" key several times. I do not know yet how many are necessary, but 10 is sufficient.
Radio crashes within next three minutes or so, often very shortly (seconds) after the screen dims.

Edit: It has been crashing with this much simplified procedure:
Radio is connected to computer.
Turn on radio, start dmesgtail.
Crash within 6 minutes.

Further edit:
@DL2MF Can you confirm your reboots /only/ happens on my build?
I am actually getting crashes on the official master branch (e396ded) following the above procedure, but only on my VHF+GPS radio. UHF no gps seems rock solid no matter what.
So far, it is rock solid on the VHF GPS radio as long as it's not being dmesgtail'd, issues with which would seem at first glance to be #295 related.

@DL2MF
Copy link
Collaborator

DL2MF commented Jun 2, 2018

Sorry, I've been very busy the last weeks. Will start regular work on MD380tools now again, but with very small time budget. Just updating all my repos to make a fresh build including all latest changes.

@DL2MF
Copy link
Collaborator

DL2MF commented Jun 6, 2018

Further edit:
@DL2MF Can you confirm your reboots /only/ happens on my build?

@mach327 Using the current build from the official repo md380-tool dmesgtail is running fine with traffic on repeater, scanmode and several keyb inputs to swap between netmon 1/2/3 since > 1h on my MD390G UHF.

@DL2MF
Copy link
Collaborator

DL2MF commented Jun 18, 2018

@mach327 I'll add your latest GPS code to my dev repo within the next 3-4 days again. Then looking again for the reboot issue.

@ghost
Copy link
Author

ghost commented Jun 18, 2018

I'll go through and test it all again as well, hopefully sometime this week.

@zero48
Copy link

zero48 commented Jul 28, 2018

Hello. is there a way to get the Lat/long data to be sent out using the USB port on a Given RX radio ?

@ghost
Copy link
Author

ghost commented Aug 7, 2018

@zero48 If you just want the current position of your radio - essentially a low quality USB GPS - yes, that's part of this pull request.
If you want received DMR position packets from other radios, no - or at least, not yet. Developer time and pull requests welcome, and I'm more than happy to help new folks get involved. :)

@fiveangle
Copy link

Given the age of this PR, I'm guessing APRS functionality anytime soon is pretty much out of the question ? (just researching DMR radios with APRS and so far only coming up with the Anytone 878/BTech 6X2 🤷

Thanks !

-=dave

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

Successfully merging this pull request may close these issues.

4 participants