[ 
https://issues.apache.org/jira/browse/MYNEWT-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982235#comment-15982235
 ] 

Vipul Rahane commented on MYNEWT-739:
-------------------------------------

After investigating more,  I found out the reason why this was failing. It was 
the app and not the sensor framework or the sensor shell. The initializing of 
the sensor was failing and so rest of the sensors weren't getting added to the 
list. The app decided not to go ahead with initializing other sensors if the 
first one it found was failing, it is not about any default sensor. Having said 
that, I am willing to change the app with whatever improvements we want. I am 
keeping this ticket and renaming it to indicate app clean up which we can use 
towards making any modifications to incorporate cosmetic/behavioral changes to 
the app itself. 

Also, the syscfg file for the sensors test app is doing something specific 
based on which sensors are present. In this app we are assuming that BNO055 and 
TCS34725 sensors are present and hence the syscfg setting BNO055_PRESENT and 
TCS34725_PRESENT are set.

> Sensor list shows only default sensor 
> --------------------------------------
>
>                 Key: MYNEWT-739
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-739
>             Project: Mynewt
>          Issue Type: Bug
>          Components: drivers
>         Environment: nRF52dk with Adafruit BNO055 sensor and Minicom
>            Reporter: Sheela
>            Assignee: Vipul Rahane
>             Fix For: v1_1_0_rel
>
>
> Built code from the tip to include Sensors.  Connected Adafruit BNO055 via 
> I2C interface to nRF52dk.  Modified Syscfg to "nrf52_sensor 
> syscfg=BNO055_I2CBUS=0:I2C_0=1" for the BNO055 sensor.
> Using sensors_test, issued 'sensor list' command which yielded "sensor dev = 
> color0, type = 0x8000 " as result.  
> Noticed that in syscfg the "TCS34725_PRESENT" was also set to '1' by default 
> and 'sensor list' automatically shows only that sensor.  
> sensor list should show all the sensors that are configured.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to