[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit afd861b3f3f9d0bed22117e461db45aa70c796b6 in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=afd861b ]

Merge pull request #258 from vrahane/MYNEWT-744

MYNEWT-744 SensorAPI: improvements

> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit 14c9c7abac7db73563bf0eb5fb61c26aca4da287 in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=14c9c7a ]

MYNEWT-744 Sensor imp remove dead code in app


> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit afd861b3f3f9d0bed22117e461db45aa70c796b6 in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=afd861b ]

Merge pull request #258 from vrahane/MYNEWT-744

MYNEWT-744 SensorAPI: improvements

> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit dff99ac72513431e0b2ec283a73b6603bd93275f in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=dff99ac ]

MYNEWT-744 Sensor imp, OIC gyro


> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit 1437e4951a229e73cb830c838d5633b5fd5aae21 in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=1437e49 ]

MYNEWT-744 remove unused code


> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit 1341ed45f2851e6f69c380ba53e284db954f7beb in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=1341ed4 ]

MYNEWT-744 Sensor imp gyroscope fix

- Gyroscope data structure was not defined, hence the data was not seen


> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit 7ffb3408e9049498e1dee656e049a440da77e00a in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=7ffb340 ]

MYNEWT-744 Sensor imp cfg, types and other changes

- Add default cfg for the external sensors in the creator package so
  that all the sensors on the sensor device get initialized
- Add a mask field to the sensor structure so that differentiating
  between supported Vs configured sensors is possible
- Change the sensor_mgr_match_bytype() function to check w.r.t mask.
- Adding config variable for mask for different drivers in their
  respective structures.
- Adding an API to set the sensor types based on the mask.
- Moving config_sensor() out of the app into the creator package and the
  bsp. Objective is to show how a developer would initialize and configure the
  sensor in the bsp which is normally the practice.
- Changing sensor_shell command "list" to show only configured types.
- sensor_shell cmd "type" shows supported types by the driver.


> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit d3e3cfc0f2a94bb8317607e1e29328841730544e in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=d3e3cfc ]

MYNEWT-744 Add missing comments and remove get itf


> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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


[jira] [Commented] (MYNEWT-744) SensorAPI: improvements

2017-06-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on MYNEWT-744:


Commit b480aa4f124eab90a9f86642a511e22eebbb5773 in incubator-mynewt-core's 
branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=b480aa4 ]

MYNEWT-744 Sensor imp, change device name

- Change device name in app to be sensy


> SensorAPI: improvements
> ---
>
> Key: MYNEWT-744
> URL: https://issues.apache.org/jira/browse/MYNEWT-744
> Project: Mynewt
>  Issue Type: Improvement
>  Security Level: Public(Viewable by anyone) 
>Reporter: Vipul Rahane
>Assignee: Vipul Rahane
> Fix For: v1_1_0_rel
>
>
> - Change data structure to SLIST instead of TAILQ so that it can get 
> initialized statically. This is needed so that sysinit could be used for 
> initializing the sensors.
> - Remove dummy functions in the bsp and add the sensor device initialization 
> functions instead.
> - Adding syscfg based configuration for onboard Vs offboard sensors
> - Adding sensor creator package for creating external sensor devices if they 
> are not on the board itself. This is just for convenience sake. The right way 
> to do this would be from the bsp. As a result, removed sensor device creation 
> from nrf52dk and nrf52840pdk bsps.
> - Add sensor interface struct so that it can get used by the individual 
> drivers so that we can talk to multiple sensors using the same driver using 
> same or different interfaces.
> - For TSL2561, apart from the above changes, various fixes were made:
> 1. Making a few changes to this driver along with sensor_itf changes
> 2. Gain, integration time and enabled flag was a global instead of 
> reading every time gain is set or integration time is set. Changing it so 
> that we read the timing register before setting either gain or integration 
> time.
> 3. Also changing a few functions in the driver to handle errors more 
> gracefully. Changing shell to work with new functions.
> 4. Making changes so that it goes in synch with the drivers.
> 5. Removing delays from the read function. the poller should be set 
> according to the other config values being set so that the sensor is read at 
> the correct interval.
> - Add a mask field to the sensor structure so that differentiating between 
> supported Vs configured sensors is possible
> - Change the sensor_mgr_match_bytype() function to check w.r.t mask and make 
> it a public API.
> - Adding config variable for mask for different drivers in their respective 
> structures.
> - Adding an API to set the sensor types based on the mask.
> - Moving config_sensor() out of the app into the creator package and the bsp. 
> Objective is to show how a developer would initialize and configure the 
> sensor in the bsp which is normally the practice.
> - Changing sensor_shell command "list" to show only configured types.
> - sensor_shell cmd "type" shows supported types set by the driver.
> - In the sensor_oic source file changing code to check type only while 
> allocating resources.
> - Changing device name in the sensors_test app to be "sensy" instead of "pi"
> - For the LSM303DLHC driver the address field in the "sensor_itf" structure 
> is not enough since it talks to the sensor using two addresses: one for 
> accelerometer and one for magnetometer. The best way to deal with this is to 
> make the addresses config variables in the sensor driver structure. For any 
> such sensor devices which have multiple addresses, a similar approach should 
> be followed.
> - Have changed the drivers to work with all the fixes mentioned above.



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