MYSBootloader 1.3 pre-release & MYSController 1.0.0beta
-
I've just tried two 3,3V Pro Minis. Flashed the 8MHz MYSBootloader without problems (Nano as ISP). After that I connected the FTDI Adapter and programmed Blink and ReadAnalogVoltage examples without error. Both didn't worked on both Pro Minis. With original Bootloaders, they work.
Where is my fault?
-
@tekka Serial not working after uploading MYSbootloader v1.3pre. ArduinoProMini 5v16Mhz. Is it normal?
-
@tekka
boards.txt:######## settings for ext XTAL 16Mhz, EESAVE, BOD1V8, no lock proMYSBL16.name=ATmega328 external 16Mhz with MYSBootloader proMYSBL16.upload.tool=avrdude proMYSBL16.upload.protocol=arduino proMYSBL16.upload.maximum_size=30720 proMYSBL16.upload.maximum_data_size=2048 proMYSBL16.upload.speed=115200 proMYSBL16.bootloader.tool=avrdude proMYSBL16.bootloader.low_fuses=0xFF proMYSBL16.bootloader.high_fuses=0xD2 proMYSBL16.bootloader.extended_fuses=0x06 proMYSBL16.bootloader.unlock_bits=0x3F proMYSBL16.bootloader.lock_bits=0x3F proMYSBL16.bootloader.file=MySensors/MYSBootloaderV13pre.hex proMYSBL16.build.mcu=atmega328p proMYSBL16.build.f_cpu=16000000L proMYSBL16.build.board=AVR_UNO proMYSBL16.build.core=arduino proMYSBL16.build.variant=standard ######## settings for 8Mhz internal clock, EESAVE, BOD1V8, no lock proMYSBL8.name=ATmega328 internal 8Mhz with MYSBootloader proMYSBL8.upload.tool=avrdude proMYSBL8.upload.protocol=arduino proMYSBL8.upload.maximum_size=30720 proMYSBL8.upload.maximum_data_size=2048 proMYSBL8.upload.speed=57600 proMYSBL8.bootloader.tool=avrdude proMYSBL8.bootloader.low_fuses=0xE2 proMYSBL8.bootloader.high_fuses=0xD2 proMYSBL8.bootloader.extended_fuses=0x06 proMYSBL8.bootloader.unlock_bits=0x3F proMYSBL8.bootloader.lock_bits=0x3F proMYSBL8.bootloader.file=MySensors/MYSBootloaderV13pre.hex proMYSBL8.build.mcu=atmega328p proMYSBL8.build.f_cpu=8000000L proMYSBL8.build.board=AVR_UNO proMYSBL8.build.core=arduino proMYSBL8.build.variant=standardMyConfig.h:
#ifdef MY_DISABLED_SERIAL #undef MY_DEBUG #endif #ifndef MY_BAUD_RATE #define MY_BAUD_RATE 115200 #endif //#define MY_DISABLE_REMOTE_RESET //#define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 //#define MY_RS485 #ifndef MY_NODE_ID #define MY_NODE_ID AUTO #endif #ifndef MY_PARENT_NODE_ID #define MY_PARENT_NODE_ID AUTO #endif // #define MY_REPEATER_FEATURE #ifndef MY_SMART_SLEEP_WAIT_DURATION #define MY_SMART_SLEEP_WAIT_DURATION 500 #endif //#define MY_OTA_FIRMWARE_FEATURE #ifndef MY_OTA_FLASH_SS #define MY_OTA_FLASH_SS 8 #endif #ifndef MY_OTA_FLASH_JDECID #define MY_OTA_FLASH_JDECID 0x1F65 #endif #ifndef MY_GATEWAY_MAX_RECEIVE_LENGTH #define MY_GATEWAY_MAX_RECEIVE_LENGTH 100 #endif #ifndef MY_GATEWAY_MAX_SEND_LENGTH #define MY_GATEWAY_MAX_SEND_LENGTH 120 #endif #ifndef MY_GATEWAY_MAX_CLIENTS #define MY_GATEWAY_MAX_CLIENTS 1 #endif //#define MY_LEDS_BLINKING_FEATURE //#define MY_WITH_LEDS_BLINKING_INVERSE //#define MY_DEFAULT_ERR_LED x //#define MY_DEFAULT_TX_LED x //#define MY_DEFAULT_RX_LED x //#define MY_INCLUSION_MODE_FEATURE //#define MY_INCLUSION_BUTTON_FEATURE #ifndef MY_INCLUSION_MODE_FEATURE #undef MY_INCLUSION_BUTTON_FEATURE #endif #ifndef MY_INCLUSION_MODE_BUTTON_PIN #if defined(ARDUINO_ARCH_ESP8266) #define MY_INCLUSION_MODE_BUTTON_PIN 5 #else #define MY_INCLUSION_MODE_BUTTON_PIN 3 #endif #endif #ifndef MY_INCLUSION_MODE_DURATION #define MY_INCLUSION_MODE_DURATION 60 #endif #if defined(MY_INCLUSION_BUTTON_EXTERNAL_PULLUP) #define MY_INCLUSION_BUTTON_PRESSED HIGH #else #define MY_INCLUSION_BUTTON_PRESSED LOW #endif //#define MY_SIGNING_ATSHA204 //#define MY_SIGNING_SOFT //#define MY_SIGNING_REQUEST_SIGNATURES #ifndef MY_VERIFICATION_TIMEOUT_MS #define MY_VERIFICATION_TIMEOUT_MS 5000 #endif //#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}} #ifndef MY_SIGNING_ATSHA204_PIN #define MY_SIGNING_ATSHA204_PIN 17 #endif #ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7 #endif #ifndef MY_RS485_BAUD_RATE #define MY_RS485_BAUD_RATE 9600 #endif #ifndef MY_RS485_MAX_MESSAGE_LENGTH #define MY_RS485_MAX_MESSAGE_LENGTH 40 #endif //#define MY_RF24_ENABLE_ENCRYPTION #ifndef MY_RF24_CE_PIN #if defined(ARDUINO_ARCH_ESP8266) #define MY_RF24_CE_PIN 4 #elif defined(ARDUINO_ARCH_SAMD) #define MY_RF24_CE_PIN 27 #else #define MY_RF24_CE_PIN 9 #endif #endif #ifndef MY_RF24_CS_PIN #if defined(ARDUINO_ARCH_ESP8266) #define MY_RF24_CS_PIN 15 #elif defined(ARDUINO_ARCH_SAMD) #define MY_RF24_CS_PIN 3 #else #define MY_RF24_CS_PIN 10 #endif #endif #ifndef MY_RF24_PA_LEVEL #define MY_RF24_PA_LEVEL RF24_PA_MAX #endif #ifndef MY_RF24_CHANNEL #define MY_RF24_CHANNEL 76 #endif #ifndef MY_RF24_DATARATE #define MY_RF24_DATARATE RF24_250KBPS #endif #ifndef MY_RF24_BASE_RADIO_ID #define MY_RF24_BASE_RADIO_ID ((uint64_t)0xA8A8E1FC00LL) #endif //#define MY_SOFTSPI #ifndef MY_SOFT_SPI_SCK_PIN #define MY_SOFT_SPI_SCK_PIN 14 #endif #ifndef MY_SOFT_SPI_MISO_PIN #define MY_SOFT_SPI_MISO_PIN 16 #endif #ifndef MY_SOFT_SPI_MOSI_PIN #define MY_SOFT_SPI_MOSI_PIN 15 #endif #ifndef MY_RFM69_FREQUENCY #define MY_RFM69_FREQUENCY RF69_868MHZ #endif //#define MY_IS_RFM69HW #ifdef MY_IS_RFM69HW #define MY_RFM69HW true #else #define MY_RFM69HW false #endif #ifndef MY_RFM69_NETWORKID #define MY_RFM69_NETWORKID 100 #endif #ifndef MY_RF69_IRQ_PIN #define MY_RF69_IRQ_PIN RF69_IRQ_PIN #endif #ifndef MY_RF69_SPI_CS #define MY_RF69_SPI_CS RF69_SPI_CS #endif #ifndef MY_RF69_IRQ_NUM #if defined(ARDUINO_ARCH_ESP8266) #define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN #else #define MY_RF69_IRQ_NUM RF69_IRQ_NUM #endif #endif //#define MY_RFM69_ENABLE_ENCRYPTION //#define MY_GATEWAY_W5100 //#define MY_GATEWAY_ENC28J60 //#define MY_GATEWAY_ESP8266 #ifndef MY_PORT #define MY_PORT 5003 #endif //#define MY_USE_UDP #ifndef MY_IP_RENEWAL_INTERVAL #define MY_IP_RENEWAL_INTERVAL 60000 #endif #ifndef MY_MAC_ADDRESS #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED #endif //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254 //#define MY_NODE_LOCK_FEATURE #ifndef MY_NODE_UNLOCK_PIN #define MY_NODE_UNLOCK_PIN 14 #endif #ifndef MY_NODE_LOCK_COUNTER_MAX #define MY_NODE_LOCK_COUNTER_MAX 5 #endifIn node scetch:
#define MY_DEBUGI have no logs from node because serial isn't working at all. Which logs should I attach?
-
@tekka
boards.txt:######## settings for ext XTAL 16Mhz, EESAVE, BOD1V8, no lock proMYSBL16.name=ATmega328 external 16Mhz with MYSBootloader proMYSBL16.upload.tool=avrdude proMYSBL16.upload.protocol=arduino proMYSBL16.upload.maximum_size=30720 proMYSBL16.upload.maximum_data_size=2048 proMYSBL16.upload.speed=115200 proMYSBL16.bootloader.tool=avrdude proMYSBL16.bootloader.low_fuses=0xFF proMYSBL16.bootloader.high_fuses=0xD2 proMYSBL16.bootloader.extended_fuses=0x06 proMYSBL16.bootloader.unlock_bits=0x3F proMYSBL16.bootloader.lock_bits=0x3F proMYSBL16.bootloader.file=MySensors/MYSBootloaderV13pre.hex proMYSBL16.build.mcu=atmega328p proMYSBL16.build.f_cpu=16000000L proMYSBL16.build.board=AVR_UNO proMYSBL16.build.core=arduino proMYSBL16.build.variant=standard ######## settings for 8Mhz internal clock, EESAVE, BOD1V8, no lock proMYSBL8.name=ATmega328 internal 8Mhz with MYSBootloader proMYSBL8.upload.tool=avrdude proMYSBL8.upload.protocol=arduino proMYSBL8.upload.maximum_size=30720 proMYSBL8.upload.maximum_data_size=2048 proMYSBL8.upload.speed=57600 proMYSBL8.bootloader.tool=avrdude proMYSBL8.bootloader.low_fuses=0xE2 proMYSBL8.bootloader.high_fuses=0xD2 proMYSBL8.bootloader.extended_fuses=0x06 proMYSBL8.bootloader.unlock_bits=0x3F proMYSBL8.bootloader.lock_bits=0x3F proMYSBL8.bootloader.file=MySensors/MYSBootloaderV13pre.hex proMYSBL8.build.mcu=atmega328p proMYSBL8.build.f_cpu=8000000L proMYSBL8.build.board=AVR_UNO proMYSBL8.build.core=arduino proMYSBL8.build.variant=standardMyConfig.h:
#ifdef MY_DISABLED_SERIAL #undef MY_DEBUG #endif #ifndef MY_BAUD_RATE #define MY_BAUD_RATE 115200 #endif //#define MY_DISABLE_REMOTE_RESET //#define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 //#define MY_RS485 #ifndef MY_NODE_ID #define MY_NODE_ID AUTO #endif #ifndef MY_PARENT_NODE_ID #define MY_PARENT_NODE_ID AUTO #endif // #define MY_REPEATER_FEATURE #ifndef MY_SMART_SLEEP_WAIT_DURATION #define MY_SMART_SLEEP_WAIT_DURATION 500 #endif //#define MY_OTA_FIRMWARE_FEATURE #ifndef MY_OTA_FLASH_SS #define MY_OTA_FLASH_SS 8 #endif #ifndef MY_OTA_FLASH_JDECID #define MY_OTA_FLASH_JDECID 0x1F65 #endif #ifndef MY_GATEWAY_MAX_RECEIVE_LENGTH #define MY_GATEWAY_MAX_RECEIVE_LENGTH 100 #endif #ifndef MY_GATEWAY_MAX_SEND_LENGTH #define MY_GATEWAY_MAX_SEND_LENGTH 120 #endif #ifndef MY_GATEWAY_MAX_CLIENTS #define MY_GATEWAY_MAX_CLIENTS 1 #endif //#define MY_LEDS_BLINKING_FEATURE //#define MY_WITH_LEDS_BLINKING_INVERSE //#define MY_DEFAULT_ERR_LED x //#define MY_DEFAULT_TX_LED x //#define MY_DEFAULT_RX_LED x //#define MY_INCLUSION_MODE_FEATURE //#define MY_INCLUSION_BUTTON_FEATURE #ifndef MY_INCLUSION_MODE_FEATURE #undef MY_INCLUSION_BUTTON_FEATURE #endif #ifndef MY_INCLUSION_MODE_BUTTON_PIN #if defined(ARDUINO_ARCH_ESP8266) #define MY_INCLUSION_MODE_BUTTON_PIN 5 #else #define MY_INCLUSION_MODE_BUTTON_PIN 3 #endif #endif #ifndef MY_INCLUSION_MODE_DURATION #define MY_INCLUSION_MODE_DURATION 60 #endif #if defined(MY_INCLUSION_BUTTON_EXTERNAL_PULLUP) #define MY_INCLUSION_BUTTON_PRESSED HIGH #else #define MY_INCLUSION_BUTTON_PRESSED LOW #endif //#define MY_SIGNING_ATSHA204 //#define MY_SIGNING_SOFT //#define MY_SIGNING_REQUEST_SIGNATURES #ifndef MY_VERIFICATION_TIMEOUT_MS #define MY_VERIFICATION_TIMEOUT_MS 5000 #endif //#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}} #ifndef MY_SIGNING_ATSHA204_PIN #define MY_SIGNING_ATSHA204_PIN 17 #endif #ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7 #endif #ifndef MY_RS485_BAUD_RATE #define MY_RS485_BAUD_RATE 9600 #endif #ifndef MY_RS485_MAX_MESSAGE_LENGTH #define MY_RS485_MAX_MESSAGE_LENGTH 40 #endif //#define MY_RF24_ENABLE_ENCRYPTION #ifndef MY_RF24_CE_PIN #if defined(ARDUINO_ARCH_ESP8266) #define MY_RF24_CE_PIN 4 #elif defined(ARDUINO_ARCH_SAMD) #define MY_RF24_CE_PIN 27 #else #define MY_RF24_CE_PIN 9 #endif #endif #ifndef MY_RF24_CS_PIN #if defined(ARDUINO_ARCH_ESP8266) #define MY_RF24_CS_PIN 15 #elif defined(ARDUINO_ARCH_SAMD) #define MY_RF24_CS_PIN 3 #else #define MY_RF24_CS_PIN 10 #endif #endif #ifndef MY_RF24_PA_LEVEL #define MY_RF24_PA_LEVEL RF24_PA_MAX #endif #ifndef MY_RF24_CHANNEL #define MY_RF24_CHANNEL 76 #endif #ifndef MY_RF24_DATARATE #define MY_RF24_DATARATE RF24_250KBPS #endif #ifndef MY_RF24_BASE_RADIO_ID #define MY_RF24_BASE_RADIO_ID ((uint64_t)0xA8A8E1FC00LL) #endif //#define MY_SOFTSPI #ifndef MY_SOFT_SPI_SCK_PIN #define MY_SOFT_SPI_SCK_PIN 14 #endif #ifndef MY_SOFT_SPI_MISO_PIN #define MY_SOFT_SPI_MISO_PIN 16 #endif #ifndef MY_SOFT_SPI_MOSI_PIN #define MY_SOFT_SPI_MOSI_PIN 15 #endif #ifndef MY_RFM69_FREQUENCY #define MY_RFM69_FREQUENCY RF69_868MHZ #endif //#define MY_IS_RFM69HW #ifdef MY_IS_RFM69HW #define MY_RFM69HW true #else #define MY_RFM69HW false #endif #ifndef MY_RFM69_NETWORKID #define MY_RFM69_NETWORKID 100 #endif #ifndef MY_RF69_IRQ_PIN #define MY_RF69_IRQ_PIN RF69_IRQ_PIN #endif #ifndef MY_RF69_SPI_CS #define MY_RF69_SPI_CS RF69_SPI_CS #endif #ifndef MY_RF69_IRQ_NUM #if defined(ARDUINO_ARCH_ESP8266) #define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN #else #define MY_RF69_IRQ_NUM RF69_IRQ_NUM #endif #endif //#define MY_RFM69_ENABLE_ENCRYPTION //#define MY_GATEWAY_W5100 //#define MY_GATEWAY_ENC28J60 //#define MY_GATEWAY_ESP8266 #ifndef MY_PORT #define MY_PORT 5003 #endif //#define MY_USE_UDP #ifndef MY_IP_RENEWAL_INTERVAL #define MY_IP_RENEWAL_INTERVAL 60000 #endif #ifndef MY_MAC_ADDRESS #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED #endif //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254 //#define MY_NODE_LOCK_FEATURE #ifndef MY_NODE_UNLOCK_PIN #define MY_NODE_UNLOCK_PIN 14 #endif #ifndef MY_NODE_LOCK_COUNTER_MAX #define MY_NODE_LOCK_COUNTER_MAX 5 #endifIn node scetch:
#define MY_DEBUGI have no logs from node because serial isn't working at all. Which logs should I attach?
-
@Алексей-Гусаров I'll look into that. Seems like bootloader is not handing over to the sketch (corroborates previous reports). Can you post the OTA log (from e.g. MYSController)?
-
@tekka I'm using mycotroller.org instead of myscontroller. It writes that "firmware update initiated" and nothing happens.
-
@Алексей-Гусаров Then I highly suggest to run MYSController to log OTA traffic for troubleshooting...
-
@tekka I'm using mycotroller.org instead of myscontroller. It writes that "firmware update initiated" and nothing happens.
@Алексей-Гусаров in mycontroller.org you can get log under
Status >> Resources logs. Changeitems per pageto 500 to display more number of logs. -
@tekka I work for MyController.org and it supports firmware upload. Do I need to change anything to support
MYSbootloader v1.3pre?
Currently MyController.org supports forMYSbootloader1.1 -
@Алексей-Гусаров If you use
MYSbootloaderyou shouldRebootyour node. AFAIK,MYSbootloaderrequiresRebootto get active.
You should configure firmware in node edit page and reboot the node.
Upload firmwareworks only forDualOptiboot -
@Алексей-Гусаров If you use
MYSbootloaderyou shouldRebootyour node. AFAIK,MYSbootloaderrequiresRebootto get active.
You should configure firmware in node edit page and reboot the node.
Upload firmwareworks only forDualOptiboot -
@jkandasa I've tried to reboot and have such rsponce:
Apr 28, 2016 02:49:44 PM serial 0:GatewayNode Received Internal [Log message] send: 0-0-1-1 s=255,c=3,t=13,pt=0,l=0,sg=0,st=fail: Apr 28, 2016 02:49:44 PM serial 1:SensorNode Sent Internal [Reboot]@Алексей-Гусаров It looks like your node is not in the range!
-
@jkandasa said:
@Алексей-Гусаров It looks like your node is not in the range!
It sends messages it really in is 0.5 meters from gw.
@Алексей-Гусаров can you reboot the node manually?
-
@jkandasa
I have this:[Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006202 [Log message] send: 0-0-1-1 s=255,c=4,t=3,pt=6,l=22,sg=0,st=ok:010002006302801481E090E00F90DF91CF910895FC01 [Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006302 [Log message] send: 0-0-1-1 s=255,c=4,t=3,pt=6,l=22,sg=0,st=ok:0100020064021382128248EE53E060E070E044835583 [Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006402 [Log message] send: 0-0-1-1 s=255,c=4,t=3,pt=6,l=22,sg=0,st=ok:0100020065026683778385ED91E09183808308951092 [Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006502And yes, it has been updated.
Thanks, OTA works now, allthought remote reboot doesn working. -
@jkandasa
I have this:[Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006202 [Log message] send: 0-0-1-1 s=255,c=4,t=3,pt=6,l=22,sg=0,st=ok:010002006302801481E090E00F90DF91CF910895FC01 [Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006302 [Log message] send: 0-0-1-1 s=255,c=4,t=3,pt=6,l=22,sg=0,st=ok:0100020064021382128248EE53E060E070E044835583 [Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006402 [Log message] send: 0-0-1-1 s=255,c=4,t=3,pt=6,l=22,sg=0,st=ok:0100020065026683778385ED91E09183808308951092 [Log message] read: 1-1-0 s=255,c=4,t=2,pt=6,l=6,sg=0:010002006502And yes, it has been updated.
Thanks, OTA works now, allthought remote reboot doesn working.@Алексей-Гусаров I could not guess why remote reboot is not working! (Gateway says "Failed to send reboot command to node"). After OTA update completion, try reboot from MyController.org GUI. It may work with new software.
-
@Алексей-Гусаров I could not guess why remote reboot is not working! (Gateway says "Failed to send reboot command to node"). After OTA update completion, try reboot from MyController.org GUI. It may work with new software.