-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No slave TWCs found on RS485 network. #16
Comments
Not sure if exactly identical, but the issue I had previously was similar in the sense that my TWC Master (the raspberry pi 3B+) had sent all the linkready messages but received zero response. I later found out my issue to be a faulty USB - RS-485 cable. Swapping to a new one worked like a charm. For reference, the new cable is the 1.8m variant of this model: I connected the orange end to D+ IN, yellow end to D- IN, and taped the other ends with electrical tape. If you can't somehow verify that your RS-485 cable is working properly (with an oscillloscope probe to decode RS-485 signals, for example) then maybe grab a new cable instead? |
At this stage, any idea can be a good idea to test. Nevertheless, I already ordered another USB - RS-485 device and will see when I will receive it. Thanks for your help. |
No worries! Your voltage seems to be working perfectly fine, actually - attached is an oscilloscope output of my cable capturing linkready2 perfectly - as well as showing a max V value of ~2.24V. Spot on! You should ONLY need the orange (D+ IN) and yellow cables (D- IN), though - the others are not necessary and should be insulated somehow so that it wouldn't short and/or interfere with other important circuitry in your wall charger.
My cable blinks green/red LEDs on the USB port end twice when connected. When the python script is started, red blinks signify Tx (so it blinks maybe nine times for the linkready messages), and green blinks signify Rx, so if your TWC slave and pi is set up properly, you should be able to see green blinks, which means that the pi is indeed receiving RS-485 responses from the TWC slave. If you do not get the red LED blinks on the USB cable when you start the python script, make sure the rs485Adapter variable in your TWCManager.py code points to the right device ('/dev/ttyUSB0' usually, run la /dev on Raspbian CLI to verify the name) TL;DR your cable seems fine afaict, but insulate other cable ends, check D+ and D- connection, check rotary selector is indeed on "F", and lastly check your code. |
Hello, I have a cable run of 25m (Shielded Cat5e) between my py and the TWC. |
I followed the instructions and when I open the browser to the IP adress, I have these messages:
Power available for all TWCs: None
No slave TWCs found on RS485 network.
The rotary selector of my Wall connector is set to "F" slave.
I have the top green led on and a 4 time flashing red led.
The user manual say: Circuit Breaker Sharing Network:
More than one Wall Connector is set to Master.
Set one of the Wall Connectors to Slave.
This is the code I have when I execute the TWCManager.py:
TWC Manager starting as fake Master with id 7777 and sign 77
22:48:49: Send master linkready1
Tx@22:48:49: C0 FC E1 77 77 77 00 00 00 00 00 00 00 00 46 C0
22:48:49: Send master linkready1
Tx@22:48:49: C0 FC E1 77 77 77 00 00 00 00 00 00 00 00 46 C0
22:48:49: Send master linkready1
Tx@22:48:49: C0 FC E1 77 77 77 00 00 00 00 00 00 00 00 46 C0
22:48:49: Send master linkready1
Tx@22:48:49: C0 FC E1 77 77 77 00 00 00 00 00 00 00 00 46 C0
22:48:49: Send master linkready1
Tx@22:48:49: C0 FC E1 77 77 77 00 00 00 00 00 00 00 00 46 C0
22:48:49: Send master linkready2
Tx@22:48:49: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
22:48:50: Send master linkready2
Tx@22:48:50: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
22:48:50: Send master linkready2
Tx@22:48:50: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
22:48:50: Send master linkready2
Tx@22:48:50: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
22:48:50: Send master linkready2
Tx@22:48:50: C0 FB E2 77 77 77 00 00 00 00 00 00 00 00 47 C0
Can anyone help me on this.
Thanks.
The text was updated successfully, but these errors were encountered: