This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lab7 [2018/12/23 15:13] dan.tudose [Hello World] |
lab7 [2018/12/23 15:19] (current) dan.tudose [Ping] |
||
---|---|---|---|
Line 13: | Line 13: | ||
You need to download a special fork of Contiki to try these changes out. Open a Terminal, and then: | You need to download a special fork of Contiki to try these changes out. Open a Terminal, and then: | ||
- | < | + | < |
$ git clone https:// | $ git clone https:// | ||
$ cd contiki-sparrow/ | $ cd contiki-sparrow/ | ||
Line 22: | Line 22: | ||
Open a Terminal, and type these: | Open a Terminal, and type these: | ||
- | < | + | < |
$ sed -i '/ | $ sed -i '/ | ||
$ sudo aptitude update | $ sudo aptitude update | ||
Line 35: | Line 35: | ||
Connect the Sparrow board to your computer through USB. Once this is done, you'll likely see a new //ttyUSB// port appear in ///dev//. In the folder /// | Connect the Sparrow board to your computer through USB. Once this is done, you'll likely see a new //ttyUSB// port appear in ///dev//. In the folder /// | ||
- | < | + | < |
==== MAC Address / Node Number ==== | ==== MAC Address / Node Number ==== | ||
Line 51: | Line 51: | ||
It uses the same first 7 bytes, and lets you choose a different number for the last. From this point forward, we will refer to that last digit of the MAC address as the "Node number" | It uses the same first 7 bytes, and lets you choose a different number for the last. From this point forward, we will refer to that last digit of the MAC address as the "Node number" | ||
- | < | + | < |
$ make NODE=3 AVRDUDE_PORT=/ | $ make NODE=3 AVRDUDE_PORT=/ | ||
Line 80: | Line 80: | ||
Now that we know the node itself is working and printing OK, we want to make sure two nodes can talk. The best way to do this is with a ping. | Now that we know the node itself is working and printing OK, we want to make sure two nodes can talk. The best way to do this is with a ping. | ||
- | This requires two nodes. If you already have hello-world on one node, the easiest thing to do is to put ping-ipv6 on a second node, and ping the other. So for this example, say we already have hello-world working on node 3 on / | + | This requires two nodes. If you already have hello-world on one node, the easiest thing to do is to put //ping-ipv6// on a second node, and ping the other. So for this example, say we already have //hello-world// working on node 3 on /// |
- | < | + | We'll connect a second node to the computer, and presume it's connected to /// |
+ | |||
+ | < | ||
$ make upload AVRDUDE_PORT=/ | $ make upload AVRDUDE_PORT=/ | ||
$ make login AVRDUDE_PORT=/ | $ make login AVRDUDE_PORT=/ |