Readdy Write

Error System.IO.IOException: Error 2. Can not open I2C device file '/dev/i2c-1'.

05.03.2022 (👁6209)


 

Bei AusfĂŒhren einer Messkarte auf Raspberry Pi 4

In Debug Anwendung

fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]

      An unhandled exception has occurred while executing the request.

      System.IO.IOException: Error 2. Can not open I2C device file '/dev/i2c-1'.

         at System.Device.I2c.UnixI2cBus.Create(Int32 busId)

         at System.Device.I2c.I2cDevice.Create(I2cConnectionSettings settings)

 

 

 

 

Lösung:


auf dem Raspberry Pi  auf die Eingabe-Console gehen

Raspberry Pi 4 Model B Rev 1.4

 

Eingabe:

 

Raspberry Pi Software Configuration Tool (raspi-config)

sudo raspi-config  

 

Ein Bild, das Text enthÀlt.

Automatisch generierte Beschreibung

 

 

Dann

P5 I2C  Enable/disable automatic loading of I2C kernel module

 

 

 

Would you like the ARM I2C interface to be enabled?

>      <YES>

Ein Bild, das Text, Screenshot, Monitor enthÀlt.

Automatisch generierte Beschreibung

 

The ARM I2 C interface is enabled

Ein Bild, das Text, Monitor, Screenshot enthÀlt.

Automatisch generierte Beschreibung

 

 

Danach lÀuft die Software und Hardware auf dem Raspberry Pi

Ein Bild, das Text enthÀlt.

Automatisch generierte Beschreibung

Hier lÀuft die Karte:
Ein Bild, das Text, Elektronik enthÀlt.

Automatisch generierte Beschreibung

Ein Bild, das Text, Elektronik, Anzeige, Computer enthÀlt.

Automatisch generierte Beschreibung
















0,00 €