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.

Perl script and SmartRF Studio

Other Parts Discussed in Thread: CC1101

Win7, Strawberry Perl 5.22.0.1

I am trying to run some of the scripts provided by TI in the SmartRF Studio package and get the following error:

c:\Users\User\My Documents\texas instruments\SmartRF Studio v7\scripts>perl dal_
receive.pl
Can't load './dal_ext.dll' for module dal_ext: load_file:%1 is not a valid Win32
 application at C:/Strawberry/perl/lib/DynaLoader.pm line 193.
  at dal_ext.pm line 11.
Compilation failed in require at dal_eb.pm line 11.
BEGIN failed--compilation aborted at dal_eb.pm line 11.
Compilation failed in require at dal_receive.pl line 9.
BEGIN failed--compilation aborted at dal_receive.pl line 9.

edit: I get the same error whether I run the bat file, or the .pl file

As an aside, I also want to be sure that the following are not issues regarding path names wrt Perl in this environment:
1) embedded spaces
2) somewhat arbitrary differences in capitalization
3) "My Documents" vs "Documents"

Thanks,
Mike

  • I pored over the docs again and noticed that I had the Perl installation right the first time - at least according to the SmartRF docs: 32-bit even on a 64-bit machine.    
    I had originally installed 32-bit, then convinced myself I needed the 64-bit - it is a 64-bit machine afterall - then I re-read the docs and...anyway...

    Well, it was almost "right". I was now getting a "missing dll" error. ( The program can't start because perl516.dll is missing from your computer ) Seems the TI supplied stuff wants 5.16 - not the 5.22 I grabbed from the Strawberry site, so I downgraded to 5.16 and the missing dll error ceased.

    Now I can run the dal_receive and dal_send scripts and they appear to function, however, the receive window never showed any received packets. But I already knew there was at least one more step:

    I went back to SmartRF Studio and got the two boards to talk to one another. Then I exported the registers as a perl doc and used it for dal_registers.pl, and restarted the two perl scripts.  Unfortunately, there were still no received packets.

    Can anyone identify something I may have missed?

  • The more I talk (OK, write) about this problem, the more I see.

    I had to un-comment (delete the '#') on require "dal_registers.pl" (in two places)

    Now my boards communicate. Thanks for "listening".

    -Mike

  • Dear Mike,

    I am also doing on a project to read out the RSSI value from the SmartRF EM 433 MHz, cc1101. In this project, the CC1101DK433 with SmartRF04EB was mainly deployed. It is easy to measure the RSSI and display it on the SmartRF but turned out it is very hard for me to read out and store the RSSI value.

    I tried some way but it is not efficient at all. After go through your post I think that you can help me in some way to read out the RSSI value by using Perl Script. Could you share with me how could I compile the Perl Script to control the EB board to get the RSSI value out and store it properly?

    Thanks,

    Tang Nguyen,