10-24-2020 05:11 PM
Hello,
I'm porting BSEQ to nrf52, cortex M4F. The library has fine SPI configuration. I import config from generic_33v_3s_28d, I init setup at BSEC_SAMPLE_RATE_LP.
All the init is fine. Every function works fine and returns BSEC_OK. All measurement are fine at 3seconds+-2ms.
I'm based on bseq_integration demo. I get good temperature/humidity/pressure...but not IAQ/SIAQ/CO2_eq...etc...
Values are read fine, including gas resistance.
But IAQ stays at 25 even after an hour of test.
I can't debug check what's happening in bme680_bsec_process_data, but it returns BSEC_OK too.
I'm quite lost, what should I check to go further?
Solved! Go to Solution.
10-28-2020 10:17 AM
I would also like to add, after 300seconds, bsec buffers. I cannot use them to deduct anything, but maybe you can.
work buffer:
08 00 0A A5 AC 50 BA 41 00 00 00 00 00 00 00 00
00 8D 8F 48 01 00 00 00 2C 01 14 14 00 00 00 00
00 00 00 00 00 00 03 00 18 A8 5F 3F 14 A5 A5 A5
A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
...(0xA5 in loop until last 2048th byte)
bsec_state:
00 08 04 01 3D 00 00 00 00 00 00 00 73 00 00 00
2D 00 01 A5 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 2C 01 14 14 00 00 00 00
00 00 00 00 00 00 03 00 18 A8 5F 3F 14 0C 00 02
A5 00 00 C8 41 00 00 C8 41 10 00 03 A5 38 A7 9D
40 4B BD B9 41 52 B0 32 42 16 00 05 A5 2F 88 04
00 00 00 00 00 00 00 00 00 00 8D 8F 48 01 00 0C
00 09 A5 2F 88 04 00 00 00 00 00 08 00 0A A5 AC
50 BA 41 A5 A5 A5 A5 C4 91 00 00
10-28-2020 11:08 PM
Hello Hugo,
Your input looks okay.
If you just multiply 100 after library function, you should get right IAQ value unless library has problem.
Could you share your code with me? I will check it in detail.
Thanks,
10-28-2020 11:54 PM
Thanks for your message. I can"t share my personnal code in public, and without specific board, you cannot test it.
There is 2 things to check: input, and if input are not enough: init.
My init functions are on buttom of my second post, as requested, on the 1st page. There is no error detecting from processor side when running.
Especially you will find:
return_values_init bsec_iot_init()
calling
static bsec_library_return_t bme680_bsec_update_subscription()
I can't share content of bme680_bsec_process_data, as I don't know what's inside. All what I see is smart data such as IAQ stays at 25.00 or 0.00, as if something just ask to to process.
11-12-2020 07:14 PM
just to say the answer was just simply I didn't use ns in bme680_bsec_read_data. So data were read fine, but the soft sensor did consider I didn't spend enough time to update bsec datas.