-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT-topics at the same time? undecoded and decoded messages? #1375
Comments
dito, Frohes Neues @DigiH (and the World outside) 😄 🚀 yeah, you are right about a little confusion. but, maybe my demand was only a little bit unclear?
i will study the BLE-usage-Page if my confusion comes from some inattention and overlooking, that this is already the case after activating the externel-decoder option i was also wondering, why espresence shows up the name of some devices (like appe-pencil and the toothbrush XMI), but on first sight they are missing in OMG. maybe the name-request is missing in OMG? (only wild guesses, but i think a developer can better decide than me, if thats a misunderstanding of some functionality or maybe a missing feature |
The topic is always the MAC address, but to always get the additional raw manufacturer/service-data included in the decoded messages it is the two known*data options which need to be set to true. The undecoded option really is only for not decoding any data on an ESP32 at all, but to send undecoded messages to a central gateway for decoding there. |
Great, thanks. i understand that |
no problem to set one filter over all the MQTT-topics starting with the MACs. trying some OMG-options came from my hunt for some devices missing in OMG, but showing up in ESPRSENCE. |
From your animated gif it looks as if espresense has continuous scanning, whereas your OMG gateway likely has the default 10 seconds scan window every 55 seconds. Which might lead to some devices only being recognised after a while, depending on their broadcast interval. You could try OMG with the build flags
for it to also have continuous scanning - re: https://docs.openmqttgateway.com/use/ble.html#setting-the-time-between-ble-scans-and-force-a-scan Assuming that both gateways are in the same location and at the distance to all the devices, it could also be that there is a difference in the MinimumRSSI setting Best to then compare the MAC addresses to see if and which devices might be different or just being reported differently - e.g. where is the OMG recognised Stratos MAXO in the espresense list? While the approach and usage scenarios for both gateways are quite different, on my side I seem get all my devices in both. |
For me the interesting question with your animation above is: How many of the seven devices listed under the OMG gateway which are not Apple Continuity braodcasts, i.e. which do not have manufacturerdata starting with "4c00…", do NOT have decoded info along with their manufacturer/service-data, and are therefore unknown devices to Decoder and could possibly be added with decoders for them? |
two settings do tweak on OMG: 1.1) 🔴 not done. -> is there a mqtt-command to set the "Scan_duration" on runtime, or only configurable as build-flag?
so i followed the OMG-documentation for "all devices":
an Acknowledgement for command/changes on MQTT would be nice. edit: fount it on another topic: now i will oberve the effects an report later |
Answer attached:
|
Currently this is only settable as a build flag.
I'm afraid you got confused here between the interval between two scans (TimeBtwRead) and the BLE Scan Interval, which is named as such on both platforms. To be honest though, your wrongly assumed 128 ms doesn't make that much difference to the suggested 1 ms. There still was some intention behind giving you the values for the default continuous scan environment. ;)
Not quite sure if I understand this question fully, and to whom it is directed. For OMG we can see "VS9-EU-…" with only the name but no apparent manufacturer- or service-data. But I'm also lost now as to what the remaining issue here is. The original issue and its heading about raw (undecoded) manufacturer- or service-data being displayed along with the decoded info should have been addressed with the known data flags. So through OMG you get decoded messages for your GAEN broadcasting devices and two SwitchBot Meters. If possible inclusion and decoding of these devices is the goal, could you create separate issues for each of them in the Theengs Decoder repo, as the reverse engineering of the encoded data is very individual. |
long thread, should end sometimes, youre right. last things:
so i understand that is only changeable by buildflag '-DScan_duration=1000' .
True! That proofs that OMG is showing devices with name only. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Is your feature request related to a problem? Please describe.
is it possible to get the "undecoded"-topic together with the decoded messages?
i activated the command for "undecoded" data. but decoding stops as expected.
https://docs.openmqttgateway.com/use/ble.html#advanced-setting-up-an-external-decoder
Describe the solution you'd like
would love too have both topics sending in parallel
Describe alternatives you've considered
fiddling in the source myself. but not really.
Additional context (historic data-snapshot, in realworld only one shows up)
The text was updated successfully, but these errors were encountered: