[Smac-users] Snooper in Cygwin
Norbert Lagos
norbertl at gmail.com
Fri Oct 21 21:26:10 PDT 2005
Thank you, the below approach worked well. I have also switched to the
latest build of S-MAC,
Thanks,
Norbert
On 9/7/05, Wei Ye <weiye at isi.edu> wrote:
> Some people have reported the snooper problem over Cygwin in Windows --
> the snoop.c runs but doesn't show any packets. The problem doesn't
> happen in Linux. Today I had a chance to test the snooper in Cygwin, and
> saw the same problem. It seems that the baud rate of the serial port is
> not correctly set. Here's a workaround that works for me.
>
> Open the HyperTerminal, and use it to set the baud rate of the serial
> port that you're using. For Mica2, the baud rate is 57600 (b/s). After
> you set it, the HyperTerminal is connected to the serial port. Now turn
> on a mote that sends packets (e.g., PhyTestSender), the HyperTerminal
> should receive some garbage bytes -- indicating data has passed over the
> serial port. Now turn off the HyperTerminal and run snoop.c again. It
> should work correctly.
>
> BTW, if you're still using S-MAC v1.1, I strongly encourage you to
> switch to S-MAC v1.2 or the latest version from TinyOS CVS.
>
> -Wei
>
> On Tue, 2005-09-06 at 08:30 -0400, Norbert Lagos wrote:
> > Thank You for your answer. I have resolved the issue and the problem
> > lied in the makefile. I am running tinyOS 1.1.7 with s-mac version
> > 1.1..
> > Currently I am having another issue where the Snooper application is
> > not receiving any data from phy_test_sender or phy_test_reciever. I
> > compiled it and it does seem to be running but there is no data
> > displayed, I assume the motes are sending/receiving since the LED's do
> > blink. I have looked over your getting started guide as well as the
> > message board but could not find any answers.
> >
> > Thanks,
> >
> > Norbert
> >
> > On 8/30/05, Wei Ye <weiye at isi.edu> wrote:
> > > It looks like you didn't include apps/Makesmac, which defines include
> > > directories. Which version of TinyOS are you running?
> > >
> > > -Wei
> > >
> > > On Mon, 2005-08-22 at 04:24 -0500, Norbert Lagos wrote:
> > > > Hello,
> > > >
> > > > I am trying to install SMAC on a mica2 mote and are having a problem
> > > > with compiling any applications. The below is an example of SMACTest.
> > > > I am using all default options with the s-mac directory present in
> > > > ../contrib. The s-mac install is the default that comes with a TinyOS
> > > > distribution. Thanks for any help,
> > > >
> > > > Norbert
> > > >
> > > > $ make mica2
> > > > compiling SMACTest to a mica2 binary
> > > > ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 -Wall -Wshadow -DDE
> > > > F_TOS_AM_GROUP=0x81 -Wall -finline-limit=100000 -fnesc-cfile=build/mica2/app.c -
> > > > DCC1K_DEFAULT_FREQ=CC1K_433_002_MHZ -DRADIO_XMIT_POWER=0xFF SMACTest.nc -lm
> > > > testMsg.h:10:21: SMACMsg.h: No such file or directory
> > > > SMACTest.nc:39: failed to preprocess testMsg.h
> > > > SMACTestM.nc:43: interface MACComm not found
> > > > C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc:51: expected int
> > > > erface `MACComm', but got interface 'HPLInit'
> > > > SMACTestM.nc:44: interface MACTest not found
> > > > C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc:51: expected int
> > > > erface `MACTest', but got interface 'HPLInit'
> > > > SMACTestM.nc:71: syntax error before `dataPkt'
> > > > SMACTestM.nc: In function `sendMsg':
> > > > SMACTestM.nc:126: `dataPkt' undeclared (first use in this function)
> > > > SMACTestM.nc:126: (Each undeclared identifier is reported only once
> > > > SMACTestM.nc:126: for each function it appears in.)
> > > > SMACTestM.nc:127: subscripted value is neither array nor pointer
> > > > SMACTestM.nc:128: subscripted value is neither array nor pointer
> > > > SMACTestM.nc:129: subscripted value is neither array nor pointer
> > > > SMACTestM.nc:130: subscripted value is neither array nor pointer
> > > > SMACTestM.nc:131: subscripted value is neither array nor pointer
> > > > SMACTestM.nc:132: subscripted value is neither array nor pointer
> > > > SMACTestM.nc:135: interface has no command or event named `broadcastMsg'
> > > > SMACTestM.nc:140: interface has no command or event named `unicastMsg'
> > > > SMACTestM.nc: At top level:
> > > > SMACTestM.nc:149: `clockFire' is not in interface `MACTest'
> > > > SMACTestM.nc:161: `MACSleep' is not in interface `MACTest'
> > > > SMACTestM.nc:167: `MACWakeup' is not in interface `MACTest'
> > > > SMACTestM.nc:173: `broadcastDone' is not in interface `MACComm'
> > > > SMACTestM.nc:192: `txFragDone' is not in interface `MACComm'
> > > > SMACTestM.nc: In function `MACComm.txFragDone':
> > > > SMACTestM.nc:196: interface has no command or event named `txNextFrag'
> > > > SMACTestM.nc:196: `dataPkt' undeclared (first use in this function)
> > > > SMACTestM.nc: At top level:
> > > > SMACTestM.nc:203: `unicastDone' is not in interface `MACComm'
> > > > SMACTestM.nc:220: `rxMsgDone' is not in interface `MACComm'
> > > > SMACTestM.nc: In function `MACComm.rxMsgDone':
> > > > SMACTestM.nc:221: `AppPkt' undeclared (first use in this function)
> > > > $
> > > > SMACTestM.nc:222: parse error before `)'
> > > > SMACTestM.nc:224: `MACHeader' undeclared (first use in this function)
> > > > SMACTestM.nc:224: parse error before `)'
> > > > SMACTestM.nc:224: `TOS_BCAST_ADDR' undeclared (first use in this function)
> > > > SMACTest.nc: At top level:
> > > > SMACTest.nc:45: component SMAC not found
> > > > SMACTestM.nc:38: expected component `SMAC', but got component 'SMACTestM'
> > > > SMACTest.nc:48: no match
> > > > SMACTest.nc:49: no match
> > > > SMACTest.nc:50: no match
> > > > make: *** [build/mica2/main.exe] Error 1
> > > > _______________________________________________
> > > > Smac-users mailing list
> > > > Smac-users at mailman.isi.edu
> > > > http://mailman.isi.edu/mailman/listinfo/smac-users
> > >
> > >
>
>
More information about the Smac-users
mailing list