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.

CC-6lowpan-dk-868 Nodeview

Other Parts Discussed in Thread: CC430F5137

Hi.

I am beginner to CC-6lowpan-dk-868.

When I tested kit first, EdgeRouter connected 4 nodes, and I confirmed hhrough Nodeviwe.

But to change frequency, I changed interface on user guide p.28.

After than, four nodes not connect to edgeroutert. And the LED on CC1180EM adapters, D1 is active, and D2 is not active.

How to make it connected to the router again?

I found Q&A about AES. But I can not understand. I would like to know how to solve through Nodeview.

Any help would be very much appreciated.

  • Hi,

    You need to change the Rf configuration on both the nodes (CC1180DB and CC430xx) and the Edge Router/Access point, and they need to match. You cannot change only the Edge Router and not the nodes, it will result in the beahviour you see. In short (example for CC1180):

    1) On CC1180 you need to make the rf_config struct contain your settings:

    //rf configurations to load...
    static rf_conf_settings_t rf_config = {DATA_RATE_50, CHANNEL_SPACING_200, MODULATION_INDEX_10,
    0x21, 0x65, 0x6a, 0xc2, RX_ATTENUATION_0dbm, FHSS_DISABLED};
    rf_conf_set_params(&rf_config);

    2) Build and download the new code to the MSP430 on the CC1180DB

    3) Make the same RF changes on the Edge Router using NodeView tool.

    The steps are described on p.28 in section 3.6.2 and 3.6.3 in the User's Guide for the CC-6LOWPAN-DK-868

    The default settings are:


    Data rate=200
    Channel spacing=200
    Modulation index=1.0
    Base frequency=868.3MHz
    TX power=10dBm
    RX attenuation=0
    Freq. hopping=0

    -Jonas

  • Hi. Thank you for your answer.

    I already changed frequency of CC1180DB nodes. But Edge Router could not connect any nodes.

    I tried both 868MHz and 915MHz on Edge Router using two deiifernt frequency nodes.

    First, I tried one CC1180DB node has not changed anything. That case changed frequency on Edge Router 865MHz to 915MHz.

    Second, I tried other CC1180DB node has chaged frequency. That case also changed frequency on Edge Router 865MHz to 915MHz.

    But both case did not work.

    I think node frequency is not problem.

     

  • Hi,

    Note that the default frequency is not 865MHz, but 868.3MHz. The screenshot in the User's Guide is wrong.

    Please verify RF configuration used on CC1180DB and Edge Router by:

    1) Simply copy the struct you use on CC1180DB and send to me

    2) Log in to the Edge Router and do a cat of the rf_configuration_x file like below:

    root@da850-omapl138-evm:~/last/configFiles# cat rf_configuration_ttyS1.conf
    Interface Id=0
    Crystal=26
    Data rate=200
    Channel spacing=200
    Modulation index=10
    Base frequency=2188650
    TX power=194
    RX attenuation=0
    Freq. hopping=0
    root@da850-omapl138-evm:~/last/configFiles#


    Send to me for verification.

    Thanks,

    Jonas

  • Hi,

    I solved that problem. The frequency on Edge Router was the provblem.

    I changed frequency and data rate that you told, both 868.3MHz and 915MHz I confirmed connetion through NodeView.

    And I have another problem.

    I downloaded on CC1180DB success, but I failed on CC430F5137.

    The error message I attached.

     

    Help me again.

    Thank you. 

  • Hi,

    Ok, good you solved it. 

    I have not seen this error before, please describe exactly what steps you took to invoke it. Be as precise as possible.

    Thanks,

    Jonas

  • Hi, again.

    First, I sloved that problem, I changed JP2 pin INT to EXT on CC430 board, then download worked. I don't know What do that pin is rule. Could you explain?

    After all, I tested Edge Router on 915MHz using nodes(CC1180, CC430) well. But I had problem too.

    A few hours ago, I worked well. After adapter board disconnected from Edge Router, I connected adapter board. But Edge Router did not boot.

    I found similiar problem(http://e2e.ti.com/support/low_power_rf/f/155/t/208182.aspx) but there are not answer.

    The LED D1, D2 both blinked period 4s.

    I tried to connect using telnet and serial port. But any one did not connect.

    And I found some thing on user guide. But I can not understand. How I can solve?

    Thank you.

    //////////////////////////

    CC1180 stuck in boot mode

    The CC1180 on the Gateway can sometimes get "stuck" in boot mode. This is due to ripple on the CC1180 MODE pin during boot of the Gateway (a falling edge on MODE line will toggle mode on CC1180). The utility Nanoboot_host can in such case not be used to toggle mode, this is due to the fact that the program requires the serial port to the CC1180 to be open and that fails under these circumstances. In order to toggle mode of CC1180 the MODE line can be controlled directly from Linux user space, to do so follow these instructions.

    1. Assuming you target GPIO1_15 (MODE on CC1180), in linux it will be represented by gpio31. 2. In order to be able to control it, you need to make it available for control echo 31 >/sys/class/gpio/export 3. Then you can check its direction: input or output cat /sys/class/gpio/gpio31/direction 4. Assuming you want to set the I/O in output mode & toggle its value from 0 to 1, we need to change the direction first: echo out > /sys/class/gpio/gpio31/directionand then we can verify direction was changed cat /sys/class/gpio/gpio31/direction

    (out should be displayed)

    5. Then we check the value :cat /sys/class/gpio/gpio31/value

    (that defaults 0)

    6. To set to 1, echo 1 > /sys/class/gpio/gpio31/value

    7. Since a falling edge on the MODE pin will toggle mode on CC1180 we need to set the signal low again:echo 0 > /sys/class/gpio/gpio31/value

    8. And set it back high in order to be able to toggle it again later:echo 1 > /sys/class/gpio/gpio31/value

    9. The mode of CC1180 is now toggled and is displayed on the LEDs on the adapter board.

    10. If both the LEDs are toggling with about 5s cylce, then power on OMAP and let nanorouter start.

    11. You can now create an RF interface as usual (not sure you need, depending on if you have one already) and connect your nodes.

    //////////////////////////

  • Seems like your Nanorouter process is not started, you can start it manually by using the console interface on the Edge Router (RS-232 or telnet):

    (standing in root)

    cd last [enter]

    ./nanorouter [enter]

    You will now also get debug from nanorouter application on the console, if that's not desired use ./nanorouter & [enter] instead

    Regards,

    Jonas

  • Hi.

    I did what you said.

    cd last

    ./nanorouter

    but the script did not stop.

    //////////////////////////////////////////////

    NanoRouter 2.0 - 6routed v2.0

    ------------STARTING 6ROUTED Version: 2.0------------

    ------------STARTING CONFIGURATION SERVER Version: 2.0------------

    Server::socket_server_set_params: cannot bind port number 50005

    Server::socket_server_set_params: binding port number 50006

    ConfSv::handshake - trying a new port: 50005

    ConfSv::handshake - trying a new port: 50006

    ConfSv::handshake - trying a new port: 50007

    Configuration::constructor- handshake done!

    New get address got: 2001:0000:0000:0000:0000:0000:0000:0011

        

    Core::read_config - create Ethernet interface by default

    Ethernet::Device /dev/net/tun opened successfully

    Ethernet::Failed an ioctl() call on virtual interface fd

    Ethernet::Could not open virtual network interface to communicate with the kernel

    Bailing out

    Configuration::create_new_ifConfig - SUBGHz lowpan interface

    InterfaceConfig::InterfaceConfig constructor aes: 00

    InterfaceConfig::InterfaceConfig - RF configuration found!

        

    InterfaceConfig::set_short_addr:

    00 - 00

    InterfaceConfig::get_type: 2

    InterfaceConfig::get_type: 2

    InterfaceConfig::get_type: 2

    InterfaceConfig::get_channel- b

    InterfaceConfig::get_type: 2

    Core::netIf_create - Creating RF868MHz IF...

    InterfaceConfig::get_type: 2

    ConfSv::handshake - done!

    Server::socket_server_set_params: cannot bind port number 50004

    Server::socket_server_set_params: cannot bind port number 50005

    Server::socket_server_set_params: cannot bind port number 50006

    Server::socket_server_set_params: binding port number 50007

    ------------STARTING NAPSOCKETSERVER Version: 2.0------------

    NAP_Socket_Interface constructor:: handshaking...

    Server::socket_server_set_params: binding port number 12098

    NAP_Socket_Interface constructor:: handshaking...

    NAP_UART_Interface::start_socket_server- handshake done!

    NAP_UART_Interface::nap_init - Stat: found device in: /dev/ttyS1

    NAP_Packet::create_config_request_set- OPERATION MODE: 00

    NAP_Packet::create_config_request_set- No AES

    Set opmode shutdown!

    NAP_Socket_Interface constructor:: handshaking...

    NAP_Socket_Interface::handshake - done!

    NAP_Packet::create_config_request_set- OPERATION MODE: 00

    NAP_Packet::create_config_request_set- No AES

    Set opmode shutdown!

        

        

    NAP_Interface::nap_start - Init failed

    NAP_Socket_Interface constructor status: 29

    ----- DELETE NAP_Socket_Interface -------

    -----------LOWPANInterface stop running-------------index: 01  (status: 41)!

    Core::create interface - status: 29

        

        

    LL ADDR:fe80::ff:fe00:0000/128

    GP ADDR:2001:0000:0000:0000::ff:fe00:0000/128

    RTNETLINK answers: Cannot assign requested address

    NAP_Interface::nap_start - Init failed

    NAP_UART_Interface constructor status: 41

    NAPSocketSERVER - Init fail!- exit status: 41

    RTNETLINK answers: Cannot assign requested address

    fragmenter destructor --- TODO

    WIFSIGNALED(status): 1

    WTERMSIG(status): 11

    WCOREDUMP(status): 0

    WIFSTOPPED(status): 0

    WSTOPSIG(status): 0

    WIFCONTINUED(status): 0

    NANOROUTER:: fail 6routed! => stop ConfSv and NAPSocketServers

    killall: NAPSocketServer: no process killed

    ------------STARTING 6ROUTED Version: 2.0------------

    NANOROUTER:: 6routed has been RELAUNCHED!

    NANOROUTER:: ConfSv has been RELAUNCHED!

    ------------STARTING CONFIGURATION SERVER Version: 2.0------------

    Server::socket_server_set_params: cannot bind port number 50005

    Server::socket_server_set_params: binding port number 50006

    ConfSv::handshake - trying a new port: 50005

    /////////////////////////////////////////////////////////////////////////////////////////////

    It reaped again.

    root@da850-omapl138-evm:~/tools# ./NanoBoot_host_10_8552 /dev/ttys1 ENCRYPTED_CC 1180_AP_FW.hex

    then,

    NanoBoot HOST application 1.0 Press 1 and enter to open menu.

    <serial_port: Opening serial port to /dev/ttys1 ...unable to open port> device /dev/ttys1 not found!

     

    The Node View found Edge Router.

    and Edge Router connected to PC(2001::22).

    The LEDs are both active still.

    How it unthread boot mode?

     

    Thanks.

  • Kim,

    Please follow these instructions to get CC1180 out of boot mode: http://processors.wiki.ti.com/index.php/CC-6LoWPAN#CC1180_stuck_in_boot_mode

    -Jonas