No GPS fix with Pytrack 2.0X and Lopy4



  • Cant get gps fix with my pytrack2.0 and lopy4.
    I am running 1.20.2r1 on my lopy and the default fw on my pytrack2.
    External GPS antenna attached to pytrack.

    So far i have tried the following actions:

    When running the main.py (pytack example from github), i dont get any errors/exeptions.
    It only prints:

    Reading file status
    Failed to read project status, uploading all files
    Creating dir lib
    [1/5] Writing file lib/L76GNSS.py (4kb)
    [2/5] Writing file lib/LIS2HH12.py (6kb)
    [3/5] Writing file lib/pycoproc.py (11kb)
    [4/5] Writing file lib/pytrack.py (1kb)
    [5/5] Writing file main.py (1kb)
    Upload done, resetting board...
    OKets Jun  8 2016 00:22:57
    
    rst:0x7 (TG0WDT_SYS_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff8020,len:8
    load:0x3fff8028,len:2140
    ho 0 tail 12 room 4
    load:0x4009fa00,len:19760
    entry 0x400a05bc
    
    RTC Set from NTP to UTC: (1970, 1, 1, 0, 0, 4, 961033, None)
    Adjusted from UTC to EST timezone (1970, 1, 1, 2, 0, 4, 3, 1) 
    
    (None, None) - (1970, 1, 1, 0, 0, 7, 16027, None) - 2549632
    (None, None) - (1970, 1, 1, 0, 0, 7, 330666, None) - 2549568
    (None, None) - (1970, 1, 1, 0, 0, 7, 678854, None) - 2549584
    (None, None) - (1970, 1, 1, 0, 0, 7, 844375, None) - 2549584
    (None, None) - (1970, 1, 1, 0, 0, 8, 9843, None) - 2549600
    (None, None) - (1970, 1, 1, 0, 0, 8, 175526, None) - 2549600
    (None, None) - (1970, 1, 1, 0, 0, 8, 341066, None) - 2549600
    (None, None) - (1970, 1, 1, 0, 0, 8, 506551, None) - 2549616
    (None, None) - (1970, 1, 1, 0, 0, 8, 672133, None) - 2549616
    (None, None) - (1970, 1, 1, 0, 0, 8, 837607, None) - 2549632
    (None, None) - (1970, 1, 1, 0, 0, 9, 3179, None) - 2549632
    (None, None) - (1970, 1, 1, 0, 0, 9, 168955, None) - 2549648
    (None, None) - (1970, 1, 1, 0, 0, 9, 334473, None) - 2549648
    (None, None) - (1970, 1, 1, 0, 0, 9, 500011, None) - 2549648
    (None, None) - (1970, 1, 1, 0, 0, 9, 665455, None) - 2549664
    (None, None) - (1970, 1, 1, 0, 0, 9, 830890, None) - 2549664
    (None, None) - (1970, 1, 1, 0, 0, 9, 996474, None) - 2549680
    (None, None) - (1970, 1, 1, 0, 0, 10, 162138, None) - 2549680
    (None, None) - (1970, 1, 1, 0, 0, 10, 327705, None) - 2549696
    (None, None) - (1970, 1, 1, 0, 0, 10, 493331, None) - 2549696
    (None, None) - (1970, 1, 1, 0, 0, 10, 658834, None) - 2549712
    (None, None) - (1970, 1, 1, 0, 0, 10, 824270, None) - 2549712
    (None, None) - (1970, 1, 1, 0, 0, 10, 989888, None) - 2549712
    (None, None) - (1970, 1, 1, 0, 0, 11, 155525, None) - 2549728
    (None, None) - (1970, 1, 1, 0, 0, 11, 320990, None) - 2549728
    (None, None) - (1970, 1, 1, 0, 0, 11, 486523, None) - 2549744
    (None, None) - (1970, 1, 1, 0, 0, 11, 652061, None) - 2549744
    (None, None) - (1970, 1, 1, 0, 0, 11, 817488, None) - 2549760
    (None, None) - (1970, 1, 1, 0, 0, 11, 983095, None) - 2549760
    (None, None) - (1970, 1, 1, 0, 0, 12, 148668, None) - 2549760
    (None, None) - (1970, 1, 1, 0, 0, 12, 314102, None) - 2549776
    (None, None) - (1970, 1, 1, 0, 0, 12, 479589, None) - 2549776
    (None, None) - (1970, 1, 1, 0, 0, 12, 645130, None) - 2549792
    (None, None) - (1970, 1, 1, 0, 0, 12, 810557, None) - 2549744
    (None, None) - (1970, 1, 1, 0, 0, 13, 124744, None) - 2549552
    (None, None) - (1970, 1, 1, 0, 0, 13, 438753, None) - 2549568
    (None, None) - (1970, 1, 1, 0, 0, 13, 786821, None) - 2549584
    (None, None) - (1970, 1, 1, 0, 0, 13, 952368, None) - 2549584
    (None, None) - (1970, 1, 1, 0, 0, 14, 117983, None) - 2549584
    (None, None) - (1970, 1, 1, 0, 0, 14, 283568, None) - 2549600
    (None, None) - (1970, 1, 1, 0, 0, 15, 53802, None) - 2549232
    (None, None) - (1970, 1, 1, 0, 0, 17, 30264, None) - 2549232
    (None, None) - (1970, 1, 1, 0, 0, 19, 6196, None) - 2549232
    (None, None) - (1970, 1, 1, 0, 0, 21, 131200, None) - 2549232
    (None, None) - (1970, 1, 1, 0, 0, 23, 73297, None) - 2549232
    (None, None) - (1970, 1, 1, 0, 0, 25, 84133, None) - 2549232
    (None, None) - (1970, 1, 1, 0, 0, 27, 61281, None) - 2549232
    

    This goes on for hours.
    Anyone have any ideas? What have i missed?

    Thanks,
    Andy



  • I can imagine you are confused and I'll update the docs. The antenna is switched using the SMA connector. There is an internal switch in the connector that detects whether an external antenna is connected and switches the signal from the internal antenna to the external one. Next to that, there is a jumper that supplies powers for active antennas.



  • Thanks for the answer Gijs, and you are right.
    It seems like the external active antenna dont work? Do i have to change anything in the code to activate it? i have it under clear sky but no fix.

    When i brought the hole kit outside i a got GPS fix pretty fast. I guess it's using the built-in gps?

    Thanks
    Andy



  • Hi,
    I think you have done everything correctly! The issue is probably related to a limited GPS signal received indoors.

    When I use my Pytrack 2.0 X inside, even with external antenna, it does not work, however once I step 1 foot outside, it seems like the signal is instantly (like, within 10 seconds) picked up, and we are located in a heavily industrial environment.

    Let me know
    Gijs


Log in to reply
 

Pycom on Twitter