can't subscribe to AWS IoT FleetWise topic.

0

Hello AWS people. I set my IoT Core Policy like this.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "iot:Connect"
      ],
      "Resource": [
        "arn:aws:iot:us-east-1:ACCOUNT:client/${iot:Connection.Thing.ThingName}"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "iot:Publish"
      ],
      "Resource": [
        "arn:aws:iot:us-east-1:ACCOUNT:topic/$aws/iotfleetwise/vehicles/${iot:Connection.Thing.ThingName}/checkins",
        "arn:aws:iot:us-east-1:ACCOUNT:topic/$aws/iotfleetwise/vehicles/${iot:Connection.Thing.ThingName}/signals"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "iot:Subscribe"
      ],
      "Resource": [
        "arn:aws:iot:us-east-1:ACCOUNT:topicfilter/$aws/iotfleetwise/vehicles/${iot:Connection.Thing.ThingName}/collection_schemes",
        "arn:aws:iot:us-east-1:ACCOUNT:topicfilter/$aws/iotfleetwise/vehicles/${iot:Connection.Thing.ThingName}/decoder_manifests"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "iot:Receive"
      ],
      "Resource": [
        "arn:aws:iot:us-east-1:ACCOUNT:topic/$aws/iotfleetwise/vehicles/${iot:Connection.Thing.ThingName}/collection_schemes",
        "arn:aws:iot:us-east-1:ACCOUNT:topic/$aws/iotfleetwise/vehicles/${iot:Connection.Thing.ThingName}/decoder_manifests"
      ]
    }
  ]
}

But I can't subscribe checkins and signals topic at AWS IoT Core MQTT Client CONSOLE. 여기에 이미지 설명 입력

What should I solve this problem?

3 Answers
0
Accepted Answer

The checkin and signals topics are specific to the FleetWise service and and cannot be subscribed by clients. That's why the IoT Policy only allows a vehicle (FWE) to publish to them. As the details are to provide FleetWise with status of the vehicle (checkin) and the signal telemetry (signals), what are you looking to do with the data? Understanding that will help get a resolution for you.

AWS
Gavin_A
answered a month ago
  • I just wanted to subscribe to MQTT Topic, because I wanted to make sure the data was being sent from FWE to AWS Fleetwise. Is there any way I can see the process of data being transferred other than the MQTT Topic subscription? Thank you for your answer.

  • There is! the FWE log files, accessible via journalctl, will show connection to the cloud and verification that signals were sent. You may have to increase the logging level, which is set in the /etc/aws-iot-fleetwise/config-0.jsonfile. Cloud side, CloudWatch Logs and Metrics will help measure incoming signals, errors, and other conditions.

  • Thanks a lot. I will check my config-0.json file.

0

Has the vehicle been provisioned?

I assumed from the error message that the reserved topic might not exist.

https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/provision-vehicles.html

profile picture
EXPERT
shibata
answered a month ago
  • I created Thing through <Connect one device> in AWS IoT Core console. Then, I put in the correct policy, and moved the certificate safely to the vehicle. If there was an authentication issue with my Thing, FWE would not have been installed in my vehicle. But I checked that FWE was installed and working properly. The question is, can't I subscribe to only checkins and signals topics? I can subscribe to decoder_manifests and collection_schemes topics, and I could also see which messages were published. What's the problem? I really want to solve this problem.

0

I created Thing through <Connect one device> in AWS IoT Core console. Then, I put in the correct policy, and moved the certificate safely to the vehicle. If there was an authentication issue with my Thing, FWE would not have been installed in my vehicle. But I checked that FWE was installed and working properly. The question is, why can't I subscribe to only checkins and signals topics? I can subscribe to decoder_manifests and collection_schemes topics, and I could also see which messages were published. What's the problem? I really want to solve this problem. Please help me...

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions