Skip to main content

How to setup Wallboard with Nexmosphere sensors

In this example We use a Nexmosphere XN-185, XT-B4, and Push buttons.

First step is setting up the device and the sensors

LICENSE

You will need an Android device with Enterprise license in the Wallboard CMS.

Set the sensor configuration of the device to the following

If Android application version is 3.0.117 or higher

{
"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
}
]
}
}
]
}

If Android application version is 3.0.116 or lower

{
"serialDevices":[
{
"uid":"NEXMO12345",
"type":"generic",
"settings":{
"pattern":"(\\w\\d{3}\\w)\\[(\\d)]\r\n",
"eventGroupIndex":1,
"valueGroupIndex":2
}
}
],
"serialSettings":{
"baudRate":115200
}
}
  • The pattern regexp determines the format of received messages.

  • Attach the buttons to the Nexmosphere XT-B4 interface.

  • Attach the Nexmosphere XN-185 controller to the Android device.

  • Open a console on the Android device from the Wallboard CMS and check if the events appear after pressing the button

img.png

Create content

  • The main concept will be the buttons switch pages, and an image widget sends back message to the Nexmosphere controller

  • First we set up the received message handling under the Content properties Edit sensor events section

Received message: { " event " : " X001A " , " value " : " 3 " }
img_1.png
Received message: { " event " : " X001A " , " value " : " 5 " }
img_2.png

Now set up the event sending on the image widget. When the widget is interacted it will send the value to the Nexmosphere controller.

usage of \r\n in output value
  • If you set up this content on a device with JSCore client, INSERT \r\n to the end of the output value, unless it may not work as expected.

  • If you use a device with android or windows client, DO NOT USE the \r\n on the end of the output value, because the client can recognise it automatically.
    It causes an unwanted duplication that may affect the sensor's behaviour.

Turn on "button 3" light
img_3.png
Turn off all button lights
img_4.png

Now everything is set up. Assign the content to the screen and try out the concept by pressing the buttons and the images