DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Rund um die Software von Revolution Pi
Post Reply
Franzi28
Posts: 5
Joined: 06 May 2026, 14:27

DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by Franzi28 »

Hallo,

Wir haben mehrere RevPi Core S und SE mit jeweils einem AIO und einem DIO in Verwendung. Aktuell sind wir dabei Cores mit buster oder bullseye image durch bookworm auszutauschen. Auf dem Core laufen 1-3 Applikationen in Docker Containern, wobei unter anderem beim Programmstart eine config.rsc erstellt wird die mit einem picontrol Treiber reset angewendet wird.
Es ist nun schon öfter aufgefallen, dass entweder beim Austausch von 2 Cores oder bei einem Softwareupdate aus der Ferne das DIO anschließend nicht erkannt wird, was durch

Code: Select all

piTest -d
auch ausgelesen werden kann.
Screenshot from 2026-05-06 16-42-30.png
Eine Ausführung von

Code: Select all

piTest -x
behebt den Fehler jedes Mal.
Da der Input "RevPiStatus" des Cores diesen Fehler eigentlich anzeigen soll, habe ich in der Applikation den Code soweit geändert, dass das entsprechende Bit überprüft wird und bei Fehler ein picontrol Reset getriggert wird. Allerdings wirkt es so, als würde RevPiStatus während dem laufenden Betrieb nicht aktualisiert wird. Der oben geschilderte Fehler bei kann durch

Code: Select all

piTest -d
beobachtet werden, aber wenn ich RevPiStatus mit

Code: Select all

piTest -r
auslese, bekomme ich dauerhaft "1" angezeigt, was nur signalisiert, dass der picontrol Treiber läuft.
Warum wird RevPiStatus im laufenden Betrieb nicht aktuell gehalten, sodass man den Status zur Fehlerüberwachung verwenden kann?

Der beobachtete Fehler tritt nicht bei jedem Austausch/Softwareupdate auf, weshalb er schwer zu reproduzieren ist.
Reproduziert werden kann allerdings, dass RevPiStatus weiterhin 1 bleibt, auch wenn ich beispielsweise die PiBridge rausziehe. Auch

Code: Select all

piTest -d
zeigt dann keinen Fehler. Erst bei einem Reset wird ein Fehler angezeigt.
Online
User avatar
nicolaiB
KUNBUS
Posts: 1123
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by nicolaiB »

Hi Franzi,

kannst du die generierte Konfiguration mal posten? Weiterhin wäre die Ausgabe von:

- dmesg | grep piControl
- uname -a

interessant.

Gruß Nicolai
Nicolai
Franzi28
Posts: 5
Joined: 06 May 2026, 14:27

Re: DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by Franzi28 »

Hallo Nicolai,

hier die generierte config:

Code: Select all

{
  "App": {
    "name": "PiCtory",
    "version": "2.0.0",
    "saveTS": "20240404170517",
    "language": "en",
    "layout": {
      "north": {
        "size": 70,
        "initClosed": false,
        "initHidden": false
      },
      "south": {
        "size": 488,
        "initClosed": false,
        "initHidden": false,
        "children": {
          "layout1": {
            "east": {
              "size": 646,
              "initClosed": false,
              "initHidden": false
            }
          }
        }
      },
      "east": {
        "size": 70,
        "initClosed": true,
        "initHidden": false
      },
      "west": {
        "size": 200,
        "initClosed": false,
        "initHidden": false,
        "children": {
          "layout1": {}
        }
      }
    }
  },
  "Summary": {
    "inpTotal": 0,
    "outTotal": 0
  },
  "Devices": [
    {
      "GUID": "1cda9a54-76c7-4173-a879-ece6c975c5e4",
      "id": "device_RevPiCore_20170404_1_2_001",
      "type": "BASE",
      "productType": "95",
      "position": "0",
      "name": "CoreS",
      "bmk": "C3",
      "inpVariant": 0,
      "outVariant": 0,
      "comment": "",
      "offset": 0,
      "inp": {
        "0": [
          "RevPiStatus",
          "0",
          "8",
          "0",
          false,
          "0000",
          "",
          ""
        ],
        "1": [
          "RevPiIOCycle",
          "0",
          "8",
          "1",
          false,
          "0001",
          "",
          ""
        ],
        "2": [
          "RS485ErrorCnt",
          "0",
          "16",
          "2",
          false,
          "0002",
          "",
          ""
        ],
        "3": [
          "CPUTemperature",
          "0",
          "8",
          "4",
          false,
          "0003",
          "CPU Temperature of Core",
          ""
        ],
        "4": [
          "Core_Frequency",
          "0",
          "8",
          "5",
          false,
          "0004",
          "",
          ""
        ]
      },
      "out": {
        "0": [
          "RevPiLED",
          "0",
          "8",
          "6",
          false,
          "0005",
          "",
          ""
        ],
        "1": [
          "RS485ErrorLimit1",
          "10",
          "16",
          "7",
          false,
          "0006",
          "",
          ""
        ],
        "2": [
          "RS485ErrorLimit2",
          "1000",
          "16",
          "9",
          false,
          "0007",
          "",
          ""
        ]
      }
    },
    {
      "GUID": "61e5b875-103e-4e56-b410-2fb0983daedf",
      "id": "device_RevPiAIO_20170301_1_0_001",
      "type": "LEFT_RIGHT",
      "productType": "103",
      "position": "32",
      "name": "AIO01",
      "bmk": "C3",
      "inpVariant": 0,
      "outVariant": 0,
      "comment": "",
      "offset": 11,
      "inp": {
        "0": [
          "Humidity2",
          "0",
          "16",
          "0",
          false,
          "0000",
          "Kombi Sensor 2",
          ""
        ],
        "1": [
          "Temperature6",
          "0",
          "16",
          "2",
          false,
          "0001",
          "Kombi Sensor 2",
          ""
        ],
        "10": [
          "Temperature8Status",
          "0",
          "8",
          "16",
          false,
          "0010",
          "RTD Sensor 1 Status",
          ""
        ],
        "11": [
          "RTDStatus_2",
          "0",
          "8",
          "17",
          false,
          "0011",
          "",
          ""
        ],
        "12": [
          "OutputStatus_1",
          "0",
          "8",
          "18",
          false,
          "0012",
          "",
          ""
        ],
        "13": [
          "OutputStatus_2",
          "0",
          "8",
          "19",
          false,
          "0013",
          "",
          ""
        ],
        "2": [
          "Humidity1",
          "0",
          "16",
          "4",
          false,
          "0002",
          "Kombi Sensor 1",
          ""
        ],
        "3": [
          "Temperature4",
          "0",
          "16",
          "6",
          false,
          "0003",
          "Kombi Sensor 1",
          ""
        ],
        "4": [
          "Humidity2Status",
          "0",
          "8",
          "8",
          false,
          "0004",
          "Kombi Sensor 2 Status",
          ""
        ],
        "5": [
          "Temperature6Status",
          "0",
          "8",
          "9",
          false,
          "0005",
          "Kombi Sensor 2 Status",
          ""
        ],
        "6": [
          "Humidity1Status",
          "0",
          "8",
          "10",
          false,
          "0006",
          "Kombi Sensor 1 Status",
          ""
        ],
        "7": [
          "Temperature4Status",
          "0",
          "8",
          "11",
          false,
          "0007",
          "Kombi Sensor 1 Status",
          ""
        ],
        "8": [
          "Temperature8",
          "0",
          "16",
          "12",
          false,
          "0008",
          "RTD Sensor 1",
          ""
        ],
        "9": [
          "RTDValue_2",
          "0",
          "16",
          "14",
          false,
          "0009",
          "",
          ""
        ]
      },
      "out": {
        "0": [
          "OutputValue_1",
          "0",
          "16",
          "20",
          false,
          "0014",
          "",
          ""
        ],
        "1": [
          "OutputValue_2",
          "0",
          "16",
          "22",
          false,
          "0015",
          "",
          ""
        ]
      },
      "mem": {
        "0": [
          "Humidity2Range",
          "7",
          "8",
          "24",
          false,
          "0016",
          "You must use wire bridges for current measurement!",
          ""
        ],
        "1": [
          "Humidity2Multiplier",
          "10000",
          "16",
          "25",
          false,
          "0017",
          "",
          ""
        ],
        "10": [
          "Humidity1Divisor",
          "16000",
          "16",
          "41",
          false,
          "0026",
          "",
          ""
        ],
        "11": [
          "Humidity1Offset",
          "-2500",
          "16",
          "43",
          false,
          "0027",
          "",
          ""
        ],
        "12": [
          "Temperature4Range",
          "7",
          "8",
          "45",
          false,
          "0028",
          "You must use wire bridges for current measurement!",
          ""
        ],
        "13": [
          "Temperature4Multiplier",
          "5000",
          "16",
          "46",
          false,
          "0029",
          "",
          ""
        ],
        "14": [
          "Temperature4Divisor",
          "16000",
          "16",
          "48",
          false,
          "0030",
          "",
          ""
        ],
        "15": [
          "Temperature4Offset",
          "-1250",
          "16",
          "50",
          false,
          "0031",
          "",
          ""
        ],
        "16": [
          "ADCDataRate",
          "0",
          "8",
          "52",
          false,
          "0032",
          "The rate at which the ADC samples the analog inputs",
          ""
        ],
        "17": [
          "Temperature8Type",
          "1",
          "8",
          "53",
          false,
          "0033",
          "",
          ""
        ],
        "18": [
          "Temperature8Wiring",
          "0",
          "8",
          "54",
          false,
          "0034",
          "You must use wire bridges for 2-wire sensors!",
          ""
        ],
        "19": [
          "Temperature8Multiplier",
          "1",
          "16",
          "55",
          false,
          "0035",
          "",
          ""
        ],
        "2": [
          "Humidity2Divisor",
          "16000",
          "16",
          "27",
          false,
          "0018",
          "",
          ""
        ],
        "20": [
          "Temperature8Divisor",
          "1",
          "16",
          "57",
          false,
          "0036",
          "",
          ""
        ],
        "21": [
          "Temperature8Offset",
          "0",
          "16",
          "59",
          false,
          "0037",
          "",
          ""
        ],
        "22": [
          "RTD2Type",
          "0",
          "8",
          "61",
          false,
          "0038",
          "",
          ""
        ],
        "23": [
          "RTD2Wiring",
          "0",
          "8",
          "62",
          false,
          "0039",
          "You must use wire bridges for 2-wire sensors!",
          ""
        ],
        "24": [
          "RTD2Multiplier",
          "1",
          "16",
          "63",
          false,
          "0040",
          "",
          ""
        ],
        "25": [
          "RTD2Divisor",
          "1",
          "16",
          "65",
          false,
          "0041",
          "",
          ""
        ],
        "26": [
          "RTD2Offset",
          "0",
          "16",
          "67",
          false,
          "0042",
          "",
          ""
        ],
        "27": [
          "Output1Range",
          "0",
          "8",
          "69",
          false,
          "0043",
          "",
          ""
        ],
        "28": [
          "Output1EnableSlew",
          "0",
          "8",
          "70",
          false,
          "0044",
          "Enable slew rate deceleration",
          ""
        ],
        "29": [
          "Output1SlewStepSize",
          "0",
          "8",
          "71",
          false,
          "0045",
          "Slew rate step size",
          ""
        ],
        "3": [
          "Humidity2Offset",
          "-2500",
          "16",
          "29",
          false,
          "0019",
          "",
          ""
        ],
        "30": [
          "Output1SlewClock",
          "0",
          "8",
          "72",
          false,
          "0046",
          "lock rate of slew rate deceleration in kHz",
          ""
        ],
        "31": [
          "Output1Multiplier",
          "1",
          "16",
          "73",
          false,
          "0047",
          "",
          ""
        ],
        "32": [
          "Output1Divisor",
          "1",
          "16",
          "75",
          false,
          "0048",
          "",
          ""
        ],
        "33": [
          "Output1Offset",
          "0",
          "16",
          "77",
          false,
          "0049",
          "",
          ""
        ],
        "34": [
          "Output2Range",
          "0",
          "8",
          "79",
          false,
          "0050",
          "",
          ""
        ],
        "35": [
          "Output2EnableSlew",
          "0",
          "8",
          "80",
          false,
          "0051",
          "Enable slew rate deceleration",
          ""
        ],
        "36": [
          "Output2SlewStepSize",
          "0",
          "8",
          "81",
          false,
          "0052",
          "Slew rate step size",
          ""
        ],
        "37": [
          "Output2SlewClock",
          "0",
          "8",
          "82",
          false,
          "0053",
          "lock rate of slew rate deceleration in kHz",
          ""
        ],
        "38": [
          "Output2Multiplier",
          "1",
          "16",
          "83",
          false,
          "0054",
          "",
          ""
        ],
        "39": [
          "Output2Divisor",
          "1",
          "16",
          "85",
          false,
          "0055",
          "",
          ""
        ],
        "4": [
          "Temperature6Range",
          "7",
          "8",
          "31",
          false,
          "0020",
          "You must use wire bridges for current measurement!",
          ""
        ],
        "40": [
          "Output2Offset",
          "0",
          "16",
          "87",
          false,
          "0056",
          "",
          ""
        ],
        "5": [
          "Temperature6Multiplier",
          "5000",
          "16",
          "32",
          false,
          "0021",
          "",
          ""
        ],
        "6": [
          "Temperature6Divisor",
          "16000",
          "16",
          "34",
          false,
          "0022",
          "",
          ""
        ],
        "7": [
          "Temperature6Offset",
          "-1250",
          "16",
          "36",
          false,
          "0023",
          "",
          ""
        ],
        "8": [
          "Humidity1Range",
          "7",
          "8",
          "38",
          false,
          "0024",
          "You must use wire bridges for current measurement!",
          ""
        ],
        "9": [
          "Humidity1Multiplier",
          "10000",
          "16",
          "39",
          false,
          "0025",
          "",
          ""
        ]
      }
    },
    {
      "GUID": "44e1354b-711a-4022-b4a7-a63ed6e1b8c9",
      "id": "device_RevPiDIO_20160818_1_0_001",
      "type": "LEFT_RIGHT",
      "productType": "96",
      "position": "33",
      "name": "DIO01",
      "bmk": "C3",
      "inpVariant": 0,
      "outVariant": 0,
      "comment": "",
      "offset": 99,
      "inp": {
        "0": [
          "HVACFeedback",
          "0",
          "1",
          "0",
          false,
          "0000",
          "HVAC Feedback",
          "0"
        ],
        "1": [
          "SG11-13FuseFeedback",
          "0",
          "1",
          "0",
          false,
          "0001",
          "SG 11-13 Fuse Feedback",
          "1"
        ],
        "10": [
          "DoorContact1",
          "0",
          "1",
          "0",
          false,
          "0010",
          "Door contact 1",
          "10"
        ],
        "11": [
          "DoorContact2",
          "0",
          "1",
          "0",
          false,
          "0011",
          "Door contact 2",
          "11"
        ],
        "12": [
          "DoorContact3",
          "0",
          "1",
          "0",
          false,
          "0012",
          "Door contact 3",
          "12"
        ],
        "13": [
          "I_14",
          "0",
          "1",
          "0",
          false,
          "0013",
          "",
          "13"
        ],
        "14": [
          "I_15",
          "0",
          "1",
          "0",
          false,
          "0014",
          "",
          "14"
        ],
        "15": [
          "I_16",
          "0",
          "1",
          "0",
          false,
          "0015",
          "",
          "15"
        ],
        "16": [
          "OutputStatus",
          "0",
          "16",
          "2",
          false,
          "0016",
          "Output Status",
          ""
        ],
        "17": [
          "InputStatus",
          "0",
          "16",
          "4",
          false,
          "0017",
          "Input Status",
          ""
        ],
        "18": [
          "Counter_1",
          "0",
          "32",
          "6",
          false,
          "0018",
          "",
          ""
        ],
        "19": [
          "Counter_2",
          "0",
          "32",
          "10",
          false,
          "0019",
          "",
          ""
        ],
        "2": [
          "SG14-16FuseFeedback",
          "0",
          "1",
          "0",
          false,
          "0002",
          "SG 14-16 Fuse Feedback",
          "2"
        ],
        "20": [
          "Counter_3",
          "0",
          "32",
          "14",
          false,
          "0020",
          "",
          ""
        ],
        "21": [
          "Counter_4",
          "0",
          "32",
          "18",
          false,
          "0021",
          "",
          ""
        ],
        "22": [
          "Counter_5",
          "0",
          "32",
          "22",
          false,
          "0022",
          "",
          ""
        ],
        "23": [
          "Counter_6",
          "0",
          "32",
          "26",
          false,
          "0023",
          "",
          ""
        ],
        "24": [
          "Counter_7",
          "0",
          "32",
          "30",
          false,
          "0024",
          "",
          ""
        ],
        "25": [
          "Counter_8",
          "0",
          "32",
          "34",
          false,
          "0025",
          "",
          ""
        ],
        "26": [
          "Counter_9",
          "0",
          "32",
          "38",
          false,
          "0026",
          "",
          ""
        ],
        "27": [
          "Counter_10",
          "0",
          "32",
          "42",
          false,
          "0027",
          "",
          ""
        ],
        "28": [
          "Counter_11",
          "0",
          "32",
          "46",
          false,
          "0028",
          "",
          ""
        ],
        "29": [
          "Counter_12",
          "0",
          "32",
          "50",
          false,
          "0029",
          "",
          ""
        ],
        "3": [
          "SG21-23FuseFeedback",
          "0",
          "1",
          "0",
          false,
          "0003",
          "SG 21-23 Fuse Feedback",
          "3"
        ],
        "30": [
          "Counter_13",
          "0",
          "32",
          "54",
          false,
          "0030",
          "",
          ""
        ],
        "31": [
          "Counter_14",
          "0",
          "32",
          "58",
          false,
          "0031",
          "",
          ""
        ],
        "32": [
          "Counter_15",
          "0",
          "32",
          "62",
          false,
          "0032",
          "",
          ""
        ],
        "33": [
          "Counter_16",
          "0",
          "32",
          "66",
          false,
          "0033",
          "",
          ""
        ],
        "4": [
          "SG24-26FuseFeedback",
          "0",
          "1",
          "0",
          false,
          "0004",
          "SG 24-26 Fuse Feedback",
          "4"
        ],
        "5": [
          "UPSFeedback",
          "0",
          "1",
          "0",
          false,
          "0005",
          "UPS Feedback",
          "5"
        ],
        "6": [
          "CompTrolFeedback",
          "0",
          "1",
          "0",
          false,
          "0006",
          "CompTrol Feedback",
          "6"
        ],
        "7": [
          "FireAlarm",
          "0",
          "1",
          "0",
          false,
          "0007",
          "Smoke aspiration system alarm",
          "7"
        ],
        "8": [
          "FireError",
          "0",
          "1",
          "0",
          false,
          "0008",
          "Smoke aspiration system error",
          "8"
        ],
        "9": [
          "FireService",
          "0",
          "1",
          "0",
          false,
          "0009",
          "Smoke aspiration system service",
          "9"
        ]
      },
      "out": {
        "0": [
          "SG11Power",
          "0",
          "1",
          "70",
          false,
          "0034",
          "Set SG 11 Power",
          "0"
        ],
        "1": [
          "SG12Power",
          "0",
          "1",
          "70",
          false,
          "0035",
          "Set SG 12 Power",
          "1"
        ],
        "10": [
          "D11Reserved",
          "0",
          "1",
          "70",
          false,
          "0044",
          "DO 11 Reserved",
          "10"
        ],
        "11": [
          "D12Reserved",
          "0",
          "1",
          "70",
          false,
          "0045",
          "DO 12 Reserved",
          "11"
        ],
        "12": [
          "DO13Reserved",
          "0",
          "1",
          "70",
          false,
          "0046",
          "DO 13 Reserved",
          "12"
        ],
        "13": [
          "DO14Reserved",
          "0",
          "1",
          "70",
          false,
          "0047",
          "DO 14 Reserved",
          "13"
        ],
        "14": [
          "O_15",
          "0",
          "1",
          "70",
          false,
          "0048",
          "",
          "14"
        ],
        "15": [
          "O_16",
          "0",
          "1",
          "70",
          false,
          "0049",
          "",
          "15"
        ],
        "16": [
          "PWM_1",
          "0",
          "8",
          "72",
          false,
          "0050",
          "",
          ""
        ],
        "17": [
          "PWM_2",
          "0",
          "8",
          "73",
          false,
          "0051",
          "",
          ""
        ],
        "18": [
          "PWM_3",
          "0",
          "8",
          "74",
          false,
          "0052",
          "",
          ""
        ],
        "19": [
          "PWM_4",
          "0",
          "8",
          "75",
          false,
          "0053",
          "",
          ""
        ],
        "2": [
          "SG13Power",
          "0",
          "1",
          "70",
          false,
          "0036",
          "Set SG 13 Power",
          "2"
        ],
        "20": [
          "PWM_5",
          "0",
          "8",
          "76",
          false,
          "0054",
          "",
          ""
        ],
        "21": [
          "PWM_6",
          "0",
          "8",
          "77",
          false,
          "0055",
          "",
          ""
        ],
        "22": [
          "PWM_7",
          "0",
          "8",
          "78",
          false,
          "0056",
          "",
          ""
        ],
        "23": [
          "PWM_8",
          "0",
          "8",
          "79",
          false,
          "0057",
          "",
          ""
        ],
        "24": [
          "PWM_9",
          "0",
          "8",
          "80",
          false,
          "0058",
          "",
          ""
        ],
        "25": [
          "PWM_10",
          "0",
          "8",
          "81",
          false,
          "0059",
          "",
          ""
        ],
        "26": [
          "PWM_11",
          "0",
          "8",
          "82",
          false,
          "0060",
          "",
          ""
        ],
        "27": [
          "PWM_12",
          "0",
          "8",
          "83",
          false,
          "0061",
          "",
          ""
        ],
        "28": [
          "PWM_13",
          "0",
          "8",
          "84",
          false,
          "0062",
          "",
          ""
        ],
        "29": [
          "PWM_14",
          "0",
          "8",
          "85",
          false,
          "0063",
          "",
          ""
        ],
        "3": [
          "SG14Power",
          "0",
          "1",
          "70",
          false,
          "0037",
          "Set SG 14 Power",
          "3"
        ],
        "30": [
          "PWM_15",
          "0",
          "8",
          "86",
          false,
          "0064",
          "",
          ""
        ],
        "31": [
          "PWM_16",
          "0",
          "8",
          "87",
          false,
          "0065",
          "",
          ""
        ],
        "4": [
          "DO5Reserved",
          "0",
          "1",
          "70",
          false,
          "0038",
          "DO 5 Reserved",
          "4"
        ],
        "5": [
          "DO6Reserved",
          "0",
          "1",
          "70",
          false,
          "0039",
          "DO 6 Reserved",
          "5"
        ],
        "6": [
          "SG21Power",
          "0",
          "1",
          "70",
          false,
          "0040",
          "Set SG 21 Power",
          "6"
        ],
        "7": [
          "SG22Power",
          "0",
          "1",
          "70",
          false,
          "0041",
          "Set SG 22 Power",
          "7"
        ],
        "8": [
          "SG23Power",
          "0",
          "1",
          "70",
          false,
          "0042",
          "Set SG 24 Power",
          "8"
        ],
        "9": [
          "SG24Power",
          "0",
          "1",
          "70",
          false,
          "0043",
          "Set SG 23 Power",
          "9"
        ]
      },
      "mem": {
        "0": [
          "InputMode_1",
          "0",
          "8",
          "88",
          false,
          "0066",
          "",
          ""
        ],
        "1": [
          "InputMode_2",
          "0",
          "8",
          "89",
          false,
          "0067",
          "",
          ""
        ],
        "10": [
          "InputMode_11",
          "0",
          "8",
          "98",
          false,
          "0076",
          "",
          ""
        ],
        "11": [
          "InputMode_12",
          "0",
          "8",
          "99",
          false,
          "0077",
          "",
          ""
        ],
        "12": [
          "InputMode_13",
          "0",
          "8",
          "100",
          false,
          "0078",
          "",
          ""
        ],
        "13": [
          "InputMode_14",
          "0",
          "8",
          "101",
          false,
          "0079",
          "",
          ""
        ],
        "14": [
          "InputMode_15",
          "0",
          "8",
          "102",
          false,
          "0080",
          "",
          ""
        ],
        "15": [
          "InputMode_16",
          "0",
          "8",
          "103",
          false,
          "0081",
          "",
          ""
        ],
        "16": [
          "InputDebounce",
          "0",
          "16",
          "104",
          false,
          "0082",
          "",
          ""
        ],
        "17": [
          "OutputPushPull",
          "0",
          "16",
          "106",
          false,
          "0083",
          "",
          ""
        ],
        "18": [
          "OutputOpenLoadDetect",
          "0",
          "16",
          "108",
          false,
          "0084",
          "",
          ""
        ],
        "19": [
          "OutputPWMActive",
          "0",
          "16",
          "110",
          false,
          "0085",
          "",
          ""
        ],
        "2": [
          "InputMode_3",
          "0",
          "8",
          "90",
          false,
          "0068",
          "",
          ""
        ],
        "20": [
          "OutputPWMFrequency",
          "1",
          "8",
          "112",
          false,
          "0086",
          "",
          ""
        ],
        "3": [
          "InputMode_4",
          "0",
          "8",
          "91",
          false,
          "0069",
          "",
          ""
        ],
        "4": [
          "InputMode_5",
          "0",
          "8",
          "92",
          false,
          "0070",
          "",
          ""
        ],
        "5": [
          "InputMode_6",
          "0",
          "8",
          "93",
          false,
          "0071",
          "",
          ""
        ],
        "6": [
          "InputMode_7",
          "0",
          "8",
          "94",
          false,
          "0072",
          "",
          ""
        ],
        "7": [
          "InputMode_8",
          "0",
          "8",
          "95",
          false,
          "0073",
          "",
          ""
        ],
        "8": [
          "InputMode_9",
          "0",
          "8",
          "96",
          false,
          "0074",
          "",
          ""
        ],
        "9": [
          "InputMode_10",
          "0",
          "8",
          "97",
          false,
          "0075",
          "",
          ""
        ]
      }
    }
  ]
}
Franzi28
Posts: 5
Joined: 06 May 2026, 14:27

Re: DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by Franzi28 »

der Output von dmesg | grep piControl:

Code: Select all

[    1.895140] piControl: loading out-of-tree module taints kernel.
[    1.897463] piControl: RevPi Core
[    1.897474] piControl: MAJOR-No.  : 240
[    1.897661] piControl: MAJOR-No.  : 240  MINOR-No.  : 0
[    2.084600] piControl: read file finished, f_pos=27780
[    2.084642] piControl: 3 devices found
[    2.084645] piControl: 152 entries in total
[    2.086012] piControl: set priority of spi0 to 54
[    2.086210] piControl: piIO thread started
[    2.086216] piControl: RevPiDevice_init()
[    2.086252] piControl: No HAT eeprom detected: Fallback to default serial
[    2.086258] piControl: Enter Init State
[    2.086654] piControl: piControlInit done
[    2.086827] piControl: Enter PresentSignalling1 State
[    2.125710] piControl: Enter InitialSlaveDetectionRight State
[    2.126234] piControl: Enter ConfigRightStart State
[    2.136966] piControl: Enter ConfigDialogueRight State
[    2.152141] piControl: GetDeviceInfo: Id 103
[    2.164183] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[    2.164210] piControl: input offset     11  len  20
[    2.164213] piControl: output offset    31  len   4
[    2.164758] piControl: Enter SlaveDetectionRight State
[    2.174806] piControl: Enter ConfigDialogueRight State
[    2.196146] piControl: GetDeviceInfo: Id 96
[    2.208159] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[    2.208167] piControl: input offset     35  len  70
[    2.208170] piControl: output offset   105  len  18
[    2.208690] piControl: Enter SlaveDetectionRight State
[    2.219009] piControl: Enter InitialSlaveDetectionLeft State
[    2.219531] piControl: Enter EndOfConfig State
[    2.219535] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[    2.219543] piControl:            input offset      0  len   6
[    2.219546] piControl:            output offset     6  len   5
[    2.219548] piControl:            serial number 1  version 1.2
[    2.219550] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[    2.219554] piControl:            input offset     11  len  20
[    2.219556] piControl:            output offset    31  len   4
[    2.219558] piControl:            serial number 72397  version 1.4
[    2.219561] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[    2.219564] piControl:            input offset     35  len  70
[    2.219566] piControl:            output offset   105  len  18
[    2.219568] piControl:            serial number 76603  version 1.5
[    2.219570] piControl: 
[    2.219575] piControl: Adjust: base 0 in 0 out 6 conf 0
[    2.219578] piControl: Adjust: base 11 in 11 out 31 conf 35
[    2.219581] piControl: Adjust: base 99 in 99 out 169 conf 187
[    2.219584] piControl: After Adjustment
[    2.219585] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[    2.219589] piControl:            input offset      0  len   6
[    2.219591] piControl:            output offset     6  len   5
[    2.219593] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[    2.219596] piControl:            input offset     11  len  20
[    2.219598] piControl:            output offset    31  len   4
[    2.219600] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[    2.219602] piControl:            input offset     99  len  70
[    2.219604] piControl:            output offset   169  len  18
[    2.219606] piControl: 
[    2.328164] piControl: start data exchange
[    2.564173] piControl: piAIOComm_Init done 0
[    2.566503] piControl: piDIOComm_Init done 0
[    2.571755] piControl: set BridgeState to running
[   14.803561] piControl: Reset: BridgeState=2 
[   14.828221] piControl: stop data exchange
[   14.828583] piControl: piIoComm_gotoGateProtocol returned 0
[   14.830401] piControl: read file finished, f_pos=27780
[   14.830433] piControl: 3 devices found
[   14.830436] piControl: 152 entries in total
[   14.830906] piControl: RevPiDevice_init()
[   14.830925] piControl: No HAT eeprom detected: Fallback to default serial
[   14.831172] piControl: Enter Init State
[   14.831691] piControl: Enter PresentSignalling1 State
[   14.870669] piControl: Enter InitialSlaveDetectionRight State
[   14.871203] piControl: Enter ConfigRightStart State
[   14.882024] piControl: Enter ConfigDialogueRight State
[   14.896150] piControl: GetDeviceInfo: Id 103
[   14.908159] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[   14.908176] piControl: input offset     11  len  20
[   14.908179] piControl: output offset    31  len   4
[   14.908700] piControl: Enter SlaveDetectionRight State
[   14.918969] piControl: Enter ConfigDialogueRight State
[   14.936161] piControl: GetDeviceInfo: Id 96
[   14.948157] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[   14.948169] piControl: input offset     35  len  70
[   14.948172] piControl: output offset   105  len  18
[   14.948705] piControl: Enter SlaveDetectionRight State
[   14.958995] piControl: Enter InitialSlaveDetectionLeft State
[   14.959519] piControl: Enter EndOfConfig State
[   14.959523] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[   14.959529] piControl:            input offset      0  len   6
[   14.959531] piControl:            output offset     6  len   5
[   14.959533] piControl:            serial number 1  version 1.2
[   14.959536] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[   14.959539] piControl:            input offset     11  len  20
[   14.959545] piControl:            output offset    31  len   4
[   14.959547] piControl:            serial number 72397  version 1.4
[   14.959550] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[   14.959553] piControl:            input offset     35  len  70
[   14.959555] piControl:            output offset   105  len  18
[   14.959557] piControl:            serial number 76603  version 1.5
[   14.959560] piControl: 
[   14.959564] piControl: Adjust: base 0 in 0 out 6 conf 0
[   14.959568] piControl: Adjust: base 11 in 11 out 31 conf 35
[   14.959571] piControl: Adjust: base 99 in 99 out 169 conf 187
[   14.959574] piControl: After Adjustment
[   14.959576] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[   14.959579] piControl:            input offset      0  len   6
[   14.959581] piControl:            output offset     6  len   5
[   14.959583] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[   14.959587] piControl:            input offset     11  len  20
[   14.959589] piControl:            output offset    31  len   4
[   14.959591] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[   14.959594] piControl:            input offset     99  len  70
[   14.959596] piControl:            output offset   169  len  18
[   14.959598] piControl: 
[   15.064156] piControl: start data exchange
[   15.300147] piControl: piAIOComm_Init done 0
[   15.302474] piControl: piDIOComm_Init done 0
[   15.307589] piControl: set BridgeState to running
[8444804.281568] piControl: Reset: BridgeState=2 
[8444804.303001] piControl: stop data exchange
[8444804.303379] piControl: piIoComm_gotoGateProtocol returned 0
[8444804.304792] piControl: read file finished, f_pos=27780
[8444804.304831] piControl: 3 devices found
[8444804.304833] piControl: 152 entries in total
[8444804.305387] piControl: RevPiDevice_init()
[8444804.305411] piControl: No HAT eeprom detected: Fallback to default serial
[8444804.305496] piControl: Enter Init State
[8444804.306023] piControl: Enter PresentSignalling1 State
[8444804.344550] piControl: Enter InitialSlaveDetectionRight State
[8444804.345076] piControl: Enter ConfigRightStart State
[8444804.355589] piControl: Enter ConfigDialogueRight State
[8444804.374970] piControl: GetDeviceInfo: Id 103
[8444804.390960] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[8444804.390983] piControl: input offset     11  len  20
[8444804.390986] piControl: output offset    31  len   4
[8444804.391524] piControl: Enter SlaveDetectionRight State
[8444804.401954] piControl: Enter ConfigDialogueRight State
[8444804.418966] piControl: GetDeviceInfo: Id 96
[8444804.434984] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[8444804.435008] piControl: input offset     35  len  70
[8444804.435011] piControl: output offset   105  len  18
[8444804.435556] piControl: Enter SlaveDetectionRight State
[8444804.445954] piControl: Enter InitialSlaveDetectionLeft State
[8444804.446489] piControl: Enter EndOfConfig State
[8444804.446494] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8444804.446501] piControl:            input offset      0  len   6
[8444804.446504] piControl:            output offset     6  len   5
[8444804.446506] piControl:            serial number 1  version 1.2
[8444804.446509] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8444804.446512] piControl:            input offset     11  len  20
[8444804.446514] piControl:            output offset    31  len   4
[8444804.446517] piControl:            serial number 72397  version 1.4
[8444804.446519] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8444804.446523] piControl:            input offset     35  len  70
[8444804.446525] piControl:            output offset   105  len  18
[8444804.446527] piControl:            serial number 76603  version 1.5
[8444804.446529] piControl: 
[8444804.446535] piControl: Adjust: base 0 in 0 out 6 conf 0
[8444804.446538] piControl: Adjust: base 11 in 11 out 31 conf 35
[8444804.446541] piControl: Adjust: base 99 in 99 out 169 conf 187
[8444804.446546] piControl: After Adjustment
[8444804.446547] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8444804.446550] piControl:            input offset      0  len   6
[8444804.446552] piControl:            output offset     6  len   5
[8444804.446554] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8444804.446557] piControl:            input offset     11  len  20
[8444804.446559] piControl:            output offset    31  len   4
[8444804.446561] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8444804.446564] piControl:            input offset     99  len  70
[8444804.446566] piControl:            output offset   169  len  18
[8444804.446568] piControl: 
[8444804.550930] piControl: start data exchange
[8444804.786981] piControl: piAIOComm_Init done 0
[8444804.789459] piControl: piDIOComm_Init done 0
[8444804.794682] piControl: set BridgeState to running
[8445994.147323] piControl: Reset: BridgeState=2 
[8445994.190743] piControl: stop data exchange
[8445994.191098] piControl: piIoComm_gotoGateProtocol returned 0
[8445994.192425] piControl: read file finished, f_pos=27780
[8445994.192450] piControl: 3 devices found
[8445994.192453] piControl: 152 entries in total
[8445994.192899] piControl: RevPiDevice_init()
[8445994.192915] piControl: No HAT eeprom detected: Fallback to default serial
[8445994.193163] piControl: Enter Init State
[8445994.193682] piControl: Enter PresentSignalling1 State
[8445994.232344] piControl: Enter InitialSlaveDetectionRight State
[8445994.232865] piControl: Enter ConfigRightStart State
[8445994.243613] piControl: Enter ConfigDialogueRight State
[8445994.258677] piControl: GetDeviceInfo: Id 103
[8445994.270675] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[8445994.270682] piControl: input offset     11  len  20
[8445994.270685] piControl: output offset    31  len   4
[8445994.271204] piControl: Enter SlaveDetectionRight State
[8445994.281444] piControl: Enter ConfigDialogueRight State
[8445994.298683] piControl: GetDeviceInfo: Id 96
[8445994.310676] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[8445994.310681] piControl: input offset     35  len  70
[8445994.310684] piControl: output offset   105  len  18
[8445994.311209] piControl: Enter SlaveDetectionRight State
[8445994.321528] piControl: Enter InitialSlaveDetectionLeft State
[8445994.322071] piControl: Enter EndOfConfig State
[8445994.322079] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8445994.322088] piControl:            input offset      0  len   6
[8445994.322090] piControl:            output offset     6  len   5
[8445994.322092] piControl:            serial number 1  version 1.2
[8445994.322095] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8445994.322098] piControl:            input offset     11  len  20
[8445994.322101] piControl:            output offset    31  len   4
[8445994.322103] piControl:            serial number 72397  version 1.4
[8445994.322105] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8445994.322109] piControl:            input offset     35  len  70
[8445994.322111] piControl:            output offset   105  len  18
[8445994.322113] piControl:            serial number 76603  version 1.5
[8445994.322115] piControl: 
[8445994.322120] piControl: Adjust: base 0 in 0 out 6 conf 0
[8445994.322124] piControl: Adjust: base 11 in 11 out 31 conf 35
[8445994.322127] piControl: Adjust: base 99 in 99 out 169 conf 187
[8445994.322130] piControl: After Adjustment
[8445994.322132] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8445994.322135] piControl:            input offset      0  len   6
[8445994.322137] piControl:            output offset     6  len   5
[8445994.322139] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8445994.322142] piControl:            input offset     11  len  20
[8445994.322144] piControl:            output offset    31  len   4
[8445994.322146] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8445994.322149] piControl:            input offset     99  len  70
[8445994.322151] piControl:            output offset   169  len  18
[8445994.322153] piControl: 
[8445994.426684] piControl: start data exchange
[8445994.662684] piControl: piAIOComm_Init done 0
[8445994.674275] piControl: piDIOComm_Init done -5
[8445994.674281] piControl: piDIOComm_Init(33) failed, error -5
[8445994.677821] piControl: set BridgeState to running
[8447194.616891] piControl: Reset: BridgeState=2 
[8447194.652075] piControl: stop data exchange
[8447194.652439] piControl: piIoComm_gotoGateProtocol returned 0
[8447194.653882] piControl: read file finished, f_pos=27780
[8447194.653904] piControl: 3 devices found
[8447194.653906] piControl: 152 entries in total
[8447194.654377] piControl: RevPiDevice_init()
[8447194.654395] piControl: No HAT eeprom detected: Fallback to default serial
[8447194.654510] piControl: Enter Init State
[8447194.655031] piControl: Enter PresentSignalling1 State
[8447194.693671] piControl: Enter InitialSlaveDetectionRight State
[8447194.694195] piControl: Enter ConfigRightStart State
[8447194.704970] piControl: Enter ConfigDialogueRight State
[8447194.720032] piControl: GetDeviceInfo: Id 103
[8447194.732042] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[8447194.732051] piControl: input offset     11  len  20
[8447194.732054] piControl: output offset    31  len   4
[8447194.732575] piControl: Enter SlaveDetectionRight State
[8447194.742836] piControl: Enter ConfigDialogueRight State
[8447194.760031] piControl: GetDeviceInfo: Id 96
[8447194.772032] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[8447194.772038] piControl: input offset     35  len  70
[8447194.772043] piControl: output offset   105  len  18
[8447194.772566] piControl: Enter SlaveDetectionRight State
[8447194.782814] piControl: Enter InitialSlaveDetectionLeft State
[8447194.783331] piControl: Enter EndOfConfig State
[8447194.783334] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8447194.783338] piControl:            input offset      0  len   6
[8447194.783340] piControl:            output offset     6  len   5
[8447194.783342] piControl:            serial number 1  version 1.2
[8447194.783344] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8447194.783348] piControl:            input offset     11  len  20
[8447194.783350] piControl:            output offset    31  len   4
[8447194.783352] piControl:            serial number 72397  version 1.4
[8447194.783355] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8447194.783358] piControl:            input offset     35  len  70
[8447194.783360] piControl:            output offset   105  len  18
[8447194.783362] piControl:            serial number 76603  version 1.5
[8447194.783364] piControl: 
[8447194.783368] piControl: Adjust: base 0 in 0 out 6 conf 0
[8447194.783371] piControl: Adjust: base 11 in 11 out 31 conf 35
[8447194.783374] piControl: Adjust: base 99 in 99 out 169 conf 187
[8447194.783377] piControl: After Adjustment
[8447194.783379] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8447194.783382] piControl:            input offset      0  len   6
[8447194.783384] piControl:            output offset     6  len   5
[8447194.783386] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8447194.783389] piControl:            input offset     11  len  20
[8447194.783391] piControl:            output offset    31  len   4
[8447194.783393] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8447194.783396] piControl:            input offset     99  len  70
[8447194.783398] piControl:            output offset   169  len  18
[8447194.783400] piControl: 
[8447194.888044] piControl: start data exchange
[8447195.128053] piControl: piAIOComm_Init done 0
[8447195.130510] piControl: piDIOComm_Init done 0
[8447195.135623] piControl: set BridgeState to running
[8448258.268091] piControl: Note: ioctl KB_UPDATE_DEVICE_FIRMWARE is deprecated. Use PICONTROL_UPLOAD_FIRMWARE instead
[8448258.302475] piControl: stop data exchange
[8448258.302829] piControl: piIoComm_gotoGateProtocol returned 0
[8448258.362448] piControl: RevPi has no firmware to update
[8448258.362457] piControl: update 0 addr 0 ret -95
[8448258.365521] piControl: firmware file length: 63540
[8448258.366359] piControl: update firmware: 1.4 --> 1.5
[8448258.474442] piControl: fwuEnterFwuMode returned 0
[8448258.474454] piControl: using address 1
[8448262.050006] piControl: fwuEraseFlash returned 0
[8448280.238568] piControl: fwuResetModule returned 0
[8448280.254580] piControl: update firmware success
[8448280.254621] piControl: update 1 addr 32 ret 1
[8448280.256344] piControl: read file finished, f_pos=27780
[8448280.256364] piControl: 3 devices found
[8448280.256366] piControl: 152 entries in total
[8448280.256825] piControl: RevPiDevice_init()
[8448280.256844] piControl: No HAT eeprom detected: Fallback to default serial
[8448280.257183] piControl: Enter Init State
[8448280.257703] piControl: Enter PresentSignalling1 State
[8448280.296386] piControl: Enter InitialSlaveDetectionRight State
[8448280.296903] piControl: Enter ConfigRightStart State
[8448280.307178] piControl: Enter ConfigDialogueRight State
[8448280.322576] piControl: GetDeviceInfo: Id 103
[8448280.334573] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[8448280.334583] piControl: input offset     11  len  20
[8448280.334586] piControl: output offset    31  len   4
[8448280.335107] piControl: Enter SlaveDetectionRight State
[8448280.345361] piControl: Enter ConfigDialogueRight State
[8448280.362564] piControl: GetDeviceInfo: Id 96
[8448280.374573] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[8448280.374581] piControl: input offset     35  len  70
[8448280.374583] piControl: output offset   105  len  18
[8448280.375110] piControl: Enter SlaveDetectionRight State
[8448280.385368] piControl: Enter InitialSlaveDetectionLeft State
[8448280.385886] piControl: Enter EndOfConfig State
[8448280.385889] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8448280.385894] piControl:            input offset      0  len   6
[8448280.385896] piControl:            output offset     6  len   5
[8448280.385898] piControl:            serial number 1  version 1.2
[8448280.385900] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8448280.385904] piControl:            input offset     11  len  20
[8448280.385906] piControl:            output offset    31  len   4
[8448280.385908] piControl:            serial number 72397  version 1.5
[8448280.385911] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8448280.385914] piControl:            input offset     35  len  70
[8448280.385916] piControl:            output offset   105  len  18
[8448280.385918] piControl:            serial number 76603  version 1.5
[8448280.385921] piControl: 
[8448280.385925] piControl: Adjust: base 0 in 0 out 6 conf 0
[8448280.385928] piControl: Adjust: base 11 in 11 out 31 conf 35
[8448280.385931] piControl: Adjust: base 99 in 99 out 169 conf 187
[8448280.385934] piControl: After Adjustment
[8448280.385936] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[8448280.385939] piControl:            input offset      0  len   6
[8448280.385941] piControl:            output offset     6  len   5
[8448280.385943] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[8448280.385946] piControl:            input offset     11  len  20
[8448280.385948] piControl:            output offset    31  len   4
[8448280.385950] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[8448280.385953] piControl:            input offset     99  len  70
[8448280.385955] piControl:            output offset   169  len  18
[8448280.385957] piControl: 
[8448280.490573] piControl: start data exchange
[8448280.726570] piControl: piAIOComm_Init done 0
[8448280.728881] piControl: piDIOComm_Init done 0
[8448280.734146] piControl: set BridgeState to running
und der Output von uname -a:

Code: Select all

Linux <hostname> 6.6.0-revpi9-rpi-v8 #1+deb12+1 SMP PREEMPT_RT Tue, 24 Jun 2025 12:18:49 +0000 aarch64 GNU/Linux
Online
User avatar
nicolaiB
KUNBUS
Posts: 1123
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by nicolaiB »

Der laufende Kernel ist fast ein Jahr alt. Bitte spiele die aktuellen Updates ein und prüfe ob der Fehler auch mit der aktuellen Version von piControl auftritt. Die Fehlermeldung zeigt dass das Modul physisch erkannt wird, aber nicht in der Konfiguration gefunden wurde. Wie wird die Konfiguration erstellt?

Gruß Nicolai
Nicolai
Franzi28
Posts: 5
Joined: 06 May 2026, 14:27

Re: DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by Franzi28 »

Das Problem ist in der Zwischenzeit auf einem anderen Core aufgetreten, wo schon Software aktualisiert wurde. Da ist der Strom ausgefallen und beim Neustart wurde das DIO nicht richtig konfiguriert.
Dort ist der Output von dmesg | grep piControl:

Code: Select all

[    3.471797] piControl: loading out-of-tree module taints kernel.
[    3.475261] piControl: running on RevPi Core
[    3.605920] piControl: found 3 devices in configuration file
[    3.607060] piControl: set priority of spi0 to 54
[    3.607240] piControl: No HAT eeprom detected: Fallback to default serial
[    3.681515] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[    3.729534] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[    3.749549] piControl: PiBridge termination enabled for module 33
[    3.758277] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[    3.758293] piControl:            input offset      0  len   6
[    3.758296] piControl:            output offset     6  len   5
[    3.758298] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[    3.758301] piControl:            input offset     11  len  20
[    3.758304] piControl:            output offset    31  len   4
[    3.758306] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[    3.758309] piControl:            input offset     99  len  70
[    3.758311] piControl:            output offset   169  len  18
[    3.758313] piControl: 
[    3.758325] piControl: PiBridge termination enabled for base device
[    3.861526] piControl: start data exchange
[    4.093470] piControl: set state to running
[   23.540367] piControl: driver reset requested
[   23.577565] piControl: stop data exchange
[   23.577937] piControl: piIoComm_gotoGateProtocol returned 0
[   23.579356] piControl: found 3 devices in configuration file
[   23.579837] piControl: No HAT eeprom detected: Fallback to default serial
[   23.649503] piControl: found 2. device on right side. Moduletype 103. Designated address 32
[   23.697532] piControl: found 3. device on right side. Moduletype 96. Designated address 33
[   23.717575] piControl: PiBridge termination enabled for module 33
[   23.727272] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[   23.727287] piControl:            input offset      0  len   6
[   23.727289] piControl:            output offset     6  len   5
[   23.727291] piControl: Device  1: Addr 32 Type 103  Act 1  In  20 Out   4
[   23.727295] piControl:            input offset     11  len  20
[   23.727297] piControl:            output offset    31  len   4
[   23.727299] piControl: Device  2: Addr 33 Type  96  Act 1  In  70 Out  18
[   23.727302] piControl:            input offset     99  len  70
[   23.727304] piControl:            output offset   169  len  18
[   23.727307] piControl: 
[   23.727318] piControl: PiBridge termination enabled for base device
[   23.829499] piControl: start data exchange
[   24.065092] piControl: piDIOComm_Init(33) failed, error -5
[   24.068695] piControl: set state to running
und uname -a gibt folgendes aus:

Code: Select all

Linux <hostname> 6.12.73-revpi0-rpi-v8 #1+deb12+1 SMP PREEMPT_RT Tue Mar 24 20:07:13 UTC 2026 aarch64 GNU/Linux
Ich würde auch gerne nochmal auf meine Frage zurückkommen, warum der analoge Input "RevPiStatus" vom Core diesen Fehler nicht registriert, obwohl er über piTest -d angezeigt wird? "RevPiStatus" ist dauerhaft 1 obwohl es in diesem Zustand eigentlich eine 3 zeigen sollte.
Franzi28
Posts: 5
Joined: 06 May 2026, 14:27

Re: DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by Franzi28 »

Wir haben uns für alle Module, die wir verwenden eine Standardkonfiguration, mit Hilfe von pictory, als .rsc gespeichert. Die Konfiguration wird dann daraus zusammengebaut, indem Variablennamen, bei den AIOs Multiplier, Divisor, usw., und Default Values überschrieben werden und der Offset entsprechend hochgezählt wird. Das piControl Reset wird erst getriggert, wenn die komplette config im dafür vorgesehen Ordner gespeichert wurde.
Online
User avatar
nicolaiB
KUNBUS
Posts: 1123
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: DIO wird nicht erkannt und RevPiStatus nicht aktualisiert

Post by nicolaiB »

Hi Franzi,

kannst du uns bitte von dem System einen SOS Report an support@kunbus.com schicken? Wir versuchen es dann einmal bei uns nachzustellen.

Danke & Gruß
Nicolai
Nicolai
Post Reply