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.

Notifications
Clear all

Data logging

139 Posts
16 Users
1 Likes
2,538 Views
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 

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.


   
ReplyQuote
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 

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.


   
ReplyQuote
(@busky)
Trusted Member
Joined: 4 years ago
Posts: 83
 
Posted by: @sid-genetry-solar

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


   
ReplyQuote
(@busky)
Trusted Member
Joined: 4 years ago
Posts: 83
 
Posted by: @ellcon123
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.


   
ReplyQuote
(@sid-genetry-solar)
Member Admin
Joined: 4 years ago
Posts: 2883
 
Posted by: @busky
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.


   
ReplyQuote
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 
Posted by: @busky
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.


   
ReplyQuote
(@sid-genetry-solar)
Member Admin
Joined: 4 years ago
Posts: 2883
 
Posted by: @ellcon123
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.


   
ReplyQuote
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 

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.


   
ReplyQuote
(@busky)
Trusted Member
Joined: 4 years ago
Posts: 83
 
Posted by: @ellcon123
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!

 


   
ReplyQuote
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 

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🙂


   
ReplyQuote
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 
Posted by: @busky
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.

16785703675982636625945127456248.jpg


   
ReplyQuote
(@busky)
Trusted Member
Joined: 4 years ago
Posts: 83
 

I'm almost embarrassed to show this!! Here is my "temporary" setup! (For over a year! 😲)

PXL_20230311_213611692.jpg


   
ReplyQuote
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 

It's neater than my setup! Playing around this morning and my biggest issue is actually losing wifi to the esp. I also disconnect ground so only tx/rx connected to esp and data is cleaner. At least when I can connect.16785795181877851230325124612930.thumb.jpg.aea69df8262b7ecd51ca00dd18a2acc7.jpg


   
ReplyQuote
(@dickson)
Noble Member
Joined: 4 years ago
Posts: 1048
 

I am using  Five  MSB v118  NO WiFi  version  .   The last 2 MSB is from Aliexpress  since the ebay seller is GONE .  


   
ReplyQuote
(@ellcon123)
Eminent Member
Joined: 2 years ago
Posts: 49
 

Bought my 4 on ebay. Last one was last Monday and delivered Friday. A little bit of success. I tried a short usb cable but this one had the ferrite filter which I left on. Seems to work. I slipped a beed on the other non-usb cable and things improving. Wifi is still an issue though.16785953389323111206418182624957.thumb.jpg.51c4faf96b703b1f23e6ab5c8311961d.jpg


   
ReplyQuote
Page 8 / 10