not working Ethernet Gateway (sensebender and/or nano gateway)
-
@tbowmo said in not working Ethernet Gateway (sensebender and/or nano gateway):
standard cortex swd pinout
ok, unfortunately i have never used a swd debugger before. i read on the internet that the JTAGICE mkII can program the cortex mo+. i have that here. is it really possible?
with the ch341 i currently have the problem that windows does not recognize the driver after an update. before it was always possible. i have the driver from http://www.wch.cn/download/CH341SER_EXE.html.
all my arduino nanos are no longer recognized. -
ok, the log of the nano ethernet gateway is as follows:
0 MCO:BGN:INIT GW,CP=RNNGA---,REL=255,VER=2.3.1<\n>
4 TSM:INIT<\n>
5 TSF:WUR:MS=0<\n>
11 TSM:INIT:TSP OK<\n>
13 TSM:INIT:GW MODE<\n>
15 TSM:READY:ID=0,PAR=0,DIS=0<\n>
17 MCO:REG:NOT NEEDED<\n>
642 GWT:TIN:IP=255.255.255.255<\n>
1644 MCO:BGN:STP<\n>
1645 MCO:BGN:INIT OK,TSP=1<\n>
1648 TSM:READY:NWD REQ<\n>
1685 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:<\n>
900006 TSF:SAN:OK<\n>is it possible, that the w5100 draws too much current for the nano?i connected only USB
-
@tbowmo said in not working Ethernet Gateway (sensebender and/or nano gateway):
standard cortex swd pinout
ok, unfortunately i have never used a swd debugger before. i read on the internet that the JTAGICE mkII can program the cortex mo+. i have that here. is it really possible?
with the ch341 i currently have the problem that windows does not recognize the driver after an update. before it was always possible. i have the driver from http://www.wch.cn/download/CH341SER_EXE.html.
all my arduino nanos are no longer recognized.@rafael156
I'm using the atmel jtagice3 myself, however I had to make a converter, because the pinout of the jtagice 3 is not compatible with the cortex m0 debug port pinout. So check the pinout of both devices first to be sure that they match. -
ok, i tried again to get the nano ethernet GW running with the following sketch, with partial success: the fritzbox recognizes the ip address. But with the MYSController or Openhab I still can't establish a connection (connection refused).:
/* * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2018 Sensnology AB * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * Contribution by a-lurker and Anticimex, * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de> * Contribution by Tomas Hozza <thozza@gmail.com> * * * DESCRIPTION * The EthernetGateway sends data received from sensors to the ethernet link. * The gateway also accepts input on ethernet interface, which is then sent out to the radio network. * * The GW code is designed for Arduino 328p / 16MHz. ATmega168 does not have enough memory to run this program. * * LED purposes: * - To use the feature, uncomment MY_DEFAULT_xxx_LED_PIN in the sketch below * - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or receive crc error * * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions. * */ // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_RF24 //#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 //#define MY_RADIO_RFM95 // Enable gateway ethernet module type #define MY_GATEWAY_W5100 //#define MY_GATEWAY_MAX_CLIENTS 3 // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal) //#define MY_W5100_SPI_EN 4 // Enable Soft SPI for NRF radio (note different radio wiring is required) // The W5100 ethernet module seems to have a hard time co-operate with // radio on the same spi bus. #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD) #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN 14 #define MY_SOFT_SPI_MISO_PIN 16 #define MY_SOFT_SPI_MOSI_PIN 15 #endif // When W5100 is connected we have to move CE/CSN pins for NRF radio #ifndef MY_RF24_CE_PIN #define MY_RF24_CE_PIN 5 #endif #ifndef MY_RF24_CS_PIN #define MY_RF24_CS_PIN 6 #endif // Enable UDP communication //#define MY_USE_UDP // If using UDP you need to set MY_CONTROLLER_IP_ADDRESS below // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP) #define MY_IP_ADDRESS 192,168,1,110 // If using static ip you can define Gateway and Subnet address as well #define MY_IP_GATEWAY_ADDRESS 192,168,1,1 #define MY_IP_SUBNET_ADDRESS 255,255,255,0 // Renewal period if using DHCP //#define MY_IP_RENEWAL_INTERVAL 60000 // The port to keep open on node server mode / or port to contact in client mode #define MY_PORT 5003 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254 // The MAC address can be anything you want but should be unique on your network. // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use. // Note that most of the Arduino examples use "DEAD BEEF FEED" for the MAC address. //#define MY_MAC_ADDRESS 0x7F, 0x24, 0xCE, 0x40, 0x46, 0x44 #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED // Enable inclusion mode #define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway //#define MY_INCLUSION_BUTTON_FEATURE // Set inclusion mode duration (in seconds) #define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3 // Set blinking period #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Flash leds on rx/tx/err // Uncomment to override default HW configurations //#define MY_DEFAULT_ERR_LED_PIN 7 // Error led pin //#define MY_DEFAULT_RX_LED_PIN 8 // Receive led pin //#define MY_DEFAULT_TX_LED_PIN 9 // Transmit led pin #if defined(MY_USE_UDP) #include <EthernetUdp.h> #endif #include <Ethernet.h> #include <MySensors.h> void setup() { // Setup locally attached sensors } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }the log of it is two posts before.
For the W5100 does "MO"=MOSI and "MI"=MISO?

What am I doing wrong? has one of you already built a nano with W5100? -
for a short moment I was able to connect to the myscontroller and got the following log:
21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?^a? 21.01.2019 22:24:41 RX B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 RX 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg= 21.01.2019 22:24:41 RX ??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 RX ??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 RX Ⱥ?x)ل?c?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=Ⱥ?x)ل?c?? 21.01.2019 22:24:41 RX ?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 RX "'?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg='?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 RX ?c?b?- 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?c?b?- 21.01.2019 22:24:41 RX eH{??J6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=eH{??J6 21.01.2019 22:24:41 RX 5[?4??*?j????ql??5 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=5[?4??*?j????ql??5 21.01.2019 22:24:41 RX ">?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=>?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 RX ?:?E??I???? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?:?E??I???? 21.01.2019 22:24:41 RX "?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 RX "??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 RX ??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 RX "??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 RX ?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 RX "f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 RX ?^a? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?^a? 21.01.2019 22:24:41 RX B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 RX 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg= 21.01.2019 22:24:41 RX ??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 RX ??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 RX Ⱥ?x)ل?c?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=Ⱥ?x)ل?c?? 21.01.2019 22:24:41 RX ?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 RX "'?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg='?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 RX ?c?b?- 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?c?b?- 21.01.2019 22:24:41 RX eH{??J6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=eH{??J6 21.01.2019 22:24:41 RX 5[?4??*?j????ql??5 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=5[?4??*?j????ql??5 21.01.2019 22:24:41 RX ">?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=>?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 RX ?:?E??I???? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?:?E??I???? 21.01.2019 22:24:41 RX "?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 RX "??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 RX ??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 RX "??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 RX ?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 RX "f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 RX ?^a? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?^a? 21.01.2019 22:24:41 RX B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 RX 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg= 21.01.2019 22:24:41 RX ??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 RX ??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 RX Ⱥ?x)ل?c?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=Ⱥ?x)ل?c?? 21.01.2019 22:24:41 RX ?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 RX "'?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg='?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n"can it be that the nano has too little power (+5V) for the NRF and W5100 when I feed it via USB?
-
ok, I have now flashed the sensebender gateway with previously compiled SensebenderGatewayW5100.ino.hex, but no LEDs flash.
can someone send me the factory hex?
or do I have to change the fuses?
my factory fuses are:NVMCTRL_NVM_LOCK = 0x00 NVMCTRL_PSZ = 0x03 NVMCTRL_NVMP = 0x1000 ADC_LINEARITY_0 = 0x08 ADC_LINEARITY_1 = 0x04 ADC_BIASCAL = 0x03 OSC32K_CAL = 0x42 USB_TRANSN = 0x05 USB_TRANSP = 0x1D USB_TRIM = 0x03 DFLL48M_COARSE_CAL = 0x23 DFLL48M_FINE_CAL = 0x200 ROOM_TEMP_VAL_INT = 0x1D ROOM_TEMP_VAL_DEC = 0x08 HOT_TEMP_VAL_INT = 0x7D HOT_TEMP_VAL_DEC = 0x00 ROOM_INT1V_VAL = 0x00 HOT_INT1V_VAL = 0xF9 ROOM_ADC_VAL = 0xB38 HOT_ADC_VAL = 0xEC1 NVMCTRL_BOOTPROT = 0x07 NVMCTRL_EEPROM_SIZE = 0x07 BOD33USERLEVEL = 0x07 BOD33_EN = [ ] BOD33_ACTION = 0x01 WDT_ENABLE = [X] WDT_ALWAYSON = [X] WDT_PER = 0x0B WDT_WINDOW_0 = [ ] WDT_WINDOW_1 = 0x05 WDT_EWOFFSET = 0x0B WDT_WEN = [X] BOD33_HYST = [X] NVMCTRL_REGION_LOCKS = 0xFFFF OTP1_WORD_0 = 0x10000300 (valid) OTP4_WORD_0 = 0x40004007 (valid) OTP4_WORD_1 = 0x8DF4B09C (valid) OTP4_WORD_2 = 0xFFFFFE00 (valid) TEMP_LOG_WORD_0 = 0x7D81D (valid) TEMP_LOG_WORD_1 = 0xEC1B38F9 (valid) USER_WORD_0 = 0xD8E0C7FF (valid) USER_WORD_1 = 0xFFFFFC5D (valid) -
for a short moment I was able to connect to the myscontroller and got the following log:
21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?^a? 21.01.2019 22:24:41 RX B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 RX 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg= 21.01.2019 22:24:41 RX ??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 RX ??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 RX Ⱥ?x)ل?c?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=Ⱥ?x)ل?c?? 21.01.2019 22:24:41 RX ?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 RX "'?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg='?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 RX ?c?b?- 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?c?b?- 21.01.2019 22:24:41 RX eH{??J6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=eH{??J6 21.01.2019 22:24:41 RX 5[?4??*?j????ql??5 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=5[?4??*?j????ql??5 21.01.2019 22:24:41 RX ">?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=>?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 RX ?:?E??I???? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?:?E??I???? 21.01.2019 22:24:41 RX "?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 RX "??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 RX ??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 RX "??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 RX ?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 RX "f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 RX ?^a? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?^a? 21.01.2019 22:24:41 RX B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 RX 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg= 21.01.2019 22:24:41 RX ??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 RX ??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 RX Ⱥ?x)ل?c?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=Ⱥ?x)ل?c?? 21.01.2019 22:24:41 RX ?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 RX "'?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg='?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 RX ?c?b?- 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?c?b?- 21.01.2019 22:24:41 RX eH{??J6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=eH{??J6 21.01.2019 22:24:41 RX 5[?4??*?j????ql??5 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=5[?4??*?j????ql??5 21.01.2019 22:24:41 RX ">?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=>?/??]J?v@;jL!F?????>???TX?B# ?n?? ?O?}?8?ǀ??? T?0y1?U??/?H?Lj?*ߋ8t??#7pY??""&O??r? ?p?7??ļ_^??>?+*??ҖPR???Cz?!f?:&~z?Hӑ" 21.01.2019 22:24:41 RX ?:?E??I???? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?:?E??I???? 21.01.2019 22:24:41 RX "?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=?,T?$?f8\?^?o ?݈s??P)?F??W ?Z':?`q??y?<??\F駐???<??0?DȅΠ?BZ_?!gB??" 21.01.2019 22:24:41 RX "??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??"" ??i32٫+?m??{p?<H?^>'bl?\?\?h???ځ{?C" 21.01.2019 22:24:41 RX ??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??4??(3AX?Hb?[k?؊??iT?6 21.01.2019 22:24:41 RX "??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=??A??,??*??ab!?^3l=???[M3??lay?f9B??J?8G?C?}JOU?% Tǽ?I/h???\ 4b%<??!AH??kw??^?" 21.01.2019 22:24:41 RX ?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?9??H ?Y0?*?aͧ?Z.!?p2P?? 21.01.2019 22:24:41 RX "f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg=f?>;???0f??iB*}?/?J*1?~?S6WjH.?w? ?K#?29?(?kq8-O?V??U?n\" 21.01.2019 22:24:41 RX ?^a? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?^a? 21.01.2019 22:24:41 RX B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=B?$?]?}?L?*+2a??MQt҆Ÿ?Go?I?? 21.01.2019 22:24:41 RX 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg= 21.01.2019 22:24:41 RX ??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??z??xQG&F⎙(݄???¢ 21.01.2019 22:24:41 RX ??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=??`???i?Ŀ?^a?Hf????wHH?h?Gb؛??W?U��Y?? 21.01.2019 22:24:41 RX Ⱥ?x)ل?c?? 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=Ⱥ?x)ل?c?? 21.01.2019 22:24:41 RX ?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 ERROR ErrorFlag=255, Msg=?R]hgGR?r7"?JOS?-&?{??%?~?s??ɋ5??.Ejj?7?er?8?P?1@T?s{?\G$ 21.01.2019 22:24:41 RX "'?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n" 21.01.2019 22:24:41 ERROR "ErrorFlag=255, Msg='?? ?12???9?7˩/9[u?u?[?6Z ???{#|X|M??4!?GB?8??b̨??۽?x?v??Ar?/?m'!n"can it be that the nano has too little power (+5V) for the NRF and W5100 when I feed it via USB?
@rafael156 said in not working Ethernet Gateway (sensebender and/or nano gateway):
can it be that the nano has too little power (+5V) for the NRF and W5100 when I feed it via USB?
There is a large variety of cloned Nano's around, and most of them use crappy voltage regulators, so yes this could be the case.
What regulator is on the Nano? Or picture if you don't know...You could try powering from USB using a separate regulator, or using a separate supply.
Do the standard ethernet examples that come with the Arduino IDE work correctly?
-
@rafael156 said in not working Ethernet Gateway (sensebender and/or nano gateway):
For the W5100 does "MO"=MOSI and "MI"=MISO?
Yes.
I have just built a gateway with funduino w5100, I have it connected over usb (for power) to a RPI for now, it works well. -
did you add a decoupling capacitor to the radio?
-
/ Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
#define MY_IP_ADDRESS 192,168,1,110// If using static ip you can define Gateway and Subnet address as well
#define MY_IP_GATEWAY_ADDRESS 192,168,1,1
#define MY_IP_SUBNET_ADDRESS 255,255,255,0change #define MY_IP_GATEWAY_ADDRESS 192,168,1,1
to MY_IP_GATEWAY 192,168,1,110
and see if that works. -
can anyone tell me how to flash the sensebender board (Atmel ATSAMD21J18A) with openocd and an Atmel JtagIce3 running on windows? i have a batch file, but it returns an error.
Batch file:
openocd\bin\openocd --debug 4 --log_output log.txt -d0 -s openocd/share/openocd/scripts/ -f arduino_zero.cfg -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {{%1}} verify reset;shutdown"log_file:
Debug: 17 12 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_debug_level 0 Debug: 18 12 command.c:145 script_debug(): command - debug_level ocd_debug_level 0 debug_level: 0 adapter speed: 500 kHz adapter_nsrst_delay: 100 cortex_m reset_config sysresetreq target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x81000000 pc: 0x00005460 msp: 0x20007fb8 target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x81000000 pc: 0x000005e8 msp: 0x20007ffc ** Programming Started ** auto erase enabled Runtime Error: embedded:startup.tcl:454: ** Programming Failed ** in procedure 'program' in procedure 'program_error' called at file "embedded:startup.tcl", line 510 at file "embedded:startup.tcl", line 454 -
ok, I flashed the bootloader and now LED5 (D5) is lit permanently. A new USB port is also not recognized.
the fuse settings were probably not set either. do I still have to set them or don't I need them at sensebender gw?
but i need the USB port, otherwise i can't transfer sketches.
if I transfer sketches via SWD nothing happens after the upload. -
i just found out that the platform.txt is not correct/outdated. The file "...\Arduino15\packages\MySensors\hardware\samd\1.0.5\platform.txt"
Line 148 should be changed fromopenocd-0.9.0-arduino5-static.pathto
openocd-0.9.0-arduino6-static.pathcan one of the mysensors samd board 1.0.5 please change that?
-
has anyone managed to get an arduino nano running with NRF and W5100 as ethernet gateway? mine won't even accept the IP address (should be 192.168.1.110) after a successful sketch:
MCO:BGN:INIT GW,CP=RNNGA---,REL=255,VER=2.3.1<\n> 4 TSM:INIT<\n> 5 TSF:WUR:MS=0<\n> 11 TSM:INIT:TSP OK<\n> 13 TSM:INIT:GW MODE<\n> 15 TSM:READY:ID=0,PAR=0,DIS=0<\n> 17 MCO:REG:NOT NEEDED<\n> 580 GWT:TIN:IP=0.0.0.0<\n> 1582 MCO:BGN:STP<\n> 1584 MCO:BGN:INIT OK,TSP=1<\n> 1586 TSM:READY:NWD REQ<\n> 1624 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:<\n> -
The SAMD21 doesn't use fuses in the same way that the atmega328 does. For example, the clock source is set by the running program, and not the fuses. The only fuses awailable is BOD, WDT and bootprotection. (See page 43 in the datasheet)
So it should not be needed to set any fuses in the SAMD21 in order to get it working.
btw. why did you replace the atsamd21 in the first place?
-
Okay, thanks for the clarification.
i changed the processor because the USB interface was not recognized under windows and i couldn't program the board anymore. leds were lit but, so i thought that the samd must be broken.
the new one shows the same behavior after flashing with mysensors 2.3.1 ... so it must be somewhere due to the software.can you please initiate the change to the "platform.txt" (see https://forum.mysensors.org/post/96909)?
-
Okay, thanks for the clarification.
i changed the processor because the USB interface was not recognized under windows and i couldn't program the board anymore. leds were lit but, so i thought that the samd must be broken.
the new one shows the same behavior after flashing with mysensors 2.3.1 ... so it must be somewhere due to the software.can you please initiate the change to the "platform.txt" (see https://forum.mysensors.org/post/96909)?
Is it the standard gateway sketch, that you use for the SAMD? If not, could you post it here? Then I could try programming a spare samd21 board at some point in time (I do not know if I get around to it this weekend, as I have lots of projects running through my head at the moment)
-
Is it the standard gateway sketch, that you use for the SAMD? If not, could you post it here? Then I could try programming a spare samd21 board at some point in time (I do not know if I get around to it this weekend, as I have lots of projects running through my head at the moment)