PLEASE NOTE: If you had an account with the previous forum, it has been ported to the new Genetry website!
You will need to reset the password to access the new forum. Click Log In → Forgot Password → enter your username or forum email address → click Email Reset Link.
I think it was a cloudless day so thats not the reason for missing data. My graphs a bit small as I was using a spare esp and just looking at the entity data. Your graph looks great so if that's from the MSB then I have hope!
Appreciate the coding help. Will try and sort that out.
I did find some circuitry for isolating the esp from the MSB but then thought why bother? The esp cost $10 and I have many spare while the MSB is significantly more. Clumsy hands on the circuit breakers was the real issue.
I wonder if the software is smart enough to do a sort of wear leveling by spreading out the writes to different cells each time..
I'm not willing to test that! lol
I did find some circuitry for isolating the esp from the MSB but then thought why bother? The esp cost $10 and I have many spare while the MSB is significantly more. Clumsy hands on the circuit breakers was the real issue.
Well I hope you can fix the MSB.. It probably took out more that what I would call the pass though FET.
I wonder if the software is smart enough to do a sort of wear leveling by spreading out the writes to different cells each time..
Seriously doubt that.
I've detailed elsewhere my experience with "modern smart appliances" literally going senile due to worn-out EEPROM/FLASH. If they'd done wear-leveling, that wouldn't have happened.
Worth noting that it's more difficult to implement "wear leveling" in a small MCU due to the small memory available: the NUC029LAN only has 4KB of user FLASH.
Well I hope you can fix the MSB.. It probably took out more that what I would call the pass though FET.
Just bought a new one. Should arrive tomorrow. There was no smoke or noise when it died. Screen powers on for a second and then shuts down. Nothing obvious to look at so will use for parts. I can't use the 40A MSB as the panels are 1200W which will probably kill it. I'll use that for the 800W of panels I've yet to find a spot for.
Screen powers on for a second and then shuts down.
Almost sounds like a shorted FET, as if the gate-source region is shorted, the FET gate driver will basically deadshort the logic power supply when it tries to turn the FET on.
Try desoldering the FETs and see if it doesn't black out.
If that solves the black-out issue, then you know the FET driver is fine.
I thought I had it fixed, but no. I had tried checksum in the past but it didn't work. Added what Busky posted and it works. Go figure.
I still had some issues and then I recalled that during initial testing the returned data wasn't always 20 bytes. Often longer and not starting with 0xAA. So I changed the code to look for the first 0xAA and then read 20 bytes. This was working perfectly overnight but when the sun comes up it goes down the drain. Soon as the solar is over say 100W, interference drowns out everything. Data is mostly 0xFF and even the wifi struggles. Turn off solar and works again.
I'll try a short data cable but at this point I'm up against a wall.
I still had some issues and then I recalled that during initial testing the returned data wasn't always 20 bytes. Often longer and not starting with 0xAA.
The micro (I think it's the micro and not the wifi unit) Will spit out an ASCII sting every so often. I can't recall what it was... But it was something like "Wifi V119"
Bummer you are having other issues.
I don't suppose you have a Oscilloscope to look at the line. I would put the micro as close as possible. Mine is a couple inches away with my leads ~10" molex jumper wires. I do see Checksum error about 1 in 20-50. Infrequent enough that I don't care.
The micro definitely behaves differently when it's "busy"
You might even try an old ethernet cable hacked so you have a GND wrapped around the TX and RX..
Good luck!
I have a small DSO so might give it a try. Am using 2 core shielded. On the BMS I was using twisted pair from ethernet and had occasional interference. Just wrapping in the foil from the ethernet cured that. Still a few more options I can try🙂
The micro (I think it's the micro and not the wifi unit) Will spit out an ASCII sting every so often. I can't recall what it was... But it was something like "Wifi V119"
Busky, wondering if you can post a pic of your MSB and cabling? Doing a bit of reading and the most likely cause is switching noise from the mosfets. This gets superimposed on the cabling, generally solar inputs. It could be something simple as changing my cable layout.
I am using Five MSB v118 NO WiFi version . The last 2 MSB is from Aliexpress since the ebay seller is GONE .