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

Thingy:91 Trying to disable BME680 sensor in Zephyr

I'm building an LTE device that only needs the GPS, LTE, motion, and button.

I'm trying as the first step to disable all the sensors that are not needed so that I don't send unneeded data to the cloud. Latter will have to eliminate their FW code from the project.

I could successfully eliminate the light sensor data using Configure nRF connect SDK project GUI and the GPS and everything else works fine, but when I tried to disable the BME680 sensor from Zephyr Kernel I had a strange situation where the GPS is not sending to the cloud and the button although I did not touch them in the GUI.

Best Regards,

HeTsH (Hesham) 

Parents
  • Hi.

    Could you share your prj.conf file (assuming that is where you have made changes to the asset_tracker application)?

    By default, the GPS is started if you press the button for 10 seconds, or if you move the Thingy.

    If you still have the button enabled, you could try to hold it, and see if that starts the GPS. But, as you want to disable to button as well, you will have to modify the code so that it starts the GPS based on another criterion.

    The easiest way to do that is to set CONFIG_GPS_START_AFTER_CLOUD_EVT_READY=y. This option (in the asset_tracker application) is disabled by default, but if enabled it will start the GPS automatically as soon as the device is connected to nRF Cloud.

    Best regards,

    Didrik

Reply
  • Hi.

    Could you share your prj.conf file (assuming that is where you have made changes to the asset_tracker application)?

    By default, the GPS is started if you press the button for 10 seconds, or if you move the Thingy.

    If you still have the button enabled, you could try to hold it, and see if that starts the GPS. But, as you want to disable to button as well, you will have to modify the code so that it starts the GPS based on another criterion.

    The easiest way to do that is to set CONFIG_GPS_START_AFTER_CLOUD_EVT_READY=y. This option (in the asset_tracker application) is disabled by default, but if enabled it will start the GPS automatically as soon as the device is connected to nRF Cloud.

    Best regards,

    Didrik

Children
No Data
Related