Skip to main content

Nexmosphere Sensor configuration

Please note, in order to use Sensors and Sensor events, Premium (ENTERPRISE) license is required.

Setup & Configuration

  • Navigate to Devices menu, then select the device where you want to use the sensors.
  • Open the device settings by clicking on the icon

OR

  • Click on the device card, then Select Settings tab
  • Find sensor settings, then set one the following sensor configuration according to the client type.

USB communication

If you wish to use Nexmosphere on JsCore devices, please make sure your configuration contains "port":"string" in connection, otherwise the sensors will not work.

  • Brightsign devices use port 2 as communication port, so the connection must contain "port":"2"
  • Configurations for Samsung TEP must contain a communication port, so the connection must contain "port":"1" or "2" or "3"
  • ANDROID AND WINDOWS DEVICES CANNOT USE THE "port":"string", SO THE CONFIGURATION SHOULD NOT CONTAIN IT.

Windows & Android

ANDROID AND WINDOWS DEVICES CANNOT USE THE "port":"string", SO THE CONFIGURATION SHOULD NOT CONTAIN IT.

{
"services": [
{
"uid": "nexmosphere",
"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
}
]
}
}
]
}


Brightsign

Brightsign devices use port 2 as communication port, so the connection must contain "port":"2" as a string

{
"services": [
{
"uid": "nexmosphere",
"type": "GENERIC",
"connection": {
"baudrate": 115200,
"port": "2"
},
"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
}
]
}
}
]
}


SERIAL (RS-232) communication

Brightsign

In order to use nexmosphere sensors with serial (RS-232) connection it is required to fill the connection with additional information.

"connection":{
"port":"0",
"parity":0,
"baudrate":115200,
"dataBits":8,
"stopBits":1,
"flowControl":0
}
  • To use serial (RS-232) connection you have to define 0 as communication port, so the connection must contain "port":"0", except Lg devices, where you have to use port 3 as communication port, so the connection must contain "port":"3"

LG devices

LG devices support only serial (RS-232) sensor connection.

In order to use nexmosphere sensors on LG devices it is required to fill the connection field.
  • Lg devices use port 3 as communication port, so the connection must contain "port":"3"

Configuration for serial (RS-232) communication on LG

{
"services": [
{
"uid": "nexmosphere",
"type": "GENERIC",
"settings": {
"rules": [
{
"pattern": "(\\w\\d{3}\\w)\\[(\\d*)]",
"idGroupIndex": 1,
"valueGroupIndex": 2
},
{
"pattern": "(\\w\\d{3}\\w)\\[(TR|TD)=UID:([A-Za-z0-9]*)]",
"idGroupIndex": 1,
"eventGroupIndex": 2,
"valueGroupIndex": 3
},
{
"pattern": "(\\w\\d{3}\\w)\\[(\\w*)=([A-Za-z0-9]*)]",
"idGroupIndex": 1,
"eventGroupIndex": 2,
"valueGroupIndex": 3
}
]
},
"connection": {
"port": "3",
"parity": 0,
"baudrate": 115200,
"dataBits": 8,
"stopBits": 1,
"flowControl": 0
}
}
]
}