This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How i can get sensor values in tera term without connecting to any mobile app ?

Hi,i'm using the nRF51822 with the IMU 9150 sensor, i'm using the github.com/.../nrf5-mpu-examples git repo for my sensor. while i try to read the values of sensor in Tera Term it will shows the values only after i connected through the mobile app (nRF Toolbox or nRF Connect). Here my requirement is without connecting to app i want the sensor values in Tera Term how i can achieve that, please any one can tell what changes do i need to make to break the relation between the Tera Term values and mobile app connection....

Thanks in advance..

  • Hi,

    The sampling and printing of accelerometer data is controlled by the timer with the timer id m_timer_accel_update_id. This timer is started when you connect to a device. This happens on the BLE_GAP_EVT_CONNECTED event in on_ble_evt() (line 272 in main.c in the current code). If you put this line somewhere into main() instead, after you have initialized the timer, it should sample and print values from the beginning. Note that the timer is stopped on a BLE_GAP_EVT_DISCONNECTED event so you might want to remove line 278 as well.

  • Thank You Martin Børs-Lind,its working.

Related