glidernet / diy-tracker

Do-it-Yourself OGN Tracker software
GNU General Public License v3.0
27 stars 18 forks source link

disabling the GPS PPS #16

Open kusree opened 6 years ago

kusree commented 6 years ago

I still cannot figure how to use non-PPS GPS module?

i tried to change "GPS_Status.PPS=0;" in gps.cpp but not working

pjalocha commented 6 years ago

First, it should work without you doing anything. The algorithm gets the timing from the data bursts getting from the GPS. What happens when you simply run the code without modifications ?

Pawel.

On Sun, Jul 8, 2018 at 7:51 AM, kusree notifications@github.com wrote:

I still cannot figure how to use non-PPS GPS module?

i tried to change "GPS_Status.PPS=0;" in gps.cpp but not working

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/glidernet/diy-tracker/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AImAam8yE431eAhzFXpxIv30M2elyu2xks5uEavogaJpZM4VGney .

kusree commented 6 years ago

I just realized that the OGN receiver automatically change the RF frequency center to the Australia region (915Mhz) based on my location. that's why the receiver can not listen to the device. First, I though it was the gps problem. Now I have to find out how to change the center frequency back to 868.3MHz

pjalocha commented 6 years ago

Both OGN receiver and the OGN-Tracker should change the frequency plan according to the geographical location. In the OGN receiver you can override it by RF.FreqPlan=1; (for Europe/Africa) but in the OGN-Tracker there is no override.

Where are you and which frequency plan do you need ?

Pawel.

On Mon, Jul 9, 2018 at 2:44 PM, kusree notifications@github.com wrote:

I just realized that the OGN receiver automatically change the RF frequency center to the Australia region (915Mhz) based on my location. that's why the receiver can not listen to the device. First, I though it was the gps problem. Now I have to find out how to change the center frequency back to 868.3MHz

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/glidernet/diy-tracker/issues/16#issuecomment-403483912, or mute the thread https://github.com/notifications/unsubscribe-auth/AImAasgN_pkPXpV9sObX5ReClkcBYh3uks5uE14sgaJpZM4VGney .

kusree commented 6 years ago

I'm in Indonesia, and planning to use 868MHz instead of Australia region freq

pjalocha commented 6 years ago

OK, in the OGN receiver you need to set the FreqPlan=1; in the RF section like this:

RF: { FreqPlan = 1; } ;

in the OGN-Tracker code, I have to think yet, how to do it best. Is 868MHz the official band for Indonesia ?

BTW: to exclude the PPS code from the ESP32 OGN-Tracker comment out the line in the hal.h

define WITH_GPS_PPS

pjalocha commented 6 years ago

OK, to force a given frequency plan in the OGN Tracker please do the following: in proc.cpp remove the like:

  RF_FreqPlan.setPlan(Position->Latitude, Position->Longitude);     // set the frequency plan according to the GPS position

In rf.cpp change the line:

RF_FreqPlan.setPlan(0); // 1 = Europe/Africa, 2 = USA/CA, 3 = Australia and South America

to:

RF_FreqPlan.setPlan(1);

kusree commented 6 years ago

Yes, in Indonesia we are using 868mhz.

thank you pjalocha, will try it to set the fixed freqplan

pjalocha commented 6 years ago

i have added the parameter FreqPlan to the STM32 and ESP32 OGN-Tracker so that you can override the automatic setting based on the location. For 868MHz send this to the console:

$POGNS,FreqPlan=1

the parameters are stored in the flash thus the Tracker remembers them after a reset or re-power.

kusree commented 6 years ago

thank you pjalocha. I will try it