Menu

Lost GPS-Receiver Data

2019-05-13
2019-06-06
  • Andreas Exeler

    Andreas Exeler - 2019-05-13

    Hi Robert,
    i have a question:
    I build my myGPS Arduino with a plugable GPS-Receiver.
    If i forgot to connect the Receiver, so i can see that, because the OLed have a white Background and shows no Data.
    Connecting the Receiver (and a few secounds later, it receives Data) the Background turns to Black and shows the Data (Time, Date, GPS and so on).
    But when i disconnect the Receiver (or make a mistake on the Receiver (drop down)) after a "success receive Data", the OLed is still Black, shows Date, GPS, only the Time stands still, so i can not see (from a distance) that there is a disconnect of the Receiver-Unit.
    Can you make a "OLed turns back to a white Background" if the Receiver is disconnect, or receive no Data?

    Thanks for your help.
    Best Regards
    Andreas

     
  • brownrb

    brownrb - 2019-05-14

    Hi Andreas
    I can look at this yes. It might be a few days though as the language translation of the ASCOM focuser driver is taking priority right now. But I will look at it.
    Regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2019-05-14

    Hi Robert,
    no Problem, it´s a only nice to have feature, take as long as you need.
    Thank for help.
    Greets
    Andreas

     
  • brownrb

    brownrb - 2019-05-15

    Hi Andreas
    Please find attached to test
    Regards
    Robert

     
  • brownrb

    brownrb - 2019-05-24

    I am not sure thats the case
    The code
    else
    {
    // no data, possible disconnection of GPS?
    if ( ((datatimer - gpstimer) > GPSINTERVALTIME) || (datatimer < gpstimer) )
    {
    gpstimer = datatimer;
    online = 0;
    }
    }

    waits 5s and if no gps data is receieved over a 5s interval then sets online to 0

    then the following code for the oled
    if ( online == 1 )
    myoled.Display_Normal();
    else
    myoled.Display_Inverse();
    // now update screens
    displaylcdpage();

    checks the state of online and if 0 (no gps data for 5s) then the display is reversed (white on black)
    

    It might be the order of things though. so try attched which has a slight difference in order

     

    Last edit: brownrb 2019-05-24
  • Andreas Exeler

    Andreas Exeler - 2019-05-28

    Hi Robert,

    I'm not sure if I'm testing it right.
    The GPS-Receiver behaves differently.
    According to whether the receiver is cold (no date time, etc.) or has already received data. (Date Time, or even GPS-Data).

    The Display changes to white for 2 seconds every 10 seconds, or is black and has no coordinates, only date and time.
    I think I have to test it differently because the receiver also provides date and time when it is in a metal can. (if he had previously received coordinates)
    Thanks for your trouble so far.
    I continue to test and try to document the possible results.
    (GPS receiver is cold, or warm, or has no signal or is not connected)

    greeting
    Andreas

     
  • brownrb

    brownrb - 2019-06-05

    Hi Andreas
    It is doing my head in.

    If the GPS is connected then it will be transmitting data, even without a GPS lock, every second, back to the Arduino.

    regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2019-06-05

    Hi Robert,
    my Neo-6m GPS-Modul has a LED onboard, i think the LED will flash if the Modul receive Data.
    I can put the LED outside of the Case, so i can see it.
    Maybe it´s the easiest way to see the status of the Modul.

    My Travel-Case is ready now (have some new pic´s posted), now i can build the Stepper on the Focuser and make the Dew-Stripes.

    Thanks for your great work!
    Greets
    Andreas

     
  • brownrb

    brownrb - 2019-06-05

    Hi Andreas
    Not sure about that. It will send data every second requardless of the LED state.

     
  • Andreas Exeler

    Andreas Exeler - 2019-06-06

    Hi Robert,
    yes, that could be, but i dont want waste your time for my littel Problem....
    Thanks!
    Greets
    Andreas

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.