Remote development with local build ?

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I want to finetune my code remotely. This is no problem (using Vino/Vinagre in linux or VNC or TeamViewer). But it is slow and my remote computer is very old.

So I want to build my project on my local computer, and just send the .hex file to the remote computer which should then automatically program it with avrdude. I could set up a ftp-server on the remote computer, but it's getting complicated. I also have a serial terminal on the remote computer to view debug output from the AVR chip, and to issue some commands.

Is there a simple solution ?
I want to use a script (in linux) to build the project and to send the .hex file.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

scp and ssh?

scp -p main.hex user@host:.
ssh user@host avrdude -p m1284p -P /dev/tty00 -c stk500 -U main.hex
===================================================================
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

although I don't need a secure connection, it's possible to transfer files this way. I have to enable the incoming port, because by default all incoming ports are disabled on my computers (I hope so).

But I still want the remote computer to automatically burn the new .hex file.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

what about using git. the post-hooks could check for a updated hex file and execute avrdude for you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"git", the version control system ?
That would do, but it's getting even more complicated.

I could also setup a Samba/SMB disc, and write the script on the remote computer that checks for file updates. At least, that is something I understand.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kun.io wrote:
Is there a simple solution ?
A terminal server (i.e. serial-to-Ethernet bridge). For one job, a terminal server was used to connect the target's serial port (target's bootloader on serial) to the campus Ethernet. I can't recall if the target's reset signal was connected to the terminal server. The IDE was compatible with this setup.

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:
A terminal server ...

That's just like a VNC connection.