Skip to content

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

@muenchris

Description

@muenchris

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions