-
Notifications
You must be signed in to change notification settings - Fork 227
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
Issues with Reading Measurements from Flash on Android/Chrome #267
Comments
|
I'm having the same issue both from PC and from Android Chrome. Get last 50 values works great in the Flashing page, but when using the Memo Graph page it is both very slow and after getting the values as "Read Count" it only displays much less that the readed count. The displayed values varies. This is such a pity considering the Memo Graph page for the original firmware worked great and was able to read 4 months of values in just a few minutes. |
I have the same issue: "Get the last 50 records" works fine, but "Memo Graph" misses some starting records. I supposed the listener is not ready yet to listen Advertisments when the LYWSD03MMC starts sending data. The first "Count:" in console log depends on client: starts from 9 on my Windows PC and from 50-100 on Android. The following workaround helps for me: Delay on sending get-memo command
The necessary delay 3000 may be different for your devices. Sorry for my bad English, hope you could understand me |
minutes? Custom firmware, Read Memo, Adapter: CSR8510 A10, Windows, log Chrome : Old Android smartphone - about 30 seconds. There is a dependence on the speed of the BT adapter and the smartphone itself. |
Sorry my bad, reading is extremely fast, no issue there, it's the displaying that I'm having problem with. The Load value is inconsistent. Shouldn't the displaying phase or "Loading" phase to generate the graph just depend on the displaying machine, not the ATC device? Or its still syncing the readed values during the Load phase? I currently have 2700mv, could this be the issue? I've seen that reading the flash memory is one of the most current drawing operations from the test perfomed. |
The receiver acknowledges the transmission of each packet. If there is no confirmation, then the sender duplicates the packet and waits again (puts the battery down). And so on until the connection timeout occurs. It's a few seconds. The number of packets transmitted in a "connection interval" depends on the MTU size and BT version agreed upon by the receiver and transmitter. Firmware uses "connection interval" 20 ms. Sample: Read count: 19624, Read time: 19.276 sec |
Slow and old adapters greatly discharge the thermometer battery - they do not have time to confirm transmissions and there are constant retransmissions. I don't know what the behavior of the Chrome API and the BT adapter in Android is if the application does not have time to process received packets. And I can't influence it. |
I have similar issue and also a practical workaround. If I use Memo Graph, it is hard to establish connection. When connection is finally established in multiple attempts, datapoints are read but not all of them are loaded. Currently I miss last 20 datapoints from both of my thermometers quite consistently. If I open two Chrome Android tabs and connect with Flasher in one tab, then connect with Memo Graph, readout is done much faster, reliable and in full - all datapoints are read and loaded in graph. When using this method, initial icon for device in pairing window is different - BT icon instead of usual signal strength icon. Is there much bigger battery drain when using this approach? It is slowly becoming default for me as it works so well. Hope that helps as a practical workaround and perhaps as idea on how to do reliable readout in code if there is no big battery drain as a downside (perhaps option of connection method could be added?). Let me know if there is additional info that I could provide. Hardware Version: LYWSD03MMC B1.6, Software Version: 4.0, Sensor: SHT4x Thank you for great firmware, I'm really enjoying it. |
Use software version: 4.1 or read the Warnings in the README.md repository: |
Thanks for quick reply. Flashed 4.1 - unfortunately it didn't help. Battery is new (got first two new thermometers yesterday). Attempts in Memo Graph, FW 4.1:
If connecting with Flasher first as described in previous post, it works 100% of the time and incredibly fast (you can't even see the counter increasing, it just completes right away). Flasher also does auto reconnect so no messing around with that. |
I changed the code many times, but never managed to get connection stability in "Memo Graph". The main reason is that it works stably on my devices and I don't know what else to change there. |
Hi,
i have some issues with Reading Measurements from Flash on Android Chrome. With "Get the last 50 records" in "Flash"-Menu i get at the moment 48 velues, but in "Memo Graph" I get unreliable less values. One time 12, one time 17, one time 22, one time 19.
One time is says "Read count: 48" but afterwards "Disconnected, Load 2 samples"
On Windows Chrome it loades 49 samples.
Hardware Version: LYWSD03MMC B1.7, Software Version: 3.8, Sensor: SHT4x
Custom config: [173, 96, 0, 0, 40, 4, 169, 124, 49, 5, 60]
Any Ideas?
The text was updated successfully, but these errors were encountered: