This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT

Hi,

I am working on the asset_tracker application example on a Thingy:91 device. As I understand it, to activate the GPS it is necessary to keep the button pressed for a long time. Once active, the GPS could be activated by detecting a movement (using the accelerometer), but this happens when the GPS has been previously activated by prolonged pressing of the button.
However, I would like to make a modification that does the following:

1) The device is in sleep mode until it detects a movement.
2) When it detects a movement with the accelerometer it searches for LTE communication and activates the GPS automatically.
4) The device must have the GPS active and send position until a command is received (e.g. press the button).

I understand that it shouldn't be too complicated, but the tests I have done have not been satisfactory and I would appreciate any help.

Thank you!

Parents
  • Hi, 

    I'm running tests on my own while I'm waiting for your help. I also wanted to ask you the following to continue my tests:

    Working on the asset_tracker example in the main.c: when the following line appears
    #if IS_ENABLED(CONFIG_GPS_START_ON_MOTION)
    It is disabled, so the condition of  #if is considered not to be satisfied.
    However, it should be configured because in the file prj_thingy91_nrf9160ns.conf it is enabled.

    I would like to be able to activate the part of the code that runs with the condition :

    #if IS_ENABLED(CONFIG_GPS_START_ON_MOTION)

    because it might solve part of my problem.

    Thank you!

Reply
  • Hi, 

    I'm running tests on my own while I'm waiting for your help. I also wanted to ask you the following to continue my tests:

    Working on the asset_tracker example in the main.c: when the following line appears
    #if IS_ENABLED(CONFIG_GPS_START_ON_MOTION)
    It is disabled, so the condition of  #if is considered not to be satisfied.
    However, it should be configured because in the file prj_thingy91_nrf9160ns.conf it is enabled.

    I would like to be able to activate the part of the code that runs with the condition :

    #if IS_ENABLED(CONFIG_GPS_START_ON_MOTION)

    because it might solve part of my problem.

    Thank you!

Children
No Data
Related