| | | | IZ2LWE
| Inviato il: 28/1/2013,19:54
|
CITAZIONE (eliafino @ 28/1/2013, 16:14) MPPT MODBUS Adapter Interface: RS485 Communcation: 9600, 8, EVEN, 1 Protocol: MODBUS slave
Pin: 1,3 : GND 2,4 : RS485_D- 6,8 : RS485_D+ 5,7 : NC Ci puoi dare qualche informazione in più? Sto cercando di capire e penso di aver intuito cosa bisogna fare leggendo qua e la sul web, ma non vorrei lasciare troppo spazio alle mie supposizioni, bruciare PC e regolatore non è che mi piacerebbe molto ... 
http://www.doityourselfchristmas.com/wiki/..._Data_Cable.jpg
Ti ringrazio per qualsiasi aiuto che ci vorrai eventualmente dare.
--------------- Camper con impianto solare composto da 4 Poly da 100W in serie, regolatore di carica EpSolar Tracer RN4210 e 2 batterie 12V 105Ah in parallelo secco
| | | | eliafino
| Inviato il: 28/1/2013,21:29
|
Questo va bene per il mio MPPT, un mppsolar... ... quindi temo che i pin potrebbero anche essere diversi.
Si tratta di avere un convertitore RS485-USB (communication box) e di interrogare il client con semplici comandi MODBUS sulla seriale.
Il costruttore mi ha gentilmente dato un file con l'indirizzo dei registri dove leggere i dati e la loro interpretazione:
MODBUS Address Variable Name Variable Description Units Note 0x0001 U-01 Input Voltage 0.1V 0x0002 U-02 Input Current 0.1A 0x0003 U-03 Output Voltage 0.1V 0x0004 U-04 Output Current 0.1A 0x0005 U-05 Ahr_HI Energy Harvest Today 1:Ahr 1Ahr 0x0006 U-05 Ahr_LO Energy Harvest Today 1:Ahr 1Ahr 0x0007 U-05 Whr_HI Energy Harvest Today 1:Whr 1Whr 0x0008 U-05 Whr_LO Energy Harvest Today 1:Whr 1Whr 0x0009 U-07 Energy Harvest Today 2:Float Time 1minutes 0x000A U-08 Stage Of Charger 0:charger off, 1:start, 2:bulk, 3:absorption, 4:float, 5:MPPT, 6:stop, 8:equalize 0x000B U-11 SunStar Temperature 0.1'C 0x000C U-12 Battery SOC 0x000D U-13 Battery Current 0x000E U-14 Battery Amp Hours 0x000F U-15 Battery Temperature
--------------- Impianto Fotovoltaico "eliafino" in Tempo Reale. http://www.eliafino.it:3000/d/solare/impianto-fotovoltaico-eliafino
| | | | giocan
| Inviato il: 31/1/2013,20:02
|
sapete sino a che distanza dal regolatore può funzionare il meter con cavo UTP??
grazie 1000
| | | | eliafino
| Inviato il: 31/1/2013,22:09
|
Io ce l'ho a 25 metri... porta a 9600... nessun problema...
--------------- Impianto Fotovoltaico "eliafino" in Tempo Reale. http://www.eliafino.it:3000/d/solare/impianto-fotovoltaico-eliafino
| | | | giocan
| Inviato il: 1/2/2013,09:30
|
mi riferisco al display meter-5 a circa 40 metri, non funge!!!
ho fatto la prova con il cavo in dotazione da 2 metri direttamente sul tracer ma niente!!! lampeggiano per un'istante i due led, il display non si illumina e visualizza tutti i caratteri alfanumerici e e icone.
c'è qualcosa da fare prima di poterlo utilizzare, oppure ne devo richiedere la sostituzione??
grazie 
Modificato da giocan - 1/2/2013, 19:28
| | | | giocan
| Inviato il: 9/2/2013,09:46
|
prima di di rispedire tutto indietro, qulacuno per cortesia ha dei consigli per testare se il problema dipende dal regolatore o dal pannellino?? grazie 1000
| | | | ElettroshockNow
| Inviato il: 9/2/2013,15:09
|
Ciao giocan, credo che l'unica soluzione sia provarlo con un'altro dispositivo. Almeno che non hai uno sniffer Modbus e vedi se il display interroga il regolatore!!!.
Quindi se non trovi nessuno che sia cosi' gentile ,fai due conti se ti conviene rispedire tutto oppure comprare un nuovo LCD (ho visto che stanno sui 30E SSincluse)......per discriminare il componente in avaria.
Ciao ElettroshockNow
| | | | | | | Trin4cria
Watt   Gruppo:Utente Messaggi:99
Stato:
| Inviato il: 10/2/2013,18:37
|
Ciao Raga ho lo stesso problema Epsolar mppt da 45 appena collego il display rimane tutto acceso lo stesso montato su un epsolar da 20a che uso solo per l illuminazione funziona perfettamente ... è il regolatore sebbene funzioni regolarmente e carica le batterie il display lo manda in test permanente da spedire ... sigh!
| | | | yohanndesbois
milliWatt  Gruppo:Utente Messaggi:5
Stato:
| Inviato il: 6/3/2013,14:14
|
Hi, really sorry I dont speak your language but as im working on this too I send this post.
Epsolar work on a software already. I manage to get a beta and its crap so I decided to make my own.
Epsolar com port is rs232 (you can use a ftdi usb to rs232 or a prolific 2303)
the pin 5 is txd, pin 6 is rxd and pin 8 is ground (others are 12V dont plug this in an ethernet port!)
here is the protocol
CODE http://dl.dropbox.com/u/34579956/Protocoll-Trcaer-MT-5%EF%BC%88111213%EF%BC%89(1).pdf
I'm programming a logger in python but I really like to be able to make a C software like sma-get or aurora on linux just to use 123solar wich is really good.
I hope this will help you
| | | | eliafino
| Inviato il: 6/3/2013,15:30
|
@yohanndesbois
Hi, have you try this?
This is for my configuration for another charge regulator (MPPSolar): modpoll -1 -a 1 -r 2 -c 15 -b 9600 -m rtu /dev/ttyUSB0
Modificato da eliafino - 6/3/2013, 16:00
--------------- Impianto Fotovoltaico "eliafino" in Tempo Reale. http://www.eliafino.it:3000/d/solare/impianto-fotovoltaico-eliafino
| | | | yohanndesbois
milliWatt  Gruppo:Utente Messaggi:5
Stato:
| Inviato il: 6/3/2013,16:30
|
I didn't tried yet. I don't think its modbus protocol anyway
I make my own logger in python but its still early alpha stage.
here is my logger.py code
CODE #!/usr/bin/env python # -*- coding: utf-8 -*- import serial, time import sqlite3 import os from datetime import datetime ######## connect to the db installed database_name = "/YOUR/PATH/TO/SQLITE/db" lastcode = '7f' dbconn = sqlite3.connect(database_name) dbconn_cursor = dbconn.cursor() ######## Serial request monitoring, always the same command ser = serial.Serial("/dev/ttyUSB0", 9600, timeout=0) while True: ser.flushInput() ser.flushOutput() ser.write("\xeb\x90\xeb\x90\xeb\x90\x01\xa0\x01\x03\xbd\xbb\x7f"  time.sleep(1) data = ser.readline() data = data.encode('hex') if data[70:] != lastcode: print 'data too short, retrying', len(data),'/71' else: print 'data receved from controler! processing' ######## results sync = data[:12] ident = data[12:14] command = data[14:16] datalength = data[16:18] batteryvoltage = int(data[20:22]+data[18:20], 16) / float(100) pvvoltage = int(data[24:26]+data[22:24], 16) / float(100) res1 = data[26:30] loadcurrent = int(data[32:34]+data[30:32], 16) / float(100) overdischargevoltage = int(data[36:38]+data[34:36], 16) / float(100) batteryfullvoltage = int(data[40:42]+data[38:40], 16) / float(100) loadstate = int(data[42:44], 16) overload = int(data[44:46], 16) loadshortcircuit = int(data[46:48], 16) res2 = data[48:50] batteryoverload = int(data[50:52], 16) overdischarge = int(data[52:54], 16) fullindicator = int(data[54:56], 16) chargingindicator = int(data[56:58], 16) batterytemp = int(data[58:60], 16) -30 chargingcurrent = int(data[62:64]+data[60:62], 16) / float(100) res3 = data[64:66] check = data[66:70] exitcode = data[70:72] kelheure = datetime.now() dbconn_cursor.execute("INSERT INTO epsolar VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", (batteryvoltage, pvvoltage, loadcurrent, overdischargevoltage, batteryfullvoltage, loadstate, overload, loadshortcircuit, batteryoverload, overdischarge, fullindicator, chargingindicator,batterytemp, chargingcurrent, kelheure)) # save data to database dbconn.commit() print 'saving data' ser.flushInput() ser.flushOutput() ser.close() #break print 'exit'
The sqlite database contain a table called epsolar.
In the table colown are like this: batteryvoltage, pvvoltage, loadcurrent, overdischargevoltage, batteryfullvoltage, loadstate, overload, loadshortcircuit, batteryoverload, overdischarge, fullindicator, chargingindicator,batterytemp, chargingcurrent, kelheure
kelheure is the timestamp
I didnt inclued the command and config part yet, neither than the crc check (I use the 7f exit code to check if data is receved but nothing to check if its corrupted)
To read the result I use php.
here an exemple. It show some info (not all yet and its ugly at the moment (later I'd like to use a interface similar to 123solar)
CODE <?php header('Refresh: 5'); ?>
<?php // ALL ini_set('display_errors', 'On'); error_reporting(E_ALL);
$db = new PDO('sqlite:/var/www/admin/db/domo', '', '');
$result = $db->query('SELECT batteryvoltage FROM epsolar order by kelheure desc limit 1'); $batvolt = $result->fetch(); $batvoltoutput = 'Batterie: '.number_format((float)$batvolt['batteryvoltage'], 3, '.', '') . " Volts";
$result1 = $db->query('SELECT pvvoltage FROM epsolar order by kelheure desc limit 1'); $pvvolt = $result1->fetch(); $pvvoltoutput = 'Panneaux: '.number_format((float)$pvvolt['pvvoltage'], 3, '.', '') . " Volts";
$result2 = $db->query('SELECT chargingcurrent FROM epsolar order by kelheure desc limit 1'); $chargcu = $result2->fetch(); $chargecuoutput = 'Courant de charge: '.number_format((float)$chargcu['chargingcurrent'], 3, '.', '') . " Amperes";
$result3 = $db->query('SELECT loadcurrent FROM epsolar order by kelheure desc limit 1'); $loadcu = $result3->fetch(); $loadcuoutput = 'Courant utilisé: '.number_format((float)$loadcu['loadcurrent'], 3, '.', '') . " Amperes";
$result4 = $db->query('SELECT overdischargevoltage FROM epsolar order by kelheure desc limit 1'); $overdisvol = $result4->fetch(); $overdisvoloutput = 'Niveau de batterie vide: '.number_format((float)$overdisvol['overdischargevoltage'], 3, '.', '') . " Volts";
$result5 = $db->query('SELECT batteryfullvoltage FROM epsolar order by kelheure desc limit 1'); $fullbatvol = $result5->fetch(); $fullbatvoloutput = 'Niveau de batterie pleine: '.number_format((float)$fullbatvol['batteryfullvoltage'], 3, '.', '') . " Amperes";
echo ''.$batvoltoutput.''.'<br />'; echo ''.$pvvoltoutput.''.'<br />'; echo ''.$chargecuoutput.''.'<br />'; echo ''.$loadcuoutput.''.'<br />'; echo ''.$overdisvoloutput.''.'<br />'; echo ''.$fullbatvoloutput.''.'<br />'; ?>
I think we should do this again but maybe in C to process more quicly. and use argument in command line just like sma-get do.
| | | | Vinss
| Inviato il: 6/3/2013,16:37
|
Io, considerati i dati ERRATI che tira fuori sul suo display, penso che sbattersi cosi' tanto per leggere i dati tramite PC non porti a nulla di utile.
| | | | Andrea AR
Watt   Gruppo:Utente Messaggi:67
Stato:
| Inviato il: 6/3/2013,20:57
|
Approfitto x inserire anche il il mio problema :
Regolatore epsolar pwm vieWstar VS4048N anche questo ha la porta rj45 ma non e reale e solo la spina
Ho il softwer x il monitoraggio fornito da epsolar che comunica in porta com rs232 .
Sono in attesa da parte di ep solar del cablaggio x passare da rs 232 a rj45
Qualcuno di voi ha già affrontato il problema ?
| |
| | |
|
Versione Mobile!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|