Not sure if this is the best place to ask this. If not I am sorry. But I have monitored similar questions about Upload and Upload using Programmer conversations recently.
Most of my recent playing around has been with the teensy 3.1s which I really like. So I know that there are ways to add optional menu items to the Tools menu.
But recently I started also playing around with a couple of Intel Edison boards (and also an Intel Galileo Gen 2), as one of the Robot manufactures that I spend a lot of time with, is coming out with at least one robot using an Intel Edison...
By default: if you wish to use the Arudino 1.5.3-Intel.1.0.4 IDE to program the device, you need to have it connected to your computer using one of its USB connectors and have it switched to have its built in USB in client mode. If your setup is such that you have USB devices connected to it, those devices will not work during that time as those use the same USB device with the switch in server mode...
Through some hints from some others, I was able to modify the upload sketch to instead do it using Wifi. The current script(...\hardware\arduino\edison\tools\izmir\clupload_win_hacked.sh) I am using looks like:
#!/bin/sh
echo "starting download script"
echo "Args to shell:" $*
edison_ip="192.168.2.115"
edison_pw="*** YourPassword ***"
SKETCH=/sketch/sketch.elf
OLD_SKETCH=/sketch/sketch.elf.old
$1/plink -pw $edison_pw root@$edison_ip "mv -f $SKETCH $OLD_SKETCH"
# Execute the target download command
#Download the file.
$1/pscp -scp -pw $edison_pw $2 root@$edison_ip:$SKETCH
$1/plink -pw $edison_pw root@$edison_ip "chmod +x $SKETCH"
$1/plink -pw $edison_pw root@$edison_ip "systemctl restart clloader"
This is working pretty well. Note: I have this setup on windows. I have not done it yet for Linux but would be similar except you can use the normal commands like SCP...
However today I received my second Edison. Needless to say it's wifi address will not be the same wifi address. Also I have had to change the script earlier when the wifi port changed after my router hung and had to be rebooted.
So I was wondering if there is a way to add a Tools Menu,
like: IP Addres, that can be used? I
know I could probably add it using the boards.txt, but do I have to manually
change the boards.txt each time to add an IP address to a list, or is there a
way to have the IDE have an edit box, where I can enter it and probably persist
it in preferences.txt? If it is not possible it would be nice to have.
Likewise if this was possible I would probably add another Item for password.
Assuming this is possible, I will then need to fetch the current values. I assume that these are available to the script ...\edison\platform.win.txt file that calls off to run this script.
Thanks in advance.
Kurt
I hit this issue with a chicken house project which I wanted to be be able to upgrade from the comfort of my office, whilst he chicken house is at the bottom of my garden. I have a solution which I've promised to upload, but have not done so yet, will try in the coming weeks. Mine goes via a raspberry PI so there are several links, each doing different bits of he upload /programming etc I can see the whole upload process including error output.
My suggestions on how to address this are :
Decouple user customisation of programmers / boards etc so that edits are not overwritten when people upgrade or reinstall. This can be achieved by separate files that are read at the same time as the original files and merged in memory before being processed as normal
Allow user customisation of the above to re-use existing definitions, hence allowing people to only customise the minimum, eg my board is like board x, but different in a,b,c. This allows for device specific IP addresses, hostnames. etc
Remove the need for all uploads to be over a com port - have none, network and other such types this could even give an option for upload using. It's just another programmer type. Dovetails in nicely to the bootloader discussions.
Give the use the ability to populate menu options that can be found as variables in get scripts. Possibly with constraints on common types such as IP address, hostname, drop-down options read from the customisation file detailed above. This would make things look integrated. It provides some flexibility too. There are lots of options here.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.