Remote upload to Neo?

Discussion in 'UDOO NEO' started by Maurice, Jun 1, 2016.

  1. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I have my Neo connected to the network, not easily connecting to my laptop via USB. Is it possible to have the Arduino IDE upload to the Neo's network IP instead of 192.168.7.2?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    That would be a nice option! Isn't it working yet? As it should work when connected as an headless device, so not only USB. But documentation is not always clear
    As a workaround perhaps put the compiled file in a shared folder and have a cron on the Neo push it to the M4 with command udooneo-m4uploader.sh <BINARY_PATH>
     
  3. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    How do you create a binary file? If I do a 'Export Compiled Binary' I get the following result:
    Warning: This core does not support exporting sketches. Please consider upgrading it or contacting its author

    With an Arduino it just creates a binary.
     
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    You can upload the sketch from an external PC via network if you know the IP address of UDOO NEO.
    You can modify the file named platform.txt in the Arduino IDE's UDOO NEO dedicated folder. For example, once downloaded the UDOO NEO Board Manager I have this file in Windows 10 in the directory:
    Code:
    C:\Users\
    <my_username>\AppData\Local\Arduino15\packages\UDOO\hardware\solox\1.6.5
    At the end of the file you'll find this row:
    Code:
    tools.udooclient.upload.pattern="{path}/{cmd}" "192.168.7.2:5152" "{build.path}/{build.project_name}.bin"
    Substitute 192.168.7.2 with [your UDOO NEO's IP address]:5152
    For example, I have 192.168.7.2:5152"
    I have to substitute it with [my IP address]:5152
    This thanks to UDOO FOTA (Firmware Over The Air): https://github.com/UDOOboard/udoofota
    You can also directly use the UDOO client to upload the binary without using the Arduino IDE.
    If you want to contribute to the development of UDOO FOTA you are very much appreciated. We'll put in the Documentation as soon as possible.
     
    Maurice likes this.
  5. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    Will a directory be created for each 'new' Neo (e.g. if you re-flash your SD card)?
     
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    @JackSilb this discussion could be interesting for you
     
    Andrea Rovai likes this.
  7. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    @Maurice: no, it will be for each new version of the board manager.
     

Share This Page