April 23, 20197 yr HI, I seem to have bricked my Carlo Gavazzi ET112 by changing the baud rate on it to 115200 using their UCS software. I can no longer connect to it whatever I try and there are no controls on the unit to factory reset it. Someone from CG is trying to help me but I think they have no useful suggestion. So I might have to replace it. I don't want to get into the same situation so I want to replace it with an EM112 rather - the one with the touchscreen display. Does anyone know where to get one from a South African supplier? Thanks.
April 23, 20197 yr I don't know your python/linux skills, but attached is a script you can use to poke at it. Just change the hardcoded baudrate on line 10 to 115200. Then you can run it like so: python modbusrtu.py /dev/ttyUSB0 write 0x2001 1 1 That sets register 0x2001 to 1 (presently it should be set to 5). And should restore it to 9600 baud rate. modbusrtu.py
April 23, 20197 yr Author 9 minutes ago, plonkster said: I don't know your python/linux skills, but attached is a script you can use to poke at it. Just change the hardcoded baudrate on line 10 to 115200 Hi, I'm a competent Python programmer and much more at home on Linux than anywhere else. Thanks for the code - I did write a script using MinimalModbus and couldn't get anything out of the meter, but I'll give yours a try too. Thanks!
April 23, 20197 yr 28 minutes ago, Elbow said: Thanks for the code - I did write a script using MinimalModbus and couldn't get anything out of the meter, but I'll give yours a try too. Try different baud rates. The supported ones are all shown above. Let me tell you about my day. Well, it's been a few days. Customer has this site where the Multi on L1 is compensating for the power on L3, and vice versa. I plot the power against each other and I get this: But swapping L1 and L3 causes the Multi to ignore the AC input (cause now the phase rotation is wrong). Eventually I get "hond se gedagte" as we say in Afrikaans, first a detour to the protocol manual... The meter maker helpfully added a register to make phase-swapping easy (because phase rotation is a common problem... apparently), and lo and behold, it is set to 1. No idea how that happened...
April 23, 20197 yr Author 1 hour ago, plonkster said: The meter maker helpfully added a register to make phase-swapping easy (because phase rotation is a common problem... apparently), and lo and behold, it is set to 1 Haha-grrr. It took how long to find that? On my side I took a proper read through the docs and I see I can send some stuff to "any listening device" so I might try that to reset the modbus address and the baud rate and see if I can win. Edited April 23, 20197 yr by Elbow
April 23, 20197 yr 1 minute ago, Elbow said: Haha-grrr. It took how long to find that? I rely heavily on memory... when I forget something crucial... such as an obscure register that is rarely used... well it takes hours or even days. Grasping at straws, finally thinking further than the usual.
April 23, 20197 yr Author 3 hours ago, plonkster said: I don't know your python/linux skills, but attached is a script you can use to poke at it. Just change the hardcoded baudrate on line 10 to 115200. Then you can run it like so: python modbusrtu.py /dev/ttyUSB0 write 0x2001 1 1 That sets register 0x2001 to 1 (presently it should be set to 5). And should restore it to 9600 baud rate. Hi @plonkster, Tried everything I could think of with the code you kindly provided. But without success. I modified it so I could pass baud rate and unit number on the comand line I attempted to read register 0x0 from every unit number 1 through 247 at various baud rates. Checking the CG modbus docs I tried using the "broadcast write single register" with "python ./modbusrtu.py /dev/ttyUSB0 115200 write 0 0x2000 1 1". 0 being the "broadcast" unit number. Same for 0x2001 to try to get the unit number back to 1 in case it changed and baud rate back to 9600. Each time I tried to read register 0x0 at various rates with no response. Tried terminators at both, one and neither ends, tried the A/B both ways. So I'm frustrated now. I'm going to wait until the official Victron cable arrives from Sonop and then I'll pick it up again. What's your experience with that cable? Do I need a 120 ohm terminator at the PI end? Do I need the jumper for termination at the meter end? My cable is Cat5E and about 10m long.
April 23, 20197 yr 1 hour ago, Elbow said: What's your experience with that cable? Do I need a 120 ohm terminator at the PI end? Do I need the jumper for termination at the meter end? My cable is Cat5E and about 10m long. I have no termination on any of my meters. I have 4 of them, an EM24 in my home DB, and ET112 in the test bench, and another EM340 and EM24 in a second test setup. Short cable runs... 2 meters at most. No termination on any of them... BUT... I run them at 9k6 baud. I'm pretty sure at 115200 you will need termination. As far as I know the USB cable you get from Victron already has a 120-ohm resistor on that end, so for a really short cable run no additional termination should be required. The Victron cable has two LEDs (sometimes three) in the USB plug. A red LED flashes when a write operation occurs, and a green LED flashes when data comes back from the meter. This is really useful in debugging, you can see if there is any traffic at all on the bus. Of course you could also stick an oscilloscope on it (two channel, invert channel 2, add mode, to avoid earthing one end of the comms), and check if there is anything there... if you have a scope.
April 24, 20197 yr Author Hi @plonkster, What can I say: my new Victron RS485 cable arrived from Sonop Solar - i crimped an RJ45 on the end, plugged it into my ET112 and 5 minutes later I was connected from the Carlo Gavazzi software. So compliments, rather buy a better quality component and save lots of time.
April 25, 20197 yr 10 hours ago, Elbow said: crimped an RJ45 on the end I usually wire it directly to the screw terminals 🙂 But that is neat...
April 25, 20197 yr 17 minutes ago, plonkster said: usually wire it directly to the screw terminals 🙂 But that is neat... Hi @plonkster please share the connection for a ET112 if you have it handy , I plan to purchase the victron cable and extend by 10M using Cat5.
April 25, 20197 yr 53 minutes ago, Mstott said: Hi @plonkster please share the connection for a ET112 if you have it handy , I plan to purchase the victron cable and extend by 10M using Cat5. First result when you google "ET112 wiring" 🙂 https://www.victronenergy.com/live/energy-meters:et112 What I usually do is trim the unused wires in the cable at slightly different lengths (so no accidental shorting possible), fold them over (except for the three ones I'm using, yellow, orange and black), then I put a bit of heatshrink over it and shrink it down. That holds the unused wires out of the way. The wires are already tinned and simply connect directly to the terminals as described in the above manual page.
April 25, 20197 yr 8 hours ago, plonkster said: First result when you google "ET112 wiring" Now I feel like a rite tit 😂
April 25, 20197 yr 3 hours ago, Mstott said: Now I feel like a rite tit 😂 I don't think it feels like that. I mean, what is better than one? 🤣
April 25, 20197 yr 2 hours ago, The Terrible Triplett said: what is better than one? Two? 😛 My uncle told this joke around 20 years ago. Hoekom het hoenderhane nie hande nie? Omdat honderhennetjies nie t**ties het nie.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.