You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/05/16 11:43:34 UTC

[GitHub] [incubator-nuttx-apps] diegoherranz opened a new pull request #717: hdc1008_demo: set intial measurement mode

diegoherranz opened a new pull request #717:
URL: https://github.com/apache/incubator-nuttx-apps/pull/717


   ## Summary
   No mode was set before the first read by the app.
   The first time the app was run, it worked properly, reading temperature and humidity on the first read(). But subsequent reads returned humidity only since that was last mode set up.
   
   First run of the app:
   ```
   nsh> hdc1008
   Temperature and humidity
   ========================
   data=20.54 56.9
   
   Temperature and humidity (ioctl)
   ================================
   t=20.54, h=56.9
   
   Temperature, 11 bit resolution
   ==============================
   data=20.78
   
   Temperature, 14 bit resolution
   ==============================
   data=20.69
   
   Humidity, 8 bit resolution
   ===========
   data=57.1
   
   Humidity, 11 bit resolution
   ===========
   data=56.9
   
   Humidity, 14 bit resolution
   ===========
   data=56.9
   ```
   
   Second run of the app:
   ```nsh> hdc1008
   Temperature and humidity
   ========================
   data=56.9
   
   Temperature and humidity (ioctl)
   ================================
   t=2684430.32, h=56.9
   
   Temperature, 11 bit resolution
   ==============================
   data=20.71
   
   Temperature, 14 bit resolution
   ==============================
   data=20.72
   
   Humidity, 8 bit resolution
   ===========
   data=57.3
   
   Humidity, 11 bit resolution
   ===========
   data=56.9
   
   Humidity, 14 bit resolution
   ===========
   data=56.9
   ```
   
   ## Impact
   hdc1008 app only
   
   ## Testing
   Tested on custom board.
   Now, every run of the app returns temperature and humidity on the first read
   
   ```
   nsh> hdc1008
   Temperature and humidity
   ========================
   data=20.94 56.0
   
   [...]
   
   nsh> hdc1008
   Temperature and humidity
   ========================
   data=20.97 55.9
   [...]
   ```
   
   Thanks!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] acassis merged pull request #717: hdc1008_demo: set intial measurement mode

Posted by GitBox <gi...@apache.org>.
acassis merged pull request #717:
URL: https://github.com/apache/incubator-nuttx-apps/pull/717


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] acassis merged pull request #717: hdc1008_demo: set intial measurement mode

Posted by GitBox <gi...@apache.org>.
acassis merged pull request #717:
URL: https://github.com/apache/incubator-nuttx-apps/pull/717


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org