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.

CCS/LAUNCHXL-CC2640R2: "Unknown Module: Device Detector" error message in CCS Cloud (Windows 7 NOT Linux, & using google chrome)

Part Number: LAUNCHXL-CC2640R2


Tool/software: Code Composer Studio

I can upload project zero to my launchpad from a local download using CCS but not cannot upload projects using CCS cloud. due to the error message.  

  • There is logic in our cloud tools that tries to automatically detect which LaunchPad you are using. This is failing.

    Could you try to enable logging?

    To do this you need to edit ticloudagent.bat
    It is located in C:\Users\<username>\TICloudAgent
    Remove the the REM from the 3 lines at the top of the file and adjust the path to the log file

    Then try again and attach the log file. That should help us figure out why that error is occurring.

    Regards,
    John
  • I tried using the previous method you left on the related question ( add two lines then run the code) but it did not generate a log file.  

    here is what I typed:

  • got it.

    2019-01-07T20:09:11.981Z: main_chrome: Staring directory = C:\Users\M0064866\TICLOU~1\src
    2019-01-07T20:09:11.982Z: Starting Agent!
    2019-01-07T20:09:11.993Z: Module( Agent )->Web socket server started!
    2019-01-07T20:09:12.416Z: Failed to load module : device_detector.js : C:\Users\M0064866\TICLOU~1\util\proxy.js:12
    exports.proxy = "http://usfhproxysrv02.itc.global.mahle:80
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    SyntaxError: Invalid or unexpected token
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:616:28)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (C:\Users\M0064866\TICLOU~1\util\find_proxy.js:5:17)
    2019-01-07T20:09:12.418Z: Discovered Module : DS
    2019-01-07T20:09:12.419Z: Discovered Module : EventBroker
    2019-01-07T20:09:12.420Z: Discovered Module : File
    2019-01-07T20:09:12.422Z: Discovered Module : Flash
    2019-01-07T20:09:12.423Z: rov_server_redirect: looking in: C:\Users\eclipse\dropins
    2019-01-07T20:09:12.424Z: rov_server_redirect: looking in: C:\Users\eclipse\plugins
    2019-01-07T20:09:12.424Z: rov_server_redirect: looking in: C:\Users\eclipse\Eclipse.app\Contents\Eclipse\dropins
    2019-01-07T20:09:12.425Z: rov_server_redirect: looking in: C:\Users\eclipse\Eclipse.app\Contents\Eclipse\plugins
    2019-01-07T20:09:12.426Z: Failed to load module : rov_server_redirect.js : Error: rov_server.js was not found (this is expected in cloud)
        at Object.<anonymous> (C:\Users\M0064866\TICLOU~1\src\modules\rov_server_redirect.js:64:11)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at module_1.createModule.then (C:\Users\M0064866\TICLOU~1\src\host_agent.js:22:42)
        at _fulfilled (C:\Users\M0064866\TICLOU~1\src\node_modules\q\q.js:854:54)
    2019-01-07T20:09:12.446Z: Discovered Module : Serial
    2019-01-07T20:09:12.448Z: Failed to load module : target_support.js : C:\Users\M0064866\TICLOU~1\util\proxy.js:12
    exports.proxy = "http://usfhproxysrv02.itc.global.mahle:80
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    SyntaxError: Invalid or unexpected token
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:616:28)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (C:\Users\M0064866\TICLOU~1\util\find_proxy.js:5:17)
    2019-01-07T20:09:12.452Z: Discovered Module : USB-HID
    2019-01-07T20:09:12.452Z: Agent main module running on port 65169
    2019-01-07T20:09:12.453Z: len=
    2019-01-07T20:09:12.453Z: 
    2019-01-07T20:09:12.454Z: buf=
    2019-01-07T20:09:12.454Z: {"port":65169,"version":"4.7"}
    2019-01-07T20:09:12.468Z: Module( Agent )->[ws.onMessage]{"command":"listCommands","id":1,"data":[]}
    2019-01-07T20:09:12.469Z: Module( Agent )->[ResponseHandler]{"data":{"commands":["listSubModules","createSubModule","listCommands","addConfigProperty","registerModuleWebSocket","registerModuleByPath"]},"response":1}
    2019-01-07T20:09:12.473Z: Module( Agent )->[ws.onMessage]{"command":"addConfigProperty","id":2,"data":["cloudAgentInstallerServerURL","https://dev.ti.com/ticloudagent"]}
    2019-01-07T20:09:12.474Z: Setting property cloudAgentInstallerServerURL : https://dev.ti.com/ticloudagent
    2019-01-07T20:09:12.475Z: Module( Agent )->[ResponseHandler]{"response":2}
    2019-01-07T20:09:21.070Z: Module( Agent )->[ws.onMessage]{"command":"createSubModule","id":3,"data":["File"]}
    2019-01-07T20:09:21.074Z: Module( Agent )->Creating new module
    2019-01-07T20:09:21.084Z: Module( File )->Web socket server started!
    2019-01-07T20:09:21.089Z: Module( Agent )->[ResponseHandler]{"data":{"port":65173},"response":3}
    2019-01-07T20:09:21.106Z: Module( File )->[ws.onMessage]{"command":"listCommands","id":1,"data":[]}
    2019-01-07T20:09:21.108Z: Module( File )->[ResponseHandler]{"data":{"commands":["listSubModules","createSubModule","listCommands","write"]},"response":1}
    2019-01-07T20:09:21.112Z: Module( Agent )->[ws.onMessage]{"command":"createSubModule","id":4,"data":["DeviceDetector"]}
    2019-01-07T20:09:21.113Z: Module( Agent )->Creating new module
    2019-01-07T20:09:21.114Z: Error stack: Error: Unknown module: DeviceDetector
        at Object.createSubModule (C:\Users\M0064866\TICLOU~1\src\module.js:87:27)
        at WebSocket.ws.on (C:\Users\M0064866\TICLOU~1\src\module.js:152:33)
        at emitOne (events.js:116:13)
        at WebSocket.emit (events.js:211:7)
        at Receiver.receiverOnMessage (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\websocket.js:715:20)
        at emitOne (events.js:116:13)
        at Receiver.emit (events.js:211:7)
        at Receiver.dataMessage (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\receiver.js:414:14)
        at Receiver.getData (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\receiver.js:346:17)
        at Receiver.startLoop (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\receiver.js:133:22)
    2019-01-07T20:09:21.115Z: Module( Agent )->[ResponseHandler]{"data":{"message":"Unknown module: DeviceDetector"},"error":4}
    

  • Thanks Nicholas.

    The issue is that the proxy specified in proxy.js doesn't have a quote at the end

    2019-01-07T20:09:12.416Z: Failed to load module : device_detector.js : C:\Users\M0064866\TICLOU~1\util\proxy.js:12
    exports.proxy = "usfhproxysrv02.itc.global.mahle:80

    Can you add a quote after the 80 and see if that does the trick?

    Regards,
    John
  • The error message now displays this, which is the same message I initially got before I fixed the problem by altering the proxy file (and forgetting an end quote) but got the DeviceDetector error.    

  • Can you clear the old log and gather it again with it setup the way it is now.

    The best scenario would be to get a log with it the way it is now and then again with nothing set for the proxy.

    Chances are it is a firewall blocking the access.

    Regards,
    John
  • this is with a proxy

    2019-01-08T15:11:40.000Z: main_chrome: Staring directory = C:\Users\M0064866\TICLOU~1\src
    2019-01-08T15:11:40.001Z: Starting Agent!
    2019-01-08T15:11:40.012Z: Module( Agent )->Web socket server started!
    2019-01-08T15:11:40.709Z: Overridden Proxy = http://usfhproxysrv02.itc.global.mahle:80
    2019-01-08T15:11:40.720Z: Discovered Module : DeviceDetector
    2019-01-08T15:11:40.721Z: Discovered Module : DS
    2019-01-08T15:11:40.723Z: Discovered Module : EventBroker
    2019-01-08T15:11:40.726Z: Discovered Module : File
    2019-01-08T15:11:40.728Z: Discovered Module : Flash
    2019-01-08T15:11:40.730Z: rov_server_redirect: looking in: C:\Users\eclipse\dropins
    2019-01-08T15:11:40.731Z: rov_server_redirect: looking in: C:\Users\eclipse\plugins
    2019-01-08T15:11:40.731Z: rov_server_redirect: looking in: C:\Users\eclipse\Eclipse.app\Contents\Eclipse\dropins
    2019-01-08T15:11:40.732Z: rov_server_redirect: looking in: C:\Users\eclipse\Eclipse.app\Contents\Eclipse\plugins
    2019-01-08T15:11:40.732Z: Failed to load module : rov_server_redirect.js : Error: rov_server.js was not found (this is expected in cloud)
        at Object.<anonymous> (C:\Users\M0064866\TICLOU~1\src\modules\rov_server_redirect.js:64:11)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at module_1.createModule.then (C:\Users\M0064866\TICLOU~1\src\host_agent.js:22:42)
        at _fulfilled (C:\Users\M0064866\TICLOU~1\src\node_modules\q\q.js:854:54)
    2019-01-08T15:11:40.765Z: Discovered Module : Serial
    2019-01-08T15:11:40.767Z: Discovered Module : TargetSupport
    2019-01-08T15:11:40.772Z: Discovered Module : USB-HID
    2019-01-08T15:11:40.773Z: Agent main module running on port 64507
    2019-01-08T15:11:40.774Z: len=
    2019-01-08T15:11:40.774Z: 
    2019-01-08T15:11:40.775Z: buf=
    2019-01-08T15:11:40.775Z: {"port":64507,"version":"4.7"}
    2019-01-08T15:11:40.788Z: Module( Agent )->[ws.onMessage]{"command":"listCommands","id":1,"data":[]}
    2019-01-08T15:11:40.789Z: Module( Agent )->[ResponseHandler]{"data":{"commands":["listSubModules","createSubModule","listCommands","addConfigProperty","registerModuleWebSocket","registerModuleByPath"]},"response":1}
    2019-01-08T15:11:40.792Z: Module( Agent )->[ws.onMessage]{"command":"addConfigProperty","id":2,"data":["cloudAgentInstallerServerURL","https://dev.ti.com/ticloudagent"]}
    2019-01-08T15:11:40.793Z: Setting property cloudAgentInstallerServerURL : https://dev.ti.com/ticloudagent
    2019-01-08T15:11:40.793Z: Module( Agent )->[ResponseHandler]{"response":2}
    2019-01-08T15:12:09.069Z: Module( Agent )->[ws.onMessage]{"command":"createSubModule","id":3,"data":["File"]}
    2019-01-08T15:12:09.070Z: Module( Agent )->Creating new module
    2019-01-08T15:12:09.074Z: Module( File )->Web socket server started!
    2019-01-08T15:12:09.076Z: Module( Agent )->[ResponseHandler]{"data":{"port":64510},"response":3}
    2019-01-08T15:12:09.099Z: Module( File )->[ws.onMessage]{"command":"listCommands","id":1,"data":[]}
    2019-01-08T15:12:09.100Z: Module( File )->[ResponseHandler]{"data":{"commands":["listSubModules","createSubModule","listCommands","write"]},"response":1}
    2019-01-08T15:12:09.103Z: Module( Agent )->[ws.onMessage]{"command":"createSubModule","id":4,"data":["DeviceDetector"]}
    2019-01-08T15:12:09.103Z: Module( Agent )->Creating new module
    2019-01-08T15:12:09.105Z: Module( DeviceDetector )->Web socket server started!
    2019-01-08T15:12:09.111Z: detected usb id 8087_0a2b
    2019-01-08T15:12:09.111Z: detected usb id 138a_003f
    2019-01-08T15:12:09.112Z: detected usb id 04ca_7053
    2019-01-08T15:12:09.112Z: detected usb id 0451_bef3
    2019-01-08T15:12:09.112Z: detected usb id 03f0_134a
    2019-01-08T15:12:09.112Z: detected usb id 03f0_034a
    2019-01-08T15:12:09.113Z: detected usb id 0424_5534
    2019-01-08T15:12:09.113Z: detected usb id 0424_2134
    2019-01-08T15:12:09.113Z: detected usb id 8086_9d2f
    2019-01-08T15:12:09.114Z: Module( Agent )->[ResponseHandler]{"data":{"port":64512},"response":4}
    2019-01-08T15:12:09.120Z: Module( DeviceDetector )->[ws.onMessage]{"command":"listCommands","id":1,"data":[]}
    2019-01-08T15:12:09.120Z: Module( DeviceDetector )->[ResponseHandler]{"data":{"commands":["listSubModules","createSubModule","listCommands","detectDebugProbes","detectDevice","detectDeviceWithProbe","filesNeeded","populateDeviceList"]},"response":1}
    2019-01-08T15:12:09.123Z: Module( DeviceDetector )->[ws.onMessage]{"command":"detectDebugProbes","id":2,"data":[]}
    2019-01-08T15:12:09.124Z: DriverInstaller options: {}
    2019-01-08T15:12:09.126Z: Could not open fileName: Error: ENOENT: no such file or directory, open 'C:\Users\M0064866\AppData\Local\TEXASI~1\TICLOU~1\db\installedFiles.json'
    2019-01-08T15:12:09.126Z: Could not open fileName: Error: ENOENT: no such file or directory, open 'C:\Users\M0064866\AppData\Local\TEXASI~1\TICLOU~1\db\installedDrivers.json'
    2019-01-08T15:12:09.127Z: Getting file info by category: https://dev.ti.com/ticloudagent/getFilesByCategory?os=win&bitSize=64&categories=core,tixds110
    2019-01-08T15:12:09.128Z: installer.js using proxy: http://usfhproxysrv02.itc.global.mahle:80
    2019-01-08T15:12:09.143Z: requestJSONFromServer failed.  error = Error: tunneling socket could not be established, statusCode=407 resultBody = undefined
    2019-01-08T15:12:09.144Z: An error occurred while retrieving information from the remote server. The most likely cause of this is incorrect proxy settings.
    To manually override the proxy settings see : C:\Users\M0064866\TICLOU~1\util\proxy.js
    The Cloud IDE page needs to be refreshed for the changes to take effect
    
    2019-01-08T15:12:09.145Z: Module( DeviceDetector )->[ResponseHandler]{"data":{"message":"Installation failed : An error occurred while retrieving information from the remote server. The most likely cause of this is incorrect proxy settings.\nTo manually override the proxy settings see : C:\\Users\\M0064866\\TICLOU~1\\util\\proxy.js\nThe Cloud IDE page needs to be refreshed for the changes to take effect\n.\n"},"error":2}
    

    This is while the proxy is blank.

  • This is the file without a proxy.  and it did generate the same DeviceDetector error

    2019-01-08T15:22:28.538Z: main_chrome: Staring directory = C:\Users\M0064866\TICLOU~1\src
    2019-01-08T15:22:28.539Z: Starting Agent!
    2019-01-08T15:22:28.550Z: Module( Agent )->Web socket server started!
    2019-01-08T15:22:28.991Z: Failed to load module : device_detector.js : C:\Users\M0064866\TICLOU~1\util\proxy.js:13
    });
    ^
    
    SyntaxError: Unexpected token }
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:616:28)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (C:\Users\M0064866\TICLOU~1\util\find_proxy.js:5:17)
    2019-01-08T15:22:28.993Z: Discovered Module : DS
    2019-01-08T15:22:28.994Z: Discovered Module : EventBroker
    2019-01-08T15:22:28.996Z: Discovered Module : File
    2019-01-08T15:22:28.997Z: Discovered Module : Flash
    2019-01-08T15:22:28.999Z: rov_server_redirect: looking in: C:\Users\eclipse\dropins
    2019-01-08T15:22:28.999Z: rov_server_redirect: looking in: C:\Users\eclipse\plugins
    2019-01-08T15:22:29.000Z: rov_server_redirect: looking in: C:\Users\eclipse\Eclipse.app\Contents\Eclipse\dropins
    2019-01-08T15:22:29.000Z: rov_server_redirect: looking in: C:\Users\eclipse\Eclipse.app\Contents\Eclipse\plugins
    2019-01-08T15:22:29.001Z: Failed to load module : rov_server_redirect.js : Error: rov_server.js was not found (this is expected in cloud)
        at Object.<anonymous> (C:\Users\M0064866\TICLOU~1\src\modules\rov_server_redirect.js:64:11)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at module_1.createModule.then (C:\Users\M0064866\TICLOU~1\src\host_agent.js:22:42)
        at _fulfilled (C:\Users\M0064866\TICLOU~1\src\node_modules\q\q.js:854:54)
    2019-01-08T15:22:29.022Z: Discovered Module : Serial
    2019-01-08T15:22:29.024Z: Failed to load module : target_support.js : C:\Users\M0064866\TICLOU~1\util\proxy.js:13
    });
    ^
    
    SyntaxError: Unexpected token }
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:616:28)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (C:\Users\M0064866\TICLOU~1\util\find_proxy.js:5:17)
    2019-01-08T15:22:29.027Z: Discovered Module : USB-HID
    2019-01-08T15:22:29.028Z: Agent main module running on port 64659
    2019-01-08T15:22:29.028Z: len=
    2019-01-08T15:22:29.029Z: 
    2019-01-08T15:22:29.029Z: buf=
    2019-01-08T15:22:29.030Z: {"port":64659,"version":"4.7"}
    2019-01-08T15:22:29.044Z: Module( Agent )->[ws.onMessage]{"command":"listCommands","id":1,"data":[]}
    2019-01-08T15:22:29.045Z: Module( Agent )->[ResponseHandler]{"data":{"commands":["listSubModules","createSubModule","listCommands","addConfigProperty","registerModuleWebSocket","registerModuleByPath"]},"response":1}
    2019-01-08T15:22:29.049Z: Module( Agent )->[ws.onMessage]{"command":"addConfigProperty","id":2,"data":["cloudAgentInstallerServerURL","https://dev.ti.com/ticloudagent"]}
    2019-01-08T15:22:29.049Z: Setting property cloudAgentInstallerServerURL : https://dev.ti.com/ticloudagent
    2019-01-08T15:22:29.050Z: Module( Agent )->[ResponseHandler]{"response":2}
    2019-01-08T15:22:34.607Z: Module( Agent )->[ws.onMessage]{"command":"createSubModule","id":3,"data":["File"]}
    2019-01-08T15:22:34.609Z: Module( Agent )->Creating new module
    2019-01-08T15:22:34.617Z: Module( File )->Web socket server started!
    2019-01-08T15:22:34.620Z: Module( Agent )->[ResponseHandler]{"data":{"port":64661},"response":3}
    2019-01-08T15:22:34.639Z: Module( File )->[ws.onMessage]{"command":"listCommands","id":1,"data":[]}
    2019-01-08T15:22:34.641Z: Module( File )->[ResponseHandler]{"data":{"commands":["listSubModules","createSubModule","listCommands","write"]},"response":1}
    2019-01-08T15:22:34.649Z: Module( Agent )->[ws.onMessage]{"command":"createSubModule","id":4,"data":["DeviceDetector"]}
    2019-01-08T15:22:34.650Z: Module( Agent )->Creating new module
    2019-01-08T15:22:34.651Z: Error stack: Error: Unknown module: DeviceDetector
        at Object.createSubModule (C:\Users\M0064866\TICLOU~1\src\module.js:87:27)
        at WebSocket.ws.on (C:\Users\M0064866\TICLOU~1\src\module.js:152:33)
        at emitOne (events.js:116:13)
        at WebSocket.emit (events.js:211:7)
        at Receiver.receiverOnMessage (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\websocket.js:715:20)
        at emitOne (events.js:116:13)
        at Receiver.emit (events.js:211:7)
        at Receiver.dataMessage (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\receiver.js:414:14)
        at Receiver.getData (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\receiver.js:346:17)
        at Receiver.startLoop (C:\Users\M0064866\TICLOU~1\src\node_modules\ws\lib\receiver.js:133:22)
    2019-01-08T15:22:34.652Z: Module( Agent )->[ResponseHandler]{"data":{"message":"Unknown module: DeviceDetector"},"error":4}
    

  • Nicholas,

    It looks like your proxy requires authentication.

    You could try something like this where user and password are replaced with whatever you need to use your proxy.

    exports.proxy = "user:password@usfhproxysrv02.itc.global.mahle:80";


    Regards,
    John
  • Tried that and now get a different error message: 

    7673.ccs_ticld.log

  • It is getting pretty far looking at the log and has downloaded a bunch of files. 504 is a gateway timeout. There is a thought that maybe we are overwhelming your proxy.

    We can try changing something that will make it so we only download 1 file at a time instead of the normal 10.

    Open C:\Users\<userid>\TICloudAgent\src\installer\remote_server.js
    Search for “for (let i = 0; i < 10; ++i) {“
    Change the “10” to “1”

    Hopefully that does the trick.

    Regards,
    John
  • It looks like this worked even though I was 90% certain that I had the wrong authentication username and password.  Thanks a lot, you are a genius.  

    Here are my final log files if you want to confirm that there were no errors.

    Thanks again,

    8231.ccs.log

    4478.ccs_ticld.log

  • That is awesome. I can't take credit for it. One of our developers here was the one to come up with the ideas.

    Regards,
    John