Jan Dittmer
Jan Dittmer
I noticed this behavior because I changed my AnalyticsManager and loggly library to log events to Nightscout instead of 3rd party resources (with a custom eventType). Those sources will actually...
One bug in the code is that sometimes jkabstractprotocol is_record_complete is not terminating if the record is corrupt. handleNotification in jkBleDelegate will then just spin and read data. Not sure...
The real problem being obviously that the BMS keeps sending these packets. Not sure how to stop it - disconnect? The data I get repeatedly is this packet bytearray(b'U\xaa\xeb\x90\x02!\xc9\x0c\xc9\x0c\xc9\x0c\xc9\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xcb\x0c\xc9\x0c\xcb\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\xca\x0c\x02\x00\x04\x00N\x00P\x00T\x00X\x00`\x00e\x00f\x00d\x00e\x00d\x00d\x00d\x00e\x00`\x00Z\x00T\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa5\xcc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xdb\x00\xdd\x00\xf3\x00\x00\x00\x00\x00\x00\x1c\xd5:\x01\x00\xc0E\x04\x00\x00\x00\x00\x00\xb8\x05\x00\x00d\x00\x0b\x06&G\x05\x00\x00\x00\xf6\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x01\x00\x00\x00\x0f\x04\x00\x00\x00\x00\n\x05@@\x00\x00\x00\x00\xd9\x03\x00\x00\x00\x00\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x003')
I guess the main thing missing here is to figure out what the last 10 bytes of the command mean? Presumably some kind of crc and maybe frame numbers? It...
On further investigation this investment is probably not necessary. I'm able to replay the commands and change the values in the BMS. I tried this with the balancer start voltage:...
Attached is the proof of concept to set the balancer start voltage: [jkbleio_write_cmd.py.txt](https://github.com/jblance/mpp-solar/files/7185364/jkbleio_write_cmd.py.txt)
I think the error checking in Read_Memory should actually be done per packet which should give a more robust model. My proposed fixes for this would be https://github.com/trixing/LimiTTer/commit/5cb9caf37c167098ec83bd5d51a693a61d57de51 https://github.com/trixing/LimiTTer/commit/5b54b0b063502964f575c4c9f02a2f7c18278726 Let...
Currently it seems to be disconnecting after each data packet, and not stay connected (like the App). Any theory what's missing for this?
Are you using multiple devices by any chance? https://github.com/ecc1/gnarl/commit/cce3d24db2213d42e490335cdb40e1992581775f comes to mind if no commands are sent through GNARL it will reset.
You could try reverting the commit (ie. disable the watchdog) to narrow down the problem.