Data-Layer-Remote-Connection.png

Data exchange between controls – ctrlX Data Layer Remote Connection

nickH
Community Moderator
Community Moderator
Introduction

The whole Data Layer of a control can be shown in the Data Layer of another control via the Data Layer remote connection. This is a build in feature of the ctrlX Data Layer, you don't need to install any additional app or need any additional license. The communication between the controls is based on tcp and therefore NRT. 

Prerequisites

The only prerequisite is, that the control got to be in the same network. In the following I will show how you can set this up with two ctrlX COREs in the same network (ip1: 192.168.1.1 , ip2: 192.168.1.2), but you could as well use any other ctrlX OS device as well.
ctrlX CORE or other ctrlX OS devices connected in the same networkctrlX CORE or other ctrlX OS devices connected in the same network

Step-by-Step guide

The configuration of a Data Layer remote connection can be easily done via the ctrlX CORE web UI by one simple create request to the node “devices/remotes” in the Data Layer (Settings -> Data Layer), with the following payload:

 

 

{
 "name" : "otherControl",
 "address" : "tcp://<user>:<pw>@192.168.1.2"
}

 

 

create the child node at devices/remotes in the ctrlX Data Layercreate the child node at devices/remotes in the ctrlX Data Layer

Check the output in the Data Layer

Now you can already access the Data Layer of the other control at this path: “devices/remotes/otherControl”. This data can be accessed by you as a user and also by any other app running on this ctrlX CORE or ctrlX OS device. This configuration is stored persistent in the App Data on the ctrlX CORE since V1.20. (Note: for older versions the remote Data Layer connection can be also used, but the configuration is not persistent) 

The Data Layer of the "otherControl" (192.168.1.2) in the Data Layer of the first control (192.168.1.1)The Data Layer of the "otherControl" (192.168.1.2) in the Data Layer of the first control (192.168.1.1)

Documentation
Further Information
  • How to do a access to a limited set of nodes: See this thread.
5 Comments
Rathinavel
Established Member

Hello,

"tcp://boschrexroth:boschrexroth@192.168.1.2"

in the above, does "boschrexroth" is the username & password of the ctrlX core with IP 192.168.1.2

Rathinavel L

nickH
Community Moderator
Community Moderator

Yes this is true. In this example "boschrexroth" is the user name and the password of the ctrlX CORE with the IP-Address 192.168.1.2.

TrainerJohanna
New Poster

Hi,

what are the reasons if I "lose" my connection and how can I solve the problem (without restarting the CORE)?
In my set up I have 3 ctrlX COREs connected to a switch via port XF51.
Each CORE has a data layer remote connection to the other two. 
CORE 1 now lost the connection to CORE 2, but CORE 2 still has a connection to CORE1.
After restarting CORE 1 it worked again.

Thanks for your help.

nickH
Community Moderator
Community Moderator

Hi @TrainerJohanna 

how does it look when you lose your connection? Maybe it would be helpful if we look directly on your PC. 

Best regards, 

Nick  

nattomi
Occasional Visitor

Hello,

Is it possible to set this communication up between 2 x virtual CoreX, running on the same PC?

I have tried to setup using the ports I have setup with portforwarding, on a 2.6.2 image but it did not work.   "address" : "tcp://boschrexroth:boschrexroth@127.0.0.1:3069".

Please advise,

Thanks

 

Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist