This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need help wth TI Contiki-6LOWPAN Samples

Hi,


I need some "hands on" help with these TI Contiki-6LoWPAN samples:
processors.wiki.ti.com/.../Contiki-6LOWPAN

If you are situated in the south of Germany, i would be glad to pay you for a one day "Workshop"
where we get these samples up and running.

I will bring my Computers and the TI-Hardware needed.

Please send a Mail to "stefan.kuehn [at] gmx [dot] net"

Best Rgds
Stefan

  • Stefan,

    How can we help online? What are your issues?

    Jonas

  • Hi Jonas,

    thank you very much for your reply.

    My problem ist, that I have developed Software for many years now, but not "embedded" ;-)

    I tried to follow this sample http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples
    but I couldn't quite follow at the end...

    Even though it would be possible to sort it out online, i this it would be to tedious.

    Perhaps I'm missing some basic knowledege here and there and thought i could save
    some time paying a consultant for a one day workshop.

    If I don't find a consultant to hier, I'l get back to your offer :-)

    Thanks a lot!

    Best
    Rgds

    PS. "Jonas" låter väldigt svenskt... ;-)
    Jag träffade Joakim Lindh, nyligen här på en mässa i Nürnberg.

  • Hej Stefan,

    Some companies to checkout that might be able to help you out;

    - Zolertia, www.zolertia.com
    - Weptech, https://www.weptech.de/en.html
    - Thingsquare, www.thingsquare.com

    Another great source of information is the Contiki mailing list: www.contiki-os.org/support.html

    btw yes - jag är svensk, ska hälsa Jocke :)

    /Jonas
  • Hi Jonas,

    last weekend i talked to someone who got me up and running.
    However we had an issue with the routing. Perhaps you can give us a hint, even if it's not
    really a "ti hardware issue".

    The problem was, that the routes on the "mesh side" of the edge router (aaaa::) wherent
    "broadcasted" automatically to the computers in the network. Hence the sensor nodes wheren't reachable.
    We hat to add the route manually ("route add ...").

    We had this issue on a Mac (using Yosemite) as well as Ubuntu. Both native installed (not in a VM).

    As my friends Debian computer didn't have this issue, i don't thing it's a 6lbr config issue...

    Any hint?

    Hälsninger från Bayern :-)
    Stefan Kühn
  • Hello,

    The routes is not broadcasted, but there need to be a route to the aaaa::/64 prefixed devices. In Router mode, the WSN subnet has a different prefix than the Ethernet subnet. By default the WSN subnet has prefix aaaa::/64 and Ethernet subnet has bbbb::/64.

    Have you looked at this wiki: github.com/.../6LBR-Connection

    It explains that the PCs etc you connect on the bbbb::/64 side need to be configured according to the OS they run.

    On Linux, if your network interface is eth0 :

    sysctl -w net.ipv6.conf.eth0.accept_ra=1
    sysctl -w net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64

    On MacOS-X :

    sysctl -w net.inet6.ip6.accept_rtadv=1
    route add -inet6 -prefixlen 64 aaaa:: bbbb::100
    Note that route must be manually added.

    On Windows 7 and forwards, RA are accepted by default.


    I think this information will solve your issue!

    Jonas
  • Thank you very much Jonas!

    //Stefan
  • I have updated the wiki (processors.wiki.ti.com/.../Cc26xx_sw_examples) to make it more clear.
  • That's geat Jonas!

    Thanx!

    Now that i have it all up and running i ordered some more sensortags and a sensornode dev pack,

    so that  i have something more to play with ;-)

    Btw, i assume you need the Dev Pack in order to flash the sensortag with Contiki.

    The battery coin doesent seem to deliver enough juice.

    //Stefan

  • For development and experiments you can use 2 xx AAA alkaline or other power source

    as shown here http://www.ti.com/ww/en/wireless_connectivity/sensortag2015/?INTC=SensorTag&HQS=sensortag

  • Tanks for the hint!
    But as far as i can see the one with 2xAAA batteries aren't on sale yet.
    Right?
  • Hi Stefan,

    I am waiting for a Devpack-Solar to be available as well for that and other reasons.

    Currently I have an eZ430 Battery board soldered with 2 wires into sensortag.

    Remove the button battery and solder into 2 big pads marked B+ and B-

    Alternatively use any 2 x AAA battery holder.

    Hope this will help.

    Jan

  • Yes, SensorTag with 2xAAA batteries is not yet on sale.
  • The coin cell should give you approx 450 hours in idle mode (no traffic, just idling) running Contiki with default settings (ContikiMAC 8Hz channel check rate).

    You can flash the tag via the debugger on the SmartRF06EB, by connecting them via the small JTAG cable. (Make sure the EM slot is unpopulated on the EB)

    Jonas

  • Thanks for the hint Jonas!

    I connected the SmartRF06EB as shown in the picture below.

    I succeded in reading out the memory content from the sensortag 2.

    I have also succeded in flashing the SmartRF06EB and reading out the data, setting the leds and so on using COAP.
    => The sample "cc26xx-web-demo" described here: processors.wiki.ti.com/.../Cc26xx_sw_examples
    => build with "make cc26xx-demo.bin" in "Instant Contiki"

    I have also succeded in compiling and flashing the the example above for the Sensortag2 using
    => "make BOARD=sensortag cc26xx-demo.bin"

    However, when flashing the "cc26xx-web-demo" sample to the sensortag 2, i get the verification error below.
    I have tried to compile a second time, but i always get a verification error at pag 17.
    And i did an "make clean" bevor compiling it... with "make BOARD=sensortag cc26xx-web-demo.bin"

    Any hints welcome! :-)

    Error when flashing cc26xx-web-demo.bin to the sensor tag 2 using "Smart RF Flash Programmer 2":
    >Initiate access to target: XDS-06EB1220229CA.
    >Reading file: C:/tmp/TexasInstruments/cc26xx-web-demo_sensortag2/cc26xx-web-demo.bin.
    >File size: 131072 bytes.
    >Number of assigned pages: 30.
    >About 88 percent of the file contain assigned code.
    >Start flash erase ...
    >Erase finished successfully.
    >Start flash programming ...
    >Programming finished successfully.
    >Start flash verify ...
    >Page: 0 verified OK.
    >Page: 1 verified OK.
    >Page: 2 verified OK.
    >Page: 3 verified OK.
    >Page: 4 verified OK.
    >Page: 5 verified OK.
    >Page: 6 verified OK.
    >Page: 7 verified OK.
    >Page: 8 verified OK.
    >Page: 9 verified OK.
    >Page: 10 verified OK.
    >Page: 11 verified OK.
    >Page: 12 verified OK.
    >Page: 13 verified OK.
    >Page: 14 verified OK.
    >Page: 15 verified OK.
    >Page: 16 verified OK.
    >Verification failed at address 0x00011400 (in page 17). Expected 0x08, read 0x8C.
    >Reset target ...
    >Reset of target successfull.