Giter VIP home page Giter VIP logo

Comments (8)

danewalton avatar danewalton commented on July 18, 2024

Hi @aardrasystems
The registration ID is not the same thing as the enrollment group. The provisioning service needs a way to distinguish devices from each other and the registration ID is how this is done. It seems like you are using SAS key group enrollment so for that here is the documentation just in case: https://docs.microsoft.com/en-us/azure/iot-dps/concepts-symmetric-key-attestation?tabs=linux#group-enrollments

from iot-middleware-freertos-samples.

aardrasystems avatar aardrasystems commented on July 18, 2024

Thanks
Thanks, I will read the document?

Is it possible to find this Azure Device Provisioning Service Registration ID in the portal, so that I can get the demo running with DPS?

Is it possible to use the SAS token with ADP?

from iot-middleware-freertos-samples.

danewalton avatar danewalton commented on July 18, 2024

The registration ID is determine by you. From the docs using Azure CLI:

az iot dps compute-device-key --key 8isrFI1sGsIlvvFSSFRiMfCNzv21fjbE/+ah/lSh3lF8e2YG1Te7w1KpZhJFFXJrqYKi9yegxkqIChbqOS9Egw== --registration-id sn-007-888-abc-mac-a1-b2-c3-d4-e5-f6

That last part is a unique registration ID which you can come up with.

from iot-middleware-freertos-samples.

aardrasystems avatar aardrasystems commented on July 18, 2024

Ok, so that I have understood it correct:

I replace "8isrFI1sGsIlvvFSSFRiMfCNzv21fjbE/+ah/lSh3lF8e2YG1Te7w1KpZhJFFXJrqYKi9yegxkqIChbqOS9Egw=="
With my primary key for my enrollment group?

But when it comes to REG_ID, I believe this is the device's ID. How would I know this ID?

What i was hoping to do is apply DPS to multiple devices,for it to join the IoTHub.

from iot-middleware-freertos-samples.

danewalton avatar danewalton commented on July 18, 2024

The primary key comes from here:

image

The registration key must be different for each device so you can't use the same one for all of them. For more details on what registration ids and device ids are used for, please see here: https://docs.microsoft.com/en-us/azure/iot-dps/concepts-service#registration-id

from iot-middleware-freertos-samples.

danewalton avatar danewalton commented on July 18, 2024

Hi @aardrasystems I'm going to go ahead and close this for now. Please let us know if you would like it reopened.

from iot-middleware-freertos-samples.

alee-shaan avatar alee-shaan commented on July 18, 2024

Hi, @danewalton I am just wondering if the registration ID which is supposed to be unique(can be a Mac ID of ESP 32) uses a group enrollment primary key to generate a device key that is to be fed as a symmetric key. https://learn.microsoft.com/en-us/azure/iot-dps/how-to-legacy-device-symm-key?tabs=windows&pivots=programming-language-ansi-c#derive-a-device-key

but ideally, it should fetch the Mac address and generate the device key using the group enrollment primary key it self!

from iot-middleware-freertos-samples.

ericwol-msft avatar ericwol-msft commented on July 18, 2024

For group enrollments, the registration ID is the device ID. Devices should not store the group enrollment primary key, but the device key used for enrollment should be generated externally and and configured on the device.

https://learn.microsoft.com/en-us/azure/iot-dps/concepts-service

from iot-middleware-freertos-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.