Re: [Tinyos-help] detecting packet losses in TOSSIM 2.0
Hi Phil, Are you referring to the CpmModelC.nc, since in the TinyOS 2.0.1 version that I have, the file in question has only 361 lines. I did a grep for the exact dbg statement you had mentioned, in your reply, for all files under the tossim folder as well, without success. I used the grep with the -i option with similar results. Thanks, Avinash On 7/18/07, Philip Levis [EMAIL PROTECTED] wrote: Avinash Sridharan wrote: I detected the total numbers of packet lost in the channel by doing a grep on the word Lost from the debug statements from the channel model, since this is printed out whenever is a packet is dropped by the channel model. I have two questions: This doesn't seem like a very sound methodology to me. Take a look at the debug statement on line 390: dbg(Gain,SNRLoss, Going to lose packet from %i with signal %lf as am receiving a packet from %i with signal %lf\n, list-source, list-power, source, rcv-power); If your grep was not with -i (case insensitive), there's also line 308: dbg(CpmModelC,SNRLoss, - lost packet from %i as SNR was too low.\n, (int)mine-source); Phil -- Phd Dept. of Electrical Engineering University of Southern California http://www-scf.usc.edu/~asridhar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] detecting packet losses in TOSSIM 2.0
Avinash Sridharan wrote: Hi Phil, Are you referring to the CpmModelC.nc, since in the TinyOS 2.0.1 version that I have, the file in question has only 361 lines. I did a grep for the exact dbg statement you had mentioned, in your reply, for all files under the tossim folder as well, without success. I used the grep with the -i option with similar results. Oh -- the version I had was from CVS. Basically, to figure out why packets are being lost, look for any place where the lost field is set to 1. The 2.0.1 version of CpmModelC handles a few tough edge cases simply (not perfectly); 2.0.2/CVS will be/is much better. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] How can I adjust radio(reduce or increase) range ofmote (micaz
it s a mail of urs wich is hepful for you : IHi, This is what I previously wrote about reducing TX power: In Tinyos 2 with a platform with the cc2420 (such as MicaZ and the Tmotes), you can use either a flag in the makefile: CFLAGS += -DCC2420_DEF_RFPOWER=1 or you can dynamically change the tx power at runtime (individually for every packet) with something like (wire in the CC2420PacketC module): call CC2420Packet.setPower(rpacket, 1); You'll have to issue that call for every packet prior to sending it. Reducing the TX power to its minimum I get a maximum transmission range of roughly 3 meters under ideal conditions. Cheers, Urs From: DAE HEE KIM [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] How can I adjust radio(reduce or increase) range ofmote (micaz) ? Date: Wed, 18 Jul 2007 17:53:03 -0400 Hello. This question may be very basic thing. How can I increase or decrease radio range of micaz(mote)? My situation TinyOS 2.0.1 (Linux - Fedora core 6) Micaz (2.4 GHz) MIB510 programming board. Thanks. -- DaeHee Kim (Danny) Department of Computer Science, State University of NewYork at Binghamton. Cell Phone : 1-607-321-9574 Address : 13-A Andrea Dr, Vestal, NY, 13850 email-address : [EMAIL PROTECTED], [EMAIL PROTECTED] ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] GainRadioModel Interface Question
Hi, The signature of the function putOnAirTo in the GainRadioModel interface of /tinyos-2.x/tos/lib/tossim has the following signature: command void putOnAirTo(int dest, message_t* msg, bool ack, sim_time_t endTime, double gain, double reverseGain); I have not found any documentation about what the parameters gain and reverseGain mean specifically. This function appears only to be called in the file TossimPacketModelC.nc in the same directory with the following command: call GainRadioModel.putOnAirTo(destNode, sending, metadata-ack, evt-time, 0.0, 0.0); Does anyone know precisely what the last two parameters (both 0.0s) stand for? Thanks, Tal ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] BMAC and Tossim
Hi All Im working under Tinyos1.1.15 TOSSIM. I made a simple program to send and receive via GenericComm and simulated it in TOSSIM, works very fine. The TOSH_DATA_LENGTH is 36 instead of 29 as i have to send more information in the packet. Now I want to see the behavior using BMAC. What i understood from list postings that CC1000 stack is also using BMAC (I hope im correct), now few questions regarding that 1. To enable CC1000 (or BMAC) is it sufficient to just enable the following line in Makefile PFLAGS += -I%T/platform/pc/CC1000Radio 2. If yes, than I tried this but none of packet get through the radio, I mean none of send() method was successful. Than I enabled DBG_CRC, DBG_PACKET to debug wht is going on underlying but there is no output from these DBG modes. Any suggestion Looking forward Regards Faisal Karim Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] CRC,RSSI in CC2420
Hello, Could anybody tell me what goes on in the CC2420 radio when I disable the AUTOCRC option.What is the message structure that is passed on from the radio to the MAC layer in this situation i.e. does it still include information about RSSI and correlation values. I am working with tmotesky nodes. Thanks in advance for any help you could provide. Himanshu. - Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS 1.x API??
Hi all, I dont if some of you faced this problem. If a user wants write an application from scratch after learning enough theory about nesC/TinyOS, without API or some sort of it, it is impossible. If any one of you come across some sort of list with available interfaces and methods...let me know.. Thanks in advance, Adi -- --- I was always alone in this world, wanted to be loved,by someone. I always had teary eyes, wanted it to be wiped by someone. -- ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Role of DelugeC and DelugeM in Overair programming
[EMAIL PROTECTED] wrote: Hi, Can somebody explain me in detail the working of deluge in tinyos. What role is played by the DelugeM and DelugeC since all the image injection and pinging of the nodes and all that stuff is done through the Java applications. DelugeC contains the code that allows the motes to respond to pings, image injections, etc. from the Java code on the computer. However, the majority of DelugeC is focused on actually distributing the images to network (when requested). In DelugeM, what exactly is the Adv message(Advertisement message) that the motes receive from the neighboring nodes and when exactly is that message released by the node I'm not up to speed on the algorithm itself, but I'm sure Mike, Razvan, and others can help with that. The Deluge T2 documentation in doc/pdf as well as the old Deluge 2.0 website http://www.cs.berkeley.edu/~jwhui/research/deluge/index.html might be useful. - Ryan Regards, Vishal ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Debugging in TOS / nesC
I'm new to TOS and sensor networks, and I would like to know if anybody has any experience with debugging. At present all my debugging is done by blinking LEDs which is tedious. Is there a way in TOS so printf statements can be sent to the serial port? I read the tutorial about Serial Communication, but from what I understand this explain how to send packets to the serial port. What if I simply want to send printf debugging statements? Thanks in advance --jks ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] [Graphviz]
i ve got an other question : it works even if it s not the right version for the compiler . When i run it , it displays a list of components and interfaces but idon t see any drawings . Is it right ? What can i do to see graphs ? From: DAE HEE KIM [EMAIL PROTECTED] To: vazoumana fofana [EMAIL PROTECTED] Subject: Re: [Tinyos-help] [Graphviz] Date: Thu, 19 Jul 2007 06:45:27 -0400 Hi. I am using Graphviz(ver 2.12) on TinyOS 2.0.1 well. However, I also can see the error message not the right version:... when I run tos-check-env. So, I think you can run graphviz despite the error message. I installed Graphviz 2.12(graphviz-2.12.tar.gz) which you can download from http://www.graphviz.org/Download_source.php; Then, as you can see, you can install as follows - tar -xzvf *.gz - ./configure - make - make install Regards. 2007/7/19, vazoumana fofana [EMAIL PROTECTED]: Hi i want to use graphviz to draw diagrams and graphs. I ve set up Xubuntos on my laptop There is a realease of graphviz included in it : dot version 2.8 when i launch tos-check-env, it answers that it s not the right version : get the 1.10. I don t understand because in this case, it s not an update. Further more, i try get this version on rpmfind and i don t find it. Anyone can help me .? Thanks. _ Découvrez le Blog heroic Fantaisy d'Eragon! http://eragon-heroic-fantasy.spaces.live.com/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- DaeHee Kim (Danny) Department of Computer Science, State University of NewYork at Binghamton. Cell Phone : 1-607-321-9574 Address : 13-A Andrea Dr, Vestal, NY, 13850 email-address : [EMAIL PROTECTED], [EMAIL PROTECTED] _ Gagnez des écrans plats avec Live.com http://www.image-addict.fr/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] USB related crash of host computer connected to TinyOS nodes
On Monday 16 July 2007 04:26:53 pm Razvan Musaloiu-E. wrote: Hi! On Mon, 16 Jul 2007, Steve McKown wrote: On Friday 13 July 2007 09:22:00 pm Razvan Musaloiu-E. wrote: Hi! On Fri, 13 Jul 2007, Philip Levis wrote: On Jul 13, 2007, at 3:37 PM, Steve McKown wrote: On Wednesday 11 July 2007 11:40:02 am John Griessen wrote: I am having troubles starting a computer with a telosb running BaseStation attached, and also sometimes plugging the tmote in via USB. If a program that uses the radio transceiver is running I can get hangs. [snip] I've just this week seen this behavior on an x86 PC running Ubuntu Feisty. The usb hub hardware in the PC will reset the mote's port, which causes it to 'jump' to a new tty device because the original one remains held open by the host software that was talking to the mote. It can take 1-3 days before it happens. Jul 13 08:17:31 stevex2 kernel: [258325.704000] hub 1-0:1.0: port 5 disabled by hub (EMI?), re-enabling... Jul 13 08:17:31 stevex2 kernel: [258325.704000] usb 1-5: USB disconnect, address 9 Jul 13 08:17:31 stevex2 kernel: [258325.708000] ftdi_sio 1-5:1.0: device disconnected Jul 13 08:17:31 stevex2 kernel: [258325.884000] usb 1-5: new full speed USB device using ohci_hcd and address 12 Jul 13 08:17:31 stevex2 kernel: [258326.104000] usb 1-5: configuration #1 chosen from 1 choice Jul 13 08:17:31 stevex2 kernel: [258326.108000] ftdi_sio 1-5:1.0: FTDI USB Serrial Device converter detected Jul 13 08:17:31 stevex2 kernel: [258326.108000] drivers/usb/serial/ftdi_sio.c: Detected FT232BM Jul 13 08:17:31 stevex2 kernel: [258326.108000] usb 1-5: FTDI USB Serial Device converter now attached to ttyUSB4 [snip] It could be the Linux USB drivers. One question would be if anyone has seen this happen on windows. [snip] My problems went away after Vlado Handziski's commit from July 9: http://mail.millennium.berkeley.edu/pipermail/tinyos-2-commits/2007-July /00 5968.html I'd like to try this out as well. Are you are running CVS complete, or did you cherry pick this patch and apply to a released version? I'm updating almost continuously from CVS. :P If you don't want to update your system you can give it a try using this minimal Debian VMware machine with a CVS T2 almost up-to-date can be downloaded from here: http://hinrg.cs.jhu.edu/~razvanm/vmware/Debian-T2.with-t2.2007-07-15.tar.g z The root password is root and there is only one account called tinyos2 with the password tinyos2. The T2 is installed in tinyos2 in ~/tinyos2. To update to the latest CVS you can do a cvs update -dP in ~/tinyos2 followed by a make ; make install in ~/tinyos2/tools. The SSH is active at the start and the VMware configuration is 2GB of disk and 256MB of RAM. I've been swamped, but will get to this soon and post my results. We've been deploying the T2 dev environment as a VMWare player image for a few weeks now. It's far easier to install than a native Windows install of T2. I'll just update a copy of our image and give it a go in the next few days. Thanks, Steve ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TOSSIM provides RSSI reading?
Dear all, As I am waiting for some motes to come, I am playing around with TOSSIM (make pc). I successfully adjust transmit power. I need to know RSSI measured at the receiving mote. Does TOSSIM provide any stuffs for this? Many thanks in advance, Ittipong ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Precompile an nc file
Hi all, Can ncc compiler output a precompiled file? (like the -E option of gcc) I found it doesn't out put anything with -E option processing a .nc file. Thank you in advance. -- Best wishes, Kenneth Chan Wish you have a good day! ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Make compatability with multiple directories
Hello, I am trying to make it to where I can make applications from multiple directory trees. Originally, I had moteworks and a tinyos-1.x folders at the cygwin/opt level, but could only make from the moteworks directory. I reinstalled due to incompatability (updated cygwin and lost make ability) with a different structure this time, and now I can make from my tinyos-1.xdirectory, but I can't in my moteworks. The errors are very basic, stating that it can't find a rule for the target and that the env variable MAKERULES doesn't point to anything. How can I make it to where I can make programs from both locations? Thank you, Chris ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Telos module,delta app and humidity sensor
hi all, We've got an application running the delta application (Moteiv) and would like to add humidity, from looking at the oscilloscope application as a reference it appears there's a lot of overhead to use the humidity sensor, and it might kill battery life. Does anyone have experience with this configuration and the results I can expect?thanks in advance,Bruce ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] GainRadioModel Interface Question
On Jul 19, 2007, at 1:03 AM, Tal Rusak wrote: Hi, The signature of the function putOnAirTo in the GainRadioModel interface of /tinyos-2.x/tos/lib/tossim has the following signature: command void putOnAirTo(int dest, message_t* msg, bool ack, sim_time_t endTime, double gain, double reverseGain); I have not found any documentation about what the parameters gain and reverseGain mean specifically. This function appears only to be called in the file TossimPacketModelC.nc in the same directory with the following command: call GainRadioModel.putOnAirTo(destNode, sending, metadata-ack, evt-time, 0.0, 0.0); Does anyone know precisely what the last two parameters (both 0.0s) stand for? They are so TOSSIM can support radio power control (in the future). That is, if the software configures the radio to transmit at -10dBm instead of 0dBm, then you can pass -10.0. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] detecting packet losses in TOSSIM 2.0
Hi Phil, Thanks. Just one more question, which branch should I check in order to get the 2.0.2 code ? Thanks, Avinash On 7/18/07, Philip Levis [EMAIL PROTECTED] wrote: Avinash Sridharan wrote: Hi Phil, Are you referring to the CpmModelC.nc, since in the TinyOS 2.0.1 version that I have, the file in question has only 361 lines. I did a grep for the exact dbg statement you had mentioned, in your reply, for all files under the tossim folder as well, without success. I used the grep with the -i option with similar results. Oh -- the version I had was from CVS. Basically, to figure out why packets are being lost, look for any place where the lost field is set to 1. The 2.0.1 version of CpmModelC handles a few tough edge cases simply (not perfectly); 2.0.2/CVS will be/is much better. Phil -- Phd Dept. of Electrical Engineering University of Southern California http://www-scf.usc.edu/~asridhar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Make compatability with multiple directories
You can set your tinyos environment to anywhere by changing the following three environment variables: export TOSDIR=/opt/MoteWorks/tos export TOSROOT=/opt/MoteWorks export MAKERULES=/opt/MoteWorks/make/Makerules You would have to change these variable paths everytime you switch your trees. Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jenkins Sent: Thursday, July 19, 2007 8:33 AM To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] Make compatability with multiple directories Hello, I am trying to make it to where I can make applications from multiple directory trees. Originally, I had moteworks and a tinyos-1.x folders at the cygwin/opt level, but could only make from the moteworks directory. I reinstalled due to incompatability (updated cygwin and lost make ability) with a different structure this time, and now I can make from my tinyos-1.x directory, but I can't in my moteworks. The errors are very basic, stating that it can't find a rule for the target and that the env variable MAKERULES doesn't point to anything. How can I make it to where I can make programs from both locations? Thank you, Chris ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Telos module,delta app and humidity sensor
As long as you power the sensor on and off when you use it, it will not noticeably affect battery life. On 7/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi all, We've got an application running the delta application (Moteiv) and would like to add humidity, from looking at the oscilloscope application as a reference it appears there's a lot of overhead to use the humidity sensor, and it might kill battery life. Does anyone have experience with this configuration and the results I can expect? thanks in advance,Bruce ___ 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] Upgrading nesc from 1.1
I have installed tinyos 1.1.7 to work with the cricket package. It came with nesc 1.1. However, I also want the ability to compile xmesh code, which requires nesc 1.2. I have atttempted every version on the tinyos.net site, but when I use any of the rpm's, the command ncc --version says it can't find ncc in the bin path. What do I need to do to allow nesc to be upgraded, or what else needs to be upgraded to allow xmesh to be compiled? The last time I tried to upgrade I got incompatable versions of software and the make command would not work with anything. Thanks, Chris ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] large number modular and multiplication operations
hi, I am wondering is there any implementation of large number (16 byte) modular and multiplication operations in TinyOS? Thanks, Chris - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Connecting mib500 programming board with USB to parallel cable
Hi all, I have mib 500 programming board and mica2 motes. I am trying to connect this programming board using USB to Parallel Cable. But it doesn't seem to work. Can anybody let me know if there is any way to make it work? Thanks in advance. Regards, Deeksha Ganju - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] GenericComm
which timer uses GeneriComm? I'm using timer1 and 3 in my app, and I'm afraid they interfere with genericcomm ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] max message size for SendMsg? Sending message is failing for me (1.x)
Hello all, I'm trying to modify OscilloscopeRF to send more samples per packet (I've increased the sample rate a bunch and am seeing some dropped packets, so I thought this might help). Increasing the number of samples in the packet below even from 10 to 11 causes SendMsg to reject the message. Does anyone know why that would be? I don't think this even close to maxing out the 8 bit size argument to send message. If anyone has any ideas, i'd love to hear them. This is using a mica2 by the way. thanks -james Here's how the app comes set up to send 10 samples per OscopeMsg: // the message enum { BUFFER_SIZE = 10 }; struct OscopeMsg { uint16_t sourceMoteID; uint16_t lastSampleNumber; uint16_t channel; uint16_t data[BUFFER_SIZE]; }; and my sending code, modified to blink the green led when the message is rejected: if (call DataMsg.send(0, sizeof(struct OscopeMsg), msg[currentMsg])) { atomic { currentMsg = (currentMsg +1)%NUM_MSG; } call Leds.yellowToggle(); } else { call Leds.greenToggle(); } ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] GenericComm problem
the simple following code should blink the red led on and off every time a msg has received (if the ). I don't understand why sometimes it does not happen. Does genericcomm uses timer3, or there is another problem in that code? thank you event TOS_MsgPtr ReceiveMsg.receive( TOS_MsgPtr m) { uint16_t init_time_random; if( ((struct cmd_msg *)m-data)-cmd == START ) { ETIMSK = 0x00; //disable timer 3 TCNT3 = 0x00; call Leds.redOn(); call GenericComm.stop(); // stop the regular radio drivers TCCR3A = 0x00; TCCR3B = 0x04; // prescaler: 256 OCR3BH = 0xAF; // about half a second OCR3BL = 0xC8; ETIMSK = 0x3E8; // enable compare register 3B } return m; } TOSH_SIGNAL( SIG_OUTPUT_COMPARE3B ) { TCNT3 = 0x00; ETIMSK = 0x00; call Leds.redOff(); call CommControl.init(); call CommControl.start(); } ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] max message size for SendMsg? Sending message is failing for me (1.x)
You should be able to bump the message BUFFER_SIZE to 11, just like Nigel in Spinal Tap, but no further as the max payload size is 29 bytes...I don't know why it failed. However for many gory details of TOS message sizing search this list or google for TOSH_DATA_LENGTH. MS James Kebinger wrote: Hello all, I'm trying to modify OscilloscopeRF to send more samples per packet (I've increased the sample rate a bunch and am seeing some dropped packets, so I thought this might help). Increasing the number of samples in the packet below even from 10 to 11 causes SendMsg to reject the message. Does anyone know why that would be? I don't think this even close to maxing out the 8 bit size argument to send message. If anyone has any ideas, i'd love to hear them. This is using a mica2 by the way. thanks -james Here's how the app comes set up to send 10 samples per OscopeMsg: // the message enum { BUFFER_SIZE = 10 }; struct OscopeMsg { uint16_t sourceMoteID; uint16_t lastSampleNumber; uint16_t channel; uint16_t data[BUFFER_SIZE]; }; and my sending code, modified to blink the green led when the message is rejected: if (call DataMsg.send(0, sizeof(struct OscopeMsg), msg[currentMsg])) { atomic { currentMsg = (currentMsg +1)%NUM_MSG; } call Leds.yellowToggle(); } else { call Leds.greenToggle(); } ___ 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