@aliasjim I noticed the MYSbootloader defaults to PA level MAX. When i use this PA level with my nodes in normal operation they don't function eigther. I might try with a bootloader compiled with lower PA level, maybe, just maybe i will get lucky. Now i only need to find someone who is willing to compile it for me
Posts made by aliasjim
-
RE: Cant get OTA to start
-
RE: Cant get OTA to start
@jkandasa Indeed, i just pluged a premium shielded radio into my node and now the FW blocks are flying through my mqtt client. Its just strange that normal operation works just fine with the junk radios. Wich i knew this before i bought 50 of them
-
RE: Cant get OTA to start
@jkandasa In other words the problem lies with the node, since it doesn't request a FW block?
I'm using FW compiled for CH5, do you think this could be a problem? GW is allso programmed to use channel 5
-
RE: Cant get OTA to start
@jkandasa Am i right to think that if i have an empty sketch on the node and a FW is appointed to this node in mycontroller, mycontroller will update the nodes FW automaticly or at least after rebooting the node?
-
RE: Cant get OTA to start
i'm using MYSbotloader and i can ping the mqtt gateway. It allso shows as online in mycontroller. The broker is allso online because i can see the messages in my mqtt client on the desktop
-
RE: Cant get OTA to start
Hi it was allready off. This was the problem before. After i unchecked it it started the OTA once but didn't finish successfully
-
Cant get OTA to start
Hi i just started over but i cant seem to get OTA started. Flashed a node with default bootloader, programmed it with empty sketch, burned the mysbootloader, then discovered node. Shows up as id0. selected node => edit => change only firmware option to firmware with id109 then selected node id1 and started OTA update. This is what i get in the raw message log:
2019-02-06 17:37:51,888 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:37:51,928 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:37:54,938 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:37:54,945 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:37:57,979 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:37:57,986 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:09,725 Tx: mygateway1-in/255/255/3/0/20 [] 2019-02-06 17:38:11,602 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:11,608 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:14,693 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:14,699 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:17,678 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:17,683 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:20,723 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:20,729 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:31,337 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:31,341 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:34,381 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:34,385 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:34,479 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:37,441 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:37,446 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:40,470 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:40,474 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:54,115 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:54,119 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:38:57,149 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:38:57,154 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:00,188 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:39:00,191 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:03,234 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:39:03,237 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:30,167 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:39:30,174 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:33,196 Rx: mygateway1-out/1/255/4/0/0 [FFFFFFFFFFFFFE400103] 2019-02-06 17:39:33,200 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:33,305 Rx: mygateway1-out/1/255/4/0/2 [030001006705] 2019-02-06 17:39:33,345 Tx: mygateway1-in/1/255/4/0/3 [0300010067054E6F6465330056312E300000FFFFFFFF] 2019-02-06 17:39:38,516 Rx: mygateway1-out/1/255/4/0/2 [030001006705] 2019-02-06 17:39:38,520 Tx: mygateway1-in/1/255/4/0/3 [0300010067054E6F6465330056312E300000FFFFFFFF] 2019-02-06 17:39:39,396 Rx: mygateway1-out/1/255/4/0/2 [030001006705] 2019-02-06 17:39:39,399 Tx: mygateway1-in/1/255/4/0/3 [0300010067054E6F6465330056312E300000FFFFFFFF] 2019-02-06 17:39:42,461 Rx: mygateway1-out/1/255/4/0/2 [030001006705] 2019-02-06 17:39:42,465 Tx: mygateway1-in/1/255/4/0/3 [0300010067054E6F6465330056312E300000FFFFFFFF] 2019-02-06 17:39:45,920 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:39:45,923 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:48,981 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:39:48,985 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:52,017 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:39:52,021 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:39:55,049 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:39:55,052 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:08,335 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:08,338 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:11,406 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:11,409 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:14,440 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:14,444 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:17,468 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:17,471 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:30,777 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:30,780 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:33,812 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:33,816 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:36,844 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:36,848 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:39,898 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:39,902 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:40:59,712 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:40:59,716 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:02,772 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:02,775 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:05,822 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:05,825 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:08,834 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:08,837 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:28,601 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:28,604 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:31,627 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:31,630 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:34,674 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:34,677 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:37,714 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:37,717 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:51,034 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:51,038 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:54,080 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:54,084 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:41:57,108 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:41:57,111 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:00,151 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:00,155 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:10,416 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:10,419 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:13,457 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:13,460 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:16,496 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:16,499 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:19,531 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:19,534 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:29,827 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:29,830 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:32,854 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:32,859 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:35,897 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:35,901 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:38,946 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:38,949 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:42:58,718 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:42:58,724 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:01,852 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:01,856 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:04,794 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:04,797 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:07,837 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:07,840 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:21,126 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:21,129 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:24,155 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:24,160 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:27,189 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:27,192 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:30,237 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:30,240 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:40,481 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:40,484 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:43,524 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:43,528 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:46,595 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:46,598 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:43:49,631 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:43:49,634 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:44:02,911 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:44:02,914 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:44:05,966 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:44:05,970 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:44:09,012 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:44:09,015 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA] 2019-02-06 17:44:12,051 Rx: mygateway1-out/1/255/4/0/0 [0300010068057A890103] 2019-02-06 17:44:12,055 Tx: mygateway1-in/1/255/4/0/1 [03000100680582CA]
a lot of FW requests and responses and a few FW block requests ans block responses but everytime the same block. Then it suddenly stops and goes back to requesting and responding FW.
Any idea whats going on?
-
RE: OTA/MYSBootloader & IDE upload
@matth1187 hi there,
"Does MYSBootloader prevent me from uploading sketch to a node via IDE. so in otherwords a node with MYSBootloader can only be program with OTA and not from serial/arduino ide?"
I'm allso still wondering about this. At first i had my nodes programmed via ftdi and arduinoIDE, then burned mysbootloader and could start OTA (allthough it didn't seem to succeed). I could then still program the nodes via ftdi (atleast arduinoIDE didn't throw an error and would write). Then i tried burning bootloader and then program with usbasp using shift-upload in arduinoIDE. When powering on nodes mycontroller can still descover them but when requesting firmware OTA i would only see "nodeID/255/4/0/1" in mqtt client but no response. So i'm still very confused. Did you find an answer to this question? Thanks
-
RE: More information about Cmd=4 messages (stream messages)
@jkandasa ok thanks, i will upgrade
-
RE: More information about Cmd=4 messages (stream messages)
@jkandasa I have DEBUG enabled and restarted, but file doesn't get created. This is my full logback.xml:
<!-- Copyright 2015-2018 Jeeva Kandasamy (jkandasa@gmail.com) and other contributors as indicated by the @author tags. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <configuration scan="true" scanPeriod="2 minutes"> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>../logs/mycontroller.log</file> <encoder> <!-- <pattern>%date %level [%thread] [%logger:%line] %msg%n</pattern> --> <!-- Replace CR(\r) with string \r and LF(\n) with string \n--> <pattern>%date %level [%thread] [%logger:%line] %replace(%msg){'\r', '\\r'}%n</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <FileNamePattern>../logs/mycontroller_%i.log.zip</FileNamePattern> <MinIndex>1</MinIndex> <MaxIndex>5</MaxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>5MB</MaxFileSize> </triggeringPolicy> </appender> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%date %level [%thread] [%logger:%line] %msg%n</pattern> </encoder> </appender> <appender name="GATEWAY_RAW_MESSAGE_APPENDER" class="ch.qos.logback.classic.sift.SiftingAppender"> <discriminator> <key>gateway_reference</key> <defaultValue>0_default</defaultValue> </discriminator> <sift> <appender name="fileAppender" class="ch.qos.logback.core.FileAppender"> <file>../logs/raw_message_gw_${gateway_reference}.log</file> <encoder> <pattern>%date %replace(%replace(%msg){'\r', '\\r'}){'\n', '\\n'}%n</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <FileNamePattern>../logs/raw_message_gw_${gateway_reference}%i.log.zip</FileNamePattern> <MinIndex>1</MinIndex> <MaxIndex>5</MaxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>5MB</MaxFileSize> </triggeringPolicy> </appender> </sift> </appender> <logger level="INFO" name="com.j256.ormlite" /> <logger level="INFO" name="org.apache.http" /> <logger level="INFO" name="org.jboss.resteasy.core" /> <logger level="WARN" name="com.j256.ormlite.table.TableUtils" /> <logger level="WARN" name="com.xeiam.sundial" /> <logger level="WARN" name="org.quartz" /> <logger level="WARN" name="io.moquette"/> <logger level="ERROR" name="io.moquette.persistence.mapdb.MapDBSessionsStore"/> <logger level="ERROR" name="io.moquette.spi.impl.PersistentQueueMessageSender"/> <logger level="INFO" name="org.mycontroller.standalone" /> <logger level="INFO" name="org.mycontroller.standalone.api" /> <logger level="INFO" name="org.mycontroller.standalone.api.jaxrs" /> <logger level="INFO" name="org.mycontroller.standalone.auth" /> <logger level="INFO" name="org.mycontroller.standalone.backup" /> <logger level="INFO" name="org.mycontroller.standalone.db" /> <logger level="INFO" name="org.mycontroller.standalone.db.dao" /> <logger level="INFO" name="org.mycontroller.standalone.db.migration" /> <logger level="INFO" name="org.mycontroller.standalone.email" /> <logger level="INFO" name="org.mycontroller.standalone.fwpayload" /> <logger level="INFO" name="org.mycontroller.standalone.gateway" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.ethernet" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.mqtt" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.phantio" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.philipshue" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.rest" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.serial" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.wunderground" /> <logger level="INFO" name="org.mycontroller.standalone.group" /> <logger level="INFO" name="org.mycontroller.standalone.jobs" /> <logger level="INFO" name="org.mycontroller.standalone.loggers.LoggerMySql" /> <logger level="INFO" name="org.mycontroller.standalone.message" /> <logger level="INFO" name="org.mycontroller.standalone.metric" /> <logger level="INFO" name="org.mycontroller.standalone.metric.jobs" /> <logger level="INFO" name="org.mycontroller.standalone.mqttbroker" /> <logger level="INFO" name="org.mycontroller.standalone.provider" /> <logger level="INFO" name="org.mycontroller.standalone.provider.mycontroller" /> <logger level="INFO" name="org.mycontroller.standalone.provider.mysensors" /> <logger level="INFO" name="org.mycontroller.standalone.provider.phantio" /> <logger level="INFO" name="org.mycontroller.standalone.provider.philipshue" /> <logger level="INFO" name="org.mycontroller.standalone.provider.rflink" /> <logger level="INFO" name="org.mycontroller.standalone.provider.wunderground" /> <logger level="INFO" name="org.mycontroller.standalone.restclient" /> <logger level="INFO" name="org.mycontroller.standalone.rule" /> <logger level="INFO" name="org.mycontroller.standalone.scheduler" /> <logger level="INFO" name="org.mycontroller.standalone.scripts" /> <logger level="INFO" name="org.mycontroller.standalone.settings" /> <logger level="INFO" name="org.mycontroller.standalone.timer" /> <logger level="INFO" name="org.mycontroller.standalone.uidtag" /> <root level="WARN"> <appender-ref ref="FILE" /> </root> <logger name="RAW_MESSAGE_LOGGER" level="DEBUG" additivity="false"> <appender-ref ref="GATEWAY_RAW_MESSAGE_APPENDER" /> </logger> </configuration>
I'm using mycontroller 1.3.0.Final
Thanks for your time
-
RE: More information about Cmd=4 messages (stream messages)
Thanks, seems like that fixed it. Now every FW block is unique. But still no mycontroller/logs/raw_message_gw_*.log file is created. Is it possible i have to change anything else in logback.xml?
-
RE: More information about Cmd=4 messages (stream messages)
@aliasjim As far as i can see in my mqtt client mycontroller keeps sending the same firmwareblock over and over:
mygateway1-out/108/255/4/0/2 210001004505 mygateway1-in/108/255/4/1/3 2100010046050895F894FFCFFFFF00FCE1A8A8FFAF08 mygateway1-in/108/255/4/1/3 2100010046050895F894FFCFFFFF00FCE1A8A8FFAF08 mygateway1-in/108/255/4/1/3 2100010046050895F894FFCFFFFF00FCE1A8A8FFAF08 mygateway1-out/108/255/4/0/2 210001004505 mygateway1-in/108/255/4/1/3 2100010046050895F894FFCFFFFF00FCE1A8A8FFAF08 mygateway1-out/108/255/4/0/2 210001004505 mygateway1-in/108/255/4/1/3 2100010046050895F894FFCFFFFF00FCE1A8A8FFAF08 ...
I don't know if the problem is with my node requesting the same block over and over again or with mycontroller. Do you have any idea whats going on?
-
RE: More information about Cmd=4 messages (stream messages)
@aliasjim Hello, i replaced the entire logback.xml file in the /mycontroller/conf directory with the one from github mentioned in the above post and changed log level to 'DEBUG'. Stopped service, saved the logback file and restarted ran the start.batch file again. mycontroller is running but i dont see a file mycontroller/logs/raw_message_gw_*.log.
Sorry if i'm a little slow but i dont understand java all that well
-
RE: More information about Cmd=4 messages (stream messages)
@jkandasa ok thank you very much
-
RE: More information about Cmd=4 messages (stream messages)
@jkandasa
This is my logback.xml:<!-- Copyright 2015-2018 Jeeva Kandasamy (jkandasa@gmail.com) and other contributors as indicated by the @author tags. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <configuration scan="true" scanPeriod="2 minutes"> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>../logs/mycontroller.log</file> <encoder> <!-- <pattern>%date %level [%thread] [%logger:%line] %msg%n</pattern> --> <!-- Replace CR(\r) with string \r and LF(\n) with string \n--> <pattern>%date %level [%thread] [%logger:%line] %replace(%replace(%msg){'\r', '\\r'}){'\n', '\\n'}%n</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <FileNamePattern>../logs/mycontroller_%i.log.zip</FileNamePattern> <MinIndex>1</MinIndex> <MaxIndex>5</MaxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>5MB</MaxFileSize> </triggeringPolicy> </appender> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%date %level [%thread] [%logger:%line] %msg%n</pattern> </encoder> </appender> <logger level="INFO" name="com.j256.ormlite" /> <logger level="INFO" name="org.apache.http" /> <logger level="INFO" name="org.jboss.resteasy.core" /> <logger level="WARN" name="com.j256.ormlite.table.TableUtils" /> <logger level="WARN" name="com.xeiam.sundial" /> <logger level="WARN" name="org.quartz" /> <logger level="WARN" name="io.moquette"/> <logger level="ERROR" name="io.moquette.persistence.mapdb.MapDBSessionsStore"/> <logger level="ERROR" name="io.moquette.spi.impl.PersistentQueueMessageSender"/> <logger level="INFO" name="org.mycontroller.standalone" /> <logger level="INFO" name="org.mycontroller.standalone.api" /> <logger level="INFO" name="org.mycontroller.standalone.api.jaxrs" /> <logger level="INFO" name="org.mycontroller.standalone.auth" /> <logger level="INFO" name="org.mycontroller.standalone.backup" /> <logger level="INFO" name="org.mycontroller.standalone.db" /> <logger level="INFO" name="org.mycontroller.standalone.db.dao" /> <logger level="INFO" name="org.mycontroller.standalone.db.migration" /> <logger level="INFO" name="org.mycontroller.standalone.email" /> <logger level="INFO" name="org.mycontroller.standalone.fwpayload" /> <logger level="INFO" name="org.mycontroller.standalone.gateway" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.ethernet" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.mqtt" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.phantio" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.philipshue" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.rest" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.serial" /> <logger level="INFO" name="org.mycontroller.standalone.gateway.wunderground" /> <logger level="INFO" name="org.mycontroller.standalone.group" /> <logger level="INFO" name="org.mycontroller.standalone.jobs" /> <logger level="INFO" name="org.mycontroller.standalone.loggers.LoggerMySql" /> <logger level="INFO" name="org.mycontroller.standalone.message" /> <logger level="INFO" name="org.mycontroller.standalone.metric" /> <logger level="INFO" name="org.mycontroller.standalone.metric.jobs" /> <logger level="INFO" name="org.mycontroller.standalone.mqttbroker" /> <logger level="INFO" name="org.mycontroller.standalone.provider" /> <logger level="INFO" name="org.mycontroller.standalone.provider.mycontroller" /> <logger level="INFO" name="org.mycontroller.standalone.provider.mysensors" /> <logger level="INFO" name="org.mycontroller.standalone.provider.phantio" /> <logger level="INFO" name="org.mycontroller.standalone.provider.philipshue" /> <logger level="INFO" name="org.mycontroller.standalone.provider.rflink" /> <logger level="INFO" name="org.mycontroller.standalone.provider.wunderground" /> <logger level="INFO" name="org.mycontroller.standalone.restclient" /> <logger level="INFO" name="org.mycontroller.standalone.rule" /> <logger level="INFO" name="org.mycontroller.standalone.scheduler" /> <logger level="INFO" name="org.mycontroller.standalone.scripts" /> <logger level="INFO" name="org.mycontroller.standalone.settings" /> <logger level="INFO" name="org.mycontroller.standalone.timer" /> <logger level="INFO" name="org.mycontroller.standalone.uidtag" /> <root level="WARN"> <appender-ref ref="FILE" /> </root> </configuration>
"If you do not see this line on this file, follow https://github.com/mycontroller-org/mycontroller/issues/473"
I dont understand. Do you mean add this to the bottem of the file?
<logger name="RAW_MESSAGE_LOGGER" level="DEBUG" additivity="false"> <appender-ref ref="GATEWAY_RAW_MESSAGE_APPENDER" /> </logger> <appender name="GATEWAY_RAW_MESSAGE_APPENDER" class="ch.qos.logback.classic.sift.SiftingAppender"> <discriminator> <key>gateway_reference</key> <defaultValue>0_default</defaultValue> </discriminator> <sift> <appender name="fileAppender" class="ch.qos.logback.core.FileAppender"> <file>../logs/raw_message_gw_${gateway_reference}.log</file> <encoder> <pattern>%date %replace(%replace(%msg){'\r', '\\r'}){'\n', '\\n'}%n</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <FileNamePattern>../logs/raw_message_gw_${gateway_reference}%i.log.zip</FileNamePattern> <MinIndex>1</MinIndex> <MaxIndex>5</MaxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>5MB</MaxFileSize> </triggeringPolicy> </appender> </sift> </appender>
Thanks
-
More information about Cmd=4 messages (stream messages)
Hello, i'm trying to follow what happenes in the background of OTA. Does anyone have any documentation of type and payload of stream messages? For instance nodeid/255/4/0/32. (I think this is pre or post sleep duration)
Serial protocol docs of mysensors dont give alot of info on this command-type, just that it are stream commands. I understand its used for OTA. But it would be interresting to know what the values for type are in these messages for debugging.
I'm asking this here because the developers of mycontroller should know something since they have developt the mycontroller side of OTA.
Thanks in advance
-
A few starter questions
-
MYController discovered a sensor called "SENSOR_BC", any idea what this is?
-
Is it possible to select a unit for a sensor "lightlevel(lux)" instead of (%)?
-
I have one sensor with 2 "variable types", what does this mean and how can i remove one (one has no value)
-
I have digital sensors that are interrupt driven both when going low and when going high, but in mycontroller the sensor gets tripped and stays tripped (in dashboard, on the graph it does revert state back)
I love this software esspechially the FOTA part, no more running around with laptop and cables. Great work
-
-
RE: FOTA not working
@Daniele You need to compile the MYSbootloader for the right channel. You can get all kind of flavors here: https://github.com/guillebot/MYSensors-Bootloaders
-
RE: cannot select firmware for node
@jkandasa yes, after i couldn't remove the firmware in the ui, i deleted it from this path. I might of been a little hasty
-
RE: cannot select firmware for node
Sorry, started at wrong end of the file.
I will mail you the complete file.
Thanks for the swift response.Logs sent