Giter VIP home page Giter VIP logo

Comments (4)

sdawans avatar sdawans commented on June 16, 2024

What I replied:

You can indeed use the RPi as 6LBR host platform, and the Econotag as a SLIP-radio. 
The application we use for slip-radio is the one in /examples/ipv6/slip-radio and you can build 
it for the econotag target.
Just a small detail - in slip-radio, the border router sends '!C' to the mode to set the 802.15.4 
channel number. Setting the channel number isn't part of the Contiki Radio API, and the 
slip-radio example uses cc2420_set_channel(). We modified the slip-radio example in the 
6LBR repository to support another platform, which has an RF230 radio.
In slip-radio.c, we select a command handler depending on the platform:
    #ifdef CONTIKI_TARGET_SKY
    int cmd_handler_cc2420(const uint8_t *data, int len);
    #elif CONTIKI_TARGET_NOOLIBERRY
    int cmd_handler_rf230(const uint8_t *data, int len);
    #endif /* CONTIKI_TARGET */
An the rest is implemented in target-specific files ( slip-radio-rf230.c and slip-radio-cc2420.c). 
I haven't tested building slip-radio for econotag, but it should be straightforward to build it, and 
fairly easy to add an extra #if and source file to implement econotag-specific channel switching.
My collegue Laurent who is reading this list couldn't stop himself from testing this modification 
as we speak, so half of my email is already outdated :)
We will let you know when it's ready.

from 6lbr.

sdawans avatar sdawans commented on June 16, 2024

implemented by @laurentderu in 06458cc

from 6lbr.

sdawans avatar sdawans commented on June 16, 2024

06458cc could be pulled into Contiki as is.
so can 5cca059 (slip radio for nooliberry)

@laurentderu do the top 2 commits on https://github.com/cetic/contiki/tree/slip-radio-platforms look sane to you?

Also, what about modifications in contiki-sky-main.c c67bf67 + 6af36bc ? Do we need this for other slip-radio platforms in 6lbr?

from 6lbr.

jonwigwag avatar jonwigwag commented on June 16, 2024

How, do you burn slip-radio_econotag.bin to the econotag. I tried using the ./mcburn.sh that i normally use to flash the econotag. Now in the process when I need to reset ship to start program the econotag doesnt reset. Is there a different way i need to flash econotag?

from 6lbr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.