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.

CC2531 nano dongles RNP

Other Parts Discussed in Thread: CC2531, CC2530, CC2533, REMOTI

 In my final work of master's degree I have to implement a RF4CE network formed by one RC and three Targets (TV, STB, DVD player). I am using the ARC from the RF4CE development kit to control all the three Targets. I used the Target board with the RNP sample application to program a TV emulator in Visual Studio C++ (Windows Form application). Now it works well and I already have part of my network. I intend to use CC2531 UDB dongle  with the RNP sample application to program the STB emulator. But it missing  the DVD player, is it possible to use CC2531 nano dongle as RNP ? If is not may be I have other solution. I have SmartRF04EB with CC2530, but not  SmartRF05EB. Could you please help me to find a solution?

Regards

Jessica Inocencio

  • Hi Jessica,

    What do you mean by missing the DVD Player? That you do not have an extra CC2531 to use for the DVD Player or that you have all the hardware you need but you cannot control the DVD Player?

    Regards,

    Jose

  • Hello Jose,

    I meant I don't have an extra CC2531 or CC2533 to use for the DVD player. So that, I asked you if it possible to configure CC2531 nano dongle as RNP?

    Another solution for my problem could be use my CC2530 for it, but I just have SmartRF04 and not SmartRF05.
     
    1. What would you recommended me?

    2. I have another question Jose. I am using the target board as a RNP that communicate with a TV emulator that I programmed in Visual Studio C++. I am triggering a Push Button Pairing with a object button in my TV emulator Windows Form application. I would like to know if  I can change  and program the triggering of Push Button Pairing by using the switch in the target board ?


    Best regards,

    Jessica Inocencio

  • Hi Jessica,

    You could flash the Nano Dongle with the ZIDNanoDongle project and then use Target Emulator and select the nano dongle as an HID device. If not I think that the CC2531 usb dongle is your less expensive solution.

    To flash the nano dongle, take a look at this post that I already answered about it:

    http://e2e.ti.com/support/wireless_connectivity/f/159/t/348924.aspx

    Which target board are you using as an RNP to communicate with the TV Emulator?

    Regards,

    Jose

  • Hi Jose, thank you again.

    I am using CC2533 Taget module (included in RF4CE development kit) as an RNP(CC2533 Taget module is flashed with RemoTI Network Processor sample application )  that is comunicating with a Television Emulator Windows Form application that I developed with Visual Studio C++ .

     I am using CC2531 USB (the bigger included in RF4CE development kit) as an RNP (CC2531 USB is flashed with RemoTI Network Processor sample application, and than I install the CDC driver ) that is comunicating with a  Set-top-box Emulator  Windows Form application that I developed with Visual Studio C++ .

    Now, I need another device to  flash with RemoTI Network Processor sample application to comunicate with a DVD player Emutor Windows Form application that I developed with Visual Studio C++ .

    I am asking if It is possible to flash the smaller CC2531 USB( included in RF4CE development kit) with  RemoTI Network Processor sample application to comunicate with my DVD player Emutor Windows Form application?

    Jessica Inocencio

  • Hi Jessica,

    Yes you can flash the Nano Dongle as an RNP using the CC2531 RNP project. I would recommend using the project configuration that uses the serial bootloader so it makes it much easier to re-flash the nano dongle later on.

    You need to open the RNP Project for CC2531 and add ZID_DONGLE_NANO to Defined Symbols in Project > Options> C/C++ Compiler> PreProcessor

    Also in that project you will have to go to line 318 of hal_board_cfg.h and fix a white space line that should not be there.

    MCU_IO_INPUT_P1_PULLDOWN(1,7); \
    \
    MCU_IO_INPUT_P2_PULLDOWN(2,3); \
    MCU_IO_INPUT_P2_PULLDOWN(2,4); \
    P2INP |= 0x6; \

    }
    #endif

    Please change it to

    MCU_IO_INPUT_P1_PULLDOWN(1,7); \
    \
    MCU_IO_INPUT_P2_PULLDOWN(2,3); \
    MCU_IO_INPUT_P2_PULLDOWN(2,4); \
    P2INP |= 0x6; \
    }
    #endif

    You should use the CC2531F256_SB project since with the serial bootloader it is much easier to flash applications to the Nano Dongle.

    Check this post that I answered about how to flash the Nano Dongle:

     http://e2e.ti.com/support/wireless_connectivity/f/159/t/348924.aspx


    Regards,

    Jose

  • Thank you very much Jose

    I will try to follow what you explained to me. I will get back to you If I have any doubt.

    Regard,

    Jessica Inocencio

  • HI Jessica,

    No problem, also keep in mind that if you decide to flash the rnp image with the bootloader, when the nano dongle is powered up, it will be in bootloader state for a couple of seconds and then it will start the RNP, so that is something to be aware of, maybe it is not the best option for you but at least for testing it is better because you can flash the nano dongle without having to solder cables to it or anything like that.

    Regards,

    Jose

  • Hello,

    There is a question that I have asked along this post but it has lost with another questions that I have asked . I wonder if it could be answered.

    I am using CC2533 and CC2531 from RF4CE hardware kit as a RNP that communicate with TV and STB Emulators Windows Form application that I developed in Visual Studio C++.

    I am triggering a Push Button Pairing with a button object that I added in my Emulators Windows Form application. I would like to know if I can change and program the triggering of Push Button Pairing by using the switches in the CC2533 target board and CC2531 USB ? Where can I change it in RNP application?

    Best Regards,

    Jessica Inocencio

  • Hello José,

    I finally already soldered the cables and flash the Serial Bootloader in CC2531USB nano dongle as you explained to me.

    Then I installed the boot_usbDriverCc2531 included in RemoTI Tools in order to be recognized as a COM device in Device Manager. It was recognized in my PC as COM8. Finally I used the RemoTI_SBDemo.exe load the image of RNP CC2531F256_SB with the modifications you had mentioned.

    I am using CC2533 Target module inclued in RF4CE hardware kit as RNP (COM4) that is correctly comunicating with my Windows Form Aplication that emulates an TV. I used this application to test if all is correct whith my new RNP (COM8) and in RTI_InitWin32Module in my code application I wrote COM8 instead of COM4.

    It passed in RTI_InitWin32Module function but when it arrived in this first configuration function "if (RTI_SUCCESS != (res=RTI_WriteItemEx(RTI_PROFILE_RTI, RTI_CP_ITEM_NODE_CAPABILITIES, 1, &node_cap))) " iit triggered an erro status 0xff.

    Do you have any idea why this error occurs?

    Best Regards

    Jessica Inocencio

  • Hi Jessica,

    About your previous post I would suggest you to take a look at the ZID Dongle project since there they trigger pairing using the S1 button on the CC2531 USB Dongle.

    About your problem with the Nano Dongle:

    When it boots up it goes into bootloader mode for like 4 seconds, then it runs the RNP application and will show up as an RNP in device with another COM port # in Device Manager manager and not a bootloader. Maybe your application is trying to initialize the nano dongle as an RNP while it is into bootloader mode.

    The idea of using the bootloader is to make it easier to flash images on the nano dongle, but if that is causing trouble, like it seems, you might be better off just flashing the RNP in the nano dongle without bootloader, but then every time you want to flash it you will have to solder cables to it.

    Regards,

    Jose

  • Thank you very much for all Jose!

    I can't solve the problem, so It might be the better option. I dont intend to reflash the nano dongle with another image, at least for now, so it can not be too bad flash directly RNP in nano dongle. Is CC2531F256 RNP project configuration ,with the same modifications you have told me before for the CC2531F256_SB RNP project configurartion, the right firmware that I have to flash?

    Best regards

    Jessica Inocencio

  • Hi Jessica,

    Instead of selecting the serial bootloader configuration in the RNP project, select CC2531F256_HEX or CC2531F256. Btw, with the hex version you will have to flash the hex using SmartRF Flash Programmer.

    After selecting one of those project configurations add ZID_NANO_DONGLE to Defined Symbols in Project > Options> C/C++ Compiler> PreProcessor

    You will need to solder the cables again and use the CC Debugger to flash it.

     

    Regards,

    Jose

  • Thank you Jose, I will do it!

    Best regards

    Jessica

  • Hello ,

    I am sorry for keep asking for help on the same problem.
    I did strictly what you told me to do. I flash CC2531F256_HEX configuration RNP project using SmartRF Flash Programmer after adding ZID NANO DONGLE as a symbol at project. Then I installed the driver. And it was recognized as COM9 in my PC.

    On this stage it seemed like everything were ok:

    COM4 - Target module - correctly communicates with Windows Form TV Emulator Application
    COM7 - CC2531 dongle - correctly communicates with Windows Form DVD player Emulator Application
    COM9 - CC2531 nano dongle - for Windows Form STB player Emulator Application.

    Before develop Windows Form STB Emulator Application, I tested my RNP nano dongle with the Windows Form TV Emulator Application but using COM9 instead of COM4.
    But RTI_ERROR_SYNCHRONOUS_NPI_TIMEOUT erro still occurs at configuration parameters when I call RTI_WriteItemEx. I have tried many ways to solve the problem but
    nothing solved the problem. And it is not a problem from my Windows Form Application because it works correctly with others RNP, through others COM port.

    I don't know what you can advice me about this problem.

    May be I should try another solution. I have CC2530DK_EM Rev 1.3 and SmartRF04EB 1.9. Can they be used to configure an RNP ?

    Best Regards,

    Jessica Inocencio

  • HI Jessica,

    Just to be sure of what's wrong here, can you test the Nano Dongle with Target Emulator instead of your own application?

    • Open Target Emulator (RemoTI Install DIR \ bin) and choose the COM port that corresponds to the Nano     Dongle and then see if Target Emulator is capable of communicating with the Nano Dongle.

    • You can also try assigning another COM port to the nano dongle (I don't see how this could help but try it out). In Device Manager, right click on the RemoTI Network Processor entry that corresponds to the nano Dongle, then select PROPERTIES. Go to the Port Settings Tab and click on "Advanced". There you can change the COM port number.

    Our projects currently do not support the SmartRF04EB boards, only SmartRF05, which means that you will need to do a few modifications to the HAL to get it to work. I would rather try what I just explained to be sure that the nano dongle is fine.

    Regards,

    Jose

  • Hello Jose,

    Thank you again!

    I tested the Nano Dongle with Target Emulator and Target Emulator was blocked for some seconds, then occured this error:

    The others RNP (COM4 and COM7) are working correctly with Target Emulator.

    I tried to assigning another COM port to Nano Dongle, I changed it to COM2. But the error shown in the first picture is still occuring.

    Best regards,

    Jessica Inocencio

  • Hi Jessica,

    I think that I know what the problem is. You need to define the symbol ZID_DONGLE_NANO, and I wrote in my previous post from last week I wrote ZID_NANO_DONGLE, when it should be ZID_DONGLE_NANO. My apologies for the misspelling. 

    I've attached an image that you can flash to the nano dongle which should work

    3443.rnp_cc2531f256.hex

    Regards,

    Jose


  • Hi Jose,

    No problem, I just have to thank you because you found the solution of the problem. May be it's better flash the Serial bootloader because of the advantage you had told me, once we concluded that nothing is wrong with RNP bootloader configuration.

    I will add the correct symbol ZID_DONGLE_NANO and exclude the white space (line 328) in RNP bootloader configuration project, solder the cables and flash to nano dongle.

    I will let you know how it goes.

    Thank you again,

    Best Regarsd

    Jessica Inocencio

  • Hi Jessica,

    Yes it makes it easier to use the serial bootloader.

    Regards,

    Jose