Modbus (RS485)

Wikipedia

Modbus

Software

Modbus Poll
Modbus Poll Download

Shop

USB-RS485i
ADAPTER USB AUF RS485 / MODBUS


Fehlercode

Modbus RTU einfach gemacht mit detaillierten Beschreibungen und Beispielen

  • DCON Utility Pro mit Unterstützung für Modbus RTU, ASCII, DCON
  • Modbus Master Tool mit Unterstützung für Modbus RTU, ASCII, TCP
  • Modbus TCP client mit Modbus-TCP-Unterstützung
Funktionscode aus der Anfrage Geänderter Funktionscode als Antwort
01 (01 hex) 0000 0001
(Lies digitalen Ausgang!)
129 (81 hex) 1000 0001
(Konnte digitalen Ausgang nicht lesen.)
02 (02 hex) 0000 0010
(Lies digitalen Eingang!)
130 (82 hex) 1000 0010
(Konnte digitalen Eingang nicht lesen.)
03 (03 hex) 0000 0011
(Lies analogen Ausgang!)
131 (83 hex) 1000 0011
(Konnte analogen Ausgang nicht lesen.)
04 (04 hex) 0000 0100
(Lies analogen Eingang!)
132 (84 hex) 1000 0100
(Konnte analogen Eingang nicht lesen.)
05 (05 hex) 0000 0101
(Setze einen digitalen Ausgang!)
133 (85 hex) 1000 0101
(Konnte den digitalen Ausgang nicht setzen.)
06 (06 hex) 0000 0110
(Setze einen analogen Ausgang!)
134 (86 hex) 1000 0110
(Konnte den Analogen Ausgang nicht setzen.)
15 (0F hex) 0000 1111
(Setze mehrere digitale Ausgänge!)
143 (8F hex) 1000 1111
(Beim Setzen der digitalen Ausgänge ist ein Fehler aufgetreten.)
16 (10 hex) 0001 0000
(Setze mehrere analoge Ausgänge!)
144 (90 hex) 1001 0000
(Beim Setzen der analogen Ausgänge ist ein Fehler aufgetreten.)

Erläuterung der Fehlercodes

01 Unbekannter Funktionscode.
02 Die in der Anfrage angegebene Registeradresse ist nicht verfügbar.
03 Der im Abfragedatenfeld enthaltene Wert ist ein ungültiger Wert.
04 Ein nicht behebbarer Fehler trat auf, während der Slave versuchte, die angeforderte Aktion auszuführen.
05 Der Slave hat die Anfrage angenommen und bearbeitet sie, aber es dauert lange. Diese Antwort verhindert, dass der Host einen Zeitüberschreitungsfehler erzeugt.
06 Der Slave ist mit der Verarbeitung eines Befehls beschäftigt. Der Master muss die Nachricht später wiederholen, wenn der Slave freigegeben wird.
07 Der Slave kann die in der Anforderung angegebene Programmfunktion nicht ausführen. Dieser Code wird bei einer erfolglosen Programmanforderung mit Funktionen mit den Nummern 13 oder 14 zurückgegeben. Der Master muss Diagnoseinformationen oder Fehlerinformationen vom Slave anfordern.
08 Der Slave hat beim Lesen des Erweiterungsspeichers einen Paritätsfehler festgestellt. Der Master kann die Anforderung wiederholen, aber normalerweise sind in solchen Fällen Reparaturen erforderlich.


ModbusTool

github.com/ClassicDIY/ModbusTool, A modbus master and slave test tool with import and export functionality, supports TCP, UDP and RTU.

BYTE ANFRAGE BYTE ANTWORT
(Hex) Feldname (Hex) Feldname
11 Geräteadresse 11 Geräteadresse
03 Funktionaler Code 03 Funktionaler Code
00 Adresse des ersten Registers Hi Bytes 06 Anzahl der Antwortbytes bei 16bit pro Wert)
6B Adresse des ersten Registers Lo Bytes AE Registerwert Hi #40108
00 Anzahl der Register Hi Bytes 41 Registerwert Lo #40108
03 Anzahl der Register Lo Bytes 56 Registerwert Hi #40109
76 Prüfsumme CRC 52 Registerwert Lo #40109
87 Prüfsumme CRC 43 Registerwert Hi #40110
40 Registerwert Lo #40110
49 Prüfsumme CRC
AD Prüfsumme CRC

TX: 01 03 00 00 00 00 40 44 3a
03: Lies analogen Ausgang

RX: 01 83 02 c0 f1
83: Konnte analogen Ausgang nicht lesen.
02: Die in der Anfrage angegebene Registeradresse ist nicht verfügbar.

TX: 01 03 00 06 00 40 a4 3b
RX: 01 83 02 c0 f1

TX: 01 03 00 06 00 04 a4 08
RX: 01 03 08 00 00 03 e8 03 e8 03 e8 75 3d

TX: 01 03 00 06 00 08 a4 08
RX: 01 03 08 00 00 03 e8 03 e8 03 e8 00 00 00 00 00 00 89 c4


YouTube

Torben Ledermann

Modbus: Wie funktioniert Gebäudeautomation? – #04 Querkommunikation mit Modbus
KNX – Videoserie, Playlist
Grundlagen – GA

  • Wie funktioniert Gebäudeautomation? – #01 Was ist ein Feldbussystem?
  • Wie funktioniert Gebäudeautomation? – #02 Was ist EnOcean?
  • DALI: Wie funktioniert Gebäudeautomation? – #03 Lichtsteuerung mit DALI
  • Modbus: Wie funktioniert Gebäudeautomation? – #04 Querkommunikation mit Modbus


Protocol Description

Protocol Description
What is the Modbus Protocol & How Does It Work?
Updated Dec 7, 2022

Modbus RTU Grundlagen
Modbus RTU einfach gemacht mit detaillierten Beschreibungen und Beispielen

Modbus Protocol Reference Guide (PDF)


Mikrocontroller

YouTube

a href=”https://www.youtube.com/watch?v=zrT1bVjxHdk”>BitBastelei #321 – WLAN-Stromzähler mit Modbus, ESP8266/Arduino und SDM120

GitHub

github.com/reaper7/SDM_Energy_Meter


MinimalModbus

MinimalModbus

GitHub

github.com/pyhys/minimalmodbus


SmartEVSE-3

Unable to read modbus on V3 #1

GitHub

github.com/SmartEVSE/SmartEVSE-3, Smart Electric Vehicle Charging Station (EVSE)
github.com/SmartEVSE/Sensorbox-2, Sensorbox-2 will measure three phase current with CT’s or a Smart Meter connection, and send this data to a SmartEVSE


eModbus

eModbus

GitHub

github.com/eModbus/eModbus, Modbus library for RTU, ASCII and TCP protocols. Primarily developed on and for ESP32 MCUs.

Lenovo IdeaCentre 3 07IAB7 Desktop – Type 90SM

Lenovo

Support: IdeaCentre 3 07IAB7 Desktop – Type 90SM

IdeaCentre 3 07IAB7 PSREF Product Specifications Reference
IdeaCentre 3 Hardware Maintenance Manual

Audio

How to install Realtek Audio Drivers for Ubuntu?
Realtek audio driver or generic audio driver?
PC Audio Codecs > High Definition Audio Codecs Software

mint@mint:~$ dmesg | grep -i realtek
[   13.675660] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC623: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[   13.675666] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=1 (0x17/0x0/0x0/0x0/0x0)
[   13.675669] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[   13.675671] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[   13.675672] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[   13.675673] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[   13.675675] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x18
[   20.973250] Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[   26.916946] Generic FE-GE Realtek PHY r8169-0-300:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!


mint@mint:~$ pacmd list-cards
2 card(s) available.
    index: 0
	name: <alsa_card.usb-046d_0990_7606FCDD-02>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "1"
		alsa.card_name = "QuickCam Pro 9000"
		alsa.long_card_name = "Logitech, Inc. QuickCam Pro 9000 at usb-0000:00:14.0-8.4, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:8.4:1.2"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.4/1-8.4:1.2/sound/card1"
		udev.id = "usb-046d_0990_7606FCDD-02"
		device.bus = "usb"
		device.vendor.id = "046d"
		device.vendor.name = "Logitech, Inc."
		device.product.id = "0990"
		device.product.name = "QuickCam Pro 9000"
		device.serial = "046d_0990_7606FCDD"
		device.form_factor = "webcam"
		device.string = "1"
		device.description = "QuickCam Pro 9000"
		module-udev-detect.discovered = "1"
		device.icon_name = "camera-web-usb"
	profiles:
		input:mono-fallback: Mono Input (priority 1, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <input:mono-fallback>
	sources:
		alsa_input.usb-046d_0990_7606FCDD-02.mono-fallback/#0: QuickCam Pro 9000 Mono
	ports:
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
    index: 1
	name: <alsa_card.pci-0000_00_1f.3>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x6001138000 irq 144"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "7ad0"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: no)
		output:analog-stereo: Analog Stereo Output (priority 39268, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
		output:hdmi-stereo-extra5+input:analog-stereo: Digital Stereo (HDMI 6) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround-extra5+input:analog-stereo: Digital Surround 5.1 (HDMI 6) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround71-extra5+input:analog-stereo: Digital Surround 7.1 (HDMI 6) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (priority 5700, available: no)
		output:hdmi-stereo-extra6+input:analog-stereo: Digital Stereo (HDMI 7) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (priority 600, available: no)
		output:hdmi-surround-extra6+input:analog-stereo: Digital Surround 5.1 (HDMI 7) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (priority 600, available: no)
		output:hdmi-surround71-extra6+input:analog-stereo: Digital Surround 7.1 (HDMI 7) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra7: Digital Stereo (HDMI 8) Output (priority 5700, available: no)
		output:hdmi-stereo-extra7+input:analog-stereo: Digital Stereo (HDMI 8) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra7: Digital Surround 5.1 (HDMI 8) Output (priority 600, available: no)
		output:hdmi-surround-extra7+input:analog-stereo: Digital Surround 5.1 (HDMI 8) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra7: Digital Surround 7.1 (HDMI 8) Output (priority 600, available: no)
		output:hdmi-surround71-extra7+input:analog-stereo: Digital Surround 7.1 (HDMI 8) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra8: Digital Stereo (HDMI 9) Output (priority 5700, available: no)
		output:hdmi-stereo-extra8+input:analog-stereo: Digital Stereo (HDMI 9) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra8: Digital Surround 5.1 (HDMI 9) Output (priority 600, available: no)
		output:hdmi-surround-extra8+input:analog-stereo: Digital Surround 5.1 (HDMI 9) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra8: Digital Surround 7.1 (HDMI 9) Output (priority 600, available: no)
		output:hdmi-surround71-extra8+input:analog-stereo: Digital Surround 7.1 (HDMI 9) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra9: Digital Stereo (HDMI 10) Output (priority 5700, available: no)
		output:hdmi-stereo-extra9+input:analog-stereo: Digital Stereo (HDMI 10) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra9: Digital Surround 5.1 (HDMI 10) Output (priority 600, available: no)
		output:hdmi-surround-extra9+input:analog-stereo: Digital Surround 5.1 (HDMI 10) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra9: Digital Surround 7.1 (HDMI 10) Output (priority 600, available: no)
		output:hdmi-surround71-extra9+input:analog-stereo: Digital Surround 7.1 (HDMI 10) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra10: Digital Stereo (HDMI 11) Output (priority 5700, available: no)
		output:hdmi-stereo-extra10+input:analog-stereo: Digital Stereo (HDMI 11) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra10: Digital Surround 5.1 (HDMI 11) Output (priority 600, available: no)
		output:hdmi-surround-extra10+input:analog-stereo: Digital Surround 5.1 (HDMI 11) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra10: Digital Surround 7.1 (HDMI 11) Output (priority 600, available: no)
		output:hdmi-surround71-extra10+input:analog-stereo: Digital Surround 7.1 (HDMI 11) Output + Analog Stereo Input (priority 665, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#1: Monitor of Built-in Audio Analog Stereo
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
			properties:
				
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-6: HDMI / DisplayPort 7 (priority 5300, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-7: HDMI / DisplayPort 8 (priority 5200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-8: HDMI / DisplayPort 9 (priority 5100, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-9: HDMI / DisplayPort 10 (priority 5000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-10: HDMI / DisplayPort 11 (priority 4900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"


mint@mint:~$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 30129 /  46% / -20.25 dB,   front-right: 30129 /  46% / -20.25 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 3.21 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 1
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 2
	linked by: 2
	configured latency: 2.51 ms; range is 0.50 .. 2000.00 ms
	card: 1 <alsa_card.pci-0000_00_1f.3>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC623 Analog"
		alsa.id = "ALC623 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x6001138000 irq 144"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "7ad0"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
			properties:
				
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>


mint@mint:~$ inxi -Fxz
System:
  Kernel: 5.15.0-56-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
    Desktop: Cinnamon 5.6.5 Distro: Linux Mint 21.1 Vera
    base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: LENOVO product: 90SM008BMZ v: IdeaCentre 3 07IAB7
    serial: <superuser required>
  Mobo: LENOVO model: 32E9 v: SDK0T76463 WIN 3422200072936
    serial: <superuser required> UEFI: LENOVO v: M49KT1FA date: 10/20/2022
Battery:
  Device-1: hidpp_battery_0
    model: Logitech Wireless Mobile Mouse MX Anywhere 2S
    charge: 10% (should be ignored) status: Discharging
CPU:
  Info: 6-core model: 12th Gen Intel Core i5-12400 bits: 64 type: MT MCP
    arch: Alder Lake rev: 5 cache: L1: 480 KiB L2: 7.5 MiB L3: 18 MiB
  Speed (MHz): avg: 1356 high: 1588 min/max: 800/5600 cores: 1: 1203
    2: 1202 3: 1277 4: 1588 5: 1311 6: 1468 7: 1410 8: 1503 9: 1323 10: 1461
    11: 1070 12: 1458 bogomips: 59904
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0
  Device-2: Logitech QuickCam Pro 9000 type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-8.4:7
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel Graphics (ADL-S GT1) v: 4.6 Mesa 22.0.5
    direct render: Yes
Audio:
  Device-1: Intel vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3
  Device-2: Logitech QuickCam Pro 9000 type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-8.4:7
  Sound Server-1: ALSA v: k5.15.0-56-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 driver: iwlwifi v: kernel port: N/A bus-ID: 00:14.3
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: 3000 bus-ID: 03:00.0
  IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 484.41 GiB used: 2.49 GiB (0.5%)
  ID-1: /dev/nvme0n1 vendor: Lenovo model: UMIS RPETJ512MGE2QDQ
    size: 476.94 GiB temp: 22.9 C
  ID-2: /dev/sda type: USB vendor: Verbatim model: STORE N GO
    size: 7.47 GiB
Partition:
  ID-1: / size: 7.67 GiB used: 137.6 MiB (1.8%) fs: overlay source: ERR-102
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 320 Uptime: 7m Memory: 15.35 GiB used: 2.82 GiB (18.4%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.3.0 Packages: 2087 Shell: Bash
  v: 5.1.16 inxi: 3.3.13

Windows 10 License

Prevent Windows 10 installer from using the preinstalled serial key without disabling UEFI
How to Fix Windows 10 Product Key Activation Not Working

WINDOWS-R
slmgr.vbs -dlv

slmgr.vbs -ipk xxxx-xxxx-xxxx-xxxx-xxxx

wmic path softwarelicensingservice get OA3xOriginalProductKey
OA3xOriginalProductKey
xxxx-xxxx-xxxx-xxxx-xxxx

Windows 10 Bypassing System Locked Preinstallation (SLP) Key or Microsoft Digital Marker During Windows 10 Install (MSDM)
Can’t Select Windows 11/10 Edition During Clean Install

[Channel]
Retail
[PID]
Value=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Generic Product Key

Generic Product Keys to Install Windows 10 Editions
OEM Activation 3.0 system

RSA, Diophantische Gleichungen, Euklidischer Algorithmus by Christian Spannagel

TIB AV-Portal

Restklassen und algebraische Strukturen
Kongruenzen und Restklassen

YouTube

Verschlüsselung (Playlist)

  1. Cäsar-Verschlüsselung
  2. Vigenère-Verschlüsselung
  3. RSA: Einführung
  4. RSA: Konstruktion der Schlüssel
  5. RSA: Ver- und Entschlüsselung
  6. RSA: Beispiel Teil 1
  7. RSA: Beispiel Teil 2

Diophantische Gleichungen (Playlist)

  1. Erweiterter Euklidischer Algorithmus Teil 1
  2. Erweiterter Euklidischer Algorithmus Teil 2
  3. Erweiterter Euklidischer Algorithmus Teil 3
  4. Lösbarkeit linearer diophantischer Gleichungen
  5. Lösungen linearer diophantischer Gleichungen
  6. Beispiel zu diophantischen Gleichungen

Der Euklidische Algorithmus

Der Euklidische Algorithmus

  1. Division mit Rest (Teil 1)
  2. Division mit Rest (Teil 2)
  3. Erklärung zu a/b
  4. Sätze zum ggT (Teil 1)
  5. Sätze zum ggT (Teil 2)
  6. Der Euklidische Algorithmus (Teil 1)
  7. Der Euklidische Algorithmus (Teil 2)

Sätze von Euler und Fermat (Playlist)

  1. Die Eulersche Phi-Funktion
  2. Der Satz von Euler
  3. Der kleine Satz von Fermat
  4. Sätze zur Eulerschen Phi-Funktion 1
  5. Sätze zur Eulerschen Phi-Funktion 2
  6. Ein Satz zur Eulerschen Phi-Funktion
  7. Der große Satz von Fermat Teil 1
  8. Der große Satz von Fermat Teil 2

AES Verschlüsselung
RSA Verschlüsselung
Chinesischer Restsatz

rustlings

stackoverflow

Trouble implementing custom IntoIterator trait

CS-3210, Spring 2020

CS-3210, Spring 2020

rustlings

github.com/rust-lang/rustlings/, Small exercises to get you used to reading and writing Rust code!

This project contains small exercises to get you used to reading and writing Rust code.

PS C:\users\andreas\rustlings> Get-Command git
CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     git.exe                                            2.21.0.1   C:\Program Files\Git\cmd\git.exe


PS C:\users\andreas\rustlings> Get-Command rustc
CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     rustc.exe                                          0.0.0.0    C:\Users\andreas\.cargo\bin\rustc.exe

PS C:\users\andreas\rustlings> Get-Command cargo
CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     cargo.exe                                          0.0.0.0    C:\Users\andreas\.cargo\bin\cargo.exe
PS C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser                                                                                                                                                    Execution Policy Change                                                                                                 The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y

PS C:\WINDOWS\system32> cd ../..
PS C:\> cd users
PS C:\users> cd andreas

PS C:\users\andreas> Start-BitsTransfer -Source https://raw.githubusercontent.com/rust-lang/rustlings/main/install.ps1 -Destination $env:TMP/install_rustlings.ps1; Unblock-File $env:TMP/install_rustlings.ps1; Invoke-Expression $env:TMP/install_rustlings.ps1
Let's get you set up with Rustlings!
Checking requirements...
SUCCESS: Git is installed
SUCCESS:  Rust is installed
SUCCESS: Cargo is installed
SUCCESS: Rust is up to date
Cloning Rustlings at C:\users\andreas/rustlings
Checking out version 5.3.0...
Installing the 'rustlings' executable...
  Installing rustlings v5.3.0 (C:\users\andreas\rustlings)
    Updating crates.io index
  Downloaded filetime v0.2.19
  Downloaded home v0.5.4
  Downloaded number_prefix v0.4.0
  Downloaded same-file v1.0.6
  Downloaded winapi-util v0.1.5
  Downloaded quote v1.0.23
  Downloaded proc-macro2 v1.0.49
  Downloaded serde v1.0.152
  Downloaded toml v0.5.10
  Downloaded serde_json v1.0.91
  Downloaded unicode-ident v1.0.6
  Downloaded serde_derive v1.0.152
  Downloaded argh v0.1.9
  Downloaded syn v1.0.107
  Downloaded regex v1.7.0
  Downloaded walkdir v2.3.2
  Downloaded encode_unicode v0.3.6
  Downloaded libc v0.2.139
  Downloaded argh_derive v0.1.9
  Downloaded regex-syntax v0.6.28
  Downloaded indicatif v0.16.2
  Downloaded argh_shared v0.1.9
  Downloaded ryu v1.0.12
  Downloaded glob v0.3.1
  Downloaded itoa v1.0.5
  Downloaded aho-corasick v0.7.20
  Downloaded notify v4.0.17
  Downloaded lazy_static v1.4.0
  Downloaded heck v0.4.0
  Downloaded console v0.15.4
  Downloaded 30 crates (2.4 MB) in 1.54s
   Compiling proc-macro2 v1.0.49
   Compiling quote v1.0.23
   Compiling unicode-ident v1.0.6
   Compiling syn v1.0.107
   Compiling windows_x86_64_msvc v0.42.0
   Compiling winapi v0.3.9
   Compiling memchr v2.5.0
   Compiling serde_derive v1.0.152
   Compiling libc v0.2.139
   Compiling serde v1.0.152
   Compiling regex-syntax v0.6.28
   Compiling heck v0.4.0
   Compiling argh_shared v0.1.9
   Compiling unicode-width v0.1.10
   Compiling lazy_static v1.4.0
   Compiling cfg-if v1.0.0
   Compiling encode_unicode v0.3.6
   Compiling serde_json v1.0.91
   Compiling bitflags v1.3.2
   Compiling ryu v1.0.12
   Compiling number_prefix v0.4.0
   Compiling itoa v1.0.5
   Compiling glob v0.3.1
   Compiling windows-sys v0.42.0
   Compiling aho-corasick v0.7.20
   Compiling filetime v0.2.19
   Compiling console v0.15.4
   Compiling regex v1.7.0
   Compiling winapi-util v0.1.5
   Compiling home v0.5.4
   Compiling indicatif v0.16.2
   Compiling same-file v1.0.6
   Compiling argh_derive v0.1.9
   Compiling walkdir v2.3.2
   Compiling argh v0.1.9
   Compiling notify v4.0.17
   Compiling toml v0.5.10
   Compiling rustlings v5.3.0 (C:\users\andreas\rustlings)
    Finished release [optimized] target(s) in 1m 07s
  Installing C:\Users\andreas\.cargo\bin\rustlings.exe
   Installed package `rustlings v5.3.0 (C:\users\andreas\rustlings)` (executable `rustlings.exe`)
All done! Run 'rustlings' to get started.
C:\Users\andreas\rustlings>rustlings

       welcome to...
                 _   _ _
  _ __ _   _ ___| |_| (_)_ __   __ _ ___
 | '__| | | / __| __| | | '_ \ / _` / __|
 | |  | |_| \__ \ |_| | | | | | (_| \__ \
 |_|   \__,_|___/\__|_|_|_| |_|\__, |___/
                               |___/

Thanks for installing Rustlings!

Is this your first time? Don't worry, Rustlings was made for beginners! We are
going to teach you a lot of things about Rust, but before we can get
started, here's a couple of notes about how Rustlings operates:

1. The central concept behind Rustlings is that you solve exercises. These
   exercises usually have some sort of syntax error in them, which will cause
   them to fail compilation or testing. Sometimes there's a logic error instead
   of a syntax error. No matter what error, it's your job to find it and fix it!
   You'll know when you fixed it because then, the exercise will compile and
   Rustlings will be able to move on to the next exercise.
2. If you run Rustlings in watch mode (which we recommend), it'll automatically
   start with the first exercise. Don't get confused by an error message popping
   up as soon as you run Rustlings! This is part of the exercise that you're
   supposed to solve, so open the exercise file in an editor and start your
   detective work!
3. If you're stuck on an exercise, there is a helpful hint you can view by typing
   'hint' (in watch mode), or running `rustlings hint exercise_name`.
4. If an exercise doesn't make sense to you, feel free to open an issue on GitHub!
   (https://github.com/rust-lang/rustlings/issues/new). We look at every issue,
   and sometimes, other learners do too so you can help each other out!
5. If you want to use `rust-analyzer` with exercises, which provides features like
   autocompletion, run the command `rustlings lsp`.

Got all that? Great! To get started, run `rustlings watch` in order to get the first
exercise. Make sure to have your editor open!