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

Tesla Wall Connector load sharing protocol

This site may earn commission on affiliate links.
Saftwerk,
thanks for the answer.
Actually I´m using the SMARTPI made by the company Enerserve. They made a inteligent 3 phase meter with a raspi as base.
I would like to import the used or available power into the TWCManager.
I have a 2,6kW and a 1,2kW solar system on the roof. System 1 is connected to phase 1, System 2 is connected to phase 2 and the Tesla model 3 is hooked on phase 3.
All 3 phases are counted together at the power main metering.
The API link to the Smartpi has to be in the following format:
http://192.168.1.???/api/all/power/now where the all stand for the 3 phases.

the output looks like this:
{"serial":"smartpi170512345","name":"House","lat":52.3667,"lng":9.7167,"time":"2021-03-27 14:48:29","softwareversion":"","ipaddress":"192.168.1.3","datasets":[{"time":"2021-03-27 14:48:29","phases":[{"phase":1,"name":"phase 1","values":[{"type":"power","unity":"W","info":"","data":44.08615}]},{"phase":2,"name":"phase 2","values":[{"type":"power","unity":"W","info":"","data":108.678276}]},{"phase":3,"name":"phase 3","values":[{"type":"power","unity":"W","info":"","data":64.328445}]},{"phase":4,"name":"phase 4","values":[{"type":"power","unity":"W","info":"","data":0}]}]}]}

The underlined values are the ones I need. They have to be counted together.
If the value is negativ, that means,I have some power leftover to charge the car. In this example the total is 217,092874.

I run into the smartMe modul on the TWCM v1.2.1 that looks a little bit simular.
What do you think.
Is there a way to intigrate it??

many thanks and greetings from Berlin
 
H Compliance,

I figured this out also. By running it as python 3, modifying rc.local I got it working.

In addition I also got some code working to talk to my enphase system, and now I get actual house consumption (minus current charge) to work out total available amps. Worked great yesterday and today. :)
Hi Nick,

How did you connect to your Enphase System? They have changed the local authentication with a recent firmware update so I tried to get the Enlighten API to work but it does not seem to connect. I have set up the API keys etc.
 
Hi Nick,

How did you connect to your Enphase System? They have changed the local authentication with a recent firmware update so I tried to get the Enlighten API to work but it does not seem to connect. I have set up the API keys etc.
Hi Everyone,
I just bought my tesla and the charger and I am trying to make it work with my Solar enphase System. I read most of the post but it is still unclear to me how to connect TWC manager to he Envoy stream. DOyou have a more dteailed git or post somewhere ?
 
This thread is all about the GEN 2 HPWC... do you have a GEN 3 unit with wifi? I'm not sure there's anything for that one yet.
Hi Everyone,
I just bought my tesla and the charger and I am trying to make it work with my Solar enphase System. I read most of the post but it is still unclear to me how to connect TWC manager to he Envoy stream. DOyou have a more dteailed git or post somewhere ?
 
So the 6amp charge plug for me starts for a min, then stops for a min, then starts for a min......... And this is a never ending cycle.

RIght now at dark I plug in the car and it starts charging at 6amps for a min. Then shuts off for a min then starts again.
This happens to me when charging 2017 LR Model 3, but not 2016 Model S. The only way to stop this has been to stop the charge from the app until the next morning. Have you had any luck fixing this since posting?
 
This thread is all about the GEN 2 HPWC... do you have a GEN 3 unit with wifi? I'm not sure there's anything for that one yet.
Hi, I have indeed a Gen 3 TWC. Indeed all I read is about the Gen2. Few data available for gne 3 is only about monitoring. Does anyone has an idea where and how to dig for the Gen3 modalities for modulating charge current ? It is yer fully implemented in Gen 3 ? Any other thread for Gen 3?
 
I have been having a bit of trouble with it, and can only seem to get the follow solar charging working a few times before it stops. I have used both my modified code, and the code from ngardiner/TWCManager

Essentially a reboot fixes it, and then it stops again.

Also have trouble now signining in TWC (220days of lockdown here in Australia, and I have a charger at work, so don't use the home charger a lot).

Anyone else had issues with solar following with the TWC?
 
It's finally here: the API has been updated to allow for changing the charging current from the app!
SmartSelect_20210924-212003_Reddit.jpg
SmartSelect_20210924-211250_Facebook.jpg
 
I'll soon have time to finally setup the TWCManager for my TWC 2.0 (signature edition :)).
I'll need to use WLAN over some distance, so I'll try the Zero W and use the onboard u.fl-soldering pads to add an external antenna.
I have a big Fronius PV with Fronius inverters, so that should be easy.
I want to charge mainly during the day and use only direct solar power whenever possible, but I need to be able to switch to grid power for over-night charging when necessary manually. I understand this is already possible through the web-interface?

For the RS485-adapter, I intended to use this: https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-manuakl-en.pdf
Could anyone with more electronics knowledge comment if that should work? It says "half duplex", is RS485 normally full duplex?
 
Hi just let twcmanager loose on my wall charger. Very cool.

I have probably just done something silly here and hoping with some help I can sort it out so tips appreciated.

I am using a full duplex/4 wire adapter via RPi Zero usb port and with debug turned up I get the output below.

Code:
TWC Manager starting as fake Master with id 7777 and sign 77
15:59:04: Send master linkready1
Tx@15:59:04: C0 FC E1 77 77 77 00 00 00 00 00 00 00 00 46 C0
Rx@15:59:04: (00 FC) FC E1 77 77 77 00 00 00 00 00 00 00 00 46
15:59:04 ERROR: TWC is set to Master mode so it can't be controlled by TWCManager.  Search installation instruction PDF for 'rotary switch' and set switch so its arrow points to F on the dial.

The rotary switch is at position F (well the indents are not 100% lined up with the markings but I counted around from 8 which charges at 32 amp).

This repeats a few times then:

Code:
15:59:04: Send master linkready2
Tx@15:59:04: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
Rx@15:59:04: () FB E2 77 77 77 00 00 00 00 00 00 00 00 47
15:59:04: *** UNKNOWN MESSAGE FROM SLAVE:FB E2 77 77 77 00 00 00 00 00 00 00 00 47
Please private message user CDragon at http://teslamotorsclub.com with a copy of this error.
15:59:04: Send master linkready2
Tx@15:59:04: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
Rx@15:59:05: () FD E2 99 32 5B 0C 80 00 00 00 00 00 00 00 00 94
15:59:05: 32.00 amp slave TWC 9932 is ready to link.  Sign: 5B
15:59:05: Set slave TWC 9932 protocolVersion to 2, minAmpsTWCSupports to 6.
Tx@15:59:05: C0 FB E0 77 77 99 32 00 00 00 00 00 00 00 00 00 99 C0

My HPWC came with M3P in Jan 2020 so I am assuming it is gen 2.
 
Anyone knows more about this? I'm talking about this adapter: https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-manuakl-en.pdf

Or is there a way to directly contact "draconventions"? Is he a user here as well?
I'm afraid that's a specific adapter and if nobody is using it, you're out of luck on reviews.

I just got pretty much the cheapest RS485 USB adapter off amazon and works perfectly.

You can always reach out to the owner of the repo on Github by starting a discussion or issue, but the last commit on GitHub - dracoventions/TWCManager: Control power delivered by a Tesla Wall Charger using two wires screwed into its RS-485 terminals. has been 2 years ago.

One of the most active forks is GitHub - ngardiner/TWCManager: Control power delivered by a Tesla Wall Charger using two wires screwed into its RS-485 terminals.
 
  • Like
Reactions: raffiniert
RS 485 can be used full duplex but it is quite often setup for half duplex operation.
I think you are thinking of RS422.... RS422 has a transmitter on one pair and RX on the other pair. RS485 is semi-duplex (is that a word????) Multi drop and any device can acccess the line by checking to see if in use and asserting it. Usually there is a host that sends a query and that one device answers but multiple devices can "broadcast" a message at any time. Full duplex would mean that two stations could talk at the same time and tha'ts only true in RS422. cheers!