MFxMF / SDM630-Modbus

SDM630-Modbus 3P4W Multifunction Power Analyser WithRS485 Port modbus RTU for the domoticz plugin
GNU General Public License v3.0
19 stars 17 forks source link

Connection problem #5

Closed piotr333k closed 4 years ago

piotr333k commented 4 years ago

I have tested my set - power meter + RS converter + raspberry on my desk, connecting 1 phase and 1 device and it worked. Now when the SDM is installed in a 3ph power grid, having connected everything up I received such error and no readings:

2020-08-01 22:04:56.214 (asdf) Connection problem 2020-08-01 22:04:56.214 (asdf) Eastron SDM630 Modbus Data 2020-08-01 22:04:56.214 Error: (asdf) 'onHeartbeat' failed 'UnboundLocalError':'local variable 'Volts_L1' referenced before assignment'. 2020-08-01 22:04:56.214 Error: (asdf) ----> Line 554 in '/home/pi/domoticz/plugins/SDM630-Modbus/plugin.py', function onHeartbeat 2020-08-01 22:04:56.214 Error: (asdf) ----> Line 448 in '/home/pi/domoticz/plugins/SDM630-Modbus/plugin.py', function onHeartbeat 2020-08-01 22:05:02.321 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 42, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.322 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 43, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.328 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 78, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.328 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 80, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.329 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 81, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.330 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 82, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.330 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 83, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.331 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 84, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.331 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 85, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.332 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 86, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.332 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 87, sValue: '', sUsage: '0', dType: 113, sType: 0) 2020-08-01 22:05:02.333 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 88, sValue: '', sUsage: '0', dType: 113, sType: 0)

Everything - cable, converted and domoticz is the same. It was just installed. Checked the cabling twice

Ivohome commented 4 years ago

Did you use an FTDI cable or the cheap China version?

piotr333k commented 4 years ago

Ch341 chip, approx 6 USD. I suppose it's what you mean, a cheap China cable. Does it really matter so much?

niedz., 2 sie 2020, 09:14 użytkownik Ivohome notifications@github.com napisał:

Dus you use an FTDI cable or the cheap China version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MFxMF/SDM630-Modbus/issues/5#issuecomment-667638813, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFKHV5OS4ZGPGQNDHIALFTR6UG67ANCNFSM4PSAIXDA .

Ivohome commented 4 years ago

It matters a lot! Ditch this cable and buy an original FTDI and all your issues will be solved. I used this China version too for about one year. It seems to work, therefore I always thought the issues (weekly hangups and random no communication after days of working correctly) were caused by something else. But after changing to the FTDI cable it was stable as a rock and no issues at all anymore!

piotr333k commented 4 years ago

I'll order a good one and check it.

piotr333k commented 4 years ago

FTDI cable solvet everything, works like a charm.