Summary
When I register a device using a QR code, only the brand is automatically filled. I have to manually choose the model despite the QR code containing the vendor profile ID and the device repository containing the device.
Steps to Reproduce
- Register an end device using a qrcode (format tr005)
Current Result
Only the brand is automatically filled out in the form.
Expected Result
I expect Brand, Model, Hardware Version and Software version correctly filled out with the data from the QR code and the device repository.
Relevant Logs
qrcode parser response:
{
"format_id": "tr005",
"end_device_template": {
"end_device": {
"ids": {
"dev_eui": "AABBCCDDEEFF0011",
"join_eui": "1122334455667788"
},
"claim_authentication_code": {},
"lora_alliance_profile_ids": {
"vendor_id": 1115,
"vendor_profile_id": 22074
}
},
"field_mask": {
"paths": [
"ids",
"claim_authentication_code"
]
}
}
}
Request: /api/v3/dr/applications/sept-s/vendors/1115/profiles/22074/template
Response:
{
"end_device": {
"version_ids": {
"brand_id": "sept-s",
"model_id": "tg563a",
"hardware_version": "1.0",
"firmware_version": "1.0",
"band_id": "EU_863_870"
},
"lorawan_version": "MAC_V1_0_4",
"lorawan_phy_version": "RP002_V1_0_3",
"supports_join": true,
"mac_settings": {
"supports_32_bit_f_cnt": true
},
"formatters": {
"up_formatter": "FORMATTER_REPOSITORY",
"down_formatter": "FORMATTER_REPOSITORY"
}
},
"field_mask": {
"paths": [
"version_ids",
"supports_join",
"supports_class_b",
"supports_class_c",
"lorawan_version",
"lorawan_phy_version",
"formatters",
"mac_settings.supports_32_bit_f_cnt"
]
}
}
URL
No response
Deployment
The Things Stack Open Source (self-hosted)
The Things Stack Version
3.36.0
Client Name and Version
TTN 3.36.0 running on Debian 13
web browser: Chrome 149 (Android)
Device repository: (forked) https://github.com/sept-s/lorawan-devices/tree/dev-sept-s
Other Information
I also have the problem when I add a device from other manufacturers (simulated qrcode).
Proposed Fix
Get the device profile in the device repository using the vendor profile ID in the QR code.
Contributing
Validation
Code of Conduct
Summary
When I register a device using a QR code, only the brand is automatically filled. I have to manually choose the model despite the QR code containing the vendor profile ID and the device repository containing the device.
Steps to Reproduce
Current Result
Only the brand is automatically filled out in the form.
Expected Result
I expect Brand, Model, Hardware Version and Software version correctly filled out with the data from the QR code and the device repository.
Relevant Logs
qrcode parser response: { "format_id": "tr005", "end_device_template": { "end_device": { "ids": { "dev_eui": "AABBCCDDEEFF0011", "join_eui": "1122334455667788" }, "claim_authentication_code": {}, "lora_alliance_profile_ids": { "vendor_id": 1115, "vendor_profile_id": 22074 } }, "field_mask": { "paths": [ "ids", "claim_authentication_code" ] } } } Request: /api/v3/dr/applications/sept-s/vendors/1115/profiles/22074/template Response: { "end_device": { "version_ids": { "brand_id": "sept-s", "model_id": "tg563a", "hardware_version": "1.0", "firmware_version": "1.0", "band_id": "EU_863_870" }, "lorawan_version": "MAC_V1_0_4", "lorawan_phy_version": "RP002_V1_0_3", "supports_join": true, "mac_settings": { "supports_32_bit_f_cnt": true }, "formatters": { "up_formatter": "FORMATTER_REPOSITORY", "down_formatter": "FORMATTER_REPOSITORY" } }, "field_mask": { "paths": [ "version_ids", "supports_join", "supports_class_b", "supports_class_c", "lorawan_version", "lorawan_phy_version", "formatters", "mac_settings.supports_32_bit_f_cnt" ] } }URL
No response
Deployment
The Things Stack Open Source (self-hosted)
The Things Stack Version
3.36.0
Client Name and Version
Other Information
I also have the problem when I add a device from other manufacturers (simulated qrcode).
Proposed Fix
Get the device profile in the device repository using the vendor profile ID in the QR code.
Contributing
Validation
Code of Conduct