From d3b48a85d5f352441e79d3f723d53ced154d41d5 Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Thu, 16 Oct 2014 18:29:42 -0400 Subject: [PATCH] Edited Arduino Makefiles and READMEs to describe how to ARDUINO_PORT. This fixes an issue that was stopping folks from installing to an Arduino Due, but not Arduino Mega. Patch 2: Fix mistype. I wasn't using the ARDUINO_PORT variable. Change-Id: I8249077378a47cdedc721c5f3e8867c13661a183 --- csdk/stack/samples/arduino/SimpleClientServer/README | 2 +- csdk/stack/samples/arduino/SimpleClientServer/ocserver/README | 2 +- csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/csdk/stack/samples/arduino/SimpleClientServer/README b/csdk/stack/samples/arduino/SimpleClientServer/README index eaa43a9..87a02d4 100644 --- a/csdk/stack/samples/arduino/SimpleClientServer/README +++ b/csdk/stack/samples/arduino/SimpleClientServer/README @@ -4,7 +4,7 @@ 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 . You can only install one application at a time. Your choices are "oclient" or diff --git a/csdk/stack/samples/arduino/SimpleClientServer/ocserver/README b/csdk/stack/samples/arduino/SimpleClientServer/ocserver/README index 9a8f240..b1573b3 100644 --- a/csdk/stack/samples/arduino/SimpleClientServer/ocserver/README +++ b/csdk/stack/samples/arduino/SimpleClientServer/ocserver/README @@ -4,7 +4,7 @@ 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 . This makefile relies on "local.properties" at the directory level of the diff --git a/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile b/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile index 853c323..3b01109 100644 --- a/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile +++ b/csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile @@ -21,7 +21,7 @@ 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 @@ -103,9 +103,9 @@ endif 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 !!) -- 2.7.4