Closed yd1234 closed 8 years ago
@yd1234 What type of serial gateway are you using on Raspberry PI(RPI
)?
NRF24L01+
directly connected with RPI
?arduino
with RPI Tx/Rx
?arduino
withUSB to TTL
connection?Hi, I'm using an arduino with ATmega328 microprocessor and RFM69 radio connected to RPI UART Tx/Rx directly. The gateway I'm using is a board with arduino and radio as described above.
Regards
@yd1234 By default RPI
serial port will be used for console service. You have to disable default settings for serial port.
You may follow this tutorial
It's already done on my RPI. When using minicom I can see messages sent and received by the gateway.
@yd1234 can you post mycontroller/logs/mycontroller.log
? you can email me jkandasa at gmail dot com
Hi please find my log file
Thanks and regards.
Y. Diop
Le 11 août 2016 à 20:23, Jeeva Kandasamy notifications@github.com a écrit :
@yd1234 https://github.com/yd1234 can you post mycontroller/logs/mycontroller.log? you can email me jkandasa at gmail dot com
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mycontroller-org/mycontroller/issues/241#issuecomment-239246959, or mute the thread https://github.com/notifications/unsubscribe-auth/AF0t_f75tU4nz9XhDilLhO_x1lHKtaVUks5qe2iNgaJpZM4JiU2d.
Hi please find this other log
thanks and regard
Y. Diop
Le 11 août 2016 à 20:23, Jeeva Kandasamy notifications@github.com a écrit :
@yd1234 https://github.com/yd1234 can you post mycontroller/logs/mycontroller.log? you can email me jkandasa at gmail dot com
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mycontroller-org/mycontroller/issues/241#issuecomment-239246959, or mute the thread https://github.com/notifications/unsubscribe-auth/AF0t_f75tU4nz9XhDilLhO_x1lHKtaVUks5qe2iNgaJpZM4JiU2d.
@yd1234 Thank you for the log file. From your log I could not get what could be the exact problem on your environment. But few things I noted,
MQTT broker
on your raspberry PI or some other application running on the port 1883
and/or 7080
. You may disable inbuilt MQTT broker
on GUI Settings >> MQTT broker
RPI
is in heavy load, because MyController server will not take these much time to start, MyController.org server started in [169675] ms
. On normal environment it will be less than 30000 milliseconds
JRE
not JDK
. I would recommend you to use JDK
for MyController. Some of libraries available on JDK
, which is required by MyController. You may follow this tutorialHI thanks for your quick reply.
Exception in thread "Thread-150" java.lang.NumberFormatException: For input string: ",pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-161" java.lang.NumberFormatException: For input string: ",pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ4"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-174" java.lang.NumberFormatException: For input string: "t=1,pt=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-186" java.lang.NumberFormatException: For input string: ",pt=1,l=,pt=0,l=0,ft=0,st=4,l=4,MSG:READ8"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-197" java.lang.NumberFormatException: For input string: ",pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ20"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
@yd1234 looks like you are sending node Battery level
message with string payload like mentioned on the error, t=1,pt=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6
To narrow down this issue could you please enable following debug (DEBUG
) logs on MyController?
File name: mycontroller/conf/logback.xml
<logger level="DEBUG" name="org.mycontroller.standalone.message" />
<logger level="DEBUG" name="org.mycontroller.standalone.gateway" />
<logger level="DEBUG" name="org.mycontroller.standalone.gateway.serialport" />
, I hope still you are using serial gateway.NOTE: You have to wait two minutes to get updated your changes or To get enable DEBUG immediately, you have to restart (stop/start) MyController
please find below the log content:
2016-08-13 13:04:57,165 INFO [main] [org.mycontroller.standalone.db.DataBaseUtils:154] Application information: [Version:0.0.3.Alpha2, Database version:1.02.10 - 2016 Jul 29]
2016-08-13 13:04:59,269 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:82] MessageMonitorThread new thread started.
2016-08-13 13:04:59,292 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:44] Defined Queue Size:1000
2016-08-13 13:05:02,041 DEBUG [main] [org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl:64] Serial port gateway initialized, GatewayTable[GatewaySerial(super=Gateway(id=1, enabled=true, name=MyGw, type=SERIAL, networkType=MY_SENSORS, timestamp=null, state=UNAVAILABLE, statusMessage=Yet to start this gateway!, statusSince=1471093500930), driver=AUTO, portName=/dev/ttyAMA0, baudRate=9600, retryFrequency=120, runningDriver=PI4J)]
2016-08-13 13:05:07,175 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6]
2016-08-13 13:05:07,221 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:07,228 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:07,236 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:07,574 ERROR [Thread-4] [org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge:60] Unable to process this rawMessage:RawMessage(gatewayId=1, data=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, subData=null, isTxMessage=false, networkType=MY_SENSORS)
org.mycontroller.standalone.message.RawMessageException: Unknown message format:[,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:135) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 13:05:17,611 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2]
2016-08-13 13:05:17,618 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:17,628 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:17,632 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:17,709 DEBUG [Thread-27] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Heartbeat, acknowledge=false, payload=, isTxMessage=true, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093517711)
2016-08-13 13:05:17,820 DEBUG [Thread-27] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=,c=3,t=0,pt=1,l=,c=3,t=1,pt=0,l==1,pt=0,=1,t=0,pt=4,l=4,MSG:READ=18,pt=055,c=3,t=18,pt=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ0, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093434155, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Heartbeat, acknowledge=false, payload=, isTxMessage=true, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093517711)]
2016-08-13 13:05:17,977 DEBUG [Quartz_Scheduler_Worker-1] [org.mycontroller.standalone.message.McMessageUtils:523] Message sent to gateway, RawMessage(gatewayId=1, data=254;255;3;0;18;
, subData=null, isTxMessage=false, networkType=MY_SENSORS)
2016-08-13 13:05:18,021 DEBUG [Thread-28] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093518021)
2016-08-13 13:05:18,035 DEBUG [Thread-29] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=NODE_BC, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Heartbeat, acknowledge=false, payload=, isTxMessage=true, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093518035)
2016-08-13 13:05:18,093 DEBUG [Quartz_Scheduler_Worker-1] [org.mycontroller.standalone.message.McMessageUtils:523] Message sent to gateway, RawMessage(gatewayId=1, data=255;255;3;0;18;
, subData=null, isTxMessage=false, networkType=MY_SENSORS)
2016-08-13 13:05:18,149 DEBUG [Thread-28] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=,c=3,t=0,pt=1,l=,c=3,t=1,pt=0,l==1,pt=0,=1,t=0,pt=4,l=4,MSG:READ=18,pt=055,c=3,t=18,pt=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ0, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093434155, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093518021)]
2016-08-13 13:05:18,291 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[254;255;3;0;0;=18,pt=0;255;3;=4,sg=0::SEND 0-c:]
2016-08-13 13:05:18,294 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;=18,pt=0;255;3;=4,sg=0::SEND 0-c:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:18,304 DEBUG [Thread-29] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_HEARTBEAT
2016-08-13 13:05:18,311 DEBUG [Thread-28] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 13:05:18,320 DEBUG [Thread-27] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_HEARTBEAT
2016-08-13 13:05:18,324 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;=18,pt=0;255;3;=4,sg=0::SEND 0-c:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:18,359 DEBUG [Thread-28] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2%]
2016-08-13 13:05:18,360 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;=18,pt=0;255;3;=4,sg=0::SEND 0-c:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:18,380 DEBUG [Thread-35] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=null, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093518381)
Exception in thread "Thread-28" java.lang.NumberFormatException: For input string: ",pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
2016-08-13 13:05:18,469 DEBUG [Thread-35] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093518368, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=null, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093518381)]
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
2016-08-13 13:05:18,580 DEBUG [Thread-35] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 13:05:18,583 DEBUG [Thread-35] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:null%]
2016-08-13 13:05:18,696 ERROR [Thread-35] [org.mycontroller.standalone.db.dao.BaseAbstractDaoImpl:187] unable to add new item:[MetricsBatteryUsage(node=Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=null, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093518599, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED), timestamp=1471093518632, samples=1, min=null, max=null, avg=null, aggregationType=RAW, timestampFrom=null, timestampTo=null)]
java.sql.SQLException: Unable to run insert stmt on object MetricsBatteryUsage(node=Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=null, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093518599, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED), timestamp=1471093518632, samples=1, min=null, max=null, avg=null, aggregationType=RAW, timestampFrom=null, timestampTo=null): INSERT INTO `metrics_battery_usage` (`nodeId` ,`timestamp` ,`samples` ,`min` ,`max` ,`avg` ,`aggregationType` ) VALUES (?,?,?,?,?,?,?)
at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:22) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:135) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at com.j256.ormlite.stmt.StatementExecutor.create(StatementExecutor.java:450) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at com.j256.ormlite.dao.BaseDaoImpl.create(BaseDaoImpl.java:310) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.db.dao.BaseAbstractDaoImpl.create(BaseAbstractDaoImpl.java:184) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:250) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
Caused by: org.h2.jdbc.JdbcSQLException: NULL not allowed for column "AVG"; SQL statement:
INSERT INTO `metrics_battery_usage` (`nodeId` ,`timestamp` ,`samples` ,`min` ,`max` ,`avg` ,`aggregationType` ) VALUES (?,?,?,?,?,?,?) [23502-176]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:344) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.message.DbException.get(DbException.java:178) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.message.DbException.get(DbException.java:154) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.table.Column.validateConvertUpdateSequence(Column.java:308) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.table.Table.validateConvertUpdateSequence(Table.java:726) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.command.dml.Insert.insertRows(Insert.java:152) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.command.dml.Insert.update(Insert.java:115) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.command.CommandContainer.update(CommandContainer.java:79) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.command.Command.executeUpdate(Command.java:254) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:158) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:144) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at com.j256.ormlite.jdbc.JdbcDatabaseConnection.insert(JdbcDatabaseConnection.java:170) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:91) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
... 7 common frames omitted
2016-08-13 13:05:18,785 DEBUG [Thread-35] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=null, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093518599, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=null, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093518381)]
2016-08-13 13:05:27,050 DEBUG [Quartz_Scheduler_Worker-4] [org.mycontroller.standalone.message.McActionEngine:276] Sending Node discover
2016-08-13 13:05:27,088 DEBUG [Thread-38] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=NODE_BC, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Discover, acknowledge=false, payload=, isTxMessage=true, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093527089)
2016-08-13 13:05:27,116 DEBUG [Thread-38] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_DISCOVER
2016-08-13 13:05:27,123 DEBUG [Quartz_Scheduler_Worker-4] [org.mycontroller.standalone.message.McMessageUtils:523] Message sent to gateway, RawMessage(gatewayId=1, data=255;255;3;0;20;
, subData=null, isTxMessage=false, networkType=MY_SENSORS)
2016-08-13 13:05:28,292 INFO [main] [org.mycontroller.standalone.StartApp:209] TJWS server started successfully, HTTPS Enabled?:true, HTTP(S) Port: [8443]
2016-08-13 13:05:28,297 INFO [main] [org.mycontroller.standalone.StartApp:107] MyController.org server started in [52611] ms
2016-08-13 13:05:28,391 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[,pt=1,l==20,pt=01,pt=1,lEAD 254-55;3;0;1;]
2016-08-13 13:05:28,394 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=,pt=1,l==20,pt=01,pt=1,lEAD 254-55;3;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:28,398 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=,pt=1,l==20,pt=01,pt=1,lEAD 254-55;3;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:28,401 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=,pt=1,l==20,pt=01,pt=1,lEAD 254-55;3;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:28,407 ERROR [Thread-4] [org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge:60] Unable to process this rawMessage:RawMessage(gatewayId=1, data=,pt=1,l==20,pt=01,pt=1,lEAD 254-55;3;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)
org.mycontroller.standalone.message.RawMessageException: Unknown message format:[,pt=1,l==20,pt=01,pt=1,lEAD 254-55;3;0;1;]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:135) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 13:05:29,047 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[t=4,l=4,MSG:READ9]
2016-08-13 13:05:29,058 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=t=4,l=4,MSG:READ9, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:29,068 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=t=4,l=4,MSG:READ9, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:29,079 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=t=4,l=4,MSG:READ9, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:29,100 ERROR [Thread-4] [org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge:60] Unable to process this rawMessage:RawMessage(gatewayId=1, data=t=4,l=4,MSG:READ9, subData=null, isTxMessage=false, networkType=MY_SENSORS)
org.mycontroller.standalone.message.RawMessageException: Unknown message format:[t=4,l=4,MSG:READ9]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:135) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 13:05:39,483 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[254;255;3;0;0;,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6]
2016-08-13 13:05:39,496 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:39,512 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:39,515 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:05:39,531 DEBUG [Thread-63] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093539531)
2016-08-13 13:05:39,689 DEBUG [Thread-63] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=null, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093518796, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093539531)]
2016-08-13 13:05:39,776 DEBUG [Thread-63] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 13:05:39,782 DEBUG [Thread-63] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6%]
Exception in thread "Thread-63" java.lang.NumberFormatException: For input string: ",pt=0,l==1,pt=0,t=4,l=4,MSG:READ6"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
2016-08-13 13:06:00,354 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2]
2016-08-13 13:06:00,358 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:06:00,362 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:06:00,370 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 13:06:00,389 DEBUG [Thread-85] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093560389)
2016-08-13 13:06:00,414 DEBUG [Thread-85] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471093502047, type=SERIAL, properties={br=9600, rdr=pi4j, rf=120, dr=Auto, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ6, eraseConfig=null, firmware=null, state=UP, lastSeen=1471093539785, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471093560389)]
2016-08-13 13:06:00,441 DEBUG [Thread-85] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 13:06:00,443 DEBUG [Thread-85] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2%]
Exception in thread "Thread-85" java.lang.NumberFormatException: For input string: ",pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ,c=3,t=0,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
at org.mycontroller.standalone.message.McMessageEngine.internalSubMessageTypeSelector(McMessageEngine.java:246)
at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:129)
at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:962)
at java.lang.Thread.run(Thread.java:745)
@yd1234 You have received a invalid message from your MySensors node.
2016-08-13 13:05:17,611 DEBUG [pi4j-single-executor-0] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerPi4j:52] Received a message:[254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2]
254;255;3;0;0;,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2
It says,
254
3
-> internal
0
-> I_BATTERY_LEVEL
,pt=1,l=,pt=0,l==1,pt=0,t=4,l=4,MSG:READ2
, which is invalid, it should be either integer or double value.Which version of MySensor firmware are you using? Right now I do not have any node with battery level to test it locally.
Still I couldn't guess problem with MySensors or with MyController. Could you please do one more debug? Stop MyController. watch your serial gateway on serial port directly and report the result here.
Thank you for everything!
I'm using 2.0.0 release of mysensors. Here an example of serial port using minicom:
;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=11,pt=0,l14,sg=0:MockMySensors
54;255;3;0;11;MockMySensors
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=12,pt=0,l=4,sg=0:v0.5
254;255;3;0;12;v0.5
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=7,c=0,t=6,pt=0,l=16,sg=0:House Temperarue
254;7;0;0;6;House Temperarue
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2
0;255;3;0;9;TSP:MSG:SEND 0-0-254-254 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=0,pt=1,l=1,sg=0:43
254;255;3;0;0;43
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=1,pt=0,l=0,sg=0:
254;255;3;0;1;
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=7,c=1,t=0,pt=4,l=4,sg=0:19
254;7;1;0;0;19
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=0,pt=1,l=1,sg=0:43
254;255;3;0;0;43
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=0,pt=1,l=1,sg=0:51
254;255;3;0;0;51
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=1,pt=0,l=0,sg=0:
254;255;3;0;1;
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=7,c=1,t=0,pt=4,l=4,sg=0:22
254;7;1;0;0;22
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=0,pt=1,l=1,sg=0:51
254;255;3;0;0;51
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=0,pt=1,l=1,sg=0:87
254;255;3;0;0;87
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=1,pt=0,l=0,sg=0:
254;255;3;0;1;
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=7,c=1,t=0,pt=4,l=4,sg=0:39
254;7;1;0;0;39
0;255;3;0;9;TSP:MSG:READ 254-254-0 s=255,c=3,t=0,pt=1,l=1,sg=0:87
254;255;3;0;0;87
@yd1234 Thank you for the report. Problem with MyController. I will find the root case and fix it soon.
Thank you so much!
@yd1234 Can you change serial driver from Auto
to jSerialComm
? And check do you face this issue?
If possible can you come on GITTER chat?
When changing to JSerialComm, then new nodes automatically appears in nodes pages (node id 23, 24 and 0), same for sensors page (one sensor with nodded 24, sensorid 7) I got the battery status but no temperature data. Log below:
2016-08-13 14:46:06,446 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;9, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:06,449 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;9, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:06,453 DEBUG [Thread-90] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=9, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099566454)
2016-08-13 14:46:06,474 DEBUG [Thread-90] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=0, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099554779, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=9, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099566454)]
2016-08-13 14:46:06,495 DEBUG [Thread-90] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 14:46:06,497 DEBUG [Thread-90] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:9%]
2016-08-13 14:46:06,539 DEBUG [Thread-90] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=9, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099566499, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=9, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099566454)]
2016-08-13 14:46:15,551 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7]
2016-08-13 14:46:15,553 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:15,556 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:15,566 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:15,568 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[254;2574]
2016-08-13 14:46:15,572 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;2574, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:15,576 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:15,585 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;2574, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:15,587 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;2574, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:15,591 ERROR [Thread-4] [org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge:60] Unable to process this rawMessage:RawMessage(gatewayId=1, data=254;2574, subData=null, isTxMessage=false, networkType=MY_SENSORS)
org.mycontroller.standalone.message.RawMessageException: Unknown message format:[254;2574]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:135) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:16,179 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:]
2016-08-13 14:46:16,182 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,189 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,191 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,195 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:16,199 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[54;255;;0;1;]
2016-08-13 14:46:16,201 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,208 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,212 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,216 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:129) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:16,762 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:33]
2016-08-13 14:46:16,764 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:33, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,768 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:33, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,771 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:33, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,776 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:33, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:16,781 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[54;7;1;;0;33]
2016-08-13 14:46:16,783 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=54;7;1;;0;33, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,789 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=54;7;1;;0;33, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,791 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=54;7;1;;0;33, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,797 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=54;7;1;;0;33, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:130) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:16,858 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7]
2016-08-13 14:46:16,860 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,863 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,865 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,871 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:7, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:16,873 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[254;255;3;0;0;4]
2016-08-13 14:46:16,877 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;4, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,879 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;4, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,882 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;4, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:16,886 DEBUG [Thread-91] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=4, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099576886)
2016-08-13 14:46:16,899 DEBUG [Thread-91] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=9, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099566542, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=4, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099576886)]
2016-08-13 14:46:16,917 DEBUG [Thread-91] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 14:46:16,919 DEBUG [Thread-91] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:4%]
2016-08-13 14:46:16,954 DEBUG [Thread-91] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=4, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099576922, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=4, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099576886)]
2016-08-13 14:46:25,987 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8]
2016-08-13 14:46:25,989 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:25,992 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:25,995 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,000 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:26,002 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[254;255;3;0;0;7]
2016-08-13 14:46:26,006 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,009 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,011 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,016 DEBUG [Thread-92] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=7, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099586023)
2016-08-13 14:46:26,036 DEBUG [Thread-92] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=4, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099576957, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=7, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099586023)]
2016-08-13 14:46:26,054 DEBUG [Thread-92] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 14:46:26,056 DEBUG [Thread-92] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:7%]
2016-08-13 14:46:26,078 DEBUG [Thread-92] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=7, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099586058, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=7, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099586023)]
2016-08-13 14:46:26,615 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:]
2016-08-13 14:46:26,617 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,620 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,623 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,628 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=1pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:26,634 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[54;255;;0;1;]
2016-08-13 14:46:26,637 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,642 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,644 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:26,649 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=54;255;;0;1;, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:129) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:27,197 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:39]
2016-08-13 14:46:27,200 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:39, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,202 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:39, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,204 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:39, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,215 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=7,c=1,t=0,p=4,l=4,sg=0:39, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:27,217 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[54;7;1;;0;39]
2016-08-13 14:46:27,222 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=54;7;1;;0;39, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,225 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=54;7;1;;0;39, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,228 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=54;7;1;;0;39, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,233 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=54;7;1;;0;39, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:130) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:27,294 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8]
2016-08-13 14:46:27,296 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,299 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,301 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,307 ERROR [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:70] RawMessage[RawMessage(gatewayId=1, data=;255;3;0;9;TSP:SG:READ 254-2540 s=255,c=3,t=0pt=1,l=1,sg=0:8, subData=null, isTxMessage=false, networkType=MY_SENSORS)] throws exception while processing!,
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_101]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_101]
at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_101]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.updateSerialMessage(MySensorsRawMessage.java:127) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsRawMessage.<init>(MySensorsRawMessage.java:66) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeRawMessage(MySensorsProviderBridge.java:58) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:536) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:64) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:85) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2016-08-13 14:46:27,309 DEBUG [Thread-42] [org.mycontroller.standalone.gateway.serialport.SerialDataListenerjSerialComm:64] Received a message:[254;255;3;0;0;7]
2016-08-13 14:46:27,313 DEBUG [Thread-42] [org.mycontroller.standalone.message.RawMessageQueue:50] Added new message, Queue size:1, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,315 DEBUG [Thread-4] [org.mycontroller.standalone.message.RawMessageQueue:60] Removed a message, Queue size:0, Message:[RawMessage(gatewayId=1, data=254;255;3;0;0;7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,317 DEBUG [Thread-4] [org.mycontroller.standalone.message.MessageMonitorThread:61] Processing message:[RawMessage(gatewayId=1, data=254;255;3;0;0;7, subData=null, isTxMessage=false, networkType=MY_SENSORS)]
2016-08-13 14:46:27,322 DEBUG [Thread-93] [org.mycontroller.standalone.message.McMessageEngine:98] McMessage:McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=7, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099587322)
2016-08-13 14:46:27,335 DEBUG [Thread-93] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=7, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099586081, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=7, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099587322)]
2016-08-13 14:46:27,349 DEBUG [Thread-93] [org.mycontroller.standalone.message.McMessageEngine:230] Message Type:I_BATTERY_LEVEL
2016-08-13 14:46:27,351 DEBUG [Thread-93] [org.mycontroller.standalone.message.McMessageEngine:236] Battery Level:[nodeId:254,Level:7%]
2016-08-13 14:46:27,389 DEBUG [Thread-93] [org.mycontroller.standalone.message.McMessageEngine:787] Node:[Node(id=16, eui=254, gatewayTable=GatewayTable(id=1, enabled=true, name=MyGw, networkType=MY_SENSORS, timestamp=null, state=UP, statusMessage=Connected Successfully, statusSince=1471099169841, type=SERIAL, properties={br=9600, rdr=jSerialComm, rf=120, dr=jSerialComm, pn=/dev/ttyAMA0}), name=MyNode, version=null, type=S_ARDUINO_NODE, libVersion=null, batteryLevel=7, eraseConfig=null, firmware=null, state=UP, lastSeen=1471099587354, rssi=null, properties={}, parentNodeEui=null, registrationState=REGISTERED)], message:[McMessage(gatewayId=1, nodeEui=254, sensorId=SENSOR_BC, type=C_INTERNAL, subType=Battery level, acknowledge=true, payload=7, isTxMessage=false, networkType=MY_SENSORS, isScreeningDone=true, timestamp=1471099587322)]
@yd1234 are you sharing serial port with some other process/application? it looks like MyController receiving corrupted dada.
I don't think to share serial port port with other application. I currently doing some tests on one another new node on my laptop (nodeid 23) that it. Removed old things, clear the log and restart MYC. Please find new log above.
Thanks
@yd1234 Still are you facing issue on your environment?
Hi, I restart from scratch with a new RPI, reinstall everything and it seems to work, no more issue since last time.
Thanks
Le 19 août 2016 à 19:57, Jeeva Kandasamy notifications@github.com a écrit :
@yd1234 https://github.com/yd1234 Still are you facing issue on your environment?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mycontroller-org/mycontroller/issues/241#issuecomment-241089294, or mute the thread https://github.com/notifications/unsubscribe-auth/AF0t_ZxtORoj_uqGu9S0Oni7ejUylQ5Rks5qhe6lgaJpZM4JiU2d.
Hello, I'm trying last release of my controller.org and after fresh installation on my raspberry PI 2 running raspbian jessie and gateway configuration (serial type) I had a crash on JRE:
Can you please help me? Thanks and regards.