Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Currently I am working on RFID reader with c#. I have to work multiple atmega2560, so every atmega have its own Slave ID, How Can I read multiple available Slave ID?

What I have tried:

lstBaudrate.SelectedIndex = 0;

        //3) Datatype:
        string[] dataTypes = { "Decimal" };

        foreach (string dataType in dataTypes)
        {
            lstDataType.Items.Add(dataType);
        }

        lstDataType.SelectedIndex = 0;
        string[] slaves = { "1", "2", "3", "4", "5" };
        //Textbox defaults:
        txtRegisterQty.Text = "3";
        txtSampleRate.Text = "1000";

        txtSlaveID.Text = "2";




        txtStartAddr.Text = "0";
Posted
Comments
[no name] 4-Sep-18 10:35am    
What "protocol" are you using?

e.g. In the MODBUS protocol, the "slave id" is always the first byte of the "message".
ZurdoDev 4-Sep-18 13:47pm    
This seems pretty basic code and not related to your question. I'm not sure how to help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900