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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

CSDK Connnection issue

mmarkenson
14-Alexandrite

CSDK Connnection issue

I'm getting the following errors connecting a raspberry pi with the CSDK, does anyone know what can be causing this?


[FORCE] 2017-05-01 12:27:53,686: Starting up

[DEBUG] 2017-05-01 12:27:53,692: twWs_Create: Initializing Websocket Client for :8224//Thingworx/WS

[DEBUG] 2017-05-01 12:27:53,692: twTlsClient_Create: Initializing TLS Client

[DEBUG] 2017-05-01 12:27:53,693: twTlsClient_Close: Disconnecting from server

[ERROR] 2017-05-01 12:27:53,693: twWs_Create: Error creating BSD socket to be used for the websocket

[ERROR] 2017-05-01 12:27:53,693: twApi_Initialize: Error creating websocket structure, retrying

  [DEBUG] 2017-05-01 12:27:58,693: twWs_Create: Initializing Websocket Client for        

ACCEPTED SOLUTION

Accepted Solutions
posipova
20-Turquoise
(To:mmarkenson)

What are your platform and SDK versions?

Also please check for 1. firewall 2. DNS on the pi. Might need to manually add an entry

View solution in original post

8 REPLIES 8
posipova
20-Turquoise
(To:mmarkenson)

Can we see your configuration? this line points to a possible issue :

Initializing Websocket Client for :8224//Thingworx/WS



​Typically it should be <hostname:port>//Thingworx/WS

for example localhost:443//Thingworx/WS

mmarkenson
14-Alexandrite
(To:posipova)

Omitted part of the information with [ ]

tw_host=[I have url in here].thingworx.io

tw_port=8443

AppKey=[I have my app key in here]

ScanRate=500

tw_name=JetEngine01

FAE_BoardEnable=false

PinConfig=pinConfig_rPi2.json

Debug=true

IPLocation=true

posipova
20-Turquoise
(To:mmarkenson)

mmarkenson
14-Alexandrite
(To:posipova)

Yes I do

posipova
20-Turquoise
(To:mmarkenson)

What are your platform and SDK versions?

Also please check for 1. firewall 2. DNS on the pi. Might need to manually add an entry

mmarkenson
14-Alexandrite
(To:posipova)

firewall is good as I've connected pi using ems. What do you mean by 2. "DNS on the pi. Might need to manually add an entry"?

mmarkenson
14-Alexandrite
(To:posipova)

It was the DNS on the pi. Thanks for the help!

posipova
20-Turquoise
(To:mmarkenson)

Glad it worked, thank you for the update!

Announcements


Top Tags