Replies: 5 comments 3 replies
-
|
It looks to be in the app_advertise_prepare_handler() "if(wrk.msc.b.th_sensor_read) { // th sensor work" If this is false then no environmental sensing beacon it sent. When adding "set_adv_data()", it starts to beacon 0x181A again: However, even when the TH sensor is bad, it should still broadcast data since trigger flags and battery status are also in that beacon. |
Beta Was this translation helpful? Give feedback.
-
|
If the sensor is faulty, an empty beacon is transmitted, indicating a problem with the sensor. |
Beta Was this translation helpful? Give feedback.
-
|
I understand. That also means that the trigger and battery data is not being transmitted. I found some nice window/door sensors that work really well with your project, except this part is missing. |
Beta Was this translation helpful? Give feedback.
-
|
If it is not too troublesome I could imagine here in the code that it checks if any i2c sensor has been selected to be supported and if none has been selected it would send out a beacon anyway, so you would still get the data(and people could hack their existing devices and remove the TH sensor if they want to save some power and just need the reed functionality). In the app_config I disabled all USE_SENSOR_XXXX But I can understand if you don't want to go this route. |
Beta Was this translation helpful? Give feedback.
-
Events are transmitted by a separate program branch. This requires an SDK hack. Otherwise, there will be a delay equal to the beacon interval. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry to bother you again.
I have a bluetooth sensor which does not have an i2c thermometer but instead only I/O for switch input.
The configuration has been set like this:
#define DEV_SERVICES ( SERVICE_OTA\ | SERVICE_OTA_EXT \ | SERVICE_PINCODE \ | SERVICE_BINDKEY \ | SERVICE_LE_LR \ | SERVICE_RDS \ | SERVICE_KEY \ | SERVICE_TH_TRG \ | SERVICE_THS \ | SERVICE_LED \ )(Note: I cannot remove SERVICE_TH_TRG and SERVICE_THS because then it will not compile the code)
I got it as far that it is beaconing in adv type 0x09. I also see beacons when one of the key/reed switches is pressed.
However, I never see environmental sensor service data 0x1A18.
I also loaded a pre-compiled firmware just to check it's not me, but with that firmware it also does not broadcast 0x1A18 data.
It appears this data is not being sent when it cannot retrieve TH data. So then I also don't get the battery state and trigger states at regular intervals.
Still trying to wrap my head around why this is. In the code it is not obvious to me when trying to see what is happening.
Any idea why it is not broadcasting 0x1A18?
Beta Was this translation helpful? Give feedback.
All reactions