Correct transmission frequency is important.
Please try the following provided that you have not tried it already.
•Users must compile in the correct base radio frequency otherwise radio communication will fail. The correct frequency is selected by modifying the line 213 in the /tos/platform/mica2/CC1000Const.h file:
[212] #ifndef CC1K_DEF_PRESET
[213] #define CC1K_DEF_PRESET (CC1K_<freq>_MHZ)
[214] #endif
Change the <freq> to one of the values listed in the table below that matches your motes frequency
For example, 433_002 is for a mote with radio set at 433,002,000 Hz
Please also read the manual "Getting started Guide"
Code in my file is as follow:
#ifdef CC1K_DEFAULT_FREQ
#define CC1K_DEF_FREQ (CC1K_DEFAULT_FREQ)
#endif
#ifdef CC1K_MANUAL_FREQ
#define CC1K_DEF_FREQ (CC1K_MANUAL_FREQ)
#endif
#ifndef CC1K_DEF_PRESET
#define CC1K_DEF_PRESET (CC1K_915_998_MHZ)
#endif
Hope it will work.
Regards,
Abid Ali Minhas
======================================================
On 4/8/06, chandresh parekh <[EMAIL PROTECTED]> wrote:
Code in my file is as follow:
#ifdef CC1K_DEFAULT_FREQ
#define CC1K_DEF_FREQ (CC1K_DEFAULT_FREQ)
#endif
#ifdef CC1K_MANUAL_FREQ
#define CC1K_DEF_FREQ (CC1K_MANUAL_FREQ)
#endif
#ifndef CC1K_DEF_PRESET
#define CC1K_DEF_PRESET (CC1K_915_998_MHZ)
#endif
Hope it will work.
Regards,
Abid Ali Minhas
======================================================
On 4/8/06, chandresh parekh <[EMAIL PROTECTED]> wrote:
Hi all,I updated my tinyos version from 1.1.7 to 1.1.15 (rpm),recently. Now, nothing seams to work. Any in built application doesn't work, which was previously working. I guess the problem is with communication part somewhere.Blink and CntToLeds apps work ok. But CntToRfmAndLeds - RfmToLeds don't work.TinyDB GUI appears but no data is displayed even after 10 min. of run. Trying to runXSensorMDA300 gives error make[2].Any application that requires motes to communicate over radio doesn't seam to work, in short.Here is an excerpt of what happened when I tried to install CntToRfmAndLeds on one mote and then RfmToLeds on the other mote.
[EMAIL PROTECTED] /opt/tinyos-1.x/apps/CntToLedsAndRfm
$ make mica2 install,10 mib510,COM1
mkdir -p build/mica2
compiling CntToLedsAndRfm to a mica2 binary
ncc -o build/mica2/main.exe -Os -I%T/lib/Counters -finline-limit=100000 -Wall -W
shadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2
/app.c -board=micasb -DCC1K_DEF_FREQ916700000 -I%T/lib/Deluge -DIDENT_PROGRAM_NA
ME=\"CntToLedsAndRfm\" -DIDENT_USER_ID=\"Administrator\" -DIDENT_HOSTNAME=\"pilo
o\" -DIDENT_USER_HASH=0x0a75adf5L -DIDENT_UNIX_TIME=0x44378ba9L -DIDENT_UID_HASH
=0xe6dfadf9L CntToLedsAndRfm.nc -lm
compiled CntToLedsAndRfm to build/mica2/main.exe
11008 bytes in ROM
448 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
avr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex
writing TOS image
set-mote-id build/mica2/main.srec build/mica2/main.srec.out-10 10
installing mica2 binary using mib510
uisp -dprog=mib510 -dserial=COM1 --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=f
f --erase --upload if=build/mica2/main.srec.out-10
Firmware Version: 2.1
Atmel AVR ATmega128 is found.
Uploading: flashFuse High Byte set to 0xd8Fuse Extended Byte set to 0xff
rm -f build/mica2/main.exe.out-10 build/mica2/main.srec.out-10
installing mica2 bootloader using mib510
uisp -dprog=mib510 -dserial=COM1 --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=f
f --upload if=/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/mica2/main.ihex
Firmware Version: 2.1
Atmel AVR ATmega128 is found.
Uploading: flashFuse High Byte set to 0xd8Fuse Extended Byte set to 0xffand then..
[EMAIL PROTECTED] /opt/tinyos-1.x/apps/RfmToLeds
$ make mica2 install,15 mib510,COM1
mkdir -p build/mica2
compiling RfmToLeds to a mica2 binary
ncc -o build/mica2/main.exe -Os -I%T/lib/Counters -finline-limit=100000 -Wall -W
shadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2
/app.c -board=micasb -DCC1K_DEF_FREQ916700000 -I%T/lib/Deluge -DIDENT_PROGRAM_NA
ME=\"RfmToLeds\" -DIDENT_USER_ID=\"Administrator\" -DIDENT_HOSTNAME=\"piloo\" -D
IDENT_USER_HASH=0x0a75adf5L -DIDENT_UNIX_TIME=0x44378c29L -DIDENT_UID_HASH=0xc82
b3b11L RfmToLeds.nc -lm
compiled RfmToLeds to build/mica2/main.exe
10400 bytes in ROM
390 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
avr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex
writing TOS image
set-mote-id build/mica2/main.srec build/mica2/main.srec.out-15 15
installing mica2 binary using mib510
uisp -dprog=mib510 -dserial=COM1 --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=f
f --erase --upload if=build/mica2/main.srec.out-15
Firmware Version: 2.1
Atmel AVR ATmega128 is found.
Uploading: flashFuse High Byte set to 0xd8Fuse Extended Byte set to 0xff
rm -f build/mica2/main.exe.out-15 build/mica2/main.srec.out-15
installing mica2 bootloader using mib510
uisp -dprog=mib510 -dserial=COM1 --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=f
f --upload if=/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/mica2/main.ihex
Firmware Version: 2.1
Atmel AVR ATmega128 is found.
Uploading: flashFuse High Byte set to 0xd8Fuse Extended Byte set to 0xffInterestingly...'Uploading flash' operation takes place twice! Which I believe is redundant.Help is badly needed as I have few days left to complete my assignment.Thanks in advanceRegards,Chandres
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Best regards,
Abid Ali Minhas
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help