Nexmosphere Sensor configuration
To enable sensor configuration on device you have to navigate yourself to
Manage screens > Device properties > Set sensor configuration
USB communication
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"
- ANDROID AND WINDOWS DEVICES CANNOT USE THE
"port":"string"
, SO THE CONFIGURATION SHOULD NOT CONTAIN IT.
SERIAL (RS-232) communication
SERIAL (RS-232) COMMUNICATION
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"
SERIAL (RS-232) communication on LG devices
LG devices support only serial (RS-232) sensor connection.
Please note
In order to use nexmosphere sensors on LG devices it is required to fill the connection with additional information.
- 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
}
}
]
}
Connection on Windows & Android devices
Additional Information
ANDROID AND WINDOWS DEVICES CANNOT USE THE "port":"string"
, SO THE CONFIGURATION SHOULD NOT CONTAIN IT.
Default configuration
{
"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
}
]
}
}
]
}