Hi mike, Thank you for your detailed help. Now it works fine. With the virtual machine I can read the data from the sensor over the span platform.
Now I have the next problem and I hope you can help me further. For my project it is necessary that I have to run this program on my main Mac OS. But if i connect the shimmer span to my mac os I can't see a serial usb port for the span like dev/ttyUSB0 or tty.usbserial-FTT ports. Do you know this problem? Do I need install driver for the span? Andre > Hi Andre, > > There are a few potential problems: > > 1. If you look at the code in SimpleAccelGyroC.nc you will see that the > shimmer is only transmitting data to a particular address (i.e. the > BASE_STATION_ADDRESS you mentioned). When you install BaseStation on a Span > the default address is 1. To set the Spans address to match > BASE_STATION_ADDRESS (i.e. 0) you need to set it explicitly. I.e.: > make span install,0 bsl,/dev/ttyUSB0 > So the value after "install," is the new address > > 2. Again if you look at the code for SimpleAccelGyro you will notice that it > is sending long packets (100 bytes). This is greater than the TinyOS default. > To allow BaseStation to handle these longer packets you need to add the > following line to the Makefile for the BaseStation app before building it: > CFLAGS+=-DTOSH_DATA_LENGTH=100 > > 3. Are you sure you are pointing to the correct USB serial port? What port > are you using to program the Span? If it is /dev/ttyUSB0 then you should > probably be pointing the simpleAccelGyro.py python script to /dev/ttyUSB1. > The Span (and shimmer dock) have two serial ports. One for programming, one > for communication. Normally the higher numbered port for the device is used > for communication. You might want to check your dmesg output if you can't > find which port to use (as other devices on your machine might be impacting > it). > > 4. Are you sure the Shimmer (running the SimpleAccelGyro app) is still > transmitting. If you look at the code for SimpleAccelGyroC.nc you should > notice that if the shimmer doesn't move for 10 second then the device will > stop transmitting (as detected using the passive tilt switch). As long as the > green LED on the shimmer is toggling then you should be OK. > > Mike > > > On Mon, Mar 4, 2013 at 9:23 PM, Andre Hoffmeyer <[email protected]> > wrote: > Hi mike, > > okay i install the simpleaccelgyro on the shimmer and try to connect with the > Python script in the folder. I try any usb port /dev/ttys001 2 3 or 4 and > nothing happened. Do I have to configure anything. I read in the > SimpleAccelGyro.h about a BASE_STATION_ADDRESS. Maybe i have to put here a > number from the span? > > greetings andre > >> Hi Andre, >> >> If you take a look at the comment at the comment at the start of >> SimpleAccelC.nc, you will notice that this application transmits the data >> over Bluetooth, not the 802.15.4 radio (as used byt the Span). So to make >> use of the simpleAccel.py script you will need to pair the shimmer with your >> PC and use the Bluetooth serial port. >> >> Take a look at SimpleAccelGyro for an 802.15.4 example (and so will >> communicate with a Span running BaseStation): >> http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-contrib/shimmer/apps/SimpleAccelGyro/ >> >> Mike >> >> >> >> On Sun, Mar 3, 2013 at 9:19 PM, Andre Hoffmeyer <[email protected]> >> wrote: >> Hi Mike, >> >> thanks for help. You were right. My code base was totally outdated. Now I >> updated everything and it works fine. Perhaps you can help me further. >> >> I did the following step. (I use a mac and the vmwarefusion player for >> developing) >> >> I installed the tinyos-main/apps/BaseStation on my your span >> it works. >> >> Then I installed tinyos-2.x-contrib/shimmer/apps/SimpleAccel >> it works too. >> >> After that I pointed out the simpleAccel.py script with the serial port from >> the span but nothing happened. I saw nothing at the console. >> >> Do you have any ideas? >> >> Best regards, >> >> Andre >> >>> Hi Andre, >>> >>> Firstly the Googlecode SVN repository is now deprecated. The home for the >>> currently active development tree is Github: >>> https://github.com/tinyos/tinyos-main >>> It is probably worth changing to this. >>> >>> Most likely your problem is with the version of msp430-gcc that you are >>> using. To check this type "msp430-gcc -v" at the command line. I suspect >>> you are still using version 4.3.3. You will need to upgrade to version >>> 4.6.3. >>> >>> The easiest way to do this is probably to use the debian packages: >>> http://tinyprod.net/debian-dev/README-46.html (not sure if these are the >>> latest instructions, but Eric should be able to correct me if not). >>> >>> See here for some more info: >>> http://www.mail-archive.com/[email protected]/msg00411.html >>> >>> Mike >>> >>> >>> >>> On Wed, Feb 27, 2013 at 7:40 AM, Andre Hoffmeyer <[email protected]> >>> wrote: >>> I use the tinyOS version that i bought with the shimmer sensor. Before I >>> started to use it I update (cvs update and svn update) all source trees. Is >>> there a possibility to check the version in the console? >>> >>> >>> -------- Original-Nachricht -------- >>> > Datum: Tue, 26 Feb 2013 16:28:56 -0800 >>> > Von: Eric Decker <[email protected]> >>> > An: Andre Hoffmeyer <[email protected]> >>> > CC: [email protected] >>> > Betreff: Re: [Shimmer-users] problems to make/install a program >>> >>> > What version of TinyOS do you have installed? Where did you get it? >>> > >>> > What msp430 toolchain are you using? >>> > >>> > >>> > >>> > On Tue, Feb 26, 2013 at 12:26 PM, Andre Hoffmeyer >>> > <[email protected]>wrote: >>> > >>> > > Hi at all, >>> > > >>> > > I just started programming shimmer sensors and i have a little problem >>> > > what I think for you it is easy to solve. >>> > > >>> > > I use the vmware player and the shimmer tiny2 development environment. >>> > > >>> > > If I want to make or install the >>> > > tinyos-2.x-contrib/shimmer/apps/SimpleAccelGyro I get this error and I >>> > > don't know why. >>> > > >>> > > In component `HplMsp430Usart1C': >>> > > /home/tiny2/tinyos-main/tos/chips/msp430/usart/HplMsp430Usart1C.nc: At >>> > top >>> > > level: >>> > > /home/tiny2/tinyos-main/tos/chips/msp430/usart/HplMsp430Usart1C.nc:91: >>> > > cannot find `SIMO1' >>> > > /home/tiny2/tinyos-main/tos/chips/msp430/usart/HplMsp430Usart1C.nc:92: >>> > > cannot find `SOMI1' >>> > > /home/tiny2/tinyos-main/tos/chips/msp430/usart/HplMsp430Usart1C.nc:93: >>> > > cannot find `UCLK1' >>> > > /home/tiny2/tinyos-main/tos/chips/msp430/usart/HplMsp430Usart1C.nc:94: >>> > > cannot find `URXD1' >>> > > /home/tiny2/tinyos-main/tos/chips/msp430/usart/HplMsp430Usart1C.nc:95: >>> > > cannot find `UTXD1' >>> > > /home/tiny2/tinyos-main/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: >>> > > #warning "*** LOW POWER COMMUNICATIONS DISABLED ***" >>> > > make: *** [exe0] Error 1 >>> > > >>> > > I hope you can help or give me a little advice. >>> > > >>> > > I am looking forward to your answer >>> > > >>> > > Best regards, >>> > > >>> > > Andre >>> > > >>> > > >>> > > _______________________________________________ >>> > > Shimmer-users mailing list >>> > > [email protected] >>> > > https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users >>> > > >>> > >>> > >>> > >>> > -- >>> > Eric B. Decker >>> > Senior (over 50 :-) Researcher >>> _______________________________________________ >>> Shimmer-users mailing list >>> [email protected] >>> https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users >>> >> >> > >
_______________________________________________ Shimmer-users mailing list [email protected] https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
