Re: [Tinyos-help] How to make an application multi-hop enabled
Hi, If you want an example showing the wiring, take a look at Surge(if using mica/z/2 motes) in the tinyos repository or Delta(if using Moteiv motes). ankur ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Introducing MeshNetics OpenMAC
On behalf of MeshNetics (www.meshnetics.com), I am happy to announce a new open source project that may be of general interest to TinyOS and nesc developer communities. A little about the project... OpenMAC is MeshNetics' open source, _certified_ implementation of IEEE802.15.4 Media Access Control (MAC) layer. MAC layer forms the basis of MeshNetics eZeeNet(TM) software stack, and provides support to peer-to-peer and star network topologies. OpenMAC has been ported to several AVR-based platforms, including MeshNetics' own ZigBit OEM Module and development board, and Atmel's RF Accessory (RZ502) and Demonstration (RZ200) Kits. It is supplied complete with code samples and device drivers for each of the supported platforms. MeshNetics OpenMAC has the following goals: * enabled users, who do not require full functionality of MeshNetics eZeeNet Software Stack, to develop custom WSN applications around MeshNetics ZigBit modules * enabled advanced users to modify OpenMAC internals to suit specific application needs * jump start application development on top of MAC with thoroughly documented sample applications * provide a convenient C API to developers not familiar with TinyOS or nesC programming language (technologies at the core of OpenMAC) * provide a reference design to be ported to analogous hardware platforms OpenMAC is production code and is included, virtually unaltered, in MeshNetics commercial eZeeNet software. It is heavily commented and comes with extensive documentation. It is distributed under CDDL. How to get started... MeshNetics OpenMAC is hosted on sourceforge.net. Please visit http://sourceforge.net/projects/openmac/ to download our latest release or for instructions on how to access the OpenMAC svn repository. How to order hardware and development kits... http://www.meshnetics.com/buy/ Best regards, Ilya Bagrak Field Applications Engineer MeshNetics Tel.: +7 (495) 725 8125 ext. 5587 Web: www.MeshNetics.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] xlisten-arm compile problem, help
Hi, I am still get stuck on the compilation of xlisten. I got the following undefined reference error when I attempted to cross-compile it for stargate: arm-linux-gcc -I/usr/local/arm/3.3.2/pgsql/include -O2 -Wall -Wno-format -o xlisten-arm xlisten.c xpacket.c xconvert.c xdb.c xserial.c xsocket.c boards/mts300.c boards/mts400.c boards/mts510.c boards/mts101.c boards/mep500.c boards/mep401.c boards/ggbacltst.c boards/mica2.c boards/mica2dot.c boards/micaz.c boards/mda500.c boards/mda300.c boards/msp410.c boards/xtutorial.c amtypes/health.c amtypes/surge.c timestamp/timestamp.c -L/usr/local/arm/3.3.2/pgsql/lib -lpq -lm /usr/local/arm/3.3.2/pgsql/lib/libpq.a(fe-connect.o)(.text+0x1bd8): In function `parseServiceInfo': : undefined reference to `__ctype_b' /usr/local/arm/3.3.2/pgsql/lib/libpq.a(fe-connect.o)(.text+0x2000): In function `conninfo_parse': : undefined reference to `__ctype_b' /usr/local/arm/3.3.2/pgsql/lib/libpq.a(fe-exec.o)(.text+0x2f0): In function `PQunescapeBytea': : undefined reference to `__ctype_b' /usr/local/arm/3.3.2/pgsql/lib/libpq.a(fe-exec.o)(.text+0x1f14): In function `PQfnumber': : undefined reference to `__ctype_b' /usr/local/arm/3.3.2/pgsql/lib/libpq.a(fe-exec.o)(.text+0x1f18): In function `PQfnumber': : undefined reference to `__ctype_tolower' /usr/local/arm/3.3.2/pgsql/lib/libpq.a(encnames.o)(.text+0xc8): In function `clean_encoding_name': : undefined reference to `__ctype_b' /usr/local/arm/3.3.2/pgsql/lib/libpq.a(fe-auth.o)(.text+0x168): In function `pg_password_sendauth': : undefined reference to `crypt' collect2: ld returned 1 exit status make: *** [xlisten-arm] Error 1 = It seems the library provided from the toolchain of Stargate is missing some implementation. Since I got this library from Stargate setup CD, which is quite old, I think, I just have the binaries for this library file. I do not have the source code to re-generate it. How can I solve this problem? Please advise. From: Jaisimha Rao [EMAIL PROTECTED] To: [EMAIL PROTECTED], tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] xlisten-arm compile problem Date: Sun, 22 Apr 2007 19:40:02 -0400 Hi , After downloading and successfully compiling the xlisten package from http://tinyos.cvs.sourceforge.net/tinyos/tinyos-1.x/contrib/xbow/tools/src/xlisten/ I keep getting the same error when I try to run it on the Stargate. Error: ./xlisten-arm: error while loading shared libraries: libpq.so.3: cannot open shared object file: No such file or directory I am running ubuntu and it did not have the ld.so.conf file so I just wrote my own. ld.so.conf file: include ld.so.conf.d/*.conf /usr/local/arm/3.3.2/pgsql/lib The problem still persists. Help is much appreciated. Thanks, Jai ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Ubuntu package might be broken
Hello, Today, when I tried to test my application with TOSSIM, it didn't work. First, Python.h was missing though I didn't change anything in my distrib. I somehow fixed that, but then during the simulation, the sendDone event is never signaled after a send call. I tried to test a tutorial, BlinkToRadio : same result. I tried to load BlinkToRadio in a mote, then it worked. I don't know if TOSSIM of python is guilty. I didn't notice any python update lately, but a tinyos update this week-end if I remember well. Could that be the source of the problem ? Does other Ubuntu users faced the problem ? Any clue ? Thanks for your help, Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] AMSnoopingReceiverC
Hi, AMSnoopingReceiverC in TinyOS 2.0 exports the interfaces of a component called ActiveMessageImpl which doesn't seem to exist in the TinyOS 2.0 tree. Is this intentional or a mistake? Thanks for this. Best Regards, Damien. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Re: Microphone on a mts300 sensorboard - tone detector, raw data and Resource.request() problem (and workaround)
Has anyone looked at this yet? I now noticed that in MicP.nc, in SplitControl.start(), there is a Timer.startOneShot being called with 1200ms. This accounts for the Resource.request()/Resource.granted() delay I wrote about. What the Timer.fired() executes is the same as a commented line right beneath the calling of the Timer, so I commented the call Timer and de-commented the signal SplitControl and the delay I wrote about is no more. But without this timer readings seem meaningless. In MicDeviceP.nc the name used for that timer is self-explanatory (WarmupTimer), but why is it being always warmed up for each reading? Cheers, Hugo On 4/19/07, Hugo Sousa [EMAIL PROTECTED] wrote: Using: TinyOs 2.x (CVS updated), cygwin, crossbow micaz motes, mts300ca sensorboard The initial problem while using MicC to access the microphone tone detection was that the microphone seemed to be always detecting the 4khz tone, even if no tone was present. I tried reading the code below (MicP, MicDeviceP, MicReadP, etc) and got to the conclusion that there was no (that I could find) Resource.request() to access the mic tone detection, and that solved part of the tone detection problem. The second issue is that it seems that when a tone is detected, the interrupts aren't disabled like it says in MicSetting, so a call MicSetting.disable() is needed inside the async event error_t MicSetting.toneDetected() implementation. After solving the tone detection I went to the raw data mode, it seemed to work ok, but a little sluggish. Reading the code below ( MicC, MicReadP, ArbitratedReadC), I saw that for each Read.read() a Resource.request() is called, and after Read.readDone() a Resource.release() is also called. In my motes the time from a Resource.request() to a .granted() is very high, 1 second wouldn't be an exageration (I would like to know your experiences on this), so the solution was write my own module and configuration (similiar to MicC, but not using MicReadP), wiring myModule.Read interface directly to AdcReadClientC (check MicC.nc), and do not release() the resource after a readDone(). I hope this helps someone, I've seen many mails with problems with the tone detection, but I have some questions. Am I doing something unadvisable by not using ArbitratedReadC (thus not releasing the resource)? Can the resource be stolen by some other piece of code? Should I use MicStreamC (haven't tried it yet) for periodic sound sampling? My interest is not the actual sound it self, but whether or not there is noise. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Ubuntu package might be broken
Edit the tutorial source file to add debug messages. For example, dbg(messages,Sending a message\n); just before the send command, and dbg(messages,Message sent\n); in the sendDone event. Then compile the tutorial : make micaz sim To run the simulation, create a basic python file, I attached mine. When you run python test.py, you should see (not immediately) the first debug message but not the second one. Stop the simulation with Ctrl+C after a few seconds. Thanks, Romain On 4/23/07, leith [EMAIL PROTECTED] wrote: what commands are you running that gives you the error? i haven't used tossim, but if you can guide me with your steps, i'll try to see if i can reproduce your problem -leith Romain Thouvenin wrote: Hello, Today, when I tried to test my application with TOSSIM, it didn't work. First, Python.h was missing though I didn't change anything in my distrib. I somehow fixed that, but then during the simulation, the sendDone event is never signaled after a send call. I tried to test a tutorial, BlinkToRadio : same result. I tried to load BlinkToRadio in a mote, then it worked. I don't know if TOSSIM of python is guilty. I didn't notice any python update lately, but a tinyos update this week-end if I remember well. Could that be the source of the problem ? Does other Ubuntu users faced the problem ? Any clue ? Thanks for your help, Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help from TOSSIM import * import sys t = Tossim([]) r = t.radio(); t.addChannel(messages, sys.stdout); m1 = t.getNode(1) m2 = t.getNode(2) m1.bootAtTime(1001) m2.bootAtTime(1102) r.add(1, 2, -60.0) r.add(2, 1, -60.0) r.setNoise(1, -100.0, 5.0) r.setNoise(2, -100.0, 5.0) while 1: t.runNextEvent() ___ 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 digital data on the PW pins and forward the same on RF
Hi all, How can i read the PW pins of the mica2 motes and forward the same on Rf? In my application external data comes to the PW pins of mica2 from another microcontroller. The mica2 mote has to read this data and forward it on RF. I have tried to implement the application on grounds of the Oscilloscope sample prgm but i dont know a way to read and monitor the PW pins. Please help me. Its urgent. Thanking you, Dipti Jaiswal ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to read digital data on the PW pins and forward the same on RF
This depends on how the other microcontroller is sending the data to the mica2. If it is serial, then you should use the UART rather than the PW pins (no reason to reimplement the wheel). If you just need to read a logic high or a logic low, then you can read it this way. //For PW1 //set the pin as an input, so that the other MCU can drive it. TOSH_MAKE_PW1_INPUT(); int value = TOSH_READ_PW1_PN(); Hope that helps, Jacob Sorber On 4/23/07, Dipti [EMAIL PROTECTED] wrote: Hi all, How can i read the PW pins of the mica2 motes and forward the same on Rf? In my application external data comes to the PW pins of mica2 from another microcontroller. The mica2 mote has to read this data and forward it on RF. I have tried to implement the application on grounds of the Oscilloscope sample prgm but i dont know a way to read and monitor the PW pins. Please help me. Its urgent. Thanking you, Dipti Jaiswal ___ 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] I need help in a Java Application
hi everybody please can any body tell me how to build a java application to read packets from MIB510, i have generated the message class using the MIG tool but i dont know what to do next ?? i still dont know if this application must read the packets from SerialForwarder or not ?? what classes and methods should I use in order to read and display the data on the screen I have tried the tutorials but they are very general... I will be thankful if any body post detailed steps on this subject Regards _ Exercise your brain! Try Flexicon. http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglineapril07 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] AMSnoopingReceiverC
It should be ActiveMessageC. Phil On Apr 23, 2007, at 3:19 AM, Damien O'Rourke wrote: Hi, AMSnoopingReceiverC in TinyOS 2.0 exports the interfaces of a component called ActiveMessageImpl which doesn't seem to exist in the TinyOS 2.0 tree. Is this intentional or a mistake? Thanks for this. Best Regards, Damien. ___ 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] Ubuntu package might be broken
On Apr 23, 2007, at 2:40 AM, Romain Thouvenin wrote: Hello, Today, when I tried to test my application with TOSSIM, it didn't work. First, Python.h was missing though I didn't change anything in my distrib. I somehow fixed that, but then during the simulation, the sendDone event is never signaled after a send call. I tried to test a tutorial, BlinkToRadio : same result. I tried to load BlinkToRadio in a mote, then it worked. I don't know if TOSSIM of python is guilty. I didn't notice any python update lately, but a tinyos update this week-end if I remember well. Could that be the source of the problem ? Does other Ubuntu users faced the problem ? Any clue ? Please check the archives. There are lots of posts on both of these questions. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Motelab motes sensorboard help
I used HamamatsuC and HumidityC in /tos/plataform/telos But only HamamatsuC.PAR work, humidity and temp dont work InternalTempC, InternalVoltageC and VoltageM in /tos/platafom/msp430 Dont work What I must do? thanks _ Da: vinay murthy [mailto:[EMAIL PROTECTED] Inviato: venerdì 20 aprile 2007 18.57 A: Ciro Cardone; tinyos-help@Millennium.Berkeley.EDU Oggetto: Re: [Tinyos-help] Motelab motes sensorboard help ciao ciro, Use the TELOS one. Cheers,vinay. Arslogica. Ciro Cardone [EMAIL PROTECTED] wrote: Hi all, Im newbie to tinyos. Im using motelab for test my application, but I dont know what sensorborad use to my application I read on motelab site that every Tmote sky has a light, humidity and temperature sensor I can use HamamatsuC and HumidityC in /tos/plataform/telos Or I must use InternalTempC, InternalVoltageC and VoltageM in /tos/platafom/msp430 And in this case where is the light sensor? And the external temp sensor? I can use Oscope application in \contrib\moteiv\apps\Oscilloscope\ when there is all sensorboard? Im sorry for my English! Thanks for the help, Ciro ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Ahhh...imagining that irresistible new car smell? Check out new http://us.rd.yahoo.com/evt=48245/*http:/autos.yahoo.com/new_cars.html;_ylc= X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM- cars at Yahoo! Autos. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Ubuntu package might be broken
Did you recently update your debs? Like within the last two days? If so go to $TOSROOT/support/make/sim.extra Is the Python version set to 2.5? If so change it to 2.4. Does this fix your problem? Thanks Chad On 4/23/07, Romain Thouvenin [EMAIL PROTECTED] wrote: Hello, Today, when I tried to test my application with TOSSIM, it didn't work. First, Python.h was missing though I didn't change anything in my distrib. I somehow fixed that, but then during the simulation, the sendDone event is never signaled after a send call. I tried to test a tutorial, BlinkToRadio : same result. I tried to load BlinkToRadio in a mote, then it worked. I don't know if TOSSIM of python is guilty. I didn't notice any python update lately, but a tinyos update this week-end if I remember well. Could that be the source of the problem ? Does other Ubuntu users faced the problem ? Any clue ? Thanks for your help, Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Chad @ Home ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Timer
Hi I want to know if it is possible to create two timers that count simultaniously two differents period. sorry for bad english Thanks a lot -- Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Timer
Hi i want to know if it is possible to create two differents Timers that count simultaniously two differents periods. sorry for bad English Thanks a lot -- Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Please help using multiple SendMsg instances
Hi all tinyos gurus, I'm working on some nesC code (originally from the great MoteTrack project, http://www.eecs.harvard.edu/~konrad/projects/motetrack/). I'm trying to force a node to send an ADC sensor reading at a different rate than other message type timer frequency. This is my configuration: includes MTMsgs; includes PrintfUART; configuration BeaconMote { } implementation { components Main, BeaconMoteM, GenericComm as Comm, LedsC as Leds, /*ADCC*/ DemoSensorC as SensorC, TimerC, #if defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT) CC1000ControlM; BeaconMoteM.CC1000Control - CC1000ControlM.CC1000Control; #else // assume CC2420 radio (e.g. MicaZ, Telos) CC2420ControlM; BeaconMoteM.CC2420Control - CC2420ControlM.CC2420Control ; #endif Main.StdControl - Comm.Control; // Inside GenericComm, StdControl was renamed to Control Main.StdControl - BeaconMoteM; Main.StdControl - TimerC; BeaconMoteM.Leds- Leds; BeaconMoteM.Timer_Beacon- TimerC.Timer[unique(Timer)]; BeaconMoteM.Timer_Sensor- TimerC.Timer[unique(Timer)]; BeaconMoteM.SendMsg_Beacon - Comm.SendMsg[AM_BEACONMSG]; BeaconMoteM.SendMsg_Sensor - Comm.SendMsg[AM_BEACONSENSORMSG]; BeaconMoteM.Sensor - SensorC; BeaconMoteM.ADCControl - SensorC; My problem is that the mote correctly sends his readings over the radio (TOS_BCAST) only if I set the Timer_Sensor period at a value that is near to 100. I've used two separated pending mutexes for the two message types. I'v tried also using the same mutex but the result seems to be the same. At higher rates, the mote sends only one message type. The following is my hacked code. Can you help me? Am I doing something nasty? Thank you so much. Federico includes MTMsgs; includes MoteTrackParams; includes PrintfUART; module BeaconMoteM { provides interface StdControl; uses interface Leds; uses interface Timer as Timer_Beacon; uses interface SendMsg as SendMsg_Beacon; //uses interface StdControl as ADCControl; uses interface Timer as Timer_Sensor; uses interface SendMsg as SendMsg_Sensor; uses interface ADC as Sensor; uses interface StdControl as ADCControl; #if defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT) uses interface CC1000Control; #else // assume CC2420 radio (e.g. MicaZ, Telos) uses interface CC2420Control; #endif } implementation { // === Data Members == uint8_t freqChanIndex = 0; uint8_t txPowerIndex = 0; TOS_Msg sendMsg; BeaconMsg *beaconMsgPtr; bool pendingSend = FALSE; uint16_t currSqnNbr = 0; TOS_Msg sendSensorMsg; BeaconSensorMsg *sensorMsgPtr; //#define SEPARATE_PENDING #ifdef SEPARATE_PENDING bool pendingSensorSend = FALSE; #endif uint16_t sensorSqnNbr = 0; uint16_t internalTemp = 0; // === Functions == void errorToLeds(uint8_t errValue); task void sendBeacon(); task void sendSensor(); /** * Initializes the beacon mote. */ command result_t StdControl.init() { txPowerIndex = 0; freqChanIndex = (TOS_LOCAL_ADDRESS * 13) % NBR_FREQCHANNELS; // so that not all beacons transmit at the same time beaconMsgPtr = (BeaconMsg*) sendMsg.data; sensorMsgPtr = (BeaconSensorMsg *) sendSensorMsg.data; call ADCControl.init(); printfUART_init(); return call Leds.init(); } /** * Also called when the application is initialized, but after * all modules have had StdControl.init() invoked. */ command result_t StdControl.start() { return rcombine(call Timer_Beacon.start(TIMER_REPEAT, BEACON_SEND_PERIOD), call Timer_Sensor.start(TIMER_REPEAT, 1000L)); } /** * Called if another module wishes to stop this one. This will never * happen in practice, but, we still stop the timer here. */ command result_t StdControl.stop() { return rcombine(call Timer_Beacon.stop(), call Timer_Sensor.stop()); } /** Called when the timer expires. */ event result_t Timer_Beacon.fired() { post sendBeacon(); return SUCCESS; } /** * Construct and send a new beacon message. The transmission power will cycle * through codefreqChans/code and codetxPower/code */ task void sendBeacon() { call Leds.greenOn(); if (!pendingSend) { beaconMsgPtr-srcAddr = TOS_LOCAL_ADDRESS; beaconMsgPtr-sqnNbr = currSqnNbr++; // (a) set the Frequency channel if (txPowerIndex == 0) { call Leds.yellowToggle(); #if defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT) #else // assume CC2420 radio ( e.g. MicaZ, Telos) call CC2420Control.TunePreset( FREQCHANNELS[freqChanIndex] ); #endif beaconMsgPtr-freqChan = FREQCHANNELS[freqChanIndex];
[Tinyos-help] IPv6 and serialforwarder/TinyOS
Hi, I want to connect a sensor to an IPv6 host. I thought there is an IPv6 version of serialforwarder, but I was unable to find it. Could anyone please send me a link to the IPv6 open source serialforwarder? Also, is there any other method that I can use to connect sensors to IPv6 hosts beside using the serialforwarder. Thank you, Mostafa ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to read digital data on the PW pins and forward the same on RF
Typothat should be int value = TOSH_READ_PW1_PIN(); You can also use MAKE*INPUT on your bits and then read the entire port and mask off the part you don't want (I'm pretty sure the PWn bits are PortC): uint8_t val = inp( PINC ); MS Jacob Sorber wrote: This depends on how the other microcontroller is sending the data to the mica2. If it is serial, then you should use the UART rather than the PW pins (no reason to reimplement the wheel). If you just need to read a logic high or a logic low, then you can read it this way. //For PW1 //set the pin as an input, so that the other MCU can drive it. TOSH_MAKE_PW1_INPUT(); int value = TOSH_READ_PW1_PN(); Hope that helps, Jacob Sorber On 4/23/07, *Dipti* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, How can i read the PW pins of the mica2 motes and forward the same on Rf? In my application external data comes to the PW pins of mica2 from another microcontroller. The mica2 mote has to read this data and forward it on RF. I have tried to implement the application on grounds of the Oscilloscope sample prgm but i dont know a way to read and monitor the PW pins. Please help me. Its urgent. Thanking you, Dipti Jaiswal ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU mailto:Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 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 mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tinyos 2 - MTS300 temperature and light values
The LSB shouldn't be all zeros, perhaps you are thinking of the byte ordering. If you are receiving a message stream on a PC the Low Byte will come first, and if you have the bytes reversed your reading will look way high and unstable. MS Itamar Amsili wrote: Hello, We have a MTS300 sensor board. We encounter a problem with understanding the values that we recieve from the board sensing function. The values are extremly high and we dont realy know in what scale are they measured. We know that the values are saved in 16BIT and the LSB are zeroes. Any help will be appreciated. Thanks in advance, Eran and Itamar. ___ 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] Help on Mica2
dear all Kindly help me to write a temperature sensor program using nesC We have MIB510 board and Mica2 sensor nodes with mts310 sensor boards Kindly send me the nesC code for doing the same. How to convert ADC count to temperature (degree celcius)? regards G. Santhosh Kumar Lecturer Department of Computer Science Cochin University ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] UART ReceiveMsg
Thanks for the suggestions lad. Very appreciated. Most of them I have already thought of. The code was only written to test that the communication is working. That's it. But It's good to be confirmed on the issue. Thanks. However, Michael, what do you mean by you need to leave the 7E's alone as well ? I don't understand. And what is this bracketed with the sync byte? Could you give an example please? Inderjit On 4/18/07, Michael Schippling [EMAIL PROTECTED] wrote: I think you need to leave the 7E's alone as well. If it's going to GenericComm, the full message should be bracketed with the sync bytes. If that doesn't work it may be due to having to swap a source address or something... Structure alignment shouldn't be a problem if you are dealing with a char array that was structured correctly to start with. You might check that your pc serial driver is not trying to help by adding line-feeds or something...it should be raw I/O. Hopefully you've seen the octavetech doc: http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf MS Inderjit Singh wrote: Thanks Ben, I tried something very simple: 1. I get the byte stream from usb sent from the TMote like: 7e 42 xx xx xx xx 7e 2. I remove the 7e from the stream and send it back as it is (42 xx xx xx xx). But I still don't get it. C/C++ should be able to handle this no? Is there any doc on how the serial communication should be established. I have gone through the java code for sending but still it would help with a doc. Indy On 4/11/07, Ben Buckner [EMAIL PROTECTED] wrote: Hi, I have trouble sending msg from laptop (using c++) code to tmote. All the code is at the bottom. I have no problem reading the data from the serial but sending it back dooesn't seam to work. Anyone knows why? Thanks. Indy [...] memcpy(output_buffer, msgOUT, sizeof(msgOUT)); Out of the dozens of things that could be wrong, it might be worth pointing out that C does not guarantee that structures can be serialized by copying bytewise out of memory like that. It can work, but you never know. The most usual reason why that would fail is if the compiler tries to align the members of the structure and inserts padding (which it almost always does with odd-sized byte fields). At any rate, it would be a good idea to make sure that the code really generates the byte stream that you think it's generating. Ben B. ___ 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 mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Guidance for project
Hi , I am George Mathe.M.I am dng my masters in csu fresno.As a part of my project we were working on Matlab using Tinyos.But were not able to make it.Can you Please Give us guidance in doing this prject.It will be really helpful if you r able to sent the STEP BY STEP PROCEDURES that i have to follow. With regards George ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] LPL for CC2420 in tinyos-2.x
From: Antonis Lambrou Sent: Fri 4/20/2007 9:21 PM To: tinyos-help@Millennium.Berkeley.EDU Subject: LPL for CC2420 in tinyos-2.x What's the minimum and maximum time of the receiver's listening period at each duty cycle? I understand that if there is no traffic at all the receiver will turn off the radio immediately after CCA check and I'd like to know how long does that take, but also how long it takes as well when there is traffic. Thank you [EMAIL PROTECTED] ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Get motes to sleep (mica2, Surge_Reliable, HPLPowerManagement, EWMAMultiHopRouter)
Hi all, I have an adaption version of the Surge_Reliable application of Crossbow on mica2 motes. I want to get the motes in a sleep mode and wake them up with a timer. I want to use the HPLPowerMangement module in tos. First I enable the HPLPowerManagement module by call PowerManagement.enable(); Then I want to put the radio off by calling: call RouteControl.StdControl.stop(); The I get this compile error: interface has no command or event named 'StdControl' This is the configuration file: (I think something is wrong in the configuration file) : components Main, ADSAppM, TimerC, LedsC, ADCC, PhotoTemp, GenericCommPromiscuous as Comm, EWMAMultiHopRouter as multihopM , HPLPowerManagementM; Main.StdControl - ADSAppM.StdControl; Main.StdControl - multihopM.StdControl; Main.StdControl - TimerC; Main.StdControl - Comm; ADSAppM.ADCControl - ADCC; #ifndef PLATFORM_PC ADSAppM.Batt- ADCC.ADC[TOS_ADC_BANDGAP_PORT]; #else ADSAppM.Batt- ADCC.ADC[10]; #endif ADSAppM.Temp - PhotoTemp.ExternalTempADC; ADSAppM.TempStdControl- PhotoTemp.TempStdControl; ADSAppM.Timer - TimerC.Timer[unique(Timer)]; ADSAppM.Leds - LedsC.Leds; ADSAppM.ReceiveMsg- Comm.ReceiveMsg[AM_SURGEMSG]; ADSAppM.RouteControl - multihopM; ADSAppM.Send - multihopM.Send[AM_SURGEMSG]; multihopM.ReceiveMsg[AM_SURGEMSG] - Comm.ReceiveMsg[AM_SURGEMSG]; ADSAppM.PowerManagement - HPLPowerManagementM; } RouteControl is wired to multihopM. multihopM is a different name for the EWMAMultiHopRouter. EWMAMultiHopRouter provide the interface StdControl. Why can't the compiler find the StdControl function of EWMAMultiHopRouter??? Many thanks in advance, Tim This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Installing to Tmote nodes in Ubuntu 7.04 Feisty Fawn
i got /dev/ttyUSB0 to work again in feisty, i followed something i found on the ubuntu forums that suggested i do 1. uninstall the brltty packages 2. reinstall the udev packages [sudo aptitude reinstall udev] 3. reboot that got my /dev/ttyUSB0 working again athough, i use mica2, but this should get it working again for tmote right? holding off on feisty until this smooth out some bugs would be highly recommended... -leith Matthias Gauger wrote: Hello, It looks like with the new version 7.04 Ubuntu has stopped supporting /dev/ttyUSB{x} and replaced it with libusb. The result is that the command 'motelist' stopped working and installing software to Tmote sensor nodes the usual way (e.g., make tmote reinstall,0) fails. Has anyone already found a workaround that allows to install software to Tmotes in Ubuntu 7.04 Feisty Fawn? Thanks, Matthias ___ 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] Ubuntu package might be broken
On 4/23/07, Philip Levis [EMAIL PROTECTED] wrote: On Apr 23, 2007, at 8:52 AM, Romain Thouvenin wrote: Yes, I had. Since I tried with a tutorial and my application that used to work, I assume the code is correct. The network topology is set and seem to be correct (attached in my previous message). I have both python2.4 and 2.5 installed on my machine, and I had tried to switch the version in sim.extra (and updated /usr/bin/python accordingly), but same result. Since when I tried the first time, the compiler complained about a missing Python.h, this is probably related to python, but I can't see any reason. It was working properly before the week-end. I am clueless. To follow-up Chad's questions, did you update to the newest packages that just appeared over the weekend? 2.0.1 has some changes in TOSSIM. I haven't put the documentation up yet. Phil Yes, that's why I thought it might be the package that is broken, I updated to 2.0.1 this week-end, and everything was working fine before the week-end. Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Ubuntu package might be broken
On Apr 23, 2007, at 8:52 AM, Romain Thouvenin wrote: Yes, I had. Since I tried with a tutorial and my application that used to work, I assume the code is correct. The network topology is set and seem to be correct (attached in my previous message). I have both python2.4 and 2.5 installed on my machine, and I had tried to switch the version in sim.extra (and updated /usr/bin/python accordingly), but same result. Since when I tried the first time, the compiler complained about a missing Python.h, this is probably related to python, but I can't see any reason. It was working properly before the week-end. I am clueless. To follow-up Chad's questions, did you update to the newest packages that just appeared over the weekend? 2.0.1 has some changes in TOSSIM. I haven't put the documentation up yet. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tmote message format
I'm trying to understand the packet format of a PC app that interacts with a tmote; the format for messages to the tmote seem to contain an additional byte. I installed a serial port sniffer so I could see the raw traffic. The PC app sends for example the following packet to the mote: 7E 41 0E 1C 00 00 00 00 00 FF FF 03 7D 5D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 17 AC 7E I think the address (FF FF) should begin with the 9th byte but it is the 10th. What puzzles me is the 4th byte (1C); why is it there? This is different than the packet format I'm getting from the mote: 7E 42 01 00 00 00 00 00 7D 5E 00 08 7D 5D 00 69 06 7E Here the address (7D 5E = FE) begins with the 9th byte as it should. This corresponds to the documentation I've found on-line: http://cents.cs.berkeley.edu/tinywiki/index.php/Packetizer_Protocol and http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Pack ets.pdf. I note that the message type to the mote is ack-requested (41), which perhaps accounts for the extra byte. But I haven't been able to locate any doc on that. Thx, Bill - Bill Leal Computer Science and Engineering The Ohio State University 395 Dreese Laboratories 2015 Neil Avenue Columbus, OH 43210-1277 Fax: +1-815-301-8202 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] LPL for CC2420 in tinyos-2.x
The minimum receive on-time for the default LPL implementation (ack) when there are no transmitters nearby is around 5.6 ms. When a transmitter is found, the receiver remains on long enough to detect a packet - which is anywhere from 20 to 50 ms. I believe I have it set for 50 ms right now just so nobody has an issue with reliability. If no valid packet is detected, the radio goes back to sleep. If a valid packet is detected, the radio remains on for about 100 ms after the last valid packet is transmitter or received. Each time a packet is transmitter or received, that 100 ms timer gets reset. This allows you to perform some kind of high speed data transaction that may take awhile, and no reconfiguration of LPL is required to do so. -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonis Lambrou Sent: Friday, April 20, 2007 2:03 PM To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] LPL for CC2420 in tinyos-2.x From: Antonis Lambrou Sent: Fri 4/20/2007 9:21 PM To: tinyos-help@Millennium.Berkeley.EDU Subject: LPL for CC2420 in tinyos-2.x What's the minimum and maximum time of the receiver's listening period at each duty cycle? I understand that if there is no traffic at all the receiver will turn off the radio immediately after CCA check and I'd like to know how long does that take, but also how long it takes as well when there is traffic. Thank you [EMAIL PROTECTED] ___ 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] Ubuntu package might be broken
On Apr 23, 2007, at 10:53 AM, Romain Thouvenin wrote: Yes, that's why I thought it might be the package that is broken, I updated to 2.0.1 this week-end, and everything was working fine before the week-end. TOSSIM in 2.0.1 includes a new (and much better) way for simulating RF interference, which has a different interface than in TinyOS 2.0.0. I believe that if you change the line components CpmModelC as Model; in lib/tossim/ActiveMessageC.nc to components UscGainInterferenceModelC as Model; then it should work as it does in 2.0.0. I hope to get the documentation up tomorrow or Wednesday. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Does TOSBase filter packets when receiving?
Hi all, I am collecting reading from one mote to the TOSBase. I want to test the bit error rate by checking the received readings, see whether there are some bit error. Basically, I sent identical packet in one second every time. I had packets drop as I increase the distance between two motes, which was what I expected. But each time I received the whole correct packets. I wonder that whehter the program in the base statoin will filter the incorrect packet and only display the correct one. Does the base station drop packets with a wrong CRC or wrong preamble? Or if anyone know how I can just purly receive wireless reading no matter they are correct or not. Thanks, - Gary - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Complete Novice Question: Installing TinyOS and Compiling on MacOSX 10.4 for MICA
Yes, I have avr-objcopy and avr-gcc installed. They¹re located in the /usr/local/bin directory. TOSDIR=/Users/greg/Documents/Sources/tinyos-1.x/tos TOSROOT=/users/greg/Documents/Sources/tinyos-1.x These are correct, as far as I can tell. Inside the TOSDIR path are the folders ³interfaces²,²lib²,²platform²,²sensorboards²,²system², and ³types². TOSROOT just points to my tinyos directory, like yours does. MIB520=/dev/tty.usbserial-XBPSJ9TXA MOTECOM=/dev/tty.usbserial-XBPSJ9TXB I¹m using the USB version (MIB520), and so I think that part¹s correct. It¹s just supposed to point to where the serial port is, correct? What about MOTECOM? What does this mean as far as not being able to find ³Timer²,²Leds², etc.? Thanks, Greg Turnipseed From: Sarfraz Nawaz [EMAIL PROTECTED] Date: Tue, 17 Apr 2007 11:21:01 +1000 To: Michael Schippling [EMAIL PROTECTED] Cc: Greg Turnipseed [EMAIL PROTECTED], tinyos-help tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Complete Novice Question: Installing TinyOS and Compiling on MacOSX 10.4 for MICA Greg, avr-objcopy is a part of avr-binutils. Did you install the avr-binutils and avr-gcc? If yes, can you find out where it lives in your filesystem. You should also carefully check your environment variables and see if they are setup properly and are pointing to correct places. On 4/17/07, Michael Schippling [EMAIL PROTECTED] wrote: now it's gettin weird again... those interface defs are in tos/interfaces Perhaps you do not have the pointers to the tos code setup correctly. I have these two env vars: TOSDIR=/cygdrive/C/cygwin/opt/tinyos- 1.1.7/tos TOSROOT=C:/cygwin/opt/tinyos-1.1.7 At least one is the result of cygwin trying to help us poor Widows abusers by imitating (sort of almost kinda) the UNIX file structure. Perhaps both should be set to point to your installation... And just to be forward looking I have these two vars for downloading and talking to the MIB510 that I use. I don't know what you will use for downloading, but it'll probably be another struggle: MIB510=COM3 [EMAIL PROTECTED]:mica2 MS Greg Turnipseed wrote: It started with me trying to use make mica, and it gives me the error that there's no rule to make target 'mica.' This, along with a host of other errors (including not being able to correctly read the Makerules file in tinyos-1.x/apps), led me to find another way of compiling the code. After browsing the Internet for hours, I learned the ncc command. Then that had its own problems, and I ended up needing to reinstall nescc (and thanks to you guys' help), change ncc to point to the right place. Now I'm able to make ncc work...kind of. I can see that it's calling nescc, but now nescc's having problems. You were right (I think) about the board. I changed it to micaz, and now it gives me compilation errors. Lots of complaining about undeclared variables and such, but the most troublesome things are as follows: Blink.nc:44 http://Blink.nc:44 : cannot find `StdControl' Blink.nc:45 http://Blink.nc:45 : cannot find `Timer' Blink.nc:46 http://Blink.nc:46 : cannot find `Leds' Since the latter two are built-in functions, I wonder if I'm supposed to have compiled something else before running ncc? Thanks again. -Greg Turnipseed From: Michael Schippling [EMAIL PROTECTED] Date: Mon, 16 Apr 2007 13:48:35 -0600 To: Greg Turnipseed [EMAIL PROTECTED] Cc: Sarfraz Nawaz [EMAIL PROTECTED], tinyos-help tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Complete Novice Question: Installing TinyOS and Compiling on MacOSX 10.4 for MICA hmm...I'll bet ya a dollar you don't have a mica board... So you want probably mica2 or micaz as in make mica2. But: Yay! you are getting someplace. Why it was trying to exec stuff in (I assume) your own directory tree is a mystery that may re-bite you someplace else. But: Onward. In general ncc will put the results in build/[platform] so your main.exe ought to be there with app.c (which is the nescc 'preprocessor' output -- all the TOS and app source munged together in one file to be compiled to object code). What you want finally is the .srec file to be downloaded to the micaX card. There is another step in-between that puts the moteID into the .srec...all of these things _should_ be executed from the makefile in the right order. I think that's where this all started though, right? MS ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tinyos 2 - MTS300 temperature and light values
Hi you right our value is not stable at all, how could we read it reversed we just used the read interface from the CVS... what should we do to fix it? thanks for the reponse - Original Message - From: Michael Schippling [EMAIL PROTECTED] Date: Monday, April 23, 2007 20:23 Subject: Re: [Tinyos-help] tinyos 2 - MTS300 temperature and light values To: Itamar Amsili [EMAIL PROTECTED] Cc: tinyos-help@Millennium.Berkeley.EDU The LSB shouldn't be all zeros, perhaps you are thinking of the byte ordering. If you are receiving a message stream on a PC the Low Byte will come first, and if you have the bytes reversed your reading will look way high and unstable. MS Itamar Amsili wrote: Hello, We have a MTS300 sensor board. We encounter a problem with understanding the values that we recieve from the board sensing function. The values are extremly high and we dont realy know in what scale are they measured. We know that the values are saved in 16BIT and the LSB are zeroes. Any help will be appreciated. Thanks in advance, Eran and Itamar. --- - ___ 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] Ubuntu package might be broken
On 4/23/07, Philip Levis [EMAIL PROTECTED] wrote: On Apr 23, 2007, at 10:53 AM, Romain Thouvenin wrote: Yes, that's why I thought it might be the package that is broken, I updated to 2.0.1 this week-end, and everything was working fine before the week-end. TOSSIM in 2.0.1 includes a new (and much better) way for simulating RF interference, which has a different interface than in TinyOS 2.0.0. I believe that if you change the line components CpmModelC as Model; in lib/tossim/ActiveMessageC.nc to components UscGainInterferenceModelC as Model; then it should work as it does in 2.0.0. I hope to get the documentation up tomorrow or Wednesday. Phil OK, then I think I'll wait for the doc. Thanks, Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] mica2 radio stack documentation
does anyone have some documentation about the mica2 radio stack software (possibly in pdf)? thank you bob ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] tmote message format
Bill- From the legendary Octavetech protocol document that you linked: P_PACKET_ACK (0x41) - User packet. ACK required. Includes a prefix byte. Receiver must send a P_ACK response with prefix byte as contents. Regards, Ben B. Date: Mon, 23 Apr 2007 13:55:54 -0400 From: Bill Leal [EMAIL PROTECTED] Subject: [Tinyos-help] tmote message format To: tinyos-help@Millennium.Berkeley.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii I'm trying to understand the packet format of a PC app that interacts with a tmote; the format for messages to the tmote seem to contain an additional byte. [...] I think the address (FF FF) should begin with the 9th byte but it is the 10th. What puzzles me is the 4th byte (1C); why is it there? This is different than the packet format I'm getting from the mote: [...] I note that the message type to the mote is ack-requested (41), which perhaps accounts for the extra byte. But I haven't been able to locate any doc on that. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tinyos 2 - MTS300 temperature and light values
What I was trying to say is that ints in a TOS_Msg received on a host machine are in little-endian order (LSB first). If you are trying to do something with the data on the host you need to make sure you are putting the bytes in the right place in your program variables. MIG will do this for you and I did it like this in Java: // convert buffer at byte 'start' // from a little-endian int into a Java int protected static int ti( byte[] buf, int start ) { return ((buf[start+1] 8) 0xff00) + (buf[start] 0xff); } If you are only working internal to the motes this should not be an issue. MS Itamar Amsili wrote: Hi you right our value is not stable at all, how could we read it reversed we just used the read interface from the CVS... what should we do to fix it? thanks for the reponse - Original Message - From: Michael Schippling [EMAIL PROTECTED] Date: Monday, April 23, 2007 20:23 Subject: Re: [Tinyos-help] tinyos 2 - MTS300 temperature and light values To: Itamar Amsili [EMAIL PROTECTED] Cc: tinyos-help@Millennium.Berkeley.EDU The LSB shouldn't be all zeros, perhaps you are thinking of the byte ordering. If you are receiving a message stream on a PC the Low Byte will come first, and if you have the bytes reversed your reading will look way high and unstable. MS Itamar Amsili wrote: Hello, We have a MTS300 sensor board. We encounter a problem with understanding the values that we recieve from the board sensing function. The values are extremly high and we dont realy know in what scale are they measured. We know that the values are saved in 16BIT and the LSB are zeroes. Any help will be appreciated. Thanks in advance, Eran and Itamar. --- - ___ 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] question about includes statement in nc file
Hi all, I am working under tinyos1.1.15. When I looked at some .nc file, they start with includes Command; includes XCommand;. What do the Command or XCommand represent? Do they represent Command.h, XCommand.h or something else? thanks a lot. Demin ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Tmote Invent Accelerometer Sensitivity
Greetings, I have been working with the accelerometer on the Tmote Invents; however, it has not been able to detect vibration through a ground made of concrete. (It works great on other surfaces such as a table, but I need to use it on the concrete floor.) I set the potentiometer of the interrupt everywhere from 1 to 255 (up to 4095 since I'm not 100% sure what the range of the accelerometer's potentiometer is); however, the vibration of the concrete floor does not seem to wake the sensor up. Does anyone know of a way to increase the sensitivity even more (either through code or setting up the mote differently in the environment) or of a more efficient way of going about doing this? Is the accelerometer on the Tmote Invent even capable of this job? Thank you for your time. - Jon ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] tmote message format
Ah, yes. Rather on the obscure side (payload data doesn't always start at 2), but there it is. Thanks, Bill - Bill Leal Computer Science and Engineering The Ohio State University 395 Dreese Laboratories 2015 Neil Avenue Columbus, OH 43210-1277 Fax: +1-815-301-8202 -Original Message- From: Ben Buckner [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 5:36 PM To: tinyos-help@Millennium.Berkeley.EDU; [EMAIL PROTECTED] Subject: RE: [Tinyos-help] tmote message format Bill- From the legendary Octavetech protocol document that you linked: P_PACKET_ACK (0x41) - User packet. ACK required. Includes a prefix byte. Receiver must send a P_ACK response with prefix byte as contents. Regards, Ben B. Date: Mon, 23 Apr 2007 13:55:54 -0400 From: Bill Leal [EMAIL PROTECTED] Subject: [Tinyos-help] tmote message format To: tinyos-help@Millennium.Berkeley.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii I'm trying to understand the packet format of a PC app that interacts with a tmote; the format for messages to the tmote seem to contain an additional byte. [...] I think the address (FF FF) should begin with the 9th byte but it is the 10th. What puzzles me is the 4th byte (1C); why is it there? This is different than the packet format I'm getting from the mote: [...] I note that the message type to the mote is ack-requested (41), which perhaps accounts for the extra byte. But I haven't been able to locate any doc on that. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Has anyone installed on Linux? Please reply if you have
Alan, Yep sorry, I sent out an email a while ago and no one replied. So I thought I might try a more generic email just to see if people had successfully installed it on Linux. I am trying to install Tmote Tools CD V2.0.4 (from boomerang). It requires me to run a script found in C:\cygwin\opt\tinyos-1.x\tools\src\mspgcc\ called build-mspgcc When I run this, it cannot find the required files through CVS. I tried searching for these files through google and I found most of them. The only one I am having trouble finding is a file called mspgcc-cvs.tar.gz So I thought if someone did install this file, then they would have a copy of it in their C:\cygwin\opt\tinyos-1.x\tools\src\mspgcc\archive directory. Thanks Keerthi Quoting Alan Medlar [EMAIL PROTECTED]: Could you be less vague? What file? What verion of tinyos? (or boomerang if this is something to do with moteiv)? On 19/04/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I was just wondering if anyone has installed Moteiv's Tmote tools or tinyos on linux. If so, please reply I need a file which I cannot find on the cvs. Regards Keerthi ___ 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] question about includes statement in nc file
yup. But I don't know if there is a reasonable explanation for it. MS Demin Wang wrote: Hi all, I am working under tinyos1.1.15. When I looked at some .nc file, they start with includes Command; includes XCommand;. What do the Command or XCommand represent? Do they represent Command.h, XCommand.h or something else? thanks a lot. Demin ___ 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] Complete Novice Question: Installing TinyOS and Compiling on MacOSX 10.4 for MICA
Are these also in your path? What is the output of which avr-objcopy. If it is in your path what happens when you do lets say make micaz in Blink? On 4/24/07, Greg Turnipseed [EMAIL PROTECTED] wrote: Yes, I have avr-objcopy and avr-gcc installed. They're located in the /usr/local/bin directory. TOSDIR=/Users/greg/Documents/Sources/tinyos-1.x/tos TOSROOT=/users/greg/Documents/Sources/tinyos-1.x These are correct, as far as I can tell. Inside the TOSDIR path are the folders interfaces,lib,platform,sensorboards,system, and types. TOSROOT just points to my tinyos directory, like yours does. MIB520=/dev/tty.usbserial-XBPSJ9TXA MOTECOM=/dev/tty.usbserial-XBPSJ9TXB I'm using the USB version (MIB520), and so I think that part's correct. It's just supposed to point to where the serial port is, correct? What about MOTECOM? What does this mean as far as not being able to find Timer,Leds, etc.? Thanks, Greg Turnipseed ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Has anyone installed on Linux? Please reply if you have
You can install Boomerang for Linux. My recommendation is follow my install guide at http://www.5secondfuse.com/tinyos/install.html. Even if you don't use a Ubuntu variant, if you're Linux savvy you'll see what you need. Not to mention the debs that Stanford makes for TinyOS 2 will work for Boomerang. No need to build a separate msp430 toolchain, etc. Cheers Chad On 4/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Alan, Yep sorry, I sent out an email a while ago and no one replied. So I thought I might try a more generic email just to see if people had successfully installed it on Linux. I am trying to install Tmote Tools CD V2.0.4 (from boomerang). It requires me to run a script found in C:\cygwin\opt\tinyos-1.x\tools\src\mspgcc\ called build-mspgcc When I run this, it cannot find the required files through CVS. I tried searching for these files through google and I found most of them. The only one I am having trouble finding is a file called mspgcc-cvs.tar.gz So I thought if someone did install this file, then they would have a copy of it in their C:\cygwin\opt\tinyos-1.x\tools\src\mspgcc\archive directory. Thanks Keerthi Quoting Alan Medlar [EMAIL PROTECTED]: Could you be less vague? What file? What verion of tinyos? (or boomerang if this is something to do with moteiv)? On 19/04/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I was just wondering if anyone has installed Moteiv's Tmote tools or tinyos on linux. If so, please reply I need a file which I cannot find on the cvs. Regards Keerthi ___ 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 -- Chad @ Home ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help with bootstrapping MSP430
Hello, I am working on developing a mote based on tmote design. I have been able to design, fabricate and assemble the mote. I have powered it up and have tested it initially using the JTAG interface. Everything is working fine and have been able to load Blink on to the mote and run it as well. However,i am facing a small glitch here. I am using JTAG to load the program (main.exe, compiled for my platform) and then using the cont command in gdb to run the program. The program runs only when i run it through gdb and when i disconnect it from JTAG interface and just power up the mote, it doesn't get executed. I have a feeling that my mote is not able to execute a program by itself when powered up and does it have something to do with bsl? Can you please tell me as to what i am missing out here so that i can get my mote working the way it should. Thanks Naveen ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help