maniacbug / contiki-avr-zigduino Goto Github PK
View Code? Open in Web Editor NEWZigduino platform for Contiki OS
Home Page: https://github.com/maniacbug/contiki-avr-zigduino/wiki
Zigduino platform for Contiki OS
Home Page: https://github.com/maniacbug/contiki-avr-zigduino/wiki
Hi there,
I have been trying to use contiki on zigduino, the helloworld example works fine, but when ever i try use this ping-ipv6 it gives an error
make: *** No rule to make target ping-ipv6.avr-zigduino.u', needed by
upload'. Stop.
I wonder if its work fine for hello world it sud work here too..
the make file for both the applications are almost the same..
CONTIKI_PROJECT = ping-ipv6
all: $(CONTIKI_PROJECT)
CONTIKI_TARGET_SOURCEFILES += ping6.c
CFLAGS += -DNODE=$(NODE)
UIP_CONF_IPV6 = 1
TARGET = avr-zigduino
CONTIKI = ../../../..
include $(CONTIKI)/Makefile.include
I am not getting what exactly is missing..kindly help me on this.
Regards
Anurag
Just thought I would mention:
I like your project and the intention of making contiki more useable on current hardware. I am battling to figure out which bits are supposed to work and documentation is very limited. Unfortunately, the documentation listed for the Zigduino here on Github under Wiki-Installing and Setup (possibly more... I gave up) is also inaccurate. For example:
It might also be useful to tell a newbie, like me, how to figure out which port my avr-dragon is connected to. I have tried many a Google search but, to no evail. lsusb does not list the devtty port...
Regards,
Anton
I think I am missing something. I followed the installing instructions in this wiki for a native Ubuntu 10.04 and managed to set the MAC address to a Zigduino, but when trying to upload the test program, that is what I got. Any idea?
(I am executing "make upload" from ~/contiki-avr-zigduino/platform/avr-zigduino/tests/hello-world)
I installed contiki with git and edited Makefile.avr-zigduino as it says here: https://github.com/maniacbug/contiki-avr-zigduino/wiki/Using%3ASetup
But when I try to program the MAC address, it fails:
edmont@eduardo:~/hardware/zigduino/contiki-avr-zigduino/platform/avr-zigduino/tools/set-eeprom$ make NODE=3 AVRUDE_PORT=/dev/ttyUSB0
avr-gcc -DNODE=3 -DCONTIKI=1 -DCONTIKI_TARGET_AVR_ZIGDUINO=1 -I/home/edmont/Zigduino/arduino/cores/zigduino -DARDUINO_CORE=1 -Wall -mmcu=atmega128rfa1 -gdwarf-2 -fno-strict-aliasing -I. -I../../../../core -I../../../../cpu/avr -I../../../../platform/avr-zigduino -DF_CPU=16000000UL -DAUTO_CRC_PADDING=2 -Os -DRF230BB -I. -I/home/edmont/Zigduino/arduino/cores/zigduino -I../../../../platform/avr-zigduino/. -I../../../../platform/avr-zigduino/dev -I../../../../platform/avr-zigduino/apps -I../../../../platform/avr-zigduino/net -I../../../../platform/avr-zigduino/loader -I../../../../cpu/avr/. -I../../../../cpu/avr/dev -I../../../../cpu/avr/radio/rf230bb -I../../../../core/dev -I../../../../core/lib -I../../../../core/net -I../../../../core/net/mac -I../../../../core/net/rime -I../../../../core/net/rpl -I../../../../core/sys -I../../../../core/cfs -I../../../../core/ctk -I../../../../core/lib/ctk -I../../../../core/loader -I../../../../core/. -c set-eeprom.c -o set-eeprom.o
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load"
--change-section-lma .eeprom=0 -O ihex set-eeprom.o set-eeprom.eep
avrdude -V -F -D -b 57600 -P /dev/ttyUSB0 -c arduino -p atmega128rfa1 -U eeprom:w:set-eeprom.eep
avrdude: stk500_recv(): programmer is not responding
avrdude done. Thank you.
make: *** [set-eeprom.eu] Error 1
rm set-eeprom.eep set-eeprom.o
The Zigduino is correctly attached to /dev/USB0, according to dmesg:
[ 2053.168401] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
I've created a new simple project for using the hardware serial (digital pins 0 and 1) and i've included the WProgram.h file found under platform/avr-zigduino/zigduino-core/ (which in fact is including HardwareSerial.h that contains the definition of the Serial class)
the code is something like this:
PROCESS(serial_process, "test serial");
AUTOSTART_PROCESS(&serial_process);
PROCESS_THREAD(serial_process, ev, data)
{
PROCESS_BEGIN();
PROCESS_PAUSE();
printf("Serial Test\n");
Serial.begin(9600);
PROCESS_END();
}
then i make, and it shows me the error: Serial undeclared (first use in this function).
may it be some issue with the scope of the Serial object?
Hi, I am trying to read data from a presence sensor from a digital input but I don't know how to access to the digital ports.
Are there any functions to configure and read/write digital ports. Like the readADC() for analog inputs, for example. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.