Difference between revisions of "Instructions and HOWTO page"

From wiki.breedveld.net
Jump to: navigation, search
Line 1: Line 1:
 
[[485solar-get]]
 
[[485solar-get]]
[[Category:485solar-get]]
+
[[Category:485solar-get]]Instructions and HOWTO page
Instructions and HOWTO page
+
''Instructions and HOWTO page''
  
 
==Release Notes:==
 
==Release Notes:==

Revision as of 11:08, 1 December 2015

485solar-getInstructions and HOWTO page Instructions and HOWTO page

Release Notes:

v0.91 2012-10-14 beta version
initial test version
v0.92 2012-10-15 beta version
introduced: -b option
this the same as -d (datacollecting) but extended with debug info.
debug info is send to stderr
Device-scan is now async, with a wait loop after it.
This not optimal yet, but it is much faster
v0.93 2012-10-16 beta version
max exit in detection waitloop, prevents for endless loop
v0.94 2012-10-21 beta version
mutiple inverters (-n)
improved debugging options
date and events printout with comments (-c)
show possible status fields (-s)
some minor bigfixes
v0.95 2012-10-24 beta version
minor bugfixes
include yasdi libs in compiled version
install.sh and make_distribution.sh scripts added
v0.972 2012-11-28 beta version
Pdc in stead of Pac (bug)
possible to do a synchronous call in stead off async.
deamon mode, will speed-up requests
monitor mode added
much more debugging
send stop signal to the daemon
requesting the daemon state
v0.980 2012-11-29 beta version
deamon request for multiple sma inverters
v0.981 2012-12-02 beta version
minor bug-fix for 32bit compile
v0.982 2013-02-13 beta version
not existing inverter in daemon mode will result as 0, - bugfix for coredump with some SMA models - detection of A or mA, output will be in Amps
v1.000 2014-09-04 version
New name, going to production version

Problem Solving:

general
When encountering issues, first every should be fine without using the Daemon mode.
stop the daemon with
485solar-get -x
be shure there are no alter commands running, so stop all software which is using the same interface, like 123solar, etc.
bind address in use
If you change the user which 485solar-get (and Daemon) runs, you have to remove the socket file:
rm -f /var/tmp/485solar-get_socket
debug 485solar-get
use the -b option to show debug output:
485solar-get -s -b 
or:
485solar-get -b -d -i -e -a -s 
try synchronous detection, by adding the -S option
first test Yasdi itself, while 485solar-get is using its library's
yasdishell /etc/yasdi.ini
b1
when device is detected:
z
look at the outputs of:
d
a1
p1
t1 (probably empty)
When the rs485 interface won't respond, try to zero it:
setserial -z /dev/ttyUSB0
Get state of rs485 device:
setserial -G /dev/ttyUSB0
this wil give something like:
/dev/ttyUSB0 uart unknown port 0x0000 irq 0 baud_base 24000000 spd_normal low_latency
Check baudrate:
stty -F /dev/ttyUSB0
Set baudrate:
stty -F /dev/ttyUSB0 1200
cannot open shared object
if you get this message after installing the binary version:
485solar-get: error while loading shared libraries: libyasdimaster.so.1: cannot open shared object file: No such file or directory
This means /usr/local/lib is not in the library path.
there are 2 solutions:
setting the path before running, only for this session:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Make it permanent:
sudo ldconfig /usr/local/lib
Debugging and tracing
If you can't get enough data from the -b (debug) option, you can use strace:
strace -f -o 485solar-get.strace 485solar-get -d -b
All trace info will be written to 485solar-get.strace
For monitoring the serial data:
strace -s9999 -o 485solar-get.strace -eread,write,ioctl 485solar-get -d -b