[Tinyos-help] question on simple_transmit from Rfm_model.c

2006-06-02 Thread Liu Haibin
Hi,I have a question about the following code from Rfm_model.c. The parameter bit can be 1 or 0. When simple_trasmit is transmitting bit 1,  transmitting[modeID] is set to 1, meaning it's transmitting. However, when simple_transmit is transmitting bit 0, transmitting[modeID] is set to 0, meaning it's not transmitting (actually it's transmitting bit 0). Why is it so? I must have the concept wrong. Could any help me on this?
void simple_transmit(int moteID, char bit) {  int i;    transmitting[moteID] = bit;  for (i = 0; i < tos_state.num_nodes; i++) {    radio_active[i] += bit;  }}Regards,
Haibin
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Boomerang UART0 Sample

2006-06-02 Thread Jörgen Johansson
There is a link failure on the 
http://www.moteiv.com/community/Boomerang_UART0_Sample page. I can´t download 
the Moteiv Boomerang Uart0 Sample.tar.gz. I think I can use the UART as a 
simple debuger. Does anyone used the UART as a trace?

/Jörgen Johansson

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Boomerang UART0 Sample

2006-06-02 Thread Joe Polastre

The link works just fine.

-Joe

On 6/2/06, Jörgen Johansson <[EMAIL PROTECTED]> wrote:

There is a link failure on the 
http://www.moteiv.com/community/Boomerang_UART0_Sample page. I can´t download 
the Moteiv Boomerang Uart0 Sample.tar.gz. I think I can use the UART as a 
simple debuger. Does anyone used the UART as a trace?

/Jörgen Johansson

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Conversion of Telos B RSSI

2006-06-02 Thread Paul David Kavan

To All:

Thanks to those who helped me get the RSSI sent over the serial port.  
I am using the Telos B motes and doing some RSSI experiments. I am in  
the process of modifying the serial forwarder some so that it will  
convert the RSSI value I receive over the serial port to the actual  
RSSI value. In the sflisten.c file, I have added the following code  
to do this conversion before displaying it on the monitor:


const unsigned char *packet = read_sf_packet(fd, &len);

/*Perform 2's complement conversion and add offset (-45 dBm)*/
if (packet[10] < 128) //Positive Number
adj_rssi = packet[10];
if (packet[10] > 127) //Negative number
{
adj_rssi = -1*((packet[10] - 1)^(0xFF))-45;
}

if (!packet)
exit(0);

/*Display various information from the packet to monitor*/
printf("Node ID: ");
printf("%02x ", packet[12]);
printf("RAW RSSI: ");
printf("%02x ", packet[10]);
printf("Adjusted RSSI: ");
printf("%d ", adj_rssi);
putchar('\n');
fflush(stdout);
free((void *)packet);


The way I understand it, the raw RSSI is an 8-bit unsigned integer.  
So, I have to do the two's complement conversion and add the offset.  
Then I simply parse out what I want from the packet and print it  
along with the converted RSSI to the screen. Does anyone see an  
obvious flaw in my conversion or a more compact way to do the  
conversion--aside from changing the if/if to and if/else. (I was  
coding very late last night lol)


Many thanks again for the help.

Paul

*
Paul David Kavan
[EMAIL PROTECTED]
329 Walter Scott Engineering Center
University of Nebraska
402-472-2764
*


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Tinyos-help Digest, Vol 38, Issue 4

2006-06-02 Thread Muthiah Annamalai
imate < newparent) {newparent = i;parentestimate = parents[i].cost + parents[i].estimate;}}}// if
 we have a parent, don't switch unless they're worthwhileelse {for (i = 0; i < MHOP_PARENT_SIZE; i++) {if (((uint32_t) parents[i].cost + (uint32_t) parents[i].estimate)<((uint32_t) parentestimate) -(((uint32_t) parentestimate) >> 2)) {newparent = i;parentestimate = parents[i].cost + parents[i].estimate;}}}m_parent = newparent;}--Message: 3Date: Thu, 1 Jun 2006 21:20:57 -0700From: "Joe Polastre" <[EMAIL PROTECTED]>Subject: Re: [Tinyos-help] GlobalTime in Tmote from MoteivTo: " J?rgen Johansson " <[EMAIL PROTECTED]>Cc: tinyos-help@millennium.berkeley.eduMessage-ID:<[EMAIL PROTECTED]>Content-Type: text/plain; charset=ISO-8859-1; format=flowed> How synchronized (us) is GlobalTime in different nodes?About 100us across the network.> Is it possible to
 get an event e.g. once a second from GlobalTime?No. It is a very simple process to use the GlobalTime interface toacquire the current time and then set an Alarm or Timer by translatingfrom GlobalTime to LocalTime and using the t0 and dt parameters of theAlarm and Timer interfaces.-Joe--Message: 4Date: Thu, 1 Jun 2006 21:27:08 -0700From: "Joe Polastre" <[EMAIL PROTECTED]>Subject: Re: [Tinyos-help] Is this a bug in Moteiv Boomerang MultiHop?To: Adam <[EMAIL PROTECTED]>Cc: TinyOS Help Message-ID:<[EMAIL PROTECTED]>Content-Type: text/plain; charset=ISO-8859-1; format=flowedYou are correct, thank you for pointing it out.-JoeOn 6/1/06, Adam <[EMAIL PROTECTED]>wrote:> In selectParent() function of MultihopLQIM.nc, is the following line a bug?> if
 (parents[i].cost + parents[i].estimate < newparent) {>> Should "newparent" be "parentestimate" ??> ===>> void selectParent() {> int i;> int newparent = m_parent;> uint16_t parentestimate = parents[m_parent].cost +> parents[m_parent].estimate;>> // if our parent is invalid, pick the best parent> if (parents[m_parent].addr == MHOP_INVALID_PARENT) {> for (i = 0; i < MHOP_PARENT_SIZE; i++) {> if (parents[i].cost + parents[i].estimate < newparent) {> newparent = i;> parentestimate = parents[i].cost + parents[i].estimate;> }> }> }> // if we have a parent, don't switch unless they're worthwhile> else {> for (i = 0; i < MHOP_PARENT_SIZE; i++) {> if (((uint32_t) parents[i].cost + (uint32_t) parents[i].estimate)> <> ((uint32_t) parentestimate) -> (((uint32_t)
 parentestimate) >> 2)) {> newparent = i;> parentestimate = parents[i].cost + parents[i].estimate;> }> }> }> m_parent = newparent;> }>> ___> Tinyos-help mailing list> Tinyos-help@Millennium.Berkeley.EDU> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>--Message: 5Date: Fri, 2 Jun 2006 14:48:46 +0800From: "#NG YEONG SHENG,JOHNSON#" <[EMAIL PROTECTED]>Subject: [Tinyos-help] Help on multihopTo: Message-ID:<[EMAIL PROTECTED]>Content-Type: text/plain; charset="iso-8859-1"HiI would like to ask if its possible to do multihop without using broadcasting. For example I have 2 remote motes both responsible for collecting datas and
 sending it to a base station. Mote 1 can do a direct communciation with the base station while mote 2 needs to relay the data thru mote 1 to reach the base station. How should i go about to do it? RegardsJohnson-- next part --An HTML attachment was scrubbed...URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060602/416fe5f8/attachment.htm--Message: 6Date: Fri, 2 Jun 2006 17:29:49 +0800From: "Liu Haibin" <[EMAIL PROTECTED]>Subject: [Tinyos-help] question on simple_transmit from Rfm_model.cTo: tinyos-help@millennium.berkeley.eduMessage-ID:<[EMAIL PROTECTED]>Content-Type: text/plain; charset="iso-8859-1"Hi,I have a question about the following code from Rfm_model.c. The parameterbit can be 1 or 0. When simple_trasmit is transmitting bit 1,transmitting[modeID] is
 set to 1, meaning it's transmitting. However, whensimple_transmit is transmitting bit 0, transmitting[modeID] is set to 0,meaning it's not transmitting (actually it's transmitting bit 0). Why is itso? I must have the concept wrong. Could any help me on this?void simple_transmit(int moteID, char bit) {int i;transmitting[moteID] = bit;for (i = 0; i < tos_state.num_nodes; i++) {radio_active[i] += bit;}}Regards,Haibin-- next part --An HTML attachment was scrubbed...URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060602/b0a6b5ee/attachment-0001.html---

[Tinyos-help] Re: help needed regarding XSensorMDA300

2006-06-02 Thread Michael Schippling

It looks like the packet dumping function in
 contrib\xbow\tools\src\xlisten\boards\mda300.c
 mda300_print_raw(XbowSensorboardPacket *packet)
may be getting a wrong pointer.

29 (0x1d) is the standard length of a TOS_Msg.data packet:
   vv
> 7e420681 1d 810301000
  ^^
where your packet should start here, making the packet_id == 0x03

I'm too slow to be able to trace regular C code anymore, but,
baring anyone else haveing a good idea you may have to just
debug through and find out where  mda300_print_raw() is being
called with what...

MS


Sumit wrote:

Hi,

I am trying to test my MDA300 using XSensorMDA300 program.
I tried testing xlisten over an RF link. I configured
the two motes per the instruction, and set up the
connection:
MDA300 + MICA2
 MICA2+MIB510
 <--->com1 of PC

The first MICAz was programmed under /XSensorMDA300,
and the second one was programmed under /TOSBase with
node id 0. After I typed the xlisten command.
It gives only the raw data and gives the following error:-
$ xlisten -r -p -c -b=mica2 -s=com1
xlisten Ver:$Id: xlisten.c,v 1.9 2004/04/08 01:35:35 mturon Exp $
Using params: [baud=0x1001] [raw]
[parsed] [cooked]
com1 input stream opened
7e4206811d810301000
mda300 error: unknown packet_id (29)
MDA300 error: unknown packet_id (29)

7e4206811d810101009f09d908f809aa08b3096909b3090
mda300 error: unknown packet_id (29)
MDA300 error: unknown packet_id (29)


I have tried all possible options.
Tested on versions tinyos1.1.0,1.1.7,1.1.10.
even changed the computer.
The order of glow of leds is correct that is:
first red then after connecting it changes to green and on sending packets
it blinks yellow.
How can packet_id be any other than 1 to 4.Hows it 29.

From where are the values of packet_id set?


Can anybody help me out with this?
I would be very greatful.
My project is stuck due to this .
thanks.
sumit

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Error during installing image on Telos

2006-06-02 Thread Tarun Banka
Dear All,
 
I am facing problem while installing image on the mote. Please see following message:
 
$ make telos reinstall,1 bsl,3/opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy --objdump msp430-objdump --target ihex build/telos/main.ihex build/telos/main.ihex.out-1 1Could not find symbol TOS_LOCAL_ADDRESS in build/telos/main.exe, ignoring symbol
.    installing telos binary using bslmsp430-bsl --telos -c 3 -r -e -I -p build/telos/main.ihex.out-1MSP430 Bootstrap Loader Version: 1.39-telos-7Mass Erase...
An error occoured:Timeoutmake: *** [program] Error 1 
 
Please advise.
 
Thanks,Tarun
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Error during installing image on Telos

2006-06-02 Thread Cory Sharp

Unless you actually have one of the original Telos Rev A motes (there
are not that many), you probably mean "make telosb" for Telos Rev B or
"make tmote" for Tmote Sky, instead of "make telos".  - Cory

On 6/2/06, Tarun Banka <[EMAIL PROTECTED]> wrote:


Dear All,

I am facing problem while installing image on the mote. Please see following
message:

$ make telos reinstall,1 bsl,3
/opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy
--objdump ms
p430-objdump --target ihex build/telos/main.ihex build/telos/main.ihex.out-1
1
Could not find symbol TOS_LOCAL_ADDRESS in build/telos/main.exe, ignoring
symbol
.
installing telos binary using bsl
msp430-bsl --telos -c 3 -r -e -I -p build/telos/main.ihex.out-1
MSP430 Bootstrap Loader Version: 1.39-telos-7
Mass Erase...
An error occoured:
Timeout
make: *** [program] Error 1


Please advise.

Thanks,
Tarun
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Error during installing image on Telos

2006-06-02 Thread Robert Szewczyk

Tarun,

I'm assuming that you are using either a Tmote Sky or a Telos rev. B.
If you're using a Tmote Sky I would suggest you download the Boomerang
distribution from Moteiv, and after you've installed it, use

make tmote install,1 bsl,3

If you're using a Telos rev B. you should use

make telosb install,1 bsl,3


Platform identifier telos refers to Telos rev. A, which uses a
different MCU and a different sequence to enter the BSL programming
mode.

Best regards,

Rob

Robert Szewczyk
Moteiv Corporation

On 6/2/06, Tarun Banka <[EMAIL PROTECTED]> wrote:


Dear All,

I am facing problem while installing image on the mote. Please see following
message:

$ make telos reinstall,1 bsl,3
/opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy
--objdump ms
p430-objdump --target ihex build/telos/main.ihex build/telos/main.ihex.out-1
1
Could not find symbol TOS_LOCAL_ADDRESS in build/telos/main.exe, ignoring
symbol
.
installing telos binary using bsl
msp430-bsl --telos -c 3 -r -e -I -p build/telos/main.ihex.out-1
MSP430 Bootstrap Loader Version: 1.39-telos-7
Mass Erase...
An error occoured:
Timeout
make: *** [program] Error 1


Please advise.

Thanks,
Tarun
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Error during installing image on Telos

2006-06-02 Thread Tarun Banka
Thanks for pointing out. Yes I have Telos Rev B. Now it works. 
Thanks,Tarun 
On 6/2/06, Cory Sharp <[EMAIL PROTECTED]> wrote:
Unless you actually have one of the original Telos Rev A motes (thereare not that many), you probably mean "make telosb" for Telos Rev B or
"make tmote" for Tmote Sky, instead of "make telos".  - CoryOn 6/2/06, Tarun Banka <[EMAIL PROTECTED]> wrote:>> Dear All,>
> I am facing problem while installing image on the mote. Please see following> message:>> $ make telos reinstall,1 bsl,3> /opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy
> --objdump ms> p430-objdump --target ihex build/telos/main.ihex build/telos/main.ihex.out-1> 1> Could not find symbol TOS_LOCAL_ADDRESS in build/telos/main.exe, ignoring> symbol> .
> installing telos binary using bsl> msp430-bsl --telos -c 3 -r -e -I -p build/telos/main.ihex.out-1> MSP430 Bootstrap Loader Version: 1.39-telos-7> Mass Erase...> An error occoured:
> Timeout> make: *** [program] Error 1>>> Please advise.>> Thanks,> Tarun> ___> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] How to Read System time in Tmote

2006-06-02 Thread Preethi Naveen
I want to read system on Tmote. How should i go about it?
 
Thanks
Naveen
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help