Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Sensebender Gateway with NRF24 PA and Hardsigning and Encryption

Sensebender Gateway with NRF24 PA and Hardsigning and Encryption

Scheduled Pinned Locked Moved Hardware
24 Posts 5 Posters 5.7k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meddie
    wrote on last edited by meddie
    #5

    Hi,

    thank you for your answers! I tried the GatewayW5100 Sketch but i get an error

    C:\Users\Meddie\AppData\Local\Temp\arduino_build_19882\sketch\GatewayW5100.ino.cpp:1:21: fatal error: Arduino.h: No such file or directory
    
     #include <Arduino.h>
    
                         ^
    
    compilation terminated.
    
    exit status 1``````
    
    

    Where i have to pu the Arduino.h file?

    I have already copied the files from drivers folder to the arduino ide drivers folder and i copied the whole mysensors-master folder to the libraries folder in the arduino ide.

    I got this error only if i select the sensebender Gatewas as board, when i select arduino uno i can compile witheout errors.

    When i switch in the ide to the Sensebender GW Board i get this text in the console:

    The current selected board needs the core 'arduino:arduino' that is not installed.```
    1 Reply Last reply
    0
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by
      #6

      @meddie

      Which version of mysensors board definition files, and arduino ditto for SAMD do you have installed? (Have a look in the board manager)

      The newest Mysensors SAMD files (1.0.4) is only compatible up to Arduino SAMD 1.6.11, as the Arduino folks have made some changes again to their core again.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        meddie
        wrote on last edited by
        #7

        I have installed the 1.0.4 Version. But the Arduino IDE is 1.8.1

        1 Reply Last reply
        0
        • tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #8

          @meddie

          Not the arduino IDE, but Arduino SAMD board support files.. These can be installed through the board manager.

          Sorry this was not made clear in the setup instructions..

          1 Reply Last reply
          0
          • M Offline
            M Offline
            meddie
            wrote on last edited by
            #9

            Oh, ok i did not installed them. Just in moment i install the arduino sam Boards (32-bits ARM Cortex.m3) Version 1.6.11
            is that correct?

            1 Reply Last reply
            0
            • tbowmoT Offline
              tbowmoT Offline
              tbowmo
              Admin
              wrote on last edited by
              #10

              @meddie

              No, you need to choose Arduino SAMD boards (32-bits ARM Cortex-M0) version 1.6.11

              1 Reply Last reply
              0
              • M Offline
                M Offline
                meddie
                wrote on last edited by
                #11

                AAAAAH! I am so stupid! I read all the Time SAM and didnt seen the D at the end. Sorry sorry sorry.
                Yes it works now!!!
                Thank you very much!

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  meddie
                  wrote on last edited by meddie
                  #12

                  Ok, next problem:
                  the sketch Gateway5100 can be compiled but i get an error on uploding them.

                  I have a Win 10 PC, the GW is detected by os and in the device manager i can see a usb device Com Port 3. When i connect the GW to the PC and start the serial monitor i get some lines.

                  I think the communication should work.

                  This is the output:

                  Arduino: 1.8.1 (Windows 10), Board: "Sensebender Gateway"
                  
                  C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\meddie\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\meddie\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\meddie\Documents\Arduino\libraries -fqbn=MySensors:samd:mysensors_gw_native -vid-pid=0X1209_0X6949 -ide-version=10801 -build-path C:\Users\meddie\AppData\Local\Temp\arduino_build_739214 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.bossac.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.avrdude.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0 -verbose C:\Program Files (x86)\Arduino\examples\MySensors\GatewayW5100\GatewayW5100.ino
                  C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\meddie\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\meddie\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\meddie\Documents\Arduino\libraries -fqbn=MySensors:samd:mysensors_gw_native -vid-pid=0X1209_0X6949 -ide-version=10801 -build-path C:\Users\meddie\AppData\Local\Temp\arduino_build_739214 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.bossac.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.avrdude.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0 -verbose C:\Program Files (x86)\Arduino\examples\MySensors\GatewayW5100\GatewayW5100.ino
                  Using board 'mysensors_gw_native' from platform in folder: C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4
                  Using core 'arduino' from platform in folder: C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11
                  WARNING: Spurious .mystools folder in 'MySensors' library
                  Detecting libraries used...
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\sketch\GatewayW5100.ino.cpp" -o "nul"
                  ..."C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI\SPI.cpp" -o "nul"
                  Generating function prototypes...
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\sketch\GatewayW5100.ino.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\preproc\ctags_target_for_gcc_minus_e.cpp"
                  "C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\preproc\ctags_target_for_gcc_minus_e.cpp"
                  Compiling sketch...
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\sketch\GatewayW5100.ino.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\sketch\GatewayW5100.ino.cpp.o"
                  Compiling libraries...
                  Compiling library "Ethernet"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\Dhcp.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\Dhcp.cpp.o"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\Dns.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\Dns.cpp.o"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\Ethernet.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\Ethernet.cpp.o"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\EthernetClient.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\EthernetClient.cpp.o"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\EthernetServer.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\EthernetServer.cpp.o"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\EthernetUdp.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\EthernetUdp.cpp.o"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\utility\socket.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\utility\socket.cpp.o"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src\utility\w5100.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\utility\w5100.cpp.o"
                  Compiling library "MySensors-master"
                  Compiling library "Wire"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire\Wire.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Wire\Wire.cpp.o"
                  Compiling library "SPI"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors-master" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI" "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI\SPI.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\SPI\SPI.cpp.o"
                  Compiling core...
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x1209 -DUSB_PID=0x6949 -DUSBCON '-DUSB_MANUFACTURER="MySensors.org"' '-DUSB_PRODUCT="Sensebender GW"' "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\cores\arduino" "-IC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw" "C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw\variant.cpp" -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\core\variant.cpp.o"
                  .......
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs  "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\core\core.a" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\core\USB\USBCore.cpp.o"
                  Linking everything together...
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-gcc"  "-LC:\Users\meddie\AppData\Local\Temp\arduino_build_739214" -Os -Wl,--gc-sections -save-temps  "-TC:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\variants\mysensors_gw/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\Users\meddie\AppData\Local\Temp\arduino_build_739214/GatewayW5100.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214/GatewayW5100.ino.elf" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\sketch\GatewayW5100.ino.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\Dhcp.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\Dns.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\Ethernet.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\EthernetClient.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\EthernetServer.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\EthernetUdp.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\utility\socket.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Ethernet\utility\w5100.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\Wire\Wire.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\libraries\SPI\SPI.cpp.o" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214\core\variant.cpp.o" -Wl,--start-group "-LC:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214/core\core.a" -Wl,--end-group
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary  "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214/GatewayW5100.ino.elf" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214/GatewayW5100.ino.bin"
                  "C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom  "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214/GatewayW5100.ino.elf" "C:\Users\meddie\AppData\Local\Temp\arduino_build_739214/GatewayW5100.ino.hex"
                  Multiple libraries were found for "Ethernet.h"
                   Used: C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet
                   Not used: C:\Program Files (x86)\Arduino\libraries\Ethernet
                  Using library Ethernet at version 1.1.2 in folder: C:\Users\meddie\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.4\libraries\Ethernet 
                  Using library MySensors-master at version 2.1.1 in folder: C:\Program Files (x86)\Arduino\libraries\MySensors-master 
                  Using library Wire at version 1.0 in folder: C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\Wire 
                  Using library SPI at version 1.0 in folder: C:\Users\meddie\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.11\libraries\SPI 
                  Sketch uses 43960 bytes (16%) of program storage space. Maximum is 262144 bytes.
                  An error occurred while uploading the sketch```
                  1 Reply Last reply
                  0
                  • tbowmoT Offline
                    tbowmoT Offline
                    tbowmo
                    Admin
                    wrote on last edited by
                    #13

                    @meddie

                    I'm not sure how things work on windows..

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      meddie
                      wrote on last edited by
                      #14

                      Hi,
                      me again, today i installed the arduino ide on a other pc and it works now i could compile and upload the sketch. But when i user the Gateway5100 Sketch and put as ip Adresse 172.16.0.25 i could not ping the gateway.
                      Do i have to config the pins that connected to the ethernet modul? A similar problem i had with my nrf24 modul when i connect it the gateway dont start. (i dont get any data on the serial port)
                      Thank you a lot!
                      Greets Eddie

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        meddie
                        wrote on last edited by
                        #15

                        Hi,
                        i did it! The gateway has worked fine all the time! When i have uploaded the GatewayW5100 Sketch and connected the Eternet Module and the NRF24 Modul, then i didnt get anythin on Serial Monitor but i think its correct so, because FHEM (my Controller) shows me that the Sensebender Gateway is connected and added one new Device.

                        Then i tried to upload the Sketch from second post, and get some errors, i had to delete this Line
                        #include <drivers/ATSHA204/ATSHA204.cpp>

                        then i could compile and upload the sketch but i get three warnings:

                        c:/users/meddie/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

                        c:/users/meddie/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

                        c:/users/meddie/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

                        I dont know what this means, but it looks like the gateway is working. FHEM continues showing as connected!

                        Do you know what this warning does mean?
                        Thanks a lot!

                        1 Reply Last reply
                        0
                        • magpernM Offline
                          magpernM Offline
                          magpern
                          wrote on last edited by
                          #16

                          Is it correct, that if you want to enable ATSHA204A chip in gateway, you need to enable this in MyConfig.h?

                          //#define MY_SIGNING_ATSHA204
                          

                          If I do, I get a lot of compile errors, see below, if I don't enable it, it compiles fine. It is development branch (I guess...). Setting up the environment is quite the trial and error

                          In file included from C:\Users\aaa\Documents\Arduino\libraries\MySensors\examples\SensebenderGatewaySerial\SensebenderGatewaySerial.ino:86:0:
                          
                          C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp:6:16: error: redefinition of 'uint8_t device_pin'
                          
                           static uint8_t device_pin;
                          
                                          ^
                          
                          In file included from C:\Users\aaa\Documents\Arduino\libraries\MySensors/MySensors.h:166:0,
                          
                                           from C:\Users\aaa\Documents\Arduino\libraries\MySensors\examples\SensebenderGatewaySerial\SensebenderGatewaySerial.ino:84:
                          
                          C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp:6:16: error: 'uint8_t device_pin' previously declared here
                          
                           static uint8_t device_pin;
                          
                                          ^
                          
                          In file included from C:\Users\aaa\Documents\Arduino\libraries\MySensors\examples\SensebenderGatewaySerial\SensebenderGatewaySerial.ino:86:0:
                          
                          C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp: In function 'void swi_set_signal_pin(uint8_t)':
                          
                          C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp:23:13: error: redefinition of 'void swi_set_signal_pin(uint8_t)'
                          
                           static void swi_set_signal_pin(uint8_t is_high)
                          
                                       ^
                          
                          and a lot more...
                          
                          AnticimexA 1 Reply Last reply
                          0
                          • magpernM magpern

                            Is it correct, that if you want to enable ATSHA204A chip in gateway, you need to enable this in MyConfig.h?

                            //#define MY_SIGNING_ATSHA204
                            

                            If I do, I get a lot of compile errors, see below, if I don't enable it, it compiles fine. It is development branch (I guess...). Setting up the environment is quite the trial and error

                            In file included from C:\Users\aaa\Documents\Arduino\libraries\MySensors\examples\SensebenderGatewaySerial\SensebenderGatewaySerial.ino:86:0:
                            
                            C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp:6:16: error: redefinition of 'uint8_t device_pin'
                            
                             static uint8_t device_pin;
                            
                                            ^
                            
                            In file included from C:\Users\aaa\Documents\Arduino\libraries\MySensors/MySensors.h:166:0,
                            
                                             from C:\Users\aaa\Documents\Arduino\libraries\MySensors\examples\SensebenderGatewaySerial\SensebenderGatewaySerial.ino:84:
                            
                            C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp:6:16: error: 'uint8_t device_pin' previously declared here
                            
                             static uint8_t device_pin;
                            
                                            ^
                            
                            In file included from C:\Users\aaa\Documents\Arduino\libraries\MySensors\examples\SensebenderGatewaySerial\SensebenderGatewaySerial.ino:86:0:
                            
                            C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp: In function 'void swi_set_signal_pin(uint8_t)':
                            
                            C:\Users\aaa\Documents\Arduino\libraries\MySensors/drivers/ATSHA204/ATSHA204.cpp:23:13: error: redefinition of 'void swi_set_signal_pin(uint8_t)'
                            
                             static void swi_set_signal_pin(uint8_t is_high)
                            
                                         ^
                            
                            and a lot more...
                            
                            AnticimexA Offline
                            AnticimexA Offline
                            Anticimex
                            Contest Winner
                            wrote on last edited by Anticimex
                            #17

                            @Magnus-Pernemark normally, you don't change MyConfig.h, you just use it as reference. And then you set your defines in your sketch prior to include mysensors.h.

                            I think there was a problem in the official release that the SenseBender gw sketch included some files for self testing that is not really needed (or more correctly, it included them without considering the atsha flag), so you can probably strip them from the sketch or conditionally include them. I believe it was fixed on beta. But perhaps it is still in there.

                            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                            magpernM 1 Reply Last reply
                            0
                            • AnticimexA Anticimex

                              @Magnus-Pernemark normally, you don't change MyConfig.h, you just use it as reference. And then you set your defines in your sketch prior to include mysensors.h.

                              I think there was a problem in the official release that the SenseBender gw sketch included some files for self testing that is not really needed (or more correctly, it included them without considering the atsha flag), so you can probably strip them from the sketch or conditionally include them. I believe it was fixed on beta. But perhaps it is still in there.

                              magpernM Offline
                              magpernM Offline
                              magpern
                              wrote on last edited by
                              #18

                              @Anticimex Ah, I was under the impression that the SenseBender Gateway, came with default serial sketch without signing and you had to enable signing by your self if you want it. And some how in MyConfig.h (not MySensors.h) this sounded like something that needs to be changed (comment said so).

                              /**
                               * @def MY_SIGNING_ATSHA204
                               * @brief Enables HW backed signing functionality in library.
                               *
                              * For any signing related functionality to be included, this define or @ref MY_SIGNING_SOFT has to
                               * be enabled.
                               *
                              //#define MY_SIGNING_ATSHA204
                              

                              So after configuring the ATSHA chip and uploading the serialgateway to the GW, without altering any code, it will start using the ATSHA chip and reject those without?

                              Is it the same with Sensebender Micro? If it has a ATSHA chip it will use it, if it doesn't it will not?

                              I run the development branch code, 2.2.2-beta

                              AnticimexA 1 Reply Last reply
                              0
                              • magpernM magpern

                                @Anticimex Ah, I was under the impression that the SenseBender Gateway, came with default serial sketch without signing and you had to enable signing by your self if you want it. And some how in MyConfig.h (not MySensors.h) this sounded like something that needs to be changed (comment said so).

                                /**
                                 * @def MY_SIGNING_ATSHA204
                                 * @brief Enables HW backed signing functionality in library.
                                 *
                                * For any signing related functionality to be included, this define or @ref MY_SIGNING_SOFT has to
                                 * be enabled.
                                 *
                                //#define MY_SIGNING_ATSHA204
                                

                                So after configuring the ATSHA chip and uploading the serialgateway to the GW, without altering any code, it will start using the ATSHA chip and reject those without?

                                Is it the same with Sensebender Micro? If it has a ATSHA chip it will use it, if it doesn't it will not?

                                I run the development branch code, 2.2.2-beta

                                AnticimexA Offline
                                AnticimexA Offline
                                Anticimex
                                Contest Winner
                                wrote on last edited by
                                #19

                                @Magnus-Pernemark no, it is not enabled by default. But the SenseBender gw sketch also include self test logic used in the factory that test atsha204a communication. But this code is always included, so if you do enable the signing using atsha204a, it includes some code twice. So the sketch would only include the atsha stuff if the define isn't set.

                                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                magpernM 1 Reply Last reply
                                0
                                • AnticimexA Anticimex

                                  @Magnus-Pernemark no, it is not enabled by default. But the SenseBender gw sketch also include self test logic used in the factory that test atsha204a communication. But this code is always included, so if you do enable the signing using atsha204a, it includes some code twice. So the sketch would only include the atsha stuff if the define isn't set.

                                  magpernM Offline
                                  magpernM Offline
                                  magpern
                                  wrote on last edited by
                                  #20

                                  @Anticimex I'm sorry, my vacation brain just cannot comprehend all these terms (I don't think it would even if I wasn't on vecaction :) My four hour experience with c/c++ surely has its limits).

                                  Is it safe to say, the GW sketch does not use the ATSHA chip, and the sketch needs some modification for it to start using it?

                                  In the mean-time, I'll try it out with the default sketch. It looks like the GW and the bender are talking to each other

                                  AnticimexA 1 Reply Last reply
                                  0
                                  • magpernM magpern

                                    @Anticimex I'm sorry, my vacation brain just cannot comprehend all these terms (I don't think it would even if I wasn't on vecaction :) My four hour experience with c/c++ surely has its limits).

                                    Is it safe to say, the GW sketch does not use the ATSHA chip, and the sketch needs some modification for it to start using it?

                                    In the mean-time, I'll try it out with the default sketch. It looks like the GW and the bender are talking to each other

                                    AnticimexA Offline
                                    AnticimexA Offline
                                    Anticimex
                                    Contest Winner
                                    wrote on last edited by
                                    #21

                                    @Magnus-Pernemark no, I am saying that the sketch use the atsha by default for self testing. It is not using it by default for signing. And the problem is that if you want to use it for signing it has already included some code for self testing that it shouldn't in that case. If you are not able to code c i suggest hanging on some time for someone to fix the problem. I can't do it at the moment since I am on the road. Ping @tbowmo

                                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                    1 Reply Last reply
                                    0
                                    • tbowmoT Offline
                                      tbowmoT Offline
                                      tbowmo
                                      Admin
                                      wrote on last edited by
                                      #22

                                      @Magnus-Pernemark

                                      You need to enable signing with
                                      #define MY_SIGNING_ATSHA204

                                      This will make the sketch break though, as it includes the atsha204 driver already (and the library wants to include it as well)

                                      To remove the error comment out the following line (it's line 86 in the original source)

                                      #include <drivers/ATSHA204/ATSHA204.cpp> 
                                      

                                      (Reference to the line in github :
                                      https://github.com/mysensors/MySensors/blob/master/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino#L86)

                                      As an alternative, you can load the standard GatewaySerial sketch.. The only difference to the SensebenderGatewaySerial, is that the later includes test routines used in the factory.

                                      @Anticimex I don't think that I made a PR for conditionally include the atsha driver, as the error still persists in dev branch..

                                      AnticimexA 1 Reply Last reply
                                      0
                                      • tbowmoT tbowmo

                                        @Magnus-Pernemark

                                        You need to enable signing with
                                        #define MY_SIGNING_ATSHA204

                                        This will make the sketch break though, as it includes the atsha204 driver already (and the library wants to include it as well)

                                        To remove the error comment out the following line (it's line 86 in the original source)

                                        #include <drivers/ATSHA204/ATSHA204.cpp> 
                                        

                                        (Reference to the line in github :
                                        https://github.com/mysensors/MySensors/blob/master/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino#L86)

                                        As an alternative, you can load the standard GatewaySerial sketch.. The only difference to the SensebenderGatewaySerial, is that the later includes test routines used in the factory.

                                        @Anticimex I don't think that I made a PR for conditionally include the atsha driver, as the error still persists in dev branch..

                                        AnticimexA Offline
                                        AnticimexA Offline
                                        Anticimex
                                        Contest Winner
                                        wrote on last edited by
                                        #23

                                        @tbowmo no, but I remember that another user had the same issue and agreed to file a pr but perhaps he never got around to it. Should just be a matter of adding a ifndef though.

                                        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                        magpernM 1 Reply Last reply
                                        0
                                        • AnticimexA Anticimex

                                          @tbowmo no, but I remember that another user had the same issue and agreed to file a pr but perhaps he never got around to it. Should just be a matter of adding a ifndef though.

                                          magpernM Offline
                                          magpernM Offline
                                          magpern
                                          wrote on last edited by
                                          #24

                                          @Anticimex @tbowmo an #ifndef made it work and sketch compiled.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          24

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular