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

magic7music

New Member
Jun 18, 2020
3
0
berlin
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
 

Saftwerk

Member
Nov 20, 2012
24
0
Bavaria
Hallo magic7music,
wollte dich nur informieren, dass du hier deine Adresse Falkenstraße im Config file veröffentlicht hast.
Ich tippe lieber im TFF-Forum auf deutsch.
 

Orihau

New Member
Jun 21, 2020
1
0
Auckland
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.
 

bgrigoriu

Member
Aug 1, 2021
6
1
Croix (59170)/France
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 ?
 

ai4px

Wes
May 2, 2018
456
493
Sumter SC USA
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 ?
 

manuelknows

Member
Feb 27, 2018
5
1
Bay Area, CA
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?
 

bgrigoriu

Member
Aug 1, 2021
6
1
Croix (59170)/France
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?
 

nick_tassi

Member
Jan 10, 2018
45
5
Australia
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?
 

rickhuizinga

Member
Jul 16, 2019
31
9
Hawaii (Big Island)
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
 

miimura

Well-Known Member
Aug 21, 2013
6,580
6,387
Los Altos, CA
It also says that the functions marked with (*) "Vehicle software version 2021.36+ required"

The vehicle software with "the button" that just rolled out to many people this weekend is only 2021.32.22. So, we will have to wait a little longer to remotely adjust vehicle charging amps.
 

raffiniert

Member
Oct 28, 2014
23
179
Switzerland
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?
 

raffiniert

Member
Oct 28, 2014
23
179
Switzerland
Ok, thanks. Do you know what it happens to be in TWCManager? Say: should the above adapter work?
I just don't like plugged-in things which could be soldered. Over the years, a good solder joint is way more reliable.
 

sorro

New Member
Oct 8, 2021
1
0
melbourne, australia
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
[email protected]:59:04: C0 FC E1 77 77 77 00 00 00 00 00 00 00 00 46 C0
[email protected]: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
[email protected]:59:04: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
[email protected]: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
[email protected]:59:04: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
[email protected]: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.
[email protected]: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.
 

wooter

Nou ik heb niet te klagen over Tesla support
May 3, 2017
6,769
5,262
Belgium
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

ai4px

Wes
May 2, 2018
456
493
Sumter SC USA
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!
 

Products we're discussing on TMC...

About Us

Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.

Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


SUPPORT TMC
Top