Skip to content

How to work with multiple servers #117

Description

@focussing

I have 3 identical boards in my system which I want to control using a C# application.
The boards have 2 dip switches to set the slave address to 1 2 or 3 (0 is broadcast).
During initialization the server is inialized with the address:

    uint8_t    serverAddress = GpioGetBoardAddress();
    nmbs_error err           = nmbs_server_create(&nmbs, serverAddress, &platform_conf, &callbacks);

Tested all boards separately with dip switches set to 1 or 2 or 3. Communication works top on every slave address.

When I test with all 3 boards connected on the bus with all having their own address (board1 has addr1 etc) communication is unstable.
I (manually, so very slow) send read_holding_registers to all slave-addresses, and only one of the slaves replies with the correct answer, the others do not response, these 2 are hanging.

This is an urgent problem...
Please respond.

Best regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions