1

(0 odpowiedzi, napisanych Inne)

Witam
Może ktoś ma doświadczenie z ZoneMinder

Próbuje zmusić go do kontroli kamery przez PTZ

Onvif device manager bez problemu radzi sobie z kamerą a wireshark pokazuje adres:

http://ip_kamery/onvif/ptz_service

jednak żadna konfiguracja w zoneminder nie pozwala na sterowanie,

Poniżej ustawienia które sugerują na forum zoneminder  dla /onvif/ptz_service


# ==========================================================================
#
# ZoneMinder Netcat IP Control Protocol Module, $Date: 2009-11-25 09:20:00 +0000 (Wed, 04 Nov 2009) $, $Revision: 0001 $
# Copyright (C) 2001-2008 Philip Coombes
# Converted for use with Netcat IP Camera by Andrew Bauer (knnniggett@users.sourceforge.net)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# ==========================================================================
#
# This module contains the first implementation of the Netcat IP camera control
# protocol
#
package ZoneMinder::Control::Netcat;

use 5.006;
use strict;
use warnings;

require ZoneMinder::Base;
require ZoneMinder::Control;

our @ISA = qw(ZoneMinder::Control);

our %CamParams = ();

# ==========================================================================
#
# Netcat IP Control Protocol
# This script sends ONVIF compliant commands and may work with other cameras
#
# The Netcat camera gladly accepts any command with or without authentication,
# which prevented me from developing Onvif authentication in this control script.
#
# Basic preset functions are supported, but more advanced features, which make
# use of abnormally high preset numbers (ir lamp control, tours, pan speed, etc)
# may or may not work.
#
#
# Possible future improvements (for anyone to improve upon):
#    - Onvif authentication
#    - Build the SOAP commands at runtime rather than use templates
#    - Implement previously mentioned advanced features
#
# Implementing the first two will require additional Perl modules, and adding
# more dependencies to ZoneMinder is always a concern.
#
# On ControlAddress use the format :
#   ADDRESS:PORT
#   eg : 10.1.2.1:8899
#        10.0.100.1:8899
#
# Use port 8899 for the Netcat camera
#
# Make sure and place a value in the Auto Stop Timeout field.
# Recommend starting with a value of 1 second, and adjust accordingly.
#
# ==========================================================================

use ZoneMinder::Logger qw(:all);
use ZoneMinder::Config qw(:all);

use Time::HiRes qw( usleep );

sub new
{

    my $class = shift;
    my $id = shift;
    my $self = ZoneMinder::Control->new( $id );
    my $logindetails = "";
    bless( $self, $class );
    srand( time() );
    return $self;
}

our $AUTOLOAD;

sub AUTOLOAD
{
    my $self = shift;
    my $class = ref( ) || croak( "$self not object" );
    my $name = $AUTOLOAD;
    $name =~ s/.*://;
    if ( exists($self->{$name}) )
    {
        return( $self->{$name} );
    }
        Fatal( "Can't access $name member of object of class $class" );
    }

sub open
{
    my $self = shift;

    $self->loadMonitor();

    use LWP::UserAgent;
    $self->{ua} = LWP::UserAgent->new;
    $self->{ua}->agent( "ZoneMinder Control Agent/".ZoneMinder::Base::ZM_VERSION );

    $self->{state} = 'open';
}

sub close
{
    my $self = shift;
    $self->{state} = 'closed';
}

sub printMsg
{
    my $self = shift;
    my $msg = shift;
    my $msg_len = length($msg);

    Debug( $msg."[".$msg_len."]" );
}

sub sendCmd
{
    my $self = shift;
    my $cmd = shift;
    my $msg = shift;
    my $content_type = shift;
    my $result = undef;

    printMsg( $cmd, "Tx" );

    my $server_endpoint = "http://".$self->{Monitor}->{ControlAddress}."/$cmd";
    my $req = HTTP::Request->new( POST => $server_endpoint );
    $req->header('content-type' => $content_type);
    $req->header('Host' => $self->{Monitor}->{ControlAddress});
    $req->header('content-length' => length($msg));
    $req->header('accept-encoding' => 'gzip, deflate');
    $req->header('connection' => 'Close');
    $req->content($msg);

    my $res = $self->{ua}->request($req);

    if ( $res->is_success ) {
        $result = !undef;
    } else {
        Error( "After sending PTZ command, camera returned the following error:'".$res->status_line()."'" );
    }
    return( $result );
}

sub getCamParams
{
    my $self = shift;
    my $msg = '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetImagingSettings xmlns="http://www.onvif.org/ver20/imaging/wsdl"><VideoSourceToken>MainStream</VideoSourceToken></GetImagingSettings></s:Body></s:Envelope>';
    my $server_endpoint = "http://".$self->{Monitor}->{ControlAddress}."/onvif/imaging";
    my $req = HTTP::Request->new( POST => $server_endpoint );
    $req->header('content-type' => 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/imaging/wsdl/GetImagingSettings"');
    $req->header('Host' => $self->{Monitor}->{ControlAddress});
    $req->header('content-length' => length($msg));
    $req->header('accept-encoding' => 'gzip, deflate');
    $req->header('connection' => 'Close');
    $req->content($msg);

    my $res = $self->{ua}->request($req);

    if ( $res->is_success ) {
        # We should really use an xml or soap library to parse the xml tags
        my $content = $res->decoded_content;

        if ($content =~ /.*<tt:(Brightness)>(.+)<\/tt:Brightness>.*/) {
            $CamParams{$1} = $2;
        }
        if ($content =~ /.*<tt:(Contrast)>(.+)<\/tt:Contrast>.*/) {
            $CamParams{$1} = $2;
        }
    }
    else
    {
        Error( "Unable to retrieve camera image settings:'".$res->status_line()."'" );
    }
}

#autoStop
#This makes use of the ZoneMinder Auto Stop Timeout on the Control Tab
sub autoStop
{
    my $self = shift;
    my $autostop = shift;

    if( $autostop ) {
        Debug( "Auto Stop" );
        my $cmd = 'onvif/ptz_service';
        my $msg = '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Stop xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><PanTilt>true</PanTilt><Zoom>false</Zoom></Stop></s:Body></s:Envelope>';
        my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
        usleep( $autostop );
        $self->sendCmd( $cmd, $msg, $content_type );
    }
}

# Reset the Camera
sub reset
{
    Debug( "Camera Reset" );
    my $self = shift;
    my $cmd = "";
    my $msg = '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SystemReboot xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/SystemReboot"';
    $self->sendCmd( $cmd, $msg, $content_type );
}

#Up Arrow
sub moveConUp
{
    Debug( "Move Up" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="0" y="-0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Down Arrow
#MODIFICATO x="0" y="0.5"
sub moveConDown
{
    Debug( "Move Down" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="0" y="0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Left Arrow
#MODIFICATO x="0.5" y="0"
sub moveConLeft
{
    Debug( "Move Left" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="0.5" y="0" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Right Arrow
#MODIFICATO x="-0.5" y="0"
sub moveConRight
{
    Debug( "Move Right" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="-0.5" y="0" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Zoom In
sub zoomConTele
{
    Debug( "Zoom Tele" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><Zoom x="0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Zoom Out
sub zoomConWide
{
    Debug( "Zoom Wide" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><Zoom x="-0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Diagonally Up Right Arrow
#MODIFICATO x="-0.5" y="-0.5"
#This camera does not have builtin diagonal commands so we emulate them
sub moveConUpRight
{
    Debug( "Move Diagonally Up Right" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="-0.5" y="-0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Diagonally Down Right Arrow
#MODIFICATO x="-0.5" y="0.5"
#This camera does not have builtin diagonal commands so we emulate them
sub moveConDownRight
{
    Debug( "Move Diagonally Down Right" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="-0.5" y="0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Diagonally Up Left Arrow
#MODIFICATO x="0.5" y="-0.5"
#This camera does not have builtin diagonal commands so we emulate them
sub moveConUpLeft
{
    Debug( "Move Diagonally Up Left" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="0.5" y="-0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Diagonally Down Left Arrow
#MODIFICATO x="0.5" y="0.5"
#This camera does not have builtin diagonal commands so we emulate them
sub moveConDownLeft
{
    Debug( "Move Diagonally Down Left" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ContinuousMove xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><Velocity><PanTilt x="0.5" y="0.5" xmlns="http://www.onvif.org/ver10/schema"/></Velocity></ContinuousMove></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove"';
    $self->sendCmd( $cmd, $msg, $content_type );
    $self->autoStop( $self->{Monitor}->{AutoStopTimeout} );
}

#Stop
#MODIFICATO
sub moveStop
{
    Debug( "Move Stop" );
    my $self = shift;
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Stop xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><PanTilt>true</PanTilt><Zoom>false</Zoom></Stop></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/Stop"';
    $self->sendCmd( $cmd, $msg, $content_type );
}

#Set Camera Preset
sub presetSet
{
    my $self = shift;
    my $params = shift;
    my $preset = $self->getParam( $params, 'preset' );
    Debug( "Set Preset $preset" );
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SetPreset xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><PresetToken>'.$preset.'</PresetToken></SetPreset></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/SetPreset"';
    $self->sendCmd( $cmd, $msg, $content_type );
}

#Recall Camera Preset
sub presetGoto
{
    my $self = shift;
    my $params = shift;
    my $preset = $self->getParam( $params, 'preset' );
    Debug( "Goto Preset $preset" );
    my $cmd = 'onvif/ptz_service';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GotoPreset xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken><PresetToken>'.$preset.'</PresetToken></GotoPreset></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/ptz/wsdl/GotoPreset"';
    $self->sendCmd( $cmd, $msg, $content_type );
}

#Horizontal Patrol
#To be determined if this camera supports this feature
sub horizontalPatrol
{
    Debug( "Horizontal Patrol" );
    my $self = shift;
    my $cmd = '';
    my $msg ='';
    my $content_type = '';
#    $self->sendCmd( $cmd, $msg, $content_type );
    Error( "PTZ Command not implemented in control script." );
}

#Horizontal Patrol Stop
#To be determined if this camera supports this feature
sub horizontalPatrolStop
{
    Debug( "Horizontal Patrol Stop" );
    my $self = shift;
    my $cmd = '';
    my $msg ='';
    my $content_type = '';
#    $self->sendCmd( $cmd, $msg, $content_type );
    Error( "PTZ Command not implemented in control script." );
}

# Increase Brightness
sub irisAbsOpen
{
    Debug( "Iris $CamParams{'Brightness'}" );
    my $self = shift;
    my $params = shift;
    $self->getCamParams() unless($CamParams{'Brightness'});
    my $step = $self->getParam( $params, 'step' );
    my $max = 100;

    $CamParams{'Brightness'} += $step;
    $CamParams{'Brightness'} = $max if ($CamParams{'Brightness'} > $max);

    my $cmd = 'onvif/imaging';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SetImagingSettings xmlns="http://www.onvif.org/ver20/imaging/wsdl"><VideoSourceToken>MainStream</VideoSourceToken><ImagingSettings><Brightness xmlns="http://www.onvif.org/ver10/schema">'.$CamParams{'Brightness'}.'</Brightness></ImagingSettings><ForcePersistence>true</ForcePersistence></SetImagingSettings></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/imaging/wsdl/SetImagingSettings"';
    $self->sendCmd( $cmd, $msg, $content_type );
}

# Decrease Brightness
sub irisAbsClose
{
    Debug( "Iris $CamParams{'Brightness'}" );
    my $self = shift;
    my $params = shift;
    $self->getCamParams() unless($CamParams{'brightness'});
    my $step = $self->getParam( $params, 'step' );
    my $min = 0;

    $CamParams{'Brightness'} -= $step;
    $CamParams{'Brightness'} = $min if ($CamParams{'Brightness'} < $min);

    my $cmd = 'onvif/imaging';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SetImagingSettings xmlns="http://www.onvif.org/ver20/imaging/wsdl"><VideoSourceToken>MainStream</VideoSourceToken><ImagingSettings><Brightness xmlns="http://www.onvif.org/ver10/schema">'.$CamParams{'Brightness'}.'</Brightness></ImagingSettings><ForcePersistence>true</ForcePersistence></SetImagingSettings></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/imaging/wsdl/SetImagingSettings"';
    $self->sendCmd( $cmd, $msg, $content_type );
}

# Increase Contrast
sub whiteAbsIn
{
    Debug( "Iris $CamParams{'Contrast'}" );
    my $self = shift;
    my $params = shift;
    $self->getCamParams() unless($CamParams{'Contrast'});
    my $step = $self->getParam( $params, 'step' );
    my $max = 100;

    $CamParams{'Contrast'} += $step;
    $CamParams{'Contrast'} = $max if ($CamParams{'Contrast'} > $max);

    my $cmd = 'onvif/imaging';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SetImagingSettings xmlns="http://www.onvif.org/ver20/imaging/wsdl"><VideoSourceToken>MainStream</VideoSourceToken><ImagingSettings><Contrast xmlns="http://www.onvif.org/ver10/schema">'.$CamParams{'Contrast'}.'</Contrast></ImagingSettings><ForcePersistence>true</ForcePersistence></SetImagingSettings></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/imaging/wsdl/SetImagingSettings"';
}

# Decrease Contrast
sub whiteAbsOut
{
    Debug( "Iris $CamParams{'Contrast'}" );
    my $self = shift;
    my $params = shift;
    $self->getCamParams() unless($CamParams{'Contrast'});
    my $step = $self->getParam( $params, 'step' );
    my $min = 0;

    $CamParams{'Contrast'} -= $step;
    $CamParams{'Contrast'} = $min if ($CamParams{'Contrast'} < $min);

    my $cmd = 'onvif/imaging';
    my $msg ='<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SetImagingSettings xmlns="http://www.onvif.org/ver20/imaging/wsdl"><VideoSourceToken>MainStream</VideoSourceToken><ImagingSettings><Contrast xmlns="http://www.onvif.org/ver10/schema">'.$CamParams{'Contrast'}.'</Contrast></ImagingSettings><ForcePersistence>true</ForcePersistence></SetImagingSettings></s:Body></s:Envelope>';
    my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver20/imaging/wsdl/SetImagingSettings"';
}

1;

2

(0 odpowiedzi, napisanych Inne)

Witam,
Czy ktoś jest w stanie powiedzieć
jak zmienić domyślny port 8080 dla shinobi,

3

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Które logi jeszcze mogą pokazać problem z połączeniem

4

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Syslog nie pokazuje probllemu
Nov 25 14:10:41 raspberrypi systemd[1]: Stopping ZeroTier One...
Nov 25 14:10:47 raspberrypi avahi-daemon[402]: Interface ztr2q5blqw.IPv6 no longer relevant for mDNS.
Nov 25 14:10:47 raspberrypi avahi-daemon[402]: Leaving mDNS multicast group on interface ztr2q5blqw.IPv6 with address ************
Nov 25 14:10:47 raspberrypi avahi-daemon[402]: Withdrawing address record for *********** on ztr2q5blqw.
Nov 25 14:10:47 raspberrypi systemd[1]: zerotier-one.service: Succeeded.
Nov 25 14:10:47 raspberrypi systemd[1]: Stopped ZeroTier One.
Nov 25 14:10:47 raspberrypi systemd[1]: Started ZeroTier One.
Nov 25 14:10:47 raspberrypi systemd-udevd[29725]: Using default interface naming scheme 'v240'.
Nov 25 14:10:49 raspberrypi avahi-daemon[402]: Joining mDNS multicast group on interface ztr2q5blqw.IPv6 with address ************.
Nov 25 14:10:49 raspberrypi avahi-daemon[402]: New relevant interface ztr2q5blqw.IPv6 for mDNS.
Nov 25 14:10:49 raspberrypi avahi-daemon[402]: Registering new address record for ************
@raspberrypi:~ $ sudo zerotier-cli info
200 info 47f8293789 1.8.3 OFFLINE

5

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Witam po dłuższym czasie.
Pytanie o zerotier ale na malince,
Cały czas mam offline lub tunneled.
Nie jest problemem router gdyż komputer podpięty do niego łączy się bez problemu

Witam,
Czy jest możliwość komunikacji telegramem w obie strony ale bez aplikacji klienta?
Do tej pory używam apki na smartfonie  z której wysyłam jakies dane a te odczytuje w skrypcie na drugim urządzeniu za pomocą curl
ale czy da się tak samo coś wysłać bez aplikacji np curl lub odpowiednio sformatowanym adresem http tak jak to się robi w drugą stronę

7

(0 odpowiedzi, napisanych Inne)

Witam
Posiadam w/w router który prawdopodobnie ma zablokowaną pamięć ale w sensie takim iż reset przywraca ustawienia fabryczne, ale po odłączeniu i podłaczeniu zasilania wraca wszystko z przed resetu.
przy aktualizacji za każdym razem zwiesza się router.
Można z niego korzystać lecz ustawiony jest w tryb klient i wyszukuje ostatnią jaką miał wpisaną sieć która już nie istnieje.

to co się wyświetla podczas ładowania systemu

AR2315 rev 0x00000090 startup...
Attached TCP/IP interface to ae unit 0
Attaching interface lo0...done

USRCONF : g_size = 18112
Name = MODULE_USR_CONF_T , size = 12
Name = UC_IEEE802_1X_CFG_DATA_T , size = 512
Name = UC_ADVANCED_CFG_T , size = 16
Name = UC_ARP_CFG_T , size = 32
Name = UC_BPA_CFG_DATA_T , size = 912
Name = UC_DDNS_T , size = 1480
Name = UC_DHCPC_CFG_DATA_T , size = 416
Name = UC_DHCPS_CFG_AND_STATIC_T , size = 708
Name = UC_FIRE_WALL_STATE_T , size = 1992
Name = UC_FORWARD_VIRTUAL_SERVE_CLASS_T , size = 1572
Name = UC_IFQOS_ROUTER_CONF_FLASH_T , size = 120
Name = UC_LAN_CFG_DATA_T , size = 8
Name = UC_L2TP_CFG_DATA_T , size = 1472
Name = UC_MAC_CONFIG_T , size = 80
Name = UC_PPPOE_CFG_DATA_T , size = 1568
Name = UC_NTP_PREFER_SRV_CFG_DATA_T , size = 28
Name = UC_STATIC_IP_CFG_DATA_T , size = 144
Name = UC_SATTIC_ROUTE_CFG_DATA_T , size = 328
Name = UC_MANAGE_USERS_T , size = 64
Name = UC_UTILITIES_T , size = 16
Name = UC_WANCONNTYPE_T , size = 16
Name = UC_WLAN_CFG_T , size = 5020
Name = UC_PPTP_CFG_DATA_T , size = 1472
Name = UC_NETWORK_PSEUDO_T , size = 4
Name = UC_IFQOS_ROUTER_CONF_FLASH_T , size = 120
Port QoS..................
qos_IFInit..................
qos_IFLoadFromFlash..................
wlan0 Ready
wireless client starting...


entering tddp...



                            Software Platform for ARM
  Copyright(C) 2001-2004 by TP-LINK TECHNOLOGIES CO., LTD.
  Creation date: Sep  4 2008, 17:18:51

  Press CTRL-B to enter bootmenu...

  Boot Menu:
     1:  Download application program
     2:  Modify Bootrom password
     3:  Exit the menu
     4:  Reboot
     5:  User commond line
        Enter your choice(1-4):

boot menu jak by nie działało, co bym nie wybrał i tak nic sie nie dzieje, jedynie wybrane litery wyświetlają statystyki
r:

 Enter your choice(1-4):r
301

ROUTE NET TABLE
Destination      Gateway          Flags  Refcnt Use        Interface
--------------------------------------------------------------------
10.1.51.68       10.1.51.71       0x101  0      0          ae1
192.168.5.0      192.168.5.1      0x101  0      0          ae0
--------------------------------------------------------------------

ROUTE HOST TABLE
Destination      Gateway          Flags  Refcnt Use        Interface
--------------------------------------------------------------------
127.0.0.1        127.0.0.1        0x5    1      1          lo0
--------------------------------------------------------------------

i:

        Enter your choice(1-4):i

ae (unit number 0):
     Flags: (0x8b63) UP BROADCAST MULTICAST PROMISCUOUS ARP RUNNING
     Type: ETHERNET_CSMACD
     Internet address: 192.168.5.1
     Broadcast address: 192.168.5.255
     Netmask 0xffffff00 Subnetmask 0xffffff00
     Ethernet address is d8:5d:4c:ea:cb:04
     Metric is 0
     Maximum Transfer Unit size is 1500
     5897 octets received
     126 octets sent
     31 packets received
     3 packets sent
     31 non-unicast packets received
     0 non-unicast packets sent
     0 unicast packets received
     3 unicast packets sent
     0 input discards
     0 input unknown protocols
     0 input errors
     0 output errors
     0 collisions; 0 dropped
lo (unit number 0):
     Flags: (0x8069) UP LOOPBACK MULTICAST ARP RUNNING
     Type: SOFTWARE_LOOPBACK
     Internet address: 127.0.0.1
     Netmask 0xff000000 Subnetmask 0xff000000
     Metric is 0
     Maximum Transfer Unit size is 32768
     1 packets received; 1 packets sent
     0 multicast packets received
     0 multicast packets sent
     0 input errors; 0 output errors
     0 collisions; 0 dropped
ae (unit number 1):
     Flags: (0x8b63) UP BROADCAST MULTICAST PROMISCUOUS ARP RUNNING
     Type: ETHERNET_CSMACD
     Internet address: 10.1.51.71
     Broadcast address: 10.1.51.71
     Netmask 0xff000000 Subnetmask 0xfffffffc
     Ethernet address is 00:0e:2e:c4:33:47
     Metric is 0
     Maximum Transfer Unit size is 1500
     10128 octets received
     20620 octets sent
     23 packets received
     47 packets sent
     0 non-unicast packets received
     23 non-unicast packets sent
     23 unicast packets received
     24 unicast packets sent
     0 input discards
     0 input unknown protocols
     0 input errors
     0 output errors
     0 collisions; 0 dropped
ppp (unit number 1):
     Flags: (0xb0) DOWN POINT-TO-POINT
     Type: PPP
     Metric is 0
     Maximum Transfer Unit size is 1400
     0 octets received
     0 octets sent
     0 packets received
     0 packets sent
     0 non-unicast packets received
     0 non-unicast packets sent
     0 unicast packets received
     0 unicast packets sent
     0 input discards
     0 input unknown protocols
     0 input errors
     0 output errors

s oraz d

        Enter your choice(1-4):s
377
type        number
---------   ------
FREE    :    1532
DATA    :      0
HEADER  :      0
SOCKET  :      6
PCB     :      7
RTABLE  :     13
HTABLE  :      0
ATABLE  :      0
SONAME  :      0
ZOMBIE  :      0
SOOPTS  :      0
FTABLE  :      0
RIGHTS  :      0
IFADDR  :      7
CONTROL :      0
OOBDATA :      0
IPMOPTS :      0
IPMADDR :      3
IFMADDR :      0
MRTABLE :      0
TOTAL   :    1568
number of mbufs: 1568
number of times failed to find space: 0
number of times waited for space: 0
number of times drained protocols for space: 0
__________________
CLUSTER POOL TABLE
_______________________________________________________________________________
size     clusters  free      usage
-------------------------------------------------------------------------------
64       256       247       15
128      256       239       30
256      256       246       25
512      16        16        0
-------------------------------------------------------------------------------


  Boot Menu:
     1:  Download application program
     2:  Modify Bootrom password
     3:  Exit the menu
     4:  Reboot
     5:  User commond line
        Enter your choice(1-4):d
381
type        number
---------   ------
FREE    :    393
DATA    :      7
HEADER  :      0
SOCKET  :      0
PCB     :      0
RTABLE  :      0
HTABLE  :      0
ATABLE  :      0
SONAME  :      0
ZOMBIE  :      0
SOOPTS  :      0
FTABLE  :      0
RIGHTS  :      0
IFADDR  :      0
CONTROL :      0
OOBDATA :      0
IPMOPTS :      0
IPMADDR :      0
IFMADDR :      0
MRTABLE :      0
TOTAL   :    400
number of mbufs: 400
number of times failed to find space: 0
number of times waited for space: 0
number of times drained protocols for space: 0
__________________
CLUSTER POOL TABLE
_______________________________________________________________________________
size     clusters  free      usage
-------------------------------------------------------------------------------
64       60        57        33
128      60        59        14
256      25        25        0
512      25        25        14
1024     15        15        12
2048     15        15        0
-------------------------------------------------------------------------------

k:

       Enter your choice(1-4):k


  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   801c19c4     80ff5380   0 PEND       801e3c50 80ff5260       0     0
tLogTask   801c6c54     80ff27f0   0 PEND       801e3c50 80ff26d8       0     0
bootromTask8005ad30     80b69f90   8 READY      801dc998 80b69d98  3d0002     0
tWlanCal   800ef730     80be2ba0  10 PEND       801e3c50 80be2ab0       0     0
tApCserv   800de55c     80b6f5f0  10 DELAY      801db708 80b6f500       4     6
Detectd    80022638     80b67520  40 DELAY      801db708 80b67498       0   207
timerManage8006d7f0     80d44780  48 PEND+T     80158414 80d44708  3d0004    12
endRecvTask8005bce4     80b84ab0  49 PEND+T     801e3c50 80b849a0  3d0004     1
tNetTask   8019aab4     80fa4c90  50 PEND       80158414 80fa4c00       0     0
tApHouseKee800de9d0     80b74840  50 DELAY      801db708 80b74790       0  1993
dhcpcState 800b4438     80de18d0  56 PEND       80158414 80de1830       0     0
dhcpcRead  800b4e10     80de02d0  56 PEND       80158414 80de00b8  3d0002     0
swDhcpcd   80062620     80dde870  56 PEND       801e3c50 80dde618       0     0
802_1X     80093c40     80b6b260 150 PEND+T     80158414 80b6b1e0  3d0004     7
swL2tpd    80069944     80df8d80 198 PEND+T     801e3c50 80df8b08  3d0004     1
swPptpd    8006b4c4     80df2130 198 PEND+T     801e3c50 80df1eb8  3d0004    60
swPppoed   8006863c     80dfd670 199 PEND+T     801e3c50 80dfd3b0  3d0004    58
pppoed_0   8006fbd8     80dff8e0 200 PEND+T     801e3c50 80dff7c8  3d0004    27
pptpProc_0 8007aeac     80df43a0 200 PEND+T     801e3c50 80df4070  3d0004     1
l2tpd_0    80075bd4     80dfaff0 201 PEND+T     801e3c50 80dfaed8  3d0004    25
pptpd_0    800785f0     80df6610 201 PEND+T     801e3c50 80df64f0  3d0004    23
usrRebootd 80066648     80d452b0 202 PEND+T     801e3c50 80d451d0  3d0004    52
mud0_80    8002dd40     80f0ebf0 203 PEND+T     80158414 80f0e9b0  3d0002   471
tFWCONF    8008fbd8     80ddc960 203 DELAY      801db708 80ddc8d8       0   169
dnsProxyd  800c0728     80d475e0 204 PEND+T     80158414 80d473e0  3d0002    48
sntpd      800bf518     80d48e80 205 PEND+T     801e3c50 80d48d48  3d0004   167
sysExLogd  800201b0     80f388a0 240 PEND       80158414 80f38488  3d0002     0
dynTask    800c35fc     80d424d0 250 PEND       80158414 80d42450       0     0
BPAd_0     800cb6e0     80decc80 253 DELAY      801db708 80decb48       0    43
dhcpsd     800a7688     80d4b3a0 254 PEND+T     80158414 80d4b178  3d0002    41
BPAm_0     800ce5c0     80dea210 255 DELAY      801db708 80dea170       0    40

n:

        Enter your choice(1-4):n
494
Active Internet connections (including servers)
PCB      Proto Recv-Q Send-Q  Local Address      Foreign Address    (state)
-------- ----- ------ ------  ------------------ ------------------ -------
80fb7f08 TCP        0      0  0.0.0.0.80            0.0.0.0.0             LISTEN
80fb8538 UDP        0      0  0.0.0.0.2050          0.0.0.0.0
80fb84b4 UDP        0      0  0.0.0.0.53            0.0.0.0.0
80fb8430 UDP        0      0  0.0.0.0.67            0.0.0.0.0
80fb83ac UDP        0      0  0.0.0.0.68            0.0.0.0.0

m:

        Enter your choice(1-4):m
496

FREE LIST:
   num    addr       size
  ---- ---------- ----------
     1 0x80ffe9a0        448
     2 0x80ffe6f0         64
     3 0x80b3fc20      10864
     4 0x80ffec30        160
     5 0x80ffed70         80
     6 0x80ffb1f0      10944
     7 0x80ff6770         96
     8 0x80b6c520         96
     9 0x80d31180         32
    10 0x8038df30    7964240
    11 0x80f9fb80        240


SUMMARY:
 status    bytes     blocks   avg block  max block
 ------ ---------- --------- ---------- ----------
current
   free    7987264        11     726114    7964240
  alloc    5062752      1414       3580          -
cumulative
  alloc   10176672      7200       1413          -

8

(11 odpowiedzi, napisanych Inne)

Witam
Może ktoś mądrzejszy wyczyta z tego DT jaki bit należy wysłać aby na INT0/P3.2 pojawił się stan wysoki

http://www.stcmicro.com/datasheet/STC15F100-en.pdf

9

(11 odpowiedzi, napisanych Inne)

Dziwny ten układ. wylutowałem STC i na pin w który rzekomo jest za sterowanie podaję stan niski jak i wysoki i zero reakcji
tranzystor j3Y sterowany jest stanem wysokim z 3V wiec teraz pytanie skąd on dostaje zasilanie hmm

10

(11 odpowiedzi, napisanych Inne)

na switchu jest układ STC15f104 i nie mogę znaleźć do niego datasheet bo jak bym go przeprogramował to ok ale to jakies chińskie gówienko i opisy w języku "czajnis" hmm

11

(11 odpowiedzi, napisanych Inne)

@Dario z samym esp nie mam problemu, ma w sobie fabryczny firmware, głównie chodzi mi os sam switch, nie widze scieżek od GPIO tylko od RX/TX więc sa sterowane jakąś komendą.

RX/TX to GPIO1 i GPIO3 i zmiana stanu na pinach też nic nie daje.

Na razie napisałem do producenta, może coś odpisz

@Cezary
ESP już mam kilka, ale nie wiedziałem że ze sterowanie samym switchem bedzie problem.

Na pewno znasz "ESP EASY", bardzo ułatwia zabawę z modułem i daje dużo możliwości

12

(11 odpowiedzi, napisanych Inne)

Witam,
Mam pytanie odnośnie modułu,
ESP8266 Relay
czy ktoś miał do czynienia z tym? jakimi poleceniami sie go steruje bo za nic nie mogę znaleźć, w przesyłce nie było instrukcji.
strona producenta też za wiele nie opisuje,
http://www.chinalctech.com/index.php?_m … ;p_id=1204
na module jest jeszcze układ STC15f104,

13

(0 odpowiedzi, napisanych Inne)

Witam

Czy ktoś jest w stanie pomóc

Mam taki kod na esp który tworzy serwer i wyświetla stronę z danymi

srv=net.createServer(net.TCP)

srv:listen(80,function(conn)

    pin=3 
    t=require("ds18b20")
    t.setup(pin) -- gpio0
    addrs=t.addrs()
    node_id = node.chipid()
    print("Total Sensors.: "..table.getn(addrs).." ")
    print("Sensor Type...: "..node_id.." ")
    hex_format="%02X%02X%02X%02X%02X%02X%02X%02X"
    sensor_count=table.getn(addrs)
    tmr.delay(1000000)
    if (sensor_count>0) then
      for i=1,sensor_count do

        sid=string.format(hex_format,string.byte(addrs[i],1,9))      
        print(i," ID: "..sid.." Temp: "..t.read(addrs[i],t.C).." ")
        conn:send("<div>"..i.." ID: "..sid.." Temp: "..t.read(addrs[i],t.C).." </div>")
        tmr.wdclr()
      end
      conn:close()
    end
    
-- Cleanup
    t = nil
    ds18b20 = nil
    package.loaded["ds18b20"]=nil 
end )

W App inventor robię aplikację którą chcę odebrać te dane ale nie pobiera nic.
Tzn jak zrobię odbiór w webViewer to oczywiście wyświetla stronę ale WEB.GET już nic nie zwraca ani żadna ina funkcja


Jak ktoś się bawił z androidem i ESp to mile widziana pomoc smile

14

(8 odpowiedzi, napisanych Oprogramowanie / Software)

No i po problemie, instalacja pomogła, swoją drogą nie wiem czemu z jednego adresu pobierał a z innego nie hmm

15

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Ok tylko widze ze zrodla sa okrojone dla tego wydania, czy możesz skompilowac pelna wersje ??

Linux quark012b63 3.8.7-yocto-standard #1 Wed Sep 3 10:41:56 BST 2014 i586 GNU/Linux

Z góry dziękuje

16

(8 odpowiedzi, napisanych Oprogramowanie / Software)

root@quark012b63:~# wget
BusyBox v1.22.1 (2014-09-03 11:18:12 BST) multi-call binary.

Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
        [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
        [-U|--user-agent AGENT] [-T SEC] URL...

Jeśli to Ci coś mówi

17

(8 odpowiedzi, napisanych Oprogramowanie / Software)

ale z galileo jak zrobię wget do 192.168.3.1 to pobiera stronę a drugie ip to serwer na ESP8266 i moduł reaguje na wywołanie wget bo widze w konsoli ale wget zamiast zwrócić stronę to wywala error. Tak więc nie wiem gdzie szukac

18

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Witam

Co może być przyczyną problemu i wyświetlania komunikatu:

wget: error getting response

mam podłączone intel galileo na ip 192.168.3.106
wywoluje z niego wgetem IP:

root@quark012b63:~#  wget -q -O - 192.168.3.111
wget: error getting response

jeśli wywołam ip routera t.j 192.168.3.1 pobiera stronę bez problemu

root@quark012b63:~#  wget -q -O - 192.168.3.1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...

jeśłi wywołam wget -q -O - 192.168.3.111 z konsoli routera to również pobiera dane ze strony bez problemu

root@Gargoyle:~# wget -q -O - 192.168.3.111 | sed 's/<[^>]*>/\n/g' | sed '/^[ \t
]*$/ d'
1 ID: 28EEFCEA121601EC Temp: 26.0625
2 ID: 28EEE3ED12160179 Temp: 26
3 ID: 28EE73DE1216010E Temp: 26

ewentualnie czym zastąpić wget'a, potrzebuję pobrać tylko kilka linijek kodu html

19

(17 odpowiedzi, napisanych Oprogramowanie / Software)

Xemidra napisał/a:

... bo jak zmienię adres MAC routera albo laptopa i zrestartuje modem to pobiera z pełną prędkością ...

Skoro możesz zmienić MAC i pobiera poprawnie to czemu po prostu tego nie zrobisz ??

20

(17 odpowiedzi, napisanych Oprogramowanie / Software)

Cyfrowy polsat - max możliwości BTS

21

(19 odpowiedzi, napisanych Oprogramowanie / Software)

to jeszcze czy da się to wyłączyć bo nie widzę w GUi a niepotrzebny mi ten monitoring

22

(19 odpowiedzi, napisanych Oprogramowanie / Software)

jankoza napisał/a:
wabikboy napisał/a:

Apr 20 19:09:34 crond[1394]: time disparity of 429 minutes detected

Dzisiaj też miałem u siebie restarty. Znany problem z bwmon. Wywaliłem dane z /usr/data i pomogło.

Wielkie dzięki
wywaliłem i faktycznie brak restartów.

Co ta usługa dokładnie robi ?

23

(19 odpowiedzi, napisanych Oprogramowanie / Software)

NKrouter napisał/a:

Dobra rada. Zainstaluj soft na routerze jeszcze raz. Mi co okolo 9 miesięcy router zaczyna się  restartować jak tylko wepne modem (na hubie aktywnym) . Po instalacji ponownej ( bez zachowania ustawien)problem znika na kolejne 9 miesiecy. Jakby coś go przypychalo w jakiś plikach albo co. Może chodzi o statystyki

Dzięki ale takie rzeczy można sobie robić na czystym systemie, a u mnie lata trochę skryptów które potrzebują dodatkowych pakietów i nawet przesiadka z backfire na AA zajęła mi trochę czasu a tego akurat brak wink

Więc wolę naprawić tym bardziej iż wiem co powoduje restarty ale nie wiem jak im zapobiec

24

(19 odpowiedzi, napisanych Oprogramowanie / Software)

Nie przypominam sobie abym coś grzebał w tym kierunku.
po za tym że wyłączałem wifi w GUI to w żaden inny sposób interfejsów nie ruszałem

25

(19 odpowiedzi, napisanych Oprogramowanie / Software)

jak odpalę htop mam tam proces /bin/sh /sbin/hotplug-call ifaces który po chwili obciąża mocno procesor

a w zasadzie tak mi się wydaje bo w kolumnie CPU% pokazuje tylko 10%
ale pasek nagle robi się czerwony na 100% i następuje zwis
przeglądam to w standardowym poleceniu htop.

może jest jakaś opcja w htop aby pokazać dokładniejsze wykorzystanie parametrów

po usunięciu tego procesu restarty ustępują, ale po restarcie ręcznym problem powraca