cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

how do i connect thingworx to raspberry pi

Visitor

how do i connect thingworx to raspberry pi

is there any way we can connect thingworx to raspberrypi rather than using edge microserver.

help out in an easy way to connect raspberrypi to thingworx, the steps given in this link is not helpful https://developer.thingworx.com/resources/guides/thingworx-raspberry-pi-quickstart/install-ems

Make it easy, as i am struck with step 5.

help me as soon as possible

3 REPLIES 3

Re: how do i connect thingworx to raspberry pi

Hello,

 

As far as I know there is no other way to connect Thingworx to the Raspberry Pi.

 

However I can explain step 5 to you:

Step 5 is used to verify that the unzip operation on the zip file was successful.

 

The command you're asked to execute "ls -l" lists the files and directories of the current path you're in, the "-l" switch is used to show further details, size, modified date and time, permissions and owners.

 

In the list provided you should find the folder microserver which indicates a successful unzip operation.

 

In case your list is too large and not conveniently readable you can pipe the output of the command to a file, that you can then open in a text editor. This can be done like so:

"ls -l >> list.txt" and will create a file called list.txt with the content of the commands output.

 

In Step 6 you [c]hange [d]irectory by running cd microserver which directs your current shells path to the microserver directory.

 

Let me know if you still have questions regarding the steps.

 

Regards,

Pascal

 

 

 

Re: how do i connect thingworx to raspberry pi

Hi @ziondivya.

 

If the response provided by @pgrodowski has answered your questions, please mark it as the Accepted Solution, for the benefit of others who may have the same questions.

 

Regards.

 

--Sharon

Re: how do i connect thingworx to raspberry pi

hello all, could you help me in rectifying this error, when launching ems server

drwxr-xr-x 5 pi pi 4096 Oct 28 18:09 .
drwxr-xr-x 24 pi pi 4096 Nov 8 09:13 ..
drwxr-xr-x 4 pi pi 4096 Oct 28 18:09 doc
drwxr-xr-x 5 pi pi 4096 Nov 8 09:37 etc
drwxr-xr-x 2 pi pi 4096 Oct 28 18:09 install_services
-rw-r--r-- 1 pi pi 2256690 Nov 30 2017 libcrypto.so.1.0.0
-rw-r--r-- 1 pi pi 404977 Nov 30 2017 libssl.so.1.0.0
-rwxr-xr-x 1 pi pi 1202986 Nov 30 2017 luaScriptResource
-rwxrwxr-x 1 pi pi 820856 Nov 30 2017 wsems
pi@raspberrypi:~/microserver $ sudo chmod 775 wsems
pi@raspberrypi:~/microserver $ sudo ./wsems
[FORCE] 2018-11-08 09:38:14,96 ./wsems: Initializing EMS ....
[FORCE] 2018-11-08 09:38:14,96 main: Using config file /home/pi/microserver/etc/config.json
[INFO ] 2018-11-08 09:38:14,96 ./wsems: Creating the WsEms proxy.
[INFO ] 2018-11-08 09:38:14,96 ./wsems: Starting HTTP Server.
[INFO ] 2018-11-08 09:38:14,97 Main: Using custom certificate and private key for HTTP Server
[ERROR] 2018-11-08 09:38:14,97 Main: Failed to get HTTP Server ssl configuration.
[FORCE] 2018-11-08 09:38:14,97 Main: Exiting....
[DEBUG] 2018-11-08 09:38:14,97 jsonConfigurator::~jsonConfigurator: Deleting JSON object
pi@raspberrypi:~/microserver $

 

 

here is the config.json file code for connecting ems


{

"ws_servers": [{

"host": "192.168.43.214",

"port": 80

}],

"http_server": {

"host": "192.168.43.232",

"port": 8080

},

"appKey": "d59527d8-4161-4187-a15a-5120fdd65c35",

"logger": {

"level": "DEBUG"

},

"auto_bind": [{

"name": "PiThing",

"gateway": false

}],

"certificates": {

"validate": false,

"allow_self_signed": true

},

"ws_connection": {

"encryption": "none",

"verbose": true,

"msg_timeout": 1000

}

}