You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have many thin client PCs in my LAN with Arduinos connected on them via USB. Arduinos are "hard" to detach get it to my laptop, do firmware update with Arduino IDE (even small config change) and put it back to its place.
It would be great if I can update my gateway firmware also via UI like the node firmware. Documentation says that node must have MYSBootloader or DualOptiboot-bootloader. USB-serial upload doesn't need those the default Arduino bootloader is ok.
I have tested Arduino Makefile to upload Arduino .ino-files to USB connected Arduino on my thin client (Debian, i686, 128 MB RAM) via SSH connection. The process is quite simple:
apt install arduino-mk as root or use sudo.
adduser <username> dialup group to have permissions to use serial ports or use root.
Create directory for firmware: `mkdir sketchbook && cd sketchbook'
Copy sketch to that folder.
Create directory for libraries mkdir libraries and copy them to it.
Create build file nano Makefile. Following example uses root user:
ARDUINO_DIR = /usr/share/arduino
ARDUINO_PORT = /dev/ttyUSB0
USER_LIB_PATH = /root/sketchbook/libraries
BOARD_TAG = uno
include /usr/share/arduino/Arduino.mk
Then run make upload clean and Arduino is uploaded.
One thing to note is that function "interface" must be defined in the .ino-file heading before function body. Arduino IDE does that (precompiling), but Arduino-Makefile isn't.
The text was updated successfully, but these errors were encountered:
Hi,
I have many thin client PCs in my LAN with Arduinos connected on them via USB. Arduinos are "hard" to detach get it to my laptop, do firmware update with Arduino IDE (even small config change) and put it back to its place.
It would be great if I can update my gateway firmware also via UI like the node firmware. Documentation says that node must have
MYSBootloader
orDualOptiboot
-bootloader. USB-serial upload doesn't need those the default Arduino bootloader is ok.I have tested Arduino Makefile to upload Arduino
.ino
-files to USB connected Arduino on my thin client (Debian, i686, 128 MB RAM) via SSH connection. The process is quite simple:apt install arduino-mk
as root or usesudo
.adduser <username> dialup
group to have permissions to use serial ports or use root.mkdir libraries
and copy them to it.nano Makefile
. Following example uses root user:make upload clean
and Arduino is uploaded.One thing to note is that function "interface" must be defined in the
.ino
-file heading before function body. Arduino IDE does that (precompiling), but Arduino-Makefile isn't.The text was updated successfully, but these errors were encountered: