I found several threads with same questions. And also found source codes. But they are too old and require Legacy support for KEIL and old softdevice. Is there actual source code for NRF51822 which uses latest softdevice?
I found several threads with same questions. And also found source codes. But they are too old and require Legacy support for KEIL and old softdevice. Is there actual source code for NRF51822 which uses latest softdevice?
Did you try this one: nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\ble_app_hts?
No I didn't try. But I think they are not compatible. Firmware uses temp sensor simulator. Where defined
#define MIN_CELCIUS_DEGREES 3688
#define MAX_CELCIUS_DEGRESS 3972
You can see comments and find out that it mean min and max temp 36.88 and 39.72 degree. But here play.google.com/.../details in nrf Temp screenshots you can see temperature values about 24...26 degree. Thats why I think it's not compatible. But your link is very useful for me. Earlier I thought that _hts abbreviate relates to something like heart rate... Now I found HTM (Health thermometer monitor) in nrF Toolbox. I guess it must be compatible. Will try it.
I am using china board BLE400. I work with it earlier. It works fine with nrf UART app and corespond firmware.
Now I customize buttons for ble_app_hts. I am able to connect from nRF Toolbox, but it doesn't shows temperature and battery level. In KEIL debugger I see that err_code = ble_hts_measurement_send(&m_hts, &simulated_meas); performs when I press button and it returns 0. What means everything is correct. Why app doesn't shows temp?
Did you use a sniffer to check if the measurement is indeed sent on air?
As I know I have to use original Nordic development boards for sniffer. I don't have it. So I can't use sniffer. Isn't it?