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.

Linux/LAUNCHXL-CC2640R2: CC2640R2 - RTLS Agent not working under Linux?

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640

Tool/software: Linux

Hello,

i am trying to get the RTLS examples in CC2640 SDK v 2.40 running. However, i cannot get the python tools of the RTLS Agent running.

The requirements.txt for python contains windows-curses, which is a package intended for windows plattforms, only. So is the agent only working under windows?

Thanks for your help!

Philipp

  • Hi Philipp,
    I have assigned one of the experts to comment. stay tuned.
  • Hi,

    windows-curses is only needed on windows, and pip will simply fail installing that package on other platforms. Both Linux/Mac are tested and should work.

    Do you get any error messages, or could you explain a bit more about what problems you are seeing? Please make sure you use python 3.7.x and follow the instructions in the README.

    Best regards,
    Aslak
  • Dear Alask,

    many thanks for your quick response.
    I have removed windows-curses from requirements.txt.
    Then, indeed, i can launch websocket_server.py using the latest linux mint version with the venv-method described in the README file.

    However, after the device selection dialog, the program crashes with the following message:

    python3.7 ./websocket_server.py 
    Traceback (most recent call last):
      File "./websocket_server.py", line 224, in <module>
        wrapper(main)
      File "/usr/lib/python3.7/curses/__init__.py", line 94, in wrapper
        return func(stdscr, *args, **kwds)
      File "./websocket_server.py", line 176, in main
        update_node_status(scr, my_nodes)
      File "./websocket_server.py", line 70, in update_node_status
        caps = ', '.join([str(c) for c, e in node.capabilities.items() if e])
    AttributeError: 'NoneType' object has no attribute 'items'
    

    Any suggestions?


    Thanks,

    Philipp

  • Hi Philipp,

    The reason it crashes is that no response was received after sending the IDENTIFY command to the device, so there "capabilities" is None. It's not an intended feature that it crashes because of this, but the problem lies in the serial communication, and/or the firmware on the device.

    Please make sure you select only serial ports that do have correct firmware (rtls_master, rtls_passive -- slave should not be connected). In addition, sometimes the debugger/programmer does not properly reset the devices, so make sure you press the reset button on the launchpad after programming.

    Best regards,
    Aslak
  • Many thanks, this indeed solved my problems. Each Launchpad makes available two serial ports (/dev/ttyACMxx), one of them is the JTAG debugger, the other one is controlled by the application. It seems that i just constantly chose the wrong ones.