Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

Tesla now logging AC waveform from charger

This site may earn commission on affiliate links.

Ingineer

Electrical Engineer
Aug 8, 2012
1,517
3,741
In the most recent software versions, (2.17.X) I've noticed Tesla has added a new function that records the AC waveform during charging. Here's an example of the data graphed:

pic


The data is stored on the Gateway's 4G SD card located in the MCU. Each file appears to contain three 2.6k 16bit samples of approximately one cycle of the AC waveform.

It's not clear if these are being recorded when there is a disturbance, at regular intervals, or both. The files are named as hex versions of the UNIX timestamp and located in a directory called CHG_WVFM.

Pretty neat though!
 
The charger submodules all sample input voltage. All that has to happen is the gateway read these over CAN and record them to it's SD card. It doesn't need anything added except for software.
 
The charger submodules all sample input voltage. All that has to happen is the gateway read these over CAN and record them to it's SD card. It doesn't need anything added except for software.

That makes sense - provided they are sampling the voltage at a high enough rate to show the curve shape (which you just proved they are, of course. In my ignorance I would have assumed the power was just rectified into DC and then smoothed and boosted to battery voltage, none of which requires such detailed sampling of input AC line voltage that I can see.