temperature demo on raven/contiki

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ref: Running Contiki with uIPv6 and SICSlowpan support on Atmel RAVEN hardware [Tutorials]
http://dak664.github.com/contiki...

I'm following this tutorial and have successfully loaded the .elf files into the raven & usbstick. The Win7 driver works OK, as well.

The raven boots OK and using the joystick, I selected the temp menu to show the correct temperature on the LCD.

ipconfig gives:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\>ipconfig
Windows IP Configuration
Wireless LAN adapter Wireless Network Connection 2:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Wireless Network Connection:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : gateway.2wire.net

Ethernet adapter Local Area Connection:
   Connection-specific DNS Suffix  . : gateway.2wire.net
   Link-local IPv6 Address . . . . . : fe80::e4cc:7483:77ca:c2fd%11
   IPv4 Address. . . . . . . . . . . : 192.168.1.69
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.254

Ethernet adapter VirtualBox Host-Only Network:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::f93e:37b7:f35b:5fc%19
   IPv4 Address. . . . . . . . . . . : 192.168.56.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::bc6c:6e8:e74e:edd5%22
   IPv4 Address. . . . . . . . . . . : 192.168.144.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet8:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::dccc:c007:bb33:3906%24
   IPv4 Address. . . . . . . . . . . : 192.168.80.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Tunnel adapter isatap.{45682CC6-B3B0-47E1-9123-AE834DB8671A}:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter Local Area Connection* 9:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter isatap.{321F1F36-1903-4A11-A31D-8DF86D7C45AA}:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter isatap.{68163D2F-49B1-4CE8-A5CA-D2E29B4D71F1}:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter isatap.gateway.2wire.net:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : gateway.2wire.net

Tunnel adapter isatap.{0502009B-0C17-4BFD-8E53-2EF3036065AD}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

C:\>

I want to display the temp reading in a browser but the instructions just give ping.

Any suggestions are welcome.
Thanks in advance.

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

Last Edited: Fri. Oct 16, 2015 - 02:16 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I dont see the Jackdaw enumeration, also no indication of ipv6 on your windows host. Both of those are essential.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for your rapid reply!
Maybe the VMware captured the usb stick and didn't show up. I need to close that to let Win7 capture it.
I'll try, again.

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, I checked the Windows driver and found it needed to be re-installed.
When I plug-in the jackdaw it now enums as COM8. I opened a serial port monitor and setup 9600,8,n,1.
The raven is set to TEMP F ( 72 degrees now) but no serial data is rec'd by the jackdaw.

I'm looking at your comment on ipv6. I tried ipv6 install in a win_command window but the error was 'not such command'.

Your insight will help me get unstuck.
Thanks again.

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My jackdaw shows up on Windows7 as

Quote:
ipconfig /all
Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Atmel RAVEN USB Stick
Physical Address. . . . . . . . . : 02-12-13-14-15-16
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::c908:3fcf:9dcf:4988%20(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.73.136(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 268571155
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-14-F4-BC-AF-1C-75-08-89-52-F4

On second look, you do have ipv6 link local addresses on some interfaces. XP had that turned off by default. If the jackdaw network interface shows up, disable all the protocols other than ipv6. Run wireshark to capture packets on that interface. Enter 'r' in the jackdaw menu to report raw packets, then boot the raven. The jackdaw should report the startup raven NS packets. Try short pings to the raven, then increase to 1200 bytes to test 6lowpan fragmentation. Then try the web page load.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for your help.
I installed wireshark on WIN_7.64 bit, then opened the Capture Interfaces dialog and took a screencapture, as shown below. The jackdaw is not listed. I checked the Devices and Printers to be sure it enums as COM8 and it does. Your advice is appreciated.

Attachment(s): 

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is a composite device and should enumerate as both an RNDIS network interface and the COM port. Check the device manager for a ? device and point to the rndis inf file for it.

Another possibility is that the process that connects to the com port is blocking the rndis enumeration. Quit any terminal program that was connected to the stick before replugging.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What was I thinking! Don't point to the .inf file directly, that will bypass the VID/PID check and posssibly mess up your Windows networking.

Copy the RNDIS inf file to a new folder and let Windows search the folder for the VID/PID match.

That Wireshark dialog suggests you have turned off ip4 on all interfaces? Not necessary, just turn it off on the jackdaw interface, along with all the other Windows protocols. The jackdaw will ignore anything not ipv6, but those packets still flood the USB interface. With ipv6 only you still get Peer Name Resolution Protocol packets encapsulated in ipv6. That service can be turned off, see https://github.com/contiki-os/co...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
It is a composite device and should enumerate as both an RNDIS network interface and the COM port. Check the device manager for a ? device and point to the rndis inf file for it.

You are correct, the RNDIS is not working. The jackdaw inf file needs to the installed, if I can find it.

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the link. I copied the file dak RAVENUSB_RNDIS_64bit.inf into NotePad++ and saved it as that filename. It installed into the USB stick and the Devices and Printers recognized it OK.

I started Wireshark and have the Raven USB shown, as in this screencapture below;

I get packets and unsure how to decode for Temp F degrees with demo running on a Raven.

Thanks in advance for your patience with my learning curve.

Attachment(s): 

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Run wireshark to capture packets on that interface. Enter 'r' in the jackdaw menu to report raw packets, then boot the raven. The jackdaw should report the startup raven NS packets. Try short pings to the raven, then increase to 1200 bytes to test 6lowpan fragmentation. Then try the web page load.

I'm trying this with Wireshark but some more info would be helpful.
Thanks!

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************