When an Arduino SimpleClientServer application is running, it outputs logs to
serial port. This requires the current user to be a part of the "dialout" user
group permissions on Ubuntu. If your Arduino device is NOT installed at
-location "/dev/ttyACM0", you must define ARDUINO_PORT to the location it is
+location "ttyACM0", you must define ARDUINO_PORT to the location it is
installed at. This location will be referred to as <DEV_PORT>.
You can only install one application at a time. Your choices are "oclient" or
When an Arduino SimpleClientServer application is running, it outputs logs to
serial port. This requires the current user to be a part of the "dialout" user
group permissions on Ubuntu. If your Arduino device is NOT installed at
-location "/dev/ttyACM0", you must define ARDUINO_PORT to the location it is
+location "ttyACM0", you must define ARDUINO_PORT to the location it is
installed at. This location will be referred to as <DEV_PORT>.
This makefile relies on "local.properties" at the directory level of the
BUILD := release
PLATFORM := arduinomega
-ARDUINO_PORT := /dev/ttyACM0
+ARDUINO_PORT := ttyACM0
# override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield
ARDUINOWIFI := 0
install: all
ifeq ($(PLATFORM),arduinomega)
- $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i
+ $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i
else ifeq ($(PLATFORM),arduinodue)
- stty -F $(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb
+ stty -F /dev/$(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb
$(ARDUINO_DIR)/hardware/tools/bossac -i -d --port=$(ARDUINO_PORT) -U false -e -w -v -b $(OUT_DIR)/$(APP_NAME).hex -R
else
$(error Wrong value for PLATFORM !!)