Tuesday, October 20, 2009

tinyos addendum

note that the Atmel commands sbi() and cbi() work as set bit and clear bit respectively with the arguments the port numbers that need to be set and cleared.

These commands can be used to control the digital I/O on the motes.

TinyOS tutorial

Met with Katie Taller on 09-17-09

Gave her a brief intro to the motes and how to set them up plus transfer the srec file to the motes.

---

  1. Intro to MOTE hardware
  2. Intro to TINYOS installation using xubuntos.
  3. Intro to make and loading
  4. Export motecom = serial@dev/ttyUSB0:57600

    Make micaz

    Make micaz reinstall mib510/dev/ttyUSB0



---

Week 6

This week I read through the book TinyOS Programming (Paperback) by Philip Lew and David Gay. This has helped to shore up some missing expertise in TinyOS programming and I feel that I am now well prepared to fix my multiple channel code that has not been working.

ECS parts ordered

ECS PARTS

LMC6462AIN-ND

Pasted from <http://search.digikey.com/scripts/DkSearch/dksus.dll?lang=en&site=US&WT.z_homepage_link=hp_go_button&KeyWords=LM+C6462A&x=24&y=11>

  • 8 DIP version

863-LM385Z-2.5G

Pasted from <http://www.mouser.com/Search/Refine.aspx?Keyword=LM385Z2.5&Ns=Packaging%7c1&FS=True>

Week 6

During ECS's meeting we concluded that our new potentiostat does not work and will be scrapped.

We have ordered new parts for breadboarding the new potentiostat and will compare this to our old potentiostat which is now working.

The old potentiostat has been put in to the casing for the new potentiostat. It has been tested and now works.

mib 520 mote notes

From Personal One Note notebook:
from TinyOS mailing list

The mib520 appears as two ttyUSB ports, the lower numbered one is for
programming and the higher numbered one is for UART communication. If
you try connecting the serial forwarder to, in your case, /dev/ttyUSB1
it should work.

-August

On 5/12/06, Kan Cai <
kcai at cs.ubc.ca> wrote:
>

> Hi, all:
>
> I had a MIB510 serial board and everything was set up nicely on Ubuntu.
> Recently, I got a MIB520 USB programming board and failed to make it work.
>
> I can use /dev/ttyUSB0 to program the motes correctly. However, it seems
> that my motes are not able to upload information to the computer via the
> USB cable. I am providing the MicaHWVerify testing result as follows. Any
> help would be appreciated!
>
> I am using TinyOS 1.15 and mica2 motes. Thanks in advance!
>
> cheers,
> --ken
>
> --------------------------------------------------------------------------
>
> #echo $MOTECOM
> serial at COM7:57600
>
> # ls -lt /dev/ttyUSB0
> crwxrwxrwx 1 root dialout 188, 0 2006-05-12 22:14 /dev/ttyUSB0
>
> # ls -lt /dev/ttyS6
> lrwxrwxrwx 1 root root 12 2006-05-11 23:59 /dev/ttyS6 -> /dev/ttyUSB0
>
> # ls -lt /dev/COM7
> lrwxrwxrwx 1 root root 10 2006-05-12 08:30 /dev/COM7 -> /dev/ttyS6
>
> # make mica2 install
> compiling MicaHWVerify to a mica2 binary
> ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 -Wall
> -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000
> -fnesc-cfile=build/mica2/app.c MicaHWVerify.nc -lm
> compiled MicaHWVerify to build/mica2/main.exe
> 11738 bytes in ROM
> 450 bytes in RAM
> avr-objcopy --output-target=srec build/mica2/main.exe
> build/mica2/main.srec
> make[1]: Entering directory `/opt/tinyos-1.x/apps/MicaHWVerify'
> installing mica2 binary
> uisp -dprog=mib510 -dserial=/dev/ttyUSB0 -dpart=ATmega128 --wr_fuse_e=ff
> --erase --upload if=build/mica2/main.srec
> Firmware Version: 1.8
> Atmel AVR ATmega128 is found.
> Uploading: flash
>
> Fuse Extended Byte set to 0xff
> make[1]: Leaving directory `/opt/tinyos-1.x/apps/MicaHWVerify'
>
> # java hardware_check
>
> Hardware check started
> serial at COM7:57600: resynchronising
> Node transmission failure
>
>

Week 5



Meeting notes from One Note:

MSDA

  • Did lab safety
  • Run through with jeff
  • Cannot work with benzene because it is carcinogenic.
    • Use ether possibly

  • Mass spec is down
  • Trying to establish lower limit of detection
  • MSDA will work with ECS, calibration of ether.

ECS

  • Power supply is not critical.
  • Look at whether the motes can read battery voltage
    • Look at whether motes adjust for voltage changes.

Mark Johnson e-mail about pspice and availability of cadence.

UPS

-finalized mounting.

Oct 26th is the EPICS open house 5:30 PM