• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. matthijs
    M
    • Profile
    • Following 0
    • Followers 1
    • Topics 3
    • Posts 12
    • Best 1
    • Controversial 0
    • Groups 0

    matthijs

    @matthijs

    1
    Reputation
    334
    Profile views
    12
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    matthijs Unfollow Follow

    Best posts made by matthijs

    • MQTT message from and to UniPi

      Hi All, I have written a small python script to send and receive MQTT messages. Messages are send when inputs on the UniPi are changed, and UniPi outputs are changes if MQTT messages are received.

      More information here; https://github.com/matthijsberg/unipi-mqtt/

      Don't expect clean of fancy coding, just an amateur that build this for his own purpose, integrating UniPi into my Home Assistant setup.

      posted in Official API - Evok
      M
      matthijs

    Latest posts made by matthijs

    • RE: No devices in S103 anymore

      @cleve First of al thanks for the fast response. I think I did, use your supplied image and installed the packages.

      dsmeg (output is long...)

      unipi@S103-sn888:~$ dmesg
      [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
      [    0.000000] Linux version 6.6.31-v8 (root@runner-vngjf5t2-project-463-concurrent-0) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Fri Jun 28 10:02:55 UTC 2024
      [    0.000000] KASLR enabled
      [    0.000000] random: crng init done
      [    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
      [    0.000000] efi: UEFI not found.
      [    0.000000] Reserved memory: created CMA memory pool at 0x0000000037400000, size 64 MiB
      [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
      [    0.000000] OF: reserved mem: 0x0000000037400000..0x000000003b3fffff (65536 KiB) map reusable linux,cma
      [    0.000000] Zone ranges:
      [    0.000000]   DMA      [mem 0x0000000000000000-0x000000003b3fffff]
      [    0.000000]   DMA32    empty
      [    0.000000]   Normal   empty
      [    0.000000] Movable zone start for each node
      [    0.000000] Early memory node ranges
      [    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
      [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003b3fffff]
      [    0.000000] On node 0, zone DMA: 19456 pages in unavailable ranges
      [    0.000000] percpu: Embedded 21 pages/cpu s47016 r8192 d30808 u86016
      [    0.000000] pcpu-alloc: s47016 r8192 d30808 u86016 alloc=21*4096
      [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
      [    0.000000] Detected VIPT I-cache on CPU0
      [    0.000000] CPU features: kernel page table isolation forced ON by KASLR
      [    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
      [    0.000000] CPU features: detected: ARM erratum 843419
      [    0.000000] CPU features: detected: ARM erratum 845719
      [    0.000000] alternatives: applying boot alternatives
      [    0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait systemd.gpt_auto=no fsck.repair=yes persistentclock=1733673911 coherent_pool=1M 8250.nr_uarts=1 panic=10 quiet
      [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 238896
      [    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
      [    0.000000] Memory: 866128K/970752K available (11520K kernel code, 1108K rwdata, 2720K rodata, 2112K init, 989K bss, 39088K reserved, 65536K cma-reserved)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
      [    0.000000] rcu: Preemptible hierarchical RCU implementation.
      [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
      [    0.000000] 	Trampoline variant of Tasks RCU enabled.
      [    0.000000] 	Tracing variant of Tasks RCU enabled.
      [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
      [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
      [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
      [    0.000000] Root IRQ handler: bcm2836_arm_irqchip_handle_irq
      [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
      [    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
      [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
      [    0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
      [    0.000353] Console: colour dummy device 80x25
      [    0.000369] printk: console [tty1] enabled
      [    0.000466] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800)
      [    0.000487] pid_max: default: 32768 minimum: 301
      [    0.000579] LSM: initializing lsm=capability,integrity
      [    0.000719] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
      [    0.000748] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
      [    0.001699] cgroup: Disabling memory control group subsystem
      [    0.003409] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
      [    0.003513] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
      [    0.003805] rcu: Hierarchical SRCU implementation.
      [    0.003814] rcu: 	Max phase no-delay instances is 1000.
      [    0.004449] EFI services will not be available.
      [    0.004747] smp: Bringing up secondary CPUs ...
      [    0.005367] Detected VIPT I-cache on CPU1
      [    0.005506] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
      [    0.006226] Detected VIPT I-cache on CPU2
      [    0.006324] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
      [    0.006983] Detected VIPT I-cache on CPU3
      [    0.007075] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
      [    0.007169] smp: Brought up 1 node, 4 CPUs
      [    0.007190] SMP: Total of 4 processors activated.
      [    0.007200] CPU features: detected: 32-bit EL0 Support
      [    0.007207] CPU features: detected: 32-bit EL1 Support
      [    0.007217] CPU features: detected: CRC32 instructions
      [    0.007329] CPU: All CPU(s) started at EL2
      [    0.007347] alternatives: applying system-wide alternatives
      [    0.009770] devtmpfs: initialized
      [    0.023527] Enabled cp15_barrier support
      [    0.023560] Enabled setend support
      [    0.023778] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
      [    0.023804] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
      [    0.026760] pinctrl core: initialized pinctrl subsystem
      [    0.027320] DMI not present or invalid.
      [    0.027942] NET: Registered PF_NETLINK/PF_ROUTE protocol family
      [    0.034971] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
      [    0.035334] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
      [    0.035918] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
      [    0.035975] audit: initializing netlink subsys (disabled)
      [    0.036240] audit: type=2000 audit(1733673911.032:1): state=initialized audit_enabled=0 res=1
      [    0.036919] thermal_sys: Registered thermal governor 'step_wise'
      [    0.036980] cpuidle: using governor menu
      [    0.037237] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
      [    0.037367] ASID allocator initialised with 32768 entries
      [    0.037574] Serial: AMBA PL011 UART driver
      [    0.043731] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
      [    0.052607] raspberrypi-firmware soc:firmware: Attached to firmware from 2024-11-26T12:54:19, variant start
      [    0.056623] raspberrypi-firmware soc:firmware: Firmware hash is 2ae30f53898ae2f1ba77ff570a92991bedfb0398
      [    0.064597] Modules: 2G module region forced by RANDOMIZE_MODULE_REGION_FULL
      [    0.064612] Modules: 0 pages in range for non-PLT usage
      [    0.064650] Modules: 519616 pages in range for PLT usage
      [    0.132783] raid6: neonx8   gen()  1126 MB/s
      [    0.200906] raid6: neonx4   gen()  1109 MB/s
      [    0.269044] raid6: neonx2   gen()  1061 MB/s
      [    0.337175] raid6: neonx1   gen()   908 MB/s
      [    0.405296] raid6: int64x8  gen()   707 MB/s
      [    0.473418] raid6: int64x4  gen()   781 MB/s
      [    0.541533] raid6: int64x2  gen()   699 MB/s
      [    0.609668] raid6: int64x1  gen()   518 MB/s
      [    0.609678] raid6: using algorithm neonx8 gen() 1126 MB/s
      [    0.677752] raid6: .... xor() 827 MB/s, rmw enabled
      [    0.677762] raid6: using neon recovery algorithm
      [    0.678275] bcm2835-dma 3f007000.dma-controller: DMA legacy API manager, dmachans=0x1
      [    0.680948] SCSI subsystem initialized
      [    0.681175] usbcore: registered new interface driver usbfs
      [    0.681226] usbcore: registered new interface driver hub
      [    0.681289] usbcore: registered new device driver usb
      [    0.681701] pps_core: LinuxPPS API ver. 1 registered
      [    0.681711] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
      [    0.681737] PTP clock support registered
      [    0.683488] vgaarb: loaded
      [    0.683986] clocksource: Switched to clocksource arch_sys_counter
      [    0.684331] VFS: Disk quotas dquot_6.6.0
      [    0.684384] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
      [    0.684521] FS-Cache: Loaded
      [    0.684693] CacheFiles: Loaded
      [    0.694822] NET: Registered PF_INET protocol family
      [    0.695051] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
      [    0.697106] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
      [    0.697141] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
      [    0.697164] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
      [    0.697281] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
      [    0.697640] TCP: Hash tables configured (established 8192 bind 8192)
      [    0.697832] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
      [    0.697885] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
      [    0.698103] NET: Registered PF_UNIX/PF_LOCAL protocol family
      [    0.698699] RPC: Registered named UNIX socket transport module.
      [    0.698710] RPC: Registered udp transport module.
      [    0.698718] RPC: Registered tcp transport module.
      [    0.698725] RPC: Registered tcp-with-tls transport module.
      [    0.698732] RPC: Registered tcp NFSv4.1 backchannel transport module.
      [    0.698753] PCI: CLS 0 bytes, default 64
      [    0.699599] kvm [1]: IPA Size Limit: 40 bits
      [    0.700862] kvm [1]: Hyp mode initialized successfully
      [    0.702086] Initialise system trusted keyrings
      [    0.702294] workingset: timestamp_bits=46 max_order=18 bucket_order=0
      [    0.702327] zbud: loaded
      [    0.703126] NFS: Registering the id_resolver key type
      [    0.703154] Key type id_resolver registered
      [    0.703163] Key type id_legacy registered
      [    0.703191] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
      [    0.703201] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
      [    0.703725] xor: measuring software checksum speed
      [    0.711602]    8regs           :  1262 MB/sec
      [    0.719425]    32regs          :  1262 MB/sec
      [    0.727912]    arm64_neon      :  1167 MB/sec
      [    0.727924] xor: using function: 32regs (1262 MB/sec)
      [    0.727941] Key type asymmetric registered
      [    0.727950] Asymmetric key parser 'x509' registered
      [    0.728033] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
      [    0.728199] io scheduler mq-deadline registered
      [    0.728211] io scheduler kyber registered
      [    0.728251] io scheduler bfq registered
      [    0.729783] pinctrl-bcm2835 3f200000.gpio: GPIO_OUT persistence: yes
      [    0.731907] simple-framebuffer 3eaf0000.framebuffer: framebuffer at 0x3eaf0000, 0x10a800 bytes
      [    0.731929] simple-framebuffer 3eaf0000.framebuffer: format=a8r8g8b8, mode=656x416x32, linelength=2624
      [    0.732471] Console: switching to colour frame buffer device 82x26
      [    0.734885] simple-framebuffer 3eaf0000.framebuffer: fb0: simplefb registered!
      [    0.737631] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
      [    0.739265] bcm2835-rng 3f104000.rng: hwrng registered
      [    0.739599] vc-mem: phys_addr:0x00000000 mem_base=0x00000000 mem_size:0x00000000(0 MiB)
      [    0.752511] brd: module loaded
      [    0.758149] loop: module loaded
      [    0.758744] Loading iSCSI transport class v2.0-870.
      [    0.763337] usbcore: registered new device driver r8152-cfgselector
      [    0.763395] usbcore: registered new interface driver r8152
      [    0.763441] usbcore: registered new interface driver lan78xx
      [    0.763486] usbcore: registered new interface driver smsc95xx
      [    0.763718] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
      [    0.964226] Core Release: 2.80a
      [    0.964244] Setting default values for core params
      [    0.964265] Finished setting default values for core params
      [    1.164569] Using Buffer DMA mode
      [    1.164577] Periodic Transfer Interrupt Enhancement - disabled
      [    1.164585] Multiprocessor Interrupt Enhancement - disabled
      [    1.164592] OTG VER PARAM: 0, OTG VER FLAG: 0
      [    1.164606] Dedicated Tx FIFOs mode
      
      [    1.165808] WARN::dwc_otg_hcd_init:1072: FIQ DMA bounce buffers: virt = ffffffc080481000 dma = 0x00000000f7800000 len=9024
      [    1.165842] FIQ FSM acceleration enabled for :
                     Non-periodic Split Transactions
                     Periodic Split Transactions
                     High-Speed Isochronous Endpoints
                     Interrupt/Control Split Transaction hack enabled
      [    1.165856] dwc_otg: Microframe scheduler enabled
      
      [    1.165900] WARN::hcd_init_fiq:496: MPHI regs_base at ffffffc08006d000
      [    1.165951] dwc_otg 3f980000.usb: DWC OTG Controller
      [    1.165985] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
      [    1.166024] dwc_otg 3f980000.usb: irq 74, io mem 0x00000000
      [    1.166076] Init: Port Power? op_state=1
      [    1.166084] Init: Power Port (0)
      [    1.166322] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
      [    1.166341] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      [    1.166356] usb usb1: Product: DWC OTG Controller
      [    1.166367] usb usb1: Manufacturer: Linux 6.6.31-v8 dwc_otg_hcd
      [    1.166380] usb usb1: SerialNumber: 3f980000.usb
      [    1.167097] hub 1-0:1.0: USB hub found
      [    1.167148] hub 1-0:1.0: 1 port detected
      [    1.167791] dwc_otg: FIQ enabled
      [    1.167801] dwc_otg: NAK holdoff enabled
      [    1.167808] dwc_otg: FIQ split-transaction FSM enabled
      [    1.167823] Module dwc_common_port init
      [    1.168287] usbcore: registered new interface driver uas
      [    1.168355] usbcore: registered new interface driver usb-storage
      [    1.168607] mousedev: PS/2 mouse device common for all mice
      [    1.170167] sdhci: Secure Digital Host Controller Interface driver
      [    1.170177] sdhci: Copyright(c) Pierre Ossman
      [    1.170358] sdhci-pltfm: SDHCI platform and OF driver helper
      [    1.172349] ledtrig-cpu: registered to indicate activity on CPUs
      [    1.172739] hid: raw HID events driver (C) Jiri Kosina
      [    1.172910] usbcore: registered new interface driver usbhid
      [    1.172920] usbhid: USB HID core driver
      [    1.173995] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
      [    1.175106] NET: Registered PF_PACKET protocol family
      [    1.175219] Key type dns_resolver registered
      [    1.211438] registered taskstats version 1
      [    1.211735] Loading compiled-in X.509 certificates
      [    1.225430] Key type .fscrypt registered
      [    1.225454] Key type fscrypt-provisioning registered
      [    1.227736] Btrfs loaded, zoned=no, fsverity=no
      [    1.232896] 3f215040.serial: ttyS0 at MMIO 0x3f215040 (irq = 71, base_baud = 50000000) is a 16550
      [    1.233979] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
      [    1.234284] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
      [    1.235447] sdhost: log_buf @ 000000006f4bf1bc (c29c7000)
      [    1.276110] Indeed it is in host mode hprt0 = 00021501
      [    1.284026] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
      [    1.284394] uart-pl011 3f201000.serial: cts_event_workaround enabled
      [    1.284812] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 99, base_baud = 0) is a PL011 rev2
      [    1.286407] of_cfs_init
      [    1.286549] of_cfs_init: OK
      [    1.286698] clk: Disabling unused clocks
      [    1.288839] Waiting for root device /dev/mmcblk0p2...
      [    1.319269] mmc0: host does not support reading read-only switch, assuming write-enable
      [    1.322029] mmc0: Host Software Queue enabled
      [    1.322051] mmc0: new high speed SDXC card at address 59b4
      [    1.323007] mmcblk0: mmc0:59b4 USDU1 57.5 GiB
      [    1.325565]  mmcblk0: p1 p2
      [    1.326109] mmcblk0: mmc0:59b4 USDU1 57.5 GiB
      [    1.353621] EXT4-fs (mmcblk0p2): mounted filesystem 05ce360d-0a9b-4ebf-9980-f48376299099 r/w with ordered data mode. Quota mode: none.
      [    1.353731] VFS: Mounted root (ext4 filesystem) on device 179:2.
      [    1.358269] devtmpfs: mounted
      [    1.360650] Freeing unused kernel memory: 2112K
      [    1.360767] Run /sbin/init as init process
      [    1.360776]   with arguments:
      [    1.360782]     /sbin/init
      [    1.360788]   with environment:
      [    1.360794]     HOME=/
      [    1.360800]     TERM=linux
      [    1.464034] usb 1-1: new high-speed USB device number 2 using dwc_otg
      [    1.464237] Indeed it is in host mode hprt0 = 00001101
      [    1.672409] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
      [    1.672446] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      [    1.673259] hub 1-1:1.0: USB hub found
      [    1.673415] hub 1-1:1.0: 5 ports detected
      [    1.964023] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
      [    2.055029] systemd[1]: Inserted module 'autofs4'
      [    2.064466] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
      [    2.064499] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      [    2.067308] smsc95xx v2.0.0
      [    2.175801] SMSC LAN8700 usb-001:003:01: attached PHY driver (mii_bus:phy_addr=usb-001:003:01, irq=184)
      [    2.176736] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:3d:ff:66
      [    2.206389] NET: Registered PF_INET6 protocol family
      [    2.208044] Segment Routing with IPv6
      [    2.208091] In-situ OAM (IOAM) with IPv6
      [    2.268509] systemd[1]: systemd 252.31-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
      [    2.268559] systemd[1]: Detected architecture arm64.
      [    2.281387] systemd[1]: Hostname set to <S103-sn888>.
      [    2.342421] systemd[1]: Using hardware watchdog 'Broadcom BCM2835 Watchdog timer', version 0, device /dev/watchdog0
      [    2.342555] systemd[1]: Watchdog running with a hardware timeout of 10s.
      [    3.154462] systemd[1]: Condition check resulted in system.slice - System Slice being skipped.
      [    3.154761] systemd[1]: Condition check resulted in -.slice - Root Slice being skipped.
      [    3.160874] systemd[1]: Queued start job for default target graphical.target.
      [    3.188090] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
      [    3.190103] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
      [    3.191841] systemd[1]: Created slice system-systemd\x2dgrowfs.slice - Slice /system/systemd-growfs.
      [    3.193017] systemd[1]: Created slice user.slice - User and Session Slice.
      [    3.193774] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
      [    3.194217] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
      [    3.195314] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
      [    3.195463] systemd[1]: Expecting device dev-mmcblk0p1.device - /dev/mmcblk0p1...
      [    3.195560] systemd[1]: Expecting device sys-devices-platform-unipi\x2did.device - /sys/devices/platform/unipi-id...
      [    3.195692] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
      [    3.195930] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
      [    3.196316] systemd[1]: Reached target paths.target - Path Units.
      [    3.196482] systemd[1]: Reached target remote-fs.target - Remote File Systems.
      [    3.196606] systemd[1]: Reached target slices.target - Slice Units.
      [    3.196779] systemd[1]: Reached target swap.target - Swaps.
      [    3.197003] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
      [    3.197584] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
      [    3.200038] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
      [    3.200993] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
      [    3.201878] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
      [    3.203002] systemd[1]: Listening on systemd-networkd.socket - Network Service Netlink Socket.
      [    3.204752] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
      [    3.205485] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
      [    3.206427] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
      [    3.224481] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
      [    3.225516] systemd[1]: sys-kernel-debug.mount - Kernel Debug File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/debug).
      [    3.226285] systemd[1]: sys-kernel-tracing.mount - Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
      [    3.233113] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
      [    3.240176] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
      [    3.247396] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
      [    3.254717] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
      [    3.262234] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
      [    3.269713] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
      [    3.279028] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
      [    3.300085] systemd[1]: Starting systemd-journald.service - Journal Service...
      [    3.316504] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
      [    3.325303] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
      [    3.332833] systemd[1]: Starting systemd-network-generator.service - Generate network units from Kernel command line...
      [    3.333042] fuse: init (API version 7.39)
      [    3.339746] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
      [    3.347757] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
      [    3.364955] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
      [    3.373003] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
      [    3.375409] systemd[1]: modprobe@configfs.service: Deactivated successfully.
      [    3.376708] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs.
      [    3.379043] systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
      [    3.384404] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
      [    3.386635] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
      [    3.392905] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
      [    3.395132] systemd[1]: modprobe@fuse.service: Deactivated successfully.
      [    3.399542] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse.
      [    3.401955] systemd[1]: modprobe@loop.service: Deactivated successfully.
      [    3.402937] systemd[1]: Finished modprobe@loop.service - Load Kernel Module loop.
      [    3.444711] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
      [    3.448612] i2c_dev: i2c /dev entries driver
      [    3.451080] systemd[1]: Mounting sys-kernel-config.mount - Kernel Configuration File System...
      [    3.451795] systemd[1]: systemd-repart.service - Repartition Root Disk was skipped because no trigger condition checks were met.
      [    3.460796] EXT4-fs (mmcblk0p2): re-mounted 05ce360d-0a9b-4ebf-9980-f48376299099 r/w. Quota mode: none.
      [    3.472588] systemd[1]: modprobe@drm.service: Deactivated successfully.
      [    3.473516] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
      [    3.475606] systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules.
      [    3.477596] systemd[1]: Finished systemd-network-generator.service - Generate network units from Kernel command line.
      [    3.479262] systemd[1]: Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
      [    3.480431] systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
      [    3.481265] systemd[1]: Mounted sys-kernel-config.mount - Kernel Configuration File System.
      [    3.482505] systemd[1]: Reached target network-pre.target - Preparation for Network.
      [    3.482825] systemd[1]: systemd-firstboot.service - First Boot Wizard was skipped because of an unmet condition check (ConditionFirstBoot=yes).
      [    3.488534] systemd[1]: Starting systemd-growfs@-.service - Grow File System on /...
      [    3.489026] systemd[1]: systemd-pstore.service - Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
      [    3.497121] systemd[1]: Starting systemd-random-seed.service - Load/Save Random Seed...
      [    3.508459] systemd[1]: Starting systemd-sysctl.service - Apply Kernel Variables...
      [    3.521493] systemd[1]: Starting systemd-sysusers.service - Create System Users...
      [    3.609967] systemd[1]: Finished systemd-random-seed.service - Load/Save Random Seed.
      [    3.610767] systemd[1]: first-boot-complete.target - First Boot Complete was skipped because of an unmet condition check (ConditionFirstBoot=yes).
      [    3.632709] systemd[1]: Started systemd-journald.service - Journal Service.
      [    3.643735] EXT4-fs (mmcblk0p2): resizing filesystem from 15015424 to 15015424 blocks
      [    3.724085] systemd-journald[111]: Received client request to flush runtime journal.
      [    4.697209] unipi_id: loading out-of-tree module taints kernel.
      [    4.729364] cfg80211: Loading compiled-in X.509 certificates for regulatory database
      [    4.767118] Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
      [    4.769197] Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
      [    4.770797] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
      [    4.773249] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
      [    4.820636] spi_master spi0: will run message pump with realtime priority
      [    4.821505] unipi-spi spi0.1: spi channel looks empty
      [    4.821793] unipi-spi: Driver registered. Major Version: 2.52:2024:04:26
      [    4.822477] Driver for 1-wire Dallas network protocol.
      [    4.831200] ds2482 1-0018: DS2482 reset failed.
      [    4.844496] at24 1-0057: supply vcc not found, using dummy regulator
      [    4.845544] at24 1-0057: 128 byte 24c01 EEPROM, writable, 1 bytes/write
      [    4.859891] unipi-id unipi-id: Found PLC S103 (family Neuron)
      [    4.862266] rtc-unipi 1-006f: registered as rtc0
      [    4.863350] rtc-unipi 1-006f: setting system clock to 2024-12-08T16:05:17 UTC (1733673917)
      [    4.895888] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
      [    4.899209] smsc95xx 1-1.1:1.0 eth0: Link is Up - 100Mbps/Full - flow control off
      [    5.846676] OS Configurator: check started
      [    5.887076] OS Configurator: Check complete, no changes
      [   42.753448] systemd[222]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
      

      and

      unipi@S103-sn888:~$ systemctl status evok
      * evok.service - EVOK Rest/WebSocket/RPC Server
           Loaded: loaded (/lib/systemd/system/evok.service; enabled; preset: enabled)
           Active: active (running) since Sun 2024-12-08 16:05:18 UTC; 1 day 5h ago
         Main PID: 184 (evok)
            Tasks: 1 (limit: 1014)
              CPU: 54.928s
           CGroup: /system.slice/evok.service
                   `-184 /opt/evok/bin/python /opt/evok/bin/evok
      
      posted in Official API - Evok
      M
      matthijs
    • No devices in S103 anymore

      Hi,

      I lost all my devices in my UniPi S103 device. Did not see anything anymore in the web interface (was on old Evok / Debian). Re-created the image based on the latest Bookworm image and installed the packages for unipi Evok and the web interface manually.

      I still do not see any devices. Tried a firmware upgrade, but no devices show up in dev and the firmware fwspi upgrade tool cannot find any devices with the new nor the old device version.

      Any ideas?

      There is one weird thing, I do see this in the web-interface, but I do have to note that I also have a extension units connected.

      unipi2-error.png

      posted in Official API - Evok
      M
      matthijs
    • RE: 1-wire sensor and modbus sensor

      @martin_triska said in 1-wire sensor and modbus sensor:

      in this case, you have to tie the wires manually ON THE SENSOR. According to the photo, you have to connect dark-green and light-brown wires together ON THE PCB

      Yes, that did the trick!

      Thanks for the education and superb support here Martin. Really enjoy using your products.

      posted in Other Peripherals
      M
      matthijs
    • RE: 1-wire sensor and modbus sensor

      Here is a picture
      Screenshot 2020-11-26 at 12.51.01.png

      posted in Other Peripherals
      M
      matthijs
    • RE: 1-wire sensor and modbus sensor

      @martin_triska I tried connecting the modules via this drawing; 2fb638dc-0595-4ce0-bb45-2be7ff482d0f-image.png

      So 2 wires to + and 2 wires to GND and I needed to change wires to other ports from my previous situation. Does not show up at all now anymore now. :-(

      Also, I do not understand where to bridge the wires to make it a daisy chain. Do i just need to place a wire on the sensor between 1W> and 1W< to loop it?

      Am I following the right picture?

      posted in Other Peripherals
      M
      matthijs
    • RE: Energy metering with PRO380-Mod

      Hi All,

      I just got a PRO380 to measure energy from my solar panels from my Neuron device. Since I don't want to run (learn ;-)) NodeRed and there is no turn key solution for native integration of the MOD380 in Evok I searched the internet and found this; https://github.com/volkszaehler/mbmd

      This spins up a webserver with API and MQTT / InfluxDB integration for different energy meter including the PRO380. Works like a charm for me.

      Some steps I did;

      • Connect the meter to a RS485 port on the Unipi and enable the dip-switch
      • Make sure that for that particular RS485 port there is no config in /etc/evok.conf (So yes, you need a unused / free port). When I had the port configured in the conf file I did not work, presumably because Evok is intercepting the traffic)
      • Download the pre-compiled binaries from GitHub and extract as documented
      • Perform a scan over modbus to see if your device is found with the command /usr/local/bin/mbmd scan --rtu -v --raw --comset 8E1 -a /dev/ttyNS1 . Note that ttyNS1 is my SECOND port on my device (2.01). Adjust this as needed for your device.
        My Output was the following (I changed the ID of the PRO380 to 5 on the device:
        2020/11/25 09:47:52 config: creating RTU connection for /dev/ttyNS1 (9600baud, 8E1)
        2020/11/25 09:47:52 starting bus scan on /dev/ttyNS1
        2020/11/25 09:47:56 device 1: n/a
        2020/11/25 09:48:00 device 2: n/a
        2020/11/25 09:48:04 device 3: n/a
        2020/11/25 09:48:08 device 4: n/a
        2020/11/25 09:48:10 device 5: INEPRO type device found, VoltageL1: 239.90
      • Start the webserver with the command /usr/local/bin/mbmd run --rtu --comset 8E1 -a /dev/ttyNS1 -d INEPRO:5 --mqtt-broker tcp://1.1.1.1:1883 --api 0.0.0.0:1380. Also make sure you adjust the ttyNS port numer. As example I included a MQTT broker IP. Please read the docs for further config or InfluxDB integration.

      Do Note that I redirect the webserver port to 1380 because 8080 is already in use. Go to the IP of your Neuron device on port 1380 and see what happens. I see the information coming up nicely. :-). There are API possibilities too to extract data, or push via MQTT or InfluxDB.

      If this is what you want to keep, set up a service to start with your device, how to is also in the docs.

      Perhaps this helps someone. It fairly easy to use. :-)

      posted in Neuron Series
      M
      matthijs
    • RE: 1-wire sensor and modbus sensor

      @martin_triska said in 1-wire sensor and modbus sensor:

      have tied data lines (

      No, I don't believe I did. Is the order of the wires relevant? So if I would switch the data lines on a sensor, would that explain this behavior?

      posted in Other Peripherals
      M
      matthijs
    • RE: 1-wire sensor and modbus sensor

      I used my 2nd system to try this. I have 3 sensors connected to a 8 port hub. The sensors work, those are test sensors from my other setup.

      @martin_triska said in 1-wire sensor and modbus sensor:

      Go to http://<your unit IP address>/rest/all and look for the 1wdevice objects - are all sensors connected listed here?

      No, only the sensor I see in the GUI is listed here.

      Can you describe your application (exact components used and wiring diagram)?

      It's fairly simple, a std UTP cable between my Unipi and the 8 port HUB, and 3 device from there;
      unipi-1wire.jpg

      I do have to note that I have sensors from SEDtronic directly too, since they can come coated. The first sensor in line is of that type for outdoor temp / hum measurement.

      posted in Other Peripherals
      M
      matthijs
    • 1-wire sensor and modbus sensor

      Hi All,

      I have 2 unipi devices with Evok and attached to that some 1-wire sensors via an 8 port hub. Some of those sensors show up as a 1-wire sensors, where others show up as mod-bus devices. I also think that if they show up as modbus devices only one sensors is recognized. (I have multiple connected, only 1 shows up - not in screenshot)

      The sensor recognized as 1-wire is a DS18B20 sensor.
      The sensor recognized as modbus is a 1W-TH sensor.

      Can someone help me with this? Is this expected behavior (hope not) or do I need to change something in hard- or software?

      Here is a screenshot;Screenshot 2020-11-12 at 11.36.43.png

      posted in Other Peripherals
      M
      matthijs
    • MQTT message from and to UniPi

      Hi All, I have written a small python script to send and receive MQTT messages. Messages are send when inputs on the UniPi are changed, and UniPi outputs are changes if MQTT messages are received.

      More information here; https://github.com/matthijsberg/unipi-mqtt/

      Don't expect clean of fancy coding, just an amateur that build this for his own purpose, integrating UniPi into my Home Assistant setup.

      posted in Official API - Evok
      M
      matthijs