access to a mac to test with.
based python scripts. I don't recall having any issue seeing the serial
port. However one thing you could try doing is installing the FTDI driver
Post by Andre HoffmeyerHi 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,
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
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
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
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
http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-contrib/shimmer/apps/SimpleAccelGyro/
Mike
Post by Andre HoffmeyerHi 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
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.
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).
Mike
Post by Andre HoffmeyerI 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
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
Post by Andre HoffmeyerHi at all,
I just started programming shimmer sensors and i have a little
problem
Post by Andre Hoffmeyerwhat I think for you it is easy to solve.
I use the vmware player and the shimmer tiny2 development
environment.
Post by Andre HoffmeyerIf I want to make or install the
tinyos-2.x-contrib/shimmer/apps/SimpleAccelGyro I get this error
and I
At
top
Post by Andre Hoffmeyercannot find `SIMO1'
cannot find `SOMI1'
cannot find `UCLK1'
cannot find `URXD1'
cannot find `UTXD1'
#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
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
--
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Shimmer-users mailing list
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users