Windows GUI/Controller for MySensors
-
@tekka Thanks for getting back to me. This is my my first go at this bootloader. Hope I am not doing something daft!
I have Arduino IDE 1.6.5, MySensors 1.5, MYSBootloader 1.1, MYSController_0_1_2_282 running on Windows 8, USBasp to urn bootloader.
Arduino Pro Mini 3.3v 8mhz board. I am using the standard settings in your write up for the boards.txt
Log file hopefully attached.
-
@allysmith Try clearing EEPROM via MYSBootloader command, assign blink FW and upload the entire log again....
-
@tekka As requested, cleared EEPROM via MYSBootloader, assigned blink FW.
Attached is the log.
Device shows up in the nodes window as Booting: 65535:65535 (BL1.1)@tekka Have made a change to how I was powering the NRF and now straight from battery.
Looks like it was a power issue. Sufficient for transmit from the node ut not for receiving the updates.
See attached log.
Now got a different issue when I tried to reassign the FW from link to Timereporter.
I think I am moving in the right direction now.
Thanks for your help so far.
Keep up this great work.Deug.txt
-
WOOOHOOO, i got OTA working :dancers:
This is awesome guysBTW, I guess OTA will not work if there's a repeater in the middle?
-
@tekka i guess OTA is not available when using a MQTT gateway?
I would like to switch my whole setup to MQTT, but don't wanna loose the super fantastic OTA feature.
-
Can somebody explain to me how the "Reassing ID" function works in MYScontroller? I haven't been able to change a ID remotely.
ID's keep the same after reboots or power cycles, with or without the AutoID option on.
@cdr IDs are assigned the first time the node starts up and then stored in the Arduino EEPROM. To get a new ID, you would have to clear (that portion of) the EEPROM, or you can upload a copy of the sketch with the ID hard-coded.
Cheers
Al -
quite a few post. so apologies if this has been asked before.
I'm trying to upload a sketch(hex) to one of my nano's
it's going but froze at 70%
i had to reboot the gateway.
this time it got to 87% and seems froze again.
any thoughts/suggestions on why the gateway is freezing up?edit: i can't seem to get a sketch to upload. it gets to some random % and then the gateway freezes.
a push of the gateway reset button seems to start it over. but then freezes at random.edit 2: must have been a distance thing.. i put the bridge right next to the gateway and the code uploaded quickly without freezing.
however, i still am curious as to why the gateway fails to respond/freezes if the firmware is not able to be uploaded. -
Can somebody explain to me how the "Reassing ID" function works in MYScontroller? I haven't been able to change a ID remotely.
ID's keep the same after reboots or power cycles, with or without the AutoID option on.
@cdr said:
Can somebody explain to me how the "Reassing ID" function works in MYScontroller? I haven't been able to change a ID remotely.
ID's keep the same after reboots or power cycles, with or without the AutoID option on.
Reassign ID & clear EEPROM are commands implemented in MYSBootloader 1.1: A special ST_FIRMWARE_CONFIG_RESPONSE sequence (see the source code for detail) will instruct the bootloader to either change the ID in EEPROM or clear the EEPROM. The reassign ID command will only have effect, if the firmware has does not have static a ID setting. In order to use the bootloader commands the controller should be able to reboot the node.
-
Hi @tekka,
Thanks for the reply, I created a "clear eeprom" hex and after uploading it is working as expected, the ID resets.
Using the function in Mycontroller however, does not work. Not sure if this is a bug, or perhaps an error caused by an Arduino clone, but the "reassign ID" function is not working as intended here.
Anyone here that got it working as intended?
-
Hi @tekka,
Thanks for the reply, I created a "clear eeprom" hex and after uploading it is working as expected, the ID resets.
Using the function in Mycontroller however, does not work. Not sure if this is a bug, or perhaps an error caused by an Arduino clone, but the "reassign ID" function is not working as intended here.
Anyone here that got it working as intended?
-
@Tekka Same "bug" here" with MYSBootloader 1.1 (hex from github) on arduino nano. Try to change ID of node N°1, Log :
[2015-09-21 21:52:57.053 Info] INFO *** Logging START *** [2015-09-21 21:52:57.053 Info] VERSION MYSController 0.1.2.282 [2015-09-21 21:52:57.053 Info] STARTUP INI file loaded [2015-09-21 21:52:57.053 Info] STARTUP Loading FW repository... [2015-09-21 21:52:57.054 Info] REPO FW "Blink" loaded. t=10, v=1, blocks=72, crc=0xD098 [2015-09-21 21:52:57.064 Info] REPO FW "TimeReporter" loaded. t=20, v=1, blocks=840, crc=0x4AC5 [2015-09-21 21:52:57.076 Info] REPO FW "Motion" loaded. t=30, v=1, blocks=1024, crc=0xD1BF [2015-09-21 21:52:57.092 Info] REPO FW "Sensebender Micro" loaded. t=100, v=1, blocks=1344, crc=0x3482 [2015-09-21 21:52:57.108 Info] REPO FW "Sensebender Blink" loaded. t=110, v=1, blocks=768, crc=0x1314 [2015-09-21 21:52:57.108 Info] REPO FW repository loaded. Items=5 [2015-09-21 21:52:57.111 Info] STARTUP Initialize message types [2015-09-21 21:52:57.111 Info] NODE New node discovered, node id=0 [2015-09-21 21:52:57.111 Info] NODE New node discovered, node id=255 [2015-09-21 21:52:59.606 Info] INFO Connected to 192.168.1.90:5003 [2015-09-21 21:53:04.373 Info] NODE New node discovered, node id=1 [2015-09-21 21:53:04.376 Info] CHILD New child discovered, node id=1, child id=internal [2015-09-21 21:53:04.379 Info] INFO BL version=257 [2015-09-21 21:53:04.380 Info] INFO No FW assigned [2015-09-21 21:53:04.383 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:04.681 Info] NODE New node discovered, node id=4 [2015-09-21 21:53:04.685 Info] CHILD New child discovered, node id=4, child id=1 [2015-09-21 21:53:04.688 Info] RX 4;1;1;0;0;21.6 [2015-09-21 21:53:04.691 Info] CHILD New child discovered, node id=4, child id=2 [2015-09-21 21:53:04.694 Info] RX 4;2;1;0;1;71 [2015-09-21 21:53:06.421 Info] INFO BL version=257 [2015-09-21 21:53:06.424 Info] INFO No FW assigned [2015-09-21 21:53:06.427 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:08.470 Info] INFO BL version=257 [2015-09-21 21:53:08.472 Info] INFO No FW assigned [2015-09-21 21:53:08.476 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:14.903 Info] UPDATE 4295098650 [2015-09-21 21:53:14.906 Info] INFO BL version=257 [2015-09-21 21:53:14.909 Info] INFO No FW assigned [2015-09-21 21:53:14.913 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:14.916 Info] INFO BL version=257 [2015-09-21 21:53:14.918 Info] INFO No FW assigned [2015-09-21 21:53:14.922 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:14.925 Info] DEBUG Update child id=255, type=ARDUINO_NODE [2015-09-21 21:53:14.929 Info] RX 1;255;0;0;17;1.5 [2015-09-21 21:53:14.933 Info] TX 1;255;3;0;6;M [2015-09-21 21:53:14.937 Info] RX 1;255;3;0;6;0 [2015-09-21 21:53:14.945 Info] CHILD New child discovered, node id=0, child id=0 [2015-09-21 21:53:14.950 Info] RX 0;0;3;0;14;Gateway startup complete. [2015-09-21 21:53:16.680 Info] RX 1;255;3;0;11;Motion Sensor [2015-09-21 21:53:16.691 Info] RX 1;255;3;0;12;1.0 [2015-09-21 21:53:16.695 Info] CHILD New child discovered, node id=1, child id=1 [2015-09-21 21:53:16.701 Info] DEBUG Update child id=1, type=MOTION [2015-09-21 21:53:16.714 Info] RX 1;1;0;0;1; [2015-09-21 21:53:16.718 Info] RX 1;1;1;0;16;0 [2015-09-21 21:53:38.779 Info] INFO Node trigger set, node=1, trigger=1 [2015-09-21 21:53:39.793 Info] INFO Retained message triggered for release, node=1 [2015-09-21 21:53:39.796 Info] CHILD New child discovered, node id=1, child id=1 [2015-09-21 21:53:39.800 Info] TX 1;0;3;0;13;0 [2015-09-21 21:53:39.805 Info] RX 1;1;1;0;16;1 [2015-09-21 21:53:39.808 Info] CHILD New child discovered, node id=1, child id=internal [2015-09-21 21:53:39.811 Info] DEBUG Update child id=255, type=ARDUINO_NODE [2015-09-21 21:53:39.815 Info] RX 1;255;0;0;17;1.5 [2015-09-21 21:53:56.729 Info] INFO Disconnected [2015-09-21 21:53:58.924 Info] INFO *** Logging STOP ***``` -
@Tekka Same "bug" here" with MYSBootloader 1.1 (hex from github) on arduino nano. Try to change ID of node N°1, Log :
[2015-09-21 21:52:57.053 Info] INFO *** Logging START *** [2015-09-21 21:52:57.053 Info] VERSION MYSController 0.1.2.282 [2015-09-21 21:52:57.053 Info] STARTUP INI file loaded [2015-09-21 21:52:57.053 Info] STARTUP Loading FW repository... [2015-09-21 21:52:57.054 Info] REPO FW "Blink" loaded. t=10, v=1, blocks=72, crc=0xD098 [2015-09-21 21:52:57.064 Info] REPO FW "TimeReporter" loaded. t=20, v=1, blocks=840, crc=0x4AC5 [2015-09-21 21:52:57.076 Info] REPO FW "Motion" loaded. t=30, v=1, blocks=1024, crc=0xD1BF [2015-09-21 21:52:57.092 Info] REPO FW "Sensebender Micro" loaded. t=100, v=1, blocks=1344, crc=0x3482 [2015-09-21 21:52:57.108 Info] REPO FW "Sensebender Blink" loaded. t=110, v=1, blocks=768, crc=0x1314 [2015-09-21 21:52:57.108 Info] REPO FW repository loaded. Items=5 [2015-09-21 21:52:57.111 Info] STARTUP Initialize message types [2015-09-21 21:52:57.111 Info] NODE New node discovered, node id=0 [2015-09-21 21:52:57.111 Info] NODE New node discovered, node id=255 [2015-09-21 21:52:59.606 Info] INFO Connected to 192.168.1.90:5003 [2015-09-21 21:53:04.373 Info] NODE New node discovered, node id=1 [2015-09-21 21:53:04.376 Info] CHILD New child discovered, node id=1, child id=internal [2015-09-21 21:53:04.379 Info] INFO BL version=257 [2015-09-21 21:53:04.380 Info] INFO No FW assigned [2015-09-21 21:53:04.383 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:04.681 Info] NODE New node discovered, node id=4 [2015-09-21 21:53:04.685 Info] CHILD New child discovered, node id=4, child id=1 [2015-09-21 21:53:04.688 Info] RX 4;1;1;0;0;21.6 [2015-09-21 21:53:04.691 Info] CHILD New child discovered, node id=4, child id=2 [2015-09-21 21:53:04.694 Info] RX 4;2;1;0;1;71 [2015-09-21 21:53:06.421 Info] INFO BL version=257 [2015-09-21 21:53:06.424 Info] INFO No FW assigned [2015-09-21 21:53:06.427 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:08.470 Info] INFO BL version=257 [2015-09-21 21:53:08.472 Info] INFO No FW assigned [2015-09-21 21:53:08.476 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:14.903 Info] UPDATE 4295098650 [2015-09-21 21:53:14.906 Info] INFO BL version=257 [2015-09-21 21:53:14.909 Info] INFO No FW assigned [2015-09-21 21:53:14.913 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:14.916 Info] INFO BL version=257 [2015-09-21 21:53:14.918 Info] INFO No FW assigned [2015-09-21 21:53:14.922 Info] RX 1;255;4;0;0;1E0001000004BFD10101 [2015-09-21 21:53:14.925 Info] DEBUG Update child id=255, type=ARDUINO_NODE [2015-09-21 21:53:14.929 Info] RX 1;255;0;0;17;1.5 [2015-09-21 21:53:14.933 Info] TX 1;255;3;0;6;M [2015-09-21 21:53:14.937 Info] RX 1;255;3;0;6;0 [2015-09-21 21:53:14.945 Info] CHILD New child discovered, node id=0, child id=0 [2015-09-21 21:53:14.950 Info] RX 0;0;3;0;14;Gateway startup complete. [2015-09-21 21:53:16.680 Info] RX 1;255;3;0;11;Motion Sensor [2015-09-21 21:53:16.691 Info] RX 1;255;3;0;12;1.0 [2015-09-21 21:53:16.695 Info] CHILD New child discovered, node id=1, child id=1 [2015-09-21 21:53:16.701 Info] DEBUG Update child id=1, type=MOTION [2015-09-21 21:53:16.714 Info] RX 1;1;0;0;1; [2015-09-21 21:53:16.718 Info] RX 1;1;1;0;16;0 [2015-09-21 21:53:38.779 Info] INFO Node trigger set, node=1, trigger=1 [2015-09-21 21:53:39.793 Info] INFO Retained message triggered for release, node=1 [2015-09-21 21:53:39.796 Info] CHILD New child discovered, node id=1, child id=1 [2015-09-21 21:53:39.800 Info] TX 1;0;3;0;13;0 [2015-09-21 21:53:39.805 Info] RX 1;1;1;0;16;1 [2015-09-21 21:53:39.808 Info] CHILD New child discovered, node id=1, child id=internal [2015-09-21 21:53:39.811 Info] DEBUG Update child id=255, type=ARDUINO_NODE [2015-09-21 21:53:39.815 Info] RX 1;255;0;0;17;1.5 [2015-09-21 21:53:56.729 Info] INFO Disconnected [2015-09-21 21:53:58.924 Info] INFO *** Logging STOP ***```