Mainpage:Apps

From Zolertia

Jump to: navigation, search

Contents


Useful applications and information

Wireshark

Install wireshark from sources.




Add a Z1 mote to udev known devices

This comes handy when working with the same Z1 motes, for example if using one as a BaseStation inside a Gateway, or in a testbed in which you will surely have many Z1 motes connected through an USB hub, and it results cumbersome to inspect which port the motes are assigned in order to connect to a serial client like putty or so.

  • First connect a Z1 mote and run:
dmesg | grep ttyUSB
  • Take note of the port (ttyUSBx) and run the following command (assuming ttyUSB0):
udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0) | grep "ATTRS{serial}"
  • With the serial number we create a rule file in /etc/udev/rules.d/ , for example 99-zolertia-usb.rules (99 means the priority number, we gave it a low priority):
KERNEL=="ttyUSB[0-9]*" , SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4" , ATTRS{idProduct}=="ea60" , ATTRS{product}=="Zolertia Z1" , ATTRS{serial}=="Z1RC0158", SYMLINK+="Z1BS"
  • Then when you run ls /dev/Z1BS you will see the mote listed.


If you don't want to identify each mote, but just know when ANY z1 mote is connected, ditch the {serial} argument.


Using BSL scripts

Use either z1-bsl, z1-bsl-nopic (Contiki), tos-bsl (if you are using the latest version of TinyOS in main trunk, or downloaded the latest 2.1.1 tarball from our repository, see [Mainpage:TOS|Instructions here]).

  • To restart the mote:
z1-bsl --z1 -r
  • To upload an .ihex image to a mote in /dev/ttyUSB0
z1-bsl --z1 -c /dev/ttyUSB0 -e -I -p file.ihex
Personal tools
Navigation
MansOS Support
General guides and apps
Assistance