Menu

Newbie help

naj
2008-07-22
2013-04-29
  • naj

    naj - 2008-07-22

    Hello,

    Newbie questions so please bear with me:

    I want to write a custom application to communicate with the nanoRouter and the sensors. Do i Have to write my application using nRouted to communicate with them or is there any other way. Also, i dont understand how to get the nano_Example_n1xx working. is this example code meant to be put on a nano_router or sensor or just the pc. If its meant to be on pc then how will i compile it...

    Any help would be much appreciated.

    Many Thanks  

     
    • shelby

      shelby - 2008-07-23

      Hi Newbie ;-)

      No problem at all, good questions actually.

      1. All applications under /Examples are meant to be run on a microcontroller-based wireless node. If the examples start with micro_* then it is for the Micro series port (MSP430+CC2420) and nano_* is for the Nano series (CC243x) port. You type make in the directory, which makes you an .ihex image for the microcontroller. make bsl or make program depending on the platform will use the appropriate tool to flash the image on your HW.

      2. The applications under /Tools are all meant to run on a PC under Linux or Cygwin. To make those applications simply type make in the root of the directory or in the subdirectory of the specific application. Would it maybe be clearer to rename that directory "/PC-Tools"?

      3. To write your own application on the wireless node, modify the nano_example_n1xx for example.

      4. To write your own PC application, then you should write a client that speaks with nRouted to access packets from the network (see nPing as an example). If you buy a Sensinode Devkit that also includes a Java tool for using the serial (USB) dongle and access the network. You can also write your own daemon that uses the serial interface to a serial dongle.

      Hope that helps!

      - Zach

       
    • naj

      naj - 2008-07-23

      Hi Zach,

      Thankyou very much for your quick response.

      I understand now on how to get started with what i need to do. I am doing my MSc project and we do have a Dev kit. For feedback reasons, I think i was a bit confused about how to use nano_example_n1xx because in the manual it stated that "nano_example_n120: A basic example of using NanoStack on the Nano Series with an interactive terminal (press 'h' for help)" . This kinda implied to me that it was some sort of client with a terminal. I tried to compile it just using gcc or sdcc and making a .o file so maybe i could get an interactive terminal. but i understand now that is not the case. So thankyou for clearing that up :) .

      Another quick question, Is there any specific way for getting information back about Radio Signal Strength Indicator (RSSI).

      Many Thanks

       
    • ikram

      ikram - 2008-07-24

      Hi,

      if (sub_buffer)
      {

      debug_printf("RSSI = %d dbm", sub_buffer->options.rf_dbm);

      }

      Hopefully It will helps you.

      -ikram

       
    • naj

      naj - 2008-07-24

      Thankyou Ikram , I will try it as soon :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.