nanoframework/Home

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

Open

#1,657 opened on Jul 19, 2025

 (12 comments) (0 reactions) (2 assignees) (89 forks)auto 404
Area: IoT.DevicesPriority: LowType: Feature requestgood first issuetrivial

Repository metrics

Stars
 (936 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide