Posts by RS-Elec

    Danke Qvrgre,

    oh man... Da hätte ich ja auch zuerst mal in die Anwendungsverwaltung schauen können und einfach das passende Systempaket installieren sollen anstatt über die Webseite zu gehen. Mint bietet mir 1.7.2 als Systempaket an, dass lässt sich zumindest anstandslos installieren und starten. Als Flatpak gäbe es auch 1.9.0 aber ich versuche Flatpaks zu vermeiden, 3,7 GB für so ein kleines Tool...

    Wenn die Version 1.7.2 funktioniert soll es mir egal sein, dass die nicht aktuell ist.

    Die hätten aber auf der Raspberry Pi Seite ruhig mal schreiben können, dass es über die Standard Paketquellen verfügbar ist, zumindest unter Ubuntu und Ablegern.

    Schönes Wochenende!

    Ich würde gerne von meinem Linux Notebook aus eine SD Karte / SSD für den Raspi vorbereiten, scheitere aber schon an de Installation des Imagers:


    rpi-imager-amd64 1.9.4

    Fehler: Abhängigkeit nicht erfüllbar: util-linux (>= 2.38)


    Updates ist alles aktuell:

    robert@ThinkPad-Yoga-ML:~/Projekte/RaspberryPi/Pi4NAS$ apt update
    [sudo] Passwort für robert:
    OK:1 http://ftp.tu-chemnitz.de/pub/linux/ubuntu jammy InRelease
    OK:2 http://ftp.tu-chemnitz.de/pub/linux/ubuntu jammy-updates InRelease
    Holen:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
    OK:4 http://ftp.tu-chemnitz.de/pub/linux/ubuntu jammy-backports InRelease
    Ign:6 https://ftp.fau.de/mint/packages virginia InRelease
    OK:7 https://ftp.fau.de/mint/packages virginia Release
    OK:5 https://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease
    Es wurden 129 kB in 1 s geholt (197 kB/s).
    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    Alle Pakete sind aktuell.
    N: Das Laden der konfigurierten Datei »non-free/binary-i386/Packages« wird übersprungen, da das Depot »http://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease« die Architektur »i386« nicht unterstützt.
    robert@ThinkPad-Yoga-ML:~/Projekte/RaspberryPi/Pi4NAS$ apt upgrade
    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    Paketaktualisierung (Upgrade) wird berechnet… Fertig
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
    robert@ThinkPad-Yoga-ML:~/Projekte/RaspberryPi/Pi4NAS$ sudo apt dist-upgrade
    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    Paketaktualisierung (Upgrade) wird berechnet… Fertig
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
    robert@ThinkPad-Yoga-ML:~/Projekte/RaspberryPi/Pi4NAS$ sudo apt install -f
    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


    Hat jemand eine Idee? Kann ja nun nicht sein, dass man ein Windows Computer benötigt um ein Raspi mit Linux zu versorgen und es von nem Linux PC aus nicht geht LOL


    Infos zum OS:

    System:
    Kernel: 5.15.0-141-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4
    tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia
    base: Ubuntu 22.04 jammy
    Machine:
    Type: Laptop System: LENOVO product: 20CD0038GE v: ThinkPad S1 Yoga serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
    Mobo: LENOVO model: 20CD0038GE v: 0B98417 PRO serial: <superuser required> UEFI: LENOVO
    v: GQET63WW (1.43 ) date: 03/24/2020
    Battery:
    ID-1: BAT0 charge: 41.9 Wh (95.7%) condition: 43.8/47.1 Wh (93.1%) volts: 16.4 min: 14.8
    model: SONY 45N1705 type: Li-poly serial: <filter> status: Charging
    CPU:
    Info: dual core model: Intel Core i7-4500U bits: 64 type: MT MCP smt: enabled arch: Haswell
    rev: 1 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB
    Speed (MHz): avg: 2099 high: 2226 min/max: 800/3000 cores: 1: 2131 2: 2055 3: 2226 4: 1987
    bogomips: 19154
    Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
    Graphics:
    Device-1: Intel Haswell-ULT Integrated Graphics vendor: Lenovo driver: i915 v: kernel ports:
    active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:0a16 class-ID: 0300
    Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 2-6:4
    chip-ID: 04f2:b39f class-ID: 0e02
    Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 display-ID: :0 screens: 1
    Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
    Monitor-1: eDP-1 model: LG res: 1920x1080 hz: 60 dpi: 177 size: 276x156mm (10.9x6.1")
    diag: 317mm (12.5") modes: 1920x1080
    OpenGL: renderer: Mesa Intel HD Graphics 4400 (HSW GT2) v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.3
    direct render: Yes
    Audio:
    Device-1: Intel Haswell-ULT HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 00:03.0 chip-ID: 8086:0a0c class-ID: 0403
    Device-2: Intel 8 Series HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 00:1b.0 chip-ID: 8086:9c20 class-ID: 0403
    Sound Server-1: ALSA v: k5.15.0-141-generic running: yes
    Sound Server-2: PulseAudio v: 15.99.1 running: yes
    Sound Server-3: PipeWire v: 0.3.48 running: yes
    Network:
    Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 04:00.0 chip-ID: 8086:08b2 class-ID: 0280
    IF: wlp4s0 state: up mac: <filter>
    Bluetooth:
    Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 2-4:2
    chip-ID: 8087:07dc class-ID: e001
    Report: hciconfig ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 2.1 lmp-v: 4.0
    sub-v: 500 hci-v: 4.0 rev: 500
    Drives:
    Local Storage: total: 476.94 GiB used: 252.89 GiB (53.0%)
    ID-1: /dev/sda vendor: Crucial model: CT512MX100SSD1 size: 476.94 GiB speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: MU03 scheme: GPT
    Partition:
    ID-1: / size: 468.29 GiB used: 252.85 GiB (54.0%) fs: ext4 dev: /dev/sda4
    ID-2: /boot/efi size: 96 MiB used: 31.4 MiB (32.7%) fs: vfat dev: /dev/sda1
    Swap:
    ID-1: swap-1 type: file size: 2 GiB used: 3.8 MiB (0.2%) priority: -2 file: /swapfile
    USB:
    Hub-1: 1-0:1 info: Full speed or root hub ports: 3 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
    Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0 speed: 480 Mb/s
    chip-ID: 8087:8000 class-ID: 0900
    Device-1: 1-1.7:3 info: STMicro Sensor Hub type: HID driver: hid-sensor-hub,usbhid
    interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0483:91d1 class-ID: 0300
    serial: <filter>
    Device-2: 1-1.8:4 info: Wacom TPCEC type: Mouse driver: usbhid,wacom interfaces: 1 rev: 2.0
    speed: 12 Mb/s chip-ID: 056a:00ec class-ID: 0301
    Hub-3: 2-0:1 info: Hi-speed hub with single TT ports: 9 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
    Device-1: 2-4:2 info: Intel Bluetooth wireless interface type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:07dc class-ID: e001
    Device-2: 2-5:3 info: Elan Micro Touchscreen type: HID driver: hid-multitouch,usbhid
    interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 04f3:0254 class-ID: 0300
    Device-3: 2-6:4 info: Chicony Integrated Camera type: Video driver: uvcvideo interfaces: 2
    rev: 2.0 speed: 480 Mb/s power: 256mA chip-ID: 04f2:b39f class-ID: 0e02
    Hub-4: 3-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
    Sensors:
    System Temperatures: cpu: 56.0 C mobo: N/A
    Fan Speeds (RPM): cpu: 0
    Repos:
    Packages: 2409 apt: 2395 flatpak: 14
    No active apt repos in: /etc/apt/sources.list
    Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //ftp.fau.de/mint/packages virginia main upstream import backport
    2: deb http: //ftp.tu-chemnitz.de/pub/linux/ubuntu jammy main restricted universe multiverse
    3: deb http: //ftp.tu-chemnitz.de/pub/linux/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //ftp.tu-chemnitz.de/pub/linux/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
    Active apt repos in: /etc/apt/sources.list.d/resilio-sync.list
    1: deb http: //linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free
    Info:
    Processes: 259 Uptime: 5h 11m wakeups: 4 Memory: 7.66 GiB used: 3.61 GiB (47.1%) Init: systemd
    v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Cinnamon v: 6.0.4 inxi: 3.3.13

    Hi, ich brauche mal die Hilfe von einem Linuxprofi.

    Ich hab auf meinen Raspi 3 die aktuelle version von OSMC drauf (was afaik auf raspbian basiert). An dem Pi ist eine externe 8 TB Platte angeschlossen (GPT Datenträger mit NTFS) und unter "/media/My Book" gemounted.

    Auf der Platte befinden sich die Ordner X und Y, welche jeweils via Samba freigegeben sind. Siehe smb.conf unten.

    Zugriff von Windows 7 und 10 geht auch, nur das Schreiben von großen Dateien (ab ca. 3 GB) geht nicht. Windows 10 macht ewig "berechnen" im Kopierdialog und schmeißt dann folgenden Fehler raus: 0x8007003B Unerwarteter Netzwerkfehler, unter Windows 7 stürzt der Kopierdialog einfach ab. Kleine Dateien (z.B. test.txt mit Inhalt Blabla) lassen sich aber problemlos kopieren/schreiben.
    Lesen auch von großen Dateien und löschen geht problemlos.

    In den Logdateien steht was von:

    osmc@rpspi:~$ less /var/log/samba/log.robert-think10
    canonicalize_connect_path failed for service robert, path /home/robert

    - was aber eher was it dem nicht existenten Homeverzeichnis zu tun hat, welches die default smb.conf haben will

    osmc@rpspi:~$ less /var/log/samba/log.smbd
    [2017/05/07 12:40:59.513818, 0] ../lib/util/pidfile.c:153(pidfile_unlink)
    Failed to delete pidfile /var/run/samba/smbd.pid. Error was No such file or directory
    [2017/05/07 12:41:06, 0] ../source3/smbd/server.c:1241(main)
    smbd version 4.2.14-Debian started.
    Copyright Andrew Tridgell and the Samba Team 1992-2014
    [2017/05/07 12:41:06.416988, 0] ../lib/util/become_daemon.c:124(daemon_ready)
    STATUS=daemon 'smbd' finished starting up and ready to serve connections
    Unable to connect to CUPS server localhost:631 - Bad file descriptor
    failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
    Unable to connect to CUPS server localhost:631 - Bad file descriptor
    failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL


    Hat jemand ne Idee woran das liegen kann? File permissions können es ja eigentlich nicht sein, wenn ne kleine Datei geht. Gibt es irgendwo sowas wie ne Dateigrößenbeschränkung für Samba oder liegt es womöglich am NTFS Dateisystemtreiber?

    Danke, Bimbo385

    Bei der Konfigurationsdatei habe ich nur die bedien Freigaben für X und Y eingetragen:
    osmc@rpspi:~$ cat /etc/samba/smb.conf
    #
    # Sample configuration file for the Samba suite for Debian GNU/Linux.
    #
    #
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options most of which
    # are not shown in this example
    #
    # Some options that are often worth tuning have been included as
    # commented-out examples in this file.
    # - When such options are commented with ";", the proposed setting
    # differs from the default Samba behaviour
    # - When commented with "#", the proposed setting is the default
    # behaviour of Samba but the option is considered important
    # enough to be mentioned here
    #
    # NOTE: Whenever you modify this file you should run the command
    # "testparm" to check that you have not made any basic syntactic
    # errors.

    #======================= Global Settings =======================

    [global]

    ## Browsing/Identification ###

    # Change this to the workgroup/NT-domain name your Samba server will part of
    workgroup = DST

    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
    # wins support = no

    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z

    # This will prevent nmbd to search for NetBIOS names through DNS.
    dns proxy = no

    #### Networking ####

    # The specific set of interfaces / networks to bind to
    # This can be either the interface name or an IP address/netmask;
    # interface names are normally preferred
    ; interfaces = 127.0.0.0/8 eth0

    # Only bind to the named interfaces and/or networks; you must use the
    # 'interfaces' option above to use this.
    # It is recommended that you enable this feature if your Samba machine is
    # not protected by a firewall or is a firewall itself. However, this
    # option cannot handle dynamic or non-broadcast interfaces correctly.
    ; bind interfaces only = yes


    #### Debugging/Accounting ####

    # This tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/log.%m

    # Cap the size of the individual log files (in KiB).
    max log size = 1000

    # If you want Samba to only log through syslog then set the following
    # parameter to 'yes'.
    # syslog only = no

    # We want Samba to log a minimum amount of information to syslog. Everything
    # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
    # through syslog you should set the following parameter to something higher.
    syslog = 0

    # Do something sensible when Samba crashes: mail the admin a backtrace
    panic action = /usr/share/samba/panic-action %d


    ####### Authentication #######

    # Server role. Defines in which mode Samba will operate. Possible
    # values are "standalone server", "member server", "classic primary
    # domain controller", "classic backup domain controller", "active
    # directory domain controller".
    #
    # Most people will want "standalone sever" or "member server".
    # Running as "active directory domain controller" will require first
    # running "samba-tool domain provision" to wipe databases and create a
    # new domain.
    server role = standalone server

    # If you are using encrypted passwords, Samba will need to know what
    # password database type you are using.
    passdb backend = tdbsam

    obey pam restrictions = yes

    # This boolean parameter controls whether Samba attempts to sync the Unix
    # password with the SMB password when the encrypted SMB password in the
    # passdb is changed.
    unix password sync = yes

    # For Unix password sync to work on a Debian GNU/Linux system, the following
    # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
    # sending the correct chat script for the passwd program in Debian Sarge).
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

    # This boolean controls whether PAM will be used for password changes
    # when requested by an SMB client instead of the program listed in
    # 'passwd program'. The default is 'no'.
    pam password change = yes

    # This option controls how unsuccessful authentication attempts are mapped
    # to anonymous connections
    map to guest = bad user

    ########## Domains ###########

    #
    # The following settings only takes effect if 'server role = primary
    # classic domain controller', 'server role = backup domain controller'
    # or 'domain logons' is set
    #

    # It specifies the location of the user's
    # profile directory from the client point of view) The following
    # required a [profiles] share to be setup on the samba server (see
    # below)
    ; logon path = \\%N\profiles\%U
    # Another common choice is storing the profile in the user's home directory
    # (this is Samba's default)
    # logon path = \\%N\%U\profile

    # The following setting only takes effect if 'domain logons' is set
    # It specifies the location of a user's home directory (from the client
    # point of view)
    ; logon drive = H:
    # logon home = \\%N\%U

    # The following setting only takes effect if 'domain logons' is set
    # It specifies the script to run during logon. The script must be stored
    # in the [netlogon] share
    # NOTE: Must be store in 'DOS' file format convention
    ; logon script = logon.cmd

    # This allows Unix users to be created on the domain controller via the SAMR
    # RPC pipe. The example command creates a user account with a disabled Unix
    # password; please adapt to your needs
    ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

    # This allows machine accounts to be created on the domain controller via the
    # SAMR RPC pipe.
    # The following assumes a "machines" group exists on the system
    ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

    # This allows Unix groups to be created on the domain controller via the SAMR
    # RPC pipe.
    ; add group script = /usr/sbin/addgroup --force-badname %g

    ############ Misc ############

    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting
    ; include = /home/samba/etc/smb.conf.%m

    # Some defaults for winbind (make sure you're not using the ranges
    # for something else.)
    ; idmap uid = 10000-20000
    ; idmap gid = 10000-20000
    ; template shell = /bin/bash

    # Setup usershare options to enable non-root users to share folders
    # with the net usershare command.

    # Maximum number of usershare. 0 (default) means that usershare is disabled.
    ; usershare max shares = 100

    # Allow users who've been granted usershare privileges to create
    # public shares, not just authenticated ones
    usershare allow guests = yes

    #======================= Share Definitions =======================
    [X]
    comment = X_folder
    path = "/media/My Book/X"
    read only = no

    [Y]
    comment = Y_folder
    path = "/media/My Book/Y"
    read only = no


    [homes]
    comment = Home Directories
    browseable = no

    # By default, the home directories are exported read-only. Change the
    # next parameter to 'no' if you want to be able to write to them.
    read only = yes

    # File creation mask is set to 0700 for security reasons. If you want to
    # create files with group=rw permissions, set next parameter to 0775.
    create mask = 0700

    # Directory creation mask is set to 0700 for security reasons. If you want to
    # create dirs. with group=rw permissions, set next parameter to 0775.
    directory mask = 0700

    # By default, \\server\username shares can be connected to by anyone
    # with access to the samba server.
    # The following parameter makes sure that only "username" can connect
    # to \\server\username
    # This might need tweaking when using external authentication schemes
    valid users = %S

    # Un-comment the following and create the netlogon directory for Domain Logons
    # (you need to configure Samba to act as a domain controller too.)
    ;[netlogon]
    ; comment = Network Logon Service
    ; path = /home/samba/netlogon
    ; guest ok = yes
    ; read only = yes

    # Un-comment the following and create the profiles directory to store
    # users profiles (see the "logon path" option above)
    # (you need to configure Samba to act as a domain controller too.)
    # The path below should be writable by all users so that their
    # profile directory may be created the first time they log on
    ;[profiles]
    ; comment = Users profiles
    ; path = /home/samba/profiles
    ; guest ok = no
    ; browseable = no
    ; create mask = 0600
    ; directory mask = 0700

    [printers]
    comment = All Printers
    browseable = no
    path = /var/spool/samba
    printable = yes
    guest ok = no
    read only = yes
    create mask = 0700

    # Windows clients look for this share name as a source of downloadable
    # printer drivers
    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers
    browseable = yes
    read only = yes
    guest ok = no
    # Uncomment to allow remote administration of Windows print drivers.
    # You may need to replace 'lpadmin' with the name of the group your
    # admin users are members of.
    # Please note that you also need to set appropriate Unix permissions
    # to the drivers directory for these users to have write rights in it
    ; write list = root, @lpadmin

    Das das am Raspi nicht wirklich schnell ist, ist schon klar. Es soll nur halt nicht noch langsamer werden als eh schon...

    Ich werde am Wochenende mal einen Vergleichstest machen, jemand einen Tipp mit welchem tool man unter debian am besten die Transferrate misst? Ich hätte jetzt einfach ne große Datei und einen Ordner mit vielen kleinen Dateien kopiert und gemessen wie lange es jeweils dauert.

    Mfg Bimbo385

    ULN2803A geht völlig problemlos für 3,3 V, da hab ich schief geschaut.

    Naja das Relais sorgt ja schon für die galvanische Trennung zwischen Raspberry Pi und Verbraucher, der Sinn die Wicklung vom Relais noch mal galvanisch zu trennen erschließt sich mir nicht. Man hätte statt dessen gleich einen kleinen logic-level Mosfet nehmen sollen. Die LED mit Vorwiderstand zur Anzeige parallel zum Relais und eine ordentliche Schutzschaltung mit Freilauf- und TVS-Diode. Ob man dann noch einen Schutzwiderstand in den Gate-Pfad des Mosfets macht, kann man diskutieren.

    Mfg Bimbo385

    Das klingt schon besser. Die Leuchtdiode im Optokoppler ist mit 1,2 V angegeben. Wenn man jetzt mit 5 mA durch die Leuchtdiode im Optokoppler rechnet und die extra Leuchtdiode durch eine Brücke ersetzt, braucht man einen 420 Ohm Widerstand, statt 1000 Ohm:
    R [Ohm] = (3,3 V - 1,2 V) / 0,005 A = 420 Ohm
    Du kannst die Rechnung auch umdrehen und schauen, was mit 1 kOhm passiert:
    I [A] = (3,3 V - 1,2 V) / 1000 Ohm = 0,0021 A = 2,1 mA
    Das könnte auch noch solide funktionieren. Der Optokoppler hat ein CTR von mindesten 50 %, das heißt gut 1 mA für den nachgeschalteten NPN-Transistor. Der hat vielleicht einen hFE von 100 (kenne ja den Transistortyp nicht), macht dann 100 mA für das Relais, vielleicht auch mehr. Das könnte man riskieren, du solltest aber die Spannung am Kollektor des NPN-Transistors nachmessen, ist das mehr als 0,4 V, reicht der Strom nicht um den richtig durchzuschalten.

    Mit der sichtbaren Leuchtdiode sieht die Rechnung schon etwas anders aus, z.B. bei einer normalen grünen LED (2,1 V):
    R [Ohm] = (3,3 V - 1,2 V - 2,1 V) / 0,005 A = 0 Ohm !!!!!!! ACHTUNG NICHT MACHEN !!!!!!!!!!!
    Es bleibt mit der LED zur Anzeige bei nur 3,3 V praktisch keine Spannung für den strombegrenzenden Vorwiderstand mehr übrig.
    Das heißt im Klartext, dass sich so kein solider Arbeitspunkt einstellen kann. Bei deiner jetzigen Kombi fließt nur ein minimaler Strom, der sich irgendwie aus den Diodenkennlinien und dem 1 kOhm Widerstand ergibt und mehr oder weniger zufällig ausreicht, damit der nachgeschaltete NPN-Transistor das Relais durchschaltet. Das es so funktioniert ist eher pfusch und kann bei einer Erwärmung, Alterung oder einfach einem anderen, baugleichen Relaismodul schon anders aussehen.

    Mfg, Bimbo385

    Da muss ich Aro zustimmen, wenn ich mir den Schaltplan hier anschaue, ist da aber noch die Leuchtdiode in Reihe geschaltet.
    http://cm.lnwfile.com/_/cm/_raw/d3/rg/v7.jpg
    Das heißt im Klartext, dass der Strom durch die Leuchtdiode im Optokoppler noch kleiner ist, als Aro überschlagen hat.
    Der Widerstand ist auf deinem Foto 1 kOhm groß (der mit der 102 drauf), wo hast du die 470 Ohm her? Hast du noch einen extra 470 Ohm Widerstand am Kabel zwischen Raspberry Pi und Relaisplatine?
    Wenn der verlinkte Schaltplan stimmt, müsste das Relais auch bei GPIO=Low anziehen und bei GPIO=High abfallen, also invertierte Logik.

    Man könnte die Leuchtdiode auslöten und durch eine Brücke ersetzen und dann den 1 kOhm Widerstand anpassen. Dann müsste die Schaltung auch mit den 3,3 V GPIOs des Raspi funktionieren.

    Ich rechne das gleich mal aus.

    Mfg, Bimbo385

    Hallo an Alle,

    ich stelle mir gerade die Frage mit welchem Dateisystem ich am besten eine externe Festplatte (4 TB oder größer) formatieren soll, die

    • Dateien > 4 GiB enthält,
    • unter Windows 7, 10, Ubuntu 16.04 LTS und Raspbian problemlos lesbar und schreibbar sein muss und
    • am Raspberry Pi noch einigermaßen performant sein soll.


    In Frage kommen nach meinen Recherchen eigentlich nur exFAT und NTFS, FAT32 kann weder mit GPT Datenträgern noch mit Dateien > 4 GiB umgehen und mit ext... kommt Windows nicht klar. UDF ist soweit ich das gelesen habe für Discs und nicht für Festplatten...

    Weiß jemand was unter Raspbian noch am besten läuft, bzw. hat das schon mal ausprobiert?

    Danke,
    Bimbo385

    Wo hast du die 1,2V gemessen? Hast du ein Foto von oben, bei dem man die Verkabelung und Platine besser sieht?

    Sieht so aus, dass die GPIOs zu wenig Strom liefern, bzw. dein Widerstand zu groß ist (der schützt aber im Zweifelsfall deinen Raspi). Diese China Relaisplatinen nutzen aus völlig unverständlichen Gründen einen Optokoppler um die Relais zu schalten, für dessen Ansteuerung die GPIOs des Raspi eher nicht geeignet sind.

    Mfg Bimbo385

    Läuft klasse, kleiner Tipp für alle die das hier nachvollziehen; secpri hat den Pfad von mjpg-streamer verändert und der VLC-Player macht ca. eine Sekunde Delay, die man über den Webbrowser nicht hat.

    Nochmal Danke!

    Hi @ all,

    ich hab einen Pi B und das normale Camera Modul V1.3.

    Ich möchte damit jetzt einen Videostream erzeugen, den ich mir im Webbrowser anschauen kann um damit ein RC-Car fernzusteuern. Anforderungen sind hierbei eigentlich 720p bei 60 Hz, was die Kamera ja kann und die (W)LAN Schnittstelle auch packen sollte (1080p über WLAN geht ja auch).

    Ich hab jetzt einige Tutorials ausprobiert, die alle auf dem MJPG-Streamer basieren und mit raspistill im /tmp Verzeichnis einzelne Bilder zwischenspeichern. Damit komme ich aber auch bei 320x240 kaum auf 3 fps... Ist also nicht zu gebrauchen.

    Mach ich irgendetwas falsch oder kennt ihr eine vernünftige Methode/Tutorial? Einen richtigen Webserver brauche ich eigentlich nicht. Soll nur den Stream auf einem Port rausgeben. Will den später in die NetIO App integrieren und die passenden Steuerelemente basteln.

    Bin für gute Ideen und Hilfe dankbar!

    Mfg Bimbo385

    Hi @ all,

    ich brauche für ein Projekt (ferngesteuertes Auto mit Kamera) einen WLAN-Stick der folgende Punkte erfüllt und bin etwas unschlüssig welcher denn wirklich als AP arbeiten kann (hier steht bei AP immer nur ?) und welche Sticks auch zuverlässig funktionieren.

    - AP Modus (WPA, für Android und iOS Geräte)
    - Stromversorgung direkt über Raspberry Pi B USB-Buchse.
    - Datenübertragungsrate ausreichend für ein 720p/60 Stream + ein paar TCP Pakete
    - sollte nicht übermäßig heiß werden
    - ordentliche Reichweite (Antenne?)

    Preislich sollte es sich im Rahmen halten, bis 20 € ist OK.

    Ich hab gelesen, dass Sticks mit RT5370 wohl recht problemlos laufen, nur welche Sticks haben diesen Chip?
    Der hier: http://www.amazon.de/EDIMAX-EW-7811UN-Wireless-Adapter-IEEE802-11b/dp/B003MTTJOY?tag=psblog-21 [Anzeige] soll ein Klassiker sein, hat aber keine richtige Antenne, geht der als AP?
    http://www.amazon.de/Edimax-EW-7612UAn-Wireless-LAN-USB-Adapter-300Mbit/dp/B007H5WXB0/ref=sr_1_1?s=computers&ie=UTF8&qid=1434459941&sr=1-1&keywords=Edimax+EW-7612UAn&tag=psblog-21 [Anzeige] sieht schon besser aus, aber kann man den als AP einsetzen?

    Für Tipps, Erfahrungsberichte und konkrete Empfehlungen bin ich Dankbar!

    Grüße, Bimbo385