Hi Andrey
Thanks to inform about the README file in b6lowpan...
I followed the README file...I want to confirm whether iam right or wrong
what i did
Tossim.patch file is a directory having some 6 files in it
1. ActiveMessageC.nc
2. CpmModelC.nc
3.TossimActiveMessageC.nc
4.TossimRadioMessage.h
5.sf/sim_serial_forwarder
6.sf/sim/SerialActiveMessageC.nc
i copied these file in to
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/lib/tossim
Now if iam trying to simulate the IPBaseStation application using
"sudo make micaz sim" it gives error
[EMAIL PROTECTED]:/opt/tinyos-2.x-contrib/berkeley/b6lowpan/apps/IPBaseStation$
sudo make micaz lowpan
mkdir -p build/micaz
compiling BaseStationC to a micaz binary
ncc -o build/micaz/main.exe -Os -DTINYOS_IP -DPACKET_LINK -DTFRAMES_ENABLED
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/support/sdk/c/lib6lowpan/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/lib/net/b6lowpan/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/lib/net/b6lowpan/interfaces/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/lib/serial/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/chips/cc2420/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/chips/cc2420/interfaces/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/chips/cc2420/packet/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/chips/cc2420/link/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/chips/cc2420/lpl/
-I/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/lib/net/b6lowpan/nwprog/
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/support/sdk/c/lib6lowpan/lib6lowpan.c
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/support/sdk/c/lib6lowpan/lib6lowpanIP.c
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/support/sdk/c/lib6lowpan/lib6lowpanFrag.c
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/support/sdk/c/lib6lowpan/in_cksum.c
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/support/sdk/c/lib6lowpan/ip_malloc.c
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/lib/net/b6lowpan/table.c -Wall
-Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param
max-inline-insns-single=100000 -DCC2420_DEF_CHANNEL=16
-DCC2420_HW_ACKNOWLEDGEMENTS -DTOSH_DATA_LENGTH=102 -DNO_IP_MALLOC
-DIDENT_APPNAME=\"BaseStationC\" -DIDENT_USERNAME=\"root\"
-DIDENT_HOSTNAME=\"xubuntos\" -DIDENT_USERHASH=0xc1b51b4eL
-DIDENT_TIMESTAMP=0x49249994L -DIDENT_UIDHASH=0xb466e557L -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml BaseStationC.nc
-lm
In file included from BaseStationC.nc:91:
In component `BaseStationP':
BaseStationP.nc: In function `radioSendTask.runTask':
BaseStationP.nc:304: `RadioIEEEPacket' undeclared (first use in this
function)
BaseStationP.nc:304: (Each undeclared identifier is reported only once
BaseStationP.nc:304: for each function it appears in.)
BaseStationP.nc:315: `RadioSend' undeclared (first use in this function)
BaseStationP.nc: At top level:
BaseStationP.nc:324: unknown interface `RadioSend'
BaseStationP.nc: In function `ConfigureReceive.receive':
BaseStationP.nc:359: `IPAddress' undeclared (first use in this function)
/opt/tinyos-2.1.0/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-2.x-contrib/berkeley/b6lowpan/tos/chips/cc2420/link/PacketLinkC.nc:59:2:
warning: #warning "*** USING PACKET LINK LAYER"
In component `BaseStationC':
BaseStationC.nc: At top level:
BaseStationC.nc:103: cannot find `RadioSend'
BaseStationC.nc:106: cannot find `RadioIEEEPacket'
make: *** [exe0] Error 1
can someone please explain me where am I going wrong
Thanks And Regards
Neelam Chaubey
On Tue, Nov 18, 2008 at 5:14 PM, Andrey Gursky <[EMAIL PROTECTED]>wrote:
> Neelam,
> there is README about simulation:
> tinyos-2.x-contrib/berkeley/b6lowpan/doc/README-SIM
>
>
> Steve,
> thanks for the new release and first simulations opportunities! I'm
> going on to try it out.
> You mention "blip distribution" in relation with TOSSIM and simulation.
> With Google I couldn't find any relative info about it. Could you tell
> me what is it and maybe some links?
>
> Best wishes,
> Andrey
>
>
>
> Neelam Chaubey wrote:
> >
> > Hi
> >
> > When i give the command as "sudo make micaz sim" after entering the
> UDPEcho
> >
> > [EMAIL PROTECTED]
> :/opt/tinyos-2.x-contrib/berkeley/b6lowpan/apps/UDPEcho$
> > sudo make micaz sim
> > mkdir -p simbuild/micaz
> > placing object files in simbuild/micaz
> > writing XML schema to app.xml
> > compiling UDPEchoC 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\(\) -Wall -Wshadow -Wnesc-all
> > -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
> > -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
> > -Isimbuild/micaz -DCC2420_DEF_CHANNEL=16 -DCC2420_HW_ACKNOWLEDGEMENTS
> > -DTOSH_DATA_LENGTH=102 -DIDENT_APPNAME=\"UDPEchoC\"
> > -DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"xubuntos\"
> > -DIDENT_USERHASH=0xc1b51b4eL -DIDENT_TIMESTAMP=0x4920fa65L
> > -DIDENT_UIDHASH=0x3d00820bL -Wno-nesc-data-race UDPEchoC.nc
> > -fnesc-fnesc-dump=constants -fnesc-dump=typedefs
> > -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
> > UDPEchoC.nc:23:21: error: 6lowpan.h: No such file or directory
> > UDPEchoP.nc:23:24: error: IPDispatch.h: No such file or directory
> > UDPEchoP.nc:24:28: error: router_address.h: No such file or directory
> > UDPEchoP.nc:25:24: error: lib6lowpan.h: No such file or directory
> > UDPEchoP.nc:26:16: error: ip.h: No such file or directory
> > In file included from UDPEchoP.nc:28,
> > from UDPEchoC.nc:29:
> > UDPReport.h:28: syntax error before `ip_statistics_t'
> > UDPReport.h:28: warning: no semicolon at end of struct or union
> > UDPReport.h:29: syntax error before `route'
> > UDPReport.h:30: syntax error before `icmp'
> > UDPReport.h:31: syntax error before `udp'
> > UDPReport.h:32: warning: useless keyword or type name in empty
> declaration
> > UDPReport.h:32: warning: empty declaration
> > UDPEchoP.nc:29:24: error: PrintfUART.h: No such file or directory
> > In file included from UDPEchoC.nc:29:
> > In component `UDPEchoP':
> > UDPEchoP.nc:38: interface UDP not found
> > In file included from UDPEchoC.nc:29:
> > UDPEchoP.nc:45: interface Statistics not found
> > UDPEchoP.nc:45: syntax error before `ip_statistics_t'
> > UDPEchoP.nc:46: syntax error before `route_statistics_t'
> > UDPEchoP.nc:47: syntax error before `icmp_statistics_t'
> > In file included from UDPEchoC.nc:29:
> > UDPEchoP.nc:55: syntax error before `stats'
> > UDPEchoP.nc: In function `Boot.booted':
> > UDPEchoP.nc:63: `IPStats' undeclared (first use in this function)
> > UDPEchoP.nc:63: (Each undeclared identifier is reported only once
> > UDPEchoP.nc:63: for each function it appears in.)
> > UDPEchoP.nc:64: `RouteStats' undeclared (first use in this function)
> > UDPEchoP.nc:65: `ICMPStats' undeclared (first use in this function)
> > UDPEchoP.nc:66: implicit declaration of function `printfUART_init'
> > UDPEchoP.nc:68: `stats' undeclared (first use in this function)
> > UDPEchoP.nc:71: invalid use of undefined type `struct sockaddr_in6'
> > UDPEchoP.nc:71: implicit declaration of function `hton16'
> > UDPEchoP.nc:72: invalid use of undefined type `struct sockaddr_in6'
> > UDPEchoP.nc:72: `router_address' undeclared (first use in this function)
> > UDPEchoP.nc: At top level:
> > UDPEchoP.nc:84: warning: `struct ip_metadata' declared inside parameter
> list
> > UDPEchoP.nc:84: warning: its scope is only this definition or
> declaration,
> > -- UDPEchoP.nc:89: warning: `struct ip_metadata' declared inside
> > parameter list
> > UDPEchoP.nc:89: `recvfrom' is not in interface `Echo'
> > UDPEchoP.nc: In function `Echo.recvfrom':
> > UDPEchoP.nc:90: interface has no command or event named `sendto'
> > UDPEchoP.nc: At top level:
> > UDPEchoP.nc:94: `ip_statistics_t' undeclared here (not in a function)
> > UDPEchoP.nc:94: `route_statistics_t' undeclared here (not in a function)
> > UDPEchoP.nc:95: `icmp_statistics_t' undeclared here (not in a function)
> > UDPEchoP.nc:95: `udp_statistics_t' undeclared here (not in a function)
> > UDPEchoP.nc: In function `StatusTimer.fired':
> > UDPEchoP.nc:105: `stats' undeclared (first use in this function)
> > UDPEchoP.nc:105: wrong type argument to increment
> > UDPEchoP.nc:114: wrong type argument to increment
> > UDPEchoP.nc:117: invalid use of undefined type `struct udp_report'
> > UDPEchoP.nc:117: `IPStats' undeclared (first use in this function)
> > UDPEchoP.nc:117: `ip_statistics_t' undeclared (first use in this
> function)
> > UDPEchoP.nc:118: invalid use of undefined type `struct udp_report'
> > UDPEchoP.nc:118: `RouteStats' undeclared (first use in this function)
> > UDPEchoP.nc:118: `route_statistics_t' undeclared (first use in this
> > function)
> > UDPEchoP.nc:119: invalid use of undefined type `struct udp_report'
> > UDPEchoP.nc:119: `ICMPStats' undeclared (first use in this function)
> > UDPEchoP.nc:119: `icmp_statistics_t' undeclared (first use in this
> function)
> > UDPEchoP.nc:120: invalid use of undefined type `struct udp_report'
> > UDPEchoP.nc:120: `udp_statistics_t' undeclared (first use in this
> function)
> > UDPEchoP.nc:122: interface has no command or event named `sendto'
> > In component `UDPEchoC':
> > UDPEchoC.nc: At top level:
> > UDPEchoC.nc:35: component IPDispatchC not found
> > UDPShellC.nc:23:21: error: 6lowpan.h: No such file or directory
> > UDPShellC.nc:24:28: error: StorageVolumes.h: No such file or directory
> > UDPShellP.nc:23:16: error: ip.h: No such file or directory
> > UDPShellP.nc:24:24: error: IPDispatch.h: No such file or directory
> > UDPShellP.nc:25:18: error: ICMP.h: No such file or directory
> > In file included from UDPShellC.nc:31,
> > from UDPEchoC.nc:50:
> > In component `UDPShellP':
> > UDPShellP.nc:38: interface ICMPPing not found
> > UDPShellP.nc: In function `action_help':
> > UDPShellP.nc:94: interface has no command or event named `sendto'
> > UDPShellP.nc: In function `action_echo':
> > UDPShellP.nc:112: interface has no command or event named `sendto'
> > UDPShellP.nc: In function `action_ping6':
> > UDPShellP.nc:116: `ip6_addr_t' undeclared (first use in this function)
> > UDPShellP.nc:116: syntax error before `dest'
> > UDPShellP.nc:119: implicit declaration of function `inet6_aton'
> > UDPShellP.nc: In function `action_uptime':
> > UDPShellP.nc:188: interface has no command or event named `sendto'
> > UDPShellP.nc: At top level:
> > UDPShellP.nc:232: warning: `struct ip_metadata' declared inside
> > parameter list
> > UDPShellP.nc:232: `recvfrom' is not in interface `UDP'
> > UDPShellP.nc: In function `UDP.recvfrom':
> > UDPShellP.nc:238: sizeof applied to an incomplete type
> > UDPShellP.nc: At top level:
> > UDPShellP.nc:249: syntax error before `source'
> > UDPShellP.nc:249: `pingReply' is not in interface `ICMPPing'
> > UDPShellP.nc: In function `ICMPPing.pingReply':
> > UDPShellP.nc:252: `source' undeclared (first use in this function)
> > UDPShellP.nc:252: subscripted value is neither array nor pointer
> > UDPShellP.nc:252: subscripted value is neither array nor pointer
> > UDPShellP.nc:252: subscripted value is neither array nor pointer
> > UDPShellP.nc:252: subscripted value is neither array nor pointer
> > UDPShellP.nc:253: subscripted value is neither array nor pointer
> > UDPShellP.nc:253: subscripted value is neither array nor pointer
> > UDPShellP.nc:253: subscripted value is neither array nor pointer
> > UDPShellP.nc:253: subscripted value is neither array nor pointer
> > UDPShellP.nc:254: subscripted value is neither array nor pointer
> > UDPShellP.nc:254: subscripted value is neither array nor pointer
> > UDPShellP.nc:254: subscripted value is neither array nor pointer
> > UDPShellP.nc:254: subscripted value is neither array nor pointer
> > UDPShellP.nc:255: subscripted value is neither array nor pointer
> > UDPShellP.nc:255: subscripted value is neither array nor pointer
> > UDPShellP.nc:255: subscripted value is neither array nor pointer
> > UDPShellP.nc:256: `stats' undeclared (first use in this function)
> > UDPShellP.nc:257: interface has no command or event named `sendto'
> > UDPShellP.nc: At top level:
> > UDPShellP.nc:261: `pingDone' is not in interface `ICMPPing'
> > UDPShellP.nc: In function `ICMPPing.pingDone':
> > UDPShellP.nc:264: interface has no command or event named `sendto'
> > In component `UDPShellC':
> > UDPShellC.nc: At top level:
> > UDPShellC.nc:36: component ICMPResponderC not found
> > UDPShellC.nc:37: cannot find `ICMPPing'
> > UDPShellC.nc:47: cannot find `CounterMilli32C'
> > In component `UDPEchoC':
> > UDPEchoC.nc:37: no match
> > UDPEchoC.nc:38: cannot find `UDP'
> > UDPEchoC.nc:39: cannot find `UDP'
> > UDPEchoC.nc:43: cannot find `IPStats'
> > UDPEchoC.nc:44: cannot find `RouteStats'
> > UDPEchoC.nc:45: cannot find `ICMPStats'
> > UDPEchoC.nc:51: cannot find `UDP'
> > make: *** [sim-exe] Error 1
> >
> >
> > can some one please tell me how to eliminate this problem...
> >
> > Thanks in advance....
> >
> >
> > Neelam Chaubey
> > Indrion Technologies
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
--
Neelam Chaubey
Indrion Technologies
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help