Skip to main content

How to setup Nexmosphere's DM-XN10 Demo kit board on LG devices

Nexmosphere Table

In this tutorial we will use Nexmosphere's DM-XN10 Demo kit board. The default Xperience Controller on this board is XN-185, but in this case because LG screens utilize only serial communication we changed it to XN-180.

  • If you wish to use other devices feel free to connect the via USB-A cable to the XN-185 Xperience controller.

▶ Watch YouTube video                                                                        

Setup sensor

  • Connect the Nexmosphere board to the LG screen via serial-jack-jack cable
  • Go to Home page right click on the LG screen then navigate yourself to Manage screen >> Device Properties >> Set sensor configuration
  • In the Sensor config field insert the following configuration

Sensor configuration

{
"services": [
{
"uid": "NEXMO",
"type": "GENERIC",
"connection": {
"baudrate": 115200
},
"settings": {
"rules": [
{
"pattern": "(\\w\\d{3}\\w)\\[(\\d*)]\r\n",
"eventGroupIndex": 1,
"valueGroupIndex": 2
},
{
"pattern": "(\\w\\d{3}\\w)\\[(TR|TD)=UID:([A-Za-z0-9]*)]\r\n",
"idGroupIndex": 1,
"eventGroupIndex": 2,
"valueGroupIndex": 3
},
{
"pattern": "(\\w\\d{3}\\w)\\[(\\w*)=([A-Za-z0-9]*)]\r\n",
"idGroupIndex": 1,
"eventGroupIndex": 2,
"valueGroupIndex": 3
}
]
}
}
]
}
SHOW CONSOLE WINDOW (optional)

After you sat the configuration, enable the Show console window on your device, when you interact with the board it will show the actual sensor's ID, Event and Value, which will prove the connection between the board and the LG screen.

Content

  • Add 3 text pages to the main page.

  • Fill them with Event, Value and ID as indicators.

  • Duplicate the 3 text widgets, then place them under the original widgets.

img.png
RENAME THE WIDGETS

In the layers menu, rename the duplicated widgets as event, value and id. This way you can easily select the affected widgets when they needed.

img.png

  • On the right top corner, navigate yourself to Properties >> Content then scroll down to Edit sensor events

  • Click on the Add new button.

  • Choose Interact widget as Action type, then select the page, and the widget.

  • As Value origin select the Property of received value, this way you can define which value must be shown inside the widget.

  • In this case we selected the event(text) named widget as the affected widget.

  • Define the Property name according to the value you wish to see inside the widget.

  • Here we defined event

  • Please do not fill the Sensor event box on the left side, as it would specify listening for only one event, whereas our goal is to capture all events.

  • Repeat it with value and id.

Your sensor events should look like this:

img.png
  • After you finished it, save the content, then assign it to the LG screen.

Testing the content

  • When you interact with sensors on the board, the content will display the Event, Value and ID of the actual sensor.
img.pngimg_1.pngimg_2.png

Downloadable Content