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개 답변
0
수락된 답변

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
답변함 한 달 전
  • 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
전문가
shibata
답변함 한 달 전
  • 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...

답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인