Hi,

As far as I got from the forum, LPL is not supported by TOSSIM, you may try
Avrora simulator but that one I believe is not updated for couple of years
as well ...


Regards,


Hamid Rafiei Karkvandi





On Tue, Jul 10, 2012 at 1:36 PM, Hugo Vinicius <[email protected]>wrote:

> I've developed a low power tinyos apllication, but when I tried to
> complile my application in TOSSIM, I got the following errors:
> Is it possible to simulate low power listening in TOSSIM?
>
> user@ubuntu:~/LPOscilloscope/
> Sampler$ make micaz sim
> mkdir -p simbuild/micaz
>   placing object files in simbuild/micaz
>   writing XML schema to app.xml
>   compiling LPOscilloscopeAppC to object file sim.o
> ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
> -fnesc-nido-tosnodes=1000 -fnesc-simulate
> -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
> -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=mts300
> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
> -Isimbuild/micaz -I.. -I../sampleLog -I.. -I../universal_sensors
> -DLOW_POWER_LISTENING -DIDENT_APPNAME=\"LPOscilloscopeA\"
> -DIDENT_USERNAME=\"user\" -DIDENT_HOSTNAME=\"ubuntu\"
> -DIDENT_USERHASH=0x5e211f76L -DIDENT_TIMESTAMP=0x4ffc7c07L
> -DIDENT_UIDHASH=0x25198298L -Wno-nesc-data-race LPOscilloscopeAppC.nc
> -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants
> -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
> -fnesc-dumpfile=app.xml
> In component `LplAMSenderC':
> /opt/tinyos-2.1.1/tos/system/LplAMSenderC.nc:26: no match
> In component `Atm128AdcC':
> /opt/tinyos-2.1.1/tos/chips/atm128/adc/Atm128AdcC.nc:65: no match
> In file included from
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MicDeviceP.nc:41,
>                  from
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MicReadP.nc:14,
>                  from /opt/tinyos-2.1.1/tos/sensorboards/mts300/MicC.nc:41,
>                  from
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/SensorMts300C.nc:55,
>                  from LPOscilloscopeAppC.nc:81:
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:53:
> component arguments must be constants
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:54:
> component arguments must be constants
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:55:
> component arguments must be constants
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:56:
> component arguments must be constants
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:57:
> component arguments must be constants
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:58:
> component arguments must be constants
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:59:
> component arguments must be constants
> In component `HplAtm128InterruptPinP':
> /opt/tinyos-2.1.1/tos/chips/atm128/pins/HplAtm128InterruptC.nc:60:
> component arguments must be constants
> In component `MicDeviceP':
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MicDeviceP.nc:42: component
> Atm128I2CMasterC not found
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MicDeviceP.nc:42: component
> `Atm128I2CMasterC' is not generic
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MicDeviceP.nc:59: no match
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MicDeviceP.nc:60: no match
> In file included from
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MagReadP.nc:49,
>                  from
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MagXC.nc:26,
>                  from
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/SensorMts300C.nc:56,
>                  from LPOscilloscopeAppC.nc:81:
> In component `MagConfigP':
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MagConfigP.nc:29: component
> `Atm128I2CMasterC' is not generic
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MagConfigP.nc:44: no match
> /opt/tinyos-2.1.1/tos/sensorboards/mts300/MagConfigP.nc:45: no match
> In file included from
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:37,
>                  from LPOscilloscopeAppC.nc:86:
> In C file:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:132: syntax error before
> `nx_bool'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:132: warning: no semicolon at
> end of struct or union
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:133: syntax error before `ack'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:134: syntax error before
> `timesync'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: syntax error before `}'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: warning: type defaults to
> `int' in declaration of `cc2420_metadata_t'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: warning: data definition
> has no type or storage class
> In file included from LPOscilloscopeAppC.nc:86:
> In component `CC2420ActiveMessageC':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:53: interface
> CC2420Packet not found
> In file included from LPOscilloscopeAppC.nc:86:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:56: interface
> RadioBackoff not found
> In file included from
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:67,
>                  from LPOscilloscopeAppC.nc:86:
> In component `CC2420RadioC':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:62: component
> CC2420CsmaC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:63: component
> UniqueSendC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:64: component
> UniqueReceiveC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:65: component
> CC2420TinyosNetworkC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:66: component
> CC2420PacketC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:67: component
> CC2420ControlC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:70: component
> DefaultLplC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:78: component
> PacketLinkDummyC not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:81: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:82: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:83: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:84: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:85: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:87: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:88: cannot find `Send'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:89: cannot find
> `Receive'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:90: cannot find
> `ActiveSend'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:91: cannot find
> `ActiveReceive'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:94: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:95: cannot find
> `SubControl'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:98: cannot find
> `SubSend'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:99: cannot find
> `SubSend'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:100: cannot find `Send'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:101: cannot find
> `SubSend'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:104: cannot find
> `SubReceive'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:105: cannot find
> `Receive'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:106: cannot find
> `SubReceive'
> In file included from
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:68,
>                  from LPOscilloscopeAppC.nc:86:
> In component `CC2420ActiveMessageP':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:52: interface
> CC2420PacketBody not found
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:53: interface
> CC2420Config not found
> In file included from
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:68,
>                  from LPOscilloscopeAppC.nc:86:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `RadioResource.granted':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:67: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMSend.send':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:81: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:89: interface
> has no command or event named `getPanAddr'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.destination':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:127: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.source':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:132: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setDestination':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:137: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setSource':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:142: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.type':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:152: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setType':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:157: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.group':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:162: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setGroup':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:167: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.localGroup':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:171: interface
> has no command or event named `getPanAddr'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `Packet.clear':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:177: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:178: interface
> has no command or event named `getMetadata'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `Packet.payloadLength':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:182: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `Packet.setPayloadLength':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:186: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:222: `syncDone'
> is not in interface `CC2420Config'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:228:
> `requestInitialBackoff' is not in interface `SubBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `SubBackoff.requestInitialBackoff':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:229: interface
> has no command or event named `requestInitialBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:229:
> subscripted value is neither array nor pointer
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:233:
> `requestCongestionBackoff' is not in interface `SubBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `SubBackoff.requestCongestionBackoff':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:234: interface
> has no command or event named `requestCongestionBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:234:
> subscripted value is neither array nor pointer
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:237:
> `requestCca' is not in interface `SubBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `SubBackoff.requestCca':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:239: interface
> has no command or event named `requestCca'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:239:
> subscripted value is neither array nor pointer
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:243:
> `setInitialBackoff' is not in interface `RadioBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `RadioBackoff.setInitialBackoff':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:244: interface
> has no command or event named `setInitialBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:251:
> `setCongestionBackoff' is not in interface `RadioBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `RadioBackoff.setCongestionBackoff':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:252: interface
> has no command or event named `setCongestionBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:261: `setCca'
> is not in interface `RadioBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `RadioBackoff.setCca':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:262: interface
> has no command or event named `setCca'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:281:
> `requestInitialBackoff' is not in interface `RadioBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:285:
> `requestCongestionBackoff' is not in interface `RadioBackoff'
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:289:
> `requestCca' is not in interface `RadioBackoff'
> In component `CC2420ActiveMessageC':
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:93: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:94: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:95: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:96: no match
> /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:98: no match
> make: *** [sim-exe] Error 1
>
> best regards,
> Hugo Bitencourt
>
>
>
>
>
>
>
> _______________________________________________
> 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