nanoframework/Home

Modbus Max-Device-ID too low for devices with high IDs

开放

#1,657 创建于 2025年7月19日

 (12 条评论) (0 个反应) (2 位负责人) (89 个派生)auto 404
Area: IoT.DevicesPriority: LowType: Feature requestgood first issuetrivial

仓库指标

星标
 (936 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Library/API/IoT binding

Modbus

Visual Studio version

VS2022.17.4

.NET nanoFramework extension version

No response

Target name(s)

ALL

Firmware version

N/A

Device capabilities

No response

Description

There are devices out there (i.e. https://www.amazon.com/dp/B07ZYVZZKK?ref=ppx_yo2ov_dt_b_fed_asin_title - See section #3 "Read device ID") that use a high ID during calibration or readout of their real ID.

    /// <summary>
    /// The highest accepted device id on RTU protocol.
    /// </summary>
    public const byte MaxDeviceId = 0xF7; // 247 

This number needs to be increased to 255 to be able to read these parameters off these devices

How to reproduce

Try to access any device with a system parameter device ID larger than 247 like https://www.amazon.com/dp/B07ZYVZZKK?ref=ppx_yo2ov_dt_b_fed_asin_title

Expected behaviour

Should be possible somehow. Maybe with a special call that allows to address these high numbers

Screenshots

No response

Sample project or code

No response

Aditional information

No response

贡献者指南