Closed Firewalker99 closed 9 years ago
How did you install arduino.mk
?
sudo apt-get install arduino-mk
Seems your have a old buggy version: https://github.com/sudar/Arduino-Makefile/blob/623b55c55cce9c9abc460dd174cc9701acc4361d/HISTORY.md#091-06vi2012
ok i cloned the git arduino-mk then i copy the RFControl and the SerialCommand to the libraries folder in the homeduino-master folder and the sudo make
error:
sudo make
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED] CURRENT_OS = LINUX
- [COMPUTED] ARDMK_DIR = /usr/share/arduino (relative to Common.mk)
- [AUTODETECTED] ARDUINO_DIR = /usr/share/arduino
- [AUTODETECTED] ARDUINO_VERSION = 101
- [DEFAULT] ARCHITECTURE =
- [DEFAULT] VENDOR = arduino
- [DEFAULT] ARDUINO_SKETCHBOOK = /root/sketchbook
- [AUTODETECTED] AVR_TOOLS_DIR = /usr (found in $PATH)
- [COMPUTED] ARDUINO_LIB_PATH = /usr/share/arduino/libraries (from ARDUINO_DIR)
- [DEFAULT] ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino//cores/arduino
- [COMPUTED] ARDUINO_VAR_PATH = /usr/share/arduino/hardware/arduino//variants (from ARDUINO_DIR)
- [COMPUTED] BOARDS_TXT = /usr/share/arduino/hardware/arduino//boards.txt (from ARDUINO_DIR)
- [USER] USER_LIB_PATH = ./libraries
- [DEFAULT] PRE_BUILD_HOOK = pre-build-hook.sh
- [USER] BOARD_TAG = nano328
- [COMPUTED] OBJDIR = build-nano328 (from BOARD_TAG)
- [DETECTED] MONITOR_BAUDRATE = 115200 (in sketch)
- [DEFAULT] OPTIMIZATION_LEVEL = s
- [DEFAULT] MCU_FLAG_NAME = mmcu
- [DEFAULT] CFLAGS_STD =
- [DEFAULT] CXXFLAGS_STD =
- [COMPUTED] DEVICE_PATH = /dev/ttyUSB0 (from MONITOR_PORT)
- [AUTODETECTED] Size utility: AVR-aware for enhanced output
-
- ARDUINO_LIBS =
- [USER] SerialCommand
- [USER] RFControl
- [USER] Keypad
- [USER] DHTlib
- [USER] Keypad/utility
- [COMPUTED] BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino//bootloaders (from ARDUINO_DIR)
- [COMPUTED] ARDMK_VERSION = 1.3.4
- [COMPUTED] CC_VERSION = 4.7.2 (avr-gcc)
-------------------------
mkdir -p build-nano328
/usr/bin/avr-g++ -x c++ -include Arduino.h -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardwa re/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./librar ies/Keypad -I./libraries/DHTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions homeduino.ino -o build-nano328/ homeduino.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os /usr/share/arduino/hardware/arduino//cores/arduino/wiring.c -o build-nano 328/core/wiring.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os /usr/share/arduino/hardware/arduino//cores/arduino/WInterrupts.c -o build -nano328/core/WInterrupts.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os /usr/share/arduino/hardware/arduino//cores/arduino/wiring_digital.c -o bu ild-nano328/core/wiring_digital.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os /usr/share/arduino/hardware/arduino//cores/arduino/wiring_pulse.c -o buil d-nano328/core/wiring_pulse.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os /usr/share/arduino/hardware/arduino//cores/arduino/wiring_analog.c -o bui ld-nano328/core/wiring_analog.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os /usr/share/arduino/hardware/arduino//cores/arduino/wiring_shift.c -o buil d-nano328/core/wiring_shift.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/IPAddr ess.cpp -o build-nano328/core/IPAddress.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/new.cp p -o build-nano328/core/new.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/WStrin g.cpp -o build-nano328/core/WString.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/Tone.c pp -o build-nano328/core/Tone.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/Print. cpp -o build-nano328/core/Print.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/HID.cp p -o build-nano328/core/HID.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/Stream .cpp -o build-nano328/core/Stream.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/USBCor e.cpp -o build-nano328/core/USBCore.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/WMath. cpp -o build-nano328/core/WMath.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/main.c pp -o build-nano328/core/main.o
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/Hardwa reSerial.cpp -o build-nano328/core/HardwareSerial.o
/usr/share/arduino/hardware/arduino//cores/arduino/HardwareSerial.cpp: In function ‘void store_char(unsigned char, ring_buffer*)’:
/usr/share/arduino/hardware/arduino//cores/arduino/HardwareSerial.cpp:84:20: warning: comparison between signed and unsigned integer expressions [-Wsign-co mpare]
/usr/share/arduino/hardware/arduino//cores/arduino/HardwareSerial.cpp: In member function ‘virtual size_t HardwareSerial::write(uint8_t)’:
/usr/share/arduino/hardware/arduino//cores/arduino/HardwareSerial.cpp:392:27: warning: comparison between signed and unsigned integer expressions [-Wsign-c ompare]
/usr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions /usr/share/arduino/hardware/arduino//cores/arduino/CDC.cp p -o build-nano328/core/CDC.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/D HTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions libraries/SerialCommand/SerialCommand.cpp -o build-nano32 8/userlibs/SerialCommand/SerialCommand.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/DHTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions libraries/RFControl/RFControl.cpp -o build-nano328/userlibs/RFControl/RFControl.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/DHTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions libraries/Keypad/Keypad.cpp -o build-nano328/userlibs/Keypad/Keypad.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/DHTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions libraries/DHTlib/DHTlib.cpp -o build-nano328/userlibs/DHTlib/DHTlib.o
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/eightanaloginputs -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/DHTlib -I./libraries/Keypad/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions libraries/Keypad/utility/Key.cpp -o build-nano328/userlibs/Keypad/utility/Key.o
/usr/bin/avr-ar rcs build-nano328/libcore.a build-nano328/core/WInterrupts.o build-nano328/core/wiring.o build-nano328/core/wiring_pulse.o build-nano328/core/wiring_analog.o build-nano328/core/wiring_digital.o build-nano328/core/wiring_shift.o build-nano328/core/Tone.o build-nano328/core/Print.o build-nano328/core/Stream.o build-nano328/core/WString.o build-nano328/core/main.o build-nano328/core/USBCore.o build-nano328/core/IPAddress.o build-nano328/core/WMath.o build-nano328/core/new.o build-nano328/core/HID.o build-nano328/core/CDC.o build-nano328/core/HardwareSerial.o build-nano328/userlibs/SerialCommand/SerialCommand.o build-nano328/userlibs/RFControl/RFControl.o build-nano328/userlibs/Keypad/Keypad.o build-nano328/userlibs/DHTlib/DHTlib.o build-nano328/userlibs/Keypad/utility/Key.o
/usr/bin/avr-gcc -mmcu=atmega328p -Wl,--gc-sections -Os -o build-nano328/homeduino-master.elf build-nano328/homeduino.o build-nano328/libcore.a -lc -lm
build-nano328/homeduino.o: In function `keypad_command()':
homeduino.ino:(.text._Z14keypad_commandv+0x2a): undefined reference to `operator new[](unsigned int)'
homeduino.ino:(.text._Z14keypad_commandv+0x74): undefined reference to `operator new[](unsigned int)'
homeduino.ino:(.text._Z14keypad_commandv+0x90): undefined reference to `operator new[](unsigned int)'
collect2: error: ld returned 1 exit status
/usr/share/arduino/Arduino.mk:1272: recipe for target 'build-nano328/homeduino-master.elf' failed
make: *** [build-nano328/homeduino-master.elf] Error 1
Do you try to build on the rpi?
I think the gcc version is aso too old or it misses some other compiler flags. I want to get it to work on the rpi, but not now, sorry.
yes
the seconnd time i got
mkdir -p build-nano328
/usr/bin/avr-gcc -mmcu=atmega328p -Wl,--gc-sections -Os -o build-nano328/homeduino-master.elf build-nano328/homeduino.o build-nano328/libcore.a -lc -lm
build-nano328/homeduino.o: In function keypad_command()': homeduino.ino:(.text._Z14keypad_commandv+0x2a): undefined reference to
operator new[](unsigned int)'
homeduino.ino:(.text._Z14keypad_commandv+0x74): undefined reference to operator new[](unsigned int)' homeduino.ino:(.text._Z14keypad_commandv+0x90): undefined reference to
operator new[](unsigned int)'
collect2: error: ld returned 1 exit status
/usr/share/arduino/Arduino.mk:1272: recipe for target 'build-nano328/homeduino-master.elf' failed
make: *\ [build-nano328/homeduino-master.elf] Error 1
Now it should work :)
I also updated the readme with some install notices for raspbian.
Now "make" is ok but "make upload" failed ( with an without sudo), it shows the Arduino.mk configuration and then:
mkdir -p build-nano328 make reset make[1]: Entering directory '/home/pi/pimatic-dev/node_modules/homeduino' /usr/share/arduino/bin/ard-reset-arduino /dev/ttyUSB0 make[1]: execvp: /usr/share/arduino/bin/ard-reset-arduino: Keine Berechtigung /usr/share/arduino/Arduino.mk:1308: recipe for target 'reset' failed make[1]: * [reset] Error 127 make[1]: Leaving directory '/home/pi/pimatic-dev/node_modules/homeduino' /usr/share/arduino/Arduino.mk:1284: recipe for target 'upload' failed make: * [upload] Error 2
what does the following output?
sudo ls -l /dev/ttyUSB0
sudo ls -l /usr/share/arduino/bin/
crw-rw---T 1 root dialout 188, 0 Sep 28 10:51 /dev/ttyUSB0
insgesamt 4 -rw-rw-rw- 1 root root 1310 Sep 21 23:25 ard-reset-arduino
sudo chmod +x /usr/share/arduino/bin/ard-reset-arduino
should solve it.
ok, thats it, thank you for your support. I just have to lern more about access permissions
The makefile tries to run ard-reset-arduino
. If you want to execute a file in linux it must have the execute-bit set (the file must be explicit marked as executable). This is a security mechanism. It seems that the authors of arduino-mk forget to set this bit, so you have to set it manual with chmod
. If you now do sudo ls -l /usr/share/arduino/bin/
then you should see -rwxrwxrwx
in the permission column. So the file is read-/write-/executable (by every user).
I think the best is to include arduino-mk in homeduino, so we don't have the problems with old versions and other quirks :D.
@Firewalker99 With which 433mhz hardware are you testing?
i just try to understand how it all works. next problem is to get the make monitor running screen /dev/ttyUSB0 115200 make: screen: Kommando nicht gefunden /usr/share/arduino/Arduino.mk:1355: recipe for target 'monitor' failed make: *\ [monitor] Error 127
2 receivers : XY-MK5V and RXB6 1 sender : XY-FST Just want to get then running first. Then i´ll try to send some commands with the elro_hc protokoll.
sudo apt-get install screen
works^^ do you Skype?
Sorry too much to do, today and next weeks...
some more problems, in pimatic i get: [pimatic-homeduino] Couldn't connect to homeduino device: operation timed out after 20000 ms.
the message i get after pushing reset button: ��H� � ]Ĵ7��_ ����]-#) @�@��{�!?@�� P�� TT��ready
i cant send any commands or get an ack,err message
Does the serial connection work, if you usw the arduino IDE? Am 28.09.2014 14:22 schrieb "Sebastian" notifications@github.com:
some more problems, in pimatic i get: [pimatic-homeduino] Couldn't connect to homeduino device: operation timed out after 20000 ms.
the message i get after pushing reset button: ��H� � ]Ĵ7��_ ����]-#) @�@��{�!?@�� P�� TT��ready
i cant send any commands or get an ack,err message
— Reply to this email directly or view it on GitHub https://github.com/pimatic/homeduino/issues/1#issuecomment-57083838.
arduino IDE in windows works fine.
Could you try it multiple times with pimatic. I think its some kind of race condition. Need to look into it more deeply.
ok ill try. can you explain how to send commands on raspberry pi? want to test the connection there
Strange. You should get the ping back. Did you clone it with all submodules? (Its important to use the serial port command lib from my fork..) Did this work on windows using the serial console of the arduino ide?
the ping on windows works. so i think theres no fault in the nano firmware. i purge the libs and install them again and i give it up for today. sudo git clone https://github.com/sudar/Arduino-Makefile.git arduino its has no boards.txt grep: /usr/share/arduino/hardware/arduino//boards.txt: Datei oder Verzeichnis nicht gefunden
ok could get it run 1 time. flash with make upload is ok make monitor ready PING test answer: PING test then dead, no more answers reset button sends another ready
board?
i used a board.txt from my other pi and put all missing files into the right folders.
So I simplified things. Could you set it up by using this way:
sudo apt-get install arduino-core avr-libc avrdude binutils-avr gcc-avr libconfig-yaml-perl libftdi1 libyaml-perl screen python-serial
git clone --recursive https://github.com/pimatic/homeduino.git
cd homeduino
make upload
and test again.
I flashed 2 different nanos on the pi without errors. make monitor is not working again. serial monitor on windows works well. i testet ping and dht 22 3 and got response. BTW: No connection with pimatic
Sorry but I don't have any ideas anymore. It's working fine here. A last test could be the new Read–eval–print loop client: https://github.com/pimatic/homeduinojs#repl-client
@Firewalker99 Perhaps you're sending CR/LF instead of newline?
FYI I haven't had any significant problems with homeduino - very nice! And I can see that making new protocols looks reasonably straight forward :-)
To compile, I just copied over the files and used the arduino app. I had to add the libs to the main ino file before it would compile though. I think it possibly it had trouble otherwise locating them because my filesystem is case-insensitive (Mac OS X) and you've got files named the same as the libs with lowercase in the main directory. (RFControl = rfcontrol etc).
@tom-h nice to hear. Do you plan to write a protocol?
Yep - when I get a chance... but only for rfcontroljs. I'm not so familiar with Node.js, but implementing new protocols looks dead simple. I was going to implement the 3 channel weather station protocol from the notes on the pilight wiki, and I have some plug-in power switches which have not been added to pilight yet which I'm pretty much done on decoding.
Yep - when I get a chance... but only for rfcontroljs. I'm not so familiar with Node.js, but implementing new protocols looks dead simple. I was going to implement the 3 channel weather station protocol from the notes on the pilight wiki, and I have some plug-in power switches which have not been added to pilight yet which I'm pretty much done on decoding.
Nice to hear. That was one of the design goals to make it damn simple (and robust). Looking forward to see the 3 channel protocol in the rfcontrol protocol family :) I also added a little how to get started: https://github.com/pimatic/rfcontroljs/blob/master/README.md#adding-a-new-protocol
If you need any help, just ask.
connecting to /dev/ttyUSB0 with 115200 then board.readDHT(22, 13) and board.rfControlStartReceiving(0) = works
Still no idea why monitor not working. For running with pimatic i I just installed homeduino plugin for the board flashing and pimatic-homeduino in the node_modules. And in another folder the homeduinojs, hope this is ok?
Great that it is working. You actually do not need to install homeduinojs, it gets installed with pimatic-homeduino as dependency.
Please help. What i do:
Error: /usr/share/arduino/Arduino.mk:535 build-cli/depends.mk: (file not found) Datei oder Verzeichnis nicht gefunden echo '#include' > build-cli/homeduino.cpp
cat homeduino.ino >> build-cli/homeduino.cpp
make: /usr/share/arduino/ard-parse-boards: ( command not found) Kommando nicht gefunden
make: /usr/share/arduino/ard-parse-boards: Kommando nicht gefunden
make: /usr/share/arduino/ard-parse-boards: Kommando nicht gefunden
/usr/bin/avr-g++ -MM -mmcu= -DF_CPU= -DARDUINO=100 -I. -I/hardware/arduino/cores/arduino -I/hardware/arduino/variants/ -I/libraries/SerialCommand -I/libraries/RFControl -I/libraries/Keypad -I/libraries/DHTlib -I./libraries/SerialCommand -I./libraries/RFControl -I./libraries/Keypad -I./libraries/DHTlib -g -Os -w -Wall -ffunction-sections -fdata-sections -fno-exceptions build-cli/homeduino.cpp -MF build-cli/homeduino.d -MT build-cli/homeduino.o
avr-g++: error: missing argument to ‘-mmcu=’
/usr/share/arduino/Arduino.mk:429: recipe for target 'build-cli/homeduino.d' failed
make: *\ [build-cli/homeduino.d] Error 1
rm build-cli/homeduino.cpp