Part Number: TDA4VM
Hi,
Please can you provide some examble on websocket server component/configuration and examble to tryout?
Regards,
Vadivel
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.
Part Number: TDA4VM
Hi,
Please can you provide some examble on websocket server component/configuration and examble to tryout?
Regards,
Vadivel
Hi Vadivel,
We have the websocket component in the filesystem, as seen in this ticket: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1085300/tda4vm-sdk8-1-websocketd-recipe-is-failing
However, we do not maintain an example on using it, but it should be the same as you would on any other system. You can find examples online and try them out on the Linux SDK. Please let me know if you have further questions.
Hi Erick,
I am getting following error for the code. so, how to add websocket module? through yocto build.
Note: websocketd (daemon) - already there in the final-image
Code:
var websocket= require('ws')
or
var ws= require('websocket')
Error: Cannot find module 'ws'
or
Error: Cannot find module 'websocket'
root@j7-evm:/opt/cabin# node server_new.js
internal/modules/cjs/loader.js:818
throw err;
^
Error: Cannot find module 'ws'
Require stack:
- /opt/cabin/server_new.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/opt/cabin/server_new.js:3:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/opt/cabin/server_new.js' ]
}
root@j7-evm:/opt/cabin#
root@j7-evm:/opt/cabin# npm --version
6.14.11
root@j7-evm:/opt/cabin#
root@j7-evm:/opt/cabin#
root@j7-evm:/opt/cabin# node --version
v12.21.0
root@j7-evm:/opt/cabin#
root@j7-evm:/opt/cabin#
Thanks & Regards,
Vadivel
Vadivel,
Statcol application uses websocketd, it is already part of the default SDK and runs on the EVM.
Please see this example application using this documentation: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_04_00_11/exports/docs/linux/How_to_Guides/Target/How_to_visualize_statistics_data.html?highlight=statcol
Regards
Karthik