That code is not the one I have recommended. I have no idea how that
works. Miklos

On Tue, Mar 23, 2010 at 7:18 PM, Suzanne Delica <[email protected]> wrote:
> Hey,
>
> I was able to get the proper mts400 drivers from a friend. I "make iris" the
> Root code and it compiled without errors. Now, I am trying to compile the
> Node code and I am getting the following errors. Please help,
>
> Suzannne
>
> --CYGWIN--
> [USERNAME] /opt/tinyos-2.x/apps/antitheft/nodes
> $ make iris
> mkdir -p build/iris
>   compiling AntiTheftAppC to a iris binary
> ncc -o build/iris/main.exe  -Os -I%T/lib/net/ctp -I%T/lib/net
> -I%T/lib/net/4bitl
> e -I%T/lib/net/drip -Wall -Wshadow -Wnesc-all -target=iris
> -fnesc-cfile=build/ir
> is/app.c -board=mts400 -DDEFINED_TOS_AM_GROUP=0x22 --param
> max-inline-insns-sing
> le=100000 -DIDENT_APPNAME=\"AntiTheftAppC\" -DIDENT_USERNAME=\"Suzanne\"
> -DIDENT
> _HOSTNAME=\"universi-5da017\" -DIDENT_USERHASH=0x9c792666L
> -DIDENT_TIMESTAMP=0x4
> ba90369L -DIDENT_UIDHASH=0xc6d66c06L -fnesc-dump=wiring
> -fnesc-dump='interfaces(
> !abstract())' -fnesc-dump='referenced(interfacedefs, components)'
> -fnesc-dumpfil
> e=build/iris/wiring-check.xml AntiTheftAppC.nc -lm
> In file included from
> /opt/tinyos-2.x/tos/sensorboards/mts400/ArbitratedPhotoDev
> iceP.nc:7,
>                from /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoC.nc:22,
>                from AntiTheftAppC.nc:45:
> In component `PhotoTempDeviceC':
> /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoTempDeviceC.nc:13:
> `UQ_PHOTOTEMP_RE
> SOURCE' undeclared here (not in a function)
> In file included from
> /opt/tinyos-2.x/tos/sensorboards/mts400/ArbitratedPhotoDev
> iceP.nc:7,
>                from /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoC.nc:22,
>                from AntiTheftAppC.nc:45:
> /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoTempDeviceC.nc:27:
> `UQ_PHOTOTEMP_RE
> SOURCE' undeclared here (not in a function)
> /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoTempDeviceC.nc:27: argument 1
> to ma
> gic function `unique' is not constant
> /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoTempDeviceC.nc:37:
> `UQ_PHOTOTEMP_RE
> SOURCE' undeclared here (not in a function)
> /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoTempDeviceC.nc:37: argument 1
> to ma
> gic function `unique' is not constant
> /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoTempDeviceC.nc:27: constant
> express
> ion expected
> /opt/tinyos-2.x/tos/sensorboards/mts400/PhotoTempDeviceC.nc:37: constant
> express
> ion expected
> make: *** [exe0] Error 1
>
> --MY Code for PhtoTempDeviceC.nc--
> #include "mts400.h"
>
> configuration PhotoTempDeviceC
> {
>  provides interface Resource as PhotoResource[uint8_t client];
>  provides interface Resource as TempResource[uint8_t client];
>  provides interface Read<uint16_t> as ReadPhoto[uint8_t client];
>  provides interface Read<uint16_t> as ReadTemp[uint8_t client];
> }
> implementation
> {
>  components MicaBusC, PhotoTempP,
>   new RoundRobinArbiterC(UQ_PHOTOTEMP_RESOURCE) as SharingArbiter,
>   new RoundRobinArbiterC(UQ_PHOTO_RESOURCE) as PhotoArbiter,
>   new RoundRobinArbiterC(UQ_TEMP_RESOURCE) as TempArbiter,
>   new SplitControlPowerManagerC() as PhotoPower,
>   new SplitControlPowerManagerC() as TempPower,
>   new PhotoTempControlP() as PhotoControl,
>   new PhotoTempControlP() as TempControl,
>   new TimerMilliC() as WarmupTimer,
>   new AdcReadClientC() as Adc;
>
>  PhotoResource = PhotoArbiter;
>  PhotoPower.ResourceDefaultOwner -> PhotoArbiter;
>  PhotoPower.ArbiterInfo -> PhotoArbiter;
>  PhotoPower.SplitControl -> PhotoControl;
>  PhotoControl.PhotoTempResource ->
> SharingArbiter.Resource[unique(UQ_PHOTOTEMP_RESOURCE)];
>  PhotoControl.Timer -> WarmupTimer;
>  PhotoControl.Power -> MicaBusC.Int1;
>  ReadPhoto = PhotoControl;
>  PhotoControl.ActualRead -> Adc;
>
>  TempResource = TempArbiter;
>  TempPower.ResourceDefaultOwner -> TempArbiter;
>  TempPower.ArbiterInfo -> TempArbiter;
>  TempPower.SplitControl -> TempControl;
>  TempControl.PhotoTempResource ->
> SharingArbiter.Resource[unique(UQ_PHOTOTEMP_RESOURCE)];
>  TempControl.Timer -> WarmupTimer;
>  TempControl.Power -> MicaBusC.Int2;
>  ReadTemp = TempControl;
>  TempControl.ActualRead -> Adc;
>
>  Adc.Atm128AdcConfig -> PhotoTempP;
>  PhotoTempP.PhotoTempAdc -> MicaBusC.Adc1;
> }
> --end code--
>
>
> On Mon Mar 22 16:02:40 EDT 2010, Miklos Maroti <[email protected]>
> wrote:
>
>> You have to install WinCVS first (if you use windows), then search for
>> how to download the CVS version of tinyos from sourceforge (google is
>> your friend). Miklos
>>
>> On Mon, Mar 22, 2010 at 6:31 PM, Suzanne Delica <[email protected]> wrote:
>>>
>>> Also for these projects, shouldni download all files?
>>>
>>> Thank you,
>>> Suzanne
>
>>>
>>> On Mar 22, 2010, at 1:19 PM, Miklos Maroti <[email protected]>
>>> wrote:
>>>
>>>> You have to use CVS to get the latest code from sourceforge (tinyos
>>>> and szte-wsn projects). Miklos
>>>>
>>>> On Mon, Mar 22, 2010 at 4:15 PM, Suzanne Delica <[email protected]>
>>>> wrote:
>>>>>
>>>>>> Hello,
>>>>>
>>>>>> Attached below is some help I have been getting from tinyos-help. I
>>>>>> need
>>>>>> to download the drivers for the mts400 sensor on my iris board. How do
>>>>>> I
>>>>>> do
>>>>>> so? I am using Cygwin. Which files do I need to download also and to
>>>>>> what
>>>>>> directory?
>>>>>>
>>>>>> Thank you for your help,
>>>>>> Suzanne
>
>>>>>>
>>>>>> ??--START OF ATTACHED MESSAGES--
>>>>>> Suzanne,
>>>>>>
>>>>>> Use cvs to check out the corresponding trees, and look for README
>>>>>> files that describe how to set up the drivers. If you run into
>>>>>> problems, send a mail to the mailing list or to the developers of the
>>>>>> drivers directly.
>>>>>>
>>>>>> Janos
>>>>>>
>>>>>> On Mon, Mar 22, 2010 at 9:40 AM, Suzanne Delica <[email protected]>
>>>>>> wrote:
>>>>>>>
>>>>>>> Hello Janos,
>>>>>>>
>>>>>>> How am I suppose to download/install these drivers?
>>>>>>>
>>>>>>> Suzanne
>>>>>>>
>>>>>>>
>>>>>>> On Fri Mar 19 14:17:35 EDT 2010, Janos Sallai
>>>>>>> <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Suzanne,
>>>>>>>>
>>>>>>>> I guess that you don't have the MTS400 set up correctly. It is not
>>>>>>>> supported out of the box in TinyOS 2.1: you will need to get
>>>>>>>> additional drivers from external sources to get it work, and you
>>>>>>>> will
>>>>>>>> need to change the makefile of the antitheft nodes to specify that
>>>>>>>> you're using an MTS400 (the default is MTS300). I am aware of two
>>>>>>>> driver implementations:
>>>>>>>> 1.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/tos/lib/Mts400/
>>>>>>>> 2.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-contrib/mts4x0/
>>>>>>>>
>>>>>>>> Janos
>>>>>>>>
>>>>>>>> On Fri, Mar 19, 2010 at 11:47 AM, Suzanne Delica <[email protected]>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Hello Janos,
>>>>>>>>>
>>>>>>>>> I am using the MTS400 sensors which can monitor Ambient light,
>>>>>>>>> relative
>>>>>>>>> humidity, temperature, 2-axis accelerometer, and barometric
>>>>>>>>> pressure.
>>>>>>>>> Also I made sure to connect the female/male connectors properly
>>>>>>>>> before
>>>>>>>>> I
>>>>>>>>> screwed the motes back together....
>>>>>>>>>
>>>>>>>>> Suzanne
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri Mar 19 12:13:49 EDT 2010, Janos Sallai
>>>>>>>>> <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Suzanne,
>>>>>>>>>>
>>>>>>>>>> Are the sensor boards properly attached to the motes? Are you sure
>>>>>>>>>> that the sensor boards you have are equipped with both the
>>>>>>>>>> accelerometer and the light sensor?
>>>>>>>>>>
>>>>>>>>>> Janos
>>>>>>>>>>
>>>>>>>>>> On Fri, Mar 19, 2010 at 10:31 AM, Suzanne Delica
>>>>>>>>>> <[email protected]>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hello tinyos-help,
>>>>>>>>>>>
>>>>>>>>>>> I am using WinXP/Cygwin, iris motes with a mib520. I was able to
>>>>>>>>>>> compile the antitheft app, program the iris reference board with
>>>>>>>>>>> the root code and 3 other sensor nodes with the node code, and
>>>>>>>>>>> run
>>>>>>>>>>> Serial Forwarder GUI and the Antitheft GUI (with all options
>>>>>>>>>>> checked). However, once I turn on the sensor nodes all the leds
>>>>>>>>>>> are on and the Antitheft GUI keeps listing all the nodes in the
>>>>>>>>>>> window (i am assuming it is detecting all the nodes as stolen). I
>>>>>>>>>>> tried putting one sensor node in a drawer to signify it is stolen
>>>>>>>>>>> (no light), but the Antitheft GUI still detects all as stolen and
>>>>>>>>>>> in another trial (pressed update and starting over) packets are
>>>>>>>>>>> being read but no packets are written (Serial Forwarder GUI). The
>>>>>>>>>>> leds lights are all on in this case also.
>>>>>>>>>>> Two questions:
>>>>>>>>>>> 1. Any suggestions?
>>>>>>>>>>> 2. Which COM port should I use? I was using COM4 (to communicate
>>>>>>>>>>> with the nodes via the reference node which is connected through
>>>>>>>>>>> USB via the programming board; COM3 is used to program the iris).
>>>>>>>>>>> Should I be using the gateway to communicate instead? Which is
>>>>>>>>>>> COM6
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>> Suzanne
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Tinyos-help mailing list
>>>>>>>>>>> [email protected]
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>
>
>
>
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to