What is TinyOS
TinyOS operating system is essentially a collection of microcontroller and other IC drivers, core libraries, and higher-level application stacks that must be compiled with application specific code to load onto hardware platforms. Therefore, you must have a copy of the TinyOS source to compile these applications again.
What is Telosb
TelosB is a mote from Memsic (old Crossbow) technology. This mote has the same designed as the Tmote Sky mote from Sentilla.
It is composed of the (the ) microcontroller and the radio chip. The microcontroller of this mote operates at 4.15 MHz and has a 10 kBytes internal RAM and a 48 kBytes program Flash memory.
The RF output power of the Telos module from the CC2420 radio is below -8dBm. For this test, the Telos module is transmitting at 2.405GHz (IEEE 802.15.4 channel 11) using the O-QPSK modulation with DSSS. The CC2420 programmed output power is set to 0 dBm. The measured output power of the entire modulated spectrum is 2.4 dBm.
Steps for installation
Install Java
If you print on terminal
java -version
You might know you have install openJDK in advance
如果你只是普通用户,运行java程序而已,openjava足矣,如果你是搞java开发的,老老实实用sun-java
openJDK is good for usage. However, it is not enough for development.
Therefore, you have to install
# Result for java -versionjava version "1.8.0_201"Java(TM) SE Runtime Environment (build 1.8.0_201-b09)Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
Install TinyOS
- Follow the instruction of or
- Use the command below to know the package meaning:
apt search tinyos-tools
- There are two important component you ought to install:
- nesc : This is the nesC compiler used to compile TinyOS applications, includes support
- tinyos-tools: Development-tools for TinyOS
- Here are two component optional for installation
- msp430-46(For Telosb):
- avr-tinyos(optional):
- Get the TinyOS source code
- Add environment variables to your shell
- Access the serial ports
sudo gpasswd -a labuser dialout# to see if you are in the right groupgroups labuser