AWS IoT FleetWise CAN Bus Interface usbtty0

0

Hello. AWS people. I want to install FleetWise Edge Agent on my vehicle. My CAN interface is ttyUSB0. I ran install-fwe.sh after setting it up as follows. But the installation failed.

$ sudo apt-get install can-utils
$ sudo modprobe can
$ sudo modprobe vcan
$ sudo modprobe slcan
$ sudo slcand -o -c -f -s6 /dev/ttyUSB0 slcan0
$ sudo ifconfig slcan0 up

My config-0.json file is as follows.

{
  "version": "1.0",
  "networkInterfaces": [
    {
      "canInterface": {
        "interfaceName": "slcan0",
        "protocolName": "CAN",
        "protocolVersion": "2.0A"
      },
      "interfaceId": "1",
      "type": "canInterface"
    },
    {
      "obdInterface": {
        "interfaceName": "slcan0",
        "obdStandard": "J1979",
        "pidRequestIntervalSeconds": 0,
        "dtcRequestIntervalSeconds": 0,
        "broadcastRequests": true
      },
      "interfaceId": "2",
      "type": "obdInterface"
    }
  ],
  "staticConfig": {
    "bufferSizes": {
      "dtcBufferSize": 100,
      "decodedSignalsBufferSize": 10000,
      "rawCANFrameBufferSize": 10000
    },
    "threadIdleTimes": {
      "inspectionThreadIdleTimeMs": 50,
      "socketCANThreadIdleTimeMs": 50,
      "canDecoderThreadIdleTimeMs": 50
    },
    "persistency": {
      "persistencyPath": "/path/to/collection-scheme-and-data-persistency",
      "persistencyPartitionMaxSize": 524288,
      "persistencyUploadRetryIntervalMs": 10000
    },
    "internalParameters": {
      "readyToPublishDataBufferSize": 10000,
      "systemWideLogLevel": "Trace",
      "maximumAwsSdkHeapMemoryBytes": 10000000
    },
    "publishToCloudParameters": {
      "maxPublishMessageCount": 1000,
      "collectionSchemeManagementCheckinIntervalMs": 120000
    },
    "mqttConnection": {
      "connectionType": "iotCore",
      "endpointUrl": "my-endpoint.my-region.amazonaws.com",
      "clientId": "myvehicle",
      "collectionSchemeListTopic": "$aws/iotfleetwise/vehicles/myvehicle/collection_schemes",
      "decoderManifestTopic": "$aws/iotfleetwise/vehicles/myvehicle/decoder_manifests",
      "canDataTopic": "$aws/iotfleetwise/vehicles/myvehicle/signals",
      "checkinTopic": "$aws/iotfleetwise/vehicles/myvehicle/checkins",
      "certificateFilename": "etc/aws-iot-fleetwise/certificate.pem.crt",
      "privateKeyFilename": "etc/aws-iot-fleetwise/private-key.key"
    },
    "credentialsProvider": {
      "endpointUrl": "my-endpoint.credentials.iot.my-region.amazonaws.com",
      "roleAlias": "my-role-alias"
    },
    "s3Upload": {
      "maxEnvelopeSize": 104857600,
      "multipartSize": 5242880,
      "maxConnections": 2
    },
    "visionSystemDataCollection": {
      "rawDataBuffer": {
        "maxSize": 1073741824,
        "reservedSizePerSignal": 5242880
      }
    }
  }
}

This is my error log of FWE installation. That's all...

Started FWE #0.
Version: 1.1.0, git tag: v1.1.0, git commit sha: daa51bd4f7895f82edf103d4e202f32573264920, Build time: 2024-01-03 04:57:38
Segmentation fault (core dumped)
fwe@0.service: Main process exited, code=exited, status=139/n/a
fwe@0.service: Failed with result 'exit-code'.
fwe@0.service: Scheduled restart job, restart counter is at 5.
Stopped FWE #0.
fwe@0.service: Start request repeated too quickly.
fwe@0.service: Failed with result 'exit-code'.
Failed to start FWE #0.

What should I do to fix the FWE installation error?

  • Can you update your post to show what logs are being generated when attempting to install and start the FWE?

  • @Gavin_A I updated my error log. Check please. Thanks!

gefragt vor 2 Monaten107 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen