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.

TMP117EVM: TMP117EVM GUI cannot connect to USB device

Part Number: TMP117EVM
Other Parts Discussed in Thread: USB2ANY, MSP-FET, TMP117, UNIFLASH

Hi,

I'm trying to connect TMP117EVM to the online GUI (Linux 64-bit) without success. Here's the connection issue (USB2ANY) that the GUI shows

I've unplugged and plugged back the device as suggested and even restarted the OS but the error persists. Any hints?

regards,
gaston

  • Hi Gaston,

    Do you have other TI USB devices plugged in?

    Is it possible you've corrupted your firmware? Have you used any other software designed for USB2ANY aside from GUI Composer? 

    • Legacy PC software for USB2ANY will corrupt TMP117EVM firmware.
    • You can use a LaunchPad or other MSP-FET to flash the following file to TMP117EVM. You can learn more about MSP-FET in the User's Guide slau647.www.ti.com/.../slau647 

    Have you disconnected your TMP117 device from the USB controller portion of the TMP117EVM?

    Have you changed the I2C Address of your TMP117 using the jumpers or pins provided?

    • GUI Composer will disconnect from USB if it doesn't get the expected response from the TMP117 device over I2C
    • You can change the I2C Address used by the GUI on the EVM Setup tab (gear icon) to match the current address on your hardware.After making changes, you will need to click the connect icon in the bottom left corner of the application window.

    You must install the TICloudAgent Bridge browser extension as well as the CloudAgent software package. Have you used other services on dev.ti.com which connect to TI hardware, such as CCS Cloud or UniFlash? This would confirm that your TICloudAgent software is working correctly.

    thanks,

    ren

    6136.USB2ANY_F5528.txt

  • Hi ren

    Ren Schackmann said:
    Do you have other TI USB devices plugged in?

    No

    Ren Schackmann said:

    Is it possible you've corrupted your firmware? Have you used any other software designed for USB2ANY aside from GUI Composer? 

    No. I've used the device out of the box and I've only tried to connect it using the online EVM_GUI (v1.3.0) and not installed any software previously

    Ren Schackmann said:
    Have you disconnected your TMP117 device from the USB controller portion of the TMP117EVM?

    of course not :-)

    Ren Schackmann said:
    Have you changed the I2C Address of your TMP117 using the jumpers or pins provided?

    No, neither

    Ren Schackmann said:
    You must install the TICloudAgent Bridge browser extension as well as the CloudAgent software package.

    Yes, I've already done it.

    Ren Schackmann said:
    Have you used other services on dev.ti.com which connect to TI hardware, such as CCS Cloud or UniFlash?

    No

    Ren Schackmann said:
    This would confirm that your TICloudAgent software is working correctly

    How can I proceed to confirm that TICloudAgent works as expected?

    regards,
    gaston

  • Hi Gaston,

    Have you reviewed these installation instructions for linux? This is from a readme file that was included in your download.

    --------------------------------------------
    
    **Linux (64 bit) Installation Instructions**
    --------------------------------------------
    
    To install all prerequisites for your application:
    
      * open a terminal window
      * cd into the application folder (which is located in the guicomposer runtime folder)
    
    The following commands need to be executed from the Terminal app with this folder as the working directory in order
    to enable proper execution of the application:
    
         sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
         sudo apt-get install lib32stdc++6 libc6-i386 libusb-1.0-0-dev:i386
         sudo chmod -R a+rwx ../..
         cd linux/TICloudAgentHostApp
         sudo ./install.sh --install
    
    To run your application, cd into the application folder and enter the following command:
    
         ./launcher.lnx
    
    
    If the application needs to access to your PC's serial ports, you may need to configure permissions to access
    the serial ports by adding yourself to the group that owns the /dev/usbPortName
    To find out what group the serial port ttyACM0 is owned by, do
    
         ls -l /dev/ttyACM0
    
    Assuming the group is named dialout, add yourself to that group by using the sudo adduser command:
    
         sudo adduser my_user_name dialout
    
    You may also need to change the permissions on the USB port to permit read / write access for anyone.
    
         sudo chmod 666 /dev/ttyACM0
    
    For more information, please see
    http://askubuntu.com/questions/112568/how-do-i-allow-a-non-default-user-to-use-serial-device-ttyusb0
    
    In order to get permission to use USB-HID ports, you will need to create a file in /etc/udev/rules.d named
    usbhid.rules that contains the following:
    
        ATTRS(idVendor)=="2047", MODE="0666"
    
    If your PC is configured to use a proxy, you will need to ensure that there is no proxy for localhost.  To do this,
    edit your .bashrc file
    
         gedit ~/.bashrc
    
    and add the following two lines:
    
         no_proxy=localhost,127.0.0.1,local.home
         export no_proxy

    To answer your question about TICloudAgent, you would need to test another TI hardware, such as a LaunchPad in CCS Cloud.

    thanks,

    ren

  • Sorry ren but I don't get it. I didn't 'manually' downloaded any software. Simply I've performed these steps:

    • Unbox the TMP117EVM
    • Open my browser (Firefox 81.0 Linux 64-bit) and go to this link: 
    • Then my browser asked to install a extension to use the GUI (I've accepted and gave permissions)
    • My browser asked to install TICloudAgent (I've accepted). Both previous steps were executed in background and I've have no notification about requirements, dependencies and so on
    • Finally I've restarted the browser and connected the device to the USB port with no success.

    regards,
    gaston

  • Hi Gaston,

    Even though you're using the online version, you may need to follow these steps to enable TICloudAgent to access USB on your system.

    If you would like to test the offline version, the link is here, when you mouseover the download arrow icon. https://dev.ti.com/gallery/search/tmp117evm

    thanks,

    ren

  • Hi Ren,

    Sorry but still does not work (in linux). I've repeated the steps I mentioned in my previous post and it works perfectly in W7. There's not need to install nothing, just open the gallery GUI and it works...

    It seems that it is a permission issue that I just can't see clearly. Here's the console message when I connect the TMP117EVM and try to find out what group the serial port ttyACM0 is owned by

    regards,
    gatson

  • Hi Gaston,

    The TMP117EVM won't appear as a tty device, because it is not a Serial Port. It is an HID device. The output of the dmesg command should show that a Texas Instruments HID device was recently plugged in. Specifically, the device is vendor ID 2047 product ID 0301. It might tell you that the device was registered as /dev/hidraw0 or similar. lsusb will also tell you that a Texas Instruments (vendor ID 2047) device is plugged in. You may need to use line 45 from the above instructions to open up access permissions for all HID devices made by Texas Instruments (vendor ID 2047) on your system.

    thanks,

    ren

  • Hi Ren,

    There is no way...

    I've installed the off-line version by installing the GUI composer runtime first and then the TMP117EVM_GUI application.

    I've followed the readme file guidelines for linux install (that you've shared previously). It works fine, with no errors except for the line 84: ls -l /dev/ttyACM0 that I've tried to fix it as you've suggested.

    Any ideas?
    gaston

  • Hi Gaston,

    As I mentioned, TMP117EVM won't appear as /dev/ttyACM0 because it is an HID device. If the hardware were configured to be a serial port, the linux kernel would give it a tty* name. These are generic instructions for GUI Composer. Other GC projects might use the serial port. You do not need to find or use /dev/ttyACM0 to be able to use TMP117EVM.

    I've asked that someone from the GUI Composer team review your post and offer additional assistance. 

    thanks,

    ren

  • Hello Gaston, 

    First thing to try would be to run "lsusb" from command line to see os detects your device. It should show Texas Instruments USB2ANY/OneDemo as one of the options. If you do see this, then it is most likely a permissions issues.

    Next you could enter "ls -al /dev/hid*" to see permissions on hid devices. I think by default rw permissions would be enabled for root.  You could then do either 

    a) sudo chmod 0666 /dev/hidraw*

    b) modify rules file in TICloudAgent directory. Open  ${HOME}/TICloudAgent/install_scripts/71-ti-permissions.rules with a text editor and append

    KERNEL=="hid*",MODE:="0666"

    then cd to ${HOME}/TICloudAgent/install_scripts and run "sudo ./install_drivers.sh"

    You may need to restart your OS. 

    We will also add this information to readme.txt 

    Please let us know if this works. 

    Martin

  • Hi,

    Last tips have resolved the issue.

    Ren/Martin, thank you very much for your help and patience!

    regards,
    gaston