+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 3
    Points: 50, Level: 1

    Join Date
    Mar 2015
    Posts
    4
    Helped
    0 / 0
    Points
    50
    Level
    1

    [Moved] Reading from another MCU and writing and copying information C++

    C++

    What I would like to do is make two MCUs (atmega328p) connected via Rx and Tx terminals read each others internal memory and copy the data to its own.

    Example:

    On MCU 1- Indentity = 123
    On MCU 2- Indentity = 456

    What I am aiming to achieve is for MCU 1 to read MCU 2s indentity of (456) and copy the code into its own memory. Having the ability to recall that MCU 2s identity = 456 even when the two are not connected.

    How would this be coded using C++??
    Last edited by sheffladreece; 29th April 2015 at 17:13.

    •   AltAdvertisement

        
       

  2. #2
    Banned
    Points: 12,436, Level: 26

    Join Date
    Apr 2013
    Posts
    2,528
    Helped
    538 / 538
    Points
    12,436
    Level
    26

    Re: [Moved] Reading from another MCU and writing and copying information C++

    You want code for Arduino ?



    •   AltAdvertisement

        
       

  3. #3
    Banned
    Points: 12,436, Level: 26

    Join Date
    Apr 2013
    Posts
    2,528
    Helped
    538 / 538
    Points
    12,436
    Level
    26

    Re: [Moved] Reading from another MCU and writing and copying information C++

    MCU1 sends Identity data to MCU2. MCU2 reads it and saves it in its internal eeprom. MCU restarts and reads eeprom and loads the MCU1's Identity data to a variable and this will be available when MCU2 is running. After MCU2 reads and saves MCU1's data then MCU2 can send its data to MCU1.



--[[ ]]--