hello,
I am having problems in extracting signal strength information
corresponding to the packets received by a mote. I would appreciate if you
can help me out. Here is what I am doing ---
I have a working version of generic_base.desc. It uses GENERIC_COMM
component. I created a copy of this component (by the name,
GENERIC_COMM_SIGNAL) and replaced PACKETOBJ with PACKETOBJ_SIGNAL and
SEC_DED_RADIO_BYTE with SEC_DED_RADIO_BYTE_SIGNAL. In generic_base, I am
now using GENERIC_COMM_SIGTNAL. Also, as specified in the docs, I have
uncommented the signal_strength field of the MSG_VALS structure. But when I
compile the code, I get the following linker errors ---
prompt> make
...
[compilation msges... snipped]
...
avr-gcc -Xlinker -M -o main.exe -m avr85xx -mmcu=at90s8535 system/sched.o
MY_GENERIC_BASE_SIGNAL.o system/AM.o system/MAIN.o
system/PACKETOBJ_SIGNAL.o system/RFM.o system/SEC_DED_RADIO_BYTE_SIGNAL.o
system/UART.o system/UART_PACKET.o > img.file
MY_GENERIC_BASE_SIGNAL.o: In function `MY_GENERIC_BASE_INIT_COMMAND':
MY_GENERIC_BASE_SIGNAL.o(.text+0x0): undefined reference to
`MY_GENERIC_BASE_SUB_INIT_COMMAND'
MY_GENERIC_BASE_SIGNAL.o: In function `INT_READING_EVENT':
MY_GENERIC_BASE_SIGNAL.o(.text+0xc4): undefined reference to
`MY_GENERIC_BASE_SUB_SEND_MSG_COMMAND'
system/AM.o: In function `AM_send_task_TASK':
system/AM.o(.text+0x1a): undefined reference to `AM_MSG_SEND_DONE_EVENT'
system/AM.o: In function `AM_TX_PACKET_DONE_EVENT':
system/AM.o(.text+0xb4): undefined reference to `AM_MSG_SEND_DONE_EVENT'
system/MAIN.o: In function `main':
system/MAIN.o(.text+0x50): undefined reference to `MAIN_SUB_INIT_COMMAND'
system/MAIN.o(.text+0x52): undefined reference to `MAIN_SUB_START_COMMAND'
system/SEC_DED_RADIO_BYTE_SIGNAL.o: In function
`RADIO_BYTE_RX_BIT_EVENT_EVENT':system/SEC_DED_RADIO_BYTE_SIGNAL.o(.text+0x
298): undefined
reference to `SIGNAL_ADC_GET_DATA_COMMAND'
make: *** [main.exe] Error 1
-------------------------
I seem to have all the latest files. I would really appreciate if
someone can help me out, or point me in the right direction.
Thanks in advance,
Regards,
Samir Goel
[EMAIL PROTECTED]