+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Full Member level 3
    Points: 2,037, Level: 10

    Join Date
    Nov 2010
    Posts
    175
    Helped
    0 / 0
    Points
    2,037
    Level
    10

    Arduino programming from a Wifi

    Hello everyone

    I want to update the sketch inside arduino (Uno or Pro Mini) from the wifi (ESP-12 Module) connected to its tx and rx. I watched several videos but I found details are complex. Can any one have an ordered and clear steps (or materials) about how to do this?

    thanks

    •   Alt21st June 2017, 16:53

      advertising

        
       

  2. #2
    Super Moderator
    Points: 24,309, Level: 37
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    7,297
    Helped
    911 / 911
    Points
    24,309
    Level
    37
    Blog Entries
    5

    Re: Arduino programming from a Wifi

    Although the question is somewhat open ended, it is not even necessary to perform any search on the internet to conclude that the solution to this would be to program a firmware on the side of the ESP8266 (preferably programmed as CPU) capable of forwarding the data received by the wireless network and mirror them to a serial TX output of the module itself. At least it is the first thing that comes to mind.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



    •   Alt21st June 2017, 18:42

      advertising

        
       

  3. #3
    Full Member level 3
    Points: 2,037, Level: 10

    Join Date
    Nov 2010
    Posts
    175
    Helped
    0 / 0
    Points
    2,037
    Level
    10

    Re: Arduino programming from a Wifi

    May be I had to explain more. Actually I have already an arduino circuit that interact with metering IC, and I want to have the ability to update the arduino code when I need to do so, but using Wifi module. I do not know how arduino call its bootloader and put it in "Waiting for New Code" state, also I do not know how wifi will know that it is the time now to give the arduino boot loader the new code.. may be there are many things that I do not understand in such process, so that may be what I say seems illogical. but for this reason I am here asking for help



    •   Alt21st June 2017, 19:35

      advertising

        
       

  4. #4
    Super Moderator
    Points: 24,309, Level: 37
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    7,297
    Helped
    911 / 911
    Points
    24,309
    Level
    37
    Blog Entries
    5

    Re: Arduino programming from a Wifi

    I was referring to download some serial bootloader sketch to the Arduino ( e.g STK500 ) and to use the ESP8266 as an standalone CPU to get the commands remotelly and foward it to the UNO board by using its serial output.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  5. #5
    Full Member level 3
    Points: 2,037, Level: 10

    Join Date
    Nov 2010
    Posts
    175
    Helped
    0 / 0
    Points
    2,037
    Level
    10

    Re: Arduino programming from a Wifi

    I understand. but I need a solution that all of it within arduino sketch, without need to program another CPU of the wifi



    •   Alt23rd June 2017, 12:26

      advertising

        
       

  6. #6
    Full Member level 3
    Points: 2,037, Level: 10

    Join Date
    Nov 2010
    Posts
    175
    Helped
    0 / 0
    Points
    2,037
    Level
    10

    Re: Arduino programming from a Wifi

    Quote Originally Posted by andre_teprom View Post
    I was referring to download some serial bootloader sketch to the Arduino ( e.g STK500 ) and to use the ESP8266 as an standalone CPU to get the commands remotelly and foward it to the UNO board by using its serial output.
    After some search, I began to be convinced that your way may be easier, o at least it is more straight forward to me. But what cripples me now, is the nature of these commands that will be sent from wifi CPU.
    1- Those commands will be sent in binary bytes form (logically they will not be ascii)?
    2- Are there any reference for knowing how the process of programming happens? (how starts talking first, is the bootloader the one who tell the sender to wait until it can write in memory, etc...)
    3- If I choose to talk to bootloader in STK500 protocol, how the boot loader will know that I am talking in STK500? (as far as I know the bootloader supports several protocols in programming, isn't it?)



--[[ ]]--